Don't use PyInt_FromSsize_t
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-15 Tom Tromey <tromey@adacore.com>
2
3 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4 * python/py-record.c (recpy_element_number): Use
5 gdb_py_object_from_longest.
6 (recpy_gap_number): Likewise.
7
8 2020-09-15 Tom Tromey <tromey@adacore.com>
9
10 * top.c (ui::ui): Update.
11 (highest_ui_num): Remove.
12 * top.h (struct ui) <num>: Remove.
13
14 2020-09-15 Tom Tromey <tromey@adacore.com>
15
16 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
17 * ui-style.c (ansi_regex_text): Now array.
18 * rust-exp.y (number_regex_text): Now array.
19 * linespec.c (linespec_quote_characters): Now array.
20 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
21 Now arrays.
22
23 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
24
25 * debuginfod-support.c (debuginfod_client_deleter): New.
26 (debuginfod_client_up): New.
27 (debuginfod_init): Return debuginfod_client_up.
28 (debuginfod_source_query): Adjust.
29 (debuginfod_debuginfo_query): Adjust.
30
31 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
32
33 * debuginfod-support.c (debuginfod_source_query): Use
34 make_unique_xstrdup.
35
36 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
37
38 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
39 with `type::instance_flags`.
40
41 2020-09-14 Michael Mullin <masmullin@gmail.com>
42
43 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
44 Remove baton parameter.
45
46 2020-09-14 Pedro Alves <pedro@palves.net>
47
48 * Makefile.in (SELFTESTS_SRCS): Add
49 unittests/enum-flags-selftests.c.
50 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
51 btrace_function_flags instead of enum btrace_function_flag.
52 * compile/compile-c-types.c (convert_qualified): Use
53 enum_flags::raw.
54 * compile/compile-cplus-symbols.c (convert_one_symbol)
55 (convert_symbol_bmsym):
56 * compile/compile-cplus-types.c (compile_cplus_convert_method)
57 (compile_cplus_convert_struct_or_union_methods)
58 (compile_cplus_instance::convert_qualified_base):
59 * go-exp.y (parse_string_or_char): Add cast to int.
60 * unittests/enum-flags-selftests.c: New file.
61 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
62 type to btrace_thread_flags from btrace_thread_flag.
63 (record_btrace_cancel_resume, record_btrace_step_thread): Change
64 local's type to btrace_thread_flags from btrace_thread_flag. Add
65 cast in DEBUG call.
66
67 2020-09-14 Pedro Alves <pedro@palves.net>
68
69 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
70 * gdbtypes.c (address_space_name_to_int): Rename to ...
71 (address_space_name_to_type_instance_flags): ... this.
72 (address_space_int_to_name): Rename to ...
73 (address_space_type_instance_flags_to_name): ... this.
74 * gdbtypes.h (address_space_name_to_int): Rename to ...
75 (address_space_name_to_type_instance_flags): ... this.
76 (address_space_int_to_name): Rename to ...
77 (address_space_type_instance_flags_to_name): ... this.
78 * type-stack.c (type_stack::insert): Adjust to rename.
79 * type-stack.h (type_stack::insert): Likewise.
80
81 2020-09-14 Pedro Alves <pedro@palves.net>
82 Andrew Burgess <andrew.burgess@embecosm.com>
83
84 * avr-tdep.c (avr_address_class_type_flags): Return
85 type_instance_flags.
86 (avr_address_class_type_flags_to_name): Take a
87 type_instance_flags.
88 (avr_address_class_name_to_type_flags): Return bool and take a
89 type_instance_flags.
90 * d-lang.c (build_d_types): Use type::set_instance_flags.
91 * ft32-tdep.c (ft32_address_class_type_flags): Return
92 type_instance_flags.
93 (ft32_address_class_type_flags_to_name): Take a
94 type_instance_flags.
95 (ft32_address_class_name_to_type_flags): Return bool and take a
96 type_instance_flags.
97 (ft32_gdbarch_init): Use type::set_instance_flags.
98 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
99 * gdbarch.h, gdbarch.c: Regenerate.
100 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
101 (address_class_name_to_type_flags): Use type_instance_flags and
102 bool.
103 * gdbtypes.c (address_space_name_to_int)
104 (address_space_int_to_name, make_qualified_type): Use
105 type_instance_flags.
106 (make_qualified_type): Use type_instance_flags and
107 type::set_instance_flags.
108 (make_type_with_address_space, make_cv_type, make_vector_type)
109 (check_typedef): Use type_instance_flags.
110 (recursive_dump_type): Cast type_instance_flags to unsigned for
111 printing.
112 (copy_type_recursive): Use type::set_instance_flags.
113 (gdbtypes_post_init): Use type::set_instance_flags.
114 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
115 <m_instance_flags>: ... this.
116 <instance_flags, set_instance_flags>: New methods.
117 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
118 (SET_TYPE_INSTANCE_FLAGS): New.
119 (address_space_name_to_int, address_space_int_to_name)
120 (make_type_with_address_space): Pass flags using
121 type_instance_flags instead of int.
122 * stabsread.c (cleanup_undefined_types_noname): Use
123 type::set_instance_flags.
124 * s390-tdep.c (s390_address_class_type_flags): Return
125 type_instance_flags.
126 (s390_address_class_type_flags_to_name): Take a
127 type_instance_flags.
128 (s390_address_class_name_to_type_flags): Return bool and take a
129 type_instance_flags.
130 * type-stack.c (type_stack::follow_types): Use
131 type_instance_flags.
132 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
133
134 2020-09-14 Tom Tromey <tromey@adacore.com>
135
136 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
137 * x86-tdep.c (x86_is_thunk_register_name)
138 (x86_in_indirect_branch_thunk): Update.
139 * sparc64-tdep.c (sparc64_fpu_register_names)
140 (sparc64_cp0_register_names, sparc64_register_names)
141 (sparc64_pseudo_register_names): Now const.
142 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
143 cp0_registers_num>: Now const.
144 * sparc-tdep.c (sparc_core_register_names)
145 (sparc32_fpu_register_names, sparc32_cp0_register_names)
146 (sparc32_pseudo_register_names): Now const.
147 (validate_tdesc_registers): Update.
148 * rust-lang.c (rust_extensions): Now const.
149 * p-lang.c (p_extensions): Now const.
150 * objc-lang.c (objc_extensions): Now const.
151 * nto-tdep.c (nto_thread_state_str): Now const.
152 * moxie-tdep.c (moxie_register_names): Now const.
153 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
154 Now const.
155 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
156 (mips_linux_reg_names): Now const.
157 (mips_gdbarch_init): Update.
158 * microblaze-tdep.c (microblaze_register_names): Now const.
159 * m68k-tdep.c (m68k_register_names): Now const.
160 * m32r-tdep.c (m32r_register_names): Now const.
161 * ia64-tdep.c (ia64_register_names): Now const.
162 * i386-tdep.h (struct gdbarch_tdep) <register_names,
163 ymmh_register_names, ymm16h_regnum, mpx_register_names,
164 k_register_names, zmmh_register_names, xmm_avx512_register_names,
165 ymm_avx512_register_names, pkeys_register_names>: Now const.
166 * i386-tdep.c (i386_register_names, i386_zmm_names)
167 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
168 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
169 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
170 * f-lang.c (f_extensions): Now const.
171 * d-lang.c (d_extensions): Now const.
172 * csky-tdep.c (csky_register_names): Now const.
173 * charset.c (default_charset_names, charset_enum): Now const.
174 (_initialize_charset): Update.
175 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
176 const.
177 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
178 (bsd_uthread_solib_loaded): Update.
179 (bsd_uthread_state): Now const.
180 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
181 (amd64_ymm_avx512_names, amd64_ymmh_names)
182 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
183 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
184 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
185 (amd64_dword_names): Now const.
186 * agent.c (can_use_agent_enum): Now const.
187 * ada-tasks.c (task_states, long_task_states): Now const.
188 * ada-lang.c (known_runtime_file_name_patterns)
189 (known_auxiliary_function_name_patterns, attribute_names)
190 (standard_exc, ada_extensions): Now const.
191
192 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
193
194 * bcache.h (struct bcache) <bcache>: Remove constructor.
195 <m_hash_function, m_compare_function>: Remove.
196 <~bcache>: Make virtual.
197 <compare>: Remove static method, introduce virtual method.
198 <default_hash>: Remove.
199 <hash>: New virtual method.
200 * bcache.c (bcache::expand_hash_table): Update.
201 (bcache::insert): Update.
202 (bcache::hash): New.
203 (bcache::compare): Update comment and parameter names.
204 * gdbtypes.c (types_deeply_equal): Update.
205 * psymtab.h (struct psymbol_bcache): New struct.
206 (class psymtab_storage) <psymtab_storage>: Make default.
207 <psymbol_cache>: Change type to psymbol_bcache.
208 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
209 (psymbol_hash): Change to...
210 (psymbol_bcache::hash): ... this.
211 (psymbol_compare): Change to...
212 (psymbol_bcache::compare): ... this.
213
214 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
215
216 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
217 checking for initial lwp.
218
219 2020-09-14 Tom Tromey <tromey@adacore.com>
220
221 * m68k-tdep.c (m68k_extract_return_value): Use
222 pointer_result_regnum.
223 (m68k_store_return_value): Likewise.
224 (m68k_reg_struct_return_p): Handle vectors and arrays.
225 (m68k_return_value): Handle arrays.
226 (m68k_svr4_return_value): Fix single-element aggregate handling.
227 Handle long double. Adjust for embedded ABI.
228 (m68k_svr4_init_abi): Set pointer_result_regnum.
229 (m68k_embedded_init_abi): New function.
230 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
231 (m68k_osabi_sniffer): New function.
232 (_initialize_m68k_tdep): Register osabi sniffer.
233 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
234 member.
235
236 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
237
238 * xml-support.c (xml_fetch_content_from_file): Replace xfree
239 with gdb::unique_xmalloc_ptr<char>.
240
241 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
242
243 * xml-support.h (xml_fetch_another): Change type to be a
244 function_view.
245 (xml_process_xincludes): Remove baton parameter.
246 (xml_fetch_content_from_file): Change baton parameter to
247 dirname.
248 * xml-support.c (struct xinclude_parsing_data)
249 <xinclude_parsing_data>: Remove baton parameter.
250 <fetcher_baton>: Remove.
251 (xinclude_start_include): Adjust.
252 (xml_process_xincludes): Adjust.
253 (xml_fetch_content_from_file): Replace baton parameter with
254 dirname.
255 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
256 (xml_init_syscalls_info): Use a lambda.
257 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
258 (file_read_description_xml): Use a lambda.
259 (fetch_available_features_from_target): Change baton parameter
260 to target_ops.
261 (target_read_description_xml): Use a lambda.
262 (target_fetch_description_xml): Use a lambda.
263 (string_read_description_xml): Update.
264
265 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
266
267 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
268 uses with type::endianity_is_not_default.
269
270 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
271
272 * gdbtypes.h (struct type) <endianity_is_not_default,
273 set_endianity_is_not_default>: New methods.
274 (TYPE_ENDIANITY_NOT_DEFAULT): Use
275 type::endianity_is_not_default, change all write call sites to
276 use type::set_endianity_is_not_default.
277
278 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
279
280 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
281 uses with type::is_fixed_instance.
282
283 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
284
285 * gdbtypes.h (struct type) <is_fixed_instance,
286 set_is_fixed_instance>: New methods.
287 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
288 write call sites to use type::set_is_fixed_instance.
289
290 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
291
292 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
293 uses with type::is_gnu_ifunc.
294
295 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
296
297 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
298 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
299 use type::set_is_gnu_ifunc.
300
301 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
302
303 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
304 uses with type::stub_is_supported.
305
306 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
307
308 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
309 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
310 use type::set_stub_is_supported.
311
312 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
313
314 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
315 uses with type::is_vector.
316
317 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
318
319 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
320 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
321 use type::set_is_vector.
322
323 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
324
325 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
326 uses with type::has_varargs.
327
328 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
329
330 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
331 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
332 use type::set_has_varargs.
333
334 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
335
336 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
337 uses with type::is_prototyped.
338
339 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
340
341 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
342 New methods.
343 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
344 call sites to use type::set_is_prototyped.
345
346 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
347
348 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
349 uses with type::target_is_stub.
350
351 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
352
353 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
354 New methods.
355 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
356 sites to use type::set_target_is_stub.
357
358 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
359
360 * gdbtypes.h (TYPE_STUB): Remove, replace all
361 uses with type::is_stub.
362
363 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
364
365 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
366 (TYPE_STUB): Use type::is_stub, change all write call sites to
367 use type::set_is_stub.
368
369 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
370
371 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
372 type::has_no_signedness.
373
374 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
375
376 * gdbtypes.h (struct type) <has_no_signedness,
377 set_has_no_signedness>: New methods.
378 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
379 call sites to use type::set_has_no_signedness.
380
381 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
382
383 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
384 type::is_unsigned.
385
386 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
387
388 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
389 methods.
390 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
391 sites to use type::set_is_unsigned.
392
393 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
394 Adam Renquinha <arenquinha@cimeq.qc.ca>
395
396 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
397 pointer and stack frame offset when unwinding.
398
399 2020-09-13 Pedro Alves <pedro@palves.net>
400
401 * NEWS: Document "-break-insert --qualified".
402 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
403
404 2020-09-13 Pedro Alves <pedro@palves.net>
405
406 * linespec.c (classify_mtype, compare_msyms): Delete.
407 (search_minsyms_for_name): Remove classification logic. Instead
408 filter out trampoline symbols if we also found an external
409 function of the same name.
410
411 2020-09-13 Joel Brobecker <brobecker@adacore.com>
412
413 * NEWS: Create a new section for the next release branch.
414 Rename the section of the current branch, now that it has
415 been cut.
416
417 2020-09-13 Joel Brobecker <brobecker@adacore.com>
418
419 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
420 * version.in: Bump version to 11.0.50.DATE-git.
421
422 2020-09-12 Joel Brobecker <brobecker@adacore.com>
423
424 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
425
426 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
427 Felix Willgerodt <Felix.Willgerodt@intel.com>
428
429 * gdbarch.sh: Added bfloat16 type.
430 * gdbarch.c: Regenerated.
431 * gdbarch.h: Regenerated.
432 * gdbtypes.c (floatformats_bfloat16): New struct.
433 (gdbtypes_post_init): Add builtin_bfloat16.
434 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
435 (floatformats_bfloat16): New struct.
436 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
437 (i386_ymm_type): Add field "v16_bfloat16"
438 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
439 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
440 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
441 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
442 * features/i386/64bit-avx512.xml: Add bfloat16 type.
443 * features/i386/64bit-avx512.c: Regenerated.
444 * features/i386/64bit-sse.xml: Add bfloat16 type.
445 * features/i386/64bit-sse.c: Regenerated.
446
447 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
448
449 * i386-tdep.c (i386_zmm_type): Fix field names.
450 (i386_ymm_type): Fix field names.
451
452 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
453
454 * breakpoint.c: Fix typo in the help message of the
455 "set breakpoint condition-evaluation" command.
456
457 2020-09-10 Kamil Rytarowski <n54@gmx.com>
458
459 * nbsd-nat.c: Include "nat/netbsd-nat.h".
460 * (nbsd_nat_target::pid_to_exec_file)
461 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
462 (nbsd_nat_target::post_startup_inferior)
463 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
464 (nbsd_add_threads): Switch local code to common gdb/nat functions.
465 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
466 * (nbsd_thread_lister): Remove.
467
468 2020-09-10 Kamil Rytarowski <n54@gmx.com>
469
470 * fork-inferior.c (startup_inferior): Avoid double free.
471
472 2020-09-10 Kamil Rytarowski <n54@gmx.com>
473
474 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
475 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
476
477 2020-09-10 Kamil Rytarowski <n54@gmx.com>
478
479 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
480 * netbsd-nat.c: Include <sys/ptrace.h>.
481 * (netbsd_nat::enable_proc_events): Add.
482
483 2020-09-10 Kamil Rytarowski <n54@gmx.com>
484
485 * netbsd-nat.h: Include "gdbsupport/function-view.h".
486 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
487 (netbsd_nat::for_each_thread): Add.
488 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
489 "gdbsupport/common-debug.h".
490 * (netbsd_nat::netbsd_thread_lister)
491 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
492 (netbsd_nat::for_each_thread): Add.
493
494 2020-09-10 Kamil Rytarowski <n54@gmx.com>
495
496 * netbsd-nat.h: Include <unistd.h>.
497 * (netbsd_nat::pid_to_exec_file): Add.
498 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
499 * (netbsd_nat::pid_to_exec_file) Add.
500
501 2020-09-10 Kamil Rytarowski <n54@gmx.com>
502
503 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
504
505 2020-09-10 Kamil Rytarowski <n54@gmx.com>
506
507 * netbsd-nat.h: New file.
508 * netbsd-nat.c: Likewise.
509
510 2020-09-09 Tom Tromey <tromey@adacore.com>
511
512 * ada-lang.c (remove_extra_symbols): Do not increment when
513 removing an element
514
515 2020-09-08 Tom Tromey <tromey@adacore.com>
516
517 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
518
519 2020-09-08 Tom Tromey <tromey@adacore.com>
520
521 PR win32/25302:
522 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
523 (gdb_bfd_init_data): New function.
524 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
525
526 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
527
528 * infrun.c (fetch_inferior_event): Use
529 `switch_to_target_no_thread` to switch the target.
530
531 2020-09-06 Tom Tromey <tom@tromey.com>
532
533 * symfile.h (dwarf2_free_objfile): Don't declare.
534
535 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
536
537 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
538 to match 16 byte real/complex type generated by Flang compiler.
539
540 2020-09-03 Tom de Vries <tdevries@suse.de>
541
542 PR breakpoint/26546
543 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
544 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
545
546 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
547
548 * maint.c (index_digits): New function.
549 (struct maint_print_section_data): Remove.
550 (print_bfd_section_info): Remove print_data parameter, add arg
551 and index_digits.
552 (print_objfile_section_info): Likewise.
553 (print_bfd_section_info_maybe_relocated): Likewise (plus
554 objfile).
555 (maintenance_info_sections): Adjust calls.
556
557 2020-09-02 Tom Tromey <tromey@adacore.com>
558
559 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
560 for null pointers.
561 (ada_varobj_adjust_for_child_access): Special-case null pointers.
562
563 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
564
565 * bcache.h (struct bcache) <insert>: Change type of `added` to
566 pointer to bool.
567 * bcache.c (bcache::insert): Likewise.
568 * gdbtypes.c (check_types_worklist): Adjust.
569 * psymtab.c (add_psymbol_to_bcache): Adjust.
570
571 2020-08-31 Kevin Buettner <kevinb@redhat.com>
572
573 * corelow.c (unordered_set): Include.
574 (class core_target): Add field 'm_core_unavailable_mappings'.
575 (core_target::build_file_mappings): Print only one warning
576 per inaccessible file. Add unavailable/broken mappings
577 to m_core_unavailable_mappings.
578 (core_target::xfer_partial): Call...
579 (core_target::xfer_memory_via_mappings): New method.
580
581 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
582
583 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
584 type to bool.
585
586 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
587
588 * dwarf2/read.c (struct field_info): Fix indentation.
589
590 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
591
592 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
593 ordering in comment.
594 * frame.c (frame_id_eq): Fix indentation.
595
596 2020-08-31 Scott Linder <scott@scottlinder.com>
597 Simon Marchi <simon.marchi@efficios.com>
598
599 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
600 inline frame ids in outer frame.
601
602 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
603
604 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
605 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
606 (outer_frame_id): Use FID_STACK_OUTER instead of
607 FID_STACK_INVALID.
608 (frame_id_p): Don't check for outer_frame_id.
609
610 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
611
612 * frame-unwind.c (frame_unwind_got_optimized): Don't set
613 regnum/frame in value. Call allocate_value_lazy.
614 * frame.c (frame_unwind_register_value): Use
615 val_print_not_saved.
616
617 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
618
619 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
620
621 2020-08-29 Pedro Alves <pedro@palves.net>
622
623 * progspace.c (print_program_space): Use all_inferiors. Switch to
624 the inferior before calling target_pid_to_str.
625
626 2020-08-28 Tom Tromey <tom@tromey.com>
627
628 * xcoffread.c (xcoff_end_psymtab): Update comment.
629 * dbxread.c (dbx_end_psymtab): Update comment.
630
631 2020-08-28 Tom de Vries <tdevries@suse.de>
632
633 PR breakpoint/26544
634 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
635 event_location.
636 (create_breakpoint): Same.
637 (base_breakpoint_decode_location): Same.
638 (bkpt_create_sals_from_location): Same.
639 (bkpt_decode_location): Same.
640 (bkpt_probe_create_sals_from_location): Same.
641 (bkpt_probe_decode_location): Same.
642 (tracepoint_create_sals_from_location): Same.
643 (tracepoint_decode_location): Same.
644 (tracepoint_probe_decode_location): Same.
645 (strace_marker_create_sals_from_location): Same.
646 (strace_marker_decode_location): Same.
647 (create_sals_from_location_default): Same.
648 (decode_location_default): Same.
649 * breakpoint.h (struct breakpoint_ops): Same.
650 (create_breakpoint): Same.
651 * linespec.h (decode_line_full): Same.
652 * linespec.c (decode_line_full): Same. Throw error if
653 result.size () == 0.
654
655 2020-08-27 Pedro Alves <pedro@palves.net>
656
657 PR gdb/26524
658 * breakpoint.c (until_break_fsm) <location_breakpoint,
659 caller_breakpoint>: Delete fields.
660 <breakpoints>: New field.
661 <until_break_fsm>: Adjust to save a breakpoint vector instead of
662 two individual breakpoints.
663 (until_break_fsm::should_stop): Loop over breakpoints in the
664 breakpoint vector.
665 (until_break_fsm::clean_up): Adjust to clear the breakpoints
666 vector.
667 (until_break_command): Handle location expanding into multiple
668 sals.
669
670 2020-08-27 Pedro Alves <pedro@palves.net>
671
672 PR gdb/26523
673 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
674 bp_until breakpoints user-specified locations. Update intro
675 comment.
676
677 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
678
679 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
680 gdb_bfd_sections): New.
681 * maint.c (print_bfd_section_info): Change param type to
682 maint_print_section_data.
683 (print_objfile_section_info): Likewise.
684 (print_bfd_section_info_maybe_relocated): Likewise.
685 (maintenance_info_sections): Use gdb_bfd_sections.
686
687 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
688
689 * MAINTAINERS: Add ARC target and maintainer.
690
691 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
692
693 * configure.tgt: ARC support for GNU/Linux.
694 * Makefile.in (ALL_TARGET_OBJS): Likewise.
695 * arc-linux-tdep.c: New file.
696 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
697 * arc-tdep.c (arc_write_pc): Use it.
698
699 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
700
701 * arc-tdep.c (arc_check_for_hardware_loop): New.
702 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
703
704 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
705
706 * arc-tdep.h: Include "gdbarch.h".
707
708 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
709
710 * arch/arc.h
711 (arc_gdbarch_features): New class to stir the selection of target XML.
712 (arc_create_target_description): Use FEATURES to choose XML target.
713 (arc_lookup_target_description): Use arc_create_target_description
714 to create _new_ target descriptions or return the already created
715 ones if the FEATURES is the same.
716 * arch/arc.c: Implementation of prototypes described above.
717 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
718 (arc_gdbarch_features_init): Initialize the FEATURES struct.
719 * arc-tdep.c (*_feature_name): Make feature names consistent.
720 (arc_register_feature): A new struct to hold information about
721 registers of a particular target/feature.
722 (arc_check_tdesc_feature): Check if XML provides registers in
723 compliance with ARC_REGISTER_FEATURE structs.
724 (arc_update_acc_reg_names): Add aliases for r58 and r59.
725 (determine_*_reg_feature_set): Which feature name to look for.
726 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
727 (mach_type_to_arc_isa): Convert from a set of binutils machine types
728 to expected ISA enums to be used in arc_gdbarch_features structs.
729 * features/Makefile (FEATURE_XMLFILES): Add new files.
730 * gdb/features/arc/v1-aux.c: New file.
731 * gdb/features/arc/v1-aux.xml: Likewise.
732 * gdb/features/arc/v1-core.c: Likewise.
733 * gdb/features/arc/v1-core.xml: Likewise.
734 * gdb/features/arc/v2-aux.c: Likewise.
735 * gdb/features/arc/v2-aux.xml: Likewise.
736 * gdb/features/arc/v2-core.c: Likewise.
737 * gdb/features/arc/v2-core.xml: Likewise.
738 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
739
740 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
741 Andrew Burgess <andrew.burgess@embecosm.com>
742
743 PR m2/26372
744 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
745 an assert. Remove single element array indexing pattern as the
746 MULTI_SUBSCRIPT support will handle this case too.
747
748 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
749
750 * value.h (valprint_check_validity): Move declaration from
751 here...
752 * valprint.h (valprint_check_validity): ... to here.
753
754 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
755
756 * debug.h: New file.
757 * debug.c (debug_prefixed_vprintf): New function.
758 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
759 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
760
761 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
762
763 * infrun.h (infrun_debug_printf_1): New function declaration.
764 (infrun_debug_printf): New macro.
765 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
766 throughout.
767 (infrun_debug_printf): New function.
768 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
769 (handle_jit_event): Likewise.
770
771 2020-08-21 Mark Wielaard <mark@klomp.org>
772
773 * ada-lex.l: Extend register warnings diagnostics comment for g++.
774
775 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
776
777 * frame.c (enum class frame_id_status): New.
778 (struct frame_info) <this_id::p>: Change type to frame_id_status.
779 (fprintf_frame): Update.
780 (compute_frame_id): Set frame id status to "computing" on entry.
781 Set it back to "not_computed" on failure and to "computed" on
782 success.
783 (get_frame_id): Assert the frame id is not being computed.
784 (create_sentinel_frame): Use frame_id_status::COMPUTED.
785 (create_new_frame): Likewise.
786 (frame_cleanup_after_sniffer): Update assert.
787
788 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
789
790 * regcache.c (pid_ptid_regcache_map): New type.
791 (target_ptid_regcache_map): Remove.
792 (target_pid_ptid_regcache_map): New type.
793 (regcaches): Change type to target_pid_ptid_regcache_map.
794 (get_thread_arch_aspace_regcache): Update.
795 (regcache_thread_ptid_changed): Update, handle pid-like ptid
796 case.
797 (regcaches_size): Update.
798 (regcache_count): Update.
799 (registers_changed_ptid_target_pid_test): New.
800 (_initialize_regcache): Register new test.
801
802 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
803
804 * regcache.c (regcache_count): New.
805 (struct regcache_test_data): New.
806 (regcache_test_data_up): New.
807 (populate_regcaches_for_test): New.
808 (regcaches_test): Remove.
809 (get_thread_arch_aspace_regcache_test): New.
810 (registers_changed_ptid_all_test): New.
811 (registers_changed_ptid_target_test): New.
812 (registers_changed_ptid_target_ptid_test): New.
813 (regcache_thread_ptid_changed): Remove regcache_count lambda.
814 (_initialize_regcache): Register new tests.
815
816 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
817
818 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
819 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
820 gdbarch and aspace parameter. Use current inferior's aspace.
821 Validate regcache's arch value.
822 (regcaches_test): Update.
823
824 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
825
826 * regcache.c (regcaches_test): Call registers_changed.
827
828 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
829
830 * infrun.c (process_event_stop_test): Fix typo "breapoint".
831
832 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
833
834 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
835 to find the end of prologue for flang compiled binaries.
836 * arm-tdep.c (arm_skip_prologue): Likewise.
837 * i386-tdep.c (i386_skip_prologue): Likewise.
838 * producer.c (producer_is_llvm): New function.
839 (producer_parsing_tests): Added new tests for clang/flang.
840 * producer.h (producer_is_llvm): New declaration.
841
842 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
843
844 * linux-nat.c (linux_nat_debug_printf): New function.
845 (linux_nat_debug_printf_1): New macro. Use throughout the file.
846
847 2020-08-18 Aaron Merey <amerey@redhat.com>
848
849 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
850 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
851 (CLIBS): Add DEBUGINFOD_LIBS.
852
853 2020-08-17 Sergei Trofimovich <siarheit@google.com>
854
855 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
856 'gdbarch_num_regs'.
857
858 2020-08-17 Tom Tromey <tromey@adacore.com>
859
860 * ada-varobj.c (ada_varobj_decode_var): Handle case where
861 ada_get_decoded_value returns NULL.
862
863 2020-08-17 Tom Tromey <tromey@adacore.com>
864
865 * python/py-inferior.c (infpy_search_memory): Use
866 gdb_py_object_from_ulongest.
867 * python/py-infevents.c (create_inferior_call_event_object)
868 (create_memory_changed_event_object): Use
869 gdb_py_object_from_ulongest.
870 * python/py-linetable.c (ltpy_entry_get_pc): Use
871 gdb_py_object_from_ulongest.
872
873 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
874
875 * loc.c (class symbol_needs_eval_context): Fix indentation.
876
877 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
878
879 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
880 bool.
881
882 2020-08-17 Tom de Vries <tdevries@suse.de>
883
884 PR gdb/26393
885 * gdbtypes.c (dump_dynamic_prop): New function.
886 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
887
888 2020-08-15 Tom de Vries <tdevries@suse.de>
889
890 PR backtrace/26390
891 * stack.c (print_frame_args): Temporarily set the selected
892 frame to FRAME while printing the frame's arguments.
893
894 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
895
896 PR breakpoints/26385
897 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
898 Always clear watchpoint with PTRACE_SET_DEBUGREG.
899
900 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
901
902 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
903 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
904 and >= to check return value instead of == -1 and != -1.
905
906 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
907
908 * utils.h (class gdb_argv) <as_array_view>: New method.
909 * utils.c (gdb_argv_as_array_view_test): New.
910 (_initialize_utils): Register selftest.
911 * maint.c (maintenance_selftest): Use the new method.
912
913 2020-08-13 Kamil Rytarowski <n54@gmx.com>
914
915 * target.h (supports_dumpcore, dumpcore): New
916 function declarations.
917 * target.c (supports_dumpcore, dumpcore): New
918 functions.
919 * target-delegates.c: Rebuild.
920 * gcore.c (gcore_command): Use target_supports_dumpcore ()
921 and target_dumpcore ().
922
923 2020-08-13 Aaron Merey <amerey@redhat.com>
924
925 * debuginfod-support.c: Replace global variables with user_data.
926
927 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
928
929 * maint.c (maintenance_selftest): Split args and pass array_view
930 to run_tests.
931
932 2020-08-12 Luis Machado <luis.machado@linaro.org>
933
934 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
935 type's length.
936 Use %s and pulongest to print the length.
937
938 2020-08-12 Pedro Alves <palves@redhat.com>
939
940 * NEWS: Move "Multi-target debugging support" item to the
941 "Changes since GDB 9" section.
942
943 2020-08-12 Pedro Alves <palves@redhat.com>
944
945 PR gdb/26336
946 * progspace.c (program_space::remove_objfile): Invalidate the
947 frame cache.
948
949 2020-08-11 Tom de Vries <tdevries@suse.de>
950
951 * MAINTAINERS: Mark ms1 as deleted.
952
953 2020-08-10 Luis Machado <luis.machado@linaro.org>
954
955 PR gdb/26310
956
957 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
958 act accordingly.
959 (aarch64_analyze_prologue_test): Add more unit tests to exercise
960 movz/str/stur/stp skipping behavior.
961
962 2020-08-10 Luis Machado <luis.machado@linaro.org>
963
964 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
965 struct user_sve_header instead of struct sve_context.
966
967 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
968
969 * read.h (dwarf2_fetch_die_loc_sect_off,
970 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
971 `void *` parameter with function_view.
972 * read.c (dwarf2_fetch_die_loc_sect_off,
973 dwarf2_fetch_die_loc_cu_off): Likewise.
974 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
975 (per_cu_dwarf_call): Adjust.
976 (get_frame_address_in_block_wrapper): Remove.
977 (indirect_synthetic_pointer): Adjust.
978 (get_ax_pc): Remove.
979 (dwarf2_compile_expr_to_ax): Adjust.
980
981 2020-08-08 Tom de Vries <tdevries@suse.de>
982
983 PR build/26344
984 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
985 constructor.
986 * regcache.c (get_thread_arch_aspace_regcache): Same.
987
988 2020-08-07 Tom Tromey <tromey@adacore.com>
989
990 * ravenscar-thread.c
991 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
992 New method.
993 (ravenscar_thread_target::wait): Check
994 runtime_initialized.
995 (ravenscar_thread_target::prepare_to_store)
996 (ravenscar_thread_target::stopped_by_sw_breakpoint)
997 (ravenscar_thread_target::stopped_by_hw_breakpoint)
998 (ravenscar_thread_target::stopped_by_watchpoint)
999 (ravenscar_thread_target::stopped_data_address)
1000 (ravenscar_thread_target::core_of_thread): Use
1001 scoped_restore_current_thread and
1002 set_base_thread_from_ravenscar_task.
1003
1004 2020-08-07 Tom Tromey <tromey@adacore.com>
1005
1006 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1007
1008 2020-08-07 Tom Tromey <tromey@adacore.com>
1009
1010 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1011 update_inferior_ptid before update_thread_list.
1012 (temporarily_change_regcache_ptid): New class.
1013 (ravenscar_thread_target::fetch_registers)
1014 (ravenscar_thread_target::store_registers)
1015 (ravenscar_thread_target::prepare_to_store): Use base thread when
1016 forwarding operation.
1017
1018 2020-08-07 Tom Tromey <tromey@adacore.com>
1019
1020 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1021 "is_pid" case.
1022
1023 2020-08-07 Tom Tromey <tromey@adacore.com>
1024
1025 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1026 New methods.
1027 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1028 first.
1029 (ravenscar_thread_target::add_thread): Rename from
1030 ravenscar_add_thread.
1031 (ravenscar_thread_target::update_thread_list): Use a lambda.
1032 (ravenscar_thread_target::xfer_partial): New method.
1033
1034 2020-08-07 Tom Tromey <tromey@adacore.com>
1035
1036 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1037 gdb::function_view.
1038 (iterate_over_live_ada_tasks): Change type of argument.
1039 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1040 of argument.
1041
1042 2020-08-07 Tom Tromey <tromey@adacore.com>
1043
1044 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1045 Remove.
1046 (ravenscar_thread_target::extra_thread_info): Remove.
1047 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1048 defer to target beneath for non-Ravenscar threads.
1049
1050 2020-08-07 Tom Tromey <tromey@adacore.com>
1051
1052 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1053 get_base_thread_from_ravenscar_task>: Now methods.
1054 <m_cpu_map>: New member.
1055 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1056 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1057 (ravenscar_thread_target::task_is_currently_active): Update.
1058 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1059 Now a method.
1060 (ravenscar_thread_target::add_active_thread): Put initial thread
1061 into the m_cpu_map.
1062
1063 2020-08-07 Tom Tromey <tromey@adacore.com>
1064
1065 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1066 event_ptid.
1067
1068 2020-08-07 Tom Tromey <tromey@adacore.com>
1069
1070 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1071 runtime_initialized.
1072
1073 2020-08-07 Tom Tromey <tromey@adacore.com>
1074
1075 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1076 add_active_thread.
1077 (ravenscar_thread_target::add_active_thread): Now public.
1078 (ravenscar_inferior_created): Call add_active_thread after pushing
1079 the target.
1080
1081 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1082
1083 * regcache.c (ptid_regcache_map): New type.
1084 (target_ptid_regcache_map): New type.
1085 (regcaches): Change type to target_ptid_regcache_map.
1086 (get_thread_arch_aspace_regcache): Update to regcaches' new
1087 type.
1088 (regcache_thread_ptid_changed): Likewise.
1089 (registers_changed_ptid): Likewise.
1090 (regcaches_size): Likewise.
1091 (regcaches_test): Update.
1092 (regcache_thread_ptid_changed): Update.
1093 * regcache.h (regcache_up): New type.
1094 * gdbsupport/ptid.h (hash_ptid): New struct.
1095
1096 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1097
1098 * observable.h (thread_ptid_changed): Add parameter
1099 `process_stratum_target *`.
1100 * infrun.c (infrun_thread_ptid_changed): Add parameter
1101 `process_stratum_target *` and use it.
1102 (selftests): New namespace.
1103 (infrun_thread_ptid_changed): New function.
1104 (_initialize_infrun): Register selftest.
1105 * regcache.c (regcache_thread_ptid_changed): Add parameter
1106 `process_stratum_target *` and use it.
1107 (regcache_thread_ptid_changed): New function.
1108 (_initialize_regcache): Register selftest.
1109 * thread.c (thread_change_ptid): Pass target to
1110 thread_ptid_changed observable.
1111
1112 2020-08-06 Caroline Tice <cmtice@google.com>
1113
1114 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1115 (struct dwp_sections): Update field comments. Add loclists and
1116 rnglists fields.
1117 (struct virtual_v2_dwo_sections): Rename struct to
1118 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1119 size & offset fields for loclists and rnglists.
1120 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1121 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1122 skipping dummy type units.
1123 (create_dwp_hash_table): Update the large comment above the function to
1124 discuss Version 5 DWP files as well, with references. Update all the
1125 version checks in the function to check for version 5 as well. Add new
1126 section at the end to create dwp hash table for version 5.
1127 (create_dwp_v2_section): Rename function to
1128 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1129 Add V5 to error message text.
1130 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1131 into calls to create_dwp_v2_or_v5_section.
1132 (create_dwo_unit_in_dwp_v5): New function.
1133 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1134 check for version2; add else clause to handle version 5.
1135 (open_and_init_dwo_file): Add code to check dwarf version & only call
1136 create_debug_types_hash_table (with sections.types) if version is not 5;
1137 else call create_debug_type_hash_table, with sections.info.
1138 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1139 version 5.
1140 (dwarf2_locate_v5_dwp_sections): New function.
1141 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1142 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1143
1144 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1145
1146 * regcache.h (class regcache): Remove friend
1147 registers_changed_ptid.
1148 <regcache_thread_ptid_changed>: Remove.
1149 <regcaches>: Remove.
1150 * regcache.c (regcache::regcaches): Rename to...
1151 (regcaches): ... this. Make static.
1152 (get_thread_arch_aspace_regcache): Update.
1153 (regcache::regcache_thread_ptid_changed): Rename to...
1154 (regcache_thread_ptid_changed): ... this. Update.
1155 (class regcache_access): Remove.
1156 (regcaches_test): Update.
1157 (_initialize_regcache): Update.
1158 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1159 <forward_list>.
1160
1161 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1162
1163 * regcache.h (class regcache) <current_regcache>: Rename to...
1164 <regcaches>: ... this. Move doc here.
1165 * regcache.c (regcache::current_regcache) Rename to...
1166 (regcache::regcaches): ... this. Move doc to header.
1167 (get_thread_arch_aspace_regcache): Update.
1168 (regcache::regcache_thread_ptid_changed): Update.
1169 (registers_changed_ptid): Update.
1170 (class regcache_access) <current_regcache_size>: Rename to...
1171 <regcaches_size>: ... this.
1172 (current_regcache_test): Rename to...
1173 (regcaches_test): ... this.
1174 (_initialize_regcache): Update.
1175
1176 2020-08-06 Victor Collod <vcollod@nvidia.com>
1177
1178 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1179
1180 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1181
1182 * corelow.c (core_target::build_file_mappings): Don't output
1183 null pathname in warning.
1184
1185 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1186
1187 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1188 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1189 gdb.dwarf2/dw2-single-line-discriminators.exp,
1190 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1191
1192 2020-08-05 Tom Tromey <tromey@adacore.com>
1193
1194 PR rust/26197:
1195 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1196 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1197 Fix off-by-one and type size errors in ordinary case.
1198
1199 2020-08-05 Tom de Vries <tdevries@suse.de>
1200
1201 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1202 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1203
1204 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1205
1206 * frame.h (frame_id_p): Return bool.
1207 (frame_id_artificial_p): Return bool.
1208 (frame_id_eq): Return bool.
1209 (has_stack_frames): Return bool.
1210 (get_selected_frame): Fix typo in comment.
1211 (get_frame_pc_if_available): Return bool.
1212 (get_frame_address_in_block_if_available): Return bool.
1213 (get_frame_func_if_available): Return bool.
1214 (read_frame_register_unsigned): Return bool.
1215 (get_frame_register_bytes): Return bool.
1216 (safe_frame_unwind_memory): Return bool.
1217 (deprecated_frame_register_read): Return bool.
1218 (frame_unwinder_is): Return bool.
1219 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1220 bool.
1221 <this_id::p>: Likewise.
1222 <prev_p>: Likewise.
1223 (frame_stash_add): Return bool.
1224 (get_frame_id): Use bool.
1225 (frame_id_build_special) Use bool.
1226 (frame_id_build_unavailable_stack): Use bool.
1227 (frame_id_build): Use bool.
1228 (frame_id_p): Return bool, use true/false instead of 1/0.
1229 (frame_id_artificial_p): Likewise.
1230 (frame_id_eq): Likewise.
1231 (frame_id_inner): Likewise.
1232 (get_frame_func_if_available): Likewise.
1233 (read_frame_register_unsigned): Likewise.
1234 (deprecated_frame_register_read): Likewise.
1235 (get_frame_register_bytes): Likewise.
1236 (has_stack_frames): Likewise.
1237 (inside_main_func): Likewise.
1238 (inside_entry_func): Likewise.
1239 (get_frame_pc_if_available): Likewise.
1240 (get_frame_address_in_block_if_available): Likewise.
1241 (frame_unwinder_is): Likewise.
1242 (safe_frame_unwind_memory): Likewise.
1243 (frame_unwind_arch): Likewise.
1244
1245 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1246
1247 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1248 type to cached_copy_status.
1249 (fprintf_frame): Adjust.
1250 (get_frame_func_if_available): Adjust.
1251 (frame_cleanup_after_sniffer): Adjust.
1252
1253 2020-08-04 Mark Wielaard <mark@klomp.org>
1254
1255 * MAINTAINERS (Write After Approval): Update email address.
1256
1257 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1258
1259 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1260 dynamic_prop::const_val.
1261
1262 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1263
1264 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1265 dynamic_prop::kind.
1266
1267 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1268
1269 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1270
1271 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1272
1273 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1274
1275 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1276 Jose E. Marchesi <jose.marchesi@oracle.com>
1277
1278 * configure.tgt: Add entry for bpf-*-*.
1279 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1280 (ALLDEPFILES): Add bpf-tdep.c.
1281 * bpf-tdep.c: New file.
1282 * MAINTAINERS: Add bpf target and maintainer.
1283 * NEWS: Mention the support for the new target.
1284
1285 2020-08-04 Tom de Vries <tdevries@suse.de>
1286
1287 PR symtab/23270
1288 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1289 Error.
1290
1291 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1292
1293 * syscalls/freebsd.xml: Regenerate.
1294
1295 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1296
1297 * syscalls/update-freebsd.sh: Fix usage and year range.
1298
1299 2020-08-03 Tom de Vries <tdevries@suse.de>
1300
1301 PR symtab/26333
1302 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1303 DW_LNE_lo_user/DW_LNE_hi_user range.
1304
1305 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1306
1307 PR ada/26318
1308 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1309 kind.
1310
1311 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1312
1313 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1314
1315 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1316
1317 * breakpoint.c (set_breakpoint_condition): Update the condition
1318 expressions after checking that the input condition string parses
1319 successfully and does not contain junk at the end.
1320
1321 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1322
1323 * breakpoint.c (set_breakpoint_condition): Update the
1324 condition string after parsing the new condition successfully.
1325
1326 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1327
1328 * proc-api.c (_STRUCTURED_PROC): Don't define.
1329 * proc-events.c: Likewise.
1330 * proc-flags.c: Likewise.
1331 * proc-why.c: Likewise.
1332 * procfs.c: Likewise.
1333
1334 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1335 * configure, config.in: Regenerate.
1336
1337 2020-07-30 Tom de Vries <tdevries@suse.de>
1338
1339 PR build/26320
1340 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1341 m_red/m_green/m_blue in a union.
1342
1343 2020-07-29 Tom de Vries <tdevries@suse.de>
1344
1345 PR tdep/26280
1346 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1347
1348 2020-07-28 Tom Tromey <tromey@adacore.com>
1349
1350 PR symtab/26270:
1351 * symtab.h (find_pc_partial_function_sym): Declare.
1352 * cli/cli-cmds.c (disassemble_command): Use
1353 find_pc_partial_function_sym. Check asm_demangle.
1354 * blockframe.c (cache_pc_function_sym): New global.
1355 (cache_pc_function_name): Remove.
1356 (clear_pc_function_cache): Update.
1357 (find_pc_partial_function_sym): New function, from
1358 find_pc_partial_function.
1359 (find_pc_partial_function): Rewrite using
1360 find_pc_partial_function_sym.
1361
1362 2020-07-28 Tom Tromey <tromey@adacore.com>
1363
1364 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1365 help. Add usage.
1366
1367 2020-07-28 Tom Tromey <tromey@adacore.com>
1368
1369 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1370 <DW_OP_GNU_variable_value>: Cast to address type.
1371
1372 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1373
1374 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1375 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1376 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1377 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1378 (nbsd_get_siginfo_type): New.
1379 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1380 (_initialize_nbsd_tdep): New.
1381
1382 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1383
1384 PR binutils/26301
1385 * configure: Regenerated.
1386
1387 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1388
1389 PR binutils/26301
1390 * configure: Regenerated.
1391
1392 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1393
1394 * python/py-frame.c: Remove 'user-regs.h' include.
1395 (frapy_read_register): Rewrite to make use of
1396 gdbpy_parse_register_id.
1397 * python/py-registers.c (gdbpy_parse_register_id): New function,
1398 moved here from python/py-unwind.c. Updated the return type, and
1399 also accepts register descriptor objects.
1400 * python/py-unwind.c: Remove 'user-regs.h' include.
1401 (pyuw_parse_register_id): Moved to python/py-registers.c.
1402 (unwind_infopy_add_saved_register): Update to use
1403 gdbpy_parse_register_id.
1404 (pending_framepy_read_register): Likewise.
1405 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1406
1407 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1408
1409 * python/py-registers.c: Add 'user-regs.h' include.
1410 (register_descriptor_iter_find): New function.
1411 (register_descriptor_iterator_object_methods): New static global
1412 methods array.
1413 (register_descriptor_iterator_object_type): Add pointer to methods
1414 array.
1415
1416 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1417
1418 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1419 for all architectures on FreeBSD 11.3 and later.
1420
1421 2020-07-27 Tom Tromey <tromey@adacore.com>
1422
1423 * gcore.h (load_corefile): Don't declare.
1424
1425 2020-07-27 Tom de Vries <tdevries@suse.de>
1426
1427 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1428 * config.in: Regenerate.
1429 * configure: Regenerate.
1430
1431 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1432
1433 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1434 ws2tcpip.h. When checking whether socklen_t type is defined, use
1435 ws2tcpip.h if it is available and sys/socket.h isn't.
1436 * configure: Regenerate.
1437 * config.in: Regenerate.
1438
1439 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1440
1441 PR fortran/23051
1442 PR fortran/26139
1443 * valops.c (value_ind): Pass address to
1444 readjust_indirect_value_type.
1445 * value.c (readjust_indirect_value_type): Make parameter
1446 non-const, and add extra address parameter. Resolve original type
1447 before using it.
1448 * value.h (readjust_indirect_value_type): Update function
1449 signature and comment.
1450
1451 2020-07-25 Tom de Vries <tdevries@suse.de>
1452
1453 PR symtab/26243
1454 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1455 entries.
1456
1457 2020-07-24 Aaron Merey <amerey@redhat.com>
1458
1459 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1460 * configure: Rebuild.
1461
1462 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1463
1464 PR corefiles/26294
1465 * corelow.c (_initialize_corelow): Add period to help text
1466 for "maintenance print core-file-backed-mappings".
1467
1468 2020-07-23 Pedro Alves <pedro@palves.net>
1469
1470 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1471 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1472 meanwhile.
1473 * frame.c (frame_cache_generation, get_frame_cache_generation):
1474 New.
1475 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1476 (get_prev_frame_if_no_cycle): On exception, don't touch
1477 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1478 * frame.h (get_frame_cache_generation): Declare.
1479
1480 2020-07-23 Tom de Vries <tdevries@suse.de>
1481
1482 PR tui/26282
1483 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1484 New default constructor.
1485
1486 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1487
1488 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1489 exclude non-statement entries.
1490
1491 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1492
1493 * NEWS (New commands): Mention new command
1494 "maintenance print core-file-backed-mappings".
1495
1496 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1497
1498 * corelow.c (gdbcmd.h): Include.
1499 (core_target::info_proc_mappings): New method.
1500 (get_current_core_target): New function.
1501 (maintenance_print_core_file_backed_mappings): New function.
1502 (_initialize_corelow): Add core-file-backed-mappings to
1503 "maint print" commands.
1504
1505 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1506
1507 * linux-tdep.c (dump_note_entry_p): New function.
1508 (linux_dump_mapping_p_ftype): New typedef.
1509 (linux_find_memory_regions_full): Add new parameter,
1510 should_dump_mapping_p.
1511 (linux_find_memory_regions): Adjust call to
1512 linux_find_memory_regions_full.
1513 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1514 call to linux_find_memory_regions_full.
1515
1516 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1517
1518 * corelow.c (solist.h, unordered_map): Include.
1519 (class core_target): Add field m_core_file_mappings and
1520 method build_file_mappings.
1521 (core_target::core_target): Call build_file_mappings.
1522 (core_target::~core_target): Free memory associated with
1523 m_core_file_mappings.
1524 (core_target::build_file_mappings): New method.
1525 (core_target::xfer_partial): Use m_core_file_mappings
1526 for memory transfers.
1527 * linux-tdep.c (linux_read_core_file_mappings): New
1528 function.
1529 (linux_core_info_proc_mappings): Rewrite to use
1530 linux_read_core_file_mappings.
1531 (linux_init_abi): Register linux_read_core_file_mappings.
1532
1533 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1534
1535 * arch-utils.c (default_read_core_file_mappings): New function.
1536 * arch-utils.c (default_read_core_file_mappings): Declare.
1537 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1538 * gdbarch.h, gdbarch.c: Regenerate.
1539
1540 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1541
1542 PR corefiles/25631
1543 * corelow.c (core_target:xfer_partial): Revise
1544 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1545 case after first checking the stratum beneath the core
1546 target.
1547 (has_all_memory): Return true.
1548 * target.c (raw_memory_xfer_partial): Revise comment
1549 regarding use of has_all_memory.
1550
1551 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1552
1553 * exec.h (section_table_xfer_memory): Revise declaration,
1554 replacing section name parameter with an optional callback
1555 predicate.
1556 * exec.c (section_table_xfer_memory): Likewise.
1557 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1558 of section_table_xfer_memory.
1559
1560 2020-07-22 Tom Tromey <tromey@adacore.com>
1561
1562 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1563 lookup_symbol_search_name.
1564
1565 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1566
1567 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1568 redundant local variable.
1569 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1570 reference, not pointer, update code accordingly.
1571
1572 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1573 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1574
1575 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1576 * jit.c (jit_breakpoint_re_set_internal): Use the
1577 `skip_jit_symbol_lookup` field.
1578
1579 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1580 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1581
1582 * jit.c (jit_read_descriptor): Define the descriptor address once,
1583 use twice.
1584 (jit_breakpoint_deleted): Move the declaration of the loop variable
1585 `iter` into the loop header.
1586 (jit_breakpoint_re_set_internal): Move the declaration of the local
1587 variable `objf_data` to the first point of definition.
1588 (jit_event_handler): Move the declaration of local variables
1589 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1590 Rename `objf` to `jited`.
1591
1592 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1593
1594 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1595 Remove.
1596 * jit.c (get_jiter_objfile_data): Update.
1597
1598 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1599 Simon Marchi <simon.marchi@polymtl.ca>
1600
1601 * jit.c (struct jit_program_space_data): Remove.
1602 (jit_program_space_key): Remove.
1603 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1604 stuff.
1605 (get_jit_program_space_data): Remove.
1606 (jit_breakpoint_deleted): Iterate on all of the program space's
1607 objfiles.
1608 (jit_inferior_init): Likewise.
1609 (jit_breakpoint_re_set_internal): Likewise. Also change return
1610 type to void.
1611 (jit_breakpoint_re_set): Pass current_program_space to
1612 jit_breakpoint_re_set_internal.
1613
1614 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1615
1616 * jit.h (struct jiter_objfile_data) <cached_code_address,
1617 jit_breakpoint>: Move to here from ...
1618 * jit.c (jit_program_space_data): ... here.
1619 (jiter_objfile_data::~jiter_objfile_data): Update.
1620 (jit_breakpoint_deleted): Update.
1621 (jit_breakpoint_re_set_internal): Update.
1622
1623 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1624
1625 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1626 checks.
1627 (jit_read_descriptor): Remove NULL check.
1628 (jit_event_handler): Add an assertion.
1629
1630 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1631
1632 * jit.h (struct jit_objfile_data): Split into...
1633 (struct jiter_objfile_data): ... this ...
1634 (struct jited_objfile_data): ... and this.
1635 * objfiles.h (struct objfile) <jit_data>: Remove.
1636 <jiter_data, jited_data>: New fields.
1637 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1638 (jiter_objfile_data::~jiter_objfile_data): ... this.
1639 (get_jit_objfile_data): Rename to ...
1640 (get_jiter_objfile_data): ... this.
1641 (add_objfile_entry): Update.
1642 (jit_read_descriptor): Use get_jiter_objfile_data.
1643 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1644 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1645 (jit_inferior_exit_hook): Use objfile's jited_data field.
1646
1647 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1648
1649 * jit.h: Forward-declare `struct minimal_symbol`.
1650 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1651 constructor, destructor, and an objfile* field.
1652 * jit.c (jit_objfile_data): Remove.
1653 (struct jit_objfile_data): Migrate from here to jit.h.
1654 (jit_objfile_data::~jit_objfile_data): New destructor
1655 implementation with code moved from free_objfile_data.
1656 (free_objfile_data): Delete.
1657 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1658 (jit_find_objf_with_entry_addr): Ditto.
1659 (jit_inferior_exit_hook): Ditto.
1660 (_initialize_jit): Remove the call to
1661 register_objfile_data_with_cleanup.
1662 * objfiles.h (struct objfile) <jit_data>: New field.
1663
1664 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1665
1666 * jit.h: Forward-declare `struct objfile`.
1667 (jit_event_handler): Add a second parameter, the JITer objfile.
1668 * jit.c (jit_read_descriptor): Change the signature to take the
1669 JITer objfile as an argument instead of the jit_program_space_data.
1670 (jit_inferior_init): Update the call to jit_read_descriptor.
1671 (jit_event_handler): Use the new JITer objfile argument when calling
1672 jit_read_descriptor.
1673 * breakpoint.c (handle_jit_event): Update the call to
1674 jit_event_handler to pass the JITer objfile.
1675
1676 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1677
1678 * gdbarch.c: Regenerate.
1679 * gdbarch.h: Regenerate.
1680 * gdbarch.sh (handle_segmentation_fault): Remove method.
1681 * infrun.c (handle_segmentation_fault): Remove.
1682 (print_signal_received_reason): Remove call to
1683 handle_segmentation_fault.
1684
1685 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1686
1687 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1688 Rename to sparc64_linux_report_signal_info and add siggnal
1689 argument.
1690 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1691 instead of sparc64_linux_handle_segmentation_fault.
1692
1693 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1694
1695 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1696 i386_linux_report_signal_info instead of
1697 i386_linux_handle_segmentation_fault.
1698 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1699 to i386_linux_report_signal_info and add siggnal argument.
1700 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1701 of i386_linux_handle_segmentation_fault.
1702 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1703 to i386_linux_report_signal_info and add siggnal argument.
1704
1705 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1706
1707 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1708 hook if present.
1709
1710 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1711
1712 * gdbarch.c: Regenerate.
1713 * gdbarch.h: Regenerate.
1714 * gdbarch.sh (report_signal_info): New method.
1715 * infrun.c (print_signal_received_reason): Invoke gdbarch
1716 report_signal_info hook if present.
1717
1718 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1719
1720 * python/py-registers.c : Add 'unordered_map' include.
1721 (gdbpy_new_reggroup): Renamed to...
1722 (gdbpy_get_reggroup): ...this. Update to only create register
1723 group descriptors when needed.
1724 (gdbpy_reggroup_iter_next): Update.
1725
1726 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1727
1728 * python/py-registers.c (gdbpy_register_object_data): New static
1729 global.
1730 (gdbpy_register_object_data_init): New function.
1731 (gdbpy_new_register_descriptor): Renamed to...
1732 (gdbpy_get_register_descriptor): ...this, and update to reuse
1733 existing register descriptors where possible.
1734 (gdbpy_register_descriptor_iter_next): Update.
1735 (gdbpy_initialize_registers): Register new gdbarch data.
1736
1737 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1738
1739 * linux-nat.c (stopped_pids): Make static.
1740
1741 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1742
1743 PR ada/26235
1744 * gdbtypes.c (ada_discrete_type_low_bound,
1745 ada_discrete_type_high_bound): Handle undefined bounds.
1746
1747 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1748
1749 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1750 declaration.
1751 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1752 function.
1753
1754 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1755
1756 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1757 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1758 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1759 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1760 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1761 method.
1762
1763 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1764
1765 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1766 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1767 which are deprecated in Guile 3.0.
1768 * configure.ac (try_guile_versions): Add "guile-3.0".
1769 * configure (try_guile_versions): Regenerate.
1770 * NEWS: Update entry.
1771
1772 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1773 Doug Evans <dje@google.com>
1774
1775 PR gdb/21104
1776 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1777 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1778 USING_GUILE_BEFORE_2_2.
1779 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1780 Change type to 'scm_t_port_type *'.
1781 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1782 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1783 parameter and honor it. Update callers.
1784 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1785 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1786 functions.
1787 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1788 USING_GUILE_BEFORE_2_2.
1789 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1790 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1791 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1792 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1793 and 'SCM_PORT_TYPE'.
1794 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1795 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1796 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1797 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1798 [!USING_GUILE_BEFORE_2_2]: New functions.
1799 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1800 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1801 'gdbscm_memory_port_read'.
1802 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1803 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1804 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1805 function.
1806 (ioscm_init_memory_port): Remove.
1807 (ioscm_init_memory_port_stream): New function
1808 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1809 function.
1810 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1811 Return scm_from_uint (0).
1812 (gdbscm_set_memory_port_read_buffer_size_x)
1813 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1814 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1815 Return scm_from_uint (0).
1816 (gdbscm_set_memory_port_write_buffer_size_x)
1817 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1818 * configure.ac (try_guile_versions): Add "guile-2.2".
1819 * configure: Regenerate.
1820 * NEWS: Add entry.
1821
1822 2020-07-18 Tom Tromey <tom@tromey.com>
1823
1824 * linux-nat.c (linux_multi_process): Remove.
1825 (linux_nat_target::supports_multi_process): Return true.
1826
1827 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1828
1829 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1830 (riscv_lookup_target_description): Return pointer out of
1831 unique_ptr.
1832 * target-descriptions.c (allocate_target_description): Add
1833 comment.
1834 (target_desc_deleter::operator()): Likewise.
1835 * target-descriptions.h (struct target_desc_deleter): Moved to
1836 gdbsupport/tdesc.h.
1837 (target_desc_up): Likewise.
1838
1839 2020-07-17 Tom Tromey <tromey@adacore.com>
1840
1841 * linux-nat.c (linux_nat_target::supports_non_stop)
1842 (linux_nat_target::always_non_stop_p): Use "true".
1843 (linux_nat_target::supports_disable_randomization): Use "true" and
1844 "false".
1845
1846 2020-07-16 Caroline Tice <cmtice@google.com>
1847
1848 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1849 (RNGLIST_HEADER_SIZE64): New constant definition.
1850 (struct dwop_section_names): Add rnglists_dwo.
1851 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1852 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1853 (struct dwo_sections): Add rnglists field.
1854 (read_attribut_reprocess): Add tag parameter.
1855 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1856 (cu_debug_rnglists_section): New function (decl & definition).
1857 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1858 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1859 die whose range is being checked; get rnglist section from
1860 cu_debug_rnglists_section, to get from either objfile or dwo file as
1861 appropriate. Add cases for DW_RLE_base_addressx,
1862 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1863 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1864 test inside if-condition and updating complaint message.
1865 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1866 dwarf2_rnglists_process.
1867 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1868 dwarf2_ranges_process.
1869 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1870 need_ranges_base and update comment appropriately. Also pass die tag
1871 to dwarf2_ranges_read.
1872 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1873 need_ranges_base and update comment appropriately. Also pass die tag
1874 to dwarf2_ranges_process.
1875 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1876 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1877 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1878 need_ranges_base and update comment appropriately. Also pass die tag
1879 to read_attribute_reprocess and dwarf2_ranges_read.
1880 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1881 and update function comment appropriately.
1882 (read_loclist_index): Call read_loclists_rnglists_header instead of
1883 read_loclist_header.
1884 (read_rnglist_index): New function.
1885 (read_attribute_reprocess): Add tag parameter. Add code for
1886 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1887 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1888
1889 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1890
1891 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1892 being resolved.
1893
1894 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1895
1896 * arch-utils.c (show_architecture): Update formatting of messages.
1897
1898 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1899
1900 * gdbtypes.h (struct type) <bounds>: Handle array and string
1901 types.
1902 * ada-lang.c (assign_aggregate): Use type::bounds on
1903 array/string type.
1904 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1905 * c-varobj.c (c_number_of_children): Likewise.
1906 (c_describe_child): Likewise.
1907 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1908 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1909 (f_type_print_base): Likewise.
1910 * f-valprint.c (f77_array_offset_tbl): Likewise.
1911 (f77_get_upperbound): Likewise.
1912 (f77_print_array_1): Likewise.
1913 * guile/scm-type.c (gdbscm_type_range): Likewise.
1914 * m2-typeprint.c (m2_array): Likewise.
1915 (m2_is_long_set_of_type): Likewise.
1916 * m2-valprint.c (get_long_set_bounds): Likewise.
1917 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1918 * python/py-type.c (typy_range): Likewise.
1919 * rust-lang.c (rust_internal_print_type): Likewise.
1920 * type-stack.c (type_stack::follow_types): Likewise.
1921 * valarith.c (value_subscripted_rvalue): Likewise.
1922 * valops.c (value_cast): Likewise.
1923
1924 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1925
1926 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1927 callers to use the equivalent accessor methods.
1928
1929 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1930
1931 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1932 (struct type) <bit_stride>: New method.
1933 (TYPE_BIT_STRIDE): Remove.
1934 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1935
1936 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1937
1938 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1939 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1940 callers to use the equivalent accessor methods instead.
1941
1942 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1943
1944 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1945 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1946 callers to use the equivalent accessor methods instead.
1947
1948 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1949
1950 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1951 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1952 to use dynamic_prop::kind.
1953
1954 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1955
1956 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1957 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1958 to get the bound property's kind and check against
1959 PROP_UNDEFINED.
1960
1961 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1962
1963 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1964 all callers to use type::range_bounds followed by
1965 dynamic_prop::{low,high}.
1966
1967 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1968
1969 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1970 const_val, set_const_val, baton, set_locexpr, set_loclist,
1971 set_addr_offset, variant_parts, set_variant_parts,
1972 original_type, set_original_type>: New methods.
1973 <kind>: Rename to...
1974 <m_kind>: ... this. Update all users to use the new methods
1975 instead.
1976 <data>: Rename to...
1977 <m_data>: ... this. Update all users to use the new methods
1978 instead.
1979
1980 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1981
1982 * gdbtypes.c (get_discrete_bounds): Return failure if
1983 the range type's bounds are not both defined and constant
1984 values.
1985 (get_array_bounds): Update comment. Remove undefined bound check.
1986
1987 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1988
1989 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1990 the type::bounds method directly.
1991
1992 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1993
1994 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1995 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1996 are used to set the range type's bounds to use set_bounds.
1997
1998 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1999
2000 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2001
2002 2020-07-10 Pedro Alves <pedro@palves.net>
2003
2004 * gdbthread.h (inferior_ref): Define.
2005 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2006 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2007 * thread.c
2008 (scoped_restore_current_thread::restore):
2009 Adjust to gdb::ref_ptr.
2010 (scoped_restore_current_thread::~scoped_restore_current_thread):
2011 Remove manual decref handling.
2012 (scoped_restore_current_thread::scoped_restore_current_thread):
2013 Adjust to use
2014 inferior_ref::new_reference/thread_info_ref::new_reference.
2015 Incref the thread before calling get_frame_id instead of after.
2016 Let TARGET_CLOSE_ERROR propagate.
2017
2018 2020-07-10 Pedro Alves <pedro@palves.net>
2019
2020 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2021 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2022 NOT_AVAILABLE_ERROR.
2023 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2024 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2025
2026 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2027 Pedro Alves <pedro@palves.net>
2028
2029 PR gdb/26199
2030 * infrun.c (threads_are_resumed_pending_p): Delete.
2031 (do_target_wait): Remove threads_are_executing and
2032 threads_are_resumed_pending_p checks from the inferior_matches
2033 lambda. Update comments.
2034
2035 2020-07-10 Pedro Alves <pedro@palves.net>
2036
2037 PR gdb/26199
2038 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2039 executing threads.
2040
2041 2020-07-10 Pedro Alves <pedro@palves.net>
2042
2043 PR gdb/26199
2044 * infrun.c (handle_no_resumed): Handle multiple targets.
2045
2046 2020-07-10 Pedro Alves <pedro@palves.net>
2047
2048 PR gdb/26199
2049 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2050 target_is_async_p.
2051
2052 2020-07-10 Pedro Alves <pedro@palves.net>
2053
2054 PR gdb/26199
2055 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2056 threads, not all threads.
2057
2058 2020-07-10 Pedro Alves <pedro@palves.net>
2059
2060 PR gdb/26199
2061 * remote.c (remote_target::open_1): Pass remote target pointer as
2062 data to create_async_event_handler.
2063 (remote_async_inferior_event_handler): Mark async event handler
2064 before returning if the remote target still has either pending
2065 events or unacknowledged notifications.
2066
2067 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2068
2069 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2070 declaration.
2071 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2072 function.
2073
2074 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2075
2076 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2077 inferior_ptid.
2078
2079 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2080
2081 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2082 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2083 AT_FREEBSD_PS_STRINGS.
2084
2085 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2086
2087 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2088 of debugfile path on Windows.
2089
2090 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2091
2092 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2093 argument to 'data'.
2094
2095 2020-07-08 Tom Tromey <tromey@adacore.com>
2096
2097 * ada-lang.c (ada_exception_message_1): Use read_memory.
2098
2099 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2100
2101 PR python/22748
2102 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2103 special handling for inline frames.
2104 * findvar.c (value_of_register_lazy): Skip inline frames when
2105 creating lazy register values.
2106 * frame.c (frame_id_computed_p): Delete definition.
2107 * frame.h (frame_id_computed_p): Delete declaration.
2108
2109 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2110
2111 * NEWS: Mention additions to Python API.
2112 * python/py-arch.c (archpy_register_groups): New function.
2113 (arch_object_methods): Add 'register_groups' method.
2114 * python/py-registers.c (reggroup_iterator_object): New struct.
2115 (reggroup_object): New struct.
2116 (gdbpy_new_reggroup): New function.
2117 (gdbpy_reggroup_to_string): New function.
2118 (gdbpy_reggroup_name): New function.
2119 (gdbpy_reggroup_iter): New function.
2120 (gdbpy_reggroup_iter_next): New function.
2121 (gdbpy_new_reggroup_iterator): New function
2122 (gdbpy_initialize_registers): Register new types.
2123 (reggroup_iterator_object_type): Define new Python type.
2124 (gdbpy_reggroup_getset): New static global.
2125 (reggroup_object_type): Define new Python type.
2126 * python/python-internal.h
2127
2128 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2129
2130 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2131 * python/py-arch.c (archpy_registers): New function.
2132 (arch_object_methods): Add 'registers' method.
2133 * python/py-registers.c: New file.
2134 * python/python-internal.h
2135 (gdbpy_new_register_descriptor_iterator): Declare.
2136 (gdbpy_initialize_registers): Declare.
2137 * python/python.c (do_start_initialization): Call
2138 gdbpy_initialize_registers.
2139 * NEWS: Mention additions to the Python API.
2140
2141 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2142
2143 * NEWS: Mention new Python API method.
2144 * python/py-unwind.c (pending_framepy_architecture): New function.
2145 (pending_frame_object_methods): Add architecture method.
2146
2147 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2148
2149 * gdbarch.c: Regenerate.
2150 * gdbarch.h: Regenerate.
2151 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2152 (gdbarch_data): Use internal_error for the case where
2153 deprecated_set_gdbarch_data was originally needed.
2154 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2155 and use passed in obstack.
2156 (libunwind_frame_set_descr): Should no longer get back NULL from
2157 gdbarch_data.
2158 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2159 type.
2160 * user-regs.c (user_regs_init): Update parameters, and use passed
2161 in obstack.
2162 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2163 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2164
2165 2020-07-06 Tom de Vries <tdevries@suse.de>
2166
2167 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2168 End-Of-Sequence in lte_is_less_than.
2169 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2170 "gdb: Don't reorder line table entries too much when sorting".
2171
2172 2020-07-06 Tom de Vries <tdevries@suse.de>
2173
2174 PR tui/26205
2175 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2176
2177 2020-07-05 Tom de Vries <tdevries@suse.de>
2178
2179 PR build/26187
2180 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2181 std::uncaught_exceptions instead of deprecated
2182 std::uncaught_exception.
2183
2184 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2185
2186 * macroexp.h (macro_stringify): Return
2187 gdb::unique_xmalloc_ptr<char>.
2188 * macroexp.c (macro_stringify): Likewise.
2189 * macrotab.c (fixup_definition): Update.
2190
2191 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2192
2193 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2194 (lex_one_token): Update.
2195 * macroexp.c (struct macro_buffer) <release>: Return
2196 gdb::unique_xmalloc_ptr<char>.
2197 (macro_stringify): Update.
2198 (macro_expand): Update.
2199 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2200 * macroexp.h (macro_expand_next): Likewise.
2201
2202 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2203
2204 * macroexp.h (macro_lookup_ftype): Remove.
2205 (macro_expand, macro_expand_once, macro_expand_next): Remove
2206 lookup function parameters, add scope parameter.
2207 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2208 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2209 * macroscope.h (standard_macro_lookup): Change parameter type
2210 to macro_scope.
2211 * macroscope.c (standard_macro_lookup): Likewise.
2212 * c-exp.y (lex_one_token): Update.
2213 * macrocmd.c (macro_expand_command): Likewise.
2214 (macro_expand_once_command): Likewise.
2215
2216 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2217
2218 * inf-loop.c (inferior_event_handler): Remove client_data param.
2219 * inf-loop.h (inferior_event_handler): Likewise.
2220 * infcmd.c (step_1): Adjust.
2221 * infrun.c (proceed): Adjust.
2222 (fetch_inferior_event): Remove client_data param.
2223 (infrun_async_inferior_event_handler): Adjust.
2224 * infrun.h (fetch_inferior_event): Remove `void *` param.
2225 * linux-nat.c (handle_target_event): Adjust.
2226 * record-btrace.c (record_btrace_handle_async_inferior_event):
2227 Adjust.
2228 * record-full.c (record_full_async_inferior_event_handler):
2229 Adjust.
2230 * remote.c (remote_async_inferior_event_handler): Adjust.
2231
2232 2020-07-01 Tom Tromey <tom@tromey.com>
2233
2234 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2235 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2236
2237 2020-07-01 Tom Tromey <tom@tromey.com>
2238
2239 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2240 tui_gen_win_info.
2241 (tui_win_info::make_window): Merge with
2242 tui_gen_win_info::make_window.
2243 (tui_win_info::make_visible): Move from tui_gen_win_info.
2244 * tui/tui-win.c (tui_win_info::max_width): Move from
2245 tui_gen_win_info.
2246 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2247 type.
2248 <window_factory>: Likewise.
2249 * tui/tui-layout.c (tui_win_info::resize): Move from
2250 tui_gen_win_info.
2251 (make_standard_window): Change return type.
2252 (get_locator_window, tui_get_window_by_name): Likewise.
2253 (tui_layout_window::apply): Remove a cast.
2254 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2255 (struct tui_win_info): Merge with tui_gen_win_info.
2256 (struct tui_gen_win_info): Remove.
2257
2258 2020-07-01 Tom Tromey <tom@tromey.com>
2259
2260 * tui/tui-stack.h (struct tui_locator_window): Derive from
2261 tui_win_info.
2262 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2263 <can_box>: New method.
2264
2265 2020-07-01 Tom Tromey <tom@tromey.com>
2266
2267 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2268
2269 2020-07-01 Tom Tromey <tom@tromey.com>
2270
2271 * tui/tui-regs.c (tui_data_window::display_registers_from)
2272 (tui_data_window::display_registers_from)
2273 (tui_data_window::first_data_item_displayed)
2274 (tui_data_window::delete_data_content_windows): Update.
2275 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2276 Remove.
2277 (tui_data_window::check_register_values): Update.
2278 (tui_data_item_window::rerender): Add parameters. Update.
2279 (tui_data_item_window::refresh_window): Remove.
2280 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2281 virtual.
2282 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2283 tui_gen_win_info.
2284 <refresh_window, max_height, min_height>: Remove.
2285 <rerender>: Add parameters.
2286 <x, y, visible>: New members.
2287 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2288 <m_item_width>: New member.
2289
2290 2020-07-01 Tom Tromey <tom@tromey.com>
2291
2292 * tui/tui-regs.c (tui_data_window::show_register_group)
2293 (tui_data_window::check_register_values): Update.
2294 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2295 from item_no.
2296
2297 2020-07-01 Tom Tromey <tom@tromey.com>
2298
2299 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2300 useless "if".
2301
2302 2020-07-01 Tom Tromey <tom@tromey.com>
2303
2304 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2305 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2306
2307 2020-07-01 Tom Tromey <tom@tromey.com>
2308
2309 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2310 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2311 (struct tui_line_or_address): Move from tui-data.h.
2312 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2313 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2314 (tui_cmd_window, tui_source_window_base, tui_source_window)
2315 (tui_disasm_window): Don't declare.
2316 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2317 to tui-winsource.h.
2318 (SINGLE_KEY): Move to tui-stack.c.
2319
2320 2020-07-01 Tom Tromey <tom@tromey.com>
2321
2322 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2323 std::string.
2324 * tui/tui-regs.c (class tab_expansion_file): New.
2325 (tab_expansion_file::write): New method.
2326 (tui_register_format): Change return type. Use
2327 tab_expansion_file.
2328 (tui_get_register, tui_data_window::display_registers_from)
2329 (tui_data_item_window::rerender): Update.
2330 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2331 * tui/tui-io.c (tui_expand_tabs): Remove.
2332
2333 2020-07-01 Tom Tromey <tom@tromey.com>
2334
2335 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2336
2337 2020-07-01 Fangrui Song <maskray@google.com>
2338
2339 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2340
2341 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2342
2343 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2344 forms for DW_AT_associated and DW_AT_allocated attributes,
2345 which is already checked in function attr_to_dynamic_prop.
2346
2347 2020-06-30 Tom Tromey <tromey@adacore.com>
2348
2349 * dwarf2/read.c (quirk_rust_enum): Correctly call
2350 alloc_rust_variant for default-less enum.
2351
2352 2020-06-30 Tom Tromey <tromey@adacore.com>
2353
2354 PR build/26183:
2355 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2356 gdb::to_string.
2357
2358 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2359
2360 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2361 * gdbarch.h: Re-generate.
2362
2363 2020-06-28 Tom Tromey <tom@tromey.com>
2364
2365 * command.h (cmd_types): Remove.
2366 (cmd_type): Don't declare.
2367 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2368 typedef.
2369 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2370 * cli/cli-decode.c (cmd_type): Remove.
2371
2372 2020-06-27 Pedro Alves <palves@redhat.com>
2373
2374 * fork-child.c (prefork_hook): Adjust.
2375 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2376 Delete.
2377 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2378 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2379 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2380 Remove declarations.
2381 (struct inferior) <set_tty, tty>: New methods.
2382 (struct inferior) <terminal>: Rename to ...
2383 (struct inferior) <m_terminal>: ... this and make private.
2384 * main.c (captured_main_1): Adjust.
2385 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2386 (mi_cmd_inferior_tty_show): Adjust.
2387 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2388 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2389
2390 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2391
2392 * configure.ac: Add --enable-libctf: handle --disable-static
2393 properly.
2394 * acinclude.m4: sinclude ../config/enable.m4.
2395 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2396 (LIBCTF): Substitute in.
2397 (CTF_DEPS): New, likewise.
2398 (CLIBS): libctf needs symbols from libbfd: move earlier.
2399 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2400 flags.
2401 * ctfread.c: Surround in ENABLE_LIBCTF.
2402 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2403 * configure: Regenerate.
2404 * config.in: Likewise.
2405
2406 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2407
2408 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2409
2410 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2411
2412 * inferior.h (struct inferior) <terminal>: Change type to
2413 gdb::unique_xmalloc_ptr<char>.
2414 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2415 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2416 field, adjust to unique pointer.
2417 (get_inferior_io_terminal): Adjust to unique pointer.
2418
2419 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2420
2421 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2422 registers, not just the known core set of registers.
2423
2424 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2425
2426 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2427 fflags, frm, and fcsr registers.
2428 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2429 restore groups.
2430 (riscv_tdesc_unknown_reg): New function.
2431 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2432 tdesc_use_registers.
2433 * riscv-tdep.h (struct gdbarch_tdep): Add
2434 unknown_csrs_first_regnum, unknown_csrs_count,
2435 duplicate_fflags_regnum, duplicate_frm_regnum, and
2436 duplicate_fcsr_regnum fields.
2437
2438 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2439
2440 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2441 callback, use the callback (when not null) to help number unknown
2442 registers.
2443 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2444 (tdesc_use_registers): Add extra parameter to declaration.
2445
2446 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2447
2448 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2449 in the file.
2450 (class riscv_pending_register_alias): Likewise.
2451 (riscv_register_feature::register_info): Change 'required_p' field
2452 to 'required', and change its type. Add 'check' member function.
2453 (riscv_register_feature::register_info::check): Define new member
2454 function.
2455 (riscv_xreg_feature): Change initialisation of 'required' field.
2456 (riscv_freg_feature): Likewise.
2457 (riscv_virtual_feature): Likewise.
2458 (riscv_csr_feature): Likewise.
2459 (riscv_check_tdesc_feature): Take extra parameter, the csr
2460 tdesc_feature, rewrite the function to use the new
2461 riscv_register_feature::register_info::check function.
2462 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2463
2464 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2465
2466 * features/Makefile: Remove all references to the deleted files
2467 below.
2468 * features/riscv/32bit-csr.c: Deleted.
2469 * features/riscv/32bit-csr.xml: Deleted.
2470 * features/riscv/64bit-csr.c: Deleted.
2471 * features/riscv/64bit-csr.xml: Deleted.
2472 * features/riscv/rebuild-csr-xml.sh: Deleted.
2473
2474 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2475
2476 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2477 whitespace error for declaration of names member variable.
2478 (struct riscv_register_feature): Add new prefer_first_name member
2479 variable, and fix whitespace error in declaration of registers.
2480 (riscv_xreg_feature): Initialize prefer_first_name field.
2481 (riscv_freg_feature): Likewise.
2482 (riscv_virtual_feature): Likewise.
2483 (riscv_csr_feature): Likewise.
2484 (riscv_register_name): Expand on comments. Remove register name
2485 modifications for CSR and virtual registers.
2486
2487 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2488
2489 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2490 errors.
2491
2492 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2493
2494 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2495 riscv-opc.h.
2496 (class riscv_pending_register_alias): New class.
2497 (riscv_check_tdesc_feature): Take vector of pending aliases and
2498 populate it as appropriate.
2499 (riscv_setup_register_aliases): Delete.
2500 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2501 to riscv_check_tdesc_feature in all cases. Use the vector to
2502 create the register aliases.
2503
2504 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2505
2506 * sol2-tdep.c (sol2_static_transform_name): Remove.
2507 (sol2_init_abi): Don't register it.
2508 * gdbarch.sh (static_transform_name): Remove.
2509 * gdbarch.c, gdbarch.h: Regenerate.
2510
2511 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2512 gdbarch_static_transform_name.
2513 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2514 * stabsread.c (define_symbol) <'X'>: Remove.
2515 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2516 handling.
2517 <'V'>: Likewise.
2518 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2519 <'S'>: Remove call to gdbarch_static_transform_name.
2520
2521 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2522
2523 * procfs.c (procfs_pre_trace): New function.
2524 (procfs_target::create_inferior): Pass it to fork_inferior.
2525
2526 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2527
2528 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2529 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2530 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2531 sol2-tdep.o, sparc-sol2-tdep.o.
2532 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2533 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2534 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2535 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2536
2537 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2538
2539 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2540 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2541 Call sol2_init_abi.
2542 Remove calls to set_gdbarch_skip_solib_resolver,
2543 set_gdbarch_core_pid_to_str.
2544 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2545 (i386_sol2_static_transform_name): Remove.
2546 (i386_sol2_init_abi): Call sol2_init_abi.
2547 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2548 set_gdbarch_static_transform_name,
2549 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2550 Use sol2_sigtramp_p.
2551 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2552 (sol2_sigtramp_p): New function.
2553 (sol2_static_transform_name): New function.
2554 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2555 (sol2_init_abi): New function.
2556 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2557 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2558 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2559 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2560 (sparc_sol2_static_transform_name): Remove.
2561 (sparc32_sol2_init_abi): Call sol2_init_abi.
2562 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2563 set_gdbarch_static_transform_name,
2564 set_gdbarch_skip_solib_resolver,
2565 set_gdbarch_core_pid_to_str.
2566 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2567 (sparc_sol2_static_transform_name): Remove
2568 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2569 call sol2_sigtramp_p.
2570 (sparc64_sol2_init_abi): Call sol2_init_abi.
2571 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2572 set_gdbarch_static_transform_name,
2573 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2574
2575 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2576
2577 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2578 * exec.c (validate_exec_file): If from_tty, set both
2579 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2580 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2581 and from_tty, unconditionally ask a confirmation.
2582
2583 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2584
2585 * target-descriptions.c (tdesc_architecture_name): Protect against
2586 NULL pointer dereference.
2587 (maint_print_xml_tdesc_cmd): New function.
2588 (_initialize_target_descriptions): Register new 'maint print
2589 xml-tdesc' command and give it the filename completer.
2590 * NEWS: Mention new 'maint print xml-tdesc' command.
2591
2592 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2593
2594 * target-descriptions.c (class tdesc_compatible_info): New class.
2595 (struct target_desc): Change type of compatible vector.
2596 (tdesc_compatible_p): Update for change in type of
2597 target_desc::compatible.
2598 (tdesc_compatible_info_list): New function.
2599 (tdesc_compatible_info_arch_name): New function.
2600 (tdesc_add_compatible): Update for change in type of
2601 target_desc::compatible.
2602 (print_c_tdesc::visit_pre): Likewise.
2603
2604 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2605
2606 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2607 whitespace to underscore.
2608 (maint_print_c_tdesc_cmd): Use fake filename for target
2609 descriptions that came from the target.
2610 (_initialize_target_descriptions): Add filename command completion
2611 for 'maint print c-tdesc'.
2612
2613 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2614
2615 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2616 lines.
2617
2618 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2619
2620 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2621 lines.
2622 (dwarf2_find_location_expression): Likewise.
2623 (call_site_parameter_matches): Likewise.
2624 (dwarf2_compile_expr_to_ax): Likewise.
2625 (disassemble_dwarf_expression): Likewise.
2626 (loclist_describe_location): Likewise.
2627
2628 2020-06-23 Pedro Alves <palves@redhat.com>
2629
2630 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2631 progspace-and-thread.h. Include scoped-mock-context.h instead.
2632 (register_to_value_test): Use scoped_mock_context.
2633 * regcache.c: Include "scoped-mock-context.h".
2634 (cooked_read_test): Don't error out if a target is already pushed.
2635 Use scoped_mock_context. Adjust.
2636 * scoped-mock-context.h: New file.
2637
2638 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2639
2640 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2641 initializer.
2642 (ada_language::is_string_type_p): New member function.
2643 * c-lang.c (c_language_data): Delete la_is_string_type_p
2644 initializer.
2645 (cplus_language_data): Likewise.
2646 (asm_language_data): Likewise.
2647 (minimal_language_data): Likewise.
2648 * d-lang.c (d_language_data): Likewise.
2649 * f-lang.c (f_is_string_type_p): Delete function, implementation
2650 moved to f_language::is_string_type_p.
2651 (f_language_data): Delete la_is_string_type_p initializer.
2652 (f_language::is_string_type_p): New member function,
2653 implementation from f_is_string_type_p.
2654 * go-lang.c (go_is_string_type_p): Delete function, implementation
2655 moved to go_language::is_string_type_p.
2656 (go_language_data): Delete la_is_string_type_p initializer.
2657 (go_language::is_string_type_p): New member function,
2658 implementation from go_is_string_type_p.
2659 * language.c (language_defn::is_string_type_p): Define new member
2660 function.
2661 (default_is_string_type_p): Make static, add comment copied from
2662 header file.
2663 (unknown_language_data): Delete la_is_string_type_p initializer.
2664 (unknown_language::is_string_type_p): New member function.
2665 (auto_language_data): Delete la_is_string_type_p initializer.
2666 (auto_language::is_string_type_p): New member function.
2667 * language.h (language_data): Delete la_is_string_type_p field.
2668 (language_defn::is_string_type_p): Declare new function.
2669 (default_is_string_type_p): Delete desclaration, move comment to
2670 definition.
2671 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2672 moved to m2_language::is_string_type_p.
2673 (m2_language_data): Delete la_is_string_type_p initializer.
2674 (m2_language::is_string_type_p): New member function,
2675 implementation from m2_is_string_type_p.
2676 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2677 initializer.
2678 * opencl-lang.c (opencl_language_data): Likewise.
2679 * p-lang.c (pascal_is_string_type_p): Delete function,
2680 implementation moved to pascal_language::is_string_type_p.
2681 (pascal_language_data): Delete la_is_string_type_p initializer.
2682 (pascal_language::is_string_type_p): New member function,
2683 implementation from pascal_is_string_type_p.
2684 * rust-lang.c (rust_is_string_type_p): Delete function,
2685 implementation moved to rust_language::is_string_type_p.
2686 (rust_language_data): Delete la_is_string_type_p initializer.
2687 (rust_language::is_string_type_p): New member function,
2688 implementation from rust_is_string_type_p.
2689 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2690 is_string_type_p.
2691
2692 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2693
2694 * ada-lang.c (ada_language_data): Delete la_print_typedef
2695 initializer.
2696 (ada_language::print_typedef): New member function.
2697 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2698 (cplus_language_data): Likewise.
2699 (asm_language_data): Likewise.
2700 (minimal_language_data): Likewise.
2701 * d-lang.c (d_language_data): Likewise.
2702 * f-lang.c (f_language_data): Likewise.
2703 (f_language::print_typedef): New member function.
2704 * go-lang.c (go_language_data): Delete la_print_typedef
2705 initializer.
2706 * language.c (language_defn::print_typedef): Define member
2707 function.
2708 (unknown_language_data): Delete la_print_typedef initializer.
2709 (unknown_language::print_typedef): New member function.
2710 (auto_language_data): Delete la_print_typedef initializer.
2711 (auto_language::print_typedef): New member function.
2712 * language.h (language_data): Delete la_print_typedef field.
2713 (language_defn::print_typedef): Declare new member function.
2714 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2715 (default_print_typedef): Delete declaration.
2716 * m2-lang.c (m2_language_data): Delete la_print_typedef
2717 initializer.
2718 (m2_language::print_typedef): New member function.
2719 * objc-lang.c (objc_language_data): Delete la_print_typedef
2720 initializer.
2721 * opencl-lang.c (opencl_language_data): Likewise.
2722 * p-lang.c (pascal_language_data): Likewise.
2723 (pascal_language::print_typedef): New member function.
2724 * rust-lang.c (rust_print_typedef): Delete function,
2725 implementation moved to rust_language::print_typedef.
2726 (rust_language): Delete la_print_typedef initializer.
2727 (rust_language::print_typedef): New member function,
2728 implementation from rust_print_typedef.
2729 * typeprint.c (default_print_typedef): Delete.
2730
2731 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2732
2733 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2734 (ada_language::printstr): New member function.
2735 * c-lang.c (c_language_data): Delete la_printstr initializer.
2736 (cplus_language_data): Likewise.
2737 (asm_language_data): Likewise.
2738 (minimal_language_data): Likewise.
2739 * d-lang.c (d_language_data): Likewise.
2740 * f-lang.c (f_printstr): Rename to f_language::printstr.
2741 (f_language_data): Delete la_printstr initializer.
2742 (f_language::printstr): New member function, implementation from
2743 f_printstr.
2744 * go-lang.c (go_language_data): Delete la_printstr initializer.
2745 * language.c (language_defn::printstr): Define new member
2746 function.
2747 (unk_lang_printstr): Delete.
2748 (unknown_language_data): Delete la_printstr initializer.
2749 (unknown_language::printstr): New member function.
2750 (auto_language_data): Delete la_printstr initializer.
2751 (auto_language::printstr): New member function.
2752 * language.h (language_data): Delete la_printstr field.
2753 (language_defn::printstr): Declare new member function.
2754 (LA_PRINT_STRING): Update call to printstr.
2755 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2756 (m2_language_data): Delete la_printstr initializer.
2757 (m2_language::printstr): New member function, implementation from
2758 m2_printstr.
2759 * objc-lang.c (objc_language_data): Delete la_printstr
2760 initializer.
2761 * opencl-lang.c (opencl_language_data): Likewise.
2762 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2763 (pascal_language_data): Delete la_printstr initializer.
2764 (pascal_language::printstr): New member function, implementation
2765 from pascal_printstr.
2766 * p-lang.h (pascal_printstr): Delete declaration.
2767 * rust-lang.c (rust_printstr): Update header comment.
2768 (rust_language_data): Delete la_printstr initializer.
2769 (rust_language::printstr): New member function.
2770
2771 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2772
2773 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2774 (ada_language::printchar): New member function.
2775 * c-lang.c (c_language_data): Delete la_printchar initializer.
2776 (cplus_language_data): Likewise.
2777 (asm_language_data): Likewise.
2778 (minimal_language_data): Likewise.
2779 * d-lang.c (d_language_data): Likewise.
2780 * f-lang.c (f_printchar): Rename to f_language::printchar.
2781 (f_language_data): Delete la_printchar initializer.
2782 (f_language::printchar): New member function, implementation from
2783 f_printchar.
2784 * go-lang.c (go_language_data): Delete la_printchar initializer.
2785 * language.c (unk_lang_printchar): Delete.
2786 (language_defn::printchar): Define new member function.
2787 (unknown_language_data): Delete la_printchar initializer.
2788 (unknown_language::printchar): New member function.
2789 (auto_language_data): Delete la_printchar initializer.
2790 (auto_language::printchar): New member function.
2791 * language.h (language_data): Delete la_printchar field.
2792 (language_defn::printchar): Declare new member function.
2793 (LA_PRINT_CHAR): Update call to printchar.
2794 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2795 (m2_language::printchar): New member function.
2796 * objc-lang.c (objc_language_data): Delete la_printchar
2797 initializer.
2798 * opencl-lang.c (opencl_language_data): Likewise.
2799 * p-lang.c (pascal_language_data): Delete la_printchar
2800 initializer.
2801 (pascal_language::printchar): New member function.
2802 * rust-lang.c (rust_printchar): Rename to
2803 rust_language::printchar.
2804 (rust_language_data): Delete la_printchar initializer.
2805 (rust_language::printchar): New member function, implementation
2806 from rust_printchar.
2807
2808 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2809
2810 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2811 (ada_language_data): Delete la_emitchar initializer.
2812 (ada_language::emitchar): New member function, implementation from
2813 emit_char.
2814 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2815 (cplus_language_data): Likewise.
2816 (asm_language_data): Likewise.
2817 (minimal_language_data): Likewise.
2818 * d-lang.c (d_language_data): Likewise.
2819 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2820 (f_language_data): Delete la_emitchar initializer.
2821 (f_language::emitchar): New member function, implementation from
2822 f_emit_char.
2823 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2824 * language.c (unk_lang_emit_char): Delete.
2825 (language_defn::emitchar): New member function definition.
2826 (unknown_language_data): Delete la_emitchar initializer.
2827 (unknown_language::emitchar): New member function.
2828 (auto_language_data): Delete la_emitchar initializer.
2829 (auto_language::emitchar): New member function.
2830 * language.h (language_data): Delete la_emitchar field.
2831 (language_defn::emitchar): New member field declaration.
2832 (LA_EMIT_CHAR): Update call to emitchar.
2833 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2834 (m2_language_data): Delete la_emitchar initializer.
2835 (m2_language::emitchar): New member function, implementation from
2836 m2_emit_char.
2837 * objc-lang.c (objc_language_data): Delete la_emitchar
2838 initializer.
2839 * opencl-lang.c (opencl_language_data): Likewise.
2840 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2841 (pascal_language_data): Delete la_emitchar initializer.
2842 (pascal_language::emitchar): New member function, implementation
2843 from pascal_emit_char.
2844 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2845 (rust_language_data): Delete la_emitchar initializer.
2846 (rust_language::emitchar): New member function, implementation
2847 from rust_emitchar.
2848
2849 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2850
2851 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2852 (ada_language_data): Delete la_post_parser initializer.
2853 (ada_language::post_parser): New member function.
2854 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2855 (cplus_language_data): Likewise.
2856 (asm_language_data): Likewise.
2857 (minimal_language_data): Likewise.
2858 * d-lang.c (d_language_data): Likewise.
2859 * f-lang.c (f_language_data): Likewise.
2860 * go-lang.c (go_language_data): Likewise.
2861 * language.c (unknown_language_data): Likewise.
2862 (auto_language_data): Likewise.
2863 * language.h (language_data): Delete la_post_parser field.
2864 (language_defn::post_parser): New member function.
2865 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2866 * objc-lang.c (objc_language_data): Likewise.
2867 * opencl-lang.c (opencl_language_data): Likewise.
2868 * p-lang.c (pascal_language_data): Likewise.
2869 * parse.c (parse_exp_in_context): Update call to post_parser.
2870 (null_post_parser): Delete definition.
2871 * parser-defs.h (null_post_parser): Delete declaration.
2872 * rust-lang.c (rust_language_data): Delete la_post_parser
2873 initializer.
2874
2875 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2876
2877 * ada-lang.c (parse): Rename to ada_language::parser.
2878 (ada_language_data): Delete la_parser initializer.
2879 (ada_language::parser): New member function, implementation from
2880 parse.
2881 * c-lang.c (c_language_data): Delete la_parser initializer.
2882 (cplus_language_data): Likewise.
2883 (asm_language_data): Likewise.
2884 (minimal_language_data): Likewise.
2885 * d-lang.c (d_language_data): Likewise.
2886 (d_language::parser): New member function.
2887 * f-lang.c (f_language_data): Delete la_parser initializer.
2888 (f_language::parser): New member function.
2889 * go-lang.c (go_language_data): Delete la_parser initializer.
2890 (go_language::parser): New member function.
2891 * language.c (unk_lang_parser): Delete.
2892 (language_defn::parser): Define new member function.
2893 (unknown_language_data): Delete la_parser initializer.
2894 (unknown_language::parser): New member function.
2895 (auto_language_data): Delete la_parser initializer.
2896 (auto_language::parser): New member function.
2897 * language.h (language_data): Delete la_parser field.
2898 (language_defn::parser): Declare new member function.
2899 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2900 (m2_language::parser): New member function.
2901 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2902 * opencl-lang.c (opencl_language_data): Likewise.
2903 * p-lang.c (pascal_language_data): Likewise.
2904 (pascal_language::parser): New member function.
2905 * parse.c (parse_exp_in_context): Update call to parser.
2906 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2907 (rust_language::parser): New member function.
2908
2909 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2910
2911 * top.c (print_gdb_configuration): Print --with-python-libdir
2912 configuration value.
2913
2914 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2915
2916 * NEWS: Mention change to the alias command.
2917
2918 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2919
2920 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2921 (alias_command_completer)
2922 (make_alias_options_def_group): New functions.
2923 (alias_opts, alias_option_defs): New struct and array.
2924 (alias_usage_error): Update usage.
2925 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2926 Use option framework.
2927 (_initialize_cli_cmds): Update alias command help.
2928 Update aliases command help.
2929 (show_user):
2930 Add NULL for new default_args lookup_cmd argument.
2931 (valid_command_p): Rename to validate_aliased_command.
2932 Add NULL for new default_args lookup_cmd argument. Verify that the
2933 aliased_command has no default args.
2934 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2935 (lookup_cmd_1, lookup_cmd): New argument default_args.
2936 (add_alias_cmd):
2937 Add NULL for new default_args lookup_cmd argument.
2938 (print_help_for_command): Show default args under the layout
2939 alias some_alias = some_aliased_cmd some_alias_default_arg.
2940 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2941 xfree default_args in destructor.
2942 * cli/cli-script.c (process_next_line, do_define_command):
2943 Add NULL for new default_args lookup_cmd argument.
2944 * command.h: Declare new default_args argument in lookup_cmd
2945 and lookup_cmd_1.
2946 * completer.c (complete_line_internal_1):
2947 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2948 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2949 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2950 Likewise.
2951 * infcmd.c (_initialize_infcmd): Likewise.
2952 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2953 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2954 * python/py-param.c (add_setshow_generic): Likewise.
2955 * remote.c (_initialize_remote): Likewise.
2956 * top.c (execute_command): Prepend default_args if command has some.
2957 (set_verbose):
2958 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2959 * tracepoint.c (validate_actionline, encode_actions_1):
2960 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2961
2962 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2963
2964 * jit.c (jit_read_descriptor): Use bool as the return type.
2965 (jit_breakpoint_re_set_internal): Use bool as the return type.
2966 Invert the return value logic; return true if the jit breakpoint
2967 has been successfully initialized.
2968 (jit_inferior_init): Update the call to
2969 jit_breakpoint_re_set_internal.
2970
2971 2020-06-22 Pedro Alves <palves@redhat.com>
2972
2973 PR gdb/25939
2974 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2975 Use the current inferior instead. Don't return
2976 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2977 wait again.
2978 * sol-thread.c (sol_thread_target::wait): Don't reference
2979 inferior_ptid.
2980 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2981 (sol_update_thread_list_callback): Use the current inferior's pid
2982 instead of inferior_ptid.
2983
2984 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2985
2986 * procfs.c: Cleanup many comments.
2987
2988 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2989 (AFTER_WATCHFLAG): Replace by value.
2990
2991 (MAIN_PROC_NAME_FORMAT): Inline ...
2992 (create_procinfo): ... here.
2993
2994 (procfs_debug_inferior): Remove SYS_exec handling.
2995 (syscall_is_exec): Likewise.
2996 (procfs_set_exec_trap): Likewise.
2997
2998 (syscall_is_lwp_exit): Inline in callers.
2999 (syscall_is_exit): Likewise.
3000 (syscall_is_exec): Likewise.
3001 (syscall_is_lwp_create): Likewise.
3002
3003 (invalidate_cache): Remove #if 0 code.
3004
3005 (make_signal_thread_runnable): Remove.
3006 (procfs_target::resume): Remove #if 0 code.
3007
3008 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3009
3010 PR gdb/25939
3011 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3012 call ...
3013 (procfs_target::create_inferior): ... here.
3014
3015 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3016
3017 * exec.c (validate_exec_file): Ensure the build-id is up to
3018 date by calling reopen_exec_file (that checks file timestamp
3019 to decide to re-read the file).
3020
3021 2020-06-18 Pedro Alves <palves@redhat.com>
3022
3023 PR gdb/25412
3024 * gdbthread.h (delete_thread, delete_thread_silent)
3025 (find_thread_ptid): Update comments.
3026 * thread.c (current_thread_): New global.
3027 (is_current_thread): Move higher, and reimplement.
3028 (inferior_thread): Reimplement.
3029 (set_thread_exited): Use bool. Add assertions.
3030 (add_thread_silent): Simplify thread-reuse handling by always
3031 calling delete_thread.
3032 (delete_thread): Remove intro comment.
3033 (find_thread_ptid): Skip exited threads.
3034 (switch_to_thread_no_regs): Write to current_thread_.
3035 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3036 INFERIOR_PTID. Clear current_thread_.
3037
3038 2020-06-18 Pedro Alves <palves@redhat.com>
3039
3040 * aix-thread.c (pd_update): Use switch_to_thread.
3041
3042 2020-06-18 Pedro Alves <palves@redhat.com>
3043
3044 * ravenscar-thread.c (ravenscar_thread_target): Update.
3045 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3046 (ravenscar_thread_target::add_active_thread): ... this. Don't
3047 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3048 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3049
3050 2020-06-18 Pedro Alves <palves@redhat.com>
3051
3052 * nat/windows-nat.c (current_windows_thread): Remove.
3053 * nat/windows-nat.h (current_windows_thread): Remove.
3054 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3055 Adjust.
3056 (display_selectors): Adjust to fetch the current
3057 windows_thread_info based on inferior_ptid.
3058 (fake_create_process): No longer write to current_windows_thread.
3059 (windows_nat_target::get_windows_debug_event):
3060 Don't set inferior_ptid or current_windows_thread.
3061 (windows_nat_target::wait): Adjust to not rely on
3062 current_windows_thread.
3063 (do_initial_windows_stuff): Now a method of windows_nat_target.
3064 Switch to the last_ptid thread.
3065 (windows_nat_target::attach): Adjust.
3066 (windows_nat_target::detach): Use switch_to_no_thread instead of
3067 writing to inferior_ptid directly.
3068 (windows_nat_target::create_inferior): Adjust.
3069
3070 2020-06-18 Pedro Alves <palves@redhat.com>
3071
3072 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3073
3074 2020-06-18 Pedro Alves <palves@redhat.com>
3075
3076 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3077 after creating it, instead of writing to inferior_ptid. Don't
3078 write to inferior_ptid.
3079
3080 2020-06-18 Pedro Alves <palves@redhat.com>
3081
3082 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3083
3084 2020-06-18 Pedro Alves <palves@redhat.com>
3085
3086 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3087 it, instead of writing to inferior_ptid.
3088
3089 2020-06-18 Pedro Alves <palves@redhat.com>
3090
3091 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3092 to inferior_ptid.
3093
3094 2020-06-18 Pedro Alves <palves@redhat.com>
3095
3096 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3097 instead of writing to inferior_ptid directly.
3098
3099 2020-06-18 Pedro Alves <palves@redhat.com>
3100
3101 * corelow.c (core_target::close): Use switch_to_no_thread instead
3102 of writing to inferior_ptid directly.
3103 (add_to_thread_list, core_target_open): Use switch_to_thread
3104 instead of writing to inferior_ptid directly.
3105
3106 2020-06-18 Pedro Alves <palves@redhat.com>
3107
3108 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3109 inferior_ptid.
3110 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3111 inferior_ptid.
3112 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3113 inferior_ptid directly.
3114 (darwin_nat_target::init_thread_list): Switch to thread, instead
3115 of writing to inferior_ptid.
3116 (darwin_nat_target::attach): Don't write to inferior_ptid.
3117 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3118
3119 2020-06-18 Pedro Alves <palves@redhat.com>
3120
3121 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3122 thread.
3123 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3124 Instead use switch_to_thread.
3125 (gnu_nat_target::detach): Use switch_to_no_thread
3126 instead of writing to inferior_ptid directly. Used passed-in
3127 inferior instead of looking up the inferior by pid.
3128
3129 2020-06-18 Pedro Alves <palves@redhat.com>
3130
3131 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3132 inferior_ptid.
3133
3134 2020-06-18 Pedro Alves <palves@redhat.com>
3135
3136 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3137 inferior_ptid.
3138 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3139 thread.
3140 (nto_procfs_target::detach): Avoid referencing
3141 inferior_ptid. Use switch_to_no_thread instead of writing to
3142 inferior_ptid directly.
3143 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3144 instead of writing to inferior_ptid directly.
3145 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3146 to thread.
3147
3148 2020-06-18 Pedro Alves <palves@redhat.com>
3149
3150 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3151 after creating it, instead of writing to inferior_ptid.
3152 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3153 to inferior_ptid directly.
3154 (gdbsim_target::wait): Don't write to inferior_ptid.
3155
3156 2020-06-18 Pedro Alves <palves@redhat.com>
3157
3158 * remote.c (remote_target::remote_notice_new_inferior): Use
3159 switch_to_thread instead of writing to inferior_ptid directly.
3160 (remote_target::add_current_inferior_and_thread): Use
3161 switch_to_no_thread instead of writing to inferior_ptid directly.
3162 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3163 and switch_to_thread instead of using set_current_inferior or
3164 writing to inferior_ptid directly.
3165
3166 2020-06-18 Pedro Alves <palves@redhat.com>
3167
3168 * tracectf.c (ctf_target_open): Switch to added thread instead of
3169 writing to inferior_ptid directly.
3170 (ctf_target::close): Use switch_to_no_thread instead of writing to
3171 inferior_ptid directly.
3172
3173 2020-06-18 Pedro Alves <palves@redhat.com>
3174
3175 * tracefile-tfile.c (tfile_target_open): Don't write to
3176 inferior_ptid directly, instead switch to added thread.
3177 (tfile_target::close): Use switch_to_no_thread instead of writing
3178 to inferior_ptid directly.
3179
3180 2020-06-18 Pedro Alves <palves@redhat.com>
3181
3182 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3183 (procfs_target::detach): Use switch_to_no_thread
3184 instead of writing to inferior_ptid directly.
3185 (do_attach): Change return type to void. Switch to the added
3186 thread.
3187 (procfs_target::create_inferior): Switch to the added thread.
3188 (procfs_do_thread_registers): Don't write to inferior_ptid.
3189
3190 2020-06-18 Pedro Alves <palves@redhat.com>
3191
3192 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3193 of writing to inferior_ptid.
3194 (scoped_restore_exited_inferior): Delete.
3195 (handle_vfork_child_exec_or_exit): Simplify using
3196 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3197 instead of writing to inferior_ptid.
3198 (THREAD_STOPPED_BY): Delete.
3199 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3200 (thread_stopped_by_hw_breakpoint): Delete.
3201 (save_waitstatus): Use
3202 scoped_restore_current_thread+switch_to_thread, and call
3203 target_stopped_by_watchpoint instead of
3204 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3205 instead of thread_stopped_by_sw_breakpoint, and
3206 target_stopped_by_hw_breakpoint instead of
3207 thread_stopped_by_hw_breakpoint.
3208 (handle_inferior_event)
3209 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3210 inferior_ptid directly, nor
3211 set_current_inferior/set_current_program_space. Use
3212 switch_to_thread / switch_to_inferior_no_thread instead.
3213
3214 2020-06-18 Pedro Alves <palves@redhat.com>
3215
3216 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3217 instead of writing to inferior_ptid.
3218
3219 2020-06-18 Pedro Alves <palves@redhat.com>
3220
3221 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3222 added thread.
3223 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3224 to the added thread.
3225 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3226 instead of writing to inferior_ptid.
3227
3228 2020-06-18 Pedro Alves <palves@redhat.com>
3229
3230 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3231 (register_to_value_test): Mock a program_space too. Heap-allocate
3232 the address space. Don't write to inferior_ptid. Use
3233 switch_to_thread instead.
3234
3235 2020-06-18 Pedro Alves <palves@redhat.com>
3236
3237 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3238 Delete.
3239 (find_signalled_thread()): New, factored out from
3240 linux_make_corefile_notes and adjusted to handle exited threads.
3241 (linux_make_corefile_notes): Adjust to use the new
3242 find_signalled_thread.
3243
3244 2020-06-18 Pedro Alves <palves@redhat.com>
3245
3246 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3247 of saving/restoring inferior_ptid.
3248
3249 2020-06-17 Tom Tromey <tom@tromey.com>
3250
3251 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3252 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3253 declare.
3254 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3255
3256 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3257
3258 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3259 of partial symtabs.
3260
3261 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3262
3263 * regformats/reg-arm.dat: Remove.
3264 * regformats/reg-bfin.dat: Remove.
3265 * regformats/reg-cris.dat: Remove.
3266 * regformats/reg-crisv32.dat: Remove.
3267 * regformats/reg-m32r.dat: Remove.
3268 * regformats/reg-tilegx.dat: Remove.
3269 * regformats/reg-tilegx32.dat: Remove.
3270
3271 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3272
3273 * features/Makefile (WHICH): Remove arm files.
3274 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3275 * regformats/arm/arm-with-neon.dat: Remove.
3276 * regformats/arm/arm-with-vfpv2.dat: Remove.
3277 * regformats/arm/arm-with-vfpv3.dat: Remove.
3278
3279 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3280
3281 * features/Makefile (XMLTOC): Remove rx.xml.
3282
3283 2020-06-17 Pedro Alves <palves@redhat.com>
3284
3285 * gdbthread.h (thread_control_state) <trap_expected> Update
3286 comments.
3287
3288 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3289
3290 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3291 ada_language::lookup_symbol_nonlocal.
3292 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3293 (ada_language::lookup_symbol_nonlocal): New member function,
3294 implementation from ada_lookup_symbol_nonlocal.
3295 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3296 initializer.
3297 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3298 initializer.
3299 (cplus_language::lookup_symbol_nonlocal): New member function.
3300 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3301 (minimal_language_data) Likewise.
3302 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3303 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3304 initializer.
3305 (d_language::lookup_symbol_nonlocal): New member function.
3306 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3307 initializer.
3308 (f_language::lookup_symbol_nonlocal): New member function.
3309 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3310 initializer.
3311 * language.c (unknown_language_data): Likewise.
3312 (auto_language_data): Likewise.
3313 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3314 field.
3315 (language_defn::lookup_symbol_nonlocal): New member function.
3316 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3317 initializer.
3318 * objc-lang.c (objc_language_data): Likewise.
3319 * opencl-lang.c (opencl_language_data): Likewise.
3320 * p-lang.c (pascal_language_data): Likewise.
3321 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3322 rust_language::lookup_symbol_nonlocal.
3323 (rust_language_data): Delete la_lookup_symbol_nonlocal
3324 initializer.
3325 (rust_language::lookup_symbol_nonlocal): New member function,
3326 implementation from rust_lookup_symbol_nonlocal.
3327 * symtab.c (lookup_symbol_aux): Update call to
3328 lookup_symbol_nonlocal.
3329 (basic_lookup_symbol_nonlocal): Rename to...
3330 (language_defn::lookup_symbol_nonlocal): ...this, and update
3331 header comment. Remove language_defn parameter, and replace with
3332 uses of `this'.
3333 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3334
3335 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3336
3337 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3338 initializer.
3339 (ada_language::value_print_inner): New member function.
3340 * c-lang.c (c_language_data): Delete la_value_print_inner
3341 initializer.
3342 (cplus_language_data): Likewise.
3343 (asm_language_data): Likewise.
3344 (minimal_language_data): Likewise.
3345 * d-lang.c (d_language_data): Likewise.
3346 (d_language::value_print_inner): New member function.
3347 * f-lang.c (f_language_data): Delete la_value_print_inner
3348 initializer.
3349 (f_language::value_print_inner): New member function.
3350 * f-lang.h (f_value_print_innner): Rename to...
3351 (f_value_print_inner): ...this (note spelling of 'inner').
3352 * f-valprint.c (f_value_print_innner): Rename to...
3353 (f_value_print_inner): ...this (note spelling of 'inner').
3354 * go-lang.c (go_language_data): Delete la_value_print_inner
3355 initializer.
3356 (go_language::value_print_inner): New member function.
3357 * language.c (language_defn::value_print_inner): Define new member
3358 function.
3359 (unk_lang_value_print_inner): Delete.
3360 (unknown_language_data): Delete la_value_print_inner initializer.
3361 (unknown_language::value_print_inner): New member function.
3362 (auto_language_data): Delete la_value_print_inner initializer.
3363 (auto_language::value_print_inner): New member function.
3364 * language.h (language_data): Delete la_value_print_inner field.
3365 (language_defn::value_print_inner): Delcare new member function.
3366 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3367 initializer.
3368 (m2_language::value_print_inner): New member function.
3369 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3370 initializer.
3371 * opencl-lang.c (opencl_language_data): Likewise.
3372 * p-lang.c (pascal_language_data): Likewise.
3373 (pascal_language::value_print_inner): New member function.
3374 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3375 initializer.
3376 (rust_language::value_print_inner): New member function.
3377 * valprint.c (do_val_print): Update call to value_print_inner.
3378
3379 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3380
3381 * ada-lang.c (ada_language_data): Delete la_value_print
3382 initializer.
3383 (ada_language::value_print): New member function.
3384 * c-lang.c (c_language_data): Delete la_value_print initializer.
3385 (cplus_language_data): Likewise.
3386 (asm_language_data): Likewise.
3387 (minimal_language_data): Likewise.
3388 * d-lang.c (d_language_data): Likewise.
3389 * f-lang.c (f_language_data): Likewise.
3390 * go-lang.c (go_language_data): Likewise.
3391 * language.c (unk_lang_value_print): Delete.
3392 (language_defn::value_print): Define new member function.
3393 (unknown_language_data): Delete la_value_print initializer.
3394 (unknown_language::value_print): New member function.
3395 (auto_language_data): Delete la_value_print initializer.
3396 (auto_language::value_print): New member function.
3397 * language.h (language_data): Delete la_value_print field.
3398 (language_defn::value_print): Declare new member function.
3399 (LA_VALUE_PRINT): Update call to value_print.
3400 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3401 * objc-lang.c (objc_language_data): Likewise.
3402 * opencl-lang.c (opencl_language_data): Likewise.
3403 * p-lang.c (pascal_language_data): Likewise.
3404 (pascal_language::value_print): New member function.
3405 * rust-lang.c (rust_language_data): Delete la_value_print
3406 initializer.
3407
3408 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3409
3410 * ada-lang.c (ada_watch_location_expression): Rename to
3411 ada_language::watch_location_expression.
3412 (ada_language_data): Delete la_watch_location_expression
3413 initializer.
3414 (ada_language::watch_location_expression): New member function,
3415 implementation from ada_watch_location_expression.
3416 * breakpoint.c (watch_command_1): Update call to
3417 watch_location_expression.
3418 * c-lang.c (c_watch_location_expression): Rename to
3419 language_defn::watch_location_expression.
3420 (c_language_data): Delete la_watch_location_expression
3421 initializer.
3422 (cplus_language_data): Likewise.
3423 (asm_language_data): Likewise.
3424 (minimal_language_data): Likewise.
3425 * c-lang.h (c_watch_location_expression): Delete declaration.
3426 * d-lang.c (d_language_data): Delete la_watch_location_expression
3427 initializer.
3428 * f-lang.c (f_language_data): Likewise.
3429 * go-lang.c (go_language_data): Likewise.
3430 * language.c (language_defn::watch_location_expression): Member
3431 function implementation from c_watch_location_expression.
3432 (unknown_language_data): Delete la_watch_location_expression
3433 initializer.
3434 (auto_language_data): Likewise.
3435 * language.h (language_data): Delete la_watch_location_expression
3436 field.
3437 (language_defn::watch_location_expression): Declare new member
3438 function.
3439 * m2-lang.c (m2_language_data): Delete
3440 la_watch_location_expression initializer.
3441 * objc-lang.c (objc_language_data): Likewise.
3442 * opencl-lang.c (opencl_language_data): Likewise.
3443 * p-lang.c (pascal_language_data): Likewise.
3444 * rust-lang.c (rust_watch_location_expression): Rename to
3445 rust_language::watch_location_expression.
3446 (rust_language_data): Delete la_watch_location_expression
3447 initializer.
3448 (rust_language::watch_location_expression): New member function,
3449 implementation from rust_watch_location_expression.
3450
3451 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3452
3453 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3454 ada_language::collect_symbol_completion_matches.
3455 (ada_language_data): Delete la_collect_symbol_completion_matches
3456 initializer.
3457 (ada_language::collect_symbol_completion_matches): New member
3458 function, implementation from
3459 ada_collect_symbol_completion_matches.
3460 * c-lang.c (c_language_data): Delete
3461 la_collect_symbol_completion_matches initializer.
3462 (cplus_language_data): Likewise.
3463 (asm_language_data): Likewise.
3464 (minimal_language_data): Likewise.
3465 * d-lang.c (d_language_data): Likewise.
3466 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3467 f_language::collect_symbol_completion_matches.
3468 (f_language_data): Delete la_collect_symbol_completion_matches
3469 initializer.
3470 (f_language::collect_symbol_completion_matches) New member
3471 function, implementation from f_collect_symbol_completion_matches.
3472 * go-lang.c (go_language_data): Delete
3473 la_collect_symbol_completion_matches initializer.
3474 * language.c (unknown_language_data): Likewise.
3475 (auto_language_data): Likewise.
3476 * language.h (language_data): Delete
3477 la_collect_symbol_completion_matches field.
3478 (language_defn::collect_symbol_completion_matches): New member
3479 function.
3480 * m2-lang.c (m2_language_data): Delete
3481 la_collect_symbol_completion_matches initializer.
3482 * objc-lang.c (objc_language_data): Likewise.
3483 * opencl-lang.c (opencl_language_data): Likewise.
3484 * p-lang.c (pascal_language_data): Likewise.
3485 * rust-lang.c (rust_language_data): Likewise.
3486 * symtab.c (default_collect_symbol_completion_matches): Delete.
3487 (collect_symbol_completion_matches): Update call to
3488 collect_symbol_completion_matches.
3489 (collect_symbol_completion_matches_type): Likewise.
3490 * symtab.h (default_collect_symbol_completion_matches): Delete
3491 declaration.
3492
3493 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3494
3495 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3496 (ada_language_data): Delete la_word_break_characters initializer.
3497 (ada_language::word_break_characters): New member function.
3498 * c-lang.c (c_language_data): Delete la_word_break_characters
3499 initializer.
3500 (cplus_language_data): Likewise.
3501 (asm_language_data): Likewise.
3502 (minimal_language_data): Likewise.
3503 * completer.c: Update global comment.
3504 (advance_to_expression_complete_word_point): Update call to
3505 word_break_characters.
3506 (complete_files_symbols): Likewise.
3507 (complete_line_internal_1): Likewise.
3508 (default_completer_handle_brkchars): Likewise.
3509 (skip_quoted_chars): Likewise.
3510 * d-lang.c (d_language_data): Delete la_word_break_characters
3511 initializer.
3512 * f-lang.c (f_word_break_characters): Delete.
3513 (f_language_data): Delete la_word_break_characters initializer.
3514 (f_language::word_break_characters): New member function.
3515 * go-lang.c (go_language_data): Delete la_word_break_characters
3516 initializer.
3517 * language.c (unknown_language_data): Likewise.
3518 (auto_language_data): Likewise.
3519 * language.h (default_word_break_characters): Move declaration to
3520 earlier in the file.
3521 (language_data): Delete la_word_break_characters field.
3522 (language_defn::word_break_characters): New member function.
3523 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3524 initializer.
3525 * objc-lang.c (objc_language_data): Likewise.
3526 * opencl-lang.c (opencl_language_data): Likewise.
3527 * p-lang.c (pascal_language_data): Likewise.
3528 * rust-lang.c (rust_language_data): Likewise.
3529
3530 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3531
3532 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3533 (ada_language_data): Delete la_get_symbol_name_matcher
3534 initializer.
3535 (language_defn::get_symbol_name_matcher_inner): New member
3536 function.
3537 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3538 initializer.
3539 (cplus_language_data): Likewise.
3540 (cplus_language::get_symbol_name_matcher_inner): New member
3541 function.
3542 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3543 (minimal_language_data): Likewise.
3544 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3545 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3546 initializer.
3547 * dictionary.c (iter_match_first_hashed): Update call to
3548 get_symbol_name_matcher.
3549 (iter_match_next_hashed): Likewise.
3550 (iter_match_next_linear): Likewise.
3551 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3552 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3553 initializer.
3554 (f_language::get_symbol_name_matcher_inner): New member function.
3555 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3556 initializer.
3557 * language.c (default_symbol_name_matcher): Update header comment,
3558 make static.
3559 (language_defn::get_symbol_name_matcher): New definition.
3560 (language_defn::get_symbol_name_matcher_inner): Likewise.
3561 (get_symbol_name_matcher): Delete.
3562 (unknown_language_data): Delete la_get_symbol_name_matcher
3563 initializer.
3564 (auto_language_data): Likewise.
3565 * language.h (language_data): Delete la_get_symbol_name_matcher
3566 field.
3567 (language_defn::get_symbol_name_matcher): New member function.
3568 (language_defn::get_symbol_name_matcher_inner): Likewise.
3569 (default_symbol_name_matcher): Delete declaration.
3570 * linespec.c (find_methods): Update call to
3571 get_symbol_name_matcher.
3572 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3573 initializer.
3574 * minsyms.c (lookup_minimal_symbol): Update call to
3575 get_symbol_name_matcher.
3576 (iterate_over_minimal_symbols): Likewise.
3577 * objc-lang.c (objc_language_data): Delete
3578 la_get_symbol_name_matcher initializer.
3579 * opencl-lang.c (opencl_language_data): Likewise.
3580 * p-lang.c (pascal_language_data): Likewise.
3581 * psymtab.c (psymbol_name_matches): Update call to
3582 get_symbol_name_matcher.
3583 * rust-lang.c (rust_language_data): Delete
3584 la_get_symbol_name_matcher initializer.
3585 * symtab.c (symbol_matches_search_name): Update call to
3586 get_symbol_name_matcher.
3587 (compare_symbol_name): Likewise.
3588
3589 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3590
3591 * ada-lang.c (ada_language_data): Delete la_compute_program
3592 initializer.
3593 * c-lang.c (c_language_data): Likewise.
3594 (c_language::compute_program): New member function.
3595 (cplus_language_data): Delete la_compute_program initializer.
3596 (cplus_language::compute_program): New member function.
3597 (asm_language_data): Delete la_compute_program initializer.
3598 (minimal_language_data): Likewise.
3599 * c-lang.h (c_compute_program): Update comment.
3600 (cplus_compute_program): Likewise.
3601 * compile/compile-c-support.c (c_compute_program): Likewise.
3602 (cplus_compute_program): Likewise.
3603 * compile/compile.c (compile_to_object): Update call to
3604 la_compute_program.
3605 * d-lang.c (d_language_data): Delete la_compute_program
3606 initializer.
3607 * f-lang.c (f_language_data): Likewise.
3608 * go-lang.c (go_language_data): Likewise.
3609 * language.c (unknown_language_data): Likewise.
3610 (auto_language_data): Likewise.
3611 * language.h (language_data): Delete la_compute_program field.
3612 (language_defn::compute_program): New member function.
3613 * m2-lang.c (m2_language_data): Delete la_compute_program
3614 initializer.
3615 * objc-lang.c (objc_language_data): Likewise.
3616 * opencl-lang.c (opencl_language_data): Likewise.
3617 * p-lang.c (pascal_language_data): Likewise.
3618 * rust-lang.c (rust_language_data): Likewise.
3619
3620 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3621
3622 * ada-lang.c (ada_language_data) Delete
3623 la_class_name_from_physname initializer.
3624 * c-lang.c (c_language_data): Likewise.
3625 (cplus_language_data): Likewise.
3626 (cplus_language::class_name_from_physname): New member function.
3627 (asm_language_data): Delete la_class_name_from_physname
3628 initializer.
3629 (minimal_language_data): Likewise.
3630 * d-lang.c (d_language_data): Likewise.
3631 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3632 method on language_defn class.
3633 (guess_full_die_structure_name): Likewise.
3634 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3635 initializer.
3636 * go-lang.c (go_language_data): Likewise.
3637 * language.c (language_class_name_from_physname): Delete.
3638 (unk_lang_class_name): Delete.
3639 (unknown_language_data): Delete la_class_name_from_physname
3640 initializer.
3641 (auto_language_data): Likewise.
3642 * language.h (language_data): Delete la_class_name_from_physname
3643 field.
3644 (language_defn::class_name_from_physname): New function.
3645 (language_class_name_from_physname): Delete declaration.
3646 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3647 initializer.
3648 * objc-lang.c (objc_language_data): Likewise.
3649 * opencl-lang.c (opencl_language_data): Likewise.
3650 * p-lang.c (pascal_language_data): Likewise.
3651 * rust-lang.c (rust_language_data): Likewise.
3652
3653 2020-06-16 Tom Tromey <tom@tromey.com>
3654
3655 * tui/tui-data.h (STATUS_NAME): New macro.
3656 * tui/tui-layout.c (tui_remove_some_windows)
3657 (initialize_known_windows, tui_register_window)
3658 (tui_layout_split::remove_windows, initialize_layouts)
3659 (tui_new_layout_command): Don't use hard-coded window names.
3660
3661 2020-06-16 Tom Tromey <tom@tromey.com>
3662
3663 PR tui/25348:
3664 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3665 tui_initialize_readline. Only run once. Call rl_initialize.
3666 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3667 tui_initialize_readline.
3668 * tui/tui-io.c (tui_setup_io): Call
3669 tui_ensure_readline_initialized.
3670 * tui/tui-interp.c (tui_interp::init): Update.
3671
3672 2020-06-16 Tom Tromey <tom@tromey.com>
3673
3674 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3675 Also preserve the status window.
3676
3677 2020-06-16 Tom Tromey <tom@tromey.com>
3678
3679 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3680 where m_window==nullptr.
3681
3682 2020-06-15 Tom Tromey <tromey@adacore.com>
3683
3684 * windows-nat.c (windows_nat::handle_output_debug_string):
3685 Update.
3686 (windows_nat::handle_ms_vc_exception): Update.
3687 * target.h (target_read_string): Change API.
3688 * target.c (target_read_string): Change API.
3689 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3690 Update.
3691 * solib-frv.c (frv_current_sos): Update.
3692 * solib-dsbt.c (dsbt_current_sos): Update.
3693 * solib-darwin.c (darwin_current_sos): Update.
3694 * linux-thread-db.c (inferior_has_bug): Update.
3695 * expprint.c (print_subexp_standard): Update.
3696 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3697 (ada_exception_message_1): Update.
3698
3699 2020-06-15 Tom Tromey <tromey@adacore.com>
3700
3701 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3702
3703 2020-06-15 Tom Tromey <tromey@adacore.com>
3704
3705 * valprint.c (read_string): Update comment.
3706 * target.c (MIN): Remove.
3707 (target_read_string): Rewrite.
3708
3709 2020-06-15 Tom Tromey <tromey@adacore.com>
3710
3711 * corefile.c (read_memory_string): Remove.
3712 * ada-valprint.c (ada_value_print_ptr): Update.
3713 * ada-lang.h (ada_tag_name): Change return type.
3714 * ada-lang.c (type_from_tag): Update.
3715 (ada_tag_name_from_tsd): Change return type. Use
3716 target_read_string.
3717 (ada_tag_name): Likewise.
3718 * gdbcore.h (read_memory_string): Don't declare.
3719
3720 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3721
3722 * symtab.c (rbreak_command): Ignore Windows drive colon.
3723
3724 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3725
3726 * NEWS: Mention removed GDBserver host support.
3727
3728 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3729
3730 * features/riscv/rebuild-csr-xml.sh: Updated.
3731
3732 2020-06-11 Tom Tromey <tom@tromey.com>
3733
3734 PR gdb/18318:
3735 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3736
3737 2020-06-09 Jonny Grant <jg@jguk.org>
3738 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3739
3740 * main.c (captured_main_1): Don't print new line after help.
3741 (print_gdb_help): add mailing list and IRC channel information
3742 to --help. Add new lines between items in the footer. Remove
3743 quotes around bug url.
3744
3745 2020-06-11 Keith Seitz <keiths@redhat.com>
3746
3747 PR gdb/21356
3748 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3749 Resolve typedefs for type length calculations.
3750
3751 2020-06-10 Tom de Vries <tdevries@suse.de>
3752
3753 PR ada/24713
3754 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3755 (write_psymbols): Enable .gdb_index for ada.
3756 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3757 ada.
3758
3759 2020-06-10 Tom de Vries <tdevries@suse.de>
3760
3761 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3762 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3763 namei" instead of "const char *name" argument.
3764 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3765 dw2_symtab_iter_init.
3766
3767 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3768
3769 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3770 to use type::field and field::type instead.
3771
3772 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3773
3774 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3775 to use field::type instead.
3776
3777 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3778
3779 * gdbtypes.h (struct field) <type, set_type>: New methods.
3780 Rename `type` field to...
3781 <m_type>: ... this. Change references throughout to use type or
3782 set_type methods.
3783 (FIELD_TYPE): Use field::type. Change call sites that modify
3784 the field's type to use field::set_type instead.
3785
3786 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3787
3788 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3789 to use type::index_type instead.
3790
3791 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3792
3793 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3794 methods.
3795 (TYPE_INDEX_TYPE): Use type::index_type.
3796 * gdbtypes.c (create_array_type_with_stride): Likewise.
3797
3798 2020-06-07 Tom Tromey <tom@tromey.com>
3799
3800 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3801 parameter.
3802 (generic_value_print): Update.
3803
3804 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3805
3806 Revert commit 982a38f60b0.
3807 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3808
3809 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3810
3811 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3812 avoid use after free.
3813
3814 2020-06-05 Tom de Vries <tdevries@suse.de>
3815
3816 * NEWS: Fix typos.
3817
3818 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3819
3820 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3821 the per_bfd object.
3822 (dwarf2_read_debug_names): Likewise.
3823 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3824 object when re-using a per_bfd object with an index.
3825
3826 2020-06-03 Tom de Vries <tdevries@suse.de>
3827
3828 PR symtab/26046
3829 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3830 children for C++.
3831 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3832 DW_TAG_subprogram.
3833
3834 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3835
3836 * ada-lang.c (ada_language_data): Delete skip_trampoline
3837 initializer.
3838 * c-lang.c (c_language_data): Likewise.
3839 (cplus_language_data): Likewise.
3840 (cplus_language::skip_trampoline): New member function.
3841 (asm_language_data): Delete skip_trampoline initializer.
3842 (minimal_language_data): Likewise.
3843 * d-lang.c (d_language_data): Likewise.
3844 * f-lang.c (f_language_data): Likewise.
3845 * go-lang.c (go_language_data): Likewise.
3846 * language.c (unk_lang_trampoline): Delete function.
3847 (skip_language_trampoline): Update.
3848 (unknown_language_data): Delete skip_trampoline initializer.
3849 (auto_language_data): Likewise.
3850 * language.h (language_data): Delete skip_trampoline field.
3851 (language_defn::skip_trampoline): New function.
3852 * m2-lang.c (m2_language_data): Delete skip_trampoline
3853 initializer.
3854 * objc-lang.c (objc_skip_trampoline): Delete function, move
3855 implementation to objc_language::skip_trampoline.
3856 (objc_language_data): Delete skip_trampoline initializer.
3857 (objc_language::skip_trampoline): New member function with
3858 implementation from objc_skip_trampoline.
3859 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3860 initializer.
3861 * p-lang.c (pascal_language_data): Likewise.
3862 * rust-lang.c (rust_language_data): Likewise.
3863
3864 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3865
3866 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3867 (ada_language::demangle): New member function.
3868 * c-lang.c (c_language_data): Delete la_demangle initializer.
3869 (cplus_language_data): Delete la_demangle initializer.
3870 (cplus_language::demangle): New member function.
3871 (asm_language_data): Delete la_demangle initializer.
3872 (minimal_language_data): Delete la_demangle initializer.
3873 * d-lang.c (d_language_data): Delete la_demangle initializer.
3874 (d_language::demangle): New member function.
3875 * f-lang.c (f_language_data): Delete la_demangle initializer.
3876 (f_language::demangle): New member function.
3877 * go-lang.c (go_language_data): Delete la_demangle initializer.
3878 (go_language::demangle): New member function.
3879 * language.c (language_demangle): Update.
3880 (unk_lang_demangle): Delete.
3881 (unknown_language_data): Delete la_demangle initializer.
3882 (unknown_language::demangle): New member function.
3883 (auto_language_data): Delete la_demangle initializer.
3884 (auto_language::demangle): New member function.
3885 * language.h (language_data): Delete la_demangle field.
3886 (language_defn::demangle): New function.
3887 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3888 * objc-lang.c (objc_language_data): Delete la_demangle
3889 initializer.
3890 (objc_language::demangle): New member function.
3891 * opencl-lang.c (opencl_language_data): Delete la_demangle
3892 initializer.
3893 * p-lang.c (pascal_language_data): Likewise.
3894 * rust-lang.c (rust_language_data): Likewise.
3895 (rust_language::demangle): New member function.
3896
3897 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3898
3899 * ada-lang.c (ada_language_data): Delete la_print_type
3900 initializer.
3901 (ada_language::print_type): New member function.
3902 * c-lang.c (c_language_data): Delete la_print_type initializer.
3903 (c_language::print_type): New member function.
3904 (cplus_language_data): Delete la_print_type initializer.
3905 (cplus_language::print_type): New member function.
3906 (asm_language_data): Delete la_print_type initializer.
3907 (asm_language::print_type): New member function.
3908 (minimal_language_data): Delete la_print_type initializer.
3909 (minimal_language::print_type): New member function.
3910 * d-lang.c (d_language_data): Delete la_print_type initializer.
3911 (d_language::print_type): New member function.
3912 * f-lang.c (f_language_data): Delete la_print_type initializer.
3913 (f_language::print_type): New member function.
3914 * go-lang.c (go_language_data): Delete la_print_type initializer.
3915 (go_language::print_type): New member function.
3916 * language.c (unk_lang_print_type): Delete.
3917 (unknown_language_data): Delete la_print_type initializer.
3918 (unknown_language::print_type): New member function.
3919 (auto_language_data): Delete la_print_type initializer.
3920 (auto_language::print_type): New member function.
3921 * language.h (language_data): Delete la_print_type field.
3922 (language_defn::print_type): New function.
3923 (LA_PRINT_TYPE): Update.
3924 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3925 (m2_language::print_type): New member function.
3926 * objc-lang.c (objc_language_data): Delete la_print_type
3927 initializer.
3928 (objc_language::print_type): New member function.
3929 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3930 to opencl_language::print_type.
3931 (opencl_language_data): Delete la_print_type initializer.
3932 (opencl_language::print_type): New member function, implementation
3933 from opencl_print_type.
3934 * p-lang.c (pascal_language_data): Delete la_print_type
3935 initializer.
3936 (pascal_language::print_type): New member function.
3937 * rust-lang.c (rust_print_type): Delete, implementation moved to
3938 rust_language::print_type.
3939 (rust_language_data): Delete la_print_type initializer.
3940 (rust_language::print_type): New member function, implementation
3941 from rust_print_type.
3942
3943 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3944
3945 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3946 implementation moves to...
3947 (ada_language::sniff_from_mangled_name): ...here. Update return
3948 type.
3949 (ada_language_data): Delete la_sniff_from_mangled_name
3950 initializer.
3951 * c-lang.c (c_language_data): Likewise.
3952 (cplus_language_data): Likewise.
3953 (cplus_language::sniff_from_mangled_name): New member function,
3954 implementation taken from gdb_sniff_from_mangled_name.
3955 (asm_language_data): Delete la_sniff_from_mangled_name
3956 initializer.
3957 (minimal_language_data): Likewise.
3958 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3959 implementation moves to cplus_language::sniff_from_mangled_name.
3960 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3961 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3962 moves to...
3963 (d_language::sniff_from_mangled_name): ...here.
3964 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3965 * f-lang.c (f_language_data): Likewise.
3966 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3967 moves to...
3968 (go_language::sniff_from_mangled_name): ...here.
3969 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3970 * language.c (language_sniff_from_mangled_name): Delete.
3971 (unknown_language_data): Delete la_sniff_from_mangled_name
3972 initializer.
3973 (auto_language_data): Likewise.
3974 * language.h (language_data): Delete la_sniff_from_mangled_name
3975 field.
3976 (language_defn::sniff_from_mangled_name): New function.
3977 (language_sniff_from_mangled_name): Delete declaration.
3978 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3979 field.
3980 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3981 implementation moves to...
3982 (objc_language::sniff_from_mangled_name): ...here.
3983 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3984 * opencl-lang.c (opencl_language_data): Likewise.
3985 * p-lang.c (pascal_language_data): Likewise.
3986 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3987 implementation moves to...
3988 (rust_language::sniff_from_mangled_name): ...here.
3989 (rust_language_data): Delete la_sniff_from_mangled_name
3990 initializer.
3991 * symtab.c (symbol_find_demangled_name): Call
3992 sniff_from_mangled_name member function.
3993
3994 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3995
3996 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3997 initializer.
3998 * c-lang.c (c_language_data): Likewise.
3999 (cplus_language_data): Likewise.
4000 (cplus_language::search_name_hash): New member function.
4001 (asm_language_data): Delete la_search_name_hash initializer.
4002 (minimal_language_data): Likewise.
4003 * d-lang.c (d_language_data): Likewise.
4004 * dictionary.c (default_search_name_hash): Rename to...
4005 (language_defn::search_name_hash): ...this.
4006 * f-lang.c (f_language_data): Likewise.
4007 (f_language::search_name_hash): New member function.
4008 * go-lang.c (go_language_data): Delete la_search_name_hash
4009 initializer.
4010 * language.c (unknown_language_data): Likewise.
4011 (auto_language_data): Likewise.
4012 * language.h (struct language_data): Delete la_search_name_hash
4013 field.
4014 (language_defn::search_name_hash): Declare new member function.
4015 (default_search_name_hash): Delete declaration.
4016 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4017 initializer.
4018 * objc-lang.c (objc_language_data): Likewise.
4019 * opencl-lang.c (opencl_language_data): Likewise.
4020 * p-lang.c (pascal_language_data): Likewise.
4021 * rust-lang.c (rust_language_data): Likewise.
4022 * symtab.c (search_name_hash): Update call.
4023
4024 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4025
4026 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4027 initializer.
4028 * c-lang.c (class compile_instance): Declare.
4029 (c_language_data): Delete la_get_compile_instance initializer.
4030 (c_language::get_compile_instance): New member function.
4031 (cplus_language_data): Delete la_get_compile_instance initializer.
4032 (cplus_language::get_compile_instance): New member function.
4033 (asm_language_data): Delete la_get_compile_instance initializer.
4034 (minimal_language_data): Likewise.
4035 * c-lang.h (c_get_compile_context): Update comment.
4036 (cplus_get_compile_context): Update comment.
4037 * compile/compile.c (compile_to_object): Update calls, don't rely
4038 on function pointer being NULL.
4039 * d-lang.c (d_language_data): Delete la_get_compile_instance
4040 initializer.
4041 * f-lang.c (f_language_data): Likewise.
4042 * go-lang.c (go_language_data): Likewise.
4043 * language.c (unknown_language_data): Likewise.
4044 (auto_language_data): Likewise.
4045 * language.h (language_data): Delete la_get_compile_instance field.
4046 (language_defn::get_compile_instance): New member function.
4047 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4048 initializer.
4049 * objc-lang.c (objc_language_data): Likewise.
4050 * opencl-lang.c (opencl_language_data): Likewise.
4051 * p-lang.c (pascal_language_data): Likewise.
4052 * rust-lang.c (rust_language_data): Likewise.
4053
4054 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4055
4056 * ada-lang.c (ada_add_all_symbols): Update comment.
4057 (ada_iterate_over_symbols): Delete, move implementation to...
4058 (ada_language::iterate_over_symbols): ...here, a new member
4059 function, rewrite to use range based for loop.
4060 (ada_language_data): Delete la_iterate_over_symbols initializer.
4061 * c-lang.c (c_language_data): Likewise.
4062 (cplus_language_data): Likewise.
4063 (asm_language_data): Likewise.
4064 (minimal_language_data): Likewise.
4065 * d-lang.c (d_language_data): Likewise.
4066 * f-lang.c (f_language_data): Likewise.
4067 * go-lang.c (go_language_data): Likewise.
4068 * language.c (unknown_language_data): Likewise.
4069 (auto_language_data): Likewise.
4070 * language.h (language_data): Delete la_iterate_over_symbols field.
4071 (language_defn::iterate_over_symbols): New member function.
4072 (LA_ITERATE_OVER_SYMBOLS): Update.
4073 * linespec.c (iterate_over_all_matching_symtabs): Update.
4074 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4075 initializer.
4076 * objc-lang.c (objc_language_data): Likewise.
4077 * opencl-lang.c (opencl_language_data): Likewise.
4078 * p-lang.c (pascal_language_data): Likewise.
4079 * rust-lang.c (rust_language_data): Likewise.
4080
4081 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4082
4083 * ada-lang.c (ada_language_data): Delete
4084 la_lookup_transparent_type initializer.
4085 * c-lang.c (c_language_data): Likewise.
4086 (cplus_language_data): Likewise.
4087 (cplus_language::lookup_transparent_type): New member function.
4088 (asm_language_data): Delete la_lookup_transparent_type
4089 initializer.
4090 (minimal_language_data): Likewise.
4091 * d-lang.c (d_language_data): Likewise.
4092 * f-lang.c (f_language_data): Likewise.
4093 * go-lang.c (go_language_data): Likewise.
4094 * language.c (unknown_language_data): Likewise.
4095 (auto_language_data): Likewise.
4096 * language.h (struct language_data): Delete
4097 la_lookup_transparent_type field.
4098 (language_defn::lookup_transparent_type): New member function.
4099 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4100 initializer.
4101 * objc-lang.c (objc_language_data): Likewise.
4102 * opencl-lang.c (opencl_language_data): Likewise.
4103 * p-lang.c (pascal_language_data): Likewise.
4104 * rust-lang.c (rust_language_data): Likewise.
4105 * symtab.c (symbol_matches_domain): Update call.
4106
4107 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4108
4109 * ada-lang.c (ada_language_arch_info): Delete function, move
4110 implementation to...
4111 (ada_language::language_arch_info): ...here, a new member
4112 function.
4113 (ada_language_data): Delete la_language_arch_info.
4114 * c-lang.c (c_language_data): Likewise.
4115 (c_language::language_arch_info): New member function.
4116 (cplus_language_arch_info): Delete function, move
4117 implementation to...
4118 (cplus_language::language_arch_info): ...here, a new member
4119 function.
4120 (cplus_language_data): Delete la_language_arch_info.
4121 (asm_language_data): Likewise.
4122 (asm_language::language_arch_info): New member function.
4123 (minimal_language_data): Delete la_language_arch_info.
4124 (minimal_language::language_arch_info): New member function.
4125 * d-lang.c (d_language_arch_info): Delete function, move
4126 implementation to...
4127 (d_language::language_arch_info): ...here, a new member
4128 function.
4129 (d_language_data): Delete la_language_arch_info.
4130 * f-lang.c (f_language_arch_info): Delete function, move
4131 implementation to...
4132 (f_language::language_arch_info): ...here, a new member
4133 function.
4134 (f_language_data): Delete la_language_arch_info.
4135 * go-lang.c (go_language_arch_info): Delete function, move
4136 implementation to...
4137 (go_language::language_arch_info): ...here, a new member
4138 function.
4139 (go_language_data): Delete la_language_arch_info.
4140 * language.c (unknown_language_data): Likewise.
4141 (unknown_language::language_arch_info): New member function.
4142 (auto_language_data): Delete la_language_arch_info.
4143 (auto_language::language_arch_info): New member function.
4144 (language_gdbarch_post_init): Update call to
4145 la_language_arch_info.
4146 * language.h (language_data): Delete la_language_arch_info
4147 function pointer.
4148 (language_defn::language_arch_info): New function.
4149 * m2-lang.c (m2_language_arch_info): Delete function, move
4150 implementation to...
4151 (m2_language::language_arch_info): ...here, a new member
4152 function.
4153 (m2_language_data): Delete la_language_arch_info.
4154 * objc-lang.c (objc_language_arch_info): Delete function, move
4155 implementation to...
4156 (objc_language::language_arch_info): ...here, a new member
4157 function.
4158 (objc_language_data): Delete la_language_arch_info.
4159 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4160 implementation to...
4161 (opencl_language::language_arch_info): ...here, a new member
4162 function.
4163 (opencl_language_data): Delete la_language_arch_info.
4164 * p-lang.c (pascal_language_arch_info): Delete function, move
4165 implementation to...
4166 (pascal_language::language_arch_info): ...here, a new member
4167 function.
4168 (pascal_language_data): Delete la_language_arch_info.
4169 * rust-lang.c (rust_language_arch_info): Delete function, move
4170 implementation to...
4171 (rust_language::language_arch_info): ...here, a new member
4172 function.
4173 (rust_language_data): Delete la_language_arch_info.
4174
4175 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4176
4177 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4178 initializer.
4179 * c-lang.c (c_language_data): Likewise.
4180 (cplus_language_data): Likewise.
4181 (cplus_language::pass_by_reference_info): New method.
4182 (asm_language_data): Delete la_pass_by_reference initializer.
4183 (minimal_language_data): Likewise.
4184 * cp-abi.c (cp_pass_by_reference): Remove use of
4185 default_pass_by_reference.
4186 * d-lang.c (d_language_data): Likewise.
4187 * f-lang.c (f_language_data): Likewise.
4188 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4189 default_pass_by_reference.
4190 * go-lang.c (go_language_data): Likewise.
4191 * language.c (language_pass_by_reference): Update.
4192 (default_pass_by_reference): Delete.
4193 (unknown_language_data): Delete la_pass_by_reference
4194 initializer.
4195 (auto_language_data): Likewise.
4196 * language.h (struct language_data): Delete la_pass_by_reference
4197 field.
4198 (language_defn::pass_by_reference_info): New member function.
4199 (default_pass_by_reference): Delete declaration.
4200 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4201 initializer.
4202 * objc-lang.c (objc_language_data): Likewise.
4203 * opencl-lang.c (opencl_language_data): Likewise.
4204 * p-lang.c (pascal_language_data): Likewise.
4205 * rust-lang.c (rust_language_data): Likewise.
4206
4207 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4208
4209 * ada-lang.c (ada_read_var_value): Delete function, move
4210 implementation to...
4211 (ada_language::read_var_value): ...here.
4212 (ada_language_data): Delete la_read_var_value initializer.
4213 * c-lang.c (c_language_data): Likewise.
4214 (cplus_language_data): Likewise.
4215 (minimal_language_data): Likewise.
4216 * d-lang.c (d_language_data): Likewise.
4217 * f-lang.c (f_language_data): Likewise.
4218 * findvar.c (default_read_var_value): Rename to...
4219 (language_defn::read_var_value): ...this.
4220 * findvar.c (read_var_value): Update header comment, and change to
4221 call member function instead of function pointer.
4222 * go-lang.c (go_language_data): Likewise.
4223 * language.c (unknown_language_data): Delete la_read_var_value
4224 initializer.
4225 (auto_language_data): Likewise.
4226 * language.h (struct language_data): Delete la_read_var_value
4227 field.
4228 (language_defn::read_var_value): New member function.
4229 (default_read_var_value): Delete declaration.
4230 * m2-lang.c (m2_language_data): Delete la_read_var_value
4231 initializer.
4232 * objc-lang.c (objc_language_data): Likewise.
4233 * opencl-lang.c (opencl_language_data): Likewise.
4234 * p-lang.c (pascal_language_data): Likewise.
4235 * rust-lang.c (rust_language_data): Likewise.
4236 * value.h (default_read_var_value): Delete declaration.
4237
4238 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4239
4240 * ada-lang.c (ada_print_array_index): Delete function, move
4241 implementation to...
4242 (ada_language::print_array_index): ...here.
4243 (ada_language_data): Delete la_print_array_index initializer.
4244 * c-lang.c (c_language_data): Likewise.
4245 (cplus_language_data): Likewise.
4246 (minimal_language_data): Likewise.
4247 * d-lang.c (d_language_data): Likewise.
4248 * f-lang.c (f_language_data): Likewise.
4249 * go-lang.c (go_language_data): Likewise.
4250 * language.c (default_print_array_index): Delete function, move
4251 implementation to...
4252 (language_defn::print_array_index): ...here.
4253 (unknown_language_data): Delete la_print_array_index initializer.
4254 (auto_language_data): Likewise.
4255 * language.h (struct language_data): Delete la_print_array_index
4256 field.
4257 (language_defn::print_array_index): New member function.
4258 (LA_PRINT_ARRAY_INDEX): Update.
4259 (default_print_array_index): Delete declaration.
4260 * m2-lang.c (m2_language_data): Delete la_print_array_index
4261 initializer.
4262 * objc-lang.c (objc_language_data): Likewise.
4263 * opencl-lang.c (opencl_language_data): Likewise.
4264 * p-lang.c (pascal_language_data): Likewise.
4265 * rust-lang.c (rust_language_data): Likewise.
4266
4267 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4268
4269 * gdb/ada-lang.c (ada_language_defn): Convert to...
4270 (ada_language_data): ...this.
4271 (class ada_language): New class.
4272 (ada_language_defn): New static global.
4273 * gdb/c-lang.c (c_language_defn): Convert to...
4274 (c_language_data): ...this.
4275 (class c_language): New class.
4276 (c_language_defn): New static global.
4277 (cplus_language_defn): Convert to...
4278 (cplus_language_data): ...this.
4279 (class cplus_language): New class.
4280 (cplus_language_defn): New static global.
4281 (asm_language_defn): Convert to...
4282 (asm_language_data): ...this.
4283 (class asm_language): New class.
4284 (asm_language_defn): New static global.
4285 (minimal_language_defn): Convert to...
4286 (minimal_language_data): ...this.
4287 (class minimal_language): New class.
4288 (minimal_language_defn): New static global.
4289 * gdb/d-lang.c (d_language_defn): Convert to...
4290 (d_language_data): ...this.
4291 (class d_language): New class.
4292 (d_language_defn): New static global.
4293 * gdb/f-lang.c (f_language_defn): Convert to...
4294 (f_language_data): ...this.
4295 (class f_language): New class.
4296 (f_language_defn): New static global.
4297 * gdb/go-lang.c (go_language_defn): Convert to...
4298 (go_language_data): ...this.
4299 (class go_language): New class.
4300 (go_language_defn): New static global.
4301 * gdb/language.c (unknown_language_defn): Remove declaration.
4302 (current_language): Initialize to nullptr, real initialization is
4303 moved to _initialize_language.
4304 (languages): Delete global.
4305 (language_defn::languages): Define.
4306 (set_language_command): Use language_defn::languages.
4307 (set_language): Likewise.
4308 (range_error): Likewise.
4309 (language_enum): Likewise.
4310 (language_def): Likewise.
4311 (add_set_language_command): Use language_def::languages for the
4312 language list, and language_def to lookup language pointers.
4313 (skip_language_trampoline): Use language_defn::languages.
4314 (unknown_language_defn): Convert to...
4315 (unknown_language_data): ...this.
4316 (class unknown_language): New class.
4317 (unknown_language_defn): New static global.
4318 (auto_language_defn): Convert to...
4319 (auto_language_data): ...this.
4320 (class auto_language): New class.
4321 (auto_language_defn): New static global.
4322 (language_gdbarch_post_init): Use language_defn::languages.
4323 (_initialize_language): Initialize current_language.
4324 * gdb/language.h (struct language_defn): Rename to...
4325 (struct language_data): ...this.
4326 (struct language_defn): New.
4327 (auto_language_defn): Delete.
4328 (unknown_language_defn): Delete.
4329 (minimal_language_defn): Delete.
4330 (ada_language_defn): Delete.
4331 (asm_language_defn): Delete.
4332 (c_language_defn): Delete.
4333 (cplus_language_defn): Delete.
4334 (d_language_defn): Delete.
4335 (f_language_defn): Delete.
4336 (go_language_defn): Delete.
4337 (m2_language_defn): Delete.
4338 (objc_language_defn): Delete.
4339 (opencl_language_defn): Delete.
4340 (pascal_language_defn): Delete.
4341 (rust_language_defn): Delete.
4342 * gdb/m2-lang.c (m2_language_defn): Convert to...
4343 (m2_language_data): ...this.
4344 (class m2_language): New class.
4345 (m2_language_defn): New static global.
4346 * gdb/objc-lang.c (objc_language_defn): Convert to...
4347 (objc_language_data): ...this.
4348 (class objc_language): New class.
4349 (objc_language_defn): New static global.
4350 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4351 (opencl_language_data): ...this.
4352 (class opencl_language): New class.
4353 (opencl_language_defn): New static global.
4354 * gdb/p-lang.c (pascal_language_defn): Convert to...
4355 (pascal_language_data): ...this.
4356 (class pascal_language): New class.
4357 (pascal_language_defn): New static global.
4358 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4359 language pointer, update comment format.
4360 * gdb/rust-lang.c (rust_language_defn): Convert to...
4361 (rust_language_data): ...this.
4362 (class rust_language): New class.
4363 (rust_language_defn): New static global.
4364
4365 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4366
4367 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4368 member variable.
4369 <m_stmt_at_address>: New member variable.
4370 (lnp_state_machine::record_line): Don't record some lines, update
4371 tracking of is_stmt at the same address.
4372 (lnp_state_machine::lnp_state_machine): Initialise new member
4373 variables.
4374
4375 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4376
4377 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4378 "-include gnu-nat-mig.h".
4379 * gnu-nat-mig.h: New file.
4380 * gnu-nat.c: Include "gnu-nat-mig.h".
4381 (exc_server, msg_reply_server, notify_server,
4382 process_reply_server): Remove declarations.
4383
4384 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4385
4386 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4387 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4388 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4389 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4390 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4391 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4392 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4393 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4394 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4395 to gnu_nat_target class.
4396 * gnu-nat.c: Likewise.
4397 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4398 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4399 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4400 object.
4401 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4402 instead of `gnu_target'.
4403
4404 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4405
4406 * i386-gnu-tdep.c: Include "gdbcore.h"
4407 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4408 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4409 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4410 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4411 i386_gnu_sigcontext_addr): New functions
4412 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4413 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4414 tdep.
4415
4416 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4417
4418 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4419 before fork_inferior call. Avoid calling it if target_is_pushed returns
4420 true.
4421
4422 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4423
4424 * gnu-nat.h (gnu_target): New variable declaration.
4425 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4426 gnu_target.
4427 * gnu-nat.c (gnu_target): New variable.
4428 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4429 add_thread_silent, and add_thread calls.
4430 (gnu_nat_target::create_inferior): Pass gnu_target to
4431 add_thread_silent, thread_change_ptid call.
4432 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4433 call.
4434
4435 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4436
4437 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4438 (gnu_nat_target::find_memory_regions): Remove unused
4439 `old_address' variable.
4440
4441 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4442
4443 * gnu-nat.c: Include "gdbarch.h".
4444
4445 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4446
4447 * reply_mig_hack.awk (Error return): Cast function through
4448 void *, to bypass compiler function call check.
4449
4450 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4451
4452 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4453 $(srcdir)/reply_mig_hack.awk.
4454
4455 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4456
4457 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4458
4459 2020-05-30 Jonny Grant <jg@jguk.org>
4460
4461 * configure.ac (ACX_BUGURL): change bug URL to https.
4462
4463 2020-05-30 Pedro Alves <palves@redhat.com>
4464
4465 * cp-support.c (replace_typedefs_template): New.
4466 (replace_typedefs_qualified_name): Handle
4467 DEMANGLE_COMPONENT_TEMPLATE.
4468
4469 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4470
4471 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4472 dwarf2/index-cache.h, dwarf2/index-write.c,
4473 dwarf2/index-write.h, dwarf2/line-header.c,
4474 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4475 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4476 variables and fields from `dwarf2_per_objfile` to just
4477 `per_objfile` throughout.
4478
4479 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4480
4481 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4482 <push_dwarf_reg_entry_value>: Add comment.
4483
4484 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4485 Keith Seitz <keiths@redhat.com>
4486
4487 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4488 instead of PyEval_ReleaseLock.
4489 (class gdbpy_gil): Move to earlier in file.
4490 (finalize_python): Set gdb_python_initialized.
4491 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4492 when not initialized.
4493
4494 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4495
4496 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4497 <push_dwarf_reg_entry_value>: Remove assert. Override
4498 per_objfile with caller_per_objfile.
4499
4500 2020-05-28 Tom de Vries <tdevries@suse.de>
4501
4502 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4503 PR gold/15646 workaround to symbol kind "type".
4504
4505 2020-05-27 Tom Tromey <tromey@adacore.com>
4506
4507 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4508
4509 2020-05-27 Tom Tromey <tromey@adacore.com>
4510
4511 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4512 Use htab_find_with_hash.
4513 <add_abbrev>: Remove "abbrev_number" parameter.
4514 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4515 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4516 (hash_abbrev): Add comment.
4517 (abbrev_table::lookup_abbrev): Move to header file.
4518 (abbrev_table::read): Update.
4519
4520 2020-05-27 Tom Tromey <tromey@adacore.com>
4521
4522 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4523 method.
4524 <canonical_name>: New member.
4525 <raw_name>: Rename from "name".
4526 (partial_die_info): Initialize canonical_name.
4527 (scan_partial_symbols): Check raw_name.
4528 (partial_die_parent_scope, partial_die_full_name)
4529 (add_partial_symbol, add_partial_subprogram)
4530 (add_partial_enumeration, load_partial_dies): Use "name" method.
4531 (partial_die_info::name): New method.
4532 (partial_die_info::read, guess_partial_die_structure_name)
4533 (partial_die_info::fixup): Update.
4534
4535 2020-05-27 Tom Tromey <tromey@adacore.com>
4536
4537 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4538 <get_ref_die_offset>: Inline.
4539 <get_ref_die_offset_complaint>: New method.
4540 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4541 (attribute::get_ref_die_offset_complaint): Rename from
4542 get_ref_die_offset. Just issue complaint.
4543
4544 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4545
4546 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4547
4548 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4549
4550 * exec.c (exec_file_attach): Use errno value of first openp failure.
4551
4552 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4553
4554 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4555 Don't close thread handle.
4556
4557 2020-05-27 Tom Tromey <tom@tromey.com>
4558 Simon Marchi <simon.marchi@efficios.com>
4559
4560 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4561 shared_ptr.
4562 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4563 member.
4564 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4565 dwarf2_per_bfd_objfile_data_key>: New globals.
4566 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4567 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4568 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4569 shared.
4570 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4571 short-circuit when sharing.
4572 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4573 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4574
4575 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4576
4577 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4578 to...
4579 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4580 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4581
4582 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4583
4584 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4585 build_name_components, find_name_components_bounds>:
4586 Add per_objfile parameter.
4587 (struct mapped_index) <symbol_name_at>: Likewise.
4588 (struct mapped_debug_names): Remove constructor.
4589 <dwarf2_per_objfile>: Remove field.
4590 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4591 (mapped_index_base::find_name_components_bounds,
4592 mapped_index_base::build_name_components,
4593 dw2_expand_symtabs_matching_symbol): Likewise.
4594 (class mock_mapped_index) <symbol_name_at>: Likewise.
4595 (check_match): Likewise.
4596 (check_find_bounds_finds): Likewise.
4597 (test_mapped_index_find_name_component_bounds): Update.
4598 (CHECK_MATCH): Update.
4599 (dw2_expand_symtabs_matching): Update.
4600 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4601 per_objfile parameter.
4602 <find_vec_in_debug_names>: Likewise.
4603 <m_per_objfile>: New field.
4604 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4605 parameter.
4606 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4607 (dw2_debug_names_iterator::next): Update.
4608 (dw2_debug_names_lookup_symbol): Update.
4609 (dw2_debug_names_expand_symtabs_for_function): Update.
4610 (dw2_debug_names_map_matching_symbols): Update.
4611 (dw2_debug_names_expand_symtabs_matching): Update.
4612 (dwarf2_read_debug_names): Update.
4613
4614 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4615
4616 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4617 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4618 move to dwarf2_per_objfile.
4619 <read_in_chain>: Remove.
4620 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4621 remove_all_cus, age_comp_units>: New methods.
4622 <m_dwarf2_cus>: New member.
4623 (struct dwarf2_per_cu_data) <cu>: Remove.
4624 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4625 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4626 moved to methods of dwarf2_per_objfile.
4627 (dwarf2_clear_marks): Remove.
4628 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4629 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4630 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4631 (dwarf2_per_objfile::remove_all_cus): New.
4632 (class free_cached_comp_units) <~free_cached_comp_units>:
4633 Update.
4634 (load_cu): Update.
4635 (dw2_do_instantiate_symtab): Adjust.
4636 (fill_in_sig_entry_from_dwo_entry): Adjust.
4637 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4638 (cutu_reader::cutu_reader): Likewise.
4639 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4640 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4641 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4642 and dwarf2_per_objfile::age_comp_units.
4643 (load_partial_comp_unit): Update.
4644 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4645 (process_queue): Likewise.
4646 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4647 backlink.
4648 (dwarf2_read_addr_index): Likewise.
4649 (follow_die_offset): Likewise.
4650 (dwarf2_fetch_die_loc_sect_off): Likewise.
4651 (dwarf2_fetch_constant_bytes): Likewise.
4652 (dwarf2_fetch_die_type_sect_off): Likewise.
4653 (follow_die_sig_1): Likewise.
4654 (load_full_type_unit): Likewise.
4655 (read_signatured_type): Likewise.
4656 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4657 (dwarf2_cu::~dwarf2_cu): Remove.
4658 (dwarf2_per_objfile::get_cu): New.
4659 (dwarf2_per_objfile::set_cu): New.
4660 (age_cached_comp_units): Rename to...
4661 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4662 to std::unordered_map.
4663 (free_one_cached_comp_unit): Rename to...
4664 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4665 to std::unordered_map.
4666 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4667 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4668 a dwarf2_per_objfile in data.
4669 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4670 (dwarf2_clear_marks): Remove.
4671
4672 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4673
4674 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4675 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4676 (init_tu_and_read_dwo_dies): Likewise.
4677 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4678 (cutu_reader::cutu_reader): Likewise.
4679 (load_partial_comp_unit): Likewise.
4680 (process_psymtab_comp_unit): Update.
4681 (build_type_psymtabs_1): Update.
4682 (process_skeletonless_type_unit): Update.
4683 (load_full_comp_unit): Update.
4684 (find_partial_die): Update.
4685 (dwarf2_read_addr_index): Update.
4686 (read_signatured_type): Update.
4687
4688 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4689
4690 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4691 m_header_read_in>: New fields.
4692 <get_header>: New method.
4693 * dwarf2/read.c (per_cu_header_read_in): Remove.
4694 (dwarf2_per_cu_data::get_header): New.
4695 (dwarf2_per_cu_data::addr_size): Update.
4696 (dwarf2_per_cu_data::offset_size): Update.
4697 (dwarf2_per_cu_data::ref_addr_size): Update.
4698
4699 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4700
4701 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4702 (dw2_do_instantiate_symtab): Update.
4703 (queue_and_load_all_dwo_tus): Change parameter from
4704 dwarf2_per_cu_data to dwarf2_cu.
4705 (dwarf2_fetch_die_loc_sect_off): Update.
4706 (dwarf2_fetch_constant_bytes): Update.
4707 (dwarf2_fetch_die_type_sect_off): Update.
4708
4709 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4710
4711 * dwarf2/read.c (process_full_comp_unit,
4712 process_full_type_unit): Remove per_cu, per_objfile paramters.
4713 Add dwarf2_cu parameter.
4714 (process_queue): Update.
4715
4716 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4717
4718 * dwarf2/read.c (create_cu_from_index_list): Replace
4719 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4720 (create_cus_from_index_list): Likewise.
4721 (create_cus_from_index): Likewise.
4722 (create_signatured_type_table_from_index): Likewise.
4723 (create_cus_from_debug_names_list): Likewise.
4724 (create_cus_from_debug_names): Likewise.
4725 (dwarf2_read_gdb_index): Update.
4726 (dwarf2_read_debug_names): Update.
4727
4728 2020-05-27 Tom Tromey <tom@tromey.com>
4729 Simon Marchi <simon.marchi@efficios.com>
4730
4731 * dwarf2/read.h (struct dwarf2_per_objfile)
4732 <get_type_for_signatured_type, set_type_for_signatured_type>:
4733 New methods.
4734 <m_type_map>: New member.
4735 (struct signatured_type) <type>: Remove.
4736 * dwarf2/read.c
4737 (dwarf2_per_objfile::get_type_for_signatured_type,
4738 dwarf2_per_objfile::set_type_for_signatured_type): New.
4739 (get_signatured_type): Use new methods.
4740
4741 2020-05-27 Tom Tromey <tom@tromey.com>
4742 Simon Marchi <simon.marchi@efficios.com>
4743
4744 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4745 (struct dwarf2_per_objfile) <type_units>: New member.
4746 <get_type_unit_group_unshareable>: New method.
4747 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4748 num_symtabs, symtabs>: Remove; move to
4749 type_unit_group_unshareable.
4750 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4751 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4752 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4753
4754 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4755
4756 * dwarf2/read.h (struct dwarf2_per_cu_data):
4757 <dwarf2_per_objfile>: Remove.
4758 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4759 dwarf2_per_objfile.
4760 (create_signatured_type_table_from_index): Likewise.
4761 (create_signatured_type_table_from_debug_names): Likewise.
4762 (create_debug_type_hash_table): Likewise.
4763 (fill_in_sig_entry_from_dwo_entry): Likewise.
4764 (create_type_unit_group): Likewise.
4765 (read_comp_units_from_section): Likewise.
4766 (create_cus_hash_table): Likewise.
4767
4768 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4769
4770 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4771 dwarf2_per_cu_data::dwarf2_per_objfile.
4772 (compute_compunit_symtab_includes): Likewise.
4773 (dwarf2_cu::start_symtab): Likewise.
4774
4775 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4776
4777 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4778 parameter.
4779 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4780 (read_namespace_alias): Update.
4781 (lookup_die_type): Update.
4782 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4783 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4784 Update.
4785 (disassemble_dwarf_expression): Update.
4786
4787 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4788
4789 * dwarf2/read.h (struct dwarf2_queue_item): Add
4790 dwarf2_per_objfile parameter, assign new parameter.
4791 <per_objfile>: New field.
4792 * dwarf2/read.c (free_one_cached_comp_unit): Add
4793 dwarf2_per_objfile parameter.
4794 (queue_comp_unit): Likewise.
4795 (dw2_do_instantiate_symtab): Update.
4796 (process_psymtab_comp_unit): Update.
4797 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4798 (process_imported_unit_die): Update.
4799 (queue_and_load_dwo_tu): Update.
4800 (follow_die_offset): Update.
4801 (follow_die_sig_1): Update.
4802
4803 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4804
4805 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4806 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4807 (read_call_site_scope): Assign per_objfile.
4808 (dwarf2_per_cu_data::objfile): Remove.
4809 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4810 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4811 dwarf2_per_objfile parameter.
4812 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4813 dwarf2_per_objfile parameter.
4814 (dwarf_expr_reg_to_entry_parameter): Add output
4815 dwarf2_per_objfile parameter.
4816 (locexpr_get_frame_base): Update.
4817 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4818 <push_dwarf_reg_entry_value>: Update.
4819 <call_site_to_target_addr>: Update.
4820 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4821 parameter.
4822 (value_of_dwarf_reg_entry): Update.
4823 (rw_pieced_value): Update.
4824 (indirect_synthetic_pointer): Update.
4825 (dwarf2_evaluate_property): Update.
4826 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4827 parameter.
4828 (locexpr_read_variable): Update.
4829 (locexpr_get_symbol_read_needs): Update.
4830 (loclist_read_variable): Update.
4831
4832 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4833
4834 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4835 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4836 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4837 parameter.
4838 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4839 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4840 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4841 parameter.
4842 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4843 sect_variable_value): Add dwarf2_per_objfile parameter.
4844 (class dwarf_evaluate_loc_desc) <dwarf_call,
4845 dwarf_variable_value>: Update.
4846 (fetch_const_value_from_synthetic_pointer): Add
4847 dwarf2_per_objfile parameter.
4848 (fetch_const_value_from_synthetic_pointer): Update.
4849 (coerced_pieced_ref): Update.
4850 (class symbol_needs_eval_context) <dwarf_call,
4851 dwarf_variable_value>: Update.
4852 (dwarf2_compile_expr_to_ax): Update.
4853
4854 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4855
4856 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4857 parameter.
4858 (dwarf2_evaluate_loc_desc_full): Update.
4859
4860 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4861
4862 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4863 parameter.
4864 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4865 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4866 dwarf2_per_objfile parameter.
4867 (decode_debug_loc_dwo_addresses): Likewise.
4868 (dwarf2_find_location_expression): Update.
4869 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4870 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4871 parameter.
4872 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4873 parameter.
4874 (locexpr_describe_location_1): Likewise.
4875 (locexpr_describe_location): Update.
4876
4877 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4878
4879 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4880 Remove.
4881 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4882 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4883 (dwarf2_compile_property_to_c): Update.
4884 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4885 use text offset from objfile.
4886 (locexpr_tracepoint_var_ref): Update.
4887 (locexpr_generate_c_location): Update.
4888 (loclist_describe_location): Update.
4889 (loclist_tracepoint_var_ref): Update.
4890 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4891 dwarf2_per_objfile parameter.
4892 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4893 use text offset from objfile.
4894 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4895
4896 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4897
4898 * dwarf2/expr.h (struct dwarf_expr_context)
4899 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4900 <offset>: Remove.
4901 <per_objfile>: New member.
4902 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4903 dwarf2_per_objfile parameter. Don't set offset, set
4904 per_objfile.
4905 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4906 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4907 a dwarf2_per_objfile object instead of an offset.
4908 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4909 constructor.
4910 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4911 to dwarf2_expr_executor constructor. Don't set offset.
4912 (dwarf2_fetch_cfa_info): Update.
4913 (struct dwarf2_frame_cache) <text_offset>: Remove.
4914 <per_objfile>: New field.
4915 (dwarf2_frame_cache): Update.
4916 (dwarf2_frame_prev_register): Update.
4917 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4918 <dwarf_evaluate_loc_desc>: Add constructor.
4919 (dwarf2_evaluate_loc_desc_full): Update.
4920 (dwarf2_locexpr_baton_eval): Update.
4921 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4922 Add constructor.
4923 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4924
4925 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4926
4927 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4928 addr_sized_int_type>: Move to dwarf2_cu.
4929 <int_type>: Move to dwarf2_per_objfile.
4930 (struct dwarf2_per_objfile) <int_type>: Move here.
4931 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4932 addr_sized_int_type>: Move here.
4933 (read_func_scope): Update.
4934 (read_array_type): Update.
4935 (read_tag_string_type): Update.
4936 (attr_to_dynamic_prop): Update.
4937 (dwarf2_per_cu_data::int_type): Rename to...
4938 (dwarf2_per_objfile::int_type): ... this.
4939 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4940 (dwarf2_cu::addr_sized_int_type): ... this.
4941 (read_subrange_type): Update.
4942 (dwarf2_per_cu_data::addr_type): Rename to...
4943 (dwarf2_cu::addr_type): ... this.
4944 (set_die_type): Update.
4945
4946 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4947
4948 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4949 data through per_cu->cu.
4950
4951 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4952
4953 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4954 dwarf2_per_cu_data parameter fo dwarf2_cu.
4955 (lookup_dwo_type_unit): Likewise.
4956 (read_cutu_die_from_dwo): Likewise.
4957 (lookup_dwo_unit): Likewise.
4958 (open_and_init_dwo_file): Likewise.
4959 (lookup_dwo_cutu): Likewise.
4960 (lookup_dwo_comp_unit): Likewise.
4961 (lookup_dwo_type_unit): Likewise.
4962 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4963 (cutu_reader::cutu_reader): Update.
4964
4965 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4966
4967 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4968 parameter.
4969 (process_full_type_unit): Likewise.
4970 (process_queue): Update.
4971
4972 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4973
4974 * dwarf2/read.c (recursively_compute_inclusions): Add
4975 dwarf2_per_objfile parameter.
4976 (compute_compunit_symtab_includes): Likewise.
4977 (process_cu_includes): Update.
4978
4979 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4980
4981 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4982 parameter.
4983 (create_type_unit_group): Update.
4984 (process_psymtab_comp_unit_reader): Update.
4985 (build_type_psymtabs_reader): Update.
4986
4987 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4988
4989 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4990 object through m_this_cu->cu.
4991
4992 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4993
4994 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4995 the info parameter.
4996 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4997
4998 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4999
5000 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5001 per_objfile parameter.
5002 (load_full_type_unit): Add per_objfile parameter.
5003 (read_signatured_type): Likewise.
5004 (load_full_comp_unit): Likewise.
5005 (load_cu): Likewise.
5006 (dw2_do_instantiate_symtab): Likewise.
5007 (dw2_get_file_names): Likewise.
5008 (dw2_map_symtabs_matching_filename): Update.
5009 (dw_expand_symtabs_matching_file_matcher): Update.
5010 (dw2_map_symbol_filenames): Update.
5011 (process_psymtab_comp_unit): Add per_objfile parameter.
5012 (build_type_psymtabs_1): Update.
5013 (process_skeletonless_type_unit): Update.
5014 (dwarf2_build_psymtabs_hard): Update.
5015 (load_partial_comp_unit): Add per_objfile parameter.
5016 (scan_partial_symbols): Update.
5017 (load_full_comp_unit): Add per_objfile parameter.
5018 (process_imported_unit_die): Update.
5019 (create_cus_hash_table): Update.
5020 (find_partial_die): Update.
5021 (dwarf2_read_addr_index): Update.
5022 (follow_die_offset): Update.
5023 (dwarf2_fetch_die_loc_sect_off): Update.
5024 (dwarf2_fetch_constant_bytes): Update.
5025 (dwarf2_fetch_die_type_sect_off): Update.
5026 (follow_die_sig_1): Update.
5027 (load_full_type_unit): Add per_objfile parameter.
5028 (read_signatured_type): Likewise.
5029
5030 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5031
5032 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5033 of objfile_name.
5034
5035 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5036
5037 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5038 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5039 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5040 field.
5041 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5042 (create_cus_from_index): Update.
5043 (dwarf2_read_gdb_index): Update.
5044 (create_cus_from_debug_names): Update.
5045 (dwarf2_read_debug_names): Update.
5046 (get_abbrev_section_for_cu): Update.
5047 (create_all_comp_units): Update.
5048 (read_attribute_value): Update.
5049 (get_debug_line_section): Update.
5050 * dwarf2/index-cache.c (index_cache::store): Update.
5051 * dwarf2/index-write.c (save_gdb_index_command): Update.
5052 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5053
5054 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5055
5056 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5057 member.
5058 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5059 dwarf2_per_cu_data::per_bfd.
5060 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5061 (create_type_unit_group): Likewise.
5062 (queue_comp_unit): Remove reference to
5063 per_cu->dwarf2_per_objfile.
5064 (maybe_queue_comp_unit): Likewise.
5065 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5066 (create_cus_hash_table): Assign new field.
5067
5068 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5069
5070 * dwarf2/read.c: Replace
5071 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5072 dwarf2_cu->per_objfile throughout.
5073
5074 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5075
5076 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5077 parameter, don't use per_cu->dwarf2_per_objfile.
5078 (dw2_instantiate_symtab): Likewise.
5079 (dw2_find_last_source_symtab): Update.
5080 (dw2_map_expand_apply): Update.
5081 (dw2_lookup_symbol): Update.
5082 (dw2_expand_symtabs_for_function): Update.
5083 (dw2_expand_all_symtabs): Update.
5084 (dw2_expand_symtabs_with_fullname): Update.
5085 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5086 don't use per_cu->dwarf2_per_objfile.
5087 (dw2_expand_marked_cus): Update.
5088 (dw2_find_pc_sect_compunit_symtab): Update.
5089 (dw2_debug_names_lookup_symbol): Update.
5090 (dw2_debug_names_expand_symtabs_for_function): Update.
5091 (dw2_debug_names_map_matching_symbols): Update.
5092 (dwarf2_psymtab::expand_psymtab): Update.
5093
5094 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5095
5096 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5097 <per_objfile>: New member.
5098 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5099 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5100 call to dwarf2_cu.
5101 (cutu_reader::cutu_reader): Update.
5102 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5103
5104 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5105
5106 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5107 struct dwarf2_per_objfile.
5108 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5109 dwarf2_per_bfd.
5110 * dwarf2/read.c (set_die_type): Update.
5111 (get_die_type_at_offset): Update.
5112
5113 2020-05-27 Tom Tromey <tom@tromey.com>
5114 Simon Marchi <simon.marchi@efficios.com>
5115
5116 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5117 method.
5118 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5119 get_symtab, set_symtab>: New methods.
5120 <m_symtabs>: New field.
5121 (struct dwarf2_psymtab): Derive from partial_symtab.
5122 <readin_p, get_compunit_symtab>: Declare methods.
5123 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5124 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5125 New methods.
5126 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5127 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5128 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5129 (dw2_symtab_iter_next, dw2_print_stats)
5130 (dw2_expand_symtabs_with_fullname)
5131 (dw2_expand_symtabs_matching_one)
5132 (dw_expand_symtabs_matching_file_matcher)
5133 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5134 (dw2_debug_names_iterator::next)
5135 (dw2_debug_names_map_matching_symbols)
5136 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5137 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5138 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5139 New methods.
5140 (get_compunit_symtab, process_full_comp_unit)
5141 (process_full_type_unit): Update.
5142 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5143
5144 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5145
5146 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5147 then introduce a new dwarf2_per_objfile type.
5148 <read_line_string>: Move to the new dwarf2_per_objfile type.
5149 <objfile>: Likewise.
5150 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5151 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5152 dwarf2_per_objfile->per_bfd.
5153 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5154 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5155 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5156 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5157 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5158 (dwarf2_per_objfile::locate_sections): Rename to...
5159 (dwarf2_per_bfd::locate_sections): ... this.
5160 (dwarf2_per_objfile::get_cutu): Rename to...
5161 (dwarf2_per_bfd::get_cutu): ... this.
5162 (dwarf2_per_objfile::get_cu): Rename to...
5163 (dwarf2_per_bfd::get_cu): ... this.
5164 (dwarf2_per_objfile::get_tu): Rename to...
5165 (dwarf2_per_bfd::get_tu): ... this.
5166 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5167 (dwarf2_per_bfd::allocate_per_cu): ... this.
5168 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5169 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5170 (get_gdb_index_contents_ftype): Change parameter from
5171 dwarf2_per_objfile to dwarf2_per_bfd.
5172 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5173 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5174
5175 2020-05-27 Tom Tromey <tom@tromey.com>
5176 Simon Marchi <simon.marchi@efficios.com>
5177
5178 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5179 (allocate_piece_closure): Set "per_objfile" member.
5180 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5181 (locexpr_describe_location, loclist_describe_location): Use new
5182 member.
5183 * dwarf2/read.c (read_call_site_scope)
5184 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5185 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5186 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5187 handle_data_member_location): Set per_objfile member.
5188 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5189 member.
5190 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5191
5192 2020-05-27 Tom Tromey <tom@tromey.com>
5193
5194 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5195 allocate_signatured_type>: Declare new methods.
5196 <m_num_psymtabs>: New member.
5197 (struct dwarf2_per_cu_data) <index>: New member.
5198 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5199 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5200 (create_cu_from_index_list): Use allocate_per_cu.
5201 (create_signatured_type_table_from_index)
5202 (create_signatured_type_table_from_debug_names)
5203 (create_debug_type_hash_table, add_type_unit)
5204 (read_comp_units_from_section): Use allocate_signatured_type.
5205
5206 2020-05-27 Tom Tromey <tom@tromey.com>
5207
5208 * psymtab.c (partial_map_expand_apply)
5209 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5210 (psym_lookup_global_symbol_language)
5211 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5212 (psym_print_stats, psym_expand_symtabs_for_function)
5213 (psym_map_symbol_filenames, psym_map_matching_symbols)
5214 (psym_expand_symtabs_matching)
5215 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5216 (maintenance_check_psymtabs): Update.
5217 * psympriv.h (struct partial_symtab) <readin_p,
5218 get_compunit_symtab>: Add objfile parameter.
5219 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5220 Likewise.
5221 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5222 get_compunit_symtab>: Likewise.
5223 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5224
5225 2020-05-27 Tom Tromey <tom@tromey.com>
5226
5227 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5228 member.
5229 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5230 (create_cu_from_index_list)
5231 (create_signatured_type_table_from_index)
5232 (create_signatured_type_table_from_debug_names)
5233 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5234 (dwarf2_create_include_psymtab)
5235 (create_debug_type_hash_table, add_type_unit)
5236 (create_type_unit_group, read_comp_units_from_section)
5237 (dwarf2_compute_name, create_cus_hash_table)
5238 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5239 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5240 obstack.
5241 (dw2_get_real_path): Likewise. Change argument to
5242 dwarf2_per_objfile.
5243
5244 2020-05-27 Luis Machado <luis.machado@linaro.org>
5245
5246 PR tdep/26000
5247 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5248 for ldrd (immediate).
5249
5250 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5251
5252 * command.h: Add comment giving the name of class_tui.
5253 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5254 create the fake command for the help for class_tui.
5255
5256 2020-05-26 Tom Tromey <tromey@adacore.com>
5257
5258 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5259 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5260 (val_atr): New function.
5261 (value_val_atr): Use it.
5262 * ada-valprint.c (print_optional_low_bound): Change low bound
5263 handling for enums.
5264 (val_print_packed_array_elements): Don't call discrete_position.
5265 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5266 discrete_position for enum types.
5267 * language.c (default_print_array_index): Change type.
5268 * language.h (struct language_defn) <la_print_array_index>: Add
5269 index_type parameter, change type of index_value.
5270 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5271 (default_print_array_index): Update.
5272 * valprint.c (maybe_print_array_index): Don't call
5273 value_from_longest. Update.
5274 (value_print_array_elements): Don't call discrete_position.
5275
5276 2020-05-26 Tom Tromey <tromey@adacore.com>
5277
5278 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5279 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5280
5281 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5282
5283 PR gdb/13519
5284 * avr-tdep.c (avr_integer_to_address): Return data or code
5285 address accordingly to the second 'type' argument of the
5286 function.
5287
5288 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5289
5290 * infcmd.c, inferior.h: (construct_inferior_arguments):
5291 Moved function from here to gdbsupport/common-inferior.{h,cc}
5292
5293 2020-05-23 Tom Tromey <tom@tromey.com>
5294
5295 Revert commit eca1f90c:
5296 * NEWS: Remove entry for completion styling.
5297 * completer.c (_rl_completion_prefix_display_length): Move
5298 declaration later.
5299 (gdb_fnprint): Revert.
5300 (gdb_display_match_list_1): Likewise.
5301 * cli/cli-style.c (completion_prefix_style)
5302 (completion_difference_style, completion_suffix_style): Remove.
5303 (_initialize_cli_style): Revert.
5304 * cli/cli-style.h (completion_prefix_style)
5305 (completion_difference_style, completion_suffix_style): Don't
5306 declare.
5307
5308 2020-05-24 Pedro Alves <palves@redhat.com>
5309
5310 * symtab.c (completion_list_add_name): Return boolean indication
5311 of whether the symbol matched.
5312 (completion_list_add_symbol): Don't try to remove C++ aliases if
5313 the symbol didn't match in the first place.
5314 * symtab.h (completion_list_add_name): Return bool.
5315
5316 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5317
5318 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5319 type::field.
5320
5321 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5322
5323 GDB 9.2 released.
5324
5325 2020-05-23 Tom Tromey <tom@tromey.com>
5326
5327 * NEWS: Add entry for completion styling.
5328 * completer.c (_rl_completion_prefix_display_length): Move
5329 declaration earlier.
5330 (gdb_fnprint): Use completion_style.
5331 (gdb_display_match_list_1): Likewise.
5332 * cli/cli-style.c (completion_prefix_style)
5333 (completion_difference_style, completion_suffix_style): New
5334 globals.
5335 (_initialize_cli_style): Register new globals.
5336 * cli/cli-style.h (completion_prefix_style)
5337 (completion_difference_style, completion_suffix_style): Declare.
5338
5339 2020-05-23 Pedro Alves <palves@redhat.com>
5340
5341 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5342 (parse_escape): Use ISDIGIT instead of isdigit.
5343 (puts_debug): Use gdb_isprint instead of isprint.
5344 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5345 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5346 ISSPACE instead of isspace.
5347 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5348 instead of isspace.
5349 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5350 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5351 instead of isxdigit and ISDIGIT instead of isdigit.
5352
5353 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5354
5355 * gdbtypes.h (struct type) <field>: New method.
5356 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5357 or type::field.
5358
5359 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5360
5361 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5362 (TYPE_FIELDS): Use type::fields. Change all call sites that
5363 modify the propery to use type::set_fields instead.
5364
5365 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5366
5367 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5368 type::num_fields instead.
5369
5370 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5371
5372 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5373 methods.
5374 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5375 that modify the number of fields to use type::set_num_fields
5376 instead.
5377
5378 2020-05-22 Tom Tromey <tromey@adacore.com>
5379
5380 * compile/compile-object-load.h (munmap_list_free): Don't
5381 declare.
5382
5383 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5384
5385 * annotate.c (annotate_source_line): Update return type, add call
5386 to update current symtab and line.
5387 * annotate.h (annotate_source_line): Update return type, and
5388 extend header comment.
5389 * source.c (info_line_command): Check annotation_level before
5390 calling annotate_source_line.
5391 * stack.c (print_frame_info): If calling annotate_source_line
5392 returns true, then don't print any other source line information.
5393
5394 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5395
5396 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5397
5398 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5399
5400 * coffread.c (patch_type): Remove NULL check before xfree.
5401 * corefile.c (set_gnutarget): Likewise.
5402 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5403 * exec.c (build_section_table): Likewise.
5404 * remote.c (remote_target::pass_signals): Likewise.
5405 * utils.c (n_spaces): Likewise.
5406 * cli/cli-script.c (document_command): Likewise.
5407 * i386-windows-tdep.c (core_process_module_section): Likewise.
5408 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5409
5410 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5411
5412 * symfile.c (reread_symbols): Clear objfile's section_offsets
5413 vector and section indices, re-compute them by calling
5414 sym_offsets.
5415
5416 2020-05-20 Tom Tromey <tromey@adacore.com>
5417
5418 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5419 (desc_one_bound, desc_index_type): Compute field name.
5420
5421 2020-05-20 Tom de Vries <tdevries@suse.de>
5422
5423 PR symtab/25833
5424 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5425
5426 2020-05-20 Alan Modra <amodra@gmail.com>
5427
5428 PR 25993
5429 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5430 bfd_set_filename.
5431 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5432 passed to bfd_set_filename.
5433 * symfile-mem.c (add_vsyscall_page): Likewise for string
5434 passed to symbol_file_add_from_memory.
5435 (symbol_file_add_from_memory): Make name param a const char* and
5436 don't strdup.
5437
5438 2020-05-20 Alan Modra <amodra@gmail.com>
5439
5440 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5441 rather than accessing bfd->filename directly.
5442 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5443 and use bfd_section_name.
5444 * dwarf2/frame.c (decode_frame_entry): Likewise.
5445 * exec.c (exec_set_section_address): Likewise.
5446 * solib-aix.c (solib_aix_bfd_open): Likewise.
5447 * stap-probe.c (get_stap_base_address): Likewise.
5448 * symfile.c (reread_symbols): Likewise.
5449
5450 2020-05-19 Tom Tromey <tromey@adacore.com>
5451
5452 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5453
5454 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5455
5456 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5457
5458 2020-05-19 Pedro Alves <palves@redhat.com>
5459
5460 * NEWS (set exec-file-mismatch): Adjust entry.
5461 * exec.c: Include "build-id.h".
5462 (validate_exec_file): Try to match build IDs instead of filenames.
5463 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5464 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5465 and pass down 'warn_if_slow'.
5466 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5467 gdb_bfd_open_closure to pass it down.
5468 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5469
5470 2020-05-19 Pedro Alves <palves@redhat.com>
5471
5472 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5473 * target.c (target_fileio_open_1): Rename to target_fileio_open
5474 and make extern. Use bool.
5475 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5476 (target_fileio_read_alloc_1): Adjust.
5477 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5478 (target_fileio_open_warn_if_slow): Delete declaration.
5479
5480 2020-05-19 Pedro Alves <palves@redhat.com>
5481
5482 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5483 Adjust all callers.
5484
5485 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5486
5487 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5488 whether disp is negative.
5489
5490 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5491
5492 * symfile.h (struct symfile_segment_data)
5493 <~symfile_segment_data>: Remove.
5494 <segment_info>: Change to std::vector.
5495 * symfile.c (default_symfile_segments): Update.
5496 * elfread.c (elf_symfile_segments): Update.
5497
5498 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5499
5500 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5501 <segments>: New.
5502 <segment_bases, segment_sizes>: Remove.
5503 * symfile.c (default_symfile_segments): Update.
5504 * elfread.c (elf_symfile_segments): Update.
5505 * remote.c (remote_target::get_offsets): Update.
5506 * solib-target.c (solib_target_relocate_section_addresses):
5507 Update.
5508
5509 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5510
5511 * symfile.h (struct symfile_segment_data): Initialize fields.
5512 <~symfile_segment_data>: Add.
5513 (symfile_segment_data_up): New.
5514 (struct sym_fns) <sym_segments>: Return a
5515 symfile_segment_data_up.
5516 (default_symfile_segments): Return a symfile_segment_data_up.
5517 (free_symfile_segment_data): Remove.
5518 (get_symfile_segment_data): Return a symfile_segment_data_up.
5519 * symfile.c (default_symfile_segments): Likewise.
5520 (get_symfile_segment_data): Likewise.
5521 (free_symfile_segment_data): Remove.
5522 (symfile_find_segment_sections): Update.
5523 * elfread.c (elf_symfile_segments): Return a
5524 symfile_segment_data_up.
5525 * remote.c (remote_target::get_offsets): Update.
5526 * solib-target.c (solib_target_relocate_section_addresses):
5527 Update.
5528 * symfile-debug.c (debug_sym_segments): Return a
5529 symfile_segment_data_up.
5530
5531 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5532
5533 PR build/25981
5534 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5535 Hardcode register numbers.
5536
5537 PR build/25981
5538 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5539 procfs_find_LDT_entry): Remove.
5540 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5541 procfs_find_LDT_entry): Remove.
5542 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5543 Remove.
5544
5545 2020-05-17 Pedro Alves <palves@redhat.com>
5546 Andrew Burgess <andrew.burgess@embecosm.com>
5547 Keno Fischer <keno@juliacomputing.com>
5548
5549 PR gdb/25741
5550 * breakpoint.c (build_target_condition_list): Update comments.
5551 (build_target_command_list): Update comments and skip matching
5552 locations.
5553 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5554 a separate function. Simplify "set breakpoint auto-hw off"
5555 handling.
5556 (insert_breakpoints): Update comment.
5557 (tracepoint_locations_match): New parameter. For breakpoints,
5558 compare location types too, if the caller wants to.
5559 (handle_automatic_hardware_breakpoints): New functions.
5560 (bp_location_is_less_than): Also sort by location type and
5561 hardware breakpoint length.
5562 (update_global_location_list): Handle "set breakpoint auto-hw on"
5563 here.
5564 (update_breakpoint_locations): Ask breakpoint_locations_match to
5565 ignore location types.
5566
5567 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5568
5569 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5570 type::name instead.
5571
5572 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5573
5574 * gdbtypes.h (struct type) <name, set_name>: New methods.
5575 (TYPE_CODE): Use type::name. Change all call sites used to set
5576 the name to use type::set_name instead.
5577
5578 2020-05-16 Tom Tromey <tom@tromey.com>
5579
5580 * top.c (quit_force): Update.
5581 * infrun.c (handle_no_resumed): Update.
5582 * top.h (all_uis): New function.
5583 (ALL_UIS): Remove.
5584
5585 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5586
5587 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5588
5589 2020-05-16 Pedro Alves <palves@redhat.com>
5590
5591 * ia64-linux-nat.c
5592 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5593 Declare method.
5594 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5595
5596 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5597
5598 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5599 (sparc64_adi_info): Likewise.
5600
5601 2020-05-15 Tom Tromey <tom@tromey.com>
5602
5603 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5604 block_objfile.
5605 (lookup_objfile_from_block): Remove.
5606 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5607 (lookup_global_symbol): Use block_objfile.
5608 * symtab.h (lookup_objfile_from_block): Don't declare.
5609 * printcmd.c (clear_dangling_display_expressions): Use
5610 block_objfile.
5611 * parse.c (operator_check_standard): Use block_objfile.
5612
5613 2020-05-15 Tom Tromey <tom@tromey.com>
5614
5615 * language.c (language_alloc_type_symbol): Set
5616 SYMBOL_SECTION.
5617 * symtab.c (initialize_objfile_symbol): Remove.
5618 (allocate_symbol): Remove.
5619 (allocate_template_symbol): Remove.
5620 * dwarf2/read.c (fixup_go_packaging): Use "new".
5621 (new_symbol): Use "new".
5622 (read_variable): Don't call initialize_objfile_symbol. Use
5623 "new".
5624 (read_func_scope): Use "new".
5625 * xcoffread.c (process_xcoff_symbol): Don't call
5626 initialize_objfile_symbol.
5627 (SYMBOL_DUP): Remove.
5628 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5629 "new".
5630 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5631 (allocate_template_symbol): Don't declare.
5632 (struct symbol): Add copy constructor. Change defaults.
5633 * jit.c (finalize_symtab): Use "new".
5634 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5635 Use "new".
5636 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5637 (common_block_end): Use "new".
5638 * mdebugread.c (parse_symbol): Use "new".
5639 (new_symbol): Likewise.
5640
5641 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5642
5643 * NEWS: Mention changes to help and apropos.
5644
5645 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5646
5647 * command.h (enum command_class): Improve comments, document
5648 that class_alias is for user-defined aliases, give the class
5649 name for each class, remove unused class_xdb.
5650 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5651 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5652 by a precise class.
5653 * infcmd.c (_initialize_infcmd): Likewise.
5654 * reverse.c (_initialize_reverse): Likewise.
5655 * stack.c (_initialize_stack): Likewise.
5656 * symfile.c (_initialize_symfile): Likewise.
5657 * tracepoint.c (_initialize_tracepoint): Likewise.
5658
5659 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5660
5661 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5662 when their aliased command is traversed.
5663 (help_cmd): Add fput_command_names_styled call to
5664 output command name and aliases when command has an alias.
5665
5666 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5667
5668 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5669 * cli/cli-decode.c (help_cmd_list): Declare as static,
5670 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5671 a command together with the command.
5672 (fput_command_name_styled, fput_command_names_styled): New functions.
5673 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5674 fput_command_name_styled.
5675 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5676 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5677
5678 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5679
5680 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5681 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5682 * command.h (cmd_show_list): Likewise.
5683 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5684 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5685
5686 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5687
5688 * unittests/command-def-selftests.c (traverse_command_structure):
5689 Verify all commands of a list have the same prefix command and
5690 that only the top cmdlist commands have a null prefix.
5691
5692 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5693
5694 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5695 as prefix, not one of its aliases.
5696 (set_cmd_prefix): Remove.
5697 (do_add_cmd): Centralize the setting of the prefix of a command, when
5698 command is defined after its full chain of prefix commands.
5699 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5700 (add_setshow_cmd_full): Likewise.
5701 (update_prefix_field_of_prefixed_commands): New function.
5702 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5703 update_prefix_field_of_prefixed_commands.
5704 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5705 addresses of remote_set_cmdlist and remote_show_cmdlist given
5706 as argument, not the address of an argument.
5707 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5708 * gdb/remote.c (_initialize_remote): Likewise.
5709
5710 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5711
5712 * cli/cli-cmds.c (alias_command): Check for an existing alias
5713 using lookup_cmd_composition, as valid_command_p is too strict
5714 and forbids aliases that are the prefix of an existing alias
5715 or command.
5716 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5717 command is properly recognised as a valid command.
5718
5719 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5720
5721 * unittests/help-doc-selftests.c: Rename to
5722 unittests/command-def-selftests.c
5723 * unittests/command-def-selftests.c (help_doc_tests): Update some
5724 comments.
5725 (command_structure_tests, traverse_command_structure): New namespace
5726 and function.
5727 (command_structure_invariants_tests): New function.
5728 (_initialize_command_def_selftests) Renamed from
5729 _initialize_help_doc_selftests, register command_structure_invariants
5730 selftest.
5731
5732 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5733
5734 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5735 an alias of 'show'.
5736
5737 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5738
5739 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5740 ada_is_fixed_point_type. Update all callers.
5741 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5742 all callers.
5743 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5744 Update all callers.
5745 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5746 print_fixed_point_type. Update all callers.
5747 * ada-valprint.c (ada_value_print_num): Replace call to
5748 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5749
5750 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5751
5752 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5753 processors.
5754 (cpu_supports_bts): Add CV_AMD case.
5755
5756 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5757 Simon Marchi <simon.marchi@efficios.com>
5758
5759 * infrun.c (stop_all_threads): Collect multiple wait events at
5760 each pass.
5761
5762 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5763
5764 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5765 type::code instead.
5766
5767 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5768
5769 * gdbtypes.h (struct type) <code, set_code>: New methods.
5770 (TYPE_CODE): Use type::code. Change all call sites used to set
5771 the code to use type::set_code instead.
5772
5773 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5774 Tom de Vries <tdevries@suse.de>
5775 Pedro Alves <palves@redhat.com>
5776
5777 PR threads/25478
5778 * infrun.c (stop_all_threads): Do NOT ignore
5779 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5780 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5781 received.
5782 (handle_no_resumed): Remove code handling a live inferior with no
5783 threads.
5784 * remote.c (has_single_non_exited_thread): New.
5785 (remote_target::update_thread_list): Do not delete a thread if is
5786 the last thread of the process.
5787 * thread.c (thread_select): Call delete_exited_threads instead of
5788 prune_threads.
5789
5790 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5791
5792 * infrun.c (stop_all_threads): Enable/disable thread events of all
5793 targets. Move a debug message denoting the end of the function
5794 into the SCOPED_EXIT block.
5795
5796 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5797
5798 * process-stratum-target.h: Include <set>.
5799 (all_non_exited_process_targets, switch_to_target_no_thread): New
5800 function declarations.
5801 * process-stratum-target.c (all_non_exited_process_targets)
5802 (switch_to_target_no_thread): New function implementations.
5803
5804 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5805
5806 * infrun.c (handle_inferior_event): Extract out a piece of code
5807 into...
5808 (mark_non_executing_threads): ...this new function.
5809
5810 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5811
5812 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5813 use.
5814
5815 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5816
5817 * regcache.c (regcache_read_pc_protected): New function
5818 implementation that returns 0 if the PC cannot read via
5819 'regcache_read_pc'.
5820 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5821 instead of 'regcache_read_pc'.
5822 (keep_going_pass_signal): Ditto.
5823
5824 2020-05-13 Tom Tromey <tromey@adacore.com>
5825
5826 * ada-lang.c (align_value): Remove.
5827 (ada_template_to_fixed_record_type_1): Use align_up.
5828
5829 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5830
5831 * async-event.c: Update the copyright year.
5832 * async-event.h: Update the copyright year.
5833
5834 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5835
5836 * objfiles.h (is_addr_in_objfile,
5837 shared_objfile_contains_address_p): Return bool.
5838 * objfile.c (is_addr_in_objfile,
5839 shared_objfile_contains_address_p): Return bool.
5840
5841 2020-05-11 Tom Tromey <tromey@adacore.com>
5842
5843 * cli/cli-cmds.c (info_command): Restore.
5844 (_initialize_cli_cmds): Use add_prefix_command for "info".
5845 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5846
5847 2020-05-11 Tom Tromey <tromey@adacore.com>
5848
5849 * ada-lang.c (ada_value_primitive_field): Now public.
5850 * ada-lang.h (ada_value_primitive_field): Declare.
5851 * ada-valprint.c (print_field_values): Use
5852 ada_value_primitive_field for wrapper fields.
5853
5854 2020-05-11 Tom de Vries <tdevries@suse.de>
5855
5856 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5857 MODULE_DOMAIN.
5858
5859 2020-05-11 Tom de Vries <tdevries@suse.de>
5860
5861 PR symtab/25941
5862 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5863 with length 0, if not gdb-produced.
5864 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5865
5866 2020-05-09 Tom de Vries <tdevries@suse.de>
5867
5868 PR gdb/25955
5869 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5870 calculation.
5871
5872 2020-05-09 Tom Tromey <tom@tromey.com>
5873
5874 * top.c (server_command): Now bool.
5875 * top.h (server_command): Now bool.
5876
5877 2020-05-08 Tom Tromey <tromey@adacore.com>
5878
5879 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5880 already being processed.
5881
5882 2020-05-08 Tom Tromey <tom@tromey.com>
5883
5884 * printcmd.c (struct display) <next>: Remove.
5885 <display>: New constructor.
5886 <exp_string>: Now a std::string.
5887 <enabled_p>: Now a bool.
5888 (display_number): Move definition earlier.
5889 (displays): Rename from display_chain. Now a std::vector.
5890 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5891 (display_command): Update.
5892 (do_one_display, disable_display)
5893 (enable_disable_display_command, do_enable_disable_display):
5894 Update.
5895 (free_display): Remove.
5896 (clear_displays): Rewrite.
5897 (delete_display): Update.
5898 (map_display_numbers): Use function_view. Remove "data"
5899 parameter. Update.
5900 (do_delete_display): Remove.
5901 (undisplay_command): Update.
5902 (do_one_display, do_displays, disable_display)
5903 (info_display_command): Update.
5904 (do_enable_disable_display): Remove.
5905 (enable_disable_display_command)
5906 (clear_dangling_display_expressions): Update.
5907
5908 2020-05-08 Tom Tromey <tom@tromey.com>
5909
5910 * symtab.c (set_symbol_cache_size)
5911 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5912 (maintenance_print_symbol_cache_statistics): Update.
5913 * symmisc.c (print_symbol_bcache_statistics)
5914 (print_objfile_statistics, maintenance_print_objfiles)
5915 (maintenance_info_symtabs, maintenance_check_symtabs)
5916 (maintenance_expand_symtabs, maintenance_info_line_tables):
5917 Update.
5918 * symfile-debug.c (set_debug_symfile): Update.
5919 * source.c (forget_cached_source_info): Update.
5920 * python/python.c (gdbpy_progspaces): Update.
5921 * psymtab.c (maintenance_info_psymtabs): Update.
5922 * probe.c (parse_probes): Update.
5923 * linespec.c (iterate_over_all_matching_symtabs)
5924 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5925 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5926 * exec.c (exec_target::close): Update.
5927 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5928 * breakpoint.c (print_one_breakpoint_location)
5929 (create_longjmp_master_breakpoint)
5930 (create_std_terminate_master_breakpoint): Update.
5931 * progspace.c (program_spaces): Now a std::vector.
5932 (maybe_new_address_space): Update.
5933 (add_program_space): Remove.
5934 (program_space::program_space): Update.
5935 (remove_program_space): Update.
5936 (number_of_program_spaces): Remove.
5937 (print_program_space, update_address_spaces): Update.
5938 * progspace.h (program_spaces): Change type.
5939 (ALL_PSPACES): Remove.
5940 (number_of_program_spaces): Don't declare.
5941 (struct program_space) <next>: Remove.
5942
5943 2020-05-08 Tom Tromey <tom@tromey.com>
5944
5945 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5946 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5947 (enable_break): Update.
5948 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5949 (frv_fdpic_find_canonical_descriptor): Update.
5950 (frv_fetch_objfile_link_map): Update.
5951 * progspace.c (program_space::free_all_objfiles): Update.
5952 (program_space::solibs): New method.
5953 * progspace.h (struct program_space) <solibs>: New method.
5954 * solist.h (master_so_list): Don't declare.
5955 (ALL_SO_LIBS): Remove.
5956 * solib.h (so_list_head): Remove.
5957 (update_solib_list): Update comment.
5958 * solib.c (master_so_list): Remove.
5959 (solib_used, update_solib_list, solib_add)
5960 (info_sharedlibrary_command, clear_solib)
5961 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5962
5963 2020-05-08 Tom Tromey <tom@tromey.com>
5964
5965 * extension.c (extension_languages): Now a std::array.
5966 (ALL_EXTENSION_LANGUAGES): Remove.
5967 (get_ext_lang_defn, get_ext_lang_of_file)
5968 (eval_ext_lang_from_control_command): Update.
5969 (finish_ext_lang_initialization)
5970 (auto_load_ext_lang_scripts_for_objfile)
5971 (ext_lang_type_printers::ext_lang_type_printers)
5972 (apply_ext_lang_type_printers)
5973 (ext_lang_type_printers::~ext_lang_type_printers)
5974 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5975 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5976 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5977 (get_matching_xmethod_workers, ext_lang_colorize)
5978 (ext_lang_before_prompt): Update.
5979 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5980
5981 2020-05-08 Tom Tromey <tom@tromey.com>
5982
5983 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5984 overload.
5985 <swap_string, m_string>: Remove.
5986 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5987 Update.
5988 * stabsread.c (define_symbol, read_type): Update.
5989 * linespec.c (find_linespec_symbols): Update.
5990 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5991 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5992 * dbxread.c (read_dbx_symtab): Update.
5993 * cp-support.h (cp_canonicalize_string_full)
5994 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5995 Return unique_xmalloc_ptr.
5996 * cp-support.c (inspect_type): Update.
5997 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5998 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5999 Likewise.
6000 * c-typeprint.c (print_name_maybe_canonical): Update.
6001 * break-catch-throw.c (check_status_exception_catchpoint):
6002 Update.
6003
6004 2020-05-08 Tom de Vries <tdevries@suse.de>
6005
6006 * infrun.c (follow_fork): Copy current_line and current_symtab to
6007 child thread.
6008
6009 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6010
6011 * async-event.c (struct async_signal_handler, struct
6012 async_event_handler): Reformat, remove typedef.
6013
6014 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6015
6016 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6017 access thistype->main_type->dyn_prop_list directly.
6018
6019 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6020
6021 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6022 (remove_dyn_prop): Remove. Update all users to use
6023 type::remove_dyn_prop.
6024 * gdbtypes.c (remove_dyn_prop): Rename to...
6025 (type::remove_dyn_prop): ... this.
6026
6027 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6028
6029 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6030 (add_dyn_prop): Remove. Update all users to use
6031 type::add_dyn_prop.
6032 * gdbtypes.c (add_dyn_prop): Rename to...
6033 (type::add_dyn_prop): ... this.
6034
6035 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6036
6037 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6038 (get_dyn_prop): Remove. Update all users to use
6039 type::dyn_prop.
6040 * gdbtypes.c (get_dyn_prop): Rename to...
6041 (type::dyn_prop): ... this.
6042
6043 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6044
6045 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6046
6047 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6048
6049 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6050 instruction, skip it if it's there.
6051
6052 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6053
6054 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6055
6056 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6057
6058 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6059 * gdbtypes.c (recursive_dump_type): Remove use of
6060 TYPE_INCOMPLETE.
6061
6062 2020-05-03 Tom Tromey <tom@tromey.com>
6063
6064 * breakpoint.c (catch_command, tcatch_command): Remove.
6065 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6066 add_show_prefix_cmd.
6067 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6068 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6069 Remove.
6070 (add_internal_problem_command): Use add_basic_prefix_cmd,
6071 add_show_prefix_cmd.
6072 * mips-tdep.c (set_mipsfpu_command): Remove.
6073 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6074 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6075 (_initialize_index_cache): Use add_basic_prefix_cmd.
6076 * memattr.c (dummy_cmd): Remove.
6077 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6078 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6079 (_initialize_tui_win): Use add_basic_prefix_cmd,
6080 add_show_prefix_cmd.
6081 * cli/cli-logging.c (set_logging_command): Remove.
6082 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6083 add_show_prefix_cmd.
6084 (show_logging_command): Remove.
6085 * target.c (target_command): Remove.
6086 (add_target): Use add_basic_prefix_cmd.
6087
6088 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6089
6090 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6091
6092 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6093
6094 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6095 info_command.
6096
6097 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6098
6099 * nbsd-nat.c (nbsd_enable_proc_events)
6100 (nbsd_nat_target::post_startup_inferior): Add.
6101 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6102 (nbsd_nat_target::update_thread_list): Rewrite.
6103 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6104 "PTRACE_LWP_CREATE".
6105 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6106
6107 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6108
6109 * stack.c (_initialize_stack): Remove duplicated creation
6110 of "frame" command and "f" alias.
6111
6112 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6113
6114 PR gdb/18706
6115 * gdbtypes.c (check_typedef): Calculate size of array of
6116 stubbed type.
6117
6118 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6119
6120 PR gdb/15559
6121 * i386-tdep.c (i386_push_dummy_call): Call
6122 i386_thiscall_push_dummy_call.
6123 (i386_thiscall_push_dummy_call): New function.
6124 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6125 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6126 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6127
6128 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6129
6130 * gdbarch.sh (do_read): Add shellcheck disable directive for
6131 warning SC2162.
6132
6133 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6134
6135 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6136 "referenced but not assigned" warning.
6137
6138 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6139
6140 * gdbarch.sh: Remove code that sets fallbackdefault.
6141
6142 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6143
6144 * gdbarch.sh: Use shell operators && and || instead of
6145 -a and -o.
6146
6147 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6148
6149 * gdbarch.sh: Use $(...) instead of `...`.
6150
6151 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6152
6153 * gdbarch.sh: Use double quotes around variables.
6154
6155 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6156
6157 * gdbarch.sh: Use %s with printf, instead of variables in the
6158 format string.
6159
6160 2020-04-29 Tom Tromey <tromey@adacore.com>
6161
6162 PR ada/25875:
6163 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6164 type fields here.
6165 (read_enumeration_type): Call
6166 update_enumeration_type_from_children later. Update comments.
6167 (process_enumeration_scope): Don't create type fields.
6168
6169 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6170
6171 * nbsd-tdep.c: Include "xml-syscall.h".
6172 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6173
6174 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6175
6176 * nbsd-nat.c: Include "sys/wait.h".
6177 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6178 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6179 (nbsd_nat_target::remove_exec_catchpoint)
6180 (nbsd_nat_target::set_syscall_catchpoint): Add.
6181 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6182 (nbsd_nat_target::insert_exec_catchpoint)
6183 (nbsd_nat_target::remove_exec_catchpoint)
6184 (nbsd_nat_target::set_syscall_catchpoint): Add.
6185 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6186 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6187 `nbsd_get_syscall_number'.
6188
6189 2020-04-29 Tom Tromey <tom@tromey.com>
6190
6191 * stack.c (print_block_frame_labels): Remove.
6192
6193 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6194
6195 PR gdb/17320
6196 * ada-valprint.c (val_print_packed_array_elements): Move array
6197 end bracket to new line.
6198 (ada_val_print_string): Remove extra spaces before first array
6199 element.
6200 * c-valprint.c (c_value_print_array): Likewise.
6201 * m2-valprint.c (m2_print_array_contents): Likewise.
6202 (m2_value_print_inner): Likewise.
6203 * p-valprint.c (pascal_value_print_inner): Likewise.
6204 * valprint.c (generic_val_print_array): Likewise.
6205 (value_print_array_elements): Move first array element and array
6206 end bracket to new line.
6207
6208 2020-04-29 Tom de Vries <tdevries@suse.de>
6209
6210 PR symtab/25889
6211 * linespec.c (find_method): Fix ix calculation.
6212
6213 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6214
6215 * syscalls/update-netbsd.sh: New file.
6216 * syscalls/netbsd.xml: Regenerate.
6217 * data-directory/Makefile.in: Register `netbsd.xml' in
6218 `SYSCALLS_FILES'.
6219
6220 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6221
6222 * syscalls/update-freebsd.sh: Add double quotes.
6223
6224 2020-04-28 Tom Tromey <tom@tromey.com>
6225
6226 * NEWS: Update.
6227 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6228 (cmdpy_init): Allow class_tui.
6229
6230 2020-04-28 Mark Williams <mark@myosotissp.com>
6231
6232 PR gdb/24480
6233 * dwarf2read.c: Add missing assingments to list_in_scope when
6234 start_symtab was already called.
6235
6236 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6237
6238 PR gdb/25881
6239 * dwarf2/read.c (offset_map_type): Use
6240 gdb:hash_enum<sect_offset> as hash function.
6241
6242 2020-04-28 Tom de Vries <tdevries@suse.de>
6243
6244 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6245 with DW_AT_signature.
6246
6247 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6248
6249 * configure.ac: Remove check for fs_base/gs_base in
6250 user_regs_struct.
6251 * configure: Re-generate.
6252 * config.in: Re-generate.
6253 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6254 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6255 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6256
6257 2020-04-27 Luis Machado <luis.machado@linaro.org>
6258
6259 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6260 problematic inline frame unwinding situation.
6261 * frame.c (frame_id_computed_p): New function.
6262 * frame.h (frame_id_computed_p): New prototype.
6263
6264 2020-04-26 Tom Tromey <tom@tromey.com>
6265
6266 * command.h (enum command_class) <class_pseudo>: Remove.
6267
6268 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6269
6270 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6271 and whitespace.
6272
6273 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6274
6275 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6276 `PT_GET_PROCESS_STATE' block.
6277
6278 2020-04-24 Tom Tromey <tom@tromey.com>
6279
6280 * symtab.h (symbol_get_demangled_name): Don't declare.
6281 * symtab.c (symbol_get_demangled_name): Remove.
6282 (general_symbol_info::natural_name)
6283 (general_symbol_info::demangled_name): Update.
6284
6285 2020-04-24 Tom Tromey <tom@tromey.com>
6286
6287 PR rust/25025:
6288 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6289
6290 2020-04-24 Tom Tromey <tom@tromey.com>
6291
6292 PR symtab/12707:
6293 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6294 exists.
6295 (new_symbol): Likewise.
6296 * compile/compile-object-load.c (get_out_value_type): Use
6297 symbol_matches_search_name.
6298
6299 2020-04-24 Tom Tromey <tom@tromey.com>
6300
6301 * dwarf2/read.c (add_partial_symbol): Do not call
6302 compute_and_set_names.
6303
6304 2020-04-24 Tom Tromey <tom@tromey.com>
6305
6306 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6307 overload.
6308
6309 2020-04-24 Tom Tromey <tom@tromey.com>
6310
6311 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6312 (add_psymbol_to_list): New overload. Make old overload call new
6313 one.
6314 * psympriv.h (add_psymbol_to_list): New overload.
6315
6316 2020-04-24 Tom Tromey <tom@tromey.com>
6317
6318 * dwarf2/read.c (partial_die_info::read) <case
6319 DW_AT_linkage_name>: Use value_as_string.
6320 (dwarf2_string_attr): Use value_as_string.
6321 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6322 method.
6323 * dwarf2/attribute.c (attribute::value_as_string): New method.
6324
6325 2020-04-24 Tom Tromey <tom@tromey.com>
6326
6327 * symtab.c (general_symbol_info::natural_name)
6328 (general_symbol_info::demangled_name): Check for language_rust.
6329
6330 2020-04-24 Tom Tromey <tom@tromey.com>
6331
6332 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6333 (dwarf2_physname): ... from here.
6334 (partial_die_info::read): Add Rust "{" hack.
6335
6336 2020-04-24 Tom Tromey <tom@tromey.com>
6337
6338 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6339 method.
6340 (symbol_set_demangled_name): Don't declare.
6341 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6342 symbol_set_demangled_name.
6343 (general_symbol_info::set_language)
6344 (general_symbol_info::compute_and_set_names): Update.
6345 * minsyms.c (minimal_symbol_reader::install): Update.
6346 * dwarf2/read.c (new_symbol): Update.
6347
6348 2020-04-24 Tom Tromey <tromey@adacore.com>
6349
6350 PR python/23662:
6351 * python/py-type.c (convert_field): Handle
6352 FIELD_LOC_KIND_DWARF_BLOCK.
6353 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6354 (typy_get_dynamic): Nw function.
6355 (type_object_getset): Add "dynamic".
6356 * NEWS: Add entry.
6357
6358 2020-04-24 Tom Tromey <tromey@adacore.com>
6359
6360 * ada-typeprint.c (print_choices, print_variant_part)
6361 (print_record_field_types_dynamic): New functions.
6362 (print_record_field_types): Use print_record_field_types_dynamic.
6363
6364 2020-04-24 Tom Tromey <tromey@adacore.com>
6365
6366 * dwarf2/read.c (handle_data_member_location): New overload.
6367 (dwarf2_add_field): Use it.
6368 (decode_locdesc): Add "computed" parameter. Update comment.
6369 * gdbtypes.c (is_dynamic_type_internal): Also look for
6370 FIELD_LOC_KIND_DWARF_BLOCK.
6371 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6372 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6373 virtual base classes.
6374 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6375 FIELD_LOC_KIND_DWARF_BLOCK.
6376
6377 2020-04-24 Tom Tromey <tromey@adacore.com>
6378
6379 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6380 * gdbtypes.c (is_dynamic_type_internal): Check
6381 TYPE_HAS_DYNAMIC_LENGTH.
6382 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6383 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6384 New macros.
6385 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6386 constant.
6387
6388 2020-04-24 Tom Tromey <tromey@adacore.com>
6389
6390 * dwarf2/read.c (struct variant_field): Rewrite.
6391 (struct variant_part_builder): New.
6392 (struct nextfield): Remove "variant" field. Add "offset".
6393 (struct field_info): Add "current_variant_part" and
6394 "variant_parts".
6395 (alloc_discriminant_info): Remove.
6396 (alloc_rust_variant): New function.
6397 (quirk_rust_enum): Update.
6398 (dwarf2_add_field): Set "offset" member. Don't handle
6399 DW_TAG_variant_part.
6400 (offset_map_type): New typedef.
6401 (convert_variant_range, create_one_variant)
6402 (create_one_variant_part, create_variant_parts)
6403 (add_variant_property): New functions.
6404 (dwarf2_attach_fields_to_type): Call add_variant_property.
6405 (read_structure_type): Don't handle DW_TAG_variant_part.
6406 (handle_variant_part, handle_variant): New functions.
6407 (handle_struct_member_die): Use them.
6408 (process_structure_scope): Don't handle variant parts.
6409 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6410 (struct discriminant_info): Remove.
6411 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6412 (struct main_type) <flag_discriminated_union>: Remove.
6413 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6414 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6415 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6416 Update.
6417 * valops.c (value_union_variant): Remove.
6418 * value.h (value_union_variant): Don't declare.
6419
6420 2020-04-24 Tom Tromey <tromey@adacore.com>
6421
6422 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6423 (ada_value_primitive_packed_val): Update.
6424 * ada-valprint.c (ada_value_print_1): Update.
6425 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6426 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6427 just an address. Use evaluate_for_locexpr_baton.
6428 (dwarf2_evaluate_property): Update.
6429 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6430 array_view.
6431 * findvar.c (default_read_var_value): Update.
6432 * gdbtypes.c (compute_variant_fields_inner)
6433 (resolve_dynamic_type_internal): Update.
6434 (resolve_dynamic_type): Change type of valaddr parameter.
6435 * gdbtypes.h (resolve_dynamic_type): Update.
6436 * valarith.c (value_subscripted_rvalue): Update.
6437 * value.c (value_from_contents_and_address): Update.
6438
6439 2020-04-24 Tom Tromey <tromey@adacore.com>
6440
6441 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6442 "push_initial_value" parameter.
6443 (dwarf2_evaluate_property): Likewise.
6444 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6445
6446 2020-04-24 Tom Tromey <tromey@adacore.com>
6447
6448 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6449 (variant::matches, compute_variant_fields_recurse)
6450 (compute_variant_fields_inner, compute_variant_fields): New
6451 functions.
6452 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6453 Use resolved_type after type is made.
6454 (operator==): Add new cases.
6455 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6456 (struct discriminant_range, struct variant, struct variant_part):
6457 New.
6458 (union dynamic_prop_data) <variant_parts, original_type>: New
6459 members.
6460 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6461 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6462 constants.
6463 * value.c (unpack_bits_as_long): Now public.
6464 * value.h (unpack_bits_as_long): Declare.
6465
6466 2020-04-24 Tom Tromey <tromey@adacore.com>
6467
6468 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6469 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6470
6471 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6472
6473 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6474
6475 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6476
6477 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6478 (remove_fork_catchpoint, post_startup_inferior)
6479 (post_attach): Move...
6480 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6481 (remove_fork_catchpoint, post_startup_inferior)
6482 (post_attach): ...here.
6483 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6484 (remove_fork_catchpoint, post_startup_inferior)
6485 (post_attach): Move...
6486 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6487 (remove_fork_catchpoint, post_startup_inferior)
6488 (post_attach): ...here.
6489
6490 2020-04-24 Tom Tromey <tromey@adacore.com>
6491
6492 * nat/windows-nat.h (struct windows_thread_info)
6493 <pc_adjusted>: New member.
6494 * windows-nat.c (windows_fetch_one_register): Check
6495 pc_adjusted.
6496 (windows_nat_target::get_windows_debug_event)
6497 (windows_nat_target::wait): Set pc_adjusted.
6498
6499 2020-04-24 Tom de Vries <tdevries@suse.de>
6500
6501 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6502 Run gdb-add-index inside temp dir.
6503
6504 2020-04-23 Tom Tromey <tromey@adacore.com>
6505
6506 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6507 in loop.
6508
6509 2020-04-23 Luis Machado <luis.machado@linaro.org>
6510
6511 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6512 get_frame_register instead of gdbarch_unwind_pc.
6513
6514 2020-04-23 Tom de Vries <tdevries@suse.de>
6515
6516 * symtab.c (lookup_global_symbol): Prefer def over decl.
6517
6518 2020-04-23 Tom de Vries <tdevries@suse.de>
6519
6520 PR symtab/25807
6521 * block.c (best_symbol, better_symbol): Promote to external.
6522 * block.h (best_symbol, better_symbol): Declare.
6523 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6524 decl.
6525
6526 2020-04-23 Tom Tromey <tromey@adacore.com>
6527
6528 PR ada/25837:
6529 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6530 "const char *", not a "const std::string &".
6531 <name_and_matcher::operator==>: Update.
6532 * unittests/lookup_name_info-selftests.c: Change type of
6533 "result".
6534
6535 2020-04-23 Tom Tromey <tom@tromey.com>
6536
6537 * inferior.h (iterate_over_inferiors): Don't declare.
6538 * inferior.c (iterate_over_inferiors): Remove.
6539 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6540 Remove.
6541 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6542 use iterate_over_inferiors.
6543 (darwin_resume_inferior_it)
6544 (struct resume_inferior_threads_param)
6545 (darwin_resume_inferior_threads_it): Remove.
6546 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6547
6548 2020-04-23 Tom de Vries <tdevries@suse.de>
6549
6550 * blockframe.c (find_pc_partial_function): Use
6551 find_pc_sect_compunit_symtab rather than
6552 objfile->sf->qf->find_pc_sect_compunit_symtab.
6553
6554 2020-04-22 Tom de Vries <tdevries@suse.de>
6555
6556 PR symtab/25764
6557 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6558 in psymtabs.
6559
6560 2020-04-22 Tom de Vries <tdevries@suse.de>
6561
6562 PR symtab/25801
6563 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6564 symtabs.
6565
6566 2020-04-22 Tom de Vries <tdevries@suse.de>
6567
6568 PR symtab/25700
6569 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6570 CU if already created.
6571
6572 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6573
6574 * infrun.c (displaced_step_fixup): Switch to the event_thread
6575 before calling displaced_step_restore, not after.
6576
6577 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6578
6579 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6580 its inferior is not recorded by us.
6581 (record_btrace_target_open): Replace call to
6582 all_non_exited_threads () with call to current_inferior
6583 ()->non_exited_threads ().
6584 (record_btrace_target::stop_recording): Likewise.
6585 (record_btrace_target::close): Likewise.
6586 (record_btrace_target::wait): Likewise.
6587 (record_btrace_target::record_stop_replaying): Likewise.
6588
6589 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6590
6591 * btrace.c (btrace_enable): Throw an error on double enables and
6592 when enabling recording fails.
6593 (btrace_disable): Throw an error if the thread is not recorded.
6594
6595 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6596
6597 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6598 request if we do not have a thread_info.
6599
6600 2020-04-21 Tom de Vries <tdevries@suse.de>
6601
6602 PR gdb/25471
6603 * thread.c
6604 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6605 exception in get_frame_id.
6606
6607 2020-04-20 Tom Tromey <tromey@adacore.com>
6608
6609 * python/python.c (struct gdbpy_event): Mark move constructor as
6610 noexcept.
6611 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6612 constructor as noexcept.
6613 * completer.h (struct completion_result): Mark move constructor as
6614 noexcept.
6615 * completer.c (completion_result::completion_result): Use
6616 initialization style. Don't call reset_match_list.
6617
6618 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6619
6620 * MAINTAINERS (Write After Approval): Add myself.
6621
6622 2020-04-18 Tom Tromey <tom@tromey.com>
6623
6624 * windows-tdep.c (init_w32_command_list)
6625 (w32_prefix_command_valid): Restore.
6626 (_initialize_windows_tdep): Call init_w32_command_list.
6627
6628 2020-04-18 Tom Tromey <tom@tromey.com>
6629
6630 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6631 * value.c (value_fn_field): Update.
6632 * valops.c (find_function_in_inferior)
6633 (value_allocate_space_in_inferior): Update.
6634 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6635 Update.
6636 * tui/tui-source.c (tui_source_window::set_contents): Update.
6637 * symtab.c (lookup_global_or_static_symbol)
6638 (find_function_start_sal_1, skip_prologue_sal)
6639 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6640 * symmisc.c (dump_msymbols, dump_symtab_1)
6641 (maintenance_print_one_line_table): Update.
6642 * symfile.c (init_entry_point_info, section_is_mapped)
6643 (list_overlays_command, simple_read_overlay_table)
6644 (simple_overlay_update_1): Update.
6645 * stap-probe.c (handle_stap_probe): Update.
6646 * stabsread.c (dbx_init_float_type, define_symbol)
6647 (read_one_struct_field, read_enum_type, read_range_type): Update.
6648 * source.c (info_line_command): Update.
6649 * python/python.c (gdbpy_source_objfile_script)
6650 (gdbpy_execute_objfile_script): Update.
6651 * python/py-type.c (save_objfile_types): Update.
6652 * python/py-objfile.c (py_free_objfile): Update.
6653 * python/py-inferior.c (python_new_objfile): Update.
6654 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6655 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6656 (maintenance_check_psymtabs): Update.
6657 * printcmd.c (info_address_command): Update.
6658 * objfiles.h (struct objfile) <arch>: New method, from
6659 get_objfile_arch.
6660 (get_objfile_arch): Don't declare.
6661 * objfiles.c (get_objfile_arch): Remove.
6662 (filter_overlapping_sections): Update.
6663 * minsyms.c (msymbol_is_function): Update.
6664 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6665 (output_nondebug_symbol): Update.
6666 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6667 (mdebug_expand_psymtab): Update.
6668 * machoread.c (macho_add_oso_symfile): Update.
6669 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6670 Update.
6671 * linux-fork.c (checkpoint_command): Update.
6672 * linespec.c (convert_linespec_to_sals): Update.
6673 * jit.c (finalize_symtab): Update.
6674 * infrun.c (insert_exception_resume_from_probe): Update.
6675 * ia64-tdep.c (ia64_find_unwind_table): Update.
6676 * hppa-tdep.c (internalize_unwinds): Update.
6677 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6678 Update.
6679 * gcore.c (call_target_sbrk): Update.
6680 * elfread.c (record_minimal_symbol, elf_symtab_read)
6681 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6682 (elf_gnu_ifunc_resolve_by_got): Update.
6683 * dwarf2/read.c (create_addrmap_from_index)
6684 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6685 (read_debug_names_from_section)
6686 (process_psymtab_comp_unit_reader, add_partial_symbol)
6687 (add_partial_subprogram, process_full_comp_unit)
6688 (read_file_scope, read_func_scope, read_lexical_block_scope)
6689 (read_call_site_scope, dwarf2_ranges_read)
6690 (dwarf2_record_block_ranges, dwarf2_add_field)
6691 (mark_common_block_symbol_computed, read_tag_pointer_type)
6692 (read_tag_string_type, dwarf2_init_float_type)
6693 (dwarf2_init_complex_target_type, read_base_type)
6694 (partial_die_info::read, partial_die_info::read)
6695 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6696 (dwarf2_fetch_die_loc_sect_off): Update.
6697 * dwarf2/loc.c (dwarf2_find_location_expression)
6698 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6699 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6700 (dwarf2_loc_desc_get_symbol_read_needs)
6701 (locexpr_describe_location_piece, locexpr_describe_location_1)
6702 (loclist_describe_location): Update.
6703 * dwarf2/index-write.c (write_debug_names): Update.
6704 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6705 * dtrace-probe.c (dtrace_process_dof): Update.
6706 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6707 (process_one_symbol): Update.
6708 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6709 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6710 (coff_read_enum_type): Update.
6711 * cli/cli-cmds.c (edit_command, list_command): Update.
6712 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6713 * breakpoint.c (create_overlay_event_breakpoint)
6714 (create_longjmp_master_breakpoint)
6715 (create_std_terminate_master_breakpoint)
6716 (create_exception_master_breakpoint, get_sal_arch): Update.
6717 * block.c (block_gdbarch): Update.
6718 * annotate.c (annotate_source_line): Update.
6719
6720 2020-04-17 Tom Tromey <tromey@adacore.com>
6721
6722 * auto-load.c (show_auto_load_cmd): Remove.
6723 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6724 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6725 (maintenance_print_arc_command): Remove.
6726 * tui/tui-win.c (tui_command): Remove.
6727 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6728 * tui/tui-layout.c (tui_layout_command): Remove.
6729 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6730 * python/python.c (user_set_python, user_show_python): Remove.
6731 (_initialize_python): Use add_basic_prefix_cmd,
6732 add_show_prefix_cmd.
6733 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6734 (install_gdb_commands): Use add_basic_prefix_cmd,
6735 add_show_prefix_cmd.
6736 (info_guile_command): Remove.
6737 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6738 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6739 add_show_prefix_cmd.
6740 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6741 Remove do_set and do_show parameters.
6742 * cli/cli-style.c (set_style, show_style): Remove.
6743 (_initialize_cli_style): Use add_basic_prefix_cmd,
6744 add_show_prefix_cmd.
6745 (cli_style_option::add_setshow_commands): Remove do_set and
6746 do_show parameters.
6747 (cli_style_option::add_setshow_commands): Use
6748 add_basic_prefix_cmd, add_show_prefix_cmd.
6749 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6750 (set_style_name): Remove.
6751 * cli/cli-dump.c (dump_command, append_command): Remove.
6752 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6753 (tekhex_dump_command, binary_dump_command)
6754 (binary_append_command): Remove.
6755 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6756 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6757 (init_w32_command_list): Remove; move into ...
6758 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6759 * valprint.c (set_print, show_print, set_print_raw)
6760 (show_print_raw): Remove.
6761 (_initialize_valprint): Use add_basic_prefix_cmd,
6762 add_show_prefix_cmd.
6763 * typeprint.c (set_print_type, show_print_type): Remove.
6764 (_initialize_typeprint): Use add_basic_prefix_cmd,
6765 add_show_prefix_cmd.
6766 * record.c (set_record_command, show_record_command): Remove.
6767 (_initialize_record): Use add_basic_prefix_cmd,
6768 add_show_prefix_cmd.
6769 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6770 add_show_prefix_cmd.
6771 (info_command, show_command, set_debug, show_debug): Remove.
6772 * top.h (set_history, show_history): Don't declare.
6773 * top.c (set_history, show_history): Remove.
6774 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6775 (unset_tdesc_cmd): Remove.
6776 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6777 add_show_prefix_cmd.
6778 * symtab.c (info_module_command): Remove.
6779 (_initialize_symtab): Use add_basic_prefix_cmd.
6780 * symfile.c (overlay_command): Remove.
6781 (_initialize_symfile): Use add_basic_prefix_cmd.
6782 * sparc64-tdep.c (info_adi_command): Remove.
6783 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6784 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6785 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6786 add_show_prefix_cmd.
6787 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6788 (_initialize_serial): Use add_basic_prefix_cmd,
6789 add_show_prefix_cmd.
6790 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6791 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6792 add_show_prefix_cmd.
6793 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6794 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6795 add_show_prefix_cmd.
6796 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6797 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6798 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6799 add_show_prefix_cmd.
6800 * remote.c (remote_command, set_remote_cmd): Remove.
6801 (_initialize_remote): Use add_basic_prefix_cmd.
6802 * record-full.c (set_record_full_command)
6803 (show_record_full_command): Remove.
6804 (_initialize_record_full): Use add_basic_prefix_cmd,
6805 add_show_prefix_cmd.
6806 * record-btrace.c (cmd_set_record_btrace)
6807 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6808 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6809 (cmd_show_record_btrace_pt): Remove.
6810 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6811 add_show_prefix_cmd.
6812 * ravenscar-thread.c (set_ravenscar_command)
6813 (show_ravenscar_command): Remove.
6814 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6815 add_show_prefix_cmd.
6816 * mips-tdep.c (show_mips_command, set_mips_command)
6817 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6818 add_show_prefix_cmd.
6819 * maint.c (maintenance_command, maintenance_info_command)
6820 (maintenance_check_command, maintenance_print_command)
6821 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6822 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6823 add_show_prefix_cmd.
6824 (show_per_command_cmd): Remove.
6825 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6826 Remove.
6827 (maintenance_show_test_settings_cmd): Remove.
6828 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6829 add_show_prefix_cmd.
6830 * maint-test-options.c (maintenance_test_options_command):
6831 Remove.
6832 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6833 * macrocmd.c (macro_command): Remove
6834 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6835 * language.c (set_check, show_check): Remove.
6836 (_initialize_language): Use add_basic_prefix_cmd,
6837 add_show_prefix_cmd.
6838 * infcmd.c (unset_command): Remove.
6839 (_initialize_infcmd): Use add_basic_prefix_cmd.
6840 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6841 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6842 add_show_prefix_cmd.
6843 * go32-nat.c (go32_info_dos_command): Remove.
6844 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6845 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6846 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6847 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6848 (_initialize_frame): Use add_basic_prefix_cmd,
6849 add_show_prefix_cmd.
6850 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6851 (_initialize_dcache): Use add_basic_prefix_cmd,
6852 add_show_prefix_cmd.
6853 * cp-support.c (maint_cplus_command): Remove.
6854 (_initialize_cp_support): Use add_basic_prefix_cmd.
6855 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6856 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6857 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6858 add_basic_prefix_cmd, add_show_prefix_cmd.
6859 * breakpoint.c (save_command): Remove.
6860 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6861 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6862 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6863 add_show_prefix_cmd.
6864 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6865 (set_ada_command, show_ada_command): Remove.
6866 (_initialize_ada_language): Use add_basic_prefix_cmd,
6867 add_show_prefix_cmd.
6868 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6869
6870 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6871
6872 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6873 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6874
6875 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6876
6877 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6878 warning messages.
6879
6880 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6881
6882 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6883 import table is not at beginning of .idata section.
6884
6885 2020-04-16 Pedro Alves <palves@redhat.com>
6886
6887 * inferior.c (delete_inferior): Use delete operator directly
6888 instead of delete_program_space.
6889 * progspace.c (add_program_space): New, factored out from
6890 program_space::program_space.
6891 (remove_program_space): New, factored out from
6892 delete_program_space.
6893 (program_space::program_space): Remove intro comment. Rewrite.
6894 (program_space::~program_space): Remove intro comment. Call
6895 remove_program_space.
6896 (delete_program_space): Delete.
6897 * progspace.h (program_space::program_space): Make explicit. Move
6898 intro comment here, adjusted.
6899 (program_space::~program_space): Move intro comment here,
6900 adjusted.
6901 (delete_program_space): Remove.
6902
6903 2020-04-16 Tom Tromey <tromey@adacore.com>
6904
6905 * windows-nat.c (windows_nat::handle_access_violation): New
6906 function.
6907 * nat/windows-nat.h (handle_access_violation): Declare.
6908 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6909 windows-nat.c. Call handle_access_violation.
6910
6911 2020-04-16 Tom de Vries <tdevries@suse.de>
6912
6913 PR symtab/25791
6914 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6915 CUs without psymtab.
6916
6917 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6918
6919 * python/python.c (do_start_initialization): Don't call
6920 PyEval_InitThreads for Python 3.9 and beyond.
6921
6922 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6923
6924 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6925 thread functions.
6926 (obsd_nat_target::wait): Likewise.
6927
6928 2020-04-15 Tom Tromey <tromey@adacore.com>
6929
6930 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6931 (DEBUG_EXCEPT): Use debug_printf.
6932
6933 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6934
6935 * completer.c (class completion_tracker::completion_hash_entry)
6936 <hash_name>: New member function.
6937 (completion_tracker::discard_completions): New callback to hash a
6938 completion_hash_entry, pass this to htab_create_alloc.
6939
6940 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6941
6942 * windows-nat.c (windows_make_so): Warn rather than stopping with
6943 an error if realpath() fails.
6944
6945 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6946
6947 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6948 (nbsd_nat_target::info_proc): Add do_status.
6949
6950 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6951 Tom de Vries <tdevries@suse.de>
6952
6953 PR symtab/25718
6954 * psympriv.h (struct partial_symtab::read_symtab)
6955 (struct partial_symtab::expand_psymtab)
6956 (struct partial_symtab::read_dependencies): Update comments.
6957 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6958 read_symtab for includer.
6959 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6960 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6961 (struct dwarf2_include_psymtab::m_readin): Remove.
6962 (struct dwarf2_include_psymtab::includer): New member function.
6963 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6964
6965 2020-04-14 Tom de Vries <tdevries@suse.de>
6966
6967 PR symtab/25720
6968 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6969 with NULL symbol_matcher and lookup_name.
6970 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6971 and lookup_name.
6972 * dwarf2/read.c (dw2_expand_symtabs_matching)
6973 (dw2_debug_names_expand_symtabs_matching): Same.
6974 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6975 Make lookup_name a pointer. Update comment.
6976 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6977 lookup_name being a pointer.
6978 * symfile.c (expand_symtabs_matching): Same.
6979 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6980 * linespec.c (iterate_over_all_matching_symtabs): Same.
6981
6982 2020-04-13 Tom Tromey <tom@tromey.com>
6983
6984 * run-on-main-thread.c: Update include.
6985 * unittests/main-thread-selftests.c: Update include.
6986 * tui/tui-win.c: Update include.
6987 * tui/tui-io.c: Update include.
6988 * tui/tui-interp.c: Update include.
6989 * tui/tui-hooks.c: Update include.
6990 * top.h: Update include.
6991 * top.c: Update include.
6992 * ser-base.c: Update include.
6993 * remote.c: Update include.
6994 * remote-notif.c: Update include.
6995 * remote-fileio.c: Update include.
6996 * record-full.c: Update include.
6997 * record-btrace.c: Update include.
6998 * python/python.c: Update include.
6999 * posix-hdep.c: Update include.
7000 * mingw-hdep.c: Update include.
7001 * mi/mi-main.c: Update include.
7002 * mi/mi-interp.c: Update include.
7003 * main.c: Update include.
7004 * linux-nat.c: Update include.
7005 * interps.c: Update include.
7006 * infrun.c: Update include.
7007 * inf-loop.c: Update include.
7008 * event-top.c: Update include.
7009 * event-loop.c: Move to ../gdbsupport/.
7010 * event-loop.h: Move to ../gdbsupport/.
7011 * async-event.h: Update include.
7012 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7013
7014 2020-04-13 Tom Tromey <tom@tromey.com>
7015
7016 * tui/tui-win.c: Include async-event.h.
7017 * remote.c: Include async-event.h.
7018 * remote-notif.c: Include async-event.h.
7019 * record-full.c: Include async-event.h.
7020 * record-btrace.c: Include async-event.h.
7021 * infrun.c: Include async-event.h.
7022 * event-top.c: Include async-event.h.
7023 * event-loop.h: Move some declarations to async-event.h.
7024 * event-loop.c: Don't include ser-event.h or top.h. Move some
7025 code to async-event.c.
7026 * async-event.h: New file.
7027 * async-event.c: New file.
7028 * Makefile.in (COMMON_SFILES): Add async-event.c.
7029 (HFILES_NO_SRCDIR): Add async-event.h.
7030
7031 2020-04-13 Tom Tromey <tom@tromey.com>
7032
7033 * utils.c (flush_streams): New function.
7034 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7035
7036 2020-04-13 Tom Tromey <tom@tromey.com>
7037
7038 * event-loop.c (handle_file_event): Use warning, not
7039 printf_unfiltered.
7040
7041 2020-04-13 Tom Tromey <tom@tromey.com>
7042
7043 * event-loop.c: Include <chrono>.
7044
7045 2020-04-13 Tom Tromey <tom@tromey.com>
7046
7047 * gdb_select.h: Move to ../gdbsupport/.
7048 * event-loop.c: Update include path.
7049 * top.c: Update include path.
7050 * ser-base.c: Update include path.
7051 * ui-file.c: Update include path.
7052 * ser-tcp.c: Update include path.
7053 * guile/scm-ports.c: Update include path.
7054 * posix-hdep.c: Update include path.
7055 * ser-unix.c: Update include path.
7056 * gdb_usleep.c: Update include path.
7057 * mingw-hdep.c: Update include path.
7058 * inflow.c: Update include path.
7059 * infrun.c: Update include path.
7060 * event-top.c: Update include path.
7061
7062 2020-04-13 Tom Tromey <tom@tromey.com>
7063
7064 * configure: Rebuild.
7065 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7066
7067 2020-04-13 Tom Tromey <tom@tromey.com>
7068
7069 * event-loop.h (start_event_loop): Don't declare.
7070 * event-loop.c (start_event_loop): Move...
7071 * main.c (start_event_loop): ...here. Now static.
7072
7073 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7074
7075 * MAINTAINERS: Update my email address.
7076
7077 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7078
7079 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7080 IP_ALL.
7081
7082 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7083
7084 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7085 (nbsd_nat_target::info_proc): Add do_cmdline.
7086
7087 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7088
7089 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7090 (nbsd_nat_target::info_proc): Add do_cwd.
7091
7092 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7093
7094 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7095
7096 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7097
7098 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7099 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7100 (nbsd_nat_target::info_proc): New functions.
7101 * nbsd-nat.c (kinfo_get_vmmap): New function.
7102 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7103 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7104 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7105 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7106 functions.
7107 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7108 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7109 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7110 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7111 (KINFO_VME_FLAG_GROWS_DOWN): New.
7112
7113 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7114
7115 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7116 bit shift.
7117
7118 2020-04-10 Tom Tromey <tromey@adacore.com>
7119
7120 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7121
7122 2020-04-10 Tom Tromey <tromey@adacore.com>
7123
7124 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7125 separate debug files.
7126
7127 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7128
7129 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7130 Move to...
7131 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7132 ... here.
7133 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7134 Check for STATUS_WX86_BREAKPOINT.
7135 (windows_nat_target::wait): Same.
7136
7137 2020-04-10 Tom de Vries <tdevries@suse.de>
7138
7139 PR cli/25808
7140 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7141
7142 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7143
7144 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7145 (Write After Approval): Remove Tom de Vries.
7146
7147 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7148
7149 revert partially:
7150 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7151
7152 * buildsym.c (record_line): Fix undefined behavior and preserve
7153 lines at eof.
7154
7155 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7156
7157 * auxv.h (svr4_auxv_parse): New.
7158 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7159 and generic_auxv_parse.
7160 (svr4_auxv_parse): Add.
7161 * obsd-tdep.c: Include "auxv.h".
7162 (obsd_auxv_parse): Remove.
7163 (obsd_init_abi): Remove comment.
7164 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7165 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7166 * nbsd-tdep.c: Include "auxv.h".
7167 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7168
7169 2020-04-08 Tom Tromey <tromey@adacore.com>
7170
7171 * nat/windows-nat.h (last_wait_event): Don't declare.
7172 (wait_for_debug_event): Update comment.
7173 * nat/windows-nat.c (last_wait_event): Now static.
7174
7175 2020-04-08 Tom Tromey <tromey@adacore.com>
7176
7177 * windows-nat.c (wait_for_debug_event): Move to
7178 nat/windows-nat.c.
7179 * nat/windows-nat.h (wait_for_debug_event): Declare.
7180 * nat/windows-nat.c (wait_for_debug_event): Move from
7181 windows-nat.c. No longer static.
7182
7183 2020-04-08 Tom Tromey <tromey@adacore.com>
7184
7185 * windows-nat.c (get_windows_debug_event): Use
7186 fetch_pending_stop.
7187 * nat/windows-nat.h (fetch_pending_stop): Declare.
7188 * nat/windows-nat.c (fetch_pending_stop): New function.
7189
7190 2020-04-08 Tom Tromey <tromey@adacore.com>
7191
7192 * windows-nat.c (windows_continue): Use matching_pending_stop and
7193 continue_last_debug_event.
7194 * nat/windows-nat.h (matching_pending_stop)
7195 (continue_last_debug_event): Declare.
7196 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7197 (matching_pending_stop, continue_last_debug_event): New
7198 functions.
7199
7200 2020-04-08 Tom Tromey <tromey@adacore.com>
7201
7202 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7203 (handle_exception_result): Move to nat/windows-nat.h.
7204 (DEBUG_EXCEPTION_SIMPLE): Remove.
7205 (windows_nat::handle_ms_vc_exception): New function.
7206 (handle_exception): Move to nat/windows-nat.c.
7207 (get_windows_debug_event): Update.
7208 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7209 nat/windows-nat.c.
7210 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7211 (handle_exception_result): Move from windows-nat.c.
7212 (handle_exception): Declare.
7213 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7214 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7215 windows-nat.c.
7216
7217 2020-04-08 Tom Tromey <tromey@adacore.com>
7218
7219 * windows-nat.c (exception_count, event_count): Remove.
7220 (handle_exception, get_windows_debug_event)
7221 (do_initial_windows_stuff): Update.
7222
7223 2020-04-08 Tom Tromey <tromey@adacore.com>
7224
7225 * windows-nat.c (windows_nat::handle_load_dll)
7226 (windows_nat::handle_unload_dll): Rename. No longer static.
7227 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7228 Declare.
7229
7230 2020-04-08 Tom Tromey <tromey@adacore.com>
7231
7232 * complaints.h (stop_whining): Declare at top-level.
7233 (complaint): Don't declare stop_whining.
7234
7235 2020-04-08 Tom Tromey <tromey@adacore.com>
7236
7237 * windows-nat.c (windows_nat::handle_output_debug_string):
7238 Rename. No longer static.
7239 * nat/windows-nat.h (handle_output_debug_string): Declare.
7240
7241 2020-04-08 Tom Tromey <tromey@adacore.com>
7242
7243 * windows-nat.c (current_process_handle, current_process_id)
7244 (main_thread_id, last_sig, current_event, last_wait_event)
7245 (current_windows_thread, desired_stop_thread_id, pending_stops)
7246 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7247 (display_selectors, fake_create_process)
7248 (get_windows_debug_event): Update.
7249 * nat/windows-nat.h (current_process_handle, current_process_id)
7250 (main_thread_id, last_sig, current_event, last_wait_event)
7251 (current_windows_thread, desired_stop_thread_id, pending_stops)
7252 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7253 * nat/windows-nat.c (current_process_handle, current_process_id)
7254 (main_thread_id, last_sig, current_event, last_wait_event)
7255 (current_windows_thread, desired_stop_thread_id, pending_stops)
7256 (siginfo_er): New globals. Move from windows-nat.c.
7257
7258 2020-04-08 Tom Tromey <tromey@adacore.com>
7259
7260 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7261 (handle_load_dll): Update.
7262 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7263
7264 2020-04-08 Tom Tromey <tromey@adacore.com>
7265
7266 * windows-nat.c (enum thread_disposition_type): Move to
7267 nat/windows-nat.h.
7268 (windows_nat::thread_rec): Rename from thread_rec. No longer
7269 static.
7270 (windows_add_thread, windows_nat_target::fetch_registers)
7271 (windows_nat_target::store_registers, handle_exception)
7272 (windows_nat_target::resume, get_windows_debug_event)
7273 (windows_nat_target::get_tib_address)
7274 (windows_nat_target::thread_name)
7275 (windows_nat_target::thread_alive): Update.
7276 * nat/windows-nat.h (enum thread_disposition_type): Move from
7277 windows-nat.c.
7278 (thread_rec): Declare.
7279
7280 2020-04-08 Tom Tromey <tromey@adacore.com>
7281
7282 * windows-nat.c: Add "using namespace".
7283 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7284 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7285
7286 2020-04-08 Tom Tromey <tromey@adacore.com>
7287
7288 * nat/windows-nat.h (struct windows_thread_info): Declare
7289 destructor.
7290 * nat/windows-nat.c (~windows_thread_info): New.
7291
7292 2020-04-08 Tom Tromey <tromey@adacore.com>
7293
7294 PR gdb/22992
7295 * windows-nat.c (current_event): Update comment.
7296 (last_wait_event, desired_stop_thread_id): New globals.
7297 (struct pending_stop): New.
7298 (pending_stops): New global.
7299 (windows_nat_target) <stopped_by_sw_breakpoint>
7300 <supports_stopped_by_sw_breakpoint>: New methods.
7301 (windows_fetch_one_register): Add assertions. Adjust PC.
7302 (windows_continue): Handle pending stops. Suspend other threads
7303 when stepping. Use last_wait_event
7304 (wait_for_debug_event): New function.
7305 (get_windows_debug_event): Use wait_for_debug_event. Handle
7306 pending stops. Queue spurious stops.
7307 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7308 (windows_nat_target::kill): Use wait_for_debug_event.
7309 * nat/windows-nat.h (struct windows_thread_info)
7310 <stopped_at_software_breakpoint>: New field.
7311 * nat/windows-nat.c (windows_thread_info::resume): Clear
7312 stopped_at_software_breakpoint.
7313
7314 2020-04-08 Tom Tromey <tromey@adacore.com>
7315
7316 * windows-nat.c (enum thread_disposition_type): New.
7317 (thread_rec): Replace "get_context" parameter with "disposition";
7318 change type.
7319 (windows_add_thread, windows_nat_target::fetch_registers)
7320 (windows_nat_target::store_registers, handle_exception)
7321 (windows_nat_target::resume, get_windows_debug_event)
7322 (windows_nat_target::get_tib_address)
7323 (windows_nat_target::thread_name)
7324 (windows_nat_target::thread_alive): Update.
7325
7326 2020-04-08 Tom Tromey <tromey@adacore.com>
7327
7328 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7329 (windows_continue): Use windows_continue::resume.
7330 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7331 resume>: Declare new methods.
7332 * nat/windows-nat.c: New file.
7333 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7334
7335 2020-04-08 Tom Tromey <tromey@adacore.com>
7336
7337 * windows-nat.c (windows_add_thread, windows_delete_thread)
7338 (windows_nat_target::fetch_registers)
7339 (windows_nat_target::store_registers, fake_create_process)
7340 (windows_nat_target::resume, windows_nat_target::resume)
7341 (get_windows_debug_event, windows_nat_target::wait)
7342 (windows_nat_target::pid_to_str)
7343 (windows_nat_target::get_tib_address)
7344 (windows_nat_target::get_ada_task_ptid)
7345 (windows_nat_target::thread_name)
7346 (windows_nat_target::thread_alive): Use lwp, not tid.
7347
7348 2020-04-08 Tom Tromey <tromey@adacore.com>
7349
7350 * windows-nat.c (handle_exception)
7351 (windows_nat_target::thread_name): Update.
7352 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7353 <name>: Now unique_xmalloc_ptr.
7354
7355 2020-04-08 Tom Tromey <tromey@adacore.com>
7356
7357 * windows-nat.c (thread_rec)
7358 (windows_nat_target::fetch_registers): Update.
7359 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7360 Update comment.
7361 <debug_registers_changed, reload_context>: Now bool.
7362
7363 2020-04-08 Tom Tromey <tromey@adacore.com>
7364
7365 * windows-nat.c (windows_add_thread): Use new.
7366 (windows_init_thread_list, windows_delete_thread): Use delete.
7367 (get_windows_debug_event): Update.
7368 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7369 destructor, and initializers.
7370
7371 2020-04-08 Tom Tromey <tromey@adacore.com>
7372
7373 * windows-nat.c (struct windows_thread_info): Remove.
7374 * nat/windows-nat.h: New file.
7375
7376 2020-04-08 Tom Tromey <tromey@adacore.com>
7377
7378 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7379 (thread_rec, windows_add_thread, windows_delete_thread)
7380 (windows_continue): Update.
7381
7382 2020-04-08 Tom Tromey <tromey@adacore.com>
7383
7384 * windows-nat.c (struct windows_thread_info): Remove typedef.
7385 (thread_head): Remove.
7386 (thread_list): New global.
7387 (thread_rec, windows_add_thread, windows_init_thread_list)
7388 (windows_delete_thread, windows_continue): Update.
7389
7390 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7391
7392 * windows-tdep.h (windows_init_abi): Add comment.
7393 (cygwin_init_abi): New declaration.
7394 * windows-tdep.c: Split signal enumeration in two, one for
7395 Windows and one for Cygwin.
7396 (windows_gdb_signal_to_target): Only deal with signal of the
7397 Windows OS ABI.
7398 (cygwin_gdb_signal_to_target): New function.
7399 (windows_init_abi): Rename to windows_init_abi_common, don't set
7400 gdb_signal_to_target gdbarch method. Add new new function with
7401 this name.
7402 (cygwin_init_abi): New function.
7403 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7404 comment. Don't call windows_init_abi.
7405 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7406 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7407 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7408 i386_windows_init_abi_common, don't call windows_init_abi. Add
7409 a new function of this name.
7410 (i386_cygwin_init_abi): New function.
7411 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7412 OS ABI Cygwin.
7413
7414 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7415
7416 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7417 parameter.c.
7418 (dwarf2_read_gdb_index): Update.
7419
7420 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7421
7422 * nbsd-tdep.c: Include "objfiles.h".
7423 (nbsd_skip_solib_resolver): New.
7424 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7425
7426 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7427
7428 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7429 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7430 with DW_LLE_base_addressx are being emitted in DWARFv5.
7431 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7432 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7433 unsigned integer.
7434
7435 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7436
7437 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7438 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7439 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7440 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7441 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7442 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7443 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7444
7445
7446 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7447
7448 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7449 (read_loclist_index): New function definition.
7450 (lookup_loclist_base): New function definition.
7451 (read_loclist_header): New function definition.
7452 (dwarf2_cu): Add loclist_base and loclist_header field.
7453 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7454 (read_full_die_1): Read the value of DW_AT_loclists_base.
7455 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7456 (read_attribute_value): Handle DW_FORM_loclistx.
7457 (skip_one_die): Handle DW_FORM_loclistx.
7458 (loclist_header): New structure declaration.
7459 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7460
7461 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7462
7463 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7464 constructor. Remove `addr` parameter from other constructor and
7465 add `per_cu` parameter.
7466 * dwarf2/read.c (create_partial_symtab): Update.
7467
7468 2020-04-07 Tom de Vries <tdevries@suse.de>
7469
7470 PR symtab/25796
7471 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7472 (partial_die_info::fixup): Inherit has_const_value.
7473
7474 2020-04-07 Tom de Vries <tdevries@suse.de>
7475
7476 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7477 symbols without address.
7478
7479 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7480
7481 * nbsd-nat.h (struct thread_info): Add forward declaration.
7482 (nbsd_nat_target::thread_alive): Add.
7483 (nbsd_nat_target::thread_name): Likewise.
7484 (nbsd_nat_target::update_thread_list): Likewise.
7485 (update_thread_list::post_attach): Likewise.
7486 (post_attach::pid_to_str): Likewise.
7487 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7488 (nbsd_thread_lister): Add.
7489 (nbsd_nat_target::thread_alive): Likewise.
7490 (nbsd_nat_target::thread_name): Likewise.
7491 (nbsd_add_threads): Likewise.
7492 (update_thread_list::post_attach): Likewise.
7493 (nbsd_nat_target::update_thread_list): Likewise.
7494 (post_attach::pid_to_str): Likewise.
7495
7496 2020-04-06 Tom Tromey <tromey@adacore.com>
7497
7498 * ada-valprint.c (print_variant_part): Extract the variant field.
7499 (print_field_values): Use the field as the outer value when
7500 recursing.
7501
7502 2020-04-06 Tom Tromey <tromey@adacore.com>
7503
7504 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7505 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7506 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7507 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7508 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7509
7510 2020-04-06 Tom Tromey <tromey@adacore.com>
7511
7512 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7513 TYPE_CODE_ERROR.
7514
7515 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7516
7517 * nbsd-tdep.c: Include "gdbarch.h".
7518 Define enum with NetBSD signal numbers.
7519 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7520 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7521 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7522 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7523 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7524 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7525 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7526 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7527 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7528 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7529 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7530 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7531
7532 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7533
7534 PR gdb/25325
7535 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7536
7537 2020-04-03 Tom Tromey <tromey@adacore.com>
7538
7539 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7540 Read constant block.
7541
7542 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7543
7544 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7545 (gdb_bfd_get_full_section_contents): New declaration.
7546 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7547 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7548 gdb_bfd_get_full_section_contents.
7549
7550 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7551
7552 * exec.c (build_section_table): Replace internal_error with
7553 gdb_assert.
7554 (section_table_xfer_memory_partial): Likewise.
7555 * mdebugread.c (parse_partial_symbols): Likewise.
7556 * psymtab.c (lookup_partial_symbol): Likewise.
7557 * utils.c (wrap_here): Likewise.
7558
7559 2020-04-02 Tom Tromey <tromey@adacore.com>
7560
7561 * f-lang.c (build_fortran_types): Use arch_type to initialize
7562 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7563
7564 2020-04-02 Tom Tromey <tromey@adacore.com>
7565
7566 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7567 of attributes.
7568
7569 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7570 Bernd Edlinger <bernd.edlinger@hotmail.de>
7571 Tom Tromey <tromey@adacore.com>
7572
7573 * buildsym.c (buildsym_compunit::record_line): Remove
7574 deduplication code.
7575
7576 2020-04-02 Tom de Vries <tdevries@suse.de>
7577
7578 PR ada/24671
7579 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7580
7581 2020-04-02 Tom de Vries <tdevries@suse.de>
7582
7583 * dwarf2/read.c (dwarf2_gdb_index_functions,
7584 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7585 NULL.
7586 * psymtab.c (psym_lookup_global_symbol_language): New function.
7587 (psym_functions): Init psym_lookup_global_symbol_language with
7588 psym_lookup_global_symbol_language.
7589 * symfile-debug.c (debug_sym_quick_functions): Init
7590 lookup_global_symbol_language with NULL.
7591 * symfile.c (set_initial_language): Remove fixme comment.
7592 * symfile.h (struct quick_symbol_functions): Add
7593 lookup_global_symbol_language.
7594 * symtab.c (find_quick_global_symbol_language): New function.
7595 (find_main_name): Use find_quick_global_symbol_language.
7596
7597 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7598
7599 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7600
7601 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7602
7603 * buildsym.c (record_line): Fix undefined behavior and preserve
7604 lines at eof.
7605
7606 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7607
7608 * buildsym.c (record_line): Fix the resizing condition.
7609
7610 2020-04-01 Tom Tromey <tom@tromey.com>
7611
7612 * value.h (value_literal_complex): Add comment.
7613 * valops.c (value_literal_complex): Refer to value.h.
7614
7615 2020-04-01 Tom Tromey <tom@tromey.com>
7616
7617 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7618 (scalar_type): New rule, from typebase.
7619 (typebase): Use scalar_type. Recognize complex types.
7620 (field_name): Handle FLOAT_KEYWORD.
7621 (ident_tokens): Add _Complex and __complex__.
7622
7623 2020-04-01 Tom Tromey <tom@tromey.com>
7624
7625 PR exp/25299:
7626 * valarith.c (promotion_type, complex_binop): New functions.
7627 (scalar_binop): Handle complex numbers. Use promotion_type.
7628 (value_pos, value_neg, value_complement): Handle complex numbers.
7629
7630 2020-04-01 Tom Tromey <tom@tromey.com>
7631
7632 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7633 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7634 (parse_number): Handle complex numbers.
7635
7636 2020-04-01 Tom Tromey <tom@tromey.com>
7637
7638 * c-valprint.c (c_decorations): Change complex suffix to "i".
7639
7640 2020-04-01 Tom Tromey <tom@tromey.com>
7641
7642 * valprint.c (generic_value_print_complex): Use accessors.
7643 * value.h (value_real_part, value_imaginary_part): Declare.
7644 * valops.c (value_real_part, value_imaginary_part): New
7645 functions.
7646 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7647
7648 2020-04-01 Tom Tromey <tom@tromey.com>
7649
7650 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7651 (read_range_type): Update.
7652 * mdebugread.c (basic_type): Update.
7653 * go-lang.c (build_go_types): Use init_complex_type.
7654 * gdbtypes.h (struct main_type) <complex_type>: New member.
7655 (init_complex_type): Update.
7656 (arch_complex_type): Don't declare.
7657 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7658 Make name if none given. Use alloc_type_copy. Look for cached
7659 complex type.
7660 (arch_complex_type): Remove.
7661 (gdbtypes_post_init): Use init_complex_type.
7662 * f-lang.c (build_fortran_types): Use init_complex_type.
7663 * dwarf2/read.c (read_base_type): Update.
7664 * d-lang.c (build_d_types): Use init_complex_type.
7665 * ctfread.c (read_base_type): Update.
7666
7667 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7668
7669 * infrun.c (stop_all_threads): Update assertion, plus when
7670 stopping threads, take into account that we might be trying
7671 to stop an all-stop target.
7672 (stop_waiting): Call 'stop_all_threads' if there exists a
7673 non-stop target.
7674
7675 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7676
7677 * target.h (exists_non_stop_target): New function declaration.
7678 * target.c (exists_non_stop_target): New function.
7679
7680 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7681
7682 PR gdb/24789
7683 * eval.c (is_integral_or_integral_reference): New function.
7684 (evaluate_subexp_standard): Allow integer references in
7685 pointer arithmetic.
7686
7687 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7688
7689 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7690 check for no ptid in the stop reply when the target is non-stop.
7691
7692 2020-04-01 Tom Tromey <tromey@adacore.com>
7693
7694 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7695 "name" parameter to rvalue reference. Initialize m_name_holder.
7696 <lookup_name_info>: New overloads.
7697 <name>: Return gdb::string_view.
7698 <c_str>: New method.
7699 <make_ignore_params>: Update.
7700 <search_name_hash>: Update.
7701 <language_lookup_name>: Return const char *.
7702 <m_name>: Change type.
7703 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7704 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7705 (lookup_name_info::match_any): Update.
7706 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7707 Update.
7708 * minsyms.c (linkage_name_str): Update.
7709 * language.c (default_symbol_name_matcher): Update.
7710 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7711 Update.
7712 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7713 (ada_lookup_name_info::ada_lookup_name_info): Update.
7714 (literal_symbol_name_matcher): Update.
7715
7716 2020-04-01 Tom Tromey <tromey@adacore.com>
7717
7718 * psymtab.c (psymtab_search_name): Remove function.
7719 (psym_lookup_symbol): Create search name and lookup name here.
7720 (lookup_partial_symbol): Remove "name" parameter; add
7721 lookup_name.
7722 (psym_expand_symtabs_for_function): Update.
7723
7724 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7725
7726 PR tui/25597:
7727 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7728
7729 2020-03-31 Tom Tromey <tromey@adacore.com>
7730
7731 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7732 memcpy.
7733
7734 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7735
7736 * features/riscv/32bit-csr.xml: Regenerated.
7737 * features/riscv/64bit-csr.xml: Regenerated.
7738
7739 2020-03-30 Tom Tromey <tromey@adacore.com>
7740
7741 * ada-valprint.c (print_variant_part): Update.
7742 * ada-lang.h (ada_which_variant_applies): Update.
7743 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7744 outer_valaddr parameters; replace with "outer" value parameter.
7745 (to_fixed_variant_branch_type): Update.
7746
7747 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7748
7749 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7750 <list>. Remove inclusion of observable.h.
7751 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7752 (struct arch_lwp_info): New struct.
7753 (class ppc_linux_dreg_interface): New class.
7754 (struct ppc_linux_process_info): New struct.
7755 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7756 <low_new_clone, low_forget_process, low_prepare_to_resume>
7757 <copy_thread_dreg_state, mark_thread_stale>
7758 <mark_debug_registers_changed, register_hw_breakpoint>
7759 <clear_hw_breakpoint, register_wp, clear_wp>
7760 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7761 <num_memory_accesses, get_trigger_type>
7762 <create_watchpoint_request, hwdebug_point_cmp>
7763 <init_arch_lwp_info, get_arch_lwp_info>
7764 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7765 methods.
7766 <struct ptid_hash>: New inner struct.
7767 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7768 members.
7769 (saved_dabr_value, hwdebug_info, max_slots_number)
7770 (struct hw_break_tuple, struct thread_points, ppc_threads)
7771 (have_ptrace_hwdebug_interface)
7772 (hwdebug_find_thread_points_by_tid)
7773 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7774 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7775 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7776 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7777 use m_dreg_interface.
7778 (hwdebug_point_cmp): Change to...
7779 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7780 reference arguments instead of pointers.
7781 (ppc_linux_nat_target::ranged_break_num_registers): Use
7782 m_dreg_interface.
7783 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7784 m_dreg_interface. Call register_hw_breakpoint.
7785 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7786 m_dreg_interface. Call clear_hw_breakpoint.
7787 (get_trigger_type): Change to...
7788 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7789 comment.
7790 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7791 use m_dreg_interface. Call register_hw_breakpoint.
7792 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7793 use m_dreg_interface. Call clear_hw_breakpoint.
7794 (can_use_watchpoint_cond_accel): Change to...
7795 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7796 method. Update comment, use m_dreg_interface and
7797 m_process_info.
7798 (calculate_dvc): Change to...
7799 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7800 m_dreg_interface.
7801 (num_memory_accesses): Change to...
7802 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7803 (check_condition): Change to...
7804 (ppc_linux_nat_target::check_condition): ...this method.
7805 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7806 comment, use m_dreg_interface.
7807 (create_watchpoint_request): Change to...
7808 (ppc_linux_nat_target::create_watchpoint_request): ...this
7809 method. Use m_dreg_interface.
7810 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7811 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7812 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7813 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7814 (ppc_linux_nat_target::low_forget_process)
7815 (ppc_linux_nat_target::low_new_fork)
7816 (ppc_linux_nat_target::low_new_clone)
7817 (ppc_linux_nat_target::low_delete_thread)
7818 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7819 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7820 only call mark_thread_stale.
7821 (ppc_linux_thread_exit): Remove.
7822 (ppc_linux_nat_target::stopped_data_address): Change to...
7823 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7824 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7825 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7826 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7827 comment. Call low_stopped_data_address.
7828 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7829 m_dreg_interface.
7830 (ppc_linux_nat_target::masked_watch_num_registers): Use
7831 m_dreg_interface.
7832 (ppc_linux_nat_target::copy_thread_dreg_state)
7833 (ppc_linux_nat_target::mark_thread_stale)
7834 (ppc_linux_nat_target::mark_debug_registers_changed)
7835 (ppc_linux_nat_target::register_hw_breakpoint)
7836 (ppc_linux_nat_target::clear_hw_breakpoint)
7837 (ppc_linux_nat_target::register_wp)
7838 (ppc_linux_nat_target::clear_wp)
7839 (ppc_linux_nat_target::init_arch_lwp_info)
7840 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7841 (_initialize_ppc_linux_nat): Remove observer callback.
7842
7843 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7844
7845 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7846 (ppc_linux_nat_target::auxv_parse)
7847 (ppc_linux_nat_target::read_description)
7848 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7849 Move up.
7850
7851 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7852
7853 * linux-nat.h (low_new_clone): New method.
7854 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7855
7856 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7857
7858 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7859 (dbx_expand_psymtab): ... this.
7860 (start_psymtab): Update.
7861 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7862 (mdebug_expand_psymtab): ... this.
7863 (parse_partial_symbols): Update.
7864 (new_psymtab): Update.
7865 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7866 (xcoff_expand_psymtab): ... this.
7867 (xcoff_start_psymtab): Update.
7868
7869 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7870
7871 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7872 <expand_dependencies>: ... this.
7873 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7874 (partial_symtab::expand_dependencies): ... this.
7875 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7876 Update.
7877 (dwarf2_psymtab::expand_psymtab): Update.
7878 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7879 * mdebugread.c (psymtab_to_symtab_1): Update.
7880 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7881
7882 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7883
7884 * psympriv.h (discard_psymtab): Remove.
7885 * dbxread.c (dbx_end_psymtab): Update.
7886 * xcoffread.c (xcoff_end_psymtab): Update.
7887
7888 2020-03-28 Tom Tromey <tom@tromey.com>
7889
7890 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7891 comment.
7892
7893 2020-03-28 Tom Tromey <tom@tromey.com>
7894
7895 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7896
7897 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7898
7899 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7900
7901 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7902
7903 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7904
7905 2020-03-26 Tom Tromey <tom@tromey.com>
7906
7907 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7908 (mark_common_block_symbol_computed, read_tag_string_type)
7909 (attr_to_dynamic_prop, read_subrange_type): Update.
7910 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7911 to be methods on struct attribute.
7912 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7913 (read_call_site_scope, partial_die_info::read)
7914 (partial_die_info::read, lookup_die_type, follow_die_ref):
7915 Update.
7916 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7917 from dwarf2_get_ref_die_offset.
7918 (attribute::constant_value): New method, from
7919 dwarf2_get_attr_constant_value.
7920 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7921 Declare method.
7922 <constant_value>: New method.
7923
7924 2020-03-26 Tom Tromey <tom@tromey.com>
7925
7926 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7927 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7928 (dwarf_type_encoding_name): Move to stringify.c.
7929 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7930 * dwarf2/stringify.c: New file.
7931 * dwarf2/stringify.h: New file.
7932
7933 2020-03-26 Tom Tromey <tom@tromey.com>
7934
7935 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7936 Rewrite.
7937
7938 2020-03-26 Tom Tromey <tom@tromey.com>
7939
7940 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7941 methods.
7942 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7943 (lookup_ranges_base): Likewise.
7944 (read_cutu_die_from_dwo, read_full_die_1): Update.
7945
7946 2020-03-26 Tom Tromey <tom@tromey.com>
7947
7948 * dwarf2/read.c (read_import_statement, read_file_scope)
7949 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7950 (read_lexical_block_scope, read_call_site_scope)
7951 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7952 (handle_struct_member_die, process_structure_scope)
7953 (update_enumeration_type_from_children)
7954 (process_enumeration_scope, read_array_type, read_common_block)
7955 (read_namespace, read_module, read_subroutine_type): Update.
7956 (sibling_die): Remove.
7957
7958 2020-03-26 Tom Tromey <tom@tromey.com>
7959
7960 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7961 (build_type_psymtabs_reader, read_structure_type)
7962 (read_enumeration_type, read_full_die_1): Update.
7963 (dwarf2_attr_no_follow): Move to die.h.
7964 * dwarf2/die.h (struct die_info) <attr>: New method.
7965
7966 2020-03-26 Tom Tromey <tom@tromey.com>
7967
7968 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7969 <base_address>: Now an optional.
7970 (dwarf2_find_base_address, dwarf2_rnglists_process)
7971 (dwarf2_ranges_process, fill_in_loclist_baton)
7972 (dwarf2_symbol_mark_computed): Update.
7973
7974 2020-03-26 Tom Tromey <tom@tromey.com>
7975
7976 * dwarf2/read.c (struct die_info): Move to die.h.
7977 * dwarf2/die.h: New file.
7978
7979 2020-03-26 Tom Tromey <tom@tromey.com>
7980
7981 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7982 * dwarf2/read.c
7983 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7984 Move to line-header.c.
7985 (read_checked_initial_length_and_offset, read_formatted_entries):
7986 Likewise.
7987 (dwarf_decode_line_header): Split into two.
7988 * dwarf2/line-header.c
7989 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7990 Move from read.c.
7991 (read_checked_initial_length_and_offset, read_formatted_entries):
7992 Likewise.
7993 (dwarf_decode_line_header): New function, split from read.c.
7994
7995 2020-03-26 Tom Tromey <tom@tromey.com>
7996
7997 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7998 Declare method.
7999 * dwarf2/read.c (read_attribute_value): Update.
8000 (dwarf2_per_objfile::read_line_string): Rename from
8001 read_indirect_line_string.
8002 (read_formatted_entries): Update.
8003
8004 2020-03-26 Tom Tromey <tom@tromey.com>
8005
8006 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8007 variable.
8008
8009 2020-03-26 Tom Tromey <tom@tromey.com>
8010
8011 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8012 const.
8013 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8014 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8015 parameter const.
8016
8017 2020-03-26 Tom Tromey <tom@tromey.com>
8018
8019 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8020 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8021 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8022 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8023
8024 2020-03-26 Tom Tromey <tom@tromey.com>
8025
8026 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8027 file_names_size, file_full_name, file_file_name>: Use const.
8028 <file_name_at, file_names>: Add const overload.
8029 * dwarf2/line-header.c (line_header::file_file_name)
8030 (line_header::file_full_name): Update.
8031
8032 2020-03-26 Tom Tromey <tom@tromey.com>
8033
8034 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8035 (macro_start_file, consume_improper_spaces)
8036 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8037 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8038 (dwarf_decode_macros): Move to macro.c.
8039 * dwarf2/macro.c: New file.
8040 * dwarf2/macro.h: New file.
8041 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8042
8043 2020-03-26 Tom Tromey <tom@tromey.com>
8044
8045 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8046 method.
8047 * dwarf2/section.c: New method. From
8048 read_indirect_string_at_offset_from.
8049 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8050 (read_indirect_string_at_offset_from): Move to section.c.
8051 (read_indirect_string_at_offset): Rewrite.
8052 (read_indirect_line_string_at_offset): Remove.
8053 (read_indirect_string, read_indirect_line_string)
8054 (dwarf_decode_macro_bytes): Update.
8055
8056 2020-03-26 Tom Tromey <tom@tromey.com>
8057
8058 * dwarf2/section.h (struct dwarf2_section_info)
8059 <overload_complaint>: Declare.
8060 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8061 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8062 Rename from dwarf2_section_buffer_overflow_complaint.
8063 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8064 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8065
8066 2020-03-26 Tom Tromey <tom@tromey.com>
8067
8068 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8069 Declare.
8070 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8071 Move from read.c.
8072 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8073 to section.c.
8074
8075 2020-03-26 Tom Tromey <tom@tromey.com>
8076
8077 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8078
8079 2020-03-26 Tom Tromey <tom@tromey.com>
8080
8081 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8082 "builder".
8083 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8084 parameter.
8085 (dwarf_decode_macros): Update.
8086
8087 2020-03-26 Tom Tromey <tom@tromey.com>
8088
8089 * dwarf2/read.c (read_attribute_value): Update.
8090 (read_indirect_string_from_dwz): Move to dwz.c; change into
8091 method.
8092 (dwarf_decode_macro_bytes): Update.
8093 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8094 * dwarf2/dwz.c: New file.
8095 * Makefile.in (COMMON_SFILES): Add dwz.c.
8096
8097 2020-03-26 Tom Tromey <tom@tromey.com>
8098
8099 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8100 * dwarf2/read.c: Add include.
8101 * dwarf2/index-write.c: Add include.
8102 * dwarf2/index-cache.c: Add include.
8103 * dwarf2/dwz.h: New file.
8104
8105 2020-03-25 Tom Tromey <tom@tromey.com>
8106
8107 * compile/compile-object-load.c (get_out_value_type): Mention
8108 correct symbol name in error message.
8109
8110 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8111
8112 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8113
8114 2020-03-25 Tom de Vries <tdevries@suse.de>
8115
8116 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8117 * symmisc.c (dump_symtab_1): Print user and includes fields.
8118 (maintenance_info_symtabs): Same.
8119
8120 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8121
8122 PR gdb/25534
8123 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8124 (riscv_regcache_cooked_write): New function.
8125 (riscv_push_dummy_call): Use new function.
8126 (riscv_return_value): Likewise.
8127
8128 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8129
8130 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8131 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8132 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8133 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8134 * infrun.c (follow_fork): Likewise.
8135 (follow_fork_inferior): Likewise.
8136 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8137 * linux-nat.h (class linux_nat_target): Likewise.
8138 * remote.c (class remote_target) <follow_fork>: Likewise.
8139 (remote_target::follow_fork): Likewise.
8140 * target-delegates.c: Re-generate.
8141 * target.c (default_follow_fork): Likewise.
8142 (target_follow_fork): Likewise.
8143 * target.h (struct target_ops) <follow_fork>: Likewise.
8144 (target_follow_fork): Likewise.
8145
8146 2020-03-24 Tom de Vries <tdevries@suse.de>
8147
8148 * psymtab.c (maintenance_info_psymtabs): Print user field.
8149
8150 2020-03-20 Tom Tromey <tromey@adacore.com>
8151
8152 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8153 const.
8154 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8155 const.
8156
8157 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8158
8159 * ptrace.m4: Don't check for ptrace declaration.
8160 * config.in: Re-generate.
8161 * configure: Re-generate.
8162 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8163 not defined.
8164
8165 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8166
8167 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8168 `PTRACE_TYPE_RET'.
8169 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8170 * sparc-nat.c (gdb_ptrace): Likewise.
8171 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8172
8173 2020-03-20 Tom Tromey <tromey@adacore.com>
8174
8175 * c-exp.y (lex_one_token): Fix assert.
8176
8177 2020-03-20 Tom Tromey <tromey@adacore.com>
8178
8179 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8180 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8181 strncpy call.
8182
8183 2020-03-20 Tom Tromey <tromey@adacore.com>
8184
8185 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8186
8187 2020-03-20 Tom Tromey <tromey@adacore.com>
8188
8189 * ada-valprint.c (print_variant_part): Remove parameters; switch
8190 to value-based API.
8191 (print_field_values): Likewise.
8192 (ada_val_print_struct_union): Likewise.
8193 (ada_value_print_1): Update.
8194
8195 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8196
8197 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8198 nbsd_nat_target instead of inf_ptrace_target.
8199 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8200 nbsd_nat_target.
8201
8202 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8203
8204 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8205 it to the ptrace call.
8206 * (store_registers): Likewise.
8207
8208 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8209
8210 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8211 it to the ptrace call.
8212 * (store_registers): Likewise.
8213
8214 2020-03-19 Luis Machado <luis.machado@linaro.org>
8215
8216 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8217 valid, fetch vg value from ptrace.
8218
8219 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8220 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8221 * inf-ptrace.c: Likewise.
8222 * (gdb_ptrace): Add.
8223 * (inf_ptrace_target::resume): Update.
8224 * (inf_ptrace_target::xfer_partial): Likewise.
8225 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8226 * (inf_ptrace_peek_poke): Update.
8227
8228 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8229
8230 * x86-bsd-nat.c (gdb_ptrace): New.
8231 * (x86bsd_dr_set): Add new argument `ptid'.
8232 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8233 x86bsd_dr_set_addr): Update.
8234
8235 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8236
8237 * remote.c (remote_target::process_stop_reply): Handle events for
8238 all threads differently.
8239
8240 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8241
8242 * completer.c (completion_tracker::remove_completion): Define new
8243 function.
8244 * completer.h (completion_tracker::remove_completion): Declare new
8245 function.
8246 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8247 when adding a C++ function symbol.
8248
8249 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8250
8251 * completer.c (completion_tracker::completion_hash_entry): Define
8252 new class.
8253 (advance_to_filename_complete_word_point): Call
8254 recompute_lowest_common_denominator.
8255 (completion_tracker::completion_tracker): Call discard_completions
8256 to setup the hash table.
8257 (completion_tracker::discard_completions): Allow for being called
8258 from the constructor, pass new equal function, and element deleter
8259 when constructing the hash table. Initialise new class member
8260 variables.
8261 (completion_tracker::maybe_add_completion): Remove use of
8262 m_entries_vec, and store more information into m_entries_hash.
8263 (completion_tracker::recompute_lcd_visitor): New function, most
8264 content taken from...
8265 (completion_tracker::recompute_lowest_common_denominator):
8266 ...here, this now just visits each item in the hash calling the
8267 above visitor.
8268 (completion_tracker::build_completion_result): Remove use of
8269 m_entries_vec, call recompute_lowest_common_denominator.
8270 * completer.h (completion_tracker::have_completions): Remove use
8271 of m_entries_vec.
8272 (completion_tracker::completion_hash_entry): Declare new class.
8273 (completion_tracker::recompute_lowest_common_denominator): Change
8274 function signature.
8275 (completion_tracker::recompute_lcd_visitor): Declare new function.
8276 (completion_tracker::m_entries_vec): Delete.
8277 (completion_tracker::m_entries_hash): Initialize to NULL.
8278 (completion_tracker::m_lowest_common_denominator_valid): New
8279 member variable.
8280 (completion_tracker::m_lowest_common_denominator_max_length): New
8281 member variable.
8282
8283 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8284
8285 * regformats/regdef.h: Put reg in gdb namespace.
8286
8287 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8288
8289 * i386-bsd-nat.c (gdb_ptrace): New.
8290 * (i386bsd_fetch_inferior_registers,
8291 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8292 * (i386bsd_fetch_inferior_registers,
8293 i386bsd_store_inferior_registers) Use gdb_ptrace.
8294
8295 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8296
8297 * amd64-bsd-nat.c (gdb_ptrace): New.
8298 * (amd64bsd_fetch_inferior_registers,
8299 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8300 * (amd64bsd_fetch_inferior_registers,
8301 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8302
8303 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8304
8305 * user-regs.c (user_reg::read): Rename to...
8306 (user_reg::xread): ...this.
8307 * (append_user_reg): Rename argument `read' to `xread'.
8308 * (user_reg_add_builtin): Likewise.
8309 * (user_reg_add): Likewise.
8310 * (value_of_user_reg): Likewise.
8311
8312 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8313
8314 * sparc-nat.c (gdb_ptrace): New.
8315 * sparc-nat.c (sparc_fetch_inferior_registers)
8316 (sparc_store_inferior_registers) Remove obsolete comment.
8317 * sparc-nat.c (sparc_fetch_inferior_registers)
8318 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8319 * sparc-nat.c (sparc_fetch_inferior_registers)
8320 (sparc_store_inferior_registers) Use gdb_ptrace.
8321
8322 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8323
8324 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8325 it to the ptrace call.
8326 * sh-nbsd-nat.c (store_registers): Likewise.
8327
8328 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8329
8330 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8331 nbsd_nat_target instead of inf_ptrace_target.
8332 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8333 nbsd_nat_target.
8334
8335 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8336
8337 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8338
8339 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8340
8341 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8342 <sys/sysctl.h>.
8343 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8344
8345 2020-03-17 Tom de Vries <tdevries@suse.de>
8346
8347 PR gdb/23710
8348 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8349 fields.
8350 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8351 fields.
8352 (process_imported_unit_die): Skip import of c++ CUs.
8353
8354 2020-03-16 Tom Tromey <tom@tromey.com>
8355
8356 * p-valprint.c (pascal_object_print_value): Initialize
8357 base_value.
8358
8359 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8360 Shahab Vahedi <shahab@synopsys.com>
8361
8362 * Makefile.in: Add arch/arc.o
8363 * configure.tgt: Likewise.
8364 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8365 (_initialize_arc_tdep): Don't initialize old target descriptions.
8366 (arc_read_description): New function to cache target descriptions.
8367 * arc-tdep.h (arc_read_description): Add proto type.
8368 * arch/arc.c: New file.
8369 * arch/arc.h: Likewise.
8370 * features/Makefile: Replace old target descriptions with new.
8371 * features/arc-arcompact.c: Remove.
8372 * features/arc-arcompact.xml: Likewise.
8373 * features/arc-v2.c: Likewise
8374 * features/arc-v2.xml: Likewise
8375 * features/arc/aux-arcompact.xml: New file.
8376 * features/arc/aux-v2.xml: Likewise.
8377 * features/arc/core-arcompact.xml: Likewise.
8378 * features/arc/core-v2.xml: Likewise.
8379 * features/arc/aux-arcompact.c: Generate.
8380 * features/arc/aux-v2.c: Likewise.
8381 * features/arc/core-arcompact.c: Likewise.
8382 * features/arc/core-v2.c: Likewise.
8383 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8384
8385 2020-03-16 Tom Tromey <tromey@adacore.com>
8386
8387 PR gdb/25663:
8388 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8389 putting value into bcache.
8390
8391 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8392
8393 PR gdb/21500
8394 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8395 to...
8396 (amd64_windows_init_abi_common): ... this. Don't set size of
8397 long type.
8398 (amd64_windows_init_abi): New function.
8399 (amd64_cygwin_init_abi): New function.
8400 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8401 the Cygwin OS ABI.
8402 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8403 comment.
8404
8405 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8406
8407 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8408 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8409 (pe_import_directory_entry): New struct type.
8410 (is_linked_with_cygwin_dll): New function.
8411 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8412 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8413 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8414
8415 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8416
8417 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8418 i386_cygwin_core_osabi_sniffer.
8419
8420 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8421
8422 * i386-cygwin-tdep.c: Rename to...
8423 * i386-windows-tdep.c: ... this.
8424 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8425 i386-windows-tdep.c.
8426 * configure.tgt: Likewise.
8427
8428 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8429
8430 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8431 * osabi.c (gdb_osabi_names): Add "Windows".
8432 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8433 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8434 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8435 i386_cygwin_osabi_sniffer.
8436 (_initialize_i386_cygwin_tdep): Register OS ABI
8437 GDB_OSABI_WINDOWS for i386.
8438 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8439 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8440 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8441 for x86-64.
8442 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8443 when the target matches '*-*-mingw*'.
8444
8445 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8446
8447 * defs.h (enum gdb_osabi): Move to...
8448 * osabi.h (enum gdb_osabi): ... here.
8449 * gdbarch.sh: Include osabi.h in gdbarch.h.
8450 * gdbarch.h: Re-generate.
8451
8452 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8453
8454 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8455 function.
8456 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8457
8458 2020-03-14 Tom Tromey <tom@tromey.com>
8459
8460 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8461 for C++.
8462 (c_type_print_modifier): Likewise. Add "language" parameter.
8463 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8464 (c_type_print_base_1): Update.
8465 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8466 constants.
8467 * type-stack.c (type_stack::insert): Handle tp_atomic and
8468 tp_restrict.
8469 (type_stack::follow_type_instance_flags): Likewise.
8470 (type_stack::follow_types): Likewise. Merge type-following code.
8471 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8472 (space_identifier, cv_with_space_id)
8473 (const_or_volatile_or_space_identifier_noopt)
8474 (const_or_volatile_or_space_identifier): Remove.
8475 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8476 rules.
8477 (ptr_operator, typebase): Update.
8478 (enum token_flag) <FLAG_C>: New constant.
8479 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8480 "_Atomic".
8481 (lex_one_token): Handle FLAG_C.
8482
8483 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8484
8485 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8486 it to the ptrace call.
8487 * m68k-bsd-nat.c (store_registers): Likewise.
8488
8489 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8490
8491 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8492 gdb_byte *.
8493 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8494 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8495 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8496
8497 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8498
8499 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8500 nbsd_nat_target instead of inf_ptrace_target.
8501 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8502 nbsd_nat_target.
8503
8504 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8505
8506 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8507 register_t.
8508
8509 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8510
8511 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8512 it to the ptrace call.
8513 * alpha-bsd-nat.c (store_registers): Likewise.
8514
8515 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8516
8517 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8518 includes.
8519 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8520 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8521 fill_fpregset): Likewise.
8522
8523 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8524
8525 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8526 nbsd_nat_target instead of inf_ptrace_target.
8527 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8528 nbsd_nat_target.
8529
8530 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8531
8532 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8533 register_t.
8534
8535 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8536
8537 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8538 it to the ptrace call.
8539 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8540 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8541 * arm-nbsd-nat.c (store_register): Likewise.
8542 * arm-nbsd-nat.c (store_regs): Likewise.
8543 * arm-nbsd-nat.c (store_fp_register): Likewise.
8544 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8545
8546 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8547
8548 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8549 nbsd_nat_target instead of inf_ptrace_target.
8550 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8551 nbsd_nat_target.
8552
8553 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8554
8555 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8556 it to the ptrace call.
8557 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8558
8559 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8560
8561 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8562 it to the ptrace call.
8563 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8564
8565 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8566
8567 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8568 gdb_byte *.
8569 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8570
8571 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8572
8573 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8574 instead of inf_ptrace_target.
8575 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8576 nbsd_nat_target.
8577
8578 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8579
8580 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8581 register_t.
8582
8583 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8584
8585 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8586 register_t.
8587
8588 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8589
8590 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8591 register_t.
8592
8593 2020-03-13 Tom Tromey <tom@tromey.com>
8594
8595 * value.h (val_print): Don't declare.
8596 * valprint.h (val_print_array_elements)
8597 (val_print_scalar_formatted, generic_val_print): Don't declare.
8598 * valprint.c (generic_val_print_array): Take a struct value.
8599 (generic_val_print_ptr, generic_val_print_memberptr)
8600 (generic_val_print_bool, generic_val_print_int)
8601 (generic_val_print_char, generic_val_print_complex)
8602 (generic_val_print): Remove.
8603 (generic_value_print): Update.
8604 (do_val_print): Remove unused parameters. Don't call
8605 la_val_print.
8606 (val_print): Remove.
8607 (common_val_print): Update. Don't call value_check_printable.
8608 (val_print_scalar_formatted, val_print_array_elements): Remove.
8609 * rust-lang.c (rust_val_print): Remove.
8610 (rust_language_defn): Update.
8611 * p-valprint.c (pascal_val_print): Remove.
8612 (pascal_value_print_inner): Update.
8613 (pascal_object_print_val_fields, pascal_object_print_val):
8614 Remove.
8615 (pascal_object_print_static_field): Update.
8616 * p-lang.h (pascal_val_print): Don't declare.
8617 * p-lang.c (pascal_language_defn): Update.
8618 * opencl-lang.c (opencl_language_defn): Update.
8619 * objc-lang.c (objc_language_defn): Update.
8620 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8621 * m2-lang.h (m2_val_print): Don't declare.
8622 * m2-lang.c (m2_language_defn): Update.
8623 * language.h (struct language_defn) <la_val_print>: Remove.
8624 * language.c (unk_lang_value_print_inner): Rename. Change
8625 argument types.
8626 (unknown_language_defn, auto_language_defn): Update.
8627 * go-valprint.c (go_val_print): Remove.
8628 * go-lang.h (go_val_print): Don't declare.
8629 * go-lang.c (go_language_defn): Update.
8630 * f-valprint.c (f_val_print): Remove.
8631 * f-lang.h (f_value_print): Don't declare.
8632 * f-lang.c (f_language_defn): Update.
8633 * d-valprint.c (d_val_print): Remove.
8634 * d-lang.h (d_value_print): Don't declare.
8635 * d-lang.c (d_language_defn): Update.
8636 * cp-valprint.c (cp_print_value_fields)
8637 (cp_print_value_fields_rtti, cp_print_value): Remove.
8638 (cp_print_static_field): Update.
8639 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8640 (c_val_print_struct, c_val_print_union, c_val_print_int)
8641 (c_val_print_memberptr, c_val_print): Remove.
8642 * c-lang.h (c_val_print_array, cp_print_value_fields)
8643 (cp_print_value_fields_rtti): Don't declare.
8644 * c-lang.c (c_language_defn, cplus_language_defn)
8645 (asm_language_defn, minimal_language_defn): Update.
8646 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8647 (ada_val_print_enum): Take a struct value.
8648 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8649 (ada_val_print): Remove.
8650 (ada_value_print_1): Update.
8651 (printable_val_type): Remove.
8652 * ada-lang.h (ada_val_print): Don't declare.
8653 * ada-lang.c (ada_language_defn): Update.
8654
8655 2020-03-13 Tom Tromey <tom@tromey.com>
8656
8657 * valprint.c (do_val_print): Update.
8658 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8659 a struct value.
8660 (value_to_value_object_no_release): Declare.
8661 * python/py-value.c (value_to_value_object_no_release): New
8662 function.
8663 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8664 struct value.
8665 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8666 function.
8667 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8668 a struct value.
8669 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8670 Declare.
8671 (gdbscm_apply_val_pretty_printer): Take a struct value.
8672 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8673 value.
8674 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8675 value.
8676 * extension-priv.h (struct extension_language_ops)
8677 <apply_val_pretty_printer>: Take a struct value.
8678 * cp-valprint.c (cp_print_value): Create a struct value.
8679 (cp_print_value): Update.
8680
8681 2020-03-13 Tom Tromey <tom@tromey.com>
8682
8683 * ada-valprint.c (print_field_values): Call common_val_print.
8684
8685 2020-03-13 Tom Tromey <tom@tromey.com>
8686
8687 * ada-valprint.c (val_print_packed_array_elements): Remove
8688 bitoffset and val parameters. Call common_val_print.
8689 (ada_val_print_string): Remove offset, address, and original_value
8690 parameters.
8691 (ada_val_print_array): Update.
8692 (ada_value_print_array): New function.
8693 (ada_value_print_1): Call it.
8694
8695 2020-03-13 Tom Tromey <tom@tromey.com>
8696
8697 * ada-valprint.c (ada_value_print): Use common_val_print.
8698
8699 2020-03-13 Tom Tromey <tom@tromey.com>
8700
8701 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8702
8703 2020-03-13 Tom Tromey <tom@tromey.com>
8704
8705 * ada-valprint.c (ada_value_print_num): New function.
8706 (ada_value_print_1): Use it.
8707
8708 2020-03-13 Tom Tromey <tom@tromey.com>
8709
8710 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8711
8712 2020-03-13 Tom Tromey <tom@tromey.com>
8713
8714 * ada-valprint.c (ada_value_print_ptr): New function.
8715 (ada_value_print_1): Use it.
8716
8717 2020-03-13 Tom Tromey <tom@tromey.com>
8718
8719 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8720 call common_val_print.
8721 (ada_val_print_1): Update.
8722 (ada_value_print_1): New function.
8723 (ada_value_print_inner): Rewrite.
8724
8725 2020-03-13 Tom Tromey <tom@tromey.com>
8726
8727 * cp-valprint.c (cp_print_value_fields): Update.
8728 (cp_print_value): New function.
8729
8730 2020-03-13 Tom Tromey <tom@tromey.com>
8731
8732 * m2-valprint.c (m2_value_print_inner): Use
8733 cp_print_value_fields.
8734 * cp-valprint.c (cp_print_value_fields): New function.
8735 * c-valprint.c (c_value_print_struct): New function.
8736 (c_value_print_inner): Use c_value_print_struct.
8737 * c-lang.h (cp_print_value_fields): Declare.
8738
8739 2020-03-13 Tom Tromey <tom@tromey.com>
8740
8741 * c-valprint.c (c_value_print_array): New function.
8742 (c_value_print_inner): Use it.
8743
8744 2020-03-13 Tom Tromey <tom@tromey.com>
8745
8746 * c-valprint.c (c_value_print_memberptr): New function.
8747 (c_value_print_inner): Use it.
8748
8749 2020-03-13 Tom Tromey <tom@tromey.com>
8750
8751 * c-valprint.c (c_value_print_int): New function.
8752 (c_value_print_inner): Use it.
8753
8754 2020-03-13 Tom Tromey <tom@tromey.com>
8755
8756 * c-valprint.c (c_value_print_ptr): New function.
8757 (c_value_print_inner): Use it.
8758
8759 2020-03-13 Tom Tromey <tom@tromey.com>
8760
8761 * c-valprint.c (c_value_print_inner): Rewrite.
8762
8763 2020-03-13 Tom Tromey <tom@tromey.com>
8764
8765 * valprint.c (generic_value_print_complex): New function.
8766 (generic_value_print): Use it.
8767
8768 2020-03-13 Tom Tromey <tom@tromey.com>
8769
8770 * valprint.c (generic_val_print_float): Don't call
8771 val_print_scalar_formatted.
8772 (generic_val_print, generic_value_print): Update.
8773
8774 2020-03-13 Tom Tromey <tom@tromey.com>
8775
8776 * valprint.c (generic_value_print_char): New function
8777 (generic_value_print): Use it.
8778
8779 2020-03-13 Tom Tromey <tom@tromey.com>
8780
8781 * valprint.c (generic_value_print_int): New function.
8782 (generic_value_print): Use it.
8783
8784 2020-03-13 Tom Tromey <tom@tromey.com>
8785
8786 * valprint.c (generic_value_print_bool): New function.
8787 (generic_value_print): Use it.
8788
8789 2020-03-13 Tom Tromey <tom@tromey.com>
8790
8791 * valprint.c (generic_val_print_func): Simplify.
8792 (generic_val_print, generic_value_print): Update.
8793
8794 2020-03-13 Tom Tromey <tom@tromey.com>
8795
8796 * valprint.c (generic_val_print_flags): Remove.
8797 (generic_val_print, generic_value_print): Update.
8798 (val_print_type_code_flags): Add original_value parameter.
8799
8800 2020-03-13 Tom Tromey <tom@tromey.com>
8801
8802 * valprint.c (generic_val_print): Update.
8803 (generic_value_print): Update.
8804 * valprint.c (generic_val_print_enum): Don't call
8805 val_print_scalar_formatted.
8806
8807 2020-03-13 Tom Tromey <tom@tromey.com>
8808
8809 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8810 * valprint.c (generic_value_print_ptr): New function.
8811
8812 2020-03-13 Tom Tromey <tom@tromey.com>
8813
8814 * valprint.c (generic_value_print): Rewrite.
8815
8816 2020-03-13 Tom Tromey <tom@tromey.com>
8817
8818 * p-valprint.c (pascal_object_print_value_fields)
8819 (pascal_object_print_value): New functions.
8820
8821 2020-03-13 Tom Tromey <tom@tromey.com>
8822
8823 * p-valprint.c (pascal_value_print_inner): Rewrite.
8824
8825 2020-03-13 Tom Tromey <tom@tromey.com>
8826
8827 * f-valprint.c (f_value_print_innner): Rewrite.
8828
8829 2020-03-13 Tom Tromey <tom@tromey.com>
8830
8831 * m2-valprint.c (m2_print_unbounded_array): New overload.
8832 (m2_print_unbounded_array): Update.
8833 (m2_print_array_contents): Take a struct value.
8834 (m2_value_print_inner): Rewrite.
8835
8836 2020-03-13 Tom Tromey <tom@tromey.com>
8837
8838 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8839 (d_value_print_inner): New function.
8840 * d-lang.h (d_value_print_inner): Declare.
8841 * d-lang.c (d_language_defn): Use d_value_print_inner.
8842
8843 2020-03-13 Tom Tromey <tom@tromey.com>
8844
8845 * go-valprint.c (go_value_print_inner): New function.
8846 * go-lang.h (go_value_print_inner): Declare.
8847 * go-lang.c (go_language_defn): Use go_value_print_inner.
8848
8849 2020-03-13 Tom Tromey <tom@tromey.com>
8850
8851 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8852 API.
8853 (rust_val_print): Rewrite.
8854 (rust_value_print_inner): New function, from rust_val_print.
8855 (rust_language_defn): Use rust_value_print_inner.
8856
8857 2020-03-13 Tom Tromey <tom@tromey.com>
8858
8859 * ada-valprint.c (ada_value_print_inner): New function.
8860 * ada-lang.h (ada_value_print_inner): Declare.
8861 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8862
8863 2020-03-13 Tom Tromey <tom@tromey.com>
8864
8865 * f-valprint.c (f_value_print_innner): New function.
8866 * f-lang.h (f_value_print_innner): Declare.
8867 * f-lang.c (f_language_defn): Use f_value_print_innner.
8868
8869 2020-03-13 Tom Tromey <tom@tromey.com>
8870
8871 * p-valprint.c (pascal_value_print_inner): New function.
8872 * p-lang.h (pascal_value_print_inner): Declare.
8873 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8874
8875 2020-03-13 Tom Tromey <tom@tromey.com>
8876
8877 * m2-valprint.c (m2_value_print_inner): New function.
8878 * m2-lang.h (m2_value_print_inner): Declare.
8879 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8880
8881 2020-03-13 Tom Tromey <tom@tromey.com>
8882
8883 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8884 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8885 * c-valprint.c (c_value_print_inner): New function.
8886 * c-lang.h (c_value_print_inner): Declare.
8887 * c-lang.c (c_language_defn, cplus_language_defn)
8888 (asm_language_defn, minimal_language_defn): Use
8889 c_value_print_inner.
8890
8891 2020-03-13 Tom Tromey <tom@tromey.com>
8892
8893 * p-valprint.c (pascal_object_print_value_fields): Now static.
8894 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8895
8896 2020-03-13 Tom Tromey <tom@tromey.com>
8897
8898 * c-valprint.c (c_val_print_array): Simplify.
8899
8900 2020-03-13 Tom Tromey <tom@tromey.com>
8901
8902 * valprint.c (value_print_array_elements): New function.
8903 * valprint.h (value_print_array_elements): Declare.
8904
8905 2020-03-13 Tom Tromey <tom@tromey.com>
8906
8907 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8908 * mips-tdep.c (mips_print_register): Use
8909 value_print_scalar_formatted.
8910
8911 2020-03-13 Tom Tromey <tom@tromey.com>
8912
8913 * valprint.h (value_print_scalar_formatted): Declare.
8914 * valprint.c (value_print_scalar_formatted): New function.
8915
8916 2020-03-13 Tom Tromey <tom@tromey.com>
8917
8918 * valprint.h (generic_value_print): Declare.
8919 * valprint.c (generic_value_print): New function.
8920
8921 2020-03-13 Tom Tromey <tom@tromey.com>
8922
8923 * valprint.c (do_val_print): Call la_value_print_inner, if
8924 available.
8925 * rust-lang.c (rust_language_defn): Update.
8926 * p-lang.c (pascal_language_defn): Update.
8927 * opencl-lang.c (opencl_language_defn): Update.
8928 * objc-lang.c (objc_language_defn): Update.
8929 * m2-lang.c (m2_language_defn): Update.
8930 * language.h (struct language_defn) <la_value_print_inner>: New
8931 member.
8932 * language.c (unknown_language_defn, auto_language_defn): Update.
8933 * go-lang.c (go_language_defn): Update.
8934 * f-lang.c (f_language_defn): Update.
8935 * d-lang.c (d_language_defn): Update.
8936 * c-lang.c (c_language_defn, cplus_language_defn)
8937 (asm_language_defn, minimal_language_defn): Update.
8938 * ada-lang.c (ada_language_defn): Update.
8939
8940 2020-03-13 Tom Tromey <tom@tromey.com>
8941
8942 * c-valprint.c (c_value_print): Use common_val_print.
8943
8944 2020-03-13 Tom Tromey <tom@tromey.com>
8945
8946 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8947
8948 2020-03-13 Tom Tromey <tom@tromey.com>
8949
8950 * f-valprint.c (f77_print_array_1, f_val_print): Use
8951 common_val_print.
8952
8953 2020-03-13 Tom Tromey <tom@tromey.com>
8954
8955 * riscv-tdep.c (riscv_print_one_register_info): Use
8956 common_val_print.
8957
8958 2020-03-13 Tom Tromey <tom@tromey.com>
8959
8960 * mi/mi-main.c (output_register): Use common_val_print.
8961
8962 2020-03-13 Tom Tromey <tom@tromey.com>
8963
8964 * infcmd.c (default_print_one_register_info): Use
8965 common_val_print.
8966
8967 2020-03-13 Tom Tromey <tom@tromey.com>
8968
8969 * valprint.h (common_val_print_checked): Declare.
8970 * valprint.c (common_val_print_checked): New function.
8971 * stack.c (print_frame_arg): Use common_val_print_checked.
8972
8973 2020-03-13 Tom Tromey <tom@tromey.com>
8974
8975 * valprint.c (do_val_print): New function, from val_print.
8976 (val_print): Use do_val_print.
8977 (common_val_print): Use do_val_print.
8978
8979 2020-03-13 Tom Tromey <tom@tromey.com>
8980
8981 * valprint.c (value_print): Use scoped_value_mark.
8982
8983 2020-03-13 Tom de Vries <tdevries@suse.de>
8984
8985 PR symtab/25646
8986 * psymtab.c (partial_symtab::partial_symtab): Don't set
8987 globals_offset and statics_offset. Push element onto
8988 current_global_psymbols and current_static_psymbols stacks.
8989 (concat): New function.
8990 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8991 element from current_global_psymbols and current_static_psymbols
8992 stacks. Concat popped elements to global_psymbols and
8993 static_symbols.
8994 (add_psymbol_to_list): Use current_global_psymbols and
8995 current_static_psymbols stacks.
8996 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8997 current_static_psymbols fields.
8998
8999 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9000
9001 * corelow.c (sniff_core_bfd): Remove.
9002 (class core_target) <m_core_vec>: Remove.
9003 (core_target::core_target): Update.
9004 (core_file_fns): Remove.
9005 (deprecated_add_core_fns): Remove.
9006 (default_core_sniffer): Remove.
9007 (sniff_core_bfd): Remove.
9008 (default_check_format): Remove.
9009 (gdb_check_format): Remove.
9010 (core_target_open): Update.
9011 (core_target::get_core_register_section): Update.
9012 (get_core_registers_cb): Update.
9013 (core_target::fetch_registers): Update.
9014 * gdbcore.h (struct core_fns): Remove.
9015 (deprecated_add_core_fns): Remove.
9016 (default_core_sniffer): Remove.
9017 (default_check_format): Remove.
9018
9019 2020-03-12 Tom Tromey <tom@tromey.com>
9020
9021 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9022 CORE_ADDR.
9023 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9024
9025 2020-03-12 Tom Tromey <tom@tromey.com>
9026
9027 * remote.c (remote_target::download_tracepoint)
9028 (remote_target::enable_tracepoint)
9029 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9030 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9031 sprintf_vma.
9032
9033 2020-03-12 Tom Tromey <tom@tromey.com>
9034
9035 * symfile-mem.c: Update CORE_ADDR size assert.
9036
9037 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9038
9039 * selftest.m4: Move to gdbsupport/.
9040 * acinclude.m4: Update path to selftest.m4.
9041
9042 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9043
9044 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9045 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9046 gdbarch-selfselftests.c and selftest-arch.c.
9047 (SUBDIR_UNITTESTS_OBS): Rename to...
9048 (SELFTESTS_OBS): ... this.
9049 (COMMON_SFILES): Remove disasm-selftests.c and
9050 gdbarch-selftests.c.
9051 * configure.ac: Don't add selftest-arch.{c,o} to
9052 CONFIG_{SRCS,OBS}.
9053 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9054 preprocessor conditions.
9055
9056 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9057
9058 * configure.ac: Don't source bfd/development.sh.
9059 * selftest.m4: Modify comment.
9060 * configure: Re-generate.
9061
9062 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9063
9064 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9065 not "true" or "false".
9066 * configure: Re-generate.
9067
9068 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9069
9070 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9071 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9072 renamed to arm_nbsd_supply_gregset.
9073 (fetch_register): Update to call arm_nbsd_supply_gregset.
9074 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9075 (arm_netbsd_nat_target::fetch_registers): Update.
9076 (fetch_elfcore_registers): Removed.
9077 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9078 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9079 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9080 not require NetBSD system headers.
9081 (arm_nbsd_regset): New struct.
9082 (arm_nbsd_iterate_over_regset_sections): New function.
9083 (arm_netbsd_init_abi_common): Updated to call
9084 set_gdbarch_iterate_over_regset_sections.
9085 * arm-nbsd-tdep.h: New file.
9086
9087 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9088
9089 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9090 recursion.
9091
9092 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9093
9094 * configure: Re-generate.
9095
9096 2020-03-11 Tom Tromey <tromey@adacore.com>
9097
9098 * ada-typeprint.c (print_choices): Fix comment.
9099
9100 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9101
9102 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9103 previous item in the list, when the list has no items.
9104
9105 2020-03-11 Tom de Vries <tdevries@suse.de>
9106
9107 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9108 PROP_LOCLIST handling code.
9109
9110 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9111
9112 * buildsym-legacy.c (record_line): Pass extra parameter to
9113 record_line.
9114 * buildsym.c (buildsym_compunit::record_line): Take an extra
9115 parameter, reduce duplication in the line table, and record the
9116 is_stmt flag in the line table.
9117 * buildsym.h (buildsym_compunit::record_line): Add extra
9118 parameter.
9119 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9120 non-statement lines.
9121 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9122 this to the symtab builder.
9123 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9124 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9125 through to dwarf_record_line_1.
9126 * infrun.c (process_event_stop_test): When stepping, don't stop at
9127 a non-statement instruction, and only refresh the step info when
9128 we land in the middle of a line's range. Also add an extra
9129 comment.
9130 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9131 field.
9132 * record-btrace.c (btrace_find_line_range): Only record lines
9133 marked as is-statement.
9134 * stack.c (frame_show_address): Show the frame address if we are
9135 in a non-statement sal.
9136 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9137 (maintenance_print_one_line_table): Print a header for the is_stmt
9138 column, and include is_stmt information in the output.
9139 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9140 preference to non-statements.
9141 (find_pcs_for_symtab_line): Prefer is-statement entries.
9142 (find_line_common): Likewise.
9143 * symtab.h (struct linetable_entry): Add is_stmt field.
9144 (struct symtab_and_line): Likewise.
9145 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9146 arranging the line table.
9147
9148 2020-03-07 Tom de Vries <tdevries@suse.de>
9149
9150 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9151 DIE.
9152
9153 2020-03-07 Tom Tromey <tom@tromey.com>
9154
9155 * valops.c (value_literal_complex): Remove obsolete comment.
9156 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9157 comment.
9158
9159 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9160
9161 * infrun.h: Forward-declare thread_info.
9162 (set_step_info): Add thread_info parameter, add doc.
9163 * infrun.c (set_step_info): Add thread_info parameter, move doc
9164 to header.
9165 * infrun.c (process_event_stop_test): Pass thread to
9166 set_step_info call.
9167 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9168 set_step_info.
9169 (prepare_one_step): Add thread_info parameter, pass it to
9170 set_step_frame and prepare_one_step (recursive) call.
9171 (step_1): Pass thread to prepare_one_step call.
9172 (step_command_fsm::should_stop): Pass thread to
9173 prepare_one_step.
9174 (until_next_fsm): Pass thread to set_step_frame call.
9175 (finish_command): Pass thread to set_step_info call.
9176
9177 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9178
9179 * windows-tdep.c (windows_solib_create_inferior_hook):
9180 Check if inferior is running.
9181
9182 2020-03-06 Tom de Vries <tdevries@suse.de>
9183
9184 * NEWS: Fix "the the".
9185 * ctfread.c: Same.
9186
9187 2020-03-06 Tom de Vries <tdevries@suse.de>
9188
9189 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9190
9191 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9192
9193 * .dir-locals.el: Add a comment referencing the other copies of
9194 this file.
9195
9196 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9197
9198 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9199 psargs.
9200
9201 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9202
9203 * .gitattributes: New file.
9204
9205 2020-03-04 Tom Tromey <tom@tromey.com>
9206
9207 * symmisc.c (print_symbol_bcache_statistics)
9208 (print_objfile_statistics): Update.
9209 * symfile.c (allocate_symtab): Use intern.
9210 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9211 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9212 macro_cache>: Remove.
9213 <string_cache>: New member.
9214 (struct objfile) <intern>: New methods.
9215 * elfread.c (elf_symtab_read): Use intern.
9216 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9217 (dwarf2_compute_name, dwarf2_physname)
9218 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9219 names.
9220 (guess_partial_die_structure_name): Update.
9221 (partial_die_info::fixup): Intern name.
9222 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9223 name.
9224 (dwarf2_name): Intern name. Update.
9225 * buildsym.c (buildsym_compunit::get_macro_table): Use
9226 string_cache.
9227
9228 2020-03-04 Tom Tromey <tom@tromey.com>
9229
9230 * jit.c (bfd_open_from_target_memory): Make "target" const.
9231 * corefile.c (gnutarget): Now const.
9232 * gdbcore.h (gnutarget): Now const.
9233
9234 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9235
9236 * NEWS: Mention support for WOW64 processes.
9237 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9238 (amd64_windows_segment_register_p): Remove static.
9239 (_initialize_amd64_windows_nat): Update.
9240 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9241 * i386-windows-nat.c (context_offset): Update.
9242 (i386_mappings): Rename and remove static.
9243 (i386_windows_segment_register_p): Remove static.
9244 (_initialize_i386_windows_nat): Update.
9245 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9246 (STATUS_WX86_SINGLE_STEP): New macro.
9247 (EnumProcessModulesEx): New macro.
9248 (Wow64SuspendThread): New macro.
9249 (Wow64GetThreadContext): New macro.
9250 (Wow64SetThreadContext): New macro.
9251 (Wow64GetThreadSelectorEntry): New macro.
9252 (windows_set_context_register_offsets): Add static.
9253 (windows_set_segment_register_p): Likewise.
9254 (windows_add_thread): Adapt for WOW64 processes.
9255 (windows_fetch_one_register): Likewise.
9256 (windows_nat_target::fetch_registers): Likewise.
9257 (windows_store_one_register): Likewise.
9258 (display_selector): Likewise.
9259 (display_selectors): Likewise.
9260 (handle_exception): Likewise.
9261 (windows_continue): Likewise.
9262 (windows_nat_target::resume): Likewise.
9263 (windows_add_all_dlls): Likewise.
9264 (do_initial_windows_stuff): Likewise.
9265 (windows_nat_target::attach): Likewise.
9266 (windows_get_exec_module_filename): Likewise.
9267 (windows_nat_target::create_inferior): Likewise.
9268 (windows_xfer_siginfo): Likewise.
9269 (_initialize_loadable): Initialize Wow64SuspendThread,
9270 Wow64GetThreadContext, Wow64SetThreadContext,
9271 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9272 * windows-nat.h (windows_set_context_register_offsets):
9273 Remove declaration.
9274 (windows_set_segment_register_p): Likewise.
9275 (i386_windows_segment_register_p): Add declaration.
9276 (amd64_windows_segment_register_p): Likewise.
9277
9278 2020-03-04 Luis Machado <luis.machado@linaro.org>
9279
9280 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9281 in "info registers" for AArch64/ARM.
9282
9283 The change caused "info registers" to not print GPR's.
9284
9285 gdb/ChangeLog:
9286
9287 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9288
9289 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9290 when reg->group is empty and reggroup is not.
9291
9292 2020-03-03 Tom Tromey <tromey@adacore.com>
9293
9294 * dwarf2/frame.c (struct dwarf2_frame_cache)
9295 <checked_tailcall_bottom, entry_cfa_sp_offset,
9296 entry_cfa_sp_offset_p>: Remove members.
9297 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9298 (dwarf2_frame_prev_register): Don't call
9299 dwarf2_tailcall_sniffer_first.
9300 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9301 * frame-unwind.c (add_unwinder): New fuction.
9302 (frame_unwind_init): Use it. Add tailcall unwinder.
9303
9304 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9305 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9306
9307 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9308 value should be printed as true.
9309
9310 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9311
9312 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9313 (windows_init_abi): Set and use windows_so_ops.
9314
9315 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9316
9317 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9318 when verifying if dealing with a convenience variable.
9319
9320 2020-03-03 Luis Machado <luis.machado@linaro.org>
9321
9322 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9323
9324 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9325
9326 * infrun.c (gdbarch_supports_displaced_stepping): New.
9327 (use_displaced_stepping): Break up conditions in smaller pieces.
9328 Use gdbarch_supports_displaced_stepping.
9329 (displaced_step_prepare_throw): Use
9330 gdbarch_supports_displaced_stepping.
9331
9332 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9333
9334 * NEWS: Mention new behaviour of the history filename.
9335 * top.c (write_history_p): Add comment.
9336 (show_write_history_p): Add header comment, give a different
9337 message when history writing is on, but the history filename is
9338 empty.
9339 (history_filename): Add comment.
9340 (history_filename_empty): New function.
9341 (show_history_filename): Add header comment, give a different
9342 message when the filename is empty.
9343 (init_history): Compare history_filename against nullptr, and only
9344 read history if the filename is not empty.
9345 (set_history_filename): Add header comment, and only make
9346 non-empty filenames absolute.
9347 (init_main): Make the filename argument to 'set history filename'
9348 optional.
9349
9350 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9351
9352 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9353 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9354 (fetch_fp_register): Update.
9355 (fetch_fp_regs): Update.
9356 (store_fp_register): Update.
9357 (store_fp_regs): Update.
9358 (arm_netbsd_nat_target::read_description): New function.
9359 (fetch_elfcore_registers): Update.
9360
9361 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9362
9363 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9364 general_thread if the stop reply is missing a thread-id.
9365 (remote_target::process_stop_reply): Use the first non-exited
9366 thread if the target didn't pass a thread-id.
9367 * infrun.c (do_target_wait): Move call to
9368 switch_to_inferior_no_thread to ....
9369 (do_target_wait_1): ... here.
9370
9371 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9372
9373 * debuginfod-support.c: Include defs.h first.
9374
9375 2020-02-28 Tom de Vries <tdevries@suse.de>
9376
9377 * symfile.c (set_initial_language): Use default language for lookup.
9378
9379 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9380
9381 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9382 reader variable, pass `this` to read_cutu_die_from_dwo.
9383
9384 2020-02-27 Aaron Merey <amerey@redhat.com>
9385
9386 * source.c (open_source_file): Check for nullptr when computing
9387 srcpath.
9388
9389 2020-02-27 Tom Tromey <tromey@adacore.com>
9390
9391 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9392 member.
9393 (dwarf2_add_field): Don't update nfields.
9394 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9395
9396 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9397
9398 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9399 abs.
9400
9401 2020-02-26 Tom Tromey <tom@tromey.com>
9402
9403 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9404 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9405 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9406 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9407 per_cu_data.
9408
9409 2020-02-26 Tom Tromey <tom@tromey.com>
9410
9411 * dwarf2/index-write.c (psym_index_map): Change type.
9412 (add_address_entry_worker, write_one_signatured_type)
9413 (recursively_count_psymbols, recursively_write_psymbols)
9414 (class debug_names, psyms_seen_size, write_gdbindex)
9415 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9416
9417 2020-02-26 Aaron Merey <amerey@redhat.com>
9418
9419 * Makefile.in: Handle optional debuginfod support.
9420 * NEWS: Update.
9421 * README: Add --with-debuginfod summary.
9422 * config.in: Regenerate.
9423 * configure: Regenerate.
9424 * configure.ac: Handle optional debuginfod support.
9425 * debuginfod-support.c: debuginfod helper functions.
9426 * debuginfod-support.h: Ditto.
9427 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9428 summary.
9429 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9430 when a dwz file cannot be found.
9431 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9432 debuginfo file cannot be found.
9433 * source.c (open_source_file): Query debuginfod servers when a
9434 source file cannot be found.
9435 * top.c (print_gdb_configuration): Include
9436 --{with,without}-debuginfod in the output.
9437
9438 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9439
9440 * thread.c (thr_try_catch_cmd): Print thread name.
9441
9442 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9443
9444 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9445 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9446 dwarf2_fetch_die_type_sect_off): Move to...
9447 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9448 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9449 dwarf2_fetch_die_type_sect_off): ... here.
9450 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9451 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9452 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9453
9454 2020-02-26 Tom de Vries <tdevries@suse.de>
9455
9456 PR gdb/25603
9457 * symfile.c (set_initial_language): Exit-early if
9458 language_mode == language_mode_manual.
9459
9460 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9461
9462 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9463 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9464 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9465
9466 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9467
9468 * gdbtypes.c (create_array_type_with_stride): Handle negative
9469 array strides.
9470 * valarith.c (value_subscripted_rvalue): Likewise.
9471
9472 2020-02-25 Luis Machado <luis.machado@linaro.org>
9473
9474 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9475
9476 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9477
9478 * loc.h (dwarf2_get_die_type): Move to...
9479 * read.h (dwarf2_get_die_type): ... here.
9480 * read.c (dwarf2_get_die_type): Move doc to header.
9481
9482 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9483
9484 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9485 'gnulib/Makefile.in' to the list.
9486
9487 2020-02-24 Tom Tromey <tom@tromey.com>
9488
9489 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9490 Remove.
9491 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9492 XOBNEWVEC.
9493
9494 2020-02-24 Tom Tromey <tom@tromey.com>
9495
9496 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9497 New method.
9498 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9499 (dw2_do_instantiate_symtab, dw2_get_file_names)
9500 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9501
9502 2020-02-24 Tom Tromey <tom@tromey.com>
9503
9504 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9505 make_scoped_restore.
9506 (dwarf2_psymtab::read_symtab): Don't clear
9507 reading_partial_symbols.
9508
9509 2020-02-24 Tom de Vries <tdevries@suse.de>
9510
9511 PR gdb/25592
9512 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9513
9514 2020-02-24 Tom de Vries <tdevries@suse.de>
9515
9516 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9517 commands layout next/prev/regs.
9518
9519 2020-02-22 Tom Tromey <tom@tromey.com>
9520
9521 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9522 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9523
9524 2020-02-22 Tom Tromey <tom@tromey.com>
9525
9526 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9527
9528 2020-02-22 Tom Tromey <tom@tromey.com>
9529
9530 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9531 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9532 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9533 * tui/tui.c (_initialize_tui): Add usage text.
9534
9535 2020-02-22 Tom Tromey <tom@tromey.com>
9536
9537 * tui/tui-win.c (tui_set_focus_command)
9538 (tui_set_win_height_command): Use error_no_arg.
9539 (_initialize_tui_win): Update help text.
9540 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9541
9542 2020-02-22 Tom Tromey <tom@tromey.com>
9543
9544 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9545 * tui/tui-disasm.h (struct tui_disasm_window)
9546 <display_start_addr>: Declare.
9547 * tui/tui-source.h (struct tui_source_window)
9548 <display_start_addr>: Declare.
9549 * tui/tui-winsource.h (struct tui_source_window_base)
9550 <show_source_line, display_start_addr>: New methods.
9551 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9552 Rename and move to protected section.
9553 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9554 (tui_source_window_base::do_erase_source_content): Update.
9555 (tui_source_window_base::show_source_line): Now a method.
9556 (tui_source_window_base::show_source_content)
9557 (tui_source_window_base::tui_source_window_base)
9558 (tui_source_window_base::rerender)
9559 (tui_source_window_base::refill)
9560 (tui_source_window_base::do_scroll_horizontal)
9561 (tui_source_window_base::set_is_exec_point_at)
9562 (tui_source_window_base::update_breakpoint_info)
9563 (tui_source_window_base::update_exec_info): Update.
9564 * tui/tui-source.c (tui_source_window::set_contents)
9565 (tui_source_window::showing_source_p)
9566 (tui_source_window::do_scroll_vertical)
9567 (tui_source_window::location_matches_p)
9568 (tui_source_window::line_is_displayed): Update.
9569 (tui_source_window::display_start_addr): New method.
9570 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9571 (tui_disasm_window::do_scroll_vertical)
9572 (tui_disasm_window::location_matches_p): Update.
9573 (tui_disasm_window::display_start_addr): New method.
9574
9575 2020-02-22 Tom Tromey <tom@tromey.com>
9576
9577 * NEWS: Add entry for gdb.register_window_type.
9578 * tui/tui-layout.h (window_factory): New typedef.
9579 (tui_register_window): Declare.
9580 * tui/tui-layout.c (saved_tui_windows): New global.
9581 (tui_apply_current_layout): Use it.
9582 (tui_register_window): New function.
9583 * python/python.c (do_start_initialization): Call
9584 gdbpy_initialize_tui.
9585 (python_GdbMethods): Add "register_window_type" function.
9586 * python/python-internal.h (gdbpy_register_tui_window)
9587 (gdbpy_initialize_tui): Declare.
9588 * python/py-tui.c: New file.
9589 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9590
9591 2020-02-22 Tom Tromey <tom@tromey.com>
9592
9593 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9594
9595 2020-02-22 Tom Tromey <tom@tromey.com>
9596
9597 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9598 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9599 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9600 (tui_set_win_focus_to): Move from tui-win.c.
9601
9602 2020-02-22 Tom Tromey <tom@tromey.com>
9603
9604 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9605 functions.
9606 (known_window_types): New global.
9607 (tui_get_window_by_name): Reimplement.
9608 (initialize_known_windows): New function.
9609 (validate_window_name): Rewrite.
9610 (_initialize_tui_layout): Call initialize_known_windows.
9611
9612 2020-02-22 Tom Tromey <tom@tromey.com>
9613
9614 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9615 Remove constants.
9616 * tui/tui-winsource.h (struct tui_source_window_base)
9617 <tui_source_window_base>: Remove parameter.
9618 * tui/tui-winsource.c
9619 (tui_source_window_base::tui_source_window_base): Remove
9620 parameter.
9621 (tui_source_window_base::refill): Update.
9622 * tui/tui-stack.h (struct tui_locator_window)
9623 <tui_locator_window>: Update.
9624 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9625 Default the constructor.
9626 * tui/tui-regs.h (struct tui_data_item_window)
9627 <tui_data_item_window>: Default the constructor.
9628 (struct tui_data_window) <tui_data_window>: Likewise.
9629 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9630 Default the constructor.
9631 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9632 Default the constructor.
9633 <type>: Remove.
9634 (struct tui_win_info) <tui_win_info>: Default the constructor.
9635 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9636 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9637 Default the constructor.
9638
9639 2020-02-22 Tom Tromey <tom@tromey.com>
9640
9641 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9642 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9643 * tui/tui-win.c (tui_resize_all): Don't call
9644 tui_delete_invisible_windows.
9645 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9646 done.
9647 (tui_set_layout): Update.
9648 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9649 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9650 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9651
9652 2020-02-22 Tom Tromey <tom@tromey.com>
9653
9654 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9655 correctly.
9656
9657 2020-02-22 Tom Tromey <tom@tromey.com>
9658
9659 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9660
9661 2020-02-22 Tom Tromey <tom@tromey.com>
9662
9663 * tui/tui-winsource.h (struct tui_source_window_iterator)
9664 <inner_iterator>: New etytypedef.
9665 <tui_source_window_iterator>: Take "end" parameter.
9666 <tui_source_window_iterator>: Take iterator.
9667 <operator*, advance>: Update.
9668 <m_iter>: Change type.
9669 <m_end>: New field.
9670 (struct tui_source_windows) <begin, end>: Update.
9671 * tui/tui-layout.c (tui_windows): New global.
9672 (tui_apply_current_layout): Clear tui_windows.
9673 (tui_layout_window::apply): Update tui_windows.
9674 * tui/tui-data.h (tui_windows): Declare.
9675 (all_tui_windows): Now inline function.
9676 (class tui_window_iterator, struct all_tui_windows): Remove.
9677
9678 2020-02-22 Tom Tromey <tom@tromey.com>
9679
9680 PR tui/17850:
9681 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9682 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9683 "height" argument.
9684 (class tui_layout_window) <get_sizes>: Likewise.
9685 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9686 argument.
9687 <get_sizes>: Add "height" argument.
9688 <m_vertical>: New field.
9689 * tui/tui-layout.c (tui_layout_split::clone): Update.
9690 (tui_layout_split::get_sizes): Add "height" argument.
9691 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9692 (tui_new_layout_command): Parse "-horizontal".
9693 (_initialize_tui_layout): Update help string.
9694 (tui_layout_split::specification): Add "-horizontal" when needed.
9695 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9696 argument.
9697 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9698 New methods.
9699
9700 2020-02-22 Tom Tromey <tom@tromey.com>
9701
9702 * tui/tui-layout.h (enum tui_adjust_result): New.
9703 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9704 (class tui_layout_window) <adjust_size>: Return
9705 tui_adjust_result. Rewrite.
9706 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9707 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9708
9709 2020-02-22 Tom Tromey <tom@tromey.com>
9710
9711 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9712 parameter and return types.
9713 (class tui_layout_base) <specification>: Add "depth".
9714 (class tui_layout_window) <specification>: Add "depth".
9715 (class tui_layout_split) <specification>: Add "depth".
9716 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9717 and return types.
9718 (tui_new_layout_command): Parse sub-layouts.
9719 (_initialize_tui_layout): Update help string.
9720 (tui_layout_window::specification): Add "depth".
9721 (add_layout_command): Update.
9722
9723 2020-02-22 Tom Tromey <tom@tromey.com>
9724
9725 * NEWS: Add "tui new-layout" item.
9726 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9727 Add new-layout command to help text.
9728 (validate_window_name): New function.
9729 (tui_new_layout_command): New function.
9730 (_initialize_tui_layout): Register "new-layout".
9731 (tui_layout_window::specification): New method.
9732 (tui_layout_window::specification): New method.
9733 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9734 method.
9735 (class tui_layout_window) <specification>: New method.
9736 (class tui_layout_split) <specification>: New method.
9737
9738 2020-02-22 Tom Tromey <tom@tromey.com>
9739
9740 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9741 * tui/tui-win.c (window_name_completer): Update comment.
9742 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9743 Declare method.
9744 (class tui_layout_window) <replace_window>: Likewise.
9745 (class tui_layout_split) <replace_window>: Likewise.
9746 (tui_set_layout): Don't declare.
9747 (tui_set_initial_layout): Declare function.
9748 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9749 (asm_regs_layout): New globals.
9750 (tui_current_layout, show_layout): Remove.
9751 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9752 (find_layout, tui_apply_layout): New function.
9753 (layout_completer): Remove.
9754 (tui_next_layout): Reimplement.
9755 (tui_next_layout_command): New function.
9756 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9757 (tui_regs_layout): Reimplement.
9758 (tui_regs_layout_command): New function.
9759 (extract_display_start_addr): Rewrite.
9760 (next_layout, prev_layout): Remove.
9761 (tui_layout_window::replace_window): New method.
9762 (tui_layout_split::replace_window): New method.
9763 (destroy_layout): New function.
9764 (layout_list): New global.
9765 (add_layout_command): New function.
9766 (initialize_layouts): Update.
9767 (tui_layout_command): New function.
9768 (_initialize_tui_layout): Install "layout" commands.
9769 * tui/tui-data.h (enum tui_layout_type): Remove.
9770 (tui_current_layout): Don't declare.
9771
9772 2020-02-22 Tom Tromey <tom@tromey.com>
9773
9774 * tui/tui-regs.c (tui_reg_layout): Remove.
9775 (tui_reg_command): Use tui_regs_layout.
9776 * tui/tui-layout.h (tui_reg_command): Declare.
9777 * tui/tui-layout.c (tui_reg_command): New function.
9778
9779 2020-02-22 Tom Tromey <tom@tromey.com>
9780
9781 * tui/tui.c (tui_rl_delete_other_windows): Call
9782 tui_remove_some_windows.
9783 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9784 Declare method.
9785 (class tui_layout_window) <remove_windows>: New method.
9786 (class tui_layout_split) <remove_windows>: Declare.
9787 (tui_remove_some_windows): Declare.
9788 * tui/tui-layout.c (tui_remove_some_windows): New function.
9789 (tui_layout_split::remove_windows): New method.
9790
9791 2020-02-22 Tom Tromey <tom@tromey.com>
9792
9793 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9794 * tui/tui-layout.h (tui_next_layout): Declare.
9795 * tui/tui-layout.c (tui_next_layout): New function.
9796
9797 2020-02-22 Tom Tromey <tom@tromey.com>
9798
9799 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9800 correct coordinates.
9801
9802 2020-02-22 Tom Tromey <tom@tromey.com>
9803
9804 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9805 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9806 DATA_WIN case.
9807
9808 2020-02-22 Tom Tromey <tom@tromey.com>
9809
9810 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9811 TUI_DISASM_WIN, not tui_win_list.
9812
9813 2020-02-22 Tom Tromey <tom@tromey.com>
9814
9815 * valprint.c (generic_val_print_enum_1)
9816 (val_print_type_code_flags): Style member names.
9817 * rust-lang.c (val_print_struct, rust_print_enum)
9818 (rust_print_struct_def, rust_internal_print_type): Style member
9819 names.
9820 * p-valprint.c (pascal_object_print_value_fields): Style member
9821 names. Only call fprintf_symbol_filtered for static members.
9822 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9823 * f-valprint.c (f_val_print): Style member names.
9824 * f-typeprint.c (f_type_print_base): Style member names.
9825 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9826 call fprintf_symbol_filtered for static members.
9827 (cp_print_class_member): Style member names.
9828 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9829 member names.
9830 * ada-valprint.c (ada_print_scalar): Style enum names.
9831 (ada_val_print_enum): Likewise.
9832 * ada-typeprint.c (print_enum_type): Style enum names.
9833
9834 2020-02-21 Tom Tromey <tom@tromey.com>
9835
9836 * psympriv.h (struct partial_symtab): Update comment.
9837
9838 2020-02-21 Tom Tromey <tromey@adacore.com>
9839
9840 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9841 type is CORE_ADDR.
9842
9843 2020-02-21 Tom de Vries <tdevries@suse.de>
9844
9845 PR gdb/25534
9846 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9847 if dependencies[i]->user != NULL.
9848
9849 2020-02-21 Ali Tamur <tamur@google.com>
9850
9851 * dwarf2/read.c (dwarf2_name): Add null check.
9852
9853 2020-02-20 Tom Tromey <tom@tromey.com>
9854
9855 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9856 ">=", in binary search.
9857 (dwarf2_find_containing_comp_unit): New overload.
9858 (run_test): New self-test.
9859 (_initialize_dwarf2_read): Register new test.
9860
9861 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9862
9863 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9864 * riscv-tdep.h: Likewise.
9865 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9866 rv32-only CSR.
9867 * features/riscv/64bit-csr.xml: Regenerated.
9868
9869 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9870 Tom Tromey <tom@tromey.com>
9871
9872 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9873 of 'fputc_unfiltered'.
9874 (putchar_unfiltered): Call 'fputc_unfiltered'.
9875 (fputc_unfiltered): Call 'fputs_unfiltered'.
9876
9877 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9878
9879 * config.in: Regenerate.
9880 * configure: Regenerate.
9881 * configure.ac: Add --with-python-libdir option.
9882 * main.c: Use WITH_PYTHON_LIBDIR.
9883
9884 2020-02-19 Tom Tromey <tom@tromey.com>
9885
9886 * symtab.c (general_symbol_info::compute_and_set_names): Use
9887 obstack_strndup. Simplify call to symbol_set_demangled_name.
9888
9889 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9890
9891 * dwarf2/read.c (allocate_signatured_type_table,
9892 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9893 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9894 Remove objfile parameter, update all callers.
9895
9896 2020-02-19 Doug Evans <dje@google.com>
9897
9898 PR rust/25535
9899 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9900 rust_enum_variant calculation.
9901
9902 2020-02-19 Tom Tromey <tromey@adacore.com>
9903
9904 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9905
9906 2020-02-19 Tom Tromey <tromey@adacore.com>
9907
9908 * ada-lang.c (cache_symbol): Use obstack_strdup.
9909
9910 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9911
9912 * configure: Regenerate.
9913
9914 2020-02-19 Tom Tromey <tromey@adacore.com>
9915
9916 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9917 NULL check.
9918
9919 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9920
9921 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9922
9923 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9924
9925 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9926 if GDBSERVER is not defined.
9927 (riscv_tdesc_cache): Likewise, also store const target_desc.
9928 (STATIC_IN_GDB): Define.
9929 (riscv_create_target_description): Update declaration with
9930 STATIC_IN_GDB.
9931 (riscv_lookup_target_description): New function, only define if
9932 GDBSERVER is not defined.
9933 * arch/riscv.h (riscv_create_target_description): Declare only
9934 when GDBSERVER is defined.
9935 (riscv_lookup_target_description): New declaration when GDBSERVER
9936 is not defined.
9937 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9938 (riscv_linux_read_features): ...this, and return
9939 riscv_gdbarch_features instead of target_desc.
9940 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9941 (riscv_linux_read_description): Rename to...
9942 (riscv_linux_read_features): ...this.
9943 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9944 Update to use riscv_gdbarch_features and
9945 riscv_lookup_target_description.
9946 * riscv-tdep.c (riscv_find_default_target_description): Use
9947 riscv_lookup_target_description instead of
9948 riscv_create_target_description.
9949
9950 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9951
9952 * valprint.c (generic_val_print_enum_1): When printing a flag
9953 enum with value 0 and there is no enumerator with value 0, print
9954 just "0" instead of "(unknown: 0x0)".
9955
9956 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9957
9958 * valprint.c (generic_val_print_enum_1): Print unknown part of
9959 flag enum in hex.
9960
9961 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9962
9963 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9964 flag enums to contain duplicate enumerators.
9965 * valprint.c (generic_val_print_enum_1): Update comment.
9966
9967 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9968
9969 * dwarf2/read.c: Include "count-one-bits.h".
9970 (update_enumeration_type_from_children): If an enumerator has
9971 multiple bits set, don't treat the enumeration as a "flag enum".
9972 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9973 of flag enums have 0 or 1 bit set.
9974
9975 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9976
9977 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9978 conversion.
9979 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9980 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9981 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9982 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9983 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9984
9985 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9986
9987 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9988
9989 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9990
9991 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9992 displaced_step_closure_up.
9993 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9994 (struct displaced_step_closure_up):
9995 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9996 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9997 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9998 Likewise.
9999 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10000 * gdbarch.c, gdbarch.h: Re-generate.
10001 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10002 displaced_step_closure_up.
10003 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10004 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10005 * infrun.h (displaced_step_closure_up): New type alias.
10006 (struct displaced_step_inferior_state) <step_closure>: Change
10007 type to displaced_step_closure_up.
10008 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10009 displaced_step_closure_up.
10010 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10011
10012 2020-02-14 Tom Tromey <tom@tromey.com>
10013
10014 * minidebug.c (gnu_debug_key): New global.
10015 (find_separate_debug_file_in_section): Use it.
10016
10017 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10018
10019 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10020 std::unique_ptr.
10021 * gdbarch.c: Re-generate.
10022 * gdbarch.h: Re-generate.
10023 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10024 change.
10025 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10026 type to std::unique_ptr.
10027 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10028 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10029 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10030 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10031 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10032 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10033 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10034 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10035 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10036
10037 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10038
10039 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10040 std::unique_ptr.
10041 (displaced_step_clear): Rename to...
10042 (displaced_step_reset): ... this. Just call displaced->reset ().
10043 (displaced_step_clear_cleanup): Rename to...
10044 (displaced_step_reset_cleanup): ... this.
10045 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10046 (displaced_step_fixup): Likewise.
10047 (resume_1): Likewise.
10048 (handle_inferior_event): Restore child's memory before calling
10049 displaced_step_fixup on the parent.
10050 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10051 to std::unique_ptr.
10052 <step_closure>: Change type to std::unique_ptr.
10053
10054 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10055
10056 * arm-tdep.c: Include count-one-bits.h.
10057 (cleanup_block_store_pc): Use count_one_bits.
10058 (cleanup_block_load_pc): Use count_one_bits.
10059 (arm_copy_block_xfer): Use count_one_bits.
10060 (thumb2_copy_block_xfer): Use count_one_bits.
10061 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10062 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10063 (thumb_get_next_pcs_raw): Use count_one_bits.
10064 (arm_get_next_pcs_raw): Use count_one_bits_l.
10065 * arch/arm.c (bitcount): Remove.
10066 * arch/arm.h (bitcount): Remove.
10067
10068 2020-02-14 Tom Tromey <tromey@adacore.com>
10069
10070 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10071 Update.
10072 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10073 * dwarf2/loc.c (call_site_find_chain_1): Return
10074 unique_xmalloc_ptr.
10075 (call_site_find_chain): Likewise.
10076
10077 2020-02-14 Richard Biener <rguenther@suse.de>
10078
10079 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10080 on expression with division operators.
10081
10082 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10083
10084 * MAINTAINERS (Write After Approval): Adding myself.
10085
10086 2020-02-12 Tom Tromey <tom@tromey.com>
10087
10088 * event-loop.c (event_data, gdb_event, event_handler_func):
10089 Remove.
10090
10091 2020-02-12 Tom Tromey <tom@tromey.com>
10092
10093 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10094 (dwarf2_frame_objfile_data): Add comment.
10095 (find_comp_unit, set_comp_unit): New functions.
10096 (dwarf2_frame_find_fde): Use find_comp_unit.
10097 (dwarf2_build_frame_info): Use set_comp_unit.
10098
10099 2020-02-12 Tom Tromey <tom@tromey.com>
10100
10101 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10102 (comp_unit): Don't initialize objfile.
10103 (execute_cfa_program): Add text_offset parameter.
10104 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10105 (dwarf2_frame_cache): Update.
10106 (dwarf2_build_frame_info): Don't set "objfile" member.
10107
10108 2020-02-12 Tom Tromey <tom@tromey.com>
10109
10110 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10111 (decode_frame_entry): Likewise.
10112 (dwarf2_build_frame_info): Update.
10113
10114 2020-02-12 Tom Tromey <tom@tromey.com>
10115
10116 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10117 (decode_frame_entry_1): Use the comp_unit obstack.
10118
10119 2020-02-12 Tom Tromey <tom@tromey.com>
10120
10121 * dwarf2/frame.c (struct comp_unit): Add initializers and
10122 constructor.
10123 (dwarf2_frame_objfile_data): Store a comp_unit.
10124 (dwarf2_frame_find_fde): Update.
10125 (dwarf2_build_frame_info): Use "new".
10126
10127 2020-02-12 Tom Tromey <tom@tromey.com>
10128
10129 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10130 (dwarf2_fde_table): Typedef for std::vector.
10131 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10132 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10133 (decode_frame_entry): Update.
10134 (dwarf2_build_frame_info): Use "new".
10135
10136 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10137
10138 * arm-tdep.c (arm_gdbarch_init): Update.
10139 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10140 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10141 have_neon, is_m>: Change to bool.
10142
10143 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10144
10145 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10146
10147 2020-02-12 Tom Tromey <tom@tromey.com>
10148
10149 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10150
10151 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10152
10153 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10154 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10155
10156 2020-02-11 Tom Tromey <tom@tromey.com>
10157
10158 * psymtab.h: Update comment.
10159
10160 2020-02-11 Tom Tromey <tom@tromey.com>
10161
10162 * gdb_obstack.h (struct auto_obstack): Use
10163 DISABLE_COPY_AND_ASSIGN.
10164
10165 2020-02-11 Tom Tromey <tom@tromey.com>
10166
10167 * dwarf2/frame.h (struct objfile): Don't forward declare.
10168
10169 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10170
10171 * cris-tdep.c (cris_supply_gregset): Change signature to match
10172 what struct regset expects.
10173 (cris_regset): New struct.
10174 (fetch_core_registers): Remove.
10175 (cris_iterate_over_regset_sections): New function.
10176 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10177 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10178
10179 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10180
10181 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10182 registers.
10183
10184 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10185
10186 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10187
10188 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10189
10190 * configure: Re-generate.
10191
10192 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10193
10194 * configure: Re-generate.
10195
10196 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10197
10198 * acinclude: Update warning.m4 path.
10199 * warning.m4: Move to gdbsupport.
10200
10201 2020-02-11 Tom Tromey <tromey@adacore.com>
10202
10203 * remote.c (remote_console_output): Update.
10204 * printcmd.c (printf_command): Update.
10205 * event-loop.c (gdb_wait_for_event): Update.
10206 * linux-nat.c (sigchld_handler): Update.
10207 * remote-sim.c (gdb_os_write_stdout): Update.
10208 (gdb_os_flush_stdout): Update.
10209 (gdb_os_flush_stderr): Update.
10210 (gdb_os_write_stderr): Update.
10211 * exceptions.c (print_exception): Update.
10212 * remote-fileio.c (remote_fileio_func_read): Update.
10213 (remote_fileio_func_write): Update.
10214 * tui/tui.c (tui_enable): Update.
10215 * tui/tui-interp.c (tui_interp::init): Update.
10216 * utils.c (init_page_info): Update.
10217 (putchar_unfiltered, fputc_unfiltered): Update.
10218 (gdb_flush): Update.
10219 (emit_style_escape): Update.
10220 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10221 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10222 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10223 (stderr_file::write): Update.
10224 (stderr_file::puts): Update.
10225 * ui-file.h (ui_file_isatty, ui_file_write)
10226 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10227 (ui_file_puts): Don't declare.
10228
10229 2020-02-10 Tom de Vries <tdevries@suse.de>
10230
10231 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10232 sentinel to char *.
10233
10234 2020-02-09 Tom de Vries <tdevries@suse.de>
10235
10236 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10237 filename if it matches "<artificial>".
10238
10239 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10240
10241 * windows-tdep.c (struct enum_value_name): New struct.
10242 (create_enum): New function.
10243 (windows_get_siginfo_type): Create and use enum types.
10244
10245 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10246
10247 * NEWS: Mention $_siginfo support for Windows.
10248 * windows-nat.c (handle_exception): Set siginfo_er.
10249 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10250 (windows_xfer_siginfo): New function.
10251 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10252 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10253 (init_windows_gdbarch_data): New function.
10254 (get_windows_gdbarch_data): New function.
10255 (windows_get_siginfo_type): New function.
10256 (windows_init_abi): Register windows_get_siginfo_type.
10257 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10258
10259 2020-02-08 Tom Tromey <tom@tromey.com>
10260
10261 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10262 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10263 <keep>: Declare method.
10264 <m_keep>: Remove member.
10265 <~cutu_reader>: Remove.
10266 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10267 (cutu_reader::cutu_reader): Update.
10268 (cutu_reader::keep): Rename from ~cutu_reader.
10269 (process_psymtab_comp_unit, build_type_psymtabs_1)
10270 (process_skeletonless_type_unit, load_partial_comp_unit)
10271 (load_full_comp_unit, dwarf2_read_addr_index)
10272 (read_signatured_type): Update.
10273
10274 2020-02-08 Tom Tromey <tom@tromey.com>
10275
10276 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10277 "want_partial_unit" parameter.
10278 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10279 Inline check for DW_TAG_partial_unit.
10280 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10281
10282 2020-02-08 Tom Tromey <tom@tromey.com>
10283
10284 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10285 read.c.
10286 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10287 read.c.
10288
10289 2020-02-08 Tom Tromey <tom@tromey.com>
10290
10291 * dwarf2/read.c (read_address): Move to comp-unit.c.
10292 (dwarf2_rnglists_process, dwarf2_ranges_process)
10293 (read_attribute_value, dwarf_decode_lines_1)
10294 (var_decode_location, decode_locdesc): Update.
10295 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10296 read.c. Remove "cu" parameter.
10297 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10298 method.
10299
10300 2020-02-08 Tom Tromey <tom@tromey.com>
10301
10302 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10303 (read_indirect_line_string): Update.
10304 * dwarf2/comp-unit.c (read_offset): Remove.
10305 (read_comp_unit_head): Update.
10306 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10307 method.
10308 (read_offset): Don't declare.
10309
10310 2020-02-08 Tom Tromey <tom@tromey.com>
10311
10312 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10313 * dwarf2/read.c (struct comp_unit_head): Move to
10314 dwarf2/comp-unit.h.
10315 (enum class rcuh_kind): Move to comp-unit.h.
10316 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10317 (read_comp_unit_head, error_check_comp_unit_head)
10318 (read_and_check_comp_unit_head): Move to comp-unit.c.
10319 (read_offset, dwarf_unit_type_name): Likewise.
10320 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10321 (cutu_reader::cutu_reader, read_call_site_scope)
10322 (find_partial_die, follow_die_offset): Update.
10323 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10324
10325 2020-02-08 Tom Tromey <tom@tromey.com>
10326
10327 * dwarf2/read.c (read_offset_1): Move to leb.c.
10328 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10329 (dwarf_decode_macro_bytes): Update.
10330 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10331 * dwarf2/leb.h (read_offset): Declare.
10332
10333 2020-02-08 Tom Tromey <tom@tromey.com>
10334
10335 * dwarf2/read.c (dwarf2_section_size): Remove.
10336 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10337 Update.
10338 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10339
10340 2020-02-08 Tom Tromey <tom@tromey.com>
10341
10342 * dwarf2/read.c (read_initial_length): Move to leb.c.
10343 * dwarf2/leb.h (read_initial_length): Declare.
10344 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10345 handle_nonstd parameter.
10346 * dwarf2/frame.c (read_initial_length): Remove.
10347 (decode_frame_entry_1): Update.
10348
10349 2020-02-08 Tom Tromey <tom@tromey.com>
10350
10351 * dwarf2/loc.c (dwarf2_find_location_expression)
10352 (dwarf_evaluate_loc_desc::get_tls_address)
10353 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10354 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10355 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10356 (dwarf2_compile_property_to_c)
10357 (dwarf2_loc_desc_get_symbol_read_needs)
10358 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10359 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10360 (loclist_describe_location, loclist_tracepoint_var_ref)
10361 (loclist_generate_c_location): Update.
10362 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10363 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10364 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10365 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10366 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10367 (dwarf2_per_cu_data::addr_size)
10368 (dwarf2_per_cu_data::ref_addr_size)
10369 (dwarf2_per_cu_data::text_offset)
10370 (dwarf2_per_cu_data::addr_type): Now methods.
10371 (per_cu_header_read_in): Make per_cu "const".
10372 (dwarf2_version): Remove.
10373 (dwarf2_per_cu_data::int_type): Now a method.
10374 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10375 (set_die_type, read_array_type, read_subrange_index_type)
10376 (read_tag_string_type, read_subrange_type): Update.
10377 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10378 offset_size, ref_addr_size, text_offset, addr_type, version,
10379 objfile, int_type, addr_sized_int_type>: Declare methods.
10380
10381 2020-02-08 Tom Tromey <tom@tromey.com>
10382
10383 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10384 Move earlier.
10385
10386 2020-02-08 Tom Tromey <tom@tromey.com>
10387
10388 * dwarf2/read.h (dwarf_line_debug): Declare.
10389 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10390 * dwarf2/read.c: Move line_header code to new files.
10391 (dwarf_line_debug): No longer static.
10392 * dwarf2/line-header.c: New file.
10393 * dwarf2/line-header.h: New file.
10394
10395 2020-02-08 Tom Tromey <tom@tromey.com>
10396
10397 * dwarf2/read.c (struct line_header) <file_full_name,
10398 file_file_name>: Return unique_xmalloc_ptr.
10399 (line_header::file_file_name): Update.
10400 (line_header::file_full_name): Update.
10401 (dw2_get_file_names_reader): Update.
10402 (macro_start_file): Update.
10403
10404 2020-02-08 Tom Tromey <tom@tromey.com>
10405
10406 * dwarf2/read.c (struct line_header) <file_full_name,
10407 file_file_name>: Declare methods.
10408 (dw2_get_file_names_reader): Update.
10409 (file_file_name): Now a method.
10410 (file_full_name): Likewise.
10411 (macro_start_file): Update.
10412
10413 2020-02-08 Tom Tromey <tom@tromey.com>
10414
10415 * dwarf2/read.c (dwarf_always_disassemble)
10416 (show_dwarf_always_disassemble): Move to loc.c.
10417 (_initialize_dwarf2_read): Move "always-disassemble" registration
10418 to loc.c.
10419 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10420 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10421 static.
10422 (show_dwarf_always_disassemble): Move from read.c.
10423 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10424
10425 2020-02-08 Tom Tromey <tom@tromey.com>
10426
10427 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10428 (create_quick_file_names_table): Return htab_up.
10429 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10430 Update.
10431 * dwarf2/read.h (struct dwarf2_per_objfile)
10432 <quick_file_names_table>: Now htab_up.
10433
10434 2020-02-08 Tom Tromey <tom@tromey.com>
10435
10436 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10437
10438 2020-02-08 Tom Tromey <tom@tromey.com>
10439
10440 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10441 Rewrite.
10442 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10443 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10444 (abbrev_table::abbrev_table): No longer inline.
10445 (ABBREV_HASH_SIZE): Remove.
10446 (abbrev_table::m_abbrevs): Now an htab_up.
10447
10448 2020-02-08 Tom Tromey <tom@tromey.com>
10449
10450 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10451 (cutu_reader): Update.
10452 (build_type_psymtabs_1): Update.
10453 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10454 (abbrev_table::alloc_abbrev): Update.
10455 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10456 (abbrev_table::read): New static method, renamed from
10457 abbrev_table_read_table.
10458 (abbrev_table::alloc_abbrev)
10459 (abbrev_table::add_abbrev): Now private.
10460 (abbrev_table::abbrev_table): Now private.
10461 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10462
10463 2020-02-08 Tom Tromey <tom@tromey.com>
10464
10465 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10466 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10467 htab_up.
10468
10469 2020-02-08 Tom Tromey <tom@tromey.com>
10470
10471 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10472 htab_up.
10473 (lookup_dwo_unit_in_dwp): Update.
10474 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10475 on obstack.
10476
10477 2020-02-08 Tom Tromey <tom@tromey.com>
10478
10479 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10480 obstack.
10481
10482 2020-02-08 Tom Tromey <tom@tromey.com>
10483
10484 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10485 line_header_hash.
10486 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10487 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10488 Change type to htab_up.
10489
10490 2020-02-08 Tom Tromey <tom@tromey.com>
10491
10492 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10493 htab_up. Don't allocate on obstack.
10494 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10495 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10496 Change type to htab_up.
10497
10498 2020-02-08 Tom Tromey <tom@tromey.com>
10499
10500 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10501 Change type to htab_up.
10502 * dwarf2/read.c (create_signatured_type_table_from_index)
10503 (create_signatured_type_table_from_debug_names)
10504 (create_all_type_units, add_type_unit)
10505 (lookup_dwo_signatured_type, lookup_signatured_type)
10506 (process_skeletonless_type_unit): Update.
10507 (create_debug_type_hash_table, create_debug_types_hash_table):
10508 Change type of types_htab.
10509 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10510 htab_up. Don't allocate on obstack.
10511 (create_cus_hash_table): Change type of cus_htab parameter.
10512 (struct dwo_file) <cus, tus>: Now htab_up.
10513 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10514 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10515 (queue_and_load_all_dwo_tus): Update.
10516 * dwarf2/index-write.c (write_gdbindex): Update.
10517 (write_debug_names): Update.
10518
10519 2020-02-08 Tom Tromey <tom@tromey.com>
10520
10521 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10522 dwarf2/read.c. Remove "next" member. Add constructor ntad
10523 destructor.
10524 (struct dwarf2_per_objfile) <queue>: New member.
10525 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10526 dwarf2/read.h.
10527 (dwarf2_queue, dwarf2_queue_tail): Remove.
10528 (class dwarf2_queue_guard): Add parameter to constructor. Use
10529 DISABLE_COPY_AND_ASSIGN.
10530 <m_per_objfile>: New member.
10531 <~dwarf2_queue_guard>: Rewrite.
10532 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10533 Update.
10534 (~dwarf2_queue_item): New.
10535
10536 2020-02-08 Tom Tromey <tom@tromey.com>
10537
10538 * dwarf2/read.c (struct die_info) <has_children>: New member.
10539 (dw2_get_file_names_reader): Remove has_children.
10540 (dw2_get_file_names): Update.
10541 (read_cutu_die_from_dwo): Remove has_children.
10542 (cutu_reader::init_tu_and_read_dwo_dies)
10543 (cutu_reader::cutu_reader): Update.
10544 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10545 Remove has_children.
10546 (build_type_psymtabs_1, process_skeletonless_type_unit)
10547 (load_partial_comp_unit, load_full_comp_unit): Update.
10548 (create_dwo_cu_reader): Remove has_children.
10549 (create_cus_hash_table, read_die_and_children): Update.
10550 (read_full_die_1,read_full_die): Remove has_children.
10551 (read_signatured_type): Update.
10552 (class cutu_reader) <has_children>: Remove.
10553
10554 2020-02-08 Tom Tromey <tom@tromey.com>
10555
10556 * dwarf2/expr.c: Rename from dwarf2expr.c.
10557 * dwarf2/expr.h: Rename from dwarf2expr.h.
10558 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10559 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10560 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10561 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10562 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10563 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10564 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10565 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10566 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10567 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10568 * dwarf2/loc.c: Rename from dwarf2loc.c.
10569 * dwarf2/loc.h: Rename from dwarf2loc.h.
10570 * dwarf2/read.c: Rename from dwarf2read.c.
10571 * dwarf2/read.h: Rename from dwarf2read.h.
10572 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10573 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10574 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10575 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10576 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10577 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10578 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10579 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10580 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10581 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10582 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10583 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10584 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10585 Update.
10586 * Makefile.in (COMMON_SFILES): Update.
10587 (HFILES_NO_SRCDIR): Update.
10588
10589 2020-02-08 Tom Tromey <tom@tromey.com>
10590
10591 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10592 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10593
10594 2020-02-08 Tom Tromey <tom@tromey.com>
10595
10596 * dwarf2read.h (struct die_info): Don't declare.
10597
10598 2020-02-08 Tom Tromey <tom@tromey.com>
10599
10600 * dwarf2read.h (die_info_ptr): Remove typedef.
10601
10602 2020-02-08 Tom Tromey <tom@tromey.com>
10603
10604 * dwarf2read.c (read_call_site_scope)
10605 (handle_data_member_location, dwarf2_add_member_fn)
10606 (mark_common_block_symbol_computed, read_common_block)
10607 (attr_to_dynamic_prop, partial_die_info::read)
10608 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10609 (dwarf2_symbol_mark_computed, set_die_type): Update.
10610 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10611 method.
10612 (attr_form_is_block): Don't declare.
10613 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10614
10615 2020-02-08 Tom Tromey <tom@tromey.com>
10616
10617 * dwarf2read.c (dwarf2_find_base_address, )
10618 (read_call_site_scope, rust_containing_type)
10619 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10620 (handle_data_member_location, dwarf2_add_member_fn)
10621 (get_alignment, read_structure_type, process_structure_scope)
10622 (mark_common_block_symbol_computed, read_common_block)
10623 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10624 (partial_die_info::read, read_attribute_value, new_symbol)
10625 (lookup_die_type, dwarf2_get_ref_die_offset)
10626 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10627 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10628 (dwarf2_symbol_mark_computed): Update.
10629 * dwarf2/attribute.h (struct attribute) <value_as_address,
10630 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10631 methods.
10632 (value_as_address, attr_form_is_section_offset)
10633 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10634 * dwarf2/attribute.c (attribute::value_as_address)
10635 (attribute::form_is_section_offset, attribute::form_is_constant)
10636 (attribute::form_is_ref): Now methods.
10637
10638 2020-02-08 Tom Tromey <tom@tromey.com>
10639
10640 * dwarf2read.c (struct attribute, DW_STRING)
10641 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10642 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10643 (attr_form_is_block, attr_form_is_section_offset)
10644 (attr_form_is_constant, attr_form_is_ref): Move.
10645 * dwarf2/attribute.h: New file.
10646 * dwarf2/attribute.c: New file, from dwarf2read.c.
10647 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10648
10649 2020-02-08 Tom Tromey <tom@tromey.com>
10650
10651 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10652 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10653 Move.
10654 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10655 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10656 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10657 abbrev.c.
10658 * dwarf2/abbrev.h: New file.
10659 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10660 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10661
10662 2020-02-08 Tom Tromey <tom@tromey.com>
10663
10664 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10665 (dwarf2_section_size, dwarf2_get_section_info)
10666 (create_signatured_type_table_from_debug_names)
10667 (create_addrmap_from_aranges, read_debug_names_from_section)
10668 (get_gdb_index_contents_from_section, read_comp_unit_head)
10669 (error_check_comp_unit_head, read_abbrev_offset)
10670 (create_debug_type_hash_table, init_cu_die_reader)
10671 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10672 (read_comp_units_from_section, create_cus_hash_table)
10673 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10674 (create_dwp_v2_section, dwarf2_rnglists_process)
10675 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10676 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10677 (read_indirect_string_from_dwz, read_addr_index_1)
10678 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10679 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10680 (fill_in_loclist_baton): Update.
10681 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10682 get_containing_section, get_bfd_owner, get_bfd_section,
10683 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10684 (dwarf2_read_section, get_section_name, get_section_file_name)
10685 (get_containing_section, get_section_bfd_owner)
10686 (get_section_bfd_section, get_section_name, get_section_file_name)
10687 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10688 declare.
10689 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10690 (dwarf2_section_info::get_bfd_owner)
10691 (dwarf2_section_info::get_bfd_section)
10692 (dwarf2_section_info::get_name)
10693 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10694 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10695 (dwarf2_section_info::read): Now methods.
10696 * dwarf-index-write.c (class debug_names): Update.
10697
10698 2020-02-08 Tom Tromey <tom@tromey.com>
10699
10700 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10701 Move to dwarf2/section.h.
10702 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10703 (get_section_bfd_section, get_section_name)
10704 (get_section_file_name, get_section_id, get_section_flags)
10705 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10706 dwarf2/section.c.
10707 * dwarf2/section.h: New file.
10708 * dwarf2/section.c: New file, from dwarf2read.c.
10709 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10710
10711 2020-02-08 Tom Tromey <tom@tromey.com>
10712
10713 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10714 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10715 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10716 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10717 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10718 * dwarf2/leb.h: New file, from dwarf2read.c.
10719 * dwarf2/leb.c: New file, from dwarf2read.c.
10720 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10721 Remove.
10722 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10723 (COMMON_SFILES): Add dwarf2/leb.c.
10724
10725 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10726
10727 GDB 9.1 released.
10728
10729 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10730
10731 PR gdb/25190:
10732 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10733 * gdb/remote.c (remote_console_output): Update.
10734 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10735 (ui_file_puts): ...this.
10736 * gdb/ui-file.h (ui_file_puts): Add declaration.
10737 * gdb/utils.c (emit_style_escape): Update.
10738 (flush_wrap_buffer): Update.
10739 (fputs_maybe_filtered): Update.
10740 (fputs_unfiltered): Add function.
10741
10742 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10743
10744 * gdb/event-loop.c (gdb_wait_for_event): Update.
10745 * gdb/printcmd.c (printf_command): Update.
10746 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10747 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10748 (gdb_os_flush_stderr): Update.
10749 * gdb/remote.c (remote_console_output): Update.
10750 * gdb/ui-file.c (gdb_flush): Rename to...
10751 (ui_file_flush): ...this.
10752 (stderr_file::write): Update.
10753 (stderr_file::puts): Update.
10754 * gdb/ui-file.h (gdb_flush): Rename to...
10755 (ui_file_flush): ...this.
10756 * gdb/utils.c (gdb_flush): Add function.
10757 * gdb/utils.h (gdb_flush): Add declaration.
10758
10759 2020-02-07 Tom Tromey <tromey@adacore.com>
10760
10761 PR breakpoints/24915:
10762 * source.c (find_and_open_source): Do not check basenames_may_differ.
10763
10764 2020-02-07 Tom Tromey <tom@tromey.com>
10765
10766 * README: Update gdbserver documentation.
10767 * gdbserver: Move to top level.
10768 * configure.tgt (build_gdbserver): Remove.
10769 * configure.ac: Remove --enable-gdbserver.
10770 * configure: Rebuild.
10771 * Makefile.in (distclean): Don't mention gdbserver.
10772
10773 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10774
10775 * source-cache.c (source_cache::ensure): Surround
10776 get_plain_source_lines with a try/catch.
10777 (source_cache::get_line_charpos): Get rid of try/catch
10778 and only check for the return value of "ensure".
10779 * tui/tui-source.c (tui_source_window::set_contents):
10780 Simplify "nlines" calculation.
10781
10782 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10783
10784 * MAINTAINERS (Write After Approval): Add myself.
10785
10786 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10787
10788 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10789 function call.
10790
10791 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10792
10793 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10794
10795 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10796
10797 * nat/riscv-linux-tdesc.h: New file.
10798 * nat/riscv-linux-tdesc.c: New file, taking code from...
10799 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10800 ... here.
10801 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10802 NATDEPFILES.
10803
10804 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10805
10806 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10807 we don't set the fake simulator ptid to the null_ptid.
10808
10809 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10810
10811 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10812 * gdbthread.h (class thread_info) <resumed>: Likewise.
10813 * infrun.c (resume_1): Likewise.
10814 (proceed): Likewise.
10815 (infrun_thread_stop_requested): Likewise.
10816 (stop_all_threads): Likewise.
10817 (handle_inferior_event): Likewise.
10818 (restart_threads): Likewise.
10819 (finish_step_over): Likewise.
10820 (keep_going_stepped_thread): Likewise.
10821 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10822 (linux_handle_extended_wait): Likewise.
10823 * record-btrace.c (get_thread_current_frame_id): Likewise.
10824 * record-full.c (record_full_wait_1): Likewise.
10825 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10826 * target.c (target_resume): Likewise.
10827 * thread.c (set_running_thread): Likewise.
10828
10829 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10830
10831 * f-valprint.c (f77_print_array_1): Changed datatype of index
10832 variable to LONGEST from int to enable it to contain bound
10833 values correctly.
10834
10835 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10836
10837 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10838 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10839 offsets according to FLEN determined.
10840 (riscv_linux_nat_target::read_description): Determine FLEN
10841 dynamically.
10842 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10843 according to FLEN determined.
10844 (riscv_linux_nat_target::store_registers): Likewise.
10845
10846 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10847
10848 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10849 when reg->group is empty and reggroup is not.
10850
10851 2020-01-31 Tom Tromey <tromey@adacore.com>
10852
10853 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10854 Call beneath target's mourn_inferior after unpushing.
10855
10856 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10857
10858 PR tui/9765
10859 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10860 have enough lines to fill the screen, still return the lowest
10861 address we found.
10862
10863 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10864
10865 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10866 '-', '<', and '>' commands.
10867
10868 2020-01-29 Pedro Alves <palves@redhat.com>
10869 Sergio Durigan Junior <sergiodj@redhat.com>
10870
10871 * infcmd.c (construct_inferior_arguments): Assert that
10872 'argc' is greater than 0.
10873
10874 2020-01-29 Luis Machado <luis.machado@linaro.org>
10875
10876 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10877 (BRK_INSN_MASK): Define to 0xd4200000.
10878 (aarch64_program_breakpoint_here_p): New function.
10879 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10880 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10881 breakpoint.c.
10882 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10883 breakpoint.h
10884 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10885 call gdbarch_program_breakpoint_here_p.
10886 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10887 default_program_breakpoint_here_p, changed return type to bool and
10888 simplified.
10889 * breakpoint.h (program_breakpoint_here): Moved prototype to
10890 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10891 return type to bool.
10892 * gdbarch.c: Regenerate.
10893 * gdbarch.h: Regenerate.
10894 * gdbarch.sh (program_breakpoint_here_p): New method.
10895 * infrun.c (handle_signal_stop): Call
10896 gdbarch_program_breakpoint_here_p.
10897
10898 2020-01-26 Tom Tromey <tom@tromey.com>
10899
10900 * ctfread.c (struct ctf_fp_info): Reindent.
10901 (_initialize_ctfread): Remove.
10902
10903 2020-01-26 Tom Tromey <tom@tromey.com>
10904
10905 * psymtab.c (partial_map_expand_apply)
10906 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10907 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10908 (psym_print_stats, psym_expand_symtabs_for_function)
10909 (psym_map_symbol_filenames, psym_map_matching_symbols)
10910 (psym_expand_symtabs_matching)
10911 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10912 (maintenance_check_psymtabs): Use new methods.
10913 * psympriv.h (struct partial_symtab) <readin_p,
10914 get_compunit_symtab>: New methods.
10915 <readin, compunit_symtab>: Remove members.
10916 (struct standard_psymtab): New.
10917 (struct legacy_psymtab): Derive from standard_psymtab.
10918 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10919 standard_psymtab.
10920 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10921
10922 2020-01-26 Tom Tromey <tom@tromey.com>
10923
10924 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10925 read_dependencies. Add assert.
10926 * psymtab.c (partial_symtab::read_dependencies): New method.
10927 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10928 method.
10929 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10930 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10931 read_dependencies.
10932 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10933 Add assert.
10934
10935 2020-01-26 Tom Tromey <tom@tromey.com>
10936
10937 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10938 Call expand_psymtab.
10939 (xcoff_read_symtab): Call expand_psymtab.
10940 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10941 legacy_expand_psymtab.
10942 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10943 method.
10944 (struct legacy_psymtab) <expand_psymtab>: Implement.
10945 <legacy_expand_psymtab>: New member.
10946 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10947 (parse_partial_symbols): Set legacy_expand_psymtab.
10948 (psymtab_to_symtab_1): Change argument order. Call
10949 expand_psymtab.
10950 (new_psymtab): Set legacy_expand_psymtab.
10951 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10952 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10953 expand_psymtab.
10954 (dwarf2_psymtab::expand_psymtab): Rename from
10955 psymtab_to_symtab_1. Call expand_psymtab.
10956 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10957 (dbx_end_psymtab): Likewise.
10958 (dbx_psymtab_to_symtab_1): Change argument order. Call
10959 expand_psymtab.
10960 (dbx_read_symtab): Call expand_psymtab.
10961 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10962 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10963 (ctf_psymtab::read_symtab): Call expand_psymtab.
10964
10965 2020-01-26 Tom Tromey <tom@tromey.com>
10966
10967 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10968 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10969 messages.
10970 * mdebugread.c (mdebug_read_symtab): Remove prints.
10971 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10972 assert.
10973 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10974
10975 2020-01-26 Tom Tromey <tom@tromey.com>
10976
10977 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10978 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10979 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10980 legacy_symtab.
10981 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10982 * psymtab.c (psymtab_to_symtab): Call method.
10983 (dump_psymtab): Update.
10984 * psympriv.h (struct partial_symtab): Add virtual destructor.
10985 <read_symtab>: New method.
10986 (struct legacy_symtab): New.
10987 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10988 (struct pst_map) <pst>: Now a legacy_psymtab.
10989 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10990 (new_psymtab): Use legacy_psymtab.
10991 * dwarf2read.h (struct dwarf2_psymtab): New.
10992 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10993 * dwarf2read.c (dwarf2_create_include_psymtab)
10994 (dwarf2_build_include_psymtabs, create_type_unit_group)
10995 (create_partial_symtab, process_psymtab_comp_unit_reader)
10996 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10997 (set_partial_user): Use dwarf2_psymtab.
10998 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10999 (psymtab_to_symtab_1, process_full_comp_unit)
11000 (process_full_type_unit, dwarf2_ranges_read)
11001 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11002 (dwarf_decode_lines): Use dwarf2_psymtab.
11003 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11004 (add_address_entry_worker, write_one_signatured_type)
11005 (recursively_count_psymbols, recursively_write_psymbols)
11006 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11007 (write_debug_names): Likewise.
11008 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11009 <pst>: Now a legacy_psymtab.
11010 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11011 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11012 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11013 * ctfread.c (struct ctf_psymtab): New.
11014 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11015 ctf_psymtab.
11016 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11017 (create_partial_symtab): Return a ctf_psymtab.
11018 (scan_partial_symbols): Update.
11019
11020 2020-01-26 Tom Tromey <tom@tromey.com>
11021
11022 * xcoffread.c (xcoff_start_psymtab): Use new.
11023 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11024 renamed from start_psymtab_common.
11025 * psympriv.h (struct partial_symtab): Add new constructor.
11026 (start_psymtab_common): Don't declare.
11027 * mdebugread.c (parse_partial_symbols): Use new.
11028 * dwarf2read.c (create_partial_symtab): Use new.
11029 * dbxread.c (start_psymtab): Use new.
11030 * ctfread.c (create_partial_symtab): Use new.
11031
11032 2020-01-26 Tom Tromey <tom@tromey.com>
11033
11034 * xcoffread.c (xcoff_end_psymtab): Use new.
11035 * psymtab.c (start_psymtab_common): Use new.
11036 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11037 Update.
11038 * psympriv.h (struct partial_symtab): Add parameters to
11039 constructor. Don't inline.
11040 (allocate_psymtab): Don't declare.
11041 * mdebugread.c (new_psymtab): Use new.
11042 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11043 * dbxread.c (dbx_end_psymtab): Use new.
11044
11045 2020-01-26 Tom Tromey <tom@tromey.com>
11046
11047 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11048 allocate_psymtab. Update documentation.
11049 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11050 allocate_psymtab. Do not use new.
11051 (allocate_psymtab): Use new. Update.
11052
11053 2020-01-26 Tom Tromey <tom@tromey.com>
11054
11055 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11056 * psymtab.c (psym_print_stats): Update.
11057 * psympriv.h (struct partial_symtab) <readin,
11058 psymtabs_addrmap_supported, anonymous>: Now bool.
11059 * mdebugread.c (psymtab_to_symtab_1): Update.
11060 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11061 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11062 (process_full_comp_unit, process_full_type_unit): Update.
11063 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11064 * ctfread.c (psymtab_to_symtab): Update.
11065
11066 2020-01-26 Tom Tromey <tom@tromey.com>
11067
11068 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11069 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11070 * psymtab.c (psymtab_storage): Delete psymtabs.
11071 (psymtab_storage::allocate_psymtab): Use new.
11072 (psymtab_storage::discard_psymtab): Use delete.
11073 * psympriv.h (struct partial_symtab): Add constructor and
11074 initializers.
11075
11076 2020-01-26 Tom Tromey <tom@tromey.com>
11077
11078 * machoread.c: Do not include psympriv.h.
11079
11080 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11081
11082 * NEWS: Mention the new option and the set/show commands.
11083
11084 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11085
11086 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11087 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11088 (validate_exec_file): New variables, enums, functions.
11089 (exec_file_locate_attach, print_section_info): Style the filenames.
11090 (_initialize_exec): Install show_exec_file_mismatch_command and
11091 set_exec_file_mismatch_command.
11092 * gdbcore.h (validate_exec_file): Declare.
11093 * infcmd.c (attach_command): Call validate_exec_file.
11094 * remote.c ( remote_target::remote_add_inferior): Likewise.
11095
11096 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11097
11098 * frame.c (find_frame_sal): Move call to get_next_frame into more
11099 inner scope.
11100 * inline-frame.c (inilne_state) <inline_state>: Update argument
11101 types.
11102 (inilne_state) <skipped_symbol>: Rename to...
11103 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11104 (skip_inline_frames): Build vector of skipped symbols and use this
11105 to reate the inline_state.
11106 (inline_skipped_symbol): Add a comment and some assertions, fetch
11107 skipped symbol from the list.
11108
11109 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11110
11111 * buildsym.c (lte_is_less_than): Delete.
11112 (buildsym_compunit::end_symtab_with_blockvector): Create local
11113 lambda function to sort line table entries, and use
11114 std::stable_sort instead of std::sort.
11115 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11116 markers when looking for a previous line.
11117
11118 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11119
11120 * dwarf2read.c (lnp_state_machine::record_line): Include
11121 end_sequence parameter in debug print out. Record the line if we
11122 are at an end_sequence marker even if it's not the start of a
11123 statement.
11124 * symmisc.c (maintenance_print_one_line_table): Print end of
11125 sequence markers with 'END' not '0'.
11126
11127 2020-01-24 Pedro Alves <palves@redhat.com>
11128
11129 PR gdb/25410
11130 * thread.c (scoped_restore_current_thread::restore): Use
11131 switch_to_inferior_no_thread.
11132 * exec.c: Include "progspace-and-thread.h".
11133 (add_target_sections, remove_target_sections):
11134 scoped_restore_current_pspace_and_thread instead of
11135 scoped_restore_current_thread.
11136 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11137 and aspace to the inferior before calling clone_program_space.
11138 Remove stale comment.
11139
11140 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11141
11142 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11143 (arm_netbsd_nat_target::fetch_registers): ...this.
11144 (arm_nbsd_nat_target::store_registers): Rename to...
11145 (arm_netbsd_nat_target::store_registers): ...this.
11146
11147 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11148
11149 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11150 register_t.
11151
11152 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11153
11154 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11155 Update comment.
11156 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11157 Likewise.
11158 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11159 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11160 the correct replacement (iterate_over_regset_sections).
11161 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11162 Update comment.
11163
11164 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11165
11166 PR gdb/23718
11167 * gdb/python/python.c (execute_gdb_command): Call
11168 async_enable_stdin in catch block.
11169
11170 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11171
11172 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11173 SWITCH_THRU_ALL_UIS.
11174
11175 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11176
11177 PR tui/9765
11178 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11179 comment, add extra parameter, and update to store previous symbol
11180 when appropriate.
11181 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11182 add extra parameter.
11183 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11184 remove unneeded parameter, add try/catch around gdb_print_insn,
11185 rewrite to add items to asm_lines vector.
11186 (tui_find_backward_disassembly_start_address): New function.
11187 (tui_find_disassembly_address): Updated throughout.
11188 (tui_disasm_window::set_contents): Update for changes to
11189 tui_disassemble.
11190 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11191 number of lines to scroll.
11192
11193 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11194
11195 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11196 (SECT_OFF_DATA): Likewise.
11197 (SECT_OFF_RODATA): Likewise.
11198 (SECT_OFF_TEXT): Likewise.
11199 (SECT_OFF_BSS): Likewise.
11200 (struct objfile) <text_section_offset, data_section_offset>: New
11201 methods.
11202 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11203 objfile::text_section_offset.
11204 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11205 * coffread.c (coff_symtab_read): Likewise.
11206 (enter_linenos): Likewise.
11207 (process_coff_symbol): Likewise.
11208 * ctfread.c (get_objfile_text_range): Likewise.
11209 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11210 Use objfile::data_section_offset.
11211 * dwarf2-frame.c (execute_cfa_program): Use
11212 objfile::text_section_offset.
11213 (dwarf2_frame_find_fde): Likewise.
11214 * dwarf2read.c (create_addrmap_from_index): Likewise.
11215 (create_addrmap_from_aranges): Likewise.
11216 (dw2_find_pc_sect_compunit_symtab): Likewise.
11217 (process_psymtab_comp_unit_reader): Likewise.
11218 (add_partial_symbol): Likewise.
11219 (add_partial_subprogram): Likewise.
11220 (process_full_comp_unit): Likewise.
11221 (read_file_scope): Likewise.
11222 (read_func_scope): Likewise.
11223 (read_lexical_block_scope): Likewise.
11224 (read_call_site_scope): Likewise.
11225 (dwarf2_rnglists_process): Likewise.
11226 (dwarf2_ranges_process): Likewise.
11227 (dwarf2_ranges_read): Likewise.
11228 (dwarf_decode_lines_1): Likewise.
11229 (new_symbol): Likewise.
11230 (dwarf2_fetch_die_loc_sect_off): Likewise.
11231 (dwarf2_per_cu_text_offset): Likewise.
11232 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11233 * hppa-tdep.c (read_unwind_info): Likewise.
11234 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11235 * psympriv.h (struct partial_symtab): Likewise.
11236 * psymtab.c (find_pc_sect_psymtab): Likewise.
11237 * solib-svr4.c (enable_break): Likewise.
11238 * stap-probe.c (relocate_address): Use
11239 objfile::data_section_offset.
11240 * xcoffread.c (enter_line_range): Use
11241 objfile::text_section_offset.
11242 (read_xcoff_symtab): Likewise.
11243
11244 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11245
11246 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11247 declaration to narrower scopes.
11248
11249 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11250
11251 * darwin-nat.h (struct darwin_exception_msg, enum
11252 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11253 Move up.
11254 (class darwin_nat_target) <wait_1, check_new_threads,
11255 decode_exception_message, decode_message, stop_inferior,
11256 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11257 * darwin-nat.c (darwin_check_new_threads): Rename to...
11258 (darwin_nat_target::check_new_threads): ... this.
11259 (darwin_suspend_inferior_it): Remove.
11260 (darwin_decode_exception_message): Rename to...
11261 (darwin_nat_target::decode_exception_message): ... this.
11262 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11263 (darwin_decode_message): Rename to...
11264 (darwin_nat_target::decode_message): ... this.
11265 (cancel_breakpoint): Rename to...
11266 (darwin_nat_target::cancel_breakpoint): ... this.
11267 (darwin_wait): Rename to...
11268 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11269 instead of iterate_over_inferiors.
11270 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11271 (darwin_stop_inferior): Rename to...
11272 (darwin_nat_target::stop_inferior): ... this.
11273 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11274 (darwin_init_thread_list): Rename to...
11275 (darwin_nat_target::init_thread_list): ... this.
11276 (darwin_ptrace_him): Rename to...
11277 (darwin_nat_target::ptrace_him): ... this.
11278 (darwin_nat_target::create_inferior): Pass lambda function to
11279 fork_inferior.
11280 (darwin_nat_target::detach): Call stop_inferior instead of
11281 darwin_stop_inferior.
11282 * fork-inferior.h (fork_inferior): Change init_trace_fun
11283 parameter to gdb::function_view.
11284 * fork-inferior.c (fork_inferior): Likewise.
11285
11286 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11287
11288 * i386-cygwin-tdep.c (core_process_module_section): Update.
11289 * windows-nat.c (struct lm_info_windows): Add text_offset.
11290 (windows_xfer_shared_libraries): Update.
11291 * windows-tdep.c (windows_xfer_shared_library):
11292 Add text_offset_cached argument.
11293 * windows-tdep.h (windows_xfer_shared_library): Update.
11294
11295 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11296
11297 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11298
11299 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11300
11301 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11302 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11303 replace with range-based for.
11304 (gdbsim_interrupt_inferior): Remove.
11305 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11306 with a range-based for. Inline code from
11307 gdbsim_interrupt_inferior.
11308
11309 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11310
11311 * infrun.c (proceed): Fix indentation.
11312
11313 2020-01-21 Tom Tromey <tromey@adacore.com>
11314
11315 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11316 * python/python.c (python_extension_ops): Update.
11317 (gdbpy_colorize): New function.
11318 * python/lib/gdb/__init__.py (colorize): New function.
11319 * extension.h (ext_lang_colorize): Declare.
11320 * extension.c (ext_lang_colorize): New function.
11321 * extension-priv.h (struct extension_language_ops) <colorize>: New
11322 member.
11323 * cli/cli-style.c (_initialize_cli_style): Update help text.
11324
11325 2020-01-21 Luis Machado <luis.machado@linaro.org>
11326
11327 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11328 <cond>: Change type to bool.
11329 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11330 (aarch64_displaced_step_cb): Likewise.
11331 (aarch64_displaced_step_tb): Likewise.
11332
11333 2020-01-21 Luis Machado <luis.machado@linaro.org>
11334
11335 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11336 output.
11337
11338 2020-01-21 Luis Machado <luis.machado@linaro.org>
11339
11340 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11341 <pc_adjust>: Adjust the documentation.
11342 (aarch64_displaced_step_fixup): Check if PC really moved before
11343 adjusting it.
11344
11345 2020-01-19 Tom Tromey <tom@tromey.com>
11346
11347 * disasm.c (~gdb_disassembler): New destructor.
11348 (gdb_buffered_insn_length): Call disassemble_free_target.
11349 * disasm.h (class gdb_disassembler): Declare destructor. Use
11350 DISABLE_COPY_AND_ASSIGN.
11351
11352 2020-01-19 Tom Tromey <tom@tromey.com>
11353
11354 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11355 (die_reader_func_ftype): Remove.
11356 (cutu_reader): New class.
11357 (dw2_get_file_names_reader): Remove "data" parameter.
11358 (dw2_get_file_names): Use cutu_reader.
11359 (create_debug_type_hash_table): Update.
11360 (read_cutu_die_from_dwo): Update comment.
11361 (lookup_dwo_unit): Add dwo_name parameter.
11362 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11363 die_reader_func_ftype and data parameters.
11364 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11365 Remove die_reader_func_ftype and data parameters.
11366 (~cutu_reader): New; from init_cutu_and_read_dies.
11367 (cutu_reader::cutu_reader): Rename from
11368 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11369 and data parameters.
11370 (init_cutu_and_read_dies_simple): Remove.
11371 (struct process_psymtab_comp_unit_data): Remove.
11372 (process_psymtab_comp_unit_reader): Remove data parameter; add
11373 want_partial_unit and pretend_language parameters.
11374 (process_psymtab_comp_unit): Use cutu_reader.
11375 (build_type_psymtabs_reader): Remove data parameter.
11376 (build_type_psymtabs_1): Use cutu_reader.
11377 (process_skeletonless_type_unit): Likewise.
11378 (load_partial_comp_unit_reader): Remove.
11379 (load_partial_comp_unit): Use cutu_reader.
11380 (load_full_comp_unit_reader): Remove.
11381 (load_full_comp_unit): Use cutu_reader.
11382 (struct create_dwo_cu_data): Remove.
11383 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11384 dwo_unit parameters.
11385 (create_cus_hash_table): Use cutu_reader.
11386 (struct dwarf2_read_addr_index_data): Remove.
11387 (dwarf2_read_addr_index_reader): Remove.
11388 (dwarf2_read_addr_index): Use cutu_reader.
11389 (read_signatured_type_reader): Remove.
11390 (read_signatured_type): Use cutu_reader.
11391
11392 2020-01-19 Tom Tromey <tom@tromey.com>
11393
11394 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11395 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11396 (tui_wrefresh): Declare.
11397 * tui/tui-wingeneral.c (suppress_output): New global.
11398 (tui_suppress_output, ~tui_suppress_output): New constructor and
11399 destructor.
11400 (tui_wrefresh): New function.
11401 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11402 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11403 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11404 method.
11405 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11406 tui_wrefresh.
11407 (tui_data_window::no_refresh): New method.
11408 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11409 (tui_reg_command): Use tui_suppress_output
11410 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11411 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11412 method.
11413 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11414
11415 2020-01-19 Tom Tromey <tom@tromey.com>
11416
11417 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11418 Handle case where symtab is null.
11419
11420 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11421
11422 * linux-fork.c (one_fork_p): Simplify.
11423
11424 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11425
11426 * top.c (struct qt_args): Remove.
11427 (kill_or_detach): Change return type to void, replace `void *`
11428 parameter with a proper one.
11429 (print_inferior_quit_action): Likewise.
11430 (quit_confirm): Use range-based for loop to iterate over inferiors.
11431 (quit_force): Likewise.
11432
11433 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11434
11435 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11436 `void *` parameter with proper parameters.
11437 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11438 (print_one_inferior): Change return type to void, replace `void *`
11439 parameter with proper parameters.
11440 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11441 inferiors.
11442 (get_other_inferior): Remove.
11443 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11444 inferiors.
11445
11446 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11447
11448 * mi/mi-interp.c (report_initial_inferior): Remove.
11449 (mi_interp::init): Use range-based for to iterate over inferiors.
11450
11451 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11452
11453 * python/py-inferior.c (build_inferior_list): Remove.
11454 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11455
11456 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11457
11458 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11459 (btrace_stitch_trace): Likewise.
11460 * charset.c (intermediate_encoding): Likewise (vaild).
11461 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11462 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11463 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11464
11465 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11466
11467 * windows-tdep.c (windows_get_tlb_type):
11468 Add rtl_user_process_parameters type.
11469
11470 2020-01-16 Pedro Alves <palves@redhat.com>
11471 Norbert Lange <nolange79@gmail.com>
11472
11473 PR build/24805
11474 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11475 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11476 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11477 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11478 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11479 (ps_plog): Redeclare exported functions with default visibility.
11480
11481 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11482
11483 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11484 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11485
11486 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11487
11488 * infcmd.c (post_create_inferior): Use get_thread_regcache
11489 instead of get_current_regcache.
11490
11491 2020-01-14 Tom Tromey <tom@tromey.com>
11492
11493 PR symtab/12535:
11494 * python/python.c (gdbpy_decode_line): Treat empty string the same
11495 as no argument.
11496
11497 2020-01-14 Tom Tromey <tom@tromey.com>
11498
11499 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11500
11501 2020-01-14 Tom Tromey <tom@tromey.com>
11502
11503 * nat/linux-btrace.c: Don't include <config.h>.
11504 * nat/linux-ptrace.c: Don't include <config.h>.
11505 * nat/x86-linux-dregs.c: Don't include <config.h>.
11506
11507 2020-01-14 Tom Tromey <tom@tromey.com>
11508
11509 * configure: Rebuild.
11510 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11511
11512 2020-01-14 Tom Tromey <tom@tromey.com>
11513
11514 * nat/x86-linux-dregs.c: Include configh.h.
11515 * nat/linux-ptrace.c: Include configh.h.
11516 * nat/linux-btrace.c: Include configh.h.
11517 * defs.h: Include config.h, bfd.h.
11518 * configure.ac: Don't source common.host.
11519 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11520 * configure: Rebuild.
11521 * acinclude.m4: Update path.
11522 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11523 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11524 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11525 (CLIBS): Add LIBSUPPORT.
11526 (CDEPS): Likewise.
11527 (COMMON_SFILES): Remove gdbsupport files.
11528 (HFILES_NO_SRCDIR): Likewise.
11529 (stamp-version): Update path to create-version.sh.
11530 (ALLDEPFILES): Remove gdbsupport files.
11531
11532 2020-01-14 Tom Tromey <tom@tromey.com>
11533
11534 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11535 USE_WIN32API when needed.
11536 * configure.ac (USE_WIN32API): Don't define.
11537 (WIN32LIBS): Use WIN32APILIBS.
11538 * configure: Rebuild.
11539
11540 2020-01-14 Tom Tromey <tom@tromey.com>
11541
11542 * configure: Rebuild.
11543 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11544
11545 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11546
11547 * skip.c (skip_function_command): Make skip w/o arguments use the
11548 name of the inlined function if pc is inside any inlined function.
11549
11550 2020-01-14 Luis Machado <luis.machado@linaro.org>
11551
11552 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11553 * infrun.c (resume_1): Likewise.
11554 (handle_inferior_event): Remove stale comment.
11555 * linux-nat.c (linux_nat_target::resume): Update comments.
11556 (save_stop_reason): Likewise.
11557 (linux_nat_filter_event): Likewise.
11558 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11559
11560 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11561
11562 * elfread.c (record_minimal_symbol): Set section index to 0 for
11563 non-allocatable sections.
11564
11565
11566 2020-01-13 Ali Tamur <tamur@google.com>
11567
11568 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11569 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11570 to gdb::optional. Update comments.
11571 (dwo_file): Update comments.
11572 (read_attribute): Update API to take an additional out parameter,
11573 need_reprocess. This is used to mark attributes that need other
11574 attributes (e.g. str_offsets_base) for correct computation which may not
11575 have been read yet.
11576 (read_attribute_reprocess): New function declaration.
11577 (read_addr_index): Likewise.
11578 (read_dwo_str_index): Likewise.
11579 (read_stub_str_index): Likewise.
11580 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11581 (lookup_addr_base): New function definition.
11582 (lookup_ranges_base): Likewise.
11583 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11584 lookup_ranges_base.
11585 (init_cutu_and_read_dies): Update comments.
11586 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11587 unit. This is used to inherit parent's str_offsets_base and addr_base.
11588 Update comments.
11589 (init_cutu_and_read_dies_simple): Reflect API changes.
11590 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11591 (create_cus_hash_table): Change API to take parent compile unit.
11592 Reflect API changes.
11593 (open_and_init_dwo_file): Reflect API changes.
11594 (dwarf2_get_pc_bounds): Update comments.
11595 (dwarf2_record_block_ranges): Likewise.
11596 (read_full_die_1): Change implementation to reprocess attributes that
11597 need str_offsets_base and addr_base.
11598 (partial_die_info::read): Likewise.
11599 (read_attribute_reprocess): New function definition.
11600 (read_attribute_value): Change API to take an additional out parameter,
11601 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11602 when a non-dwo compile unit has index based attributes.
11603 (read_attribute): Reflect API changes.
11604 (read_addr_index_1): Reflect API changes. Update comments.
11605 (dwarf2_read_addr_index_data): Reflect API changes.
11606 (dwarf2_read_addr_index): Likewise.
11607 (read_str_index): Change API and implementation. This becomes a helper
11608 to be used by the new string index related methods. Update error
11609 message and comments.
11610 (read_dwo_str_index): New function definition.
11611 (read_stub_str_index): Likewise.
11612 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11613 * symfile.h (dwarf2_debug_sections): Likewise.
11614 * xcoffread.c (dwarf2_debug_sections): Likewise.
11615
11616 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11617
11618 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11619 core_reg_sect type to gdb_byte *.
11620 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11621 * cris-tdep.c (fetch_core_registers): Likewise.
11622 * corelow.c (core_target::get_core_register_section): Change
11623 type of `contents` to gdb::byte_vector.
11624
11625 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11626
11627 * tui/tui-wingeneral.c (box_win): Position the title in the center
11628 of the border.
11629
11630 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11631
11632 * corelow.c (core_target::get_core_register_section): Use
11633 std::vector instead of alloca.
11634
11635 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11636
11637 * warning.m4: Add -Wmissing-declarations to build_warnings.
11638 * configure: Re-generate.
11639
11640 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11641
11642 * python/python.c (init__gdb_module): Add declaration.
11643
11644 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11645
11646 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11647 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11648 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11649 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11650 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11651 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11652 * ada-exp.y (_initialize_ada_exp): Add declaration.
11653 * ada-lang.c (_initialize_ada_language): Add declaration.
11654 * ada-tasks.c (_initialize_tasks): Add declaration.
11655 * agent.c (_initialize_agent): Add declaration.
11656 * aix-thread.c (_initialize_aix_thread): Add declaration.
11657 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11658 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11659 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11660 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11661 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11662 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11663 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11664 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11665 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11666 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11667 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11668 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11669 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11670 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11671 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11672 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11673 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11674 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11675 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11676 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11677 * annotate.c (_initialize_annotate): Add declaration.
11678 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11679 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11680 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11681 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11682 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11683 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11684 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11685 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11686 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11687 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11688 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11689 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11690 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11691 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11692 * auto-load.c (_initialize_auto_load): Add declaration.
11693 * auxv.c (_initialize_auxv): Add declaration.
11694 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11695 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11696 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11697 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11698 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11699 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11700 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11701 * breakpoint.c (_initialize_breakpoint): Add declaration.
11702 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11703 * btrace.c (_initialize_btrace): Add declaration.
11704 * charset.c (_initialize_charset): Add declaration.
11705 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11706 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11707 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11708 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11709 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11710 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11711 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11712 * coffread.c (_initialize_coffread): Add declaration.
11713 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11714 * compile/compile.c (_initialize_compile): Add declaration.
11715 * complaints.c (_initialize_complaints): Add declaration.
11716 * completer.c (_initialize_completer): Add declaration.
11717 * copying.c (_initialize_copying): Add declaration.
11718 * corefile.c (_initialize_core): Add declaration.
11719 * corelow.c (_initialize_corelow): Add declaration.
11720 * cp-abi.c (_initialize_cp_abi): Add declaration.
11721 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11722 * cp-support.c (_initialize_cp_support): Add declaration.
11723 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11724 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11725 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11726 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11727 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11728 * ctfread.c (_initialize_ctfread): Add declaration.
11729 * d-lang.c (_initialize_d_language): Add declaration.
11730 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11731 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11732 * dbxread.c (_initialize_dbxread): Add declaration.
11733 * dcache.c (_initialize_dcache): Add declaration.
11734 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11735 * disasm.c (_initialize_disasm): Add declaration.
11736 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11737 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11738 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11739 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11740 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11741 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11742 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11743 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11744 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11745 * elfread.c (_initialize_elfread): Add declaration.
11746 * exec.c (_initialize_exec): Add declaration.
11747 * extension.c (_initialize_extension): Add declaration.
11748 * f-lang.c (_initialize_f_language): Add declaration.
11749 * f-valprint.c (_initialize_f_valprint): Add declaration.
11750 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11751 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11752 * filesystem.c (_initialize_filesystem): Add declaration.
11753 * findcmd.c (_initialize_mem_search): Add declaration.
11754 * findvar.c (_initialize_findvar): Add declaration.
11755 * fork-child.c (_initialize_fork_child): Add declaration.
11756 * frame-base.c (_initialize_frame_base): Add declaration.
11757 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11758 * frame.c (_initialize_frame): Add declaration.
11759 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11760 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11761 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11762 * gcore.c (_initialize_gcore): Add declaration.
11763 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11764 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11765 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11766 * gdbarch.c (_initialize_gdbarch): Add declaration.
11767 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11768 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11769 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11770 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11771 * go-lang.c (_initialize_go_language): Add declaration.
11772 * go32-nat.c (_initialize_go32_nat): Add declaration.
11773 * guile/guile.c (_initialize_guile): Add declaration.
11774 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11775 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11776 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11777 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11778 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11779 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11780 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11781 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11782 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11783 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11784 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11785 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11786 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11787 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11788 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11789 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11790 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11791 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11792 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11793 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11794 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11795 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11796 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11797 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11798 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11799 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11800 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11801 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11802 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11803 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11804 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11805 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11806 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11807 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11808 * infcall.c (_initialize_infcall): Add declaration.
11809 * infcmd.c (_initialize_infcmd): Add declaration.
11810 * inflow.c (_initialize_inflow): Add declaration.
11811 * infrun.c (_initialize_infrun): Add declaration.
11812 * interps.c (_initialize_interpreter): Add declaration.
11813 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11814 * jit.c (_initialize_jit): Add declaration.
11815 * language.c (_initialize_language): Add declaration.
11816 * linux-fork.c (_initialize_linux_fork): Add declaration.
11817 * linux-nat.c (_initialize_linux_nat): Add declaration.
11818 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11819 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11820 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11821 * m2-lang.c (_initialize_m2_language): Add declaration.
11822 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11823 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11824 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11825 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11826 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11827 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11828 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11829 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11830 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11831 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11832 * machoread.c (_initialize_machoread): Add declaration.
11833 * macrocmd.c (_initialize_macrocmd): Add declaration.
11834 * macroscope.c (_initialize_macroscope): Add declaration.
11835 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11836 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11837 * maint.c (_initialize_maint_cmds): Add declaration.
11838 * mdebugread.c (_initialize_mdebugread): Add declaration.
11839 * memattr.c (_initialize_mem): Add declaration.
11840 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11841 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11842 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11843 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11844 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11845 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11846 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11847 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11848 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11849 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11850 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11851 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11852 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11853 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11854 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11855 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11856 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11857 * mipsread.c (_initialize_mipsread): Add declaration.
11858 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11859 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11860 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11861 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11862 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11863 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11864 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11865 * nto-procfs.c (_initialize_procfs): Add declaration.
11866 * objc-lang.c (_initialize_objc_language): Add declaration.
11867 * observable.c (_initialize_observer): Add declaration.
11868 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11869 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11870 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11871 * osabi.c (_initialize_gdb_osabi): Add declaration.
11872 * osdata.c (_initialize_osdata): Add declaration.
11873 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11874 * parse.c (_initialize_parse): Add declaration.
11875 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11876 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11877 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11878 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11879 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11880 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11881 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11882 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11883 * printcmd.c (_initialize_printcmd): Add declaration.
11884 * probe.c (_initialize_probe): Add declaration.
11885 * proc-api.c (_initialize_proc_api): Add declaration.
11886 * proc-events.c (_initialize_proc_events): Add declaration.
11887 * proc-service.c (_initialize_proc_service): Add declaration.
11888 * procfs.c (_initialize_procfs): Add declaration.
11889 * producer.c (_initialize_producer): Add declaration.
11890 * psymtab.c (_initialize_psymtab): Add declaration.
11891 * python/python.c (_initialize_python): Add declaration.
11892 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11893 * record-btrace.c (_initialize_record_btrace): Add declaration.
11894 * record-full.c (_initialize_record_full): Add declaration.
11895 * record.c (_initialize_record): Add declaration.
11896 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11897 * regcache.c (_initialize_regcache): Add declaration.
11898 * reggroups.c (_initialize_reggroup): Add declaration.
11899 * remote-notif.c (_initialize_notif): Add declaration.
11900 * remote-sim.c (_initialize_remote_sim): Add declaration.
11901 * remote.c (_initialize_remote): Add declaration.
11902 * reverse.c (_initialize_reverse): Add declaration.
11903 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11904 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11905 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11906 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11907 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11908 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11909 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11910 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11911 Add declaration.
11912 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11913 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11914 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11915 * rust-exp.y (_initialize_rust_exp): Add declaration.
11916 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11917 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11918 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11919 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11920 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11921 * score-tdep.c (_initialize_score_tdep): Add declaration.
11922 * ser-go32.c (_initialize_ser_dos): Add declaration.
11923 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11924 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11925 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11926 * ser-uds.c (_initialize_ser_socket): Add declaration.
11927 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11928 * serial.c (_initialize_serial): Add declaration.
11929 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11930 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11931 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11932 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11933 * skip.c (_initialize_step_skip): Add declaration.
11934 * sol-thread.c (_initialize_sol_thread): Add declaration.
11935 * solib-aix.c (_initialize_solib_aix): Add declaration.
11936 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11937 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11938 * solib-frv.c (_initialize_frv_solib): Add declaration.
11939 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11940 * solib-target.c (_initialize_solib_target): Add declaration.
11941 * solib.c (_initialize_solib): Add declaration.
11942 * source-cache.c (_initialize_source_cache): Add declaration.
11943 * source.c (_initialize_source): Add declaration.
11944 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11945 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11946 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11947 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11948 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11949 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11950 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11951 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11952 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11953 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11954 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11955 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11956 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11957 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11958 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11959 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11960 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11961 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11962 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11963 * stabsread.c (_initialize_stabsread): Add declaration.
11964 * stack.c (_initialize_stack): Add declaration.
11965 * stap-probe.c (_initialize_stap_probe): Add declaration.
11966 * std-regs.c (_initialize_frame_reg): Add declaration.
11967 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11968 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11969 * symfile.c (_initialize_symfile): Add declaration.
11970 * symmisc.c (_initialize_symmisc): Add declaration.
11971 * symtab.c (_initialize_symtab): Add declaration.
11972 * target.c (_initialize_target): Add declaration.
11973 * target-connection.c (_initialize_target_connection): Add
11974 declaration.
11975 * target-dcache.c (_initialize_target_dcache): Add declaration.
11976 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11977 * thread.c (_initialize_thread): Add declaration.
11978 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11979 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11980 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11981 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11982 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11983 * tracectf.c (_initialize_ctf): Add declaration.
11984 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11985 * tracefile.c (_initialize_tracefile): Add declaration.
11986 * tracepoint.c (_initialize_tracepoint): Add declaration.
11987 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11988 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11989 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11990 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11991 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11992 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11993 * tui/tui.c (_initialize_tui): Add declaration.
11994 * typeprint.c (_initialize_typeprint): Add declaration.
11995 * ui-style.c (_initialize_ui_style): Add declaration.
11996 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11997 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11998 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11999 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12000 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12001 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12002 * unittests/filtered_iterator-selftests.c
12003 (_initialize_filtered_iterator_selftests): Add declaration.
12004 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12005 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12006 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12007 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12008 * unittests/main-thread-selftests.c
12009 (_initialize_main_thread_selftests): Add declaration.
12010 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12011 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12012 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12013 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12014 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12015 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12016 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12017 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12018 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12019 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12020 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12021 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12022 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12023 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12024 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12025 declaration.
12026 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12027 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12028 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12029 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12030 * user-regs.c (_initialize_user_regs): Add declaration.
12031 * utils.c (_initialize_utils): Add declaration.
12032 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12033 * valops.c (_initialize_valops): Add declaration.
12034 * valprint.c (_initialize_valprint): Add declaration.
12035 * value.c (_initialize_values): Add declaration.
12036 * varobj.c (_initialize_varobj): Add declaration.
12037 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12038 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12039 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12040 * windows-nat.c (_initialize_windows_nat): Add declaration.
12041 (_initialize_check_for_gdb_ini): Add declaration.
12042 (_initialize_loadable): Add declaration.
12043 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12044 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12045 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12046 * xcoffread.c (_initialize_xcoffread): Add declaration.
12047 * xml-support.c (_initialize_xml_support): Add declaration.
12048 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12049 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12050 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12051 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12052
12053 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12054
12055 * regformats/regdat.sh: Generate declaration for init function.
12056
12057 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12058
12059 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12060 up.
12061 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12062 close_one_inferior>: New methods.
12063 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12064 pass down target to find_inferior_pid.
12065 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12066 Pass down target to find_inferior_ptid.
12067 (gdbsim_target::create_inferior): Pass down target to
12068 add_thread_silent.
12069 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12070 target down to find_inferior_ptid and switch_to_thread.
12071 (gdbsim_target::close): Update to call close_one_inferior.
12072 (struct resume_data): Remove.
12073 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12074 directly, rather than through a void pointer.
12075 (gdbsim_target::resume): Update to call resume_one_inferior.
12076
12077 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12078
12079 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12080
12081 2020-01-12 Pedro Alves <palves@redhat.com>
12082
12083 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12084 directly for the current inferior instead of
12085 discard_all_inferiors.
12086 (discard_all_inferiors): Delete.
12087
12088 2020-01-11 Tom Tromey <tom@tromey.com>
12089
12090 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12091 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12092 deprecated_safe_get_selected_frame.
12093
12094 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12095
12096 * inferior.c (print_inferior): Switch inferior before printing it.
12097
12098 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12099 Pedro Alves <palves@redhat.com>
12100
12101 * progspace-and-thread.c (switch_to_program_space_and_thread):
12102 Assert there's an inferior for PSPACE. Use
12103 switch_to_inferior_no_thread to switch the inferior too.
12104 * progspace.c (program_space::~program_space): Call
12105 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12106 (program_space::free_all_objfiles): Don't call clear_symtab_users
12107 here.
12108 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12109
12110 2020-01-10 Pedro Alves <palves@redhat.com>
12111
12112 * NEWS: Mention multi-target debugging, "info connections", and
12113 "add-inferior -no-connection".
12114
12115 2020-01-10 Pedro Alves <palves@redhat.com>
12116
12117 * infrun.c: Include "target-connection.h".
12118 (check_multi_target_resumption): New.
12119 (proceed): Call it.
12120 * target-connection.c (make_target_connection_string): Make
12121 extern.
12122 * target-connection.h (make_target_connection_string): Declare.
12123
12124 2020-01-10 Pedro Alves <palves@redhat.com>
12125
12126 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12127 * inferior.c (uiout_field_connection): New function.
12128 (print_inferior): Add new "connection-id" column.
12129 (add_inferior_command): Show connection number/string of added
12130 inferior.
12131 * process-stratum-target.h
12132 (process_stratum_target::connection_string): New virtual method.
12133 (process_stratum_target::connection_number): New field.
12134 * remote.c (remote_target::connection_string): New override.
12135 * target-connection.c: New file.
12136 * target-connection.h: New file.
12137 * target.c (decref_target): Remove process_stratum targets from
12138 the connection list.
12139 (target_stack::push): Add process_stratum targets to the
12140 connection list.
12141
12142 2020-01-10 Pedro Alves <palves@redhat.com>
12143
12144 Revert:
12145 2016-04-12 Pedro Alves <palves@redhat.com>
12146 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12147 Remove references to name.
12148 * serial.h (struct serial) <name>: Delete.
12149
12150 2020-01-10 Pedro Alves <palves@redhat.com>
12151
12152 * gdbarch-selftests.c (register_to_value_test): Remove "target
12153 already pushed" check.
12154
12155 2020-01-10 Pedro Alves <palves@redhat.com>
12156 John Baldwin <jhb@FreeBSD.org>
12157
12158 * aarch64-linux-nat.c
12159 (aarch64_linux_nat_target::thread_architecture): Adjust.
12160 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12161 (task_command_1): Likewise.
12162 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12163 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12164 (aix_thread_target::store_registers)
12165 (aix_thread_target::thread_alive): Adjust.
12166 * amd64-fbsd-tdep.c: Include "inferior.h".
12167 (amd64fbsd_get_thread_local_address): Pass down target.
12168 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12169 thread's gdbarch instead of target_gdbarch.
12170 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12171 get_last_target_status.
12172 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12173 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12174 inferiors.
12175 (update_inserted_breakpoint_locations): Skip if inferiors with no
12176 execution.
12177 (update_global_location_list): When handling moribund locations,
12178 find representative inferior for location's pspace, and use thread
12179 count of its process_stratum target.
12180 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12181 * bsd-uthread.c (bsd_uthread_target::wait): Use
12182 as_process_stratum_target and adjust thread_change_ptid and
12183 add_thread calls.
12184 (bsd_uthread_target::update_thread_list): Use
12185 as_process_stratum_target and adjust find_thread_ptid,
12186 thread_change_ptid and add_thread calls.
12187 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12188 find_thread_ptid call.
12189 * corelow.c (add_to_thread_list): Adjust add_thread call.
12190 (core_target_open): Adjust add_thread_silent and thread_count
12191 calls.
12192 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12193 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12194 * event-top.c (async_disconnect): Pop targets from all inferiors.
12195 * exec.c (add_target_sections): Push exec target on all inferiors
12196 sharing the program space.
12197 (remove_target_sections): Remove the exec target from all
12198 inferiors sharing the program space.
12199 (exec_on_vfork): New.
12200 * exec.h (exec_on_vfork): Declare.
12201 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12202 Pass it down.
12203 (fbsd_nat_target::update_thread_list): Adjust.
12204 (fbsd_nat_target::resume): Adjust.
12205 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12206 down.
12207 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12208 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12209 get_thread_arch_regcache call.
12210 * fork-child.c (gdb_startup_inferior): Pass target down to
12211 startup_inferior and set_executing.
12212 * gdbthread.h (struct process_stratum_target): Forward declare.
12213 (add_thread, add_thread_silent, add_thread_with_info)
12214 (in_thread_list): Add process_stratum_target parameter.
12215 (find_thread_ptid(inferior*, ptid_t)): New overload.
12216 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12217 parameter.
12218 (all_threads()): Delete overload.
12219 (all_threads, all_non_exited_threads): Add process_stratum_target
12220 parameter.
12221 (all_threads_safe): Use brace initialization.
12222 (thread_count): Add process_stratum_target parameter.
12223 (set_resumed, set_running, set_stop_requested, set_executing)
12224 (threads_are_executing, finish_thread_state): Add
12225 process_stratum_target parameter.
12226 (switch_to_thread): Use is_current_thread.
12227 * i386-fbsd-tdep.c: Include "inferior.h".
12228 (i386fbsd_get_thread_local_address): Pass down target.
12229 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12230 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12231 have_inferiors check.
12232 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12233 (inf_ptrace_target::attach): Adjust.
12234 * infcall.c (run_inferior_call): Adjust.
12235 * infcmd.c (run_command_1): Pass target to
12236 scoped_finish_thread_state.
12237 (proceed_thread_callback): Skip inferiors with no execution.
12238 (continue_command): Rename 'all_threads' local to avoid hiding
12239 'all_threads' function. Adjust get_last_target_status call.
12240 (prepare_one_step): Adjust set_running call.
12241 (signal_command): Use user_visible_resume_target. Compare thread
12242 pointers instead of inferior_ptid.
12243 (info_program_command): Adjust to pass down target.
12244 (attach_command): Mark target's 'thread_executing' flag.
12245 (stop_current_target_threads_ns): New, factored out from ...
12246 (interrupt_target_1): ... this. Switch inferior before making
12247 target calls.
12248 * inferior-iter.h
12249 (struct all_inferiors_iterator, struct all_inferiors_range)
12250 (struct all_inferiors_safe_range)
12251 (struct all_non_exited_inferiors_range): Filter on
12252 process_stratum_target too. Remove explicit.
12253 * inferior.c (inferior::inferior): Push dummy target on target
12254 stack.
12255 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12256 Add process_stratum_target parameter, and pass it down.
12257 (have_live_inferiors): Adjust.
12258 (switch_to_inferior_and_push_target): New.
12259 (add_inferior_command, clone_inferior_command): Handle
12260 "-no-connection" parameter. Use
12261 switch_to_inferior_and_push_target.
12262 (_initialize_inferior): Mention "-no-connection" option in
12263 the help of "add-inferior" and "clone-inferior" commands.
12264 * inferior.h: Include "process-stratum-target.h".
12265 (interrupt_target_1): Use bool.
12266 (struct inferior) <push_target, unpush_target, target_is_pushed,
12267 find_target_beneath, top_target, process_target, target_at,
12268 m_stack>: New.
12269 (discard_all_inferiors): Delete.
12270 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12271 (all_inferiors, all_non_exited_inferiors): Add
12272 process_stratum_target parameter.
12273 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12274 (target_last_proc_target): New global.
12275 (follow_fork_inferior): Push target on new inferior. Pass target
12276 to add_thread_silent. Call exec_on_vfork. Handle target's
12277 reference count.
12278 (follow_fork): Adjust get_last_target_status call. Also consider
12279 target.
12280 (follow_exec): Push target on new inferior.
12281 (struct execution_control_state) <target>: New field.
12282 (user_visible_resume_target): New.
12283 (do_target_resume): Call target_async.
12284 (resume_1): Set target's threads_executing flag. Consider resume
12285 target.
12286 (commit_resume_all_targets): New.
12287 (proceed): Also consider resume target. Skip threads of inferiors
12288 with no execution. Commit resumtion in all targets.
12289 (start_remote): Pass current inferior to wait_for_inferior.
12290 (infrun_thread_stop_requested): Consider target as well. Pass
12291 thread_info pointer to clear_inline_frame_state instead of ptid.
12292 (infrun_thread_thread_exit): Consider target as well.
12293 (random_pending_event_thread): New inferior parameter. Use it.
12294 (do_target_wait): Rename to ...
12295 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12296 down.
12297 (threads_are_resumed_pending_p, do_target_wait): New.
12298 (prepare_for_detach): Adjust calls.
12299 (wait_for_inferior): New inferior parameter. Handle it. Use
12300 do_target_wait_1 instead of do_target_wait.
12301 (fetch_inferior_event): Adjust. Switch to representative
12302 inferior. Pass target down.
12303 (set_last_target_status): Add process_stratum_target parameter.
12304 Save target in global.
12305 (get_last_target_status): Add process_stratum_target parameter and
12306 handle it.
12307 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12308 (context_switch): Check inferior_ptid == null_ptid before calling
12309 inferior_thread().
12310 (get_inferior_stop_soon): Pass down target.
12311 (wait_one): Rename to ...
12312 (poll_one_curr_target): ... this.
12313 (struct wait_one_event): New.
12314 (wait_one): New.
12315 (stop_all_threads): Adjust.
12316 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12317 event's target.
12318 (switch_back_to_stepped_thread): Also consider target.
12319 (print_stop_event): Update.
12320 (normal_stop): Update. Also consider the resume target.
12321 * infrun.h (wait_for_inferior): Remove declaration.
12322 (user_visible_resume_target): New declaration.
12323 (get_last_target_status, set_last_target_status): New
12324 process_stratum_target parameter.
12325 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12326 process_stratum_target parameter, and use it.
12327 (clear_inline_frame_state (thread_info*)): New.
12328 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12329 process_stratum_target parameter.
12330 (clear_inline_frame_state (thread_info*)): Declare.
12331 * linux-fork.c (delete_checkpoint_command): Pass target down to
12332 find_thread_ptid.
12333 (checkpoint_command): Adjust.
12334 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12335 instead of just tweaking inferior_ptid.
12336 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12337 (exit_lwp): Pass target down to find_thread_ptid.
12338 (attach_proc_task_lwp_callback): Pass target down to
12339 add_thread/set_running/set_executing.
12340 (linux_nat_target::attach): Pass target down to
12341 thread_change_ptid.
12342 (get_detach_signal): Pass target down to find_thread_ptid.
12343 Consider last target status's target.
12344 (linux_resume_one_lwp_throw, resume_lwp)
12345 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12346 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12347 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12348 (linux_nat_target::async_wait_fd): New.
12349 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12350 target down.
12351 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12352 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12353 * linux-thread-db.c (struct thread_db_info::process_target): New
12354 field.
12355 (add_thread_db_info): Save target.
12356 (get_thread_db_info): New process_stratum_target parameter. Also
12357 match target.
12358 (delete_thread_db_info): New process_stratum_target parameter.
12359 Also match target.
12360 (thread_from_lwp): Adjust to pass down target.
12361 (thread_db_notice_clone): Pass down target.
12362 (check_thread_db_callback): Pass down target.
12363 (try_thread_db_load_1): Always push the thread_db target.
12364 (try_thread_db_load, record_thread): Pass target down.
12365 (thread_db_target::detach): Pass target down. Always unpush the
12366 thread_db target.
12367 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12368 target down. Always unpush the thread_db target.
12369 (find_new_threads_callback, thread_db_find_new_threads_2)
12370 (thread_db_target::update_thread_list): Pass target down.
12371 (thread_db_target::pid_to_str): Pass current inferior down.
12372 (thread_db_target::get_thread_local_address): Pass target down.
12373 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12374 target down.
12375 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12376 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12377 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12378 (procfs_init_inferior): Rename to ...
12379 (procfs_target::procfs_init_inferior): ... this and adjust.
12380 (procfs_target::create_inferior, procfs_notice_thread)
12381 (procfs_do_thread_registers): Adjust.
12382 * ppc-fbsd-tdep.c: Include "inferior.h".
12383 (ppcfbsd_get_thread_local_address): Pass down target.
12384 * proc-service.c (ps_xfer_memory): Switch current inferior and
12385 program space as well.
12386 (get_ps_regcache): Pass target down.
12387 * process-stratum-target.c
12388 (process_stratum_target::thread_address_space)
12389 (process_stratum_target::thread_architecture): Pass target down.
12390 * process-stratum-target.h
12391 (process_stratum_target::threads_executing): New field.
12392 (as_process_stratum_target): New.
12393 * ravenscar-thread.c
12394 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12395 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12396 down.
12397 * record-btrace.c (record_btrace_target::info_record): Adjust.
12398 (record_btrace_target::record_method)
12399 (record_btrace_target::record_is_replaying)
12400 (record_btrace_target::fetch_registers)
12401 (get_thread_current_frame_id, record_btrace_target::resume)
12402 (record_btrace_target::wait, record_btrace_target::stop): Pass
12403 target down.
12404 * record-full.c (record_full_wait_1): Switch to event thread.
12405 Pass target down.
12406 * regcache.c (regcache::regcache)
12407 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12408 process_stratum_target parameter and handle it.
12409 (current_thread_target): New global.
12410 (get_thread_regcache): Add process_stratum_target parameter and
12411 handle it. Switch inferior before calling target method.
12412 (get_thread_regcache): Pass target down.
12413 (get_thread_regcache_for_ptid): Pass target down.
12414 (registers_changed_ptid): Add process_stratum_target parameter and
12415 handle it.
12416 (registers_changed_thread, registers_changed): Pass target down.
12417 (test_get_thread_arch_aspace_regcache): New.
12418 (current_regcache_test): Define a couple local test_target_ops
12419 instances and use them for testing.
12420 (readwrite_regcache): Pass process_stratum_target parameter.
12421 (cooked_read_test, cooked_write_test): Pass mock_target down.
12422 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12423 (get_thread_arch_aspace_regcache): Add process_stratum_target
12424 parameter.
12425 (regcache::target): New method.
12426 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12427 (regcache::registers_changed_ptid): Add process_stratum_target
12428 parameter.
12429 (regcache::m_target): New field.
12430 (registers_changed_ptid): Add process_stratum_target parameter.
12431 * remote.c (remote_state::supports_vCont_probed): New field.
12432 (remote_target::async_wait_fd): New method.
12433 (remote_unpush_and_throw): Add remote_target parameter.
12434 (get_current_remote_target): Adjust.
12435 (remote_target::remote_add_inferior): Push target.
12436 (remote_target::remote_add_thread)
12437 (remote_target::remote_notice_new_inferior)
12438 (get_remote_thread_info): Pass target down.
12439 (remote_target::update_thread_list): Skip threads of inferiors
12440 bound to other targets. (remote_target::close): Don't discard
12441 inferiors. (remote_target::add_current_inferior_and_thread)
12442 (remote_target::process_initial_stop_replies)
12443 (remote_target::start_remote)
12444 (remote_target::remote_serial_quit_handler): Pass down target.
12445 (remote_target::remote_unpush_target): New remote_target
12446 parameter. Unpush the target from all inferiors.
12447 (remote_target::remote_unpush_and_throw): New remote_target
12448 parameter. Pass it down.
12449 (remote_target::open_1): Check whether the current inferior has
12450 execution instead of checking whether any inferior is live. Pass
12451 target down.
12452 (remote_target::remote_detach_1): Pass down target. Use
12453 remote_unpush_target.
12454 (extended_remote_target::attach): Pass down target.
12455 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12456 (remote_target::append_resumption): Pass down target.
12457 (remote_target::append_pending_thread_resumptions)
12458 (remote_target::remote_resume_with_hc, remote_target::resume)
12459 (remote_target::commit_resume): Pass down target.
12460 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12461 (remote_target::interrupt_query)
12462 (remote_target::remove_new_fork_children)
12463 (remote_target::check_pending_events_prevent_wildcard_vcont)
12464 (remote_target::remote_parse_stop_reply)
12465 (remote_target::process_stop_reply): Pass down target.
12466 (first_remote_resumed_thread): New remote_target parameter. Pass
12467 it down.
12468 (remote_target::wait_as): Pass down target.
12469 (unpush_and_perror): New remote_target parameter. Pass it down.
12470 (remote_target::readchar, remote_target::remote_serial_write)
12471 (remote_target::getpkt_or_notif_sane_1)
12472 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12473 down target.
12474 (remote_target::mourn_inferior): Pass down target. Use
12475 remote_unpush_target.
12476 (remote_target::core_of_thread)
12477 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12478 (remote_target::pid_to_exec_file)
12479 (remote_target::thread_handle_to_thread_info): Pass down target.
12480 (remote_target::async_wait_fd): New.
12481 * riscv-fbsd-tdep.c: Include "inferior.h".
12482 (riscv_fbsd_get_thread_local_address): Pass down target.
12483 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12484 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12485 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12486 Adjust.
12487 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12488 * solib-svr4.c (enable_break): Pass down target.
12489 * spu-multiarch.c (parse_spufs_run): Pass down target.
12490 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12491 * target-delegates.c: Regenerate.
12492 * target.c (g_target_stack): Delete.
12493 (current_top_target): Return the current inferior's top target.
12494 (target_has_execution_1): Refer to the passed-in inferior's top
12495 target.
12496 (target_supports_terminal_ours): Check whether the initial
12497 inferior was already created.
12498 (decref_target): New.
12499 (target_stack::push): Incref/decref the target.
12500 (push_target, push_target, unpush_target): Adjust.
12501 (target_stack::unpush): Defref target.
12502 (target_is_pushed): Return bool. Adjust to refer to the current
12503 inferior's target stack.
12504 (dispose_inferior): Delete, and inline parts ...
12505 (target_preopen): ... here. Only dispose of the current inferior.
12506 (target_detach): Hold strong target reference while detaching.
12507 Pass target down.
12508 (target_thread_name): Add assertion.
12509 (target_resume): Pass down target.
12510 (target_ops::beneath, find_target_at): Adjust to refer to the
12511 current inferior's target stack.
12512 (get_dummy_target): New.
12513 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12514 has a thread running.
12515 (initialize_targets): Rename to ...
12516 (_initialize_target): ... this.
12517 * target.h: Include "gdbsupport/refcounted-object.h".
12518 (struct target_ops): Inherit refcounted_object.
12519 (target_ops::shortname, target_ops::longname): Make const.
12520 (target_ops::async_wait_fd): New method.
12521 (decref_target): Declare.
12522 (struct target_ops_ref_policy): New.
12523 (target_ops_ref): New typedef.
12524 (get_dummy_target): Declare function.
12525 (target_is_pushed): Return bool.
12526 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12527 (all_matching_threads_iterator::all_matching_threads_iterator):
12528 Handle filter target.
12529 * thread-iter.h (struct all_matching_threads_iterator, struct
12530 all_matching_threads_range, class all_non_exited_threads_range):
12531 Filter by target too. Remove explicit.
12532 * thread.c (threads_executing): Delete.
12533 (inferior_thread): Pass down current inferior.
12534 (clear_thread_inferior_resources): Pass down thread pointer
12535 instead of ptid_t.
12536 (add_thread_silent, add_thread_with_info, add_thread): Add
12537 process_stratum_target parameter. Use it for thread and inferior
12538 searches.
12539 (is_current_thread): New.
12540 (thread_info::deletable): Use it.
12541 (find_thread_ptid, thread_count, in_thread_list)
12542 (thread_change_ptid, set_resumed, set_running): New
12543 process_stratum_target parameter. Pass it down.
12544 (set_executing): New process_stratum_target parameter. Pass it
12545 down. Adjust reference to 'threads_executing'.
12546 (threads_are_executing): New process_stratum_target parameter.
12547 Adjust reference to 'threads_executing'.
12548 (set_stop_requested, finish_thread_state): New
12549 process_stratum_target parameter. Pass it down.
12550 (switch_to_thread): Also match inferior.
12551 (switch_to_thread): New process_stratum_target parameter. Pass it
12552 down.
12553 (update_threads_executing): Reimplement.
12554 * top.c (quit_force): Pop targets from all inferior.
12555 (gdb_init): Don't call initialize_targets.
12556 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12557 Declare.
12558 (windows_add_thread, windows_delete_thread): Adjust.
12559 (get_windows_debug_event): Rename to ...
12560 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12561 * tracefile-tfile.c (tfile_target_open): Pass down target.
12562 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12563 Forward declare.
12564 (switch_to_thread): Add process_stratum_target parameter.
12565 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12566 parameter. Use it.
12567 (mi_on_resume): Pass target down.
12568 * nat/fork-inferior.c (startup_inferior): Add
12569 process_stratum_target parameter. Pass it down.
12570 * nat/fork-inferior.h (startup_inferior): Add
12571 process_stratum_target parameter.
12572 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12573
12574 2020-01-10 Pedro Alves <palves@redhat.com>
12575
12576 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12577 directly. Instead find the first thread in the thread list and
12578 use switch_to_thread.
12579
12580 2020-01-10 Pedro Alves <palves@redhat.com>
12581
12582 * remote.c (remote_target::remote_add_inferior): Don't bind a
12583 process to the current inferior if the current inferior is already
12584 bound to a process.
12585
12586 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12587 Pedro Alves <palves@redhat.com>
12588
12589 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12590 If no process is specified, return null_ptid instead of
12591 inferior_ptid.
12592 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12593 TARGET_WAITKIND_SIGNALLED with no pid.
12594
12595 2020-01-10 Pedro Alves <palves@redhat.com>
12596
12597 * remote.c (first_remote_resumed_thread): New.
12598 (remote_target::wait_as): Use it as default event_ptid instead of
12599 inferior_ptid.
12600
12601 2020-01-10 Pedro Alves <palves@redhat.com>
12602
12603 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12604
12605 2020-01-10 Pedro Alves <palves@redhat.com>
12606
12607 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12608 not -1.
12609
12610 2020-01-10 Pedro Alves <palves@redhat.com>
12611
12612 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12613 ptid to get_last_target_status.
12614 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12615 ptid to get_last_target_status.
12616 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12617 get_last_target_status.
12618 (info_program_command): Don't pass a target_waitstatus to
12619 get_last_target_status.
12620 * infrun.c (init_wait_for_inferior): Use
12621 nullify_last_target_wait_ptid.
12622 (get_last_target_status): Handle nullptr arguments.
12623 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12624 (print_stop_event): Don't pass a ptid to get_last_target_status.
12625 (normal_stop): Don't pass a ptid to get_last_target_status.
12626 * infrun.h (get_last_target_status, set_last_target_status): Move
12627 comments here and update.
12628 (nullify_last_target_wait_ptid): Declare.
12629 * linux-fork.c (fork_load_infrun_state): Remove local extern
12630 declaration of nullify_last_target_wait_ptid.
12631 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12632 to get_last_target_status.
12633
12634 2020-01-10 Pedro Alves <palves@redhat.com>
12635
12636 * gdbthread.h (scoped_restore_current_thread)
12637 <dont_restore, restore, m_dont_restore>: Declare.
12638 * thread.c (thread_alive): Add assertion. Return bool.
12639 (switch_to_thread_if_alive): New.
12640 (prune_threads): Switch inferior/thread.
12641 (print_thread_info_1): Switch thread before calling target methods.
12642 (scoped_restore_current_thread::restore): New, factored out from
12643 ...
12644 (scoped_restore_current_thread::~scoped_restore_current_thread):
12645 ... this.
12646 (scoped_restore_current_thread::scoped_restore_current_thread):
12647 Add assertion.
12648 (thread_apply_all_command, thread_select): Use
12649 switch_to_thread_if_alive.
12650 * infrun.c (proceed, restart_threads, handle_signal_stop)
12651 (switch_back_to_stepped_thread): Switch current thread before
12652 calling target methods.
12653
12654 2020-01-10 Pedro Alves <palves@redhat.com>
12655
12656 * inferior.c (switch_to_inferior_no_thread): New function,
12657 factored out from ...
12658 (inferior_command): ... here.
12659 * inferior.h (switch_to_inferior_no_thread): Declare.
12660 * mi/mi-main.c (run_one_inferior): Use
12661 switch_to_inferior_no_thread.
12662
12663 2020-01-10 Pedro Alves <palves@redhat.com>
12664
12665 * infcmd.c (kill_command): Remove dead code.
12666
12667 2020-01-10 Pedro Alves <palves@redhat.com>
12668
12669 * remote.c (remote_target::mourn_inferior): No longer check
12670 whether the target is running.
12671
12672 2020-01-10 Pedro Alves <palves@redhat.com>
12673
12674 * corelow.c (core_target::has_execution): Change parameter type to
12675 inferior pointer.
12676 * inferior.c (number_of_live_inferiors): Use
12677 inferior::has_execution instead of target_has_execution_1.
12678 * inferior.h (inferior::has_execution): New.
12679 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12680 inferior::has_execution instead of target_has_execution_1.
12681 * process-stratum-target.c
12682 (process_stratum_target::has_execution): Change parameter type to
12683 inferior pointer. Check the inferior's PID instead of
12684 inferior_ptid.
12685 * process-stratum-target.h
12686 (process_stratum_target::has_execution): Change parameter type to
12687 inferior pointer.
12688 * record-full.c (record_full_core_target::has_execution): Change
12689 parameter type to inferior pointer.
12690 * target.c (target_has_execution_1): Change parameter type to
12691 inferior pointer.
12692 (target_has_execution_current): Adjust.
12693 * target.h (target_ops::has_execution): Change parameter type to
12694 inferior pointer.
12695 (target_has_execution_1): Change parameter type to inferior
12696 pointer. Change return type to bool.
12697 * tracefile.h (tracefile_target::has_execution): Change parameter
12698 type to inferior pointer.
12699
12700 2020-01-10 Pedro Alves <palves@redhat.com>
12701
12702 * exceptions.c (print_flush): Remove current_top_target() check.
12703
12704 2020-01-10 Pedro Alves <palves@redhat.com>
12705
12706 * remote.c (show_remote_exec_file): Show the current inferior's
12707 exec-file instead of the command variable's value.
12708
12709 2020-01-10 Pedro Alves <palves@redhat.com>
12710
12711 * record-full.c (record_full_resume_ptid): New global.
12712 (record_full_target::resume): Set it.
12713 (record_full_wait_1): Use record_full_resume_ptid instead of
12714 inferior_ptid.
12715
12716 2020-01-10 Pedro Alves <palves@redhat.com>
12717
12718 * gdbthread.h (scoped_restore_current_thread)
12719 <dont_restore, restore, m_dont_restore>: Declare.
12720 * thread.c (thread_alive): Add assertion. Return bool.
12721 (switch_to_thread_if_alive): New.
12722 (prune_threads): Switch inferior/thread.
12723 (print_thread_info_1): Switch thread before calling target methods.
12724 (scoped_restore_current_thread::restore): New, factored out from
12725 ...
12726 (scoped_restore_current_thread::~scoped_restore_current_thread):
12727 ... this.
12728 (scoped_restore_current_thread::scoped_restore_current_thread):
12729 Add assertion.
12730 (thread_apply_all_command, thread_select): Use
12731 switch_to_thread_if_alive.
12732
12733 2020-01-10 George Barrett <bob@bob131.so>
12734
12735 * stap-probe.c (stap_modify_semaphore): Don't check for null
12736 semaphores.
12737 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12738 for null semaphores.
12739
12740 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12741
12742 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12743 all source windows, and maintain horizontal scroll status while
12744 doing so.
12745
12746 2020-01-09 Tom Tromey <tom@tromey.com>
12747
12748 PR tui/18932:
12749 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12750 update_source_window, not print_source_lines.
12751
12752 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12753
12754 * tui/tui.c (tui_enable): Register tui hooks after calling
12755 tui_display_main.
12756
12757 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12758
12759 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12760
12761 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12762
12763 * thread.c (print_thread_info_1): Fix indentation.
12764
12765 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12766
12767 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12768 unique_xmalloc_ptr outside the if to always free the demangled name.
12769
12770 2020-01-08 Tom Tromey <tromey@adacore.com>
12771
12772 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12773 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12774 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12775 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12776 Remove.
12777 (section_offsets): New typedef.
12778 * symtab.c (fixup_section, get_msymbol_address): Update.
12779 * symmisc.c (dump_msymbols): Update.
12780 * symfile.h (relative_addr_info_to_section_offsets)
12781 (symfile_map_offsets_to_segments): Update.
12782 * symfile.c (build_section_addr_info_from_objfile)
12783 (init_objfile_sect_indices): Update.
12784 (struct place_section_arg): Change type of "offsets".
12785 (place_section): Update.
12786 (relative_addr_info_to_section_offsets): Change type of
12787 "section_offsets". Remove "num_sections" parameter.
12788 (default_symfile_offsets, syms_from_objfile_1)
12789 (set_objfile_default_section_offset): Update.
12790 (reread_symbols): No need to preserve section offsets by hand.
12791 (symfile_map_offsets_to_segments): Change type of "offsets".
12792 * stap-probe.c (relocate_address): Update.
12793 * stabsread.h (process_one_symbol): Update.
12794 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12795 (solib_target_relocate_section_addresses): Update.
12796 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12797 Update.
12798 * solib-frv.c (frv_relocate_main_executable): Update.
12799 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12800 * solib-aix.c (solib_aix_get_section_offsets): Change return
12801 type.
12802 (solib_aix_solib_create_inferior_hook): Update.
12803 * remote.c (remote_target::get_offsets): Update.
12804 * psymtab.c (find_pc_sect_psymtab): Update.
12805 * psympriv.h (struct partial_symbol) <address, text_low,
12806 text_high>: Update.
12807 * objfiles.h (obj_section_offset): Update.
12808 (struct objfile) <section_offsets>: Change type.
12809 <num_sections>: Remove.
12810 (objfile_relocate): Update.
12811 * objfiles.c (entry_point_address_query): Update
12812 (relocate_one_symbol): Change type of "section_offsets".
12813 (objfile_relocate1, objfile_relocate1): Change type of
12814 "new_offsets".
12815 (objfile_rebase1): Update.
12816 * mipsread.c (mipscoff_symfile_read): Update.
12817 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12818 parameter.
12819 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12820 (parse_external, psymtab_to_symtab_1): Update.
12821 * machoread.c (macho_symfile_offsets): Update.
12822 * ia64-tdep.c (ia64_find_unwind_table): Update.
12823 * hppa-tdep.c (read_unwind_info): Update.
12824 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12825 * dwarf2read.c (create_addrmap_from_index)
12826 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12827 (process_psymtab_comp_unit_reader, add_partial_symbol)
12828 (add_partial_subprogram, process_full_comp_unit)
12829 (read_file_scope, read_func_scope, read_lexical_block_scope)
12830 (read_call_site_scope, dwarf2_rnglists_process)
12831 (dwarf2_ranges_process, dwarf2_ranges_read)
12832 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12833 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12834 Update.
12835 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12836 Update.
12837 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12838 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12839 (process_one_symbol): Change type of "section_offsets".
12840 * ctfread.c (get_objfile_text_range): Update.
12841 * coffread.c (coff_symtab_read, enter_linenos)
12842 (process_coff_symbol): Update.
12843 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12844 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12845
12846 2020-01-08 Tom Tromey <tromey@adacore.com>
12847
12848 * dwarf2read.c (parse_macro_definition): Use std::string.
12849 (parse_macro_definition): Likewise.
12850
12851 2020-01-08 Tom Tromey <tromey@adacore.com>
12852
12853 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12854 (ATTR_ALLOC_CHUNK): Remove.
12855
12856 2020-01-08 Tom Tromey <tromey@adacore.com>
12857
12858 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12859
12860 2020-01-08 Tom Tromey <tromey@adacore.com>
12861
12862 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12863 (dwarf2_compute_name, open_dwo_file): Likewise.
12864 (process_enumeration_scope): Use std::vector.
12865 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12866 (partial_die_info::fixup, dwarf2_start_subfile)
12867 (guess_full_die_structure_name, dwarf2_name): Likewise.
12868 (determine_prefix): Update.
12869 (guess_full_die_structure_name): Make return type const.
12870 (partial_die_full_name): Return unique_xmalloc_ptr.
12871 (DW_FIELD_ALLOC_CHUNK): Remove.
12872
12873 2020-01-07 Tom Tromey <tromey@adacore.com>
12874
12875 PR build/24937:
12876 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12877
12878 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12879
12880 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12881
12882 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12883
12884 * stack.c (print_frame_info): Move disassemble_next_line code
12885 inside source_print block.
12886
12887 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12888
12889 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12890 gdb/signals.h, as we are now using native signal symbols.
12891
12892 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12893
12894 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12895 overflow by an early check of content vs threshold.
12896 * tui/tui-source.c (tui_source_window::line_is_displayed):
12897 Likewise.
12898
12899 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12900
12901 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12902
12903 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12904
12905 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12906 export table if no section contains it's RVA.
12907
12908 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12909
12910 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12911
12912 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12913
12914 * source.c (print_source_lines_base): Set last_line_listed.
12915
12916 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12917
12918 * tui/tui-disasm.c: Remove trailing spaces.
12919
12920 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12921 Pedro Alves <palves@redhat.com>
12922
12923 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12924 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12925 (windows_gdb_signal_to_target): New function, uses the above
12926 enumeration to convert GDB internal signal codes to equivalent
12927 Windows codes.
12928 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12929 * windows-nat.c: Include "gdb_wait.h".
12930 (get_windows_debug_event): Extract the fatal exception from the
12931 exit status and convert to the equivalent Posix signal number.
12932 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12933 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12934 * gdbsupport/gdb_wait.c: New file, implements
12935 windows_status_to_termsig.
12936 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12937 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12938
12939 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12940
12941 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12942 show_layout.
12943
12944 2020-01-05 Luis Machado <luis.machado@linaro.org>
12945
12946 * aarch64-linux-nat.c
12947 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12948 and bfd_mach_aarch64.
12949
12950 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12951
12952 * ui-file.c (stdio_file::can_emit_style_escape)
12953 (tee_file::can_emit_style_escape): Ensure style is used also on
12954 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12955 to gdb_stdout.
12956 * main.c (set_gdb_data_directory): Use file style to output the
12957 warning that the given pathname is not a directory.
12958 * top.c (show_history_filename, gdb_safe_append_history)
12959 (show_gdb_datadir): Use file style.
12960
12961 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12962
12963 * solib-target.c (struct lm_info_target):
12964 Change offsets to be a unique_xmalloc_ptr.
12965 (solib_target_relocate_section_addresses): Update.
12966
12967 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12968
12969 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12970
12971 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12972
12973 * MAINTAINERS (Write After Approval): Add myself.
12974
12975 2020-01-02 Luis Machado <luis.machado@linaro.org>
12976
12977 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12978 Cell BE architecture.
12979 * target.h (struct target_ops) <thread_architecture>: Likewise.
12980
12981 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12982
12983 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12984
12985 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12986
12987 * MAINTAINERS (Write After Approval): Add myself.
12988
12989 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12990
12991 * gdbarch.sh: Update copyright year range of generated files.
12992
12993 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12994
12995 Update copyright year range in all GDB files.
12996
12997 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12998
12999 * copyright.py: Convert to Python 3.
13000
13001 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13002
13003 * copyright.py: Adapt after move of gnulib directory from gdb
13004 directory to toplevel directory.
13005
13006 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13007
13008 * copyright.py (main): Exit if run from the wrong directory.
13009
13010 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13011
13012 * top.c (print_gdb_version): Change copyright year to 2020.
13013
13014 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13015
13016 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13017
13018 For older changes see ChangeLog-2019.
13019 \f
13020 Local Variables:
13021 mode: change-log
13022 left-margin: 8
13023 fill-column: 74
13024 version-control: never
13025 coding: utf-8
13026 End: