Don't use PyLong_FromUnsignedLong
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-15 Tom Tromey <tromey@adacore.com>
2
3 * python/python.c (gdbpy_parameter_value): Use
4 gdb_py_object_from_ulongest.
5
6 2020-09-15 Tom Tromey <tromey@adacore.com>
7
8 * python/py-infevents.c (create_register_changed_event_object):
9 Use gdb_py_object_from_longest.
10 * python/py-exitedevent.c (create_exited_event_object): Use
11 gdb_py_object_from_longest.
12
13 2020-09-15 Tom Tromey <tromey@adacore.com>
14
15 * python/python.c (gdbpy_parameter_value): Use
16 gdb_py_object_from_longest.
17 * python/py-type.c (convert_field, typy_range): Use
18 gdb_py_object_from_longest.
19 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
20 gdb_py_object_from_longest.
21 * python/py-lazy-string.c (stpy_get_length): Use
22 gdb_py_object_from_longest.
23 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
24 gdb_py_object_from_longest.
25 * python/py-infevents.c (create_memory_changed_event_object): Use
26 gdb_py_object_from_longest.
27 * python/py-inferior.c (infpy_get_num): Use
28 gdb_py_object_from_longest.
29 (infpy_get_pid): Likewise.
30
31 2020-09-15 Tom Tromey <tromey@adacore.com>
32
33 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
34 defines.
35 * python/py-value.c (valpy_long): Use
36 gdb_py_object_from_ulongest.
37 * python/py-symtab.c (salpy_get_pc): Use
38 gdb_py_object_from_ulongest.
39 (salpy_get_last): Likewise.
40 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
41 gdb_py_object_from_ulongest.
42 * python/py-lazy-string.c (stpy_get_address): Use
43 gdb_py_object_from_ulongest.
44 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
45 * python/py-arch.c (archpy_disassemble): Use
46 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
47 error handling.
48
49 2020-09-15 Tom Tromey <tromey@adacore.com>
50
51 * python/python-internal.h (gdb_py_long_from_longest): Remove
52 defines.
53 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
54 * python/py-type.c (convert_field, typy_get_sizeof): Use
55 gdb_py_object_from_longest.
56 * python/py-record-btrace.c (btpy_list_index): Use
57 gdb_py_object_from_longest.
58
59 2020-09-15 Tom Tromey <tromey@adacore.com>
60
61 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
62 * python/py-record.c (recpy_element_number): Use
63 gdb_py_object_from_longest.
64 (recpy_gap_number): Likewise.
65
66 2020-09-15 Tom Tromey <tromey@adacore.com>
67
68 * top.c (ui::ui): Update.
69 (highest_ui_num): Remove.
70 * top.h (struct ui) <num>: Remove.
71
72 2020-09-15 Tom Tromey <tromey@adacore.com>
73
74 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
75 * ui-style.c (ansi_regex_text): Now array.
76 * rust-exp.y (number_regex_text): Now array.
77 * linespec.c (linespec_quote_characters): Now array.
78 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
79 Now arrays.
80
81 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
82
83 * debuginfod-support.c (debuginfod_client_deleter): New.
84 (debuginfod_client_up): New.
85 (debuginfod_init): Return debuginfod_client_up.
86 (debuginfod_source_query): Adjust.
87 (debuginfod_debuginfo_query): Adjust.
88
89 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
90
91 * debuginfod-support.c (debuginfod_source_query): Use
92 make_unique_xstrdup.
93
94 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
95
96 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
97 with `type::instance_flags`.
98
99 2020-09-14 Michael Mullin <masmullin@gmail.com>
100
101 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
102 Remove baton parameter.
103
104 2020-09-14 Pedro Alves <pedro@palves.net>
105
106 * Makefile.in (SELFTESTS_SRCS): Add
107 unittests/enum-flags-selftests.c.
108 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
109 btrace_function_flags instead of enum btrace_function_flag.
110 * compile/compile-c-types.c (convert_qualified): Use
111 enum_flags::raw.
112 * compile/compile-cplus-symbols.c (convert_one_symbol)
113 (convert_symbol_bmsym):
114 * compile/compile-cplus-types.c (compile_cplus_convert_method)
115 (compile_cplus_convert_struct_or_union_methods)
116 (compile_cplus_instance::convert_qualified_base):
117 * go-exp.y (parse_string_or_char): Add cast to int.
118 * unittests/enum-flags-selftests.c: New file.
119 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
120 type to btrace_thread_flags from btrace_thread_flag.
121 (record_btrace_cancel_resume, record_btrace_step_thread): Change
122 local's type to btrace_thread_flags from btrace_thread_flag. Add
123 cast in DEBUG call.
124
125 2020-09-14 Pedro Alves <pedro@palves.net>
126
127 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
128 * gdbtypes.c (address_space_name_to_int): Rename to ...
129 (address_space_name_to_type_instance_flags): ... this.
130 (address_space_int_to_name): Rename to ...
131 (address_space_type_instance_flags_to_name): ... this.
132 * gdbtypes.h (address_space_name_to_int): Rename to ...
133 (address_space_name_to_type_instance_flags): ... this.
134 (address_space_int_to_name): Rename to ...
135 (address_space_type_instance_flags_to_name): ... this.
136 * type-stack.c (type_stack::insert): Adjust to rename.
137 * type-stack.h (type_stack::insert): Likewise.
138
139 2020-09-14 Pedro Alves <pedro@palves.net>
140 Andrew Burgess <andrew.burgess@embecosm.com>
141
142 * avr-tdep.c (avr_address_class_type_flags): Return
143 type_instance_flags.
144 (avr_address_class_type_flags_to_name): Take a
145 type_instance_flags.
146 (avr_address_class_name_to_type_flags): Return bool and take a
147 type_instance_flags.
148 * d-lang.c (build_d_types): Use type::set_instance_flags.
149 * ft32-tdep.c (ft32_address_class_type_flags): Return
150 type_instance_flags.
151 (ft32_address_class_type_flags_to_name): Take a
152 type_instance_flags.
153 (ft32_address_class_name_to_type_flags): Return bool and take a
154 type_instance_flags.
155 (ft32_gdbarch_init): Use type::set_instance_flags.
156 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
157 * gdbarch.h, gdbarch.c: Regenerate.
158 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
159 (address_class_name_to_type_flags): Use type_instance_flags and
160 bool.
161 * gdbtypes.c (address_space_name_to_int)
162 (address_space_int_to_name, make_qualified_type): Use
163 type_instance_flags.
164 (make_qualified_type): Use type_instance_flags and
165 type::set_instance_flags.
166 (make_type_with_address_space, make_cv_type, make_vector_type)
167 (check_typedef): Use type_instance_flags.
168 (recursive_dump_type): Cast type_instance_flags to unsigned for
169 printing.
170 (copy_type_recursive): Use type::set_instance_flags.
171 (gdbtypes_post_init): Use type::set_instance_flags.
172 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
173 <m_instance_flags>: ... this.
174 <instance_flags, set_instance_flags>: New methods.
175 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
176 (SET_TYPE_INSTANCE_FLAGS): New.
177 (address_space_name_to_int, address_space_int_to_name)
178 (make_type_with_address_space): Pass flags using
179 type_instance_flags instead of int.
180 * stabsread.c (cleanup_undefined_types_noname): Use
181 type::set_instance_flags.
182 * s390-tdep.c (s390_address_class_type_flags): Return
183 type_instance_flags.
184 (s390_address_class_type_flags_to_name): Take a
185 type_instance_flags.
186 (s390_address_class_name_to_type_flags): Return bool and take a
187 type_instance_flags.
188 * type-stack.c (type_stack::follow_types): Use
189 type_instance_flags.
190 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
191
192 2020-09-14 Tom Tromey <tromey@adacore.com>
193
194 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
195 * x86-tdep.c (x86_is_thunk_register_name)
196 (x86_in_indirect_branch_thunk): Update.
197 * sparc64-tdep.c (sparc64_fpu_register_names)
198 (sparc64_cp0_register_names, sparc64_register_names)
199 (sparc64_pseudo_register_names): Now const.
200 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
201 cp0_registers_num>: Now const.
202 * sparc-tdep.c (sparc_core_register_names)
203 (sparc32_fpu_register_names, sparc32_cp0_register_names)
204 (sparc32_pseudo_register_names): Now const.
205 (validate_tdesc_registers): Update.
206 * rust-lang.c (rust_extensions): Now const.
207 * p-lang.c (p_extensions): Now const.
208 * objc-lang.c (objc_extensions): Now const.
209 * nto-tdep.c (nto_thread_state_str): Now const.
210 * moxie-tdep.c (moxie_register_names): Now const.
211 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
212 Now const.
213 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
214 (mips_linux_reg_names): Now const.
215 (mips_gdbarch_init): Update.
216 * microblaze-tdep.c (microblaze_register_names): Now const.
217 * m68k-tdep.c (m68k_register_names): Now const.
218 * m32r-tdep.c (m32r_register_names): Now const.
219 * ia64-tdep.c (ia64_register_names): Now const.
220 * i386-tdep.h (struct gdbarch_tdep) <register_names,
221 ymmh_register_names, ymm16h_regnum, mpx_register_names,
222 k_register_names, zmmh_register_names, xmm_avx512_register_names,
223 ymm_avx512_register_names, pkeys_register_names>: Now const.
224 * i386-tdep.c (i386_register_names, i386_zmm_names)
225 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
226 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
227 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
228 * f-lang.c (f_extensions): Now const.
229 * d-lang.c (d_extensions): Now const.
230 * csky-tdep.c (csky_register_names): Now const.
231 * charset.c (default_charset_names, charset_enum): Now const.
232 (_initialize_charset): Update.
233 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
234 const.
235 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
236 (bsd_uthread_solib_loaded): Update.
237 (bsd_uthread_state): Now const.
238 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
239 (amd64_ymm_avx512_names, amd64_ymmh_names)
240 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
241 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
242 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
243 (amd64_dword_names): Now const.
244 * agent.c (can_use_agent_enum): Now const.
245 * ada-tasks.c (task_states, long_task_states): Now const.
246 * ada-lang.c (known_runtime_file_name_patterns)
247 (known_auxiliary_function_name_patterns, attribute_names)
248 (standard_exc, ada_extensions): Now const.
249
250 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
251
252 * bcache.h (struct bcache) <bcache>: Remove constructor.
253 <m_hash_function, m_compare_function>: Remove.
254 <~bcache>: Make virtual.
255 <compare>: Remove static method, introduce virtual method.
256 <default_hash>: Remove.
257 <hash>: New virtual method.
258 * bcache.c (bcache::expand_hash_table): Update.
259 (bcache::insert): Update.
260 (bcache::hash): New.
261 (bcache::compare): Update comment and parameter names.
262 * gdbtypes.c (types_deeply_equal): Update.
263 * psymtab.h (struct psymbol_bcache): New struct.
264 (class psymtab_storage) <psymtab_storage>: Make default.
265 <psymbol_cache>: Change type to psymbol_bcache.
266 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
267 (psymbol_hash): Change to...
268 (psymbol_bcache::hash): ... this.
269 (psymbol_compare): Change to...
270 (psymbol_bcache::compare): ... this.
271
272 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
273
274 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
275 checking for initial lwp.
276
277 2020-09-14 Tom Tromey <tromey@adacore.com>
278
279 * m68k-tdep.c (m68k_extract_return_value): Use
280 pointer_result_regnum.
281 (m68k_store_return_value): Likewise.
282 (m68k_reg_struct_return_p): Handle vectors and arrays.
283 (m68k_return_value): Handle arrays.
284 (m68k_svr4_return_value): Fix single-element aggregate handling.
285 Handle long double. Adjust for embedded ABI.
286 (m68k_svr4_init_abi): Set pointer_result_regnum.
287 (m68k_embedded_init_abi): New function.
288 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
289 (m68k_osabi_sniffer): New function.
290 (_initialize_m68k_tdep): Register osabi sniffer.
291 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
292 member.
293
294 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
295
296 * xml-support.c (xml_fetch_content_from_file): Replace xfree
297 with gdb::unique_xmalloc_ptr<char>.
298
299 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
300
301 * xml-support.h (xml_fetch_another): Change type to be a
302 function_view.
303 (xml_process_xincludes): Remove baton parameter.
304 (xml_fetch_content_from_file): Change baton parameter to
305 dirname.
306 * xml-support.c (struct xinclude_parsing_data)
307 <xinclude_parsing_data>: Remove baton parameter.
308 <fetcher_baton>: Remove.
309 (xinclude_start_include): Adjust.
310 (xml_process_xincludes): Adjust.
311 (xml_fetch_content_from_file): Replace baton parameter with
312 dirname.
313 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
314 (xml_init_syscalls_info): Use a lambda.
315 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
316 (file_read_description_xml): Use a lambda.
317 (fetch_available_features_from_target): Change baton parameter
318 to target_ops.
319 (target_read_description_xml): Use a lambda.
320 (target_fetch_description_xml): Use a lambda.
321 (string_read_description_xml): Update.
322
323 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
324
325 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
326 uses with type::endianity_is_not_default.
327
328 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
329
330 * gdbtypes.h (struct type) <endianity_is_not_default,
331 set_endianity_is_not_default>: New methods.
332 (TYPE_ENDIANITY_NOT_DEFAULT): Use
333 type::endianity_is_not_default, change all write call sites to
334 use type::set_endianity_is_not_default.
335
336 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
337
338 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
339 uses with type::is_fixed_instance.
340
341 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
342
343 * gdbtypes.h (struct type) <is_fixed_instance,
344 set_is_fixed_instance>: New methods.
345 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
346 write call sites to use type::set_is_fixed_instance.
347
348 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
349
350 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
351 uses with type::is_gnu_ifunc.
352
353 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
354
355 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
356 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
357 use type::set_is_gnu_ifunc.
358
359 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
360
361 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
362 uses with type::stub_is_supported.
363
364 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
365
366 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
367 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
368 use type::set_stub_is_supported.
369
370 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
371
372 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
373 uses with type::is_vector.
374
375 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
376
377 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
378 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
379 use type::set_is_vector.
380
381 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
382
383 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
384 uses with type::has_varargs.
385
386 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
387
388 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
389 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
390 use type::set_has_varargs.
391
392 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
393
394 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
395 uses with type::is_prototyped.
396
397 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
398
399 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
400 New methods.
401 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
402 call sites to use type::set_is_prototyped.
403
404 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
405
406 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
407 uses with type::target_is_stub.
408
409 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
410
411 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
412 New methods.
413 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
414 sites to use type::set_target_is_stub.
415
416 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
417
418 * gdbtypes.h (TYPE_STUB): Remove, replace all
419 uses with type::is_stub.
420
421 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
422
423 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
424 (TYPE_STUB): Use type::is_stub, change all write call sites to
425 use type::set_is_stub.
426
427 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
428
429 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
430 type::has_no_signedness.
431
432 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
433
434 * gdbtypes.h (struct type) <has_no_signedness,
435 set_has_no_signedness>: New methods.
436 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
437 call sites to use type::set_has_no_signedness.
438
439 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
440
441 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
442 type::is_unsigned.
443
444 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
445
446 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
447 methods.
448 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
449 sites to use type::set_is_unsigned.
450
451 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
452 Adam Renquinha <arenquinha@cimeq.qc.ca>
453
454 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
455 pointer and stack frame offset when unwinding.
456
457 2020-09-13 Pedro Alves <pedro@palves.net>
458
459 * NEWS: Document "-break-insert --qualified".
460 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
461
462 2020-09-13 Pedro Alves <pedro@palves.net>
463
464 * linespec.c (classify_mtype, compare_msyms): Delete.
465 (search_minsyms_for_name): Remove classification logic. Instead
466 filter out trampoline symbols if we also found an external
467 function of the same name.
468
469 2020-09-13 Joel Brobecker <brobecker@adacore.com>
470
471 * NEWS: Create a new section for the next release branch.
472 Rename the section of the current branch, now that it has
473 been cut.
474
475 2020-09-13 Joel Brobecker <brobecker@adacore.com>
476
477 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
478 * version.in: Bump version to 11.0.50.DATE-git.
479
480 2020-09-12 Joel Brobecker <brobecker@adacore.com>
481
482 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
483
484 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
485 Felix Willgerodt <Felix.Willgerodt@intel.com>
486
487 * gdbarch.sh: Added bfloat16 type.
488 * gdbarch.c: Regenerated.
489 * gdbarch.h: Regenerated.
490 * gdbtypes.c (floatformats_bfloat16): New struct.
491 (gdbtypes_post_init): Add builtin_bfloat16.
492 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
493 (floatformats_bfloat16): New struct.
494 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
495 (i386_ymm_type): Add field "v16_bfloat16"
496 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
497 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
498 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
499 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
500 * features/i386/64bit-avx512.xml: Add bfloat16 type.
501 * features/i386/64bit-avx512.c: Regenerated.
502 * features/i386/64bit-sse.xml: Add bfloat16 type.
503 * features/i386/64bit-sse.c: Regenerated.
504
505 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
506
507 * i386-tdep.c (i386_zmm_type): Fix field names.
508 (i386_ymm_type): Fix field names.
509
510 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
511
512 * breakpoint.c: Fix typo in the help message of the
513 "set breakpoint condition-evaluation" command.
514
515 2020-09-10 Kamil Rytarowski <n54@gmx.com>
516
517 * nbsd-nat.c: Include "nat/netbsd-nat.h".
518 * (nbsd_nat_target::pid_to_exec_file)
519 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
520 (nbsd_nat_target::post_startup_inferior)
521 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
522 (nbsd_add_threads): Switch local code to common gdb/nat functions.
523 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
524 * (nbsd_thread_lister): Remove.
525
526 2020-09-10 Kamil Rytarowski <n54@gmx.com>
527
528 * fork-inferior.c (startup_inferior): Avoid double free.
529
530 2020-09-10 Kamil Rytarowski <n54@gmx.com>
531
532 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
533 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
534
535 2020-09-10 Kamil Rytarowski <n54@gmx.com>
536
537 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
538 * netbsd-nat.c: Include <sys/ptrace.h>.
539 * (netbsd_nat::enable_proc_events): Add.
540
541 2020-09-10 Kamil Rytarowski <n54@gmx.com>
542
543 * netbsd-nat.h: Include "gdbsupport/function-view.h".
544 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
545 (netbsd_nat::for_each_thread): Add.
546 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
547 "gdbsupport/common-debug.h".
548 * (netbsd_nat::netbsd_thread_lister)
549 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
550 (netbsd_nat::for_each_thread): Add.
551
552 2020-09-10 Kamil Rytarowski <n54@gmx.com>
553
554 * netbsd-nat.h: Include <unistd.h>.
555 * (netbsd_nat::pid_to_exec_file): Add.
556 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
557 * (netbsd_nat::pid_to_exec_file) Add.
558
559 2020-09-10 Kamil Rytarowski <n54@gmx.com>
560
561 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
562
563 2020-09-10 Kamil Rytarowski <n54@gmx.com>
564
565 * netbsd-nat.h: New file.
566 * netbsd-nat.c: Likewise.
567
568 2020-09-09 Tom Tromey <tromey@adacore.com>
569
570 * ada-lang.c (remove_extra_symbols): Do not increment when
571 removing an element
572
573 2020-09-08 Tom Tromey <tromey@adacore.com>
574
575 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
576
577 2020-09-08 Tom Tromey <tromey@adacore.com>
578
579 PR win32/25302:
580 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
581 (gdb_bfd_init_data): New function.
582 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
583
584 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
585
586 * infrun.c (fetch_inferior_event): Use
587 `switch_to_target_no_thread` to switch the target.
588
589 2020-09-06 Tom Tromey <tom@tromey.com>
590
591 * symfile.h (dwarf2_free_objfile): Don't declare.
592
593 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
594
595 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
596 to match 16 byte real/complex type generated by Flang compiler.
597
598 2020-09-03 Tom de Vries <tdevries@suse.de>
599
600 PR breakpoint/26546
601 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
602 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
603
604 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
605
606 * maint.c (index_digits): New function.
607 (struct maint_print_section_data): Remove.
608 (print_bfd_section_info): Remove print_data parameter, add arg
609 and index_digits.
610 (print_objfile_section_info): Likewise.
611 (print_bfd_section_info_maybe_relocated): Likewise (plus
612 objfile).
613 (maintenance_info_sections): Adjust calls.
614
615 2020-09-02 Tom Tromey <tromey@adacore.com>
616
617 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
618 for null pointers.
619 (ada_varobj_adjust_for_child_access): Special-case null pointers.
620
621 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
622
623 * bcache.h (struct bcache) <insert>: Change type of `added` to
624 pointer to bool.
625 * bcache.c (bcache::insert): Likewise.
626 * gdbtypes.c (check_types_worklist): Adjust.
627 * psymtab.c (add_psymbol_to_bcache): Adjust.
628
629 2020-08-31 Kevin Buettner <kevinb@redhat.com>
630
631 * corelow.c (unordered_set): Include.
632 (class core_target): Add field 'm_core_unavailable_mappings'.
633 (core_target::build_file_mappings): Print only one warning
634 per inaccessible file. Add unavailable/broken mappings
635 to m_core_unavailable_mappings.
636 (core_target::xfer_partial): Call...
637 (core_target::xfer_memory_via_mappings): New method.
638
639 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
640
641 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
642 type to bool.
643
644 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
645
646 * dwarf2/read.c (struct field_info): Fix indentation.
647
648 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
649
650 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
651 ordering in comment.
652 * frame.c (frame_id_eq): Fix indentation.
653
654 2020-08-31 Scott Linder <scott@scottlinder.com>
655 Simon Marchi <simon.marchi@efficios.com>
656
657 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
658 inline frame ids in outer frame.
659
660 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
661
662 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
663 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
664 (outer_frame_id): Use FID_STACK_OUTER instead of
665 FID_STACK_INVALID.
666 (frame_id_p): Don't check for outer_frame_id.
667
668 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
669
670 * frame-unwind.c (frame_unwind_got_optimized): Don't set
671 regnum/frame in value. Call allocate_value_lazy.
672 * frame.c (frame_unwind_register_value): Use
673 val_print_not_saved.
674
675 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
676
677 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
678
679 2020-08-29 Pedro Alves <pedro@palves.net>
680
681 * progspace.c (print_program_space): Use all_inferiors. Switch to
682 the inferior before calling target_pid_to_str.
683
684 2020-08-28 Tom Tromey <tom@tromey.com>
685
686 * xcoffread.c (xcoff_end_psymtab): Update comment.
687 * dbxread.c (dbx_end_psymtab): Update comment.
688
689 2020-08-28 Tom de Vries <tdevries@suse.de>
690
691 PR breakpoint/26544
692 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
693 event_location.
694 (create_breakpoint): Same.
695 (base_breakpoint_decode_location): Same.
696 (bkpt_create_sals_from_location): Same.
697 (bkpt_decode_location): Same.
698 (bkpt_probe_create_sals_from_location): Same.
699 (bkpt_probe_decode_location): Same.
700 (tracepoint_create_sals_from_location): Same.
701 (tracepoint_decode_location): Same.
702 (tracepoint_probe_decode_location): Same.
703 (strace_marker_create_sals_from_location): Same.
704 (strace_marker_decode_location): Same.
705 (create_sals_from_location_default): Same.
706 (decode_location_default): Same.
707 * breakpoint.h (struct breakpoint_ops): Same.
708 (create_breakpoint): Same.
709 * linespec.h (decode_line_full): Same.
710 * linespec.c (decode_line_full): Same. Throw error if
711 result.size () == 0.
712
713 2020-08-27 Pedro Alves <pedro@palves.net>
714
715 PR gdb/26524
716 * breakpoint.c (until_break_fsm) <location_breakpoint,
717 caller_breakpoint>: Delete fields.
718 <breakpoints>: New field.
719 <until_break_fsm>: Adjust to save a breakpoint vector instead of
720 two individual breakpoints.
721 (until_break_fsm::should_stop): Loop over breakpoints in the
722 breakpoint vector.
723 (until_break_fsm::clean_up): Adjust to clear the breakpoints
724 vector.
725 (until_break_command): Handle location expanding into multiple
726 sals.
727
728 2020-08-27 Pedro Alves <pedro@palves.net>
729
730 PR gdb/26523
731 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
732 bp_until breakpoints user-specified locations. Update intro
733 comment.
734
735 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
736
737 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
738 gdb_bfd_sections): New.
739 * maint.c (print_bfd_section_info): Change param type to
740 maint_print_section_data.
741 (print_objfile_section_info): Likewise.
742 (print_bfd_section_info_maybe_relocated): Likewise.
743 (maintenance_info_sections): Use gdb_bfd_sections.
744
745 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
746
747 * MAINTAINERS: Add ARC target and maintainer.
748
749 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
750
751 * configure.tgt: ARC support for GNU/Linux.
752 * Makefile.in (ALL_TARGET_OBJS): Likewise.
753 * arc-linux-tdep.c: New file.
754 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
755 * arc-tdep.c (arc_write_pc): Use it.
756
757 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
758
759 * arc-tdep.c (arc_check_for_hardware_loop): New.
760 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
761
762 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
763
764 * arc-tdep.h: Include "gdbarch.h".
765
766 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
767
768 * arch/arc.h
769 (arc_gdbarch_features): New class to stir the selection of target XML.
770 (arc_create_target_description): Use FEATURES to choose XML target.
771 (arc_lookup_target_description): Use arc_create_target_description
772 to create _new_ target descriptions or return the already created
773 ones if the FEATURES is the same.
774 * arch/arc.c: Implementation of prototypes described above.
775 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
776 (arc_gdbarch_features_init): Initialize the FEATURES struct.
777 * arc-tdep.c (*_feature_name): Make feature names consistent.
778 (arc_register_feature): A new struct to hold information about
779 registers of a particular target/feature.
780 (arc_check_tdesc_feature): Check if XML provides registers in
781 compliance with ARC_REGISTER_FEATURE structs.
782 (arc_update_acc_reg_names): Add aliases for r58 and r59.
783 (determine_*_reg_feature_set): Which feature name to look for.
784 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
785 (mach_type_to_arc_isa): Convert from a set of binutils machine types
786 to expected ISA enums to be used in arc_gdbarch_features structs.
787 * features/Makefile (FEATURE_XMLFILES): Add new files.
788 * gdb/features/arc/v1-aux.c: New file.
789 * gdb/features/arc/v1-aux.xml: Likewise.
790 * gdb/features/arc/v1-core.c: Likewise.
791 * gdb/features/arc/v1-core.xml: Likewise.
792 * gdb/features/arc/v2-aux.c: Likewise.
793 * gdb/features/arc/v2-aux.xml: Likewise.
794 * gdb/features/arc/v2-core.c: Likewise.
795 * gdb/features/arc/v2-core.xml: Likewise.
796 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
797
798 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
799 Andrew Burgess <andrew.burgess@embecosm.com>
800
801 PR m2/26372
802 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
803 an assert. Remove single element array indexing pattern as the
804 MULTI_SUBSCRIPT support will handle this case too.
805
806 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
807
808 * value.h (valprint_check_validity): Move declaration from
809 here...
810 * valprint.h (valprint_check_validity): ... to here.
811
812 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
813
814 * debug.h: New file.
815 * debug.c (debug_prefixed_vprintf): New function.
816 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
817 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
818
819 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
820
821 * infrun.h (infrun_debug_printf_1): New function declaration.
822 (infrun_debug_printf): New macro.
823 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
824 throughout.
825 (infrun_debug_printf): New function.
826 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
827 (handle_jit_event): Likewise.
828
829 2020-08-21 Mark Wielaard <mark@klomp.org>
830
831 * ada-lex.l: Extend register warnings diagnostics comment for g++.
832
833 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
834
835 * frame.c (enum class frame_id_status): New.
836 (struct frame_info) <this_id::p>: Change type to frame_id_status.
837 (fprintf_frame): Update.
838 (compute_frame_id): Set frame id status to "computing" on entry.
839 Set it back to "not_computed" on failure and to "computed" on
840 success.
841 (get_frame_id): Assert the frame id is not being computed.
842 (create_sentinel_frame): Use frame_id_status::COMPUTED.
843 (create_new_frame): Likewise.
844 (frame_cleanup_after_sniffer): Update assert.
845
846 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
847
848 * regcache.c (pid_ptid_regcache_map): New type.
849 (target_ptid_regcache_map): Remove.
850 (target_pid_ptid_regcache_map): New type.
851 (regcaches): Change type to target_pid_ptid_regcache_map.
852 (get_thread_arch_aspace_regcache): Update.
853 (regcache_thread_ptid_changed): Update, handle pid-like ptid
854 case.
855 (regcaches_size): Update.
856 (regcache_count): Update.
857 (registers_changed_ptid_target_pid_test): New.
858 (_initialize_regcache): Register new test.
859
860 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
861
862 * regcache.c (regcache_count): New.
863 (struct regcache_test_data): New.
864 (regcache_test_data_up): New.
865 (populate_regcaches_for_test): New.
866 (regcaches_test): Remove.
867 (get_thread_arch_aspace_regcache_test): New.
868 (registers_changed_ptid_all_test): New.
869 (registers_changed_ptid_target_test): New.
870 (registers_changed_ptid_target_ptid_test): New.
871 (regcache_thread_ptid_changed): Remove regcache_count lambda.
872 (_initialize_regcache): Register new tests.
873
874 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
875
876 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
877 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
878 gdbarch and aspace parameter. Use current inferior's aspace.
879 Validate regcache's arch value.
880 (regcaches_test): Update.
881
882 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
883
884 * regcache.c (regcaches_test): Call registers_changed.
885
886 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
887
888 * infrun.c (process_event_stop_test): Fix typo "breapoint".
889
890 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
891
892 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
893 to find the end of prologue for flang compiled binaries.
894 * arm-tdep.c (arm_skip_prologue): Likewise.
895 * i386-tdep.c (i386_skip_prologue): Likewise.
896 * producer.c (producer_is_llvm): New function.
897 (producer_parsing_tests): Added new tests for clang/flang.
898 * producer.h (producer_is_llvm): New declaration.
899
900 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
901
902 * linux-nat.c (linux_nat_debug_printf): New function.
903 (linux_nat_debug_printf_1): New macro. Use throughout the file.
904
905 2020-08-18 Aaron Merey <amerey@redhat.com>
906
907 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
908 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
909 (CLIBS): Add DEBUGINFOD_LIBS.
910
911 2020-08-17 Sergei Trofimovich <siarheit@google.com>
912
913 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
914 'gdbarch_num_regs'.
915
916 2020-08-17 Tom Tromey <tromey@adacore.com>
917
918 * ada-varobj.c (ada_varobj_decode_var): Handle case where
919 ada_get_decoded_value returns NULL.
920
921 2020-08-17 Tom Tromey <tromey@adacore.com>
922
923 * python/py-inferior.c (infpy_search_memory): Use
924 gdb_py_object_from_ulongest.
925 * python/py-infevents.c (create_inferior_call_event_object)
926 (create_memory_changed_event_object): Use
927 gdb_py_object_from_ulongest.
928 * python/py-linetable.c (ltpy_entry_get_pc): Use
929 gdb_py_object_from_ulongest.
930
931 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
932
933 * loc.c (class symbol_needs_eval_context): Fix indentation.
934
935 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
936
937 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
938 bool.
939
940 2020-08-17 Tom de Vries <tdevries@suse.de>
941
942 PR gdb/26393
943 * gdbtypes.c (dump_dynamic_prop): New function.
944 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
945
946 2020-08-15 Tom de Vries <tdevries@suse.de>
947
948 PR backtrace/26390
949 * stack.c (print_frame_args): Temporarily set the selected
950 frame to FRAME while printing the frame's arguments.
951
952 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
953
954 PR breakpoints/26385
955 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
956 Always clear watchpoint with PTRACE_SET_DEBUGREG.
957
958 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
959
960 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
961 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
962 and >= to check return value instead of == -1 and != -1.
963
964 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
965
966 * utils.h (class gdb_argv) <as_array_view>: New method.
967 * utils.c (gdb_argv_as_array_view_test): New.
968 (_initialize_utils): Register selftest.
969 * maint.c (maintenance_selftest): Use the new method.
970
971 2020-08-13 Kamil Rytarowski <n54@gmx.com>
972
973 * target.h (supports_dumpcore, dumpcore): New
974 function declarations.
975 * target.c (supports_dumpcore, dumpcore): New
976 functions.
977 * target-delegates.c: Rebuild.
978 * gcore.c (gcore_command): Use target_supports_dumpcore ()
979 and target_dumpcore ().
980
981 2020-08-13 Aaron Merey <amerey@redhat.com>
982
983 * debuginfod-support.c: Replace global variables with user_data.
984
985 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
986
987 * maint.c (maintenance_selftest): Split args and pass array_view
988 to run_tests.
989
990 2020-08-12 Luis Machado <luis.machado@linaro.org>
991
992 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
993 type's length.
994 Use %s and pulongest to print the length.
995
996 2020-08-12 Pedro Alves <palves@redhat.com>
997
998 * NEWS: Move "Multi-target debugging support" item to the
999 "Changes since GDB 9" section.
1000
1001 2020-08-12 Pedro Alves <palves@redhat.com>
1002
1003 PR gdb/26336
1004 * progspace.c (program_space::remove_objfile): Invalidate the
1005 frame cache.
1006
1007 2020-08-11 Tom de Vries <tdevries@suse.de>
1008
1009 * MAINTAINERS: Mark ms1 as deleted.
1010
1011 2020-08-10 Luis Machado <luis.machado@linaro.org>
1012
1013 PR gdb/26310
1014
1015 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1016 act accordingly.
1017 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1018 movz/str/stur/stp skipping behavior.
1019
1020 2020-08-10 Luis Machado <luis.machado@linaro.org>
1021
1022 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1023 struct user_sve_header instead of struct sve_context.
1024
1025 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1026
1027 * read.h (dwarf2_fetch_die_loc_sect_off,
1028 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1029 `void *` parameter with function_view.
1030 * read.c (dwarf2_fetch_die_loc_sect_off,
1031 dwarf2_fetch_die_loc_cu_off): Likewise.
1032 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1033 (per_cu_dwarf_call): Adjust.
1034 (get_frame_address_in_block_wrapper): Remove.
1035 (indirect_synthetic_pointer): Adjust.
1036 (get_ax_pc): Remove.
1037 (dwarf2_compile_expr_to_ax): Adjust.
1038
1039 2020-08-08 Tom de Vries <tdevries@suse.de>
1040
1041 PR build/26344
1042 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1043 constructor.
1044 * regcache.c (get_thread_arch_aspace_regcache): Same.
1045
1046 2020-08-07 Tom Tromey <tromey@adacore.com>
1047
1048 * ravenscar-thread.c
1049 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1050 New method.
1051 (ravenscar_thread_target::wait): Check
1052 runtime_initialized.
1053 (ravenscar_thread_target::prepare_to_store)
1054 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1055 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1056 (ravenscar_thread_target::stopped_by_watchpoint)
1057 (ravenscar_thread_target::stopped_data_address)
1058 (ravenscar_thread_target::core_of_thread): Use
1059 scoped_restore_current_thread and
1060 set_base_thread_from_ravenscar_task.
1061
1062 2020-08-07 Tom Tromey <tromey@adacore.com>
1063
1064 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1065
1066 2020-08-07 Tom Tromey <tromey@adacore.com>
1067
1068 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1069 update_inferior_ptid before update_thread_list.
1070 (temporarily_change_regcache_ptid): New class.
1071 (ravenscar_thread_target::fetch_registers)
1072 (ravenscar_thread_target::store_registers)
1073 (ravenscar_thread_target::prepare_to_store): Use base thread when
1074 forwarding operation.
1075
1076 2020-08-07 Tom Tromey <tromey@adacore.com>
1077
1078 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1079 "is_pid" case.
1080
1081 2020-08-07 Tom Tromey <tromey@adacore.com>
1082
1083 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1084 New methods.
1085 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1086 first.
1087 (ravenscar_thread_target::add_thread): Rename from
1088 ravenscar_add_thread.
1089 (ravenscar_thread_target::update_thread_list): Use a lambda.
1090 (ravenscar_thread_target::xfer_partial): New method.
1091
1092 2020-08-07 Tom Tromey <tromey@adacore.com>
1093
1094 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1095 gdb::function_view.
1096 (iterate_over_live_ada_tasks): Change type of argument.
1097 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1098 of argument.
1099
1100 2020-08-07 Tom Tromey <tromey@adacore.com>
1101
1102 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1103 Remove.
1104 (ravenscar_thread_target::extra_thread_info): Remove.
1105 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1106 defer to target beneath for non-Ravenscar threads.
1107
1108 2020-08-07 Tom Tromey <tromey@adacore.com>
1109
1110 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1111 get_base_thread_from_ravenscar_task>: Now methods.
1112 <m_cpu_map>: New member.
1113 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1114 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1115 (ravenscar_thread_target::task_is_currently_active): Update.
1116 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1117 Now a method.
1118 (ravenscar_thread_target::add_active_thread): Put initial thread
1119 into the m_cpu_map.
1120
1121 2020-08-07 Tom Tromey <tromey@adacore.com>
1122
1123 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1124 event_ptid.
1125
1126 2020-08-07 Tom Tromey <tromey@adacore.com>
1127
1128 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1129 runtime_initialized.
1130
1131 2020-08-07 Tom Tromey <tromey@adacore.com>
1132
1133 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1134 add_active_thread.
1135 (ravenscar_thread_target::add_active_thread): Now public.
1136 (ravenscar_inferior_created): Call add_active_thread after pushing
1137 the target.
1138
1139 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1140
1141 * regcache.c (ptid_regcache_map): New type.
1142 (target_ptid_regcache_map): New type.
1143 (regcaches): Change type to target_ptid_regcache_map.
1144 (get_thread_arch_aspace_regcache): Update to regcaches' new
1145 type.
1146 (regcache_thread_ptid_changed): Likewise.
1147 (registers_changed_ptid): Likewise.
1148 (regcaches_size): Likewise.
1149 (regcaches_test): Update.
1150 (regcache_thread_ptid_changed): Update.
1151 * regcache.h (regcache_up): New type.
1152 * gdbsupport/ptid.h (hash_ptid): New struct.
1153
1154 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1155
1156 * observable.h (thread_ptid_changed): Add parameter
1157 `process_stratum_target *`.
1158 * infrun.c (infrun_thread_ptid_changed): Add parameter
1159 `process_stratum_target *` and use it.
1160 (selftests): New namespace.
1161 (infrun_thread_ptid_changed): New function.
1162 (_initialize_infrun): Register selftest.
1163 * regcache.c (regcache_thread_ptid_changed): Add parameter
1164 `process_stratum_target *` and use it.
1165 (regcache_thread_ptid_changed): New function.
1166 (_initialize_regcache): Register selftest.
1167 * thread.c (thread_change_ptid): Pass target to
1168 thread_ptid_changed observable.
1169
1170 2020-08-06 Caroline Tice <cmtice@google.com>
1171
1172 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1173 (struct dwp_sections): Update field comments. Add loclists and
1174 rnglists fields.
1175 (struct virtual_v2_dwo_sections): Rename struct to
1176 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1177 size & offset fields for loclists and rnglists.
1178 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1179 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1180 skipping dummy type units.
1181 (create_dwp_hash_table): Update the large comment above the function to
1182 discuss Version 5 DWP files as well, with references. Update all the
1183 version checks in the function to check for version 5 as well. Add new
1184 section at the end to create dwp hash table for version 5.
1185 (create_dwp_v2_section): Rename function to
1186 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1187 Add V5 to error message text.
1188 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1189 into calls to create_dwp_v2_or_v5_section.
1190 (create_dwo_unit_in_dwp_v5): New function.
1191 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1192 check for version2; add else clause to handle version 5.
1193 (open_and_init_dwo_file): Add code to check dwarf version & only call
1194 create_debug_types_hash_table (with sections.types) if version is not 5;
1195 else call create_debug_type_hash_table, with sections.info.
1196 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1197 version 5.
1198 (dwarf2_locate_v5_dwp_sections): New function.
1199 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1200 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1201
1202 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1203
1204 * regcache.h (class regcache): Remove friend
1205 registers_changed_ptid.
1206 <regcache_thread_ptid_changed>: Remove.
1207 <regcaches>: Remove.
1208 * regcache.c (regcache::regcaches): Rename to...
1209 (regcaches): ... this. Make static.
1210 (get_thread_arch_aspace_regcache): Update.
1211 (regcache::regcache_thread_ptid_changed): Rename to...
1212 (regcache_thread_ptid_changed): ... this. Update.
1213 (class regcache_access): Remove.
1214 (regcaches_test): Update.
1215 (_initialize_regcache): Update.
1216 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1217 <forward_list>.
1218
1219 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1220
1221 * regcache.h (class regcache) <current_regcache>: Rename to...
1222 <regcaches>: ... this. Move doc here.
1223 * regcache.c (regcache::current_regcache) Rename to...
1224 (regcache::regcaches): ... this. Move doc to header.
1225 (get_thread_arch_aspace_regcache): Update.
1226 (regcache::regcache_thread_ptid_changed): Update.
1227 (registers_changed_ptid): Update.
1228 (class regcache_access) <current_regcache_size>: Rename to...
1229 <regcaches_size>: ... this.
1230 (current_regcache_test): Rename to...
1231 (regcaches_test): ... this.
1232 (_initialize_regcache): Update.
1233
1234 2020-08-06 Victor Collod <vcollod@nvidia.com>
1235
1236 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1237
1238 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1239
1240 * corelow.c (core_target::build_file_mappings): Don't output
1241 null pathname in warning.
1242
1243 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1244
1245 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1246 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1247 gdb.dwarf2/dw2-single-line-discriminators.exp,
1248 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1249
1250 2020-08-05 Tom Tromey <tromey@adacore.com>
1251
1252 PR rust/26197:
1253 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1254 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1255 Fix off-by-one and type size errors in ordinary case.
1256
1257 2020-08-05 Tom de Vries <tdevries@suse.de>
1258
1259 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1260 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1261
1262 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1263
1264 * frame.h (frame_id_p): Return bool.
1265 (frame_id_artificial_p): Return bool.
1266 (frame_id_eq): Return bool.
1267 (has_stack_frames): Return bool.
1268 (get_selected_frame): Fix typo in comment.
1269 (get_frame_pc_if_available): Return bool.
1270 (get_frame_address_in_block_if_available): Return bool.
1271 (get_frame_func_if_available): Return bool.
1272 (read_frame_register_unsigned): Return bool.
1273 (get_frame_register_bytes): Return bool.
1274 (safe_frame_unwind_memory): Return bool.
1275 (deprecated_frame_register_read): Return bool.
1276 (frame_unwinder_is): Return bool.
1277 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1278 bool.
1279 <this_id::p>: Likewise.
1280 <prev_p>: Likewise.
1281 (frame_stash_add): Return bool.
1282 (get_frame_id): Use bool.
1283 (frame_id_build_special) Use bool.
1284 (frame_id_build_unavailable_stack): Use bool.
1285 (frame_id_build): Use bool.
1286 (frame_id_p): Return bool, use true/false instead of 1/0.
1287 (frame_id_artificial_p): Likewise.
1288 (frame_id_eq): Likewise.
1289 (frame_id_inner): Likewise.
1290 (get_frame_func_if_available): Likewise.
1291 (read_frame_register_unsigned): Likewise.
1292 (deprecated_frame_register_read): Likewise.
1293 (get_frame_register_bytes): Likewise.
1294 (has_stack_frames): Likewise.
1295 (inside_main_func): Likewise.
1296 (inside_entry_func): Likewise.
1297 (get_frame_pc_if_available): Likewise.
1298 (get_frame_address_in_block_if_available): Likewise.
1299 (frame_unwinder_is): Likewise.
1300 (safe_frame_unwind_memory): Likewise.
1301 (frame_unwind_arch): Likewise.
1302
1303 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1304
1305 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1306 type to cached_copy_status.
1307 (fprintf_frame): Adjust.
1308 (get_frame_func_if_available): Adjust.
1309 (frame_cleanup_after_sniffer): Adjust.
1310
1311 2020-08-04 Mark Wielaard <mark@klomp.org>
1312
1313 * MAINTAINERS (Write After Approval): Update email address.
1314
1315 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1316
1317 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1318 dynamic_prop::const_val.
1319
1320 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1321
1322 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1323 dynamic_prop::kind.
1324
1325 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1326
1327 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1328
1329 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1330
1331 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1332
1333 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1334 Jose E. Marchesi <jose.marchesi@oracle.com>
1335
1336 * configure.tgt: Add entry for bpf-*-*.
1337 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1338 (ALLDEPFILES): Add bpf-tdep.c.
1339 * bpf-tdep.c: New file.
1340 * MAINTAINERS: Add bpf target and maintainer.
1341 * NEWS: Mention the support for the new target.
1342
1343 2020-08-04 Tom de Vries <tdevries@suse.de>
1344
1345 PR symtab/23270
1346 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1347 Error.
1348
1349 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1350
1351 * syscalls/freebsd.xml: Regenerate.
1352
1353 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1354
1355 * syscalls/update-freebsd.sh: Fix usage and year range.
1356
1357 2020-08-03 Tom de Vries <tdevries@suse.de>
1358
1359 PR symtab/26333
1360 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1361 DW_LNE_lo_user/DW_LNE_hi_user range.
1362
1363 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1364
1365 PR ada/26318
1366 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1367 kind.
1368
1369 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1370
1371 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1372
1373 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1374
1375 * breakpoint.c (set_breakpoint_condition): Update the condition
1376 expressions after checking that the input condition string parses
1377 successfully and does not contain junk at the end.
1378
1379 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1380
1381 * breakpoint.c (set_breakpoint_condition): Update the
1382 condition string after parsing the new condition successfully.
1383
1384 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1385
1386 * proc-api.c (_STRUCTURED_PROC): Don't define.
1387 * proc-events.c: Likewise.
1388 * proc-flags.c: Likewise.
1389 * proc-why.c: Likewise.
1390 * procfs.c: Likewise.
1391
1392 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1393 * configure, config.in: Regenerate.
1394
1395 2020-07-30 Tom de Vries <tdevries@suse.de>
1396
1397 PR build/26320
1398 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1399 m_red/m_green/m_blue in a union.
1400
1401 2020-07-29 Tom de Vries <tdevries@suse.de>
1402
1403 PR tdep/26280
1404 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1405
1406 2020-07-28 Tom Tromey <tromey@adacore.com>
1407
1408 PR symtab/26270:
1409 * symtab.h (find_pc_partial_function_sym): Declare.
1410 * cli/cli-cmds.c (disassemble_command): Use
1411 find_pc_partial_function_sym. Check asm_demangle.
1412 * blockframe.c (cache_pc_function_sym): New global.
1413 (cache_pc_function_name): Remove.
1414 (clear_pc_function_cache): Update.
1415 (find_pc_partial_function_sym): New function, from
1416 find_pc_partial_function.
1417 (find_pc_partial_function): Rewrite using
1418 find_pc_partial_function_sym.
1419
1420 2020-07-28 Tom Tromey <tromey@adacore.com>
1421
1422 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1423 help. Add usage.
1424
1425 2020-07-28 Tom Tromey <tromey@adacore.com>
1426
1427 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1428 <DW_OP_GNU_variable_value>: Cast to address type.
1429
1430 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1431
1432 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1433 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1434 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1435 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1436 (nbsd_get_siginfo_type): New.
1437 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1438 (_initialize_nbsd_tdep): New.
1439
1440 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1441
1442 PR binutils/26301
1443 * configure: Regenerated.
1444
1445 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1446
1447 PR binutils/26301
1448 * configure: Regenerated.
1449
1450 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1451
1452 * python/py-frame.c: Remove 'user-regs.h' include.
1453 (frapy_read_register): Rewrite to make use of
1454 gdbpy_parse_register_id.
1455 * python/py-registers.c (gdbpy_parse_register_id): New function,
1456 moved here from python/py-unwind.c. Updated the return type, and
1457 also accepts register descriptor objects.
1458 * python/py-unwind.c: Remove 'user-regs.h' include.
1459 (pyuw_parse_register_id): Moved to python/py-registers.c.
1460 (unwind_infopy_add_saved_register): Update to use
1461 gdbpy_parse_register_id.
1462 (pending_framepy_read_register): Likewise.
1463 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1464
1465 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1466
1467 * python/py-registers.c: Add 'user-regs.h' include.
1468 (register_descriptor_iter_find): New function.
1469 (register_descriptor_iterator_object_methods): New static global
1470 methods array.
1471 (register_descriptor_iterator_object_type): Add pointer to methods
1472 array.
1473
1474 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1475
1476 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1477 for all architectures on FreeBSD 11.3 and later.
1478
1479 2020-07-27 Tom Tromey <tromey@adacore.com>
1480
1481 * gcore.h (load_corefile): Don't declare.
1482
1483 2020-07-27 Tom de Vries <tdevries@suse.de>
1484
1485 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1486 * config.in: Regenerate.
1487 * configure: Regenerate.
1488
1489 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1490
1491 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1492 ws2tcpip.h. When checking whether socklen_t type is defined, use
1493 ws2tcpip.h if it is available and sys/socket.h isn't.
1494 * configure: Regenerate.
1495 * config.in: Regenerate.
1496
1497 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1498
1499 PR fortran/23051
1500 PR fortran/26139
1501 * valops.c (value_ind): Pass address to
1502 readjust_indirect_value_type.
1503 * value.c (readjust_indirect_value_type): Make parameter
1504 non-const, and add extra address parameter. Resolve original type
1505 before using it.
1506 * value.h (readjust_indirect_value_type): Update function
1507 signature and comment.
1508
1509 2020-07-25 Tom de Vries <tdevries@suse.de>
1510
1511 PR symtab/26243
1512 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1513 entries.
1514
1515 2020-07-24 Aaron Merey <amerey@redhat.com>
1516
1517 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1518 * configure: Rebuild.
1519
1520 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1521
1522 PR corefiles/26294
1523 * corelow.c (_initialize_corelow): Add period to help text
1524 for "maintenance print core-file-backed-mappings".
1525
1526 2020-07-23 Pedro Alves <pedro@palves.net>
1527
1528 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1529 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1530 meanwhile.
1531 * frame.c (frame_cache_generation, get_frame_cache_generation):
1532 New.
1533 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1534 (get_prev_frame_if_no_cycle): On exception, don't touch
1535 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1536 * frame.h (get_frame_cache_generation): Declare.
1537
1538 2020-07-23 Tom de Vries <tdevries@suse.de>
1539
1540 PR tui/26282
1541 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1542 New default constructor.
1543
1544 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1545
1546 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1547 exclude non-statement entries.
1548
1549 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1550
1551 * NEWS (New commands): Mention new command
1552 "maintenance print core-file-backed-mappings".
1553
1554 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1555
1556 * corelow.c (gdbcmd.h): Include.
1557 (core_target::info_proc_mappings): New method.
1558 (get_current_core_target): New function.
1559 (maintenance_print_core_file_backed_mappings): New function.
1560 (_initialize_corelow): Add core-file-backed-mappings to
1561 "maint print" commands.
1562
1563 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1564
1565 * linux-tdep.c (dump_note_entry_p): New function.
1566 (linux_dump_mapping_p_ftype): New typedef.
1567 (linux_find_memory_regions_full): Add new parameter,
1568 should_dump_mapping_p.
1569 (linux_find_memory_regions): Adjust call to
1570 linux_find_memory_regions_full.
1571 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1572 call to linux_find_memory_regions_full.
1573
1574 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1575
1576 * corelow.c (solist.h, unordered_map): Include.
1577 (class core_target): Add field m_core_file_mappings and
1578 method build_file_mappings.
1579 (core_target::core_target): Call build_file_mappings.
1580 (core_target::~core_target): Free memory associated with
1581 m_core_file_mappings.
1582 (core_target::build_file_mappings): New method.
1583 (core_target::xfer_partial): Use m_core_file_mappings
1584 for memory transfers.
1585 * linux-tdep.c (linux_read_core_file_mappings): New
1586 function.
1587 (linux_core_info_proc_mappings): Rewrite to use
1588 linux_read_core_file_mappings.
1589 (linux_init_abi): Register linux_read_core_file_mappings.
1590
1591 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1592
1593 * arch-utils.c (default_read_core_file_mappings): New function.
1594 * arch-utils.c (default_read_core_file_mappings): Declare.
1595 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1596 * gdbarch.h, gdbarch.c: Regenerate.
1597
1598 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1599
1600 PR corefiles/25631
1601 * corelow.c (core_target:xfer_partial): Revise
1602 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1603 case after first checking the stratum beneath the core
1604 target.
1605 (has_all_memory): Return true.
1606 * target.c (raw_memory_xfer_partial): Revise comment
1607 regarding use of has_all_memory.
1608
1609 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1610
1611 * exec.h (section_table_xfer_memory): Revise declaration,
1612 replacing section name parameter with an optional callback
1613 predicate.
1614 * exec.c (section_table_xfer_memory): Likewise.
1615 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1616 of section_table_xfer_memory.
1617
1618 2020-07-22 Tom Tromey <tromey@adacore.com>
1619
1620 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1621 lookup_symbol_search_name.
1622
1623 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1624
1625 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1626 redundant local variable.
1627 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1628 reference, not pointer, update code accordingly.
1629
1630 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1631 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1632
1633 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1634 * jit.c (jit_breakpoint_re_set_internal): Use the
1635 `skip_jit_symbol_lookup` field.
1636
1637 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1638 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1639
1640 * jit.c (jit_read_descriptor): Define the descriptor address once,
1641 use twice.
1642 (jit_breakpoint_deleted): Move the declaration of the loop variable
1643 `iter` into the loop header.
1644 (jit_breakpoint_re_set_internal): Move the declaration of the local
1645 variable `objf_data` to the first point of definition.
1646 (jit_event_handler): Move the declaration of local variables
1647 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1648 Rename `objf` to `jited`.
1649
1650 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1651
1652 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1653 Remove.
1654 * jit.c (get_jiter_objfile_data): Update.
1655
1656 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1657 Simon Marchi <simon.marchi@polymtl.ca>
1658
1659 * jit.c (struct jit_program_space_data): Remove.
1660 (jit_program_space_key): Remove.
1661 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1662 stuff.
1663 (get_jit_program_space_data): Remove.
1664 (jit_breakpoint_deleted): Iterate on all of the program space's
1665 objfiles.
1666 (jit_inferior_init): Likewise.
1667 (jit_breakpoint_re_set_internal): Likewise. Also change return
1668 type to void.
1669 (jit_breakpoint_re_set): Pass current_program_space to
1670 jit_breakpoint_re_set_internal.
1671
1672 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1673
1674 * jit.h (struct jiter_objfile_data) <cached_code_address,
1675 jit_breakpoint>: Move to here from ...
1676 * jit.c (jit_program_space_data): ... here.
1677 (jiter_objfile_data::~jiter_objfile_data): Update.
1678 (jit_breakpoint_deleted): Update.
1679 (jit_breakpoint_re_set_internal): Update.
1680
1681 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1682
1683 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1684 checks.
1685 (jit_read_descriptor): Remove NULL check.
1686 (jit_event_handler): Add an assertion.
1687
1688 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1689
1690 * jit.h (struct jit_objfile_data): Split into...
1691 (struct jiter_objfile_data): ... this ...
1692 (struct jited_objfile_data): ... and this.
1693 * objfiles.h (struct objfile) <jit_data>: Remove.
1694 <jiter_data, jited_data>: New fields.
1695 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1696 (jiter_objfile_data::~jiter_objfile_data): ... this.
1697 (get_jit_objfile_data): Rename to ...
1698 (get_jiter_objfile_data): ... this.
1699 (add_objfile_entry): Update.
1700 (jit_read_descriptor): Use get_jiter_objfile_data.
1701 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1702 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1703 (jit_inferior_exit_hook): Use objfile's jited_data field.
1704
1705 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1706
1707 * jit.h: Forward-declare `struct minimal_symbol`.
1708 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1709 constructor, destructor, and an objfile* field.
1710 * jit.c (jit_objfile_data): Remove.
1711 (struct jit_objfile_data): Migrate from here to jit.h.
1712 (jit_objfile_data::~jit_objfile_data): New destructor
1713 implementation with code moved from free_objfile_data.
1714 (free_objfile_data): Delete.
1715 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1716 (jit_find_objf_with_entry_addr): Ditto.
1717 (jit_inferior_exit_hook): Ditto.
1718 (_initialize_jit): Remove the call to
1719 register_objfile_data_with_cleanup.
1720 * objfiles.h (struct objfile) <jit_data>: New field.
1721
1722 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1723
1724 * jit.h: Forward-declare `struct objfile`.
1725 (jit_event_handler): Add a second parameter, the JITer objfile.
1726 * jit.c (jit_read_descriptor): Change the signature to take the
1727 JITer objfile as an argument instead of the jit_program_space_data.
1728 (jit_inferior_init): Update the call to jit_read_descriptor.
1729 (jit_event_handler): Use the new JITer objfile argument when calling
1730 jit_read_descriptor.
1731 * breakpoint.c (handle_jit_event): Update the call to
1732 jit_event_handler to pass the JITer objfile.
1733
1734 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1735
1736 * gdbarch.c: Regenerate.
1737 * gdbarch.h: Regenerate.
1738 * gdbarch.sh (handle_segmentation_fault): Remove method.
1739 * infrun.c (handle_segmentation_fault): Remove.
1740 (print_signal_received_reason): Remove call to
1741 handle_segmentation_fault.
1742
1743 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1744
1745 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1746 Rename to sparc64_linux_report_signal_info and add siggnal
1747 argument.
1748 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1749 instead of sparc64_linux_handle_segmentation_fault.
1750
1751 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1752
1753 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1754 i386_linux_report_signal_info instead of
1755 i386_linux_handle_segmentation_fault.
1756 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1757 to i386_linux_report_signal_info and add siggnal argument.
1758 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1759 of i386_linux_handle_segmentation_fault.
1760 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1761 to i386_linux_report_signal_info and add siggnal argument.
1762
1763 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1764
1765 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1766 hook if present.
1767
1768 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1769
1770 * gdbarch.c: Regenerate.
1771 * gdbarch.h: Regenerate.
1772 * gdbarch.sh (report_signal_info): New method.
1773 * infrun.c (print_signal_received_reason): Invoke gdbarch
1774 report_signal_info hook if present.
1775
1776 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1777
1778 * python/py-registers.c : Add 'unordered_map' include.
1779 (gdbpy_new_reggroup): Renamed to...
1780 (gdbpy_get_reggroup): ...this. Update to only create register
1781 group descriptors when needed.
1782 (gdbpy_reggroup_iter_next): Update.
1783
1784 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1785
1786 * python/py-registers.c (gdbpy_register_object_data): New static
1787 global.
1788 (gdbpy_register_object_data_init): New function.
1789 (gdbpy_new_register_descriptor): Renamed to...
1790 (gdbpy_get_register_descriptor): ...this, and update to reuse
1791 existing register descriptors where possible.
1792 (gdbpy_register_descriptor_iter_next): Update.
1793 (gdbpy_initialize_registers): Register new gdbarch data.
1794
1795 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1796
1797 * linux-nat.c (stopped_pids): Make static.
1798
1799 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1800
1801 PR ada/26235
1802 * gdbtypes.c (ada_discrete_type_low_bound,
1803 ada_discrete_type_high_bound): Handle undefined bounds.
1804
1805 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1806
1807 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1808 declaration.
1809 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1810 function.
1811
1812 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1813
1814 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1815 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1816 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1817 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1818 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1819 method.
1820
1821 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1822
1823 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1824 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1825 which are deprecated in Guile 3.0.
1826 * configure.ac (try_guile_versions): Add "guile-3.0".
1827 * configure (try_guile_versions): Regenerate.
1828 * NEWS: Update entry.
1829
1830 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1831 Doug Evans <dje@google.com>
1832
1833 PR gdb/21104
1834 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1835 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1836 USING_GUILE_BEFORE_2_2.
1837 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1838 Change type to 'scm_t_port_type *'.
1839 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1840 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1841 parameter and honor it. Update callers.
1842 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1843 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1844 functions.
1845 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1846 USING_GUILE_BEFORE_2_2.
1847 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1848 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1849 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1850 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1851 and 'SCM_PORT_TYPE'.
1852 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1853 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1854 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1855 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1856 [!USING_GUILE_BEFORE_2_2]: New functions.
1857 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1858 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1859 'gdbscm_memory_port_read'.
1860 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1861 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1862 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1863 function.
1864 (ioscm_init_memory_port): Remove.
1865 (ioscm_init_memory_port_stream): New function
1866 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1867 function.
1868 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1869 Return scm_from_uint (0).
1870 (gdbscm_set_memory_port_read_buffer_size_x)
1871 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1872 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1873 Return scm_from_uint (0).
1874 (gdbscm_set_memory_port_write_buffer_size_x)
1875 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1876 * configure.ac (try_guile_versions): Add "guile-2.2".
1877 * configure: Regenerate.
1878 * NEWS: Add entry.
1879
1880 2020-07-18 Tom Tromey <tom@tromey.com>
1881
1882 * linux-nat.c (linux_multi_process): Remove.
1883 (linux_nat_target::supports_multi_process): Return true.
1884
1885 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1886
1887 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1888 (riscv_lookup_target_description): Return pointer out of
1889 unique_ptr.
1890 * target-descriptions.c (allocate_target_description): Add
1891 comment.
1892 (target_desc_deleter::operator()): Likewise.
1893 * target-descriptions.h (struct target_desc_deleter): Moved to
1894 gdbsupport/tdesc.h.
1895 (target_desc_up): Likewise.
1896
1897 2020-07-17 Tom Tromey <tromey@adacore.com>
1898
1899 * linux-nat.c (linux_nat_target::supports_non_stop)
1900 (linux_nat_target::always_non_stop_p): Use "true".
1901 (linux_nat_target::supports_disable_randomization): Use "true" and
1902 "false".
1903
1904 2020-07-16 Caroline Tice <cmtice@google.com>
1905
1906 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1907 (RNGLIST_HEADER_SIZE64): New constant definition.
1908 (struct dwop_section_names): Add rnglists_dwo.
1909 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1910 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1911 (struct dwo_sections): Add rnglists field.
1912 (read_attribut_reprocess): Add tag parameter.
1913 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1914 (cu_debug_rnglists_section): New function (decl & definition).
1915 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1916 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1917 die whose range is being checked; get rnglist section from
1918 cu_debug_rnglists_section, to get from either objfile or dwo file as
1919 appropriate. Add cases for DW_RLE_base_addressx,
1920 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1921 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1922 test inside if-condition and updating complaint message.
1923 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1924 dwarf2_rnglists_process.
1925 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1926 dwarf2_ranges_process.
1927 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1928 need_ranges_base and update comment appropriately. Also pass die tag
1929 to dwarf2_ranges_read.
1930 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1931 need_ranges_base and update comment appropriately. Also pass die tag
1932 to dwarf2_ranges_process.
1933 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1934 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1935 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1936 need_ranges_base and update comment appropriately. Also pass die tag
1937 to read_attribute_reprocess and dwarf2_ranges_read.
1938 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1939 and update function comment appropriately.
1940 (read_loclist_index): Call read_loclists_rnglists_header instead of
1941 read_loclist_header.
1942 (read_rnglist_index): New function.
1943 (read_attribute_reprocess): Add tag parameter. Add code for
1944 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1945 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1946
1947 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1948
1949 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1950 being resolved.
1951
1952 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1953
1954 * arch-utils.c (show_architecture): Update formatting of messages.
1955
1956 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1957
1958 * gdbtypes.h (struct type) <bounds>: Handle array and string
1959 types.
1960 * ada-lang.c (assign_aggregate): Use type::bounds on
1961 array/string type.
1962 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1963 * c-varobj.c (c_number_of_children): Likewise.
1964 (c_describe_child): Likewise.
1965 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1966 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1967 (f_type_print_base): Likewise.
1968 * f-valprint.c (f77_array_offset_tbl): Likewise.
1969 (f77_get_upperbound): Likewise.
1970 (f77_print_array_1): Likewise.
1971 * guile/scm-type.c (gdbscm_type_range): Likewise.
1972 * m2-typeprint.c (m2_array): Likewise.
1973 (m2_is_long_set_of_type): Likewise.
1974 * m2-valprint.c (get_long_set_bounds): Likewise.
1975 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1976 * python/py-type.c (typy_range): Likewise.
1977 * rust-lang.c (rust_internal_print_type): Likewise.
1978 * type-stack.c (type_stack::follow_types): Likewise.
1979 * valarith.c (value_subscripted_rvalue): Likewise.
1980 * valops.c (value_cast): Likewise.
1981
1982 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1983
1984 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1985 callers to use the equivalent accessor methods.
1986
1987 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1988
1989 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1990 (struct type) <bit_stride>: New method.
1991 (TYPE_BIT_STRIDE): Remove.
1992 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1993
1994 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1995
1996 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1997 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1998 callers to use the equivalent accessor methods instead.
1999
2000 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2001
2002 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2003 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2004 callers to use the equivalent accessor methods instead.
2005
2006 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2007
2008 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2009 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2010 to use dynamic_prop::kind.
2011
2012 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2013
2014 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2015 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2016 to get the bound property's kind and check against
2017 PROP_UNDEFINED.
2018
2019 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2020
2021 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2022 all callers to use type::range_bounds followed by
2023 dynamic_prop::{low,high}.
2024
2025 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2026
2027 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2028 const_val, set_const_val, baton, set_locexpr, set_loclist,
2029 set_addr_offset, variant_parts, set_variant_parts,
2030 original_type, set_original_type>: New methods.
2031 <kind>: Rename to...
2032 <m_kind>: ... this. Update all users to use the new methods
2033 instead.
2034 <data>: Rename to...
2035 <m_data>: ... this. Update all users to use the new methods
2036 instead.
2037
2038 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2039
2040 * gdbtypes.c (get_discrete_bounds): Return failure if
2041 the range type's bounds are not both defined and constant
2042 values.
2043 (get_array_bounds): Update comment. Remove undefined bound check.
2044
2045 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2046
2047 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2048 the type::bounds method directly.
2049
2050 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2051
2052 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2053 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2054 are used to set the range type's bounds to use set_bounds.
2055
2056 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2057
2058 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2059
2060 2020-07-10 Pedro Alves <pedro@palves.net>
2061
2062 * gdbthread.h (inferior_ref): Define.
2063 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2064 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2065 * thread.c
2066 (scoped_restore_current_thread::restore):
2067 Adjust to gdb::ref_ptr.
2068 (scoped_restore_current_thread::~scoped_restore_current_thread):
2069 Remove manual decref handling.
2070 (scoped_restore_current_thread::scoped_restore_current_thread):
2071 Adjust to use
2072 inferior_ref::new_reference/thread_info_ref::new_reference.
2073 Incref the thread before calling get_frame_id instead of after.
2074 Let TARGET_CLOSE_ERROR propagate.
2075
2076 2020-07-10 Pedro Alves <pedro@palves.net>
2077
2078 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2079 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2080 NOT_AVAILABLE_ERROR.
2081 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2082 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2083
2084 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2085 Pedro Alves <pedro@palves.net>
2086
2087 PR gdb/26199
2088 * infrun.c (threads_are_resumed_pending_p): Delete.
2089 (do_target_wait): Remove threads_are_executing and
2090 threads_are_resumed_pending_p checks from the inferior_matches
2091 lambda. Update comments.
2092
2093 2020-07-10 Pedro Alves <pedro@palves.net>
2094
2095 PR gdb/26199
2096 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2097 executing threads.
2098
2099 2020-07-10 Pedro Alves <pedro@palves.net>
2100
2101 PR gdb/26199
2102 * infrun.c (handle_no_resumed): Handle multiple targets.
2103
2104 2020-07-10 Pedro Alves <pedro@palves.net>
2105
2106 PR gdb/26199
2107 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2108 target_is_async_p.
2109
2110 2020-07-10 Pedro Alves <pedro@palves.net>
2111
2112 PR gdb/26199
2113 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2114 threads, not all threads.
2115
2116 2020-07-10 Pedro Alves <pedro@palves.net>
2117
2118 PR gdb/26199
2119 * remote.c (remote_target::open_1): Pass remote target pointer as
2120 data to create_async_event_handler.
2121 (remote_async_inferior_event_handler): Mark async event handler
2122 before returning if the remote target still has either pending
2123 events or unacknowledged notifications.
2124
2125 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2126
2127 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2128 declaration.
2129 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2130 function.
2131
2132 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2133
2134 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2135 inferior_ptid.
2136
2137 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2138
2139 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2140 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2141 AT_FREEBSD_PS_STRINGS.
2142
2143 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2144
2145 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2146 of debugfile path on Windows.
2147
2148 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2149
2150 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2151 argument to 'data'.
2152
2153 2020-07-08 Tom Tromey <tromey@adacore.com>
2154
2155 * ada-lang.c (ada_exception_message_1): Use read_memory.
2156
2157 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2158
2159 PR python/22748
2160 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2161 special handling for inline frames.
2162 * findvar.c (value_of_register_lazy): Skip inline frames when
2163 creating lazy register values.
2164 * frame.c (frame_id_computed_p): Delete definition.
2165 * frame.h (frame_id_computed_p): Delete declaration.
2166
2167 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2168
2169 * NEWS: Mention additions to Python API.
2170 * python/py-arch.c (archpy_register_groups): New function.
2171 (arch_object_methods): Add 'register_groups' method.
2172 * python/py-registers.c (reggroup_iterator_object): New struct.
2173 (reggroup_object): New struct.
2174 (gdbpy_new_reggroup): New function.
2175 (gdbpy_reggroup_to_string): New function.
2176 (gdbpy_reggroup_name): New function.
2177 (gdbpy_reggroup_iter): New function.
2178 (gdbpy_reggroup_iter_next): New function.
2179 (gdbpy_new_reggroup_iterator): New function
2180 (gdbpy_initialize_registers): Register new types.
2181 (reggroup_iterator_object_type): Define new Python type.
2182 (gdbpy_reggroup_getset): New static global.
2183 (reggroup_object_type): Define new Python type.
2184 * python/python-internal.h
2185
2186 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2187
2188 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2189 * python/py-arch.c (archpy_registers): New function.
2190 (arch_object_methods): Add 'registers' method.
2191 * python/py-registers.c: New file.
2192 * python/python-internal.h
2193 (gdbpy_new_register_descriptor_iterator): Declare.
2194 (gdbpy_initialize_registers): Declare.
2195 * python/python.c (do_start_initialization): Call
2196 gdbpy_initialize_registers.
2197 * NEWS: Mention additions to the Python API.
2198
2199 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2200
2201 * NEWS: Mention new Python API method.
2202 * python/py-unwind.c (pending_framepy_architecture): New function.
2203 (pending_frame_object_methods): Add architecture method.
2204
2205 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2206
2207 * gdbarch.c: Regenerate.
2208 * gdbarch.h: Regenerate.
2209 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2210 (gdbarch_data): Use internal_error for the case where
2211 deprecated_set_gdbarch_data was originally needed.
2212 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2213 and use passed in obstack.
2214 (libunwind_frame_set_descr): Should no longer get back NULL from
2215 gdbarch_data.
2216 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2217 type.
2218 * user-regs.c (user_regs_init): Update parameters, and use passed
2219 in obstack.
2220 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2221 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2222
2223 2020-07-06 Tom de Vries <tdevries@suse.de>
2224
2225 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2226 End-Of-Sequence in lte_is_less_than.
2227 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2228 "gdb: Don't reorder line table entries too much when sorting".
2229
2230 2020-07-06 Tom de Vries <tdevries@suse.de>
2231
2232 PR tui/26205
2233 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2234
2235 2020-07-05 Tom de Vries <tdevries@suse.de>
2236
2237 PR build/26187
2238 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2239 std::uncaught_exceptions instead of deprecated
2240 std::uncaught_exception.
2241
2242 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2243
2244 * macroexp.h (macro_stringify): Return
2245 gdb::unique_xmalloc_ptr<char>.
2246 * macroexp.c (macro_stringify): Likewise.
2247 * macrotab.c (fixup_definition): Update.
2248
2249 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2250
2251 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2252 (lex_one_token): Update.
2253 * macroexp.c (struct macro_buffer) <release>: Return
2254 gdb::unique_xmalloc_ptr<char>.
2255 (macro_stringify): Update.
2256 (macro_expand): Update.
2257 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2258 * macroexp.h (macro_expand_next): Likewise.
2259
2260 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2261
2262 * macroexp.h (macro_lookup_ftype): Remove.
2263 (macro_expand, macro_expand_once, macro_expand_next): Remove
2264 lookup function parameters, add scope parameter.
2265 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2266 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2267 * macroscope.h (standard_macro_lookup): Change parameter type
2268 to macro_scope.
2269 * macroscope.c (standard_macro_lookup): Likewise.
2270 * c-exp.y (lex_one_token): Update.
2271 * macrocmd.c (macro_expand_command): Likewise.
2272 (macro_expand_once_command): Likewise.
2273
2274 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2275
2276 * inf-loop.c (inferior_event_handler): Remove client_data param.
2277 * inf-loop.h (inferior_event_handler): Likewise.
2278 * infcmd.c (step_1): Adjust.
2279 * infrun.c (proceed): Adjust.
2280 (fetch_inferior_event): Remove client_data param.
2281 (infrun_async_inferior_event_handler): Adjust.
2282 * infrun.h (fetch_inferior_event): Remove `void *` param.
2283 * linux-nat.c (handle_target_event): Adjust.
2284 * record-btrace.c (record_btrace_handle_async_inferior_event):
2285 Adjust.
2286 * record-full.c (record_full_async_inferior_event_handler):
2287 Adjust.
2288 * remote.c (remote_async_inferior_event_handler): Adjust.
2289
2290 2020-07-01 Tom Tromey <tom@tromey.com>
2291
2292 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2293 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2294
2295 2020-07-01 Tom Tromey <tom@tromey.com>
2296
2297 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2298 tui_gen_win_info.
2299 (tui_win_info::make_window): Merge with
2300 tui_gen_win_info::make_window.
2301 (tui_win_info::make_visible): Move from tui_gen_win_info.
2302 * tui/tui-win.c (tui_win_info::max_width): Move from
2303 tui_gen_win_info.
2304 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2305 type.
2306 <window_factory>: Likewise.
2307 * tui/tui-layout.c (tui_win_info::resize): Move from
2308 tui_gen_win_info.
2309 (make_standard_window): Change return type.
2310 (get_locator_window, tui_get_window_by_name): Likewise.
2311 (tui_layout_window::apply): Remove a cast.
2312 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2313 (struct tui_win_info): Merge with tui_gen_win_info.
2314 (struct tui_gen_win_info): Remove.
2315
2316 2020-07-01 Tom Tromey <tom@tromey.com>
2317
2318 * tui/tui-stack.h (struct tui_locator_window): Derive from
2319 tui_win_info.
2320 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2321 <can_box>: New method.
2322
2323 2020-07-01 Tom Tromey <tom@tromey.com>
2324
2325 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2326
2327 2020-07-01 Tom Tromey <tom@tromey.com>
2328
2329 * tui/tui-regs.c (tui_data_window::display_registers_from)
2330 (tui_data_window::display_registers_from)
2331 (tui_data_window::first_data_item_displayed)
2332 (tui_data_window::delete_data_content_windows): Update.
2333 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2334 Remove.
2335 (tui_data_window::check_register_values): Update.
2336 (tui_data_item_window::rerender): Add parameters. Update.
2337 (tui_data_item_window::refresh_window): Remove.
2338 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2339 virtual.
2340 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2341 tui_gen_win_info.
2342 <refresh_window, max_height, min_height>: Remove.
2343 <rerender>: Add parameters.
2344 <x, y, visible>: New members.
2345 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2346 <m_item_width>: New member.
2347
2348 2020-07-01 Tom Tromey <tom@tromey.com>
2349
2350 * tui/tui-regs.c (tui_data_window::show_register_group)
2351 (tui_data_window::check_register_values): Update.
2352 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2353 from item_no.
2354
2355 2020-07-01 Tom Tromey <tom@tromey.com>
2356
2357 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2358 useless "if".
2359
2360 2020-07-01 Tom Tromey <tom@tromey.com>
2361
2362 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2363 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2364
2365 2020-07-01 Tom Tromey <tom@tromey.com>
2366
2367 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2368 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2369 (struct tui_line_or_address): Move from tui-data.h.
2370 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2371 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2372 (tui_cmd_window, tui_source_window_base, tui_source_window)
2373 (tui_disasm_window): Don't declare.
2374 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2375 to tui-winsource.h.
2376 (SINGLE_KEY): Move to tui-stack.c.
2377
2378 2020-07-01 Tom Tromey <tom@tromey.com>
2379
2380 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2381 std::string.
2382 * tui/tui-regs.c (class tab_expansion_file): New.
2383 (tab_expansion_file::write): New method.
2384 (tui_register_format): Change return type. Use
2385 tab_expansion_file.
2386 (tui_get_register, tui_data_window::display_registers_from)
2387 (tui_data_item_window::rerender): Update.
2388 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2389 * tui/tui-io.c (tui_expand_tabs): Remove.
2390
2391 2020-07-01 Tom Tromey <tom@tromey.com>
2392
2393 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2394
2395 2020-07-01 Fangrui Song <maskray@google.com>
2396
2397 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2398
2399 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2400
2401 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2402 forms for DW_AT_associated and DW_AT_allocated attributes,
2403 which is already checked in function attr_to_dynamic_prop.
2404
2405 2020-06-30 Tom Tromey <tromey@adacore.com>
2406
2407 * dwarf2/read.c (quirk_rust_enum): Correctly call
2408 alloc_rust_variant for default-less enum.
2409
2410 2020-06-30 Tom Tromey <tromey@adacore.com>
2411
2412 PR build/26183:
2413 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2414 gdb::to_string.
2415
2416 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2417
2418 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2419 * gdbarch.h: Re-generate.
2420
2421 2020-06-28 Tom Tromey <tom@tromey.com>
2422
2423 * command.h (cmd_types): Remove.
2424 (cmd_type): Don't declare.
2425 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2426 typedef.
2427 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2428 * cli/cli-decode.c (cmd_type): Remove.
2429
2430 2020-06-27 Pedro Alves <palves@redhat.com>
2431
2432 * fork-child.c (prefork_hook): Adjust.
2433 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2434 Delete.
2435 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2436 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2437 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2438 Remove declarations.
2439 (struct inferior) <set_tty, tty>: New methods.
2440 (struct inferior) <terminal>: Rename to ...
2441 (struct inferior) <m_terminal>: ... this and make private.
2442 * main.c (captured_main_1): Adjust.
2443 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2444 (mi_cmd_inferior_tty_show): Adjust.
2445 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2446 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2447
2448 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2449
2450 * configure.ac: Add --enable-libctf: handle --disable-static
2451 properly.
2452 * acinclude.m4: sinclude ../config/enable.m4.
2453 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2454 (LIBCTF): Substitute in.
2455 (CTF_DEPS): New, likewise.
2456 (CLIBS): libctf needs symbols from libbfd: move earlier.
2457 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2458 flags.
2459 * ctfread.c: Surround in ENABLE_LIBCTF.
2460 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2461 * configure: Regenerate.
2462 * config.in: Likewise.
2463
2464 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2465
2466 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2467
2468 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2469
2470 * inferior.h (struct inferior) <terminal>: Change type to
2471 gdb::unique_xmalloc_ptr<char>.
2472 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2473 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2474 field, adjust to unique pointer.
2475 (get_inferior_io_terminal): Adjust to unique pointer.
2476
2477 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2478
2479 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2480 registers, not just the known core set of registers.
2481
2482 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2483
2484 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2485 fflags, frm, and fcsr registers.
2486 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2487 restore groups.
2488 (riscv_tdesc_unknown_reg): New function.
2489 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2490 tdesc_use_registers.
2491 * riscv-tdep.h (struct gdbarch_tdep): Add
2492 unknown_csrs_first_regnum, unknown_csrs_count,
2493 duplicate_fflags_regnum, duplicate_frm_regnum, and
2494 duplicate_fcsr_regnum fields.
2495
2496 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2497
2498 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2499 callback, use the callback (when not null) to help number unknown
2500 registers.
2501 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2502 (tdesc_use_registers): Add extra parameter to declaration.
2503
2504 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2505
2506 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2507 in the file.
2508 (class riscv_pending_register_alias): Likewise.
2509 (riscv_register_feature::register_info): Change 'required_p' field
2510 to 'required', and change its type. Add 'check' member function.
2511 (riscv_register_feature::register_info::check): Define new member
2512 function.
2513 (riscv_xreg_feature): Change initialisation of 'required' field.
2514 (riscv_freg_feature): Likewise.
2515 (riscv_virtual_feature): Likewise.
2516 (riscv_csr_feature): Likewise.
2517 (riscv_check_tdesc_feature): Take extra parameter, the csr
2518 tdesc_feature, rewrite the function to use the new
2519 riscv_register_feature::register_info::check function.
2520 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2521
2522 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2523
2524 * features/Makefile: Remove all references to the deleted files
2525 below.
2526 * features/riscv/32bit-csr.c: Deleted.
2527 * features/riscv/32bit-csr.xml: Deleted.
2528 * features/riscv/64bit-csr.c: Deleted.
2529 * features/riscv/64bit-csr.xml: Deleted.
2530 * features/riscv/rebuild-csr-xml.sh: Deleted.
2531
2532 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2533
2534 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2535 whitespace error for declaration of names member variable.
2536 (struct riscv_register_feature): Add new prefer_first_name member
2537 variable, and fix whitespace error in declaration of registers.
2538 (riscv_xreg_feature): Initialize prefer_first_name field.
2539 (riscv_freg_feature): Likewise.
2540 (riscv_virtual_feature): Likewise.
2541 (riscv_csr_feature): Likewise.
2542 (riscv_register_name): Expand on comments. Remove register name
2543 modifications for CSR and virtual registers.
2544
2545 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2546
2547 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2548 errors.
2549
2550 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2551
2552 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2553 riscv-opc.h.
2554 (class riscv_pending_register_alias): New class.
2555 (riscv_check_tdesc_feature): Take vector of pending aliases and
2556 populate it as appropriate.
2557 (riscv_setup_register_aliases): Delete.
2558 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2559 to riscv_check_tdesc_feature in all cases. Use the vector to
2560 create the register aliases.
2561
2562 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2563
2564 * sol2-tdep.c (sol2_static_transform_name): Remove.
2565 (sol2_init_abi): Don't register it.
2566 * gdbarch.sh (static_transform_name): Remove.
2567 * gdbarch.c, gdbarch.h: Regenerate.
2568
2569 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2570 gdbarch_static_transform_name.
2571 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2572 * stabsread.c (define_symbol) <'X'>: Remove.
2573 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2574 handling.
2575 <'V'>: Likewise.
2576 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2577 <'S'>: Remove call to gdbarch_static_transform_name.
2578
2579 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2580
2581 * procfs.c (procfs_pre_trace): New function.
2582 (procfs_target::create_inferior): Pass it to fork_inferior.
2583
2584 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2585
2586 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2587 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2588 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2589 sol2-tdep.o, sparc-sol2-tdep.o.
2590 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2591 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2592 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2593 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2594
2595 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2596
2597 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2598 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2599 Call sol2_init_abi.
2600 Remove calls to set_gdbarch_skip_solib_resolver,
2601 set_gdbarch_core_pid_to_str.
2602 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2603 (i386_sol2_static_transform_name): Remove.
2604 (i386_sol2_init_abi): Call sol2_init_abi.
2605 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2606 set_gdbarch_static_transform_name,
2607 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2608 Use sol2_sigtramp_p.
2609 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2610 (sol2_sigtramp_p): New function.
2611 (sol2_static_transform_name): New function.
2612 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2613 (sol2_init_abi): New function.
2614 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2615 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2616 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2617 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2618 (sparc_sol2_static_transform_name): Remove.
2619 (sparc32_sol2_init_abi): Call sol2_init_abi.
2620 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2621 set_gdbarch_static_transform_name,
2622 set_gdbarch_skip_solib_resolver,
2623 set_gdbarch_core_pid_to_str.
2624 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2625 (sparc_sol2_static_transform_name): Remove
2626 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2627 call sol2_sigtramp_p.
2628 (sparc64_sol2_init_abi): Call sol2_init_abi.
2629 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2630 set_gdbarch_static_transform_name,
2631 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2632
2633 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2634
2635 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2636 * exec.c (validate_exec_file): If from_tty, set both
2637 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2638 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2639 and from_tty, unconditionally ask a confirmation.
2640
2641 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2642
2643 * target-descriptions.c (tdesc_architecture_name): Protect against
2644 NULL pointer dereference.
2645 (maint_print_xml_tdesc_cmd): New function.
2646 (_initialize_target_descriptions): Register new 'maint print
2647 xml-tdesc' command and give it the filename completer.
2648 * NEWS: Mention new 'maint print xml-tdesc' command.
2649
2650 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2651
2652 * target-descriptions.c (class tdesc_compatible_info): New class.
2653 (struct target_desc): Change type of compatible vector.
2654 (tdesc_compatible_p): Update for change in type of
2655 target_desc::compatible.
2656 (tdesc_compatible_info_list): New function.
2657 (tdesc_compatible_info_arch_name): New function.
2658 (tdesc_add_compatible): Update for change in type of
2659 target_desc::compatible.
2660 (print_c_tdesc::visit_pre): Likewise.
2661
2662 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2663
2664 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2665 whitespace to underscore.
2666 (maint_print_c_tdesc_cmd): Use fake filename for target
2667 descriptions that came from the target.
2668 (_initialize_target_descriptions): Add filename command completion
2669 for 'maint print c-tdesc'.
2670
2671 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2672
2673 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2674 lines.
2675
2676 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2677
2678 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2679 lines.
2680 (dwarf2_find_location_expression): Likewise.
2681 (call_site_parameter_matches): Likewise.
2682 (dwarf2_compile_expr_to_ax): Likewise.
2683 (disassemble_dwarf_expression): Likewise.
2684 (loclist_describe_location): Likewise.
2685
2686 2020-06-23 Pedro Alves <palves@redhat.com>
2687
2688 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2689 progspace-and-thread.h. Include scoped-mock-context.h instead.
2690 (register_to_value_test): Use scoped_mock_context.
2691 * regcache.c: Include "scoped-mock-context.h".
2692 (cooked_read_test): Don't error out if a target is already pushed.
2693 Use scoped_mock_context. Adjust.
2694 * scoped-mock-context.h: New file.
2695
2696 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2697
2698 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2699 initializer.
2700 (ada_language::is_string_type_p): New member function.
2701 * c-lang.c (c_language_data): Delete la_is_string_type_p
2702 initializer.
2703 (cplus_language_data): Likewise.
2704 (asm_language_data): Likewise.
2705 (minimal_language_data): Likewise.
2706 * d-lang.c (d_language_data): Likewise.
2707 * f-lang.c (f_is_string_type_p): Delete function, implementation
2708 moved to f_language::is_string_type_p.
2709 (f_language_data): Delete la_is_string_type_p initializer.
2710 (f_language::is_string_type_p): New member function,
2711 implementation from f_is_string_type_p.
2712 * go-lang.c (go_is_string_type_p): Delete function, implementation
2713 moved to go_language::is_string_type_p.
2714 (go_language_data): Delete la_is_string_type_p initializer.
2715 (go_language::is_string_type_p): New member function,
2716 implementation from go_is_string_type_p.
2717 * language.c (language_defn::is_string_type_p): Define new member
2718 function.
2719 (default_is_string_type_p): Make static, add comment copied from
2720 header file.
2721 (unknown_language_data): Delete la_is_string_type_p initializer.
2722 (unknown_language::is_string_type_p): New member function.
2723 (auto_language_data): Delete la_is_string_type_p initializer.
2724 (auto_language::is_string_type_p): New member function.
2725 * language.h (language_data): Delete la_is_string_type_p field.
2726 (language_defn::is_string_type_p): Declare new function.
2727 (default_is_string_type_p): Delete desclaration, move comment to
2728 definition.
2729 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2730 moved to m2_language::is_string_type_p.
2731 (m2_language_data): Delete la_is_string_type_p initializer.
2732 (m2_language::is_string_type_p): New member function,
2733 implementation from m2_is_string_type_p.
2734 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2735 initializer.
2736 * opencl-lang.c (opencl_language_data): Likewise.
2737 * p-lang.c (pascal_is_string_type_p): Delete function,
2738 implementation moved to pascal_language::is_string_type_p.
2739 (pascal_language_data): Delete la_is_string_type_p initializer.
2740 (pascal_language::is_string_type_p): New member function,
2741 implementation from pascal_is_string_type_p.
2742 * rust-lang.c (rust_is_string_type_p): Delete function,
2743 implementation moved to rust_language::is_string_type_p.
2744 (rust_language_data): Delete la_is_string_type_p initializer.
2745 (rust_language::is_string_type_p): New member function,
2746 implementation from rust_is_string_type_p.
2747 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2748 is_string_type_p.
2749
2750 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2751
2752 * ada-lang.c (ada_language_data): Delete la_print_typedef
2753 initializer.
2754 (ada_language::print_typedef): New member function.
2755 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2756 (cplus_language_data): Likewise.
2757 (asm_language_data): Likewise.
2758 (minimal_language_data): Likewise.
2759 * d-lang.c (d_language_data): Likewise.
2760 * f-lang.c (f_language_data): Likewise.
2761 (f_language::print_typedef): New member function.
2762 * go-lang.c (go_language_data): Delete la_print_typedef
2763 initializer.
2764 * language.c (language_defn::print_typedef): Define member
2765 function.
2766 (unknown_language_data): Delete la_print_typedef initializer.
2767 (unknown_language::print_typedef): New member function.
2768 (auto_language_data): Delete la_print_typedef initializer.
2769 (auto_language::print_typedef): New member function.
2770 * language.h (language_data): Delete la_print_typedef field.
2771 (language_defn::print_typedef): Declare new member function.
2772 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2773 (default_print_typedef): Delete declaration.
2774 * m2-lang.c (m2_language_data): Delete la_print_typedef
2775 initializer.
2776 (m2_language::print_typedef): New member function.
2777 * objc-lang.c (objc_language_data): Delete la_print_typedef
2778 initializer.
2779 * opencl-lang.c (opencl_language_data): Likewise.
2780 * p-lang.c (pascal_language_data): Likewise.
2781 (pascal_language::print_typedef): New member function.
2782 * rust-lang.c (rust_print_typedef): Delete function,
2783 implementation moved to rust_language::print_typedef.
2784 (rust_language): Delete la_print_typedef initializer.
2785 (rust_language::print_typedef): New member function,
2786 implementation from rust_print_typedef.
2787 * typeprint.c (default_print_typedef): Delete.
2788
2789 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2790
2791 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2792 (ada_language::printstr): New member function.
2793 * c-lang.c (c_language_data): Delete la_printstr initializer.
2794 (cplus_language_data): Likewise.
2795 (asm_language_data): Likewise.
2796 (minimal_language_data): Likewise.
2797 * d-lang.c (d_language_data): Likewise.
2798 * f-lang.c (f_printstr): Rename to f_language::printstr.
2799 (f_language_data): Delete la_printstr initializer.
2800 (f_language::printstr): New member function, implementation from
2801 f_printstr.
2802 * go-lang.c (go_language_data): Delete la_printstr initializer.
2803 * language.c (language_defn::printstr): Define new member
2804 function.
2805 (unk_lang_printstr): Delete.
2806 (unknown_language_data): Delete la_printstr initializer.
2807 (unknown_language::printstr): New member function.
2808 (auto_language_data): Delete la_printstr initializer.
2809 (auto_language::printstr): New member function.
2810 * language.h (language_data): Delete la_printstr field.
2811 (language_defn::printstr): Declare new member function.
2812 (LA_PRINT_STRING): Update call to printstr.
2813 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2814 (m2_language_data): Delete la_printstr initializer.
2815 (m2_language::printstr): New member function, implementation from
2816 m2_printstr.
2817 * objc-lang.c (objc_language_data): Delete la_printstr
2818 initializer.
2819 * opencl-lang.c (opencl_language_data): Likewise.
2820 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2821 (pascal_language_data): Delete la_printstr initializer.
2822 (pascal_language::printstr): New member function, implementation
2823 from pascal_printstr.
2824 * p-lang.h (pascal_printstr): Delete declaration.
2825 * rust-lang.c (rust_printstr): Update header comment.
2826 (rust_language_data): Delete la_printstr initializer.
2827 (rust_language::printstr): New member function.
2828
2829 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2830
2831 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2832 (ada_language::printchar): New member function.
2833 * c-lang.c (c_language_data): Delete la_printchar initializer.
2834 (cplus_language_data): Likewise.
2835 (asm_language_data): Likewise.
2836 (minimal_language_data): Likewise.
2837 * d-lang.c (d_language_data): Likewise.
2838 * f-lang.c (f_printchar): Rename to f_language::printchar.
2839 (f_language_data): Delete la_printchar initializer.
2840 (f_language::printchar): New member function, implementation from
2841 f_printchar.
2842 * go-lang.c (go_language_data): Delete la_printchar initializer.
2843 * language.c (unk_lang_printchar): Delete.
2844 (language_defn::printchar): Define new member function.
2845 (unknown_language_data): Delete la_printchar initializer.
2846 (unknown_language::printchar): New member function.
2847 (auto_language_data): Delete la_printchar initializer.
2848 (auto_language::printchar): New member function.
2849 * language.h (language_data): Delete la_printchar field.
2850 (language_defn::printchar): Declare new member function.
2851 (LA_PRINT_CHAR): Update call to printchar.
2852 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2853 (m2_language::printchar): New member function.
2854 * objc-lang.c (objc_language_data): Delete la_printchar
2855 initializer.
2856 * opencl-lang.c (opencl_language_data): Likewise.
2857 * p-lang.c (pascal_language_data): Delete la_printchar
2858 initializer.
2859 (pascal_language::printchar): New member function.
2860 * rust-lang.c (rust_printchar): Rename to
2861 rust_language::printchar.
2862 (rust_language_data): Delete la_printchar initializer.
2863 (rust_language::printchar): New member function, implementation
2864 from rust_printchar.
2865
2866 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2867
2868 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2869 (ada_language_data): Delete la_emitchar initializer.
2870 (ada_language::emitchar): New member function, implementation from
2871 emit_char.
2872 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2873 (cplus_language_data): Likewise.
2874 (asm_language_data): Likewise.
2875 (minimal_language_data): Likewise.
2876 * d-lang.c (d_language_data): Likewise.
2877 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2878 (f_language_data): Delete la_emitchar initializer.
2879 (f_language::emitchar): New member function, implementation from
2880 f_emit_char.
2881 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2882 * language.c (unk_lang_emit_char): Delete.
2883 (language_defn::emitchar): New member function definition.
2884 (unknown_language_data): Delete la_emitchar initializer.
2885 (unknown_language::emitchar): New member function.
2886 (auto_language_data): Delete la_emitchar initializer.
2887 (auto_language::emitchar): New member function.
2888 * language.h (language_data): Delete la_emitchar field.
2889 (language_defn::emitchar): New member field declaration.
2890 (LA_EMIT_CHAR): Update call to emitchar.
2891 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2892 (m2_language_data): Delete la_emitchar initializer.
2893 (m2_language::emitchar): New member function, implementation from
2894 m2_emit_char.
2895 * objc-lang.c (objc_language_data): Delete la_emitchar
2896 initializer.
2897 * opencl-lang.c (opencl_language_data): Likewise.
2898 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2899 (pascal_language_data): Delete la_emitchar initializer.
2900 (pascal_language::emitchar): New member function, implementation
2901 from pascal_emit_char.
2902 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2903 (rust_language_data): Delete la_emitchar initializer.
2904 (rust_language::emitchar): New member function, implementation
2905 from rust_emitchar.
2906
2907 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2908
2909 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2910 (ada_language_data): Delete la_post_parser initializer.
2911 (ada_language::post_parser): New member function.
2912 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2913 (cplus_language_data): Likewise.
2914 (asm_language_data): Likewise.
2915 (minimal_language_data): Likewise.
2916 * d-lang.c (d_language_data): Likewise.
2917 * f-lang.c (f_language_data): Likewise.
2918 * go-lang.c (go_language_data): Likewise.
2919 * language.c (unknown_language_data): Likewise.
2920 (auto_language_data): Likewise.
2921 * language.h (language_data): Delete la_post_parser field.
2922 (language_defn::post_parser): New member function.
2923 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2924 * objc-lang.c (objc_language_data): Likewise.
2925 * opencl-lang.c (opencl_language_data): Likewise.
2926 * p-lang.c (pascal_language_data): Likewise.
2927 * parse.c (parse_exp_in_context): Update call to post_parser.
2928 (null_post_parser): Delete definition.
2929 * parser-defs.h (null_post_parser): Delete declaration.
2930 * rust-lang.c (rust_language_data): Delete la_post_parser
2931 initializer.
2932
2933 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2934
2935 * ada-lang.c (parse): Rename to ada_language::parser.
2936 (ada_language_data): Delete la_parser initializer.
2937 (ada_language::parser): New member function, implementation from
2938 parse.
2939 * c-lang.c (c_language_data): Delete la_parser initializer.
2940 (cplus_language_data): Likewise.
2941 (asm_language_data): Likewise.
2942 (minimal_language_data): Likewise.
2943 * d-lang.c (d_language_data): Likewise.
2944 (d_language::parser): New member function.
2945 * f-lang.c (f_language_data): Delete la_parser initializer.
2946 (f_language::parser): New member function.
2947 * go-lang.c (go_language_data): Delete la_parser initializer.
2948 (go_language::parser): New member function.
2949 * language.c (unk_lang_parser): Delete.
2950 (language_defn::parser): Define new member function.
2951 (unknown_language_data): Delete la_parser initializer.
2952 (unknown_language::parser): New member function.
2953 (auto_language_data): Delete la_parser initializer.
2954 (auto_language::parser): New member function.
2955 * language.h (language_data): Delete la_parser field.
2956 (language_defn::parser): Declare new member function.
2957 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2958 (m2_language::parser): New member function.
2959 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2960 * opencl-lang.c (opencl_language_data): Likewise.
2961 * p-lang.c (pascal_language_data): Likewise.
2962 (pascal_language::parser): New member function.
2963 * parse.c (parse_exp_in_context): Update call to parser.
2964 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2965 (rust_language::parser): New member function.
2966
2967 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2968
2969 * top.c (print_gdb_configuration): Print --with-python-libdir
2970 configuration value.
2971
2972 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2973
2974 * NEWS: Mention change to the alias command.
2975
2976 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2977
2978 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2979 (alias_command_completer)
2980 (make_alias_options_def_group): New functions.
2981 (alias_opts, alias_option_defs): New struct and array.
2982 (alias_usage_error): Update usage.
2983 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2984 Use option framework.
2985 (_initialize_cli_cmds): Update alias command help.
2986 Update aliases command help.
2987 (show_user):
2988 Add NULL for new default_args lookup_cmd argument.
2989 (valid_command_p): Rename to validate_aliased_command.
2990 Add NULL for new default_args lookup_cmd argument. Verify that the
2991 aliased_command has no default args.
2992 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2993 (lookup_cmd_1, lookup_cmd): New argument default_args.
2994 (add_alias_cmd):
2995 Add NULL for new default_args lookup_cmd argument.
2996 (print_help_for_command): Show default args under the layout
2997 alias some_alias = some_aliased_cmd some_alias_default_arg.
2998 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2999 xfree default_args in destructor.
3000 * cli/cli-script.c (process_next_line, do_define_command):
3001 Add NULL for new default_args lookup_cmd argument.
3002 * command.h: Declare new default_args argument in lookup_cmd
3003 and lookup_cmd_1.
3004 * completer.c (complete_line_internal_1):
3005 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3006 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3007 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3008 Likewise.
3009 * infcmd.c (_initialize_infcmd): Likewise.
3010 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3011 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3012 * python/py-param.c (add_setshow_generic): Likewise.
3013 * remote.c (_initialize_remote): Likewise.
3014 * top.c (execute_command): Prepend default_args if command has some.
3015 (set_verbose):
3016 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3017 * tracepoint.c (validate_actionline, encode_actions_1):
3018 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3019
3020 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3021
3022 * jit.c (jit_read_descriptor): Use bool as the return type.
3023 (jit_breakpoint_re_set_internal): Use bool as the return type.
3024 Invert the return value logic; return true if the jit breakpoint
3025 has been successfully initialized.
3026 (jit_inferior_init): Update the call to
3027 jit_breakpoint_re_set_internal.
3028
3029 2020-06-22 Pedro Alves <palves@redhat.com>
3030
3031 PR gdb/25939
3032 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3033 Use the current inferior instead. Don't return
3034 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3035 wait again.
3036 * sol-thread.c (sol_thread_target::wait): Don't reference
3037 inferior_ptid.
3038 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3039 (sol_update_thread_list_callback): Use the current inferior's pid
3040 instead of inferior_ptid.
3041
3042 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3043
3044 * procfs.c: Cleanup many comments.
3045
3046 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3047 (AFTER_WATCHFLAG): Replace by value.
3048
3049 (MAIN_PROC_NAME_FORMAT): Inline ...
3050 (create_procinfo): ... here.
3051
3052 (procfs_debug_inferior): Remove SYS_exec handling.
3053 (syscall_is_exec): Likewise.
3054 (procfs_set_exec_trap): Likewise.
3055
3056 (syscall_is_lwp_exit): Inline in callers.
3057 (syscall_is_exit): Likewise.
3058 (syscall_is_exec): Likewise.
3059 (syscall_is_lwp_create): Likewise.
3060
3061 (invalidate_cache): Remove #if 0 code.
3062
3063 (make_signal_thread_runnable): Remove.
3064 (procfs_target::resume): Remove #if 0 code.
3065
3066 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3067
3068 PR gdb/25939
3069 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3070 call ...
3071 (procfs_target::create_inferior): ... here.
3072
3073 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3074
3075 * exec.c (validate_exec_file): Ensure the build-id is up to
3076 date by calling reopen_exec_file (that checks file timestamp
3077 to decide to re-read the file).
3078
3079 2020-06-18 Pedro Alves <palves@redhat.com>
3080
3081 PR gdb/25412
3082 * gdbthread.h (delete_thread, delete_thread_silent)
3083 (find_thread_ptid): Update comments.
3084 * thread.c (current_thread_): New global.
3085 (is_current_thread): Move higher, and reimplement.
3086 (inferior_thread): Reimplement.
3087 (set_thread_exited): Use bool. Add assertions.
3088 (add_thread_silent): Simplify thread-reuse handling by always
3089 calling delete_thread.
3090 (delete_thread): Remove intro comment.
3091 (find_thread_ptid): Skip exited threads.
3092 (switch_to_thread_no_regs): Write to current_thread_.
3093 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3094 INFERIOR_PTID. Clear current_thread_.
3095
3096 2020-06-18 Pedro Alves <palves@redhat.com>
3097
3098 * aix-thread.c (pd_update): Use switch_to_thread.
3099
3100 2020-06-18 Pedro Alves <palves@redhat.com>
3101
3102 * ravenscar-thread.c (ravenscar_thread_target): Update.
3103 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3104 (ravenscar_thread_target::add_active_thread): ... this. Don't
3105 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3106 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3107
3108 2020-06-18 Pedro Alves <palves@redhat.com>
3109
3110 * nat/windows-nat.c (current_windows_thread): Remove.
3111 * nat/windows-nat.h (current_windows_thread): Remove.
3112 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3113 Adjust.
3114 (display_selectors): Adjust to fetch the current
3115 windows_thread_info based on inferior_ptid.
3116 (fake_create_process): No longer write to current_windows_thread.
3117 (windows_nat_target::get_windows_debug_event):
3118 Don't set inferior_ptid or current_windows_thread.
3119 (windows_nat_target::wait): Adjust to not rely on
3120 current_windows_thread.
3121 (do_initial_windows_stuff): Now a method of windows_nat_target.
3122 Switch to the last_ptid thread.
3123 (windows_nat_target::attach): Adjust.
3124 (windows_nat_target::detach): Use switch_to_no_thread instead of
3125 writing to inferior_ptid directly.
3126 (windows_nat_target::create_inferior): Adjust.
3127
3128 2020-06-18 Pedro Alves <palves@redhat.com>
3129
3130 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3131
3132 2020-06-18 Pedro Alves <palves@redhat.com>
3133
3134 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3135 after creating it, instead of writing to inferior_ptid. Don't
3136 write to inferior_ptid.
3137
3138 2020-06-18 Pedro Alves <palves@redhat.com>
3139
3140 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3141
3142 2020-06-18 Pedro Alves <palves@redhat.com>
3143
3144 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3145 it, instead of writing to inferior_ptid.
3146
3147 2020-06-18 Pedro Alves <palves@redhat.com>
3148
3149 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3150 to inferior_ptid.
3151
3152 2020-06-18 Pedro Alves <palves@redhat.com>
3153
3154 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3155 instead of writing to inferior_ptid directly.
3156
3157 2020-06-18 Pedro Alves <palves@redhat.com>
3158
3159 * corelow.c (core_target::close): Use switch_to_no_thread instead
3160 of writing to inferior_ptid directly.
3161 (add_to_thread_list, core_target_open): Use switch_to_thread
3162 instead of writing to inferior_ptid directly.
3163
3164 2020-06-18 Pedro Alves <palves@redhat.com>
3165
3166 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3167 inferior_ptid.
3168 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3169 inferior_ptid.
3170 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3171 inferior_ptid directly.
3172 (darwin_nat_target::init_thread_list): Switch to thread, instead
3173 of writing to inferior_ptid.
3174 (darwin_nat_target::attach): Don't write to inferior_ptid.
3175 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3176
3177 2020-06-18 Pedro Alves <palves@redhat.com>
3178
3179 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3180 thread.
3181 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3182 Instead use switch_to_thread.
3183 (gnu_nat_target::detach): Use switch_to_no_thread
3184 instead of writing to inferior_ptid directly. Used passed-in
3185 inferior instead of looking up the inferior by pid.
3186
3187 2020-06-18 Pedro Alves <palves@redhat.com>
3188
3189 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3190 inferior_ptid.
3191
3192 2020-06-18 Pedro Alves <palves@redhat.com>
3193
3194 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3195 inferior_ptid.
3196 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3197 thread.
3198 (nto_procfs_target::detach): Avoid referencing
3199 inferior_ptid. Use switch_to_no_thread instead of writing to
3200 inferior_ptid directly.
3201 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3202 instead of writing to inferior_ptid directly.
3203 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3204 to thread.
3205
3206 2020-06-18 Pedro Alves <palves@redhat.com>
3207
3208 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3209 after creating it, instead of writing to inferior_ptid.
3210 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3211 to inferior_ptid directly.
3212 (gdbsim_target::wait): Don't write to inferior_ptid.
3213
3214 2020-06-18 Pedro Alves <palves@redhat.com>
3215
3216 * remote.c (remote_target::remote_notice_new_inferior): Use
3217 switch_to_thread instead of writing to inferior_ptid directly.
3218 (remote_target::add_current_inferior_and_thread): Use
3219 switch_to_no_thread instead of writing to inferior_ptid directly.
3220 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3221 and switch_to_thread instead of using set_current_inferior or
3222 writing to inferior_ptid directly.
3223
3224 2020-06-18 Pedro Alves <palves@redhat.com>
3225
3226 * tracectf.c (ctf_target_open): Switch to added thread instead of
3227 writing to inferior_ptid directly.
3228 (ctf_target::close): Use switch_to_no_thread instead of writing to
3229 inferior_ptid directly.
3230
3231 2020-06-18 Pedro Alves <palves@redhat.com>
3232
3233 * tracefile-tfile.c (tfile_target_open): Don't write to
3234 inferior_ptid directly, instead switch to added thread.
3235 (tfile_target::close): Use switch_to_no_thread instead of writing
3236 to inferior_ptid directly.
3237
3238 2020-06-18 Pedro Alves <palves@redhat.com>
3239
3240 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3241 (procfs_target::detach): Use switch_to_no_thread
3242 instead of writing to inferior_ptid directly.
3243 (do_attach): Change return type to void. Switch to the added
3244 thread.
3245 (procfs_target::create_inferior): Switch to the added thread.
3246 (procfs_do_thread_registers): Don't write to inferior_ptid.
3247
3248 2020-06-18 Pedro Alves <palves@redhat.com>
3249
3250 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3251 of writing to inferior_ptid.
3252 (scoped_restore_exited_inferior): Delete.
3253 (handle_vfork_child_exec_or_exit): Simplify using
3254 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3255 instead of writing to inferior_ptid.
3256 (THREAD_STOPPED_BY): Delete.
3257 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3258 (thread_stopped_by_hw_breakpoint): Delete.
3259 (save_waitstatus): Use
3260 scoped_restore_current_thread+switch_to_thread, and call
3261 target_stopped_by_watchpoint instead of
3262 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3263 instead of thread_stopped_by_sw_breakpoint, and
3264 target_stopped_by_hw_breakpoint instead of
3265 thread_stopped_by_hw_breakpoint.
3266 (handle_inferior_event)
3267 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3268 inferior_ptid directly, nor
3269 set_current_inferior/set_current_program_space. Use
3270 switch_to_thread / switch_to_inferior_no_thread instead.
3271
3272 2020-06-18 Pedro Alves <palves@redhat.com>
3273
3274 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3275 instead of writing to inferior_ptid.
3276
3277 2020-06-18 Pedro Alves <palves@redhat.com>
3278
3279 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3280 added thread.
3281 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3282 to the added thread.
3283 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3284 instead of writing to inferior_ptid.
3285
3286 2020-06-18 Pedro Alves <palves@redhat.com>
3287
3288 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3289 (register_to_value_test): Mock a program_space too. Heap-allocate
3290 the address space. Don't write to inferior_ptid. Use
3291 switch_to_thread instead.
3292
3293 2020-06-18 Pedro Alves <palves@redhat.com>
3294
3295 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3296 Delete.
3297 (find_signalled_thread()): New, factored out from
3298 linux_make_corefile_notes and adjusted to handle exited threads.
3299 (linux_make_corefile_notes): Adjust to use the new
3300 find_signalled_thread.
3301
3302 2020-06-18 Pedro Alves <palves@redhat.com>
3303
3304 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3305 of saving/restoring inferior_ptid.
3306
3307 2020-06-17 Tom Tromey <tom@tromey.com>
3308
3309 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3310 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3311 declare.
3312 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3313
3314 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3315
3316 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3317 of partial symtabs.
3318
3319 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3320
3321 * regformats/reg-arm.dat: Remove.
3322 * regformats/reg-bfin.dat: Remove.
3323 * regformats/reg-cris.dat: Remove.
3324 * regformats/reg-crisv32.dat: Remove.
3325 * regformats/reg-m32r.dat: Remove.
3326 * regformats/reg-tilegx.dat: Remove.
3327 * regformats/reg-tilegx32.dat: Remove.
3328
3329 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3330
3331 * features/Makefile (WHICH): Remove arm files.
3332 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3333 * regformats/arm/arm-with-neon.dat: Remove.
3334 * regformats/arm/arm-with-vfpv2.dat: Remove.
3335 * regformats/arm/arm-with-vfpv3.dat: Remove.
3336
3337 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3338
3339 * features/Makefile (XMLTOC): Remove rx.xml.
3340
3341 2020-06-17 Pedro Alves <palves@redhat.com>
3342
3343 * gdbthread.h (thread_control_state) <trap_expected> Update
3344 comments.
3345
3346 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3347
3348 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3349 ada_language::lookup_symbol_nonlocal.
3350 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3351 (ada_language::lookup_symbol_nonlocal): New member function,
3352 implementation from ada_lookup_symbol_nonlocal.
3353 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3354 initializer.
3355 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3356 initializer.
3357 (cplus_language::lookup_symbol_nonlocal): New member function.
3358 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3359 (minimal_language_data) Likewise.
3360 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3361 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3362 initializer.
3363 (d_language::lookup_symbol_nonlocal): New member function.
3364 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3365 initializer.
3366 (f_language::lookup_symbol_nonlocal): New member function.
3367 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3368 initializer.
3369 * language.c (unknown_language_data): Likewise.
3370 (auto_language_data): Likewise.
3371 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3372 field.
3373 (language_defn::lookup_symbol_nonlocal): New member function.
3374 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3375 initializer.
3376 * objc-lang.c (objc_language_data): Likewise.
3377 * opencl-lang.c (opencl_language_data): Likewise.
3378 * p-lang.c (pascal_language_data): Likewise.
3379 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3380 rust_language::lookup_symbol_nonlocal.
3381 (rust_language_data): Delete la_lookup_symbol_nonlocal
3382 initializer.
3383 (rust_language::lookup_symbol_nonlocal): New member function,
3384 implementation from rust_lookup_symbol_nonlocal.
3385 * symtab.c (lookup_symbol_aux): Update call to
3386 lookup_symbol_nonlocal.
3387 (basic_lookup_symbol_nonlocal): Rename to...
3388 (language_defn::lookup_symbol_nonlocal): ...this, and update
3389 header comment. Remove language_defn parameter, and replace with
3390 uses of `this'.
3391 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3392
3393 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3394
3395 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3396 initializer.
3397 (ada_language::value_print_inner): New member function.
3398 * c-lang.c (c_language_data): Delete la_value_print_inner
3399 initializer.
3400 (cplus_language_data): Likewise.
3401 (asm_language_data): Likewise.
3402 (minimal_language_data): Likewise.
3403 * d-lang.c (d_language_data): Likewise.
3404 (d_language::value_print_inner): New member function.
3405 * f-lang.c (f_language_data): Delete la_value_print_inner
3406 initializer.
3407 (f_language::value_print_inner): New member function.
3408 * f-lang.h (f_value_print_innner): Rename to...
3409 (f_value_print_inner): ...this (note spelling of 'inner').
3410 * f-valprint.c (f_value_print_innner): Rename to...
3411 (f_value_print_inner): ...this (note spelling of 'inner').
3412 * go-lang.c (go_language_data): Delete la_value_print_inner
3413 initializer.
3414 (go_language::value_print_inner): New member function.
3415 * language.c (language_defn::value_print_inner): Define new member
3416 function.
3417 (unk_lang_value_print_inner): Delete.
3418 (unknown_language_data): Delete la_value_print_inner initializer.
3419 (unknown_language::value_print_inner): New member function.
3420 (auto_language_data): Delete la_value_print_inner initializer.
3421 (auto_language::value_print_inner): New member function.
3422 * language.h (language_data): Delete la_value_print_inner field.
3423 (language_defn::value_print_inner): Delcare new member function.
3424 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3425 initializer.
3426 (m2_language::value_print_inner): New member function.
3427 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3428 initializer.
3429 * opencl-lang.c (opencl_language_data): Likewise.
3430 * p-lang.c (pascal_language_data): Likewise.
3431 (pascal_language::value_print_inner): New member function.
3432 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3433 initializer.
3434 (rust_language::value_print_inner): New member function.
3435 * valprint.c (do_val_print): Update call to value_print_inner.
3436
3437 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3438
3439 * ada-lang.c (ada_language_data): Delete la_value_print
3440 initializer.
3441 (ada_language::value_print): New member function.
3442 * c-lang.c (c_language_data): Delete la_value_print initializer.
3443 (cplus_language_data): Likewise.
3444 (asm_language_data): Likewise.
3445 (minimal_language_data): Likewise.
3446 * d-lang.c (d_language_data): Likewise.
3447 * f-lang.c (f_language_data): Likewise.
3448 * go-lang.c (go_language_data): Likewise.
3449 * language.c (unk_lang_value_print): Delete.
3450 (language_defn::value_print): Define new member function.
3451 (unknown_language_data): Delete la_value_print initializer.
3452 (unknown_language::value_print): New member function.
3453 (auto_language_data): Delete la_value_print initializer.
3454 (auto_language::value_print): New member function.
3455 * language.h (language_data): Delete la_value_print field.
3456 (language_defn::value_print): Declare new member function.
3457 (LA_VALUE_PRINT): Update call to value_print.
3458 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3459 * objc-lang.c (objc_language_data): Likewise.
3460 * opencl-lang.c (opencl_language_data): Likewise.
3461 * p-lang.c (pascal_language_data): Likewise.
3462 (pascal_language::value_print): New member function.
3463 * rust-lang.c (rust_language_data): Delete la_value_print
3464 initializer.
3465
3466 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3467
3468 * ada-lang.c (ada_watch_location_expression): Rename to
3469 ada_language::watch_location_expression.
3470 (ada_language_data): Delete la_watch_location_expression
3471 initializer.
3472 (ada_language::watch_location_expression): New member function,
3473 implementation from ada_watch_location_expression.
3474 * breakpoint.c (watch_command_1): Update call to
3475 watch_location_expression.
3476 * c-lang.c (c_watch_location_expression): Rename to
3477 language_defn::watch_location_expression.
3478 (c_language_data): Delete la_watch_location_expression
3479 initializer.
3480 (cplus_language_data): Likewise.
3481 (asm_language_data): Likewise.
3482 (minimal_language_data): Likewise.
3483 * c-lang.h (c_watch_location_expression): Delete declaration.
3484 * d-lang.c (d_language_data): Delete la_watch_location_expression
3485 initializer.
3486 * f-lang.c (f_language_data): Likewise.
3487 * go-lang.c (go_language_data): Likewise.
3488 * language.c (language_defn::watch_location_expression): Member
3489 function implementation from c_watch_location_expression.
3490 (unknown_language_data): Delete la_watch_location_expression
3491 initializer.
3492 (auto_language_data): Likewise.
3493 * language.h (language_data): Delete la_watch_location_expression
3494 field.
3495 (language_defn::watch_location_expression): Declare new member
3496 function.
3497 * m2-lang.c (m2_language_data): Delete
3498 la_watch_location_expression initializer.
3499 * objc-lang.c (objc_language_data): Likewise.
3500 * opencl-lang.c (opencl_language_data): Likewise.
3501 * p-lang.c (pascal_language_data): Likewise.
3502 * rust-lang.c (rust_watch_location_expression): Rename to
3503 rust_language::watch_location_expression.
3504 (rust_language_data): Delete la_watch_location_expression
3505 initializer.
3506 (rust_language::watch_location_expression): New member function,
3507 implementation from rust_watch_location_expression.
3508
3509 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3510
3511 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3512 ada_language::collect_symbol_completion_matches.
3513 (ada_language_data): Delete la_collect_symbol_completion_matches
3514 initializer.
3515 (ada_language::collect_symbol_completion_matches): New member
3516 function, implementation from
3517 ada_collect_symbol_completion_matches.
3518 * c-lang.c (c_language_data): Delete
3519 la_collect_symbol_completion_matches initializer.
3520 (cplus_language_data): Likewise.
3521 (asm_language_data): Likewise.
3522 (minimal_language_data): Likewise.
3523 * d-lang.c (d_language_data): Likewise.
3524 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3525 f_language::collect_symbol_completion_matches.
3526 (f_language_data): Delete la_collect_symbol_completion_matches
3527 initializer.
3528 (f_language::collect_symbol_completion_matches) New member
3529 function, implementation from f_collect_symbol_completion_matches.
3530 * go-lang.c (go_language_data): Delete
3531 la_collect_symbol_completion_matches initializer.
3532 * language.c (unknown_language_data): Likewise.
3533 (auto_language_data): Likewise.
3534 * language.h (language_data): Delete
3535 la_collect_symbol_completion_matches field.
3536 (language_defn::collect_symbol_completion_matches): New member
3537 function.
3538 * m2-lang.c (m2_language_data): Delete
3539 la_collect_symbol_completion_matches initializer.
3540 * objc-lang.c (objc_language_data): Likewise.
3541 * opencl-lang.c (opencl_language_data): Likewise.
3542 * p-lang.c (pascal_language_data): Likewise.
3543 * rust-lang.c (rust_language_data): Likewise.
3544 * symtab.c (default_collect_symbol_completion_matches): Delete.
3545 (collect_symbol_completion_matches): Update call to
3546 collect_symbol_completion_matches.
3547 (collect_symbol_completion_matches_type): Likewise.
3548 * symtab.h (default_collect_symbol_completion_matches): Delete
3549 declaration.
3550
3551 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3552
3553 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3554 (ada_language_data): Delete la_word_break_characters initializer.
3555 (ada_language::word_break_characters): New member function.
3556 * c-lang.c (c_language_data): Delete la_word_break_characters
3557 initializer.
3558 (cplus_language_data): Likewise.
3559 (asm_language_data): Likewise.
3560 (minimal_language_data): Likewise.
3561 * completer.c: Update global comment.
3562 (advance_to_expression_complete_word_point): Update call to
3563 word_break_characters.
3564 (complete_files_symbols): Likewise.
3565 (complete_line_internal_1): Likewise.
3566 (default_completer_handle_brkchars): Likewise.
3567 (skip_quoted_chars): Likewise.
3568 * d-lang.c (d_language_data): Delete la_word_break_characters
3569 initializer.
3570 * f-lang.c (f_word_break_characters): Delete.
3571 (f_language_data): Delete la_word_break_characters initializer.
3572 (f_language::word_break_characters): New member function.
3573 * go-lang.c (go_language_data): Delete la_word_break_characters
3574 initializer.
3575 * language.c (unknown_language_data): Likewise.
3576 (auto_language_data): Likewise.
3577 * language.h (default_word_break_characters): Move declaration to
3578 earlier in the file.
3579 (language_data): Delete la_word_break_characters field.
3580 (language_defn::word_break_characters): New member function.
3581 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3582 initializer.
3583 * objc-lang.c (objc_language_data): Likewise.
3584 * opencl-lang.c (opencl_language_data): Likewise.
3585 * p-lang.c (pascal_language_data): Likewise.
3586 * rust-lang.c (rust_language_data): Likewise.
3587
3588 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3589
3590 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3591 (ada_language_data): Delete la_get_symbol_name_matcher
3592 initializer.
3593 (language_defn::get_symbol_name_matcher_inner): New member
3594 function.
3595 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3596 initializer.
3597 (cplus_language_data): Likewise.
3598 (cplus_language::get_symbol_name_matcher_inner): New member
3599 function.
3600 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3601 (minimal_language_data): Likewise.
3602 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3603 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3604 initializer.
3605 * dictionary.c (iter_match_first_hashed): Update call to
3606 get_symbol_name_matcher.
3607 (iter_match_next_hashed): Likewise.
3608 (iter_match_next_linear): Likewise.
3609 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3610 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3611 initializer.
3612 (f_language::get_symbol_name_matcher_inner): New member function.
3613 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3614 initializer.
3615 * language.c (default_symbol_name_matcher): Update header comment,
3616 make static.
3617 (language_defn::get_symbol_name_matcher): New definition.
3618 (language_defn::get_symbol_name_matcher_inner): Likewise.
3619 (get_symbol_name_matcher): Delete.
3620 (unknown_language_data): Delete la_get_symbol_name_matcher
3621 initializer.
3622 (auto_language_data): Likewise.
3623 * language.h (language_data): Delete la_get_symbol_name_matcher
3624 field.
3625 (language_defn::get_symbol_name_matcher): New member function.
3626 (language_defn::get_symbol_name_matcher_inner): Likewise.
3627 (default_symbol_name_matcher): Delete declaration.
3628 * linespec.c (find_methods): Update call to
3629 get_symbol_name_matcher.
3630 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3631 initializer.
3632 * minsyms.c (lookup_minimal_symbol): Update call to
3633 get_symbol_name_matcher.
3634 (iterate_over_minimal_symbols): Likewise.
3635 * objc-lang.c (objc_language_data): Delete
3636 la_get_symbol_name_matcher initializer.
3637 * opencl-lang.c (opencl_language_data): Likewise.
3638 * p-lang.c (pascal_language_data): Likewise.
3639 * psymtab.c (psymbol_name_matches): Update call to
3640 get_symbol_name_matcher.
3641 * rust-lang.c (rust_language_data): Delete
3642 la_get_symbol_name_matcher initializer.
3643 * symtab.c (symbol_matches_search_name): Update call to
3644 get_symbol_name_matcher.
3645 (compare_symbol_name): Likewise.
3646
3647 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3648
3649 * ada-lang.c (ada_language_data): Delete la_compute_program
3650 initializer.
3651 * c-lang.c (c_language_data): Likewise.
3652 (c_language::compute_program): New member function.
3653 (cplus_language_data): Delete la_compute_program initializer.
3654 (cplus_language::compute_program): New member function.
3655 (asm_language_data): Delete la_compute_program initializer.
3656 (minimal_language_data): Likewise.
3657 * c-lang.h (c_compute_program): Update comment.
3658 (cplus_compute_program): Likewise.
3659 * compile/compile-c-support.c (c_compute_program): Likewise.
3660 (cplus_compute_program): Likewise.
3661 * compile/compile.c (compile_to_object): Update call to
3662 la_compute_program.
3663 * d-lang.c (d_language_data): Delete la_compute_program
3664 initializer.
3665 * f-lang.c (f_language_data): Likewise.
3666 * go-lang.c (go_language_data): Likewise.
3667 * language.c (unknown_language_data): Likewise.
3668 (auto_language_data): Likewise.
3669 * language.h (language_data): Delete la_compute_program field.
3670 (language_defn::compute_program): New member function.
3671 * m2-lang.c (m2_language_data): Delete la_compute_program
3672 initializer.
3673 * objc-lang.c (objc_language_data): Likewise.
3674 * opencl-lang.c (opencl_language_data): Likewise.
3675 * p-lang.c (pascal_language_data): Likewise.
3676 * rust-lang.c (rust_language_data): Likewise.
3677
3678 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3679
3680 * ada-lang.c (ada_language_data) Delete
3681 la_class_name_from_physname initializer.
3682 * c-lang.c (c_language_data): Likewise.
3683 (cplus_language_data): Likewise.
3684 (cplus_language::class_name_from_physname): New member function.
3685 (asm_language_data): Delete la_class_name_from_physname
3686 initializer.
3687 (minimal_language_data): Likewise.
3688 * d-lang.c (d_language_data): Likewise.
3689 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3690 method on language_defn class.
3691 (guess_full_die_structure_name): Likewise.
3692 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3693 initializer.
3694 * go-lang.c (go_language_data): Likewise.
3695 * language.c (language_class_name_from_physname): Delete.
3696 (unk_lang_class_name): Delete.
3697 (unknown_language_data): Delete la_class_name_from_physname
3698 initializer.
3699 (auto_language_data): Likewise.
3700 * language.h (language_data): Delete la_class_name_from_physname
3701 field.
3702 (language_defn::class_name_from_physname): New function.
3703 (language_class_name_from_physname): Delete declaration.
3704 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3705 initializer.
3706 * objc-lang.c (objc_language_data): Likewise.
3707 * opencl-lang.c (opencl_language_data): Likewise.
3708 * p-lang.c (pascal_language_data): Likewise.
3709 * rust-lang.c (rust_language_data): Likewise.
3710
3711 2020-06-16 Tom Tromey <tom@tromey.com>
3712
3713 * tui/tui-data.h (STATUS_NAME): New macro.
3714 * tui/tui-layout.c (tui_remove_some_windows)
3715 (initialize_known_windows, tui_register_window)
3716 (tui_layout_split::remove_windows, initialize_layouts)
3717 (tui_new_layout_command): Don't use hard-coded window names.
3718
3719 2020-06-16 Tom Tromey <tom@tromey.com>
3720
3721 PR tui/25348:
3722 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3723 tui_initialize_readline. Only run once. Call rl_initialize.
3724 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3725 tui_initialize_readline.
3726 * tui/tui-io.c (tui_setup_io): Call
3727 tui_ensure_readline_initialized.
3728 * tui/tui-interp.c (tui_interp::init): Update.
3729
3730 2020-06-16 Tom Tromey <tom@tromey.com>
3731
3732 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3733 Also preserve the status window.
3734
3735 2020-06-16 Tom Tromey <tom@tromey.com>
3736
3737 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3738 where m_window==nullptr.
3739
3740 2020-06-15 Tom Tromey <tromey@adacore.com>
3741
3742 * windows-nat.c (windows_nat::handle_output_debug_string):
3743 Update.
3744 (windows_nat::handle_ms_vc_exception): Update.
3745 * target.h (target_read_string): Change API.
3746 * target.c (target_read_string): Change API.
3747 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3748 Update.
3749 * solib-frv.c (frv_current_sos): Update.
3750 * solib-dsbt.c (dsbt_current_sos): Update.
3751 * solib-darwin.c (darwin_current_sos): Update.
3752 * linux-thread-db.c (inferior_has_bug): Update.
3753 * expprint.c (print_subexp_standard): Update.
3754 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3755 (ada_exception_message_1): Update.
3756
3757 2020-06-15 Tom Tromey <tromey@adacore.com>
3758
3759 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3760
3761 2020-06-15 Tom Tromey <tromey@adacore.com>
3762
3763 * valprint.c (read_string): Update comment.
3764 * target.c (MIN): Remove.
3765 (target_read_string): Rewrite.
3766
3767 2020-06-15 Tom Tromey <tromey@adacore.com>
3768
3769 * corefile.c (read_memory_string): Remove.
3770 * ada-valprint.c (ada_value_print_ptr): Update.
3771 * ada-lang.h (ada_tag_name): Change return type.
3772 * ada-lang.c (type_from_tag): Update.
3773 (ada_tag_name_from_tsd): Change return type. Use
3774 target_read_string.
3775 (ada_tag_name): Likewise.
3776 * gdbcore.h (read_memory_string): Don't declare.
3777
3778 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3779
3780 * symtab.c (rbreak_command): Ignore Windows drive colon.
3781
3782 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3783
3784 * NEWS: Mention removed GDBserver host support.
3785
3786 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3787
3788 * features/riscv/rebuild-csr-xml.sh: Updated.
3789
3790 2020-06-11 Tom Tromey <tom@tromey.com>
3791
3792 PR gdb/18318:
3793 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3794
3795 2020-06-09 Jonny Grant <jg@jguk.org>
3796 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3797
3798 * main.c (captured_main_1): Don't print new line after help.
3799 (print_gdb_help): add mailing list and IRC channel information
3800 to --help. Add new lines between items in the footer. Remove
3801 quotes around bug url.
3802
3803 2020-06-11 Keith Seitz <keiths@redhat.com>
3804
3805 PR gdb/21356
3806 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3807 Resolve typedefs for type length calculations.
3808
3809 2020-06-10 Tom de Vries <tdevries@suse.de>
3810
3811 PR ada/24713
3812 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3813 (write_psymbols): Enable .gdb_index for ada.
3814 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3815 ada.
3816
3817 2020-06-10 Tom de Vries <tdevries@suse.de>
3818
3819 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3820 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3821 namei" instead of "const char *name" argument.
3822 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3823 dw2_symtab_iter_init.
3824
3825 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3826
3827 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3828 to use type::field and field::type instead.
3829
3830 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3831
3832 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3833 to use field::type instead.
3834
3835 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3836
3837 * gdbtypes.h (struct field) <type, set_type>: New methods.
3838 Rename `type` field to...
3839 <m_type>: ... this. Change references throughout to use type or
3840 set_type methods.
3841 (FIELD_TYPE): Use field::type. Change call sites that modify
3842 the field's type to use field::set_type instead.
3843
3844 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3845
3846 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3847 to use type::index_type instead.
3848
3849 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3850
3851 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3852 methods.
3853 (TYPE_INDEX_TYPE): Use type::index_type.
3854 * gdbtypes.c (create_array_type_with_stride): Likewise.
3855
3856 2020-06-07 Tom Tromey <tom@tromey.com>
3857
3858 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3859 parameter.
3860 (generic_value_print): Update.
3861
3862 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3863
3864 Revert commit 982a38f60b0.
3865 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3866
3867 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3868
3869 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3870 avoid use after free.
3871
3872 2020-06-05 Tom de Vries <tdevries@suse.de>
3873
3874 * NEWS: Fix typos.
3875
3876 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3877
3878 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3879 the per_bfd object.
3880 (dwarf2_read_debug_names): Likewise.
3881 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3882 object when re-using a per_bfd object with an index.
3883
3884 2020-06-03 Tom de Vries <tdevries@suse.de>
3885
3886 PR symtab/26046
3887 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3888 children for C++.
3889 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3890 DW_TAG_subprogram.
3891
3892 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3893
3894 * ada-lang.c (ada_language_data): Delete skip_trampoline
3895 initializer.
3896 * c-lang.c (c_language_data): Likewise.
3897 (cplus_language_data): Likewise.
3898 (cplus_language::skip_trampoline): New member function.
3899 (asm_language_data): Delete skip_trampoline initializer.
3900 (minimal_language_data): Likewise.
3901 * d-lang.c (d_language_data): Likewise.
3902 * f-lang.c (f_language_data): Likewise.
3903 * go-lang.c (go_language_data): Likewise.
3904 * language.c (unk_lang_trampoline): Delete function.
3905 (skip_language_trampoline): Update.
3906 (unknown_language_data): Delete skip_trampoline initializer.
3907 (auto_language_data): Likewise.
3908 * language.h (language_data): Delete skip_trampoline field.
3909 (language_defn::skip_trampoline): New function.
3910 * m2-lang.c (m2_language_data): Delete skip_trampoline
3911 initializer.
3912 * objc-lang.c (objc_skip_trampoline): Delete function, move
3913 implementation to objc_language::skip_trampoline.
3914 (objc_language_data): Delete skip_trampoline initializer.
3915 (objc_language::skip_trampoline): New member function with
3916 implementation from objc_skip_trampoline.
3917 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3918 initializer.
3919 * p-lang.c (pascal_language_data): Likewise.
3920 * rust-lang.c (rust_language_data): Likewise.
3921
3922 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3923
3924 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3925 (ada_language::demangle): New member function.
3926 * c-lang.c (c_language_data): Delete la_demangle initializer.
3927 (cplus_language_data): Delete la_demangle initializer.
3928 (cplus_language::demangle): New member function.
3929 (asm_language_data): Delete la_demangle initializer.
3930 (minimal_language_data): Delete la_demangle initializer.
3931 * d-lang.c (d_language_data): Delete la_demangle initializer.
3932 (d_language::demangle): New member function.
3933 * f-lang.c (f_language_data): Delete la_demangle initializer.
3934 (f_language::demangle): New member function.
3935 * go-lang.c (go_language_data): Delete la_demangle initializer.
3936 (go_language::demangle): New member function.
3937 * language.c (language_demangle): Update.
3938 (unk_lang_demangle): Delete.
3939 (unknown_language_data): Delete la_demangle initializer.
3940 (unknown_language::demangle): New member function.
3941 (auto_language_data): Delete la_demangle initializer.
3942 (auto_language::demangle): New member function.
3943 * language.h (language_data): Delete la_demangle field.
3944 (language_defn::demangle): New function.
3945 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3946 * objc-lang.c (objc_language_data): Delete la_demangle
3947 initializer.
3948 (objc_language::demangle): New member function.
3949 * opencl-lang.c (opencl_language_data): Delete la_demangle
3950 initializer.
3951 * p-lang.c (pascal_language_data): Likewise.
3952 * rust-lang.c (rust_language_data): Likewise.
3953 (rust_language::demangle): New member function.
3954
3955 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3956
3957 * ada-lang.c (ada_language_data): Delete la_print_type
3958 initializer.
3959 (ada_language::print_type): New member function.
3960 * c-lang.c (c_language_data): Delete la_print_type initializer.
3961 (c_language::print_type): New member function.
3962 (cplus_language_data): Delete la_print_type initializer.
3963 (cplus_language::print_type): New member function.
3964 (asm_language_data): Delete la_print_type initializer.
3965 (asm_language::print_type): New member function.
3966 (minimal_language_data): Delete la_print_type initializer.
3967 (minimal_language::print_type): New member function.
3968 * d-lang.c (d_language_data): Delete la_print_type initializer.
3969 (d_language::print_type): New member function.
3970 * f-lang.c (f_language_data): Delete la_print_type initializer.
3971 (f_language::print_type): New member function.
3972 * go-lang.c (go_language_data): Delete la_print_type initializer.
3973 (go_language::print_type): New member function.
3974 * language.c (unk_lang_print_type): Delete.
3975 (unknown_language_data): Delete la_print_type initializer.
3976 (unknown_language::print_type): New member function.
3977 (auto_language_data): Delete la_print_type initializer.
3978 (auto_language::print_type): New member function.
3979 * language.h (language_data): Delete la_print_type field.
3980 (language_defn::print_type): New function.
3981 (LA_PRINT_TYPE): Update.
3982 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3983 (m2_language::print_type): New member function.
3984 * objc-lang.c (objc_language_data): Delete la_print_type
3985 initializer.
3986 (objc_language::print_type): New member function.
3987 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3988 to opencl_language::print_type.
3989 (opencl_language_data): Delete la_print_type initializer.
3990 (opencl_language::print_type): New member function, implementation
3991 from opencl_print_type.
3992 * p-lang.c (pascal_language_data): Delete la_print_type
3993 initializer.
3994 (pascal_language::print_type): New member function.
3995 * rust-lang.c (rust_print_type): Delete, implementation moved to
3996 rust_language::print_type.
3997 (rust_language_data): Delete la_print_type initializer.
3998 (rust_language::print_type): New member function, implementation
3999 from rust_print_type.
4000
4001 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4002
4003 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4004 implementation moves to...
4005 (ada_language::sniff_from_mangled_name): ...here. Update return
4006 type.
4007 (ada_language_data): Delete la_sniff_from_mangled_name
4008 initializer.
4009 * c-lang.c (c_language_data): Likewise.
4010 (cplus_language_data): Likewise.
4011 (cplus_language::sniff_from_mangled_name): New member function,
4012 implementation taken from gdb_sniff_from_mangled_name.
4013 (asm_language_data): Delete la_sniff_from_mangled_name
4014 initializer.
4015 (minimal_language_data): Likewise.
4016 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4017 implementation moves to cplus_language::sniff_from_mangled_name.
4018 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4019 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4020 moves to...
4021 (d_language::sniff_from_mangled_name): ...here.
4022 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4023 * f-lang.c (f_language_data): Likewise.
4024 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4025 moves to...
4026 (go_language::sniff_from_mangled_name): ...here.
4027 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4028 * language.c (language_sniff_from_mangled_name): Delete.
4029 (unknown_language_data): Delete la_sniff_from_mangled_name
4030 initializer.
4031 (auto_language_data): Likewise.
4032 * language.h (language_data): Delete la_sniff_from_mangled_name
4033 field.
4034 (language_defn::sniff_from_mangled_name): New function.
4035 (language_sniff_from_mangled_name): Delete declaration.
4036 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4037 field.
4038 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4039 implementation moves to...
4040 (objc_language::sniff_from_mangled_name): ...here.
4041 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4042 * opencl-lang.c (opencl_language_data): Likewise.
4043 * p-lang.c (pascal_language_data): Likewise.
4044 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4045 implementation moves to...
4046 (rust_language::sniff_from_mangled_name): ...here.
4047 (rust_language_data): Delete la_sniff_from_mangled_name
4048 initializer.
4049 * symtab.c (symbol_find_demangled_name): Call
4050 sniff_from_mangled_name member function.
4051
4052 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4053
4054 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4055 initializer.
4056 * c-lang.c (c_language_data): Likewise.
4057 (cplus_language_data): Likewise.
4058 (cplus_language::search_name_hash): New member function.
4059 (asm_language_data): Delete la_search_name_hash initializer.
4060 (minimal_language_data): Likewise.
4061 * d-lang.c (d_language_data): Likewise.
4062 * dictionary.c (default_search_name_hash): Rename to...
4063 (language_defn::search_name_hash): ...this.
4064 * f-lang.c (f_language_data): Likewise.
4065 (f_language::search_name_hash): New member function.
4066 * go-lang.c (go_language_data): Delete la_search_name_hash
4067 initializer.
4068 * language.c (unknown_language_data): Likewise.
4069 (auto_language_data): Likewise.
4070 * language.h (struct language_data): Delete la_search_name_hash
4071 field.
4072 (language_defn::search_name_hash): Declare new member function.
4073 (default_search_name_hash): Delete declaration.
4074 * m2-lang.c (m2_language_data): Delete la_search_name_hash
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 * symtab.c (search_name_hash): Update call.
4081
4082 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4083
4084 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4085 initializer.
4086 * c-lang.c (class compile_instance): Declare.
4087 (c_language_data): Delete la_get_compile_instance initializer.
4088 (c_language::get_compile_instance): New member function.
4089 (cplus_language_data): Delete la_get_compile_instance initializer.
4090 (cplus_language::get_compile_instance): New member function.
4091 (asm_language_data): Delete la_get_compile_instance initializer.
4092 (minimal_language_data): Likewise.
4093 * c-lang.h (c_get_compile_context): Update comment.
4094 (cplus_get_compile_context): Update comment.
4095 * compile/compile.c (compile_to_object): Update calls, don't rely
4096 on function pointer being NULL.
4097 * d-lang.c (d_language_data): Delete la_get_compile_instance
4098 initializer.
4099 * f-lang.c (f_language_data): Likewise.
4100 * go-lang.c (go_language_data): Likewise.
4101 * language.c (unknown_language_data): Likewise.
4102 (auto_language_data): Likewise.
4103 * language.h (language_data): Delete la_get_compile_instance field.
4104 (language_defn::get_compile_instance): New member function.
4105 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4106 initializer.
4107 * objc-lang.c (objc_language_data): Likewise.
4108 * opencl-lang.c (opencl_language_data): Likewise.
4109 * p-lang.c (pascal_language_data): Likewise.
4110 * rust-lang.c (rust_language_data): Likewise.
4111
4112 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4113
4114 * ada-lang.c (ada_add_all_symbols): Update comment.
4115 (ada_iterate_over_symbols): Delete, move implementation to...
4116 (ada_language::iterate_over_symbols): ...here, a new member
4117 function, rewrite to use range based for loop.
4118 (ada_language_data): Delete la_iterate_over_symbols initializer.
4119 * c-lang.c (c_language_data): Likewise.
4120 (cplus_language_data): Likewise.
4121 (asm_language_data): Likewise.
4122 (minimal_language_data): Likewise.
4123 * d-lang.c (d_language_data): Likewise.
4124 * f-lang.c (f_language_data): Likewise.
4125 * go-lang.c (go_language_data): Likewise.
4126 * language.c (unknown_language_data): Likewise.
4127 (auto_language_data): Likewise.
4128 * language.h (language_data): Delete la_iterate_over_symbols field.
4129 (language_defn::iterate_over_symbols): New member function.
4130 (LA_ITERATE_OVER_SYMBOLS): Update.
4131 * linespec.c (iterate_over_all_matching_symtabs): Update.
4132 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4133 initializer.
4134 * objc-lang.c (objc_language_data): Likewise.
4135 * opencl-lang.c (opencl_language_data): Likewise.
4136 * p-lang.c (pascal_language_data): Likewise.
4137 * rust-lang.c (rust_language_data): Likewise.
4138
4139 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4140
4141 * ada-lang.c (ada_language_data): Delete
4142 la_lookup_transparent_type initializer.
4143 * c-lang.c (c_language_data): Likewise.
4144 (cplus_language_data): Likewise.
4145 (cplus_language::lookup_transparent_type): New member function.
4146 (asm_language_data): Delete la_lookup_transparent_type
4147 initializer.
4148 (minimal_language_data): Likewise.
4149 * d-lang.c (d_language_data): Likewise.
4150 * f-lang.c (f_language_data): Likewise.
4151 * go-lang.c (go_language_data): Likewise.
4152 * language.c (unknown_language_data): Likewise.
4153 (auto_language_data): Likewise.
4154 * language.h (struct language_data): Delete
4155 la_lookup_transparent_type field.
4156 (language_defn::lookup_transparent_type): New member function.
4157 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4158 initializer.
4159 * objc-lang.c (objc_language_data): Likewise.
4160 * opencl-lang.c (opencl_language_data): Likewise.
4161 * p-lang.c (pascal_language_data): Likewise.
4162 * rust-lang.c (rust_language_data): Likewise.
4163 * symtab.c (symbol_matches_domain): Update call.
4164
4165 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4166
4167 * ada-lang.c (ada_language_arch_info): Delete function, move
4168 implementation to...
4169 (ada_language::language_arch_info): ...here, a new member
4170 function.
4171 (ada_language_data): Delete la_language_arch_info.
4172 * c-lang.c (c_language_data): Likewise.
4173 (c_language::language_arch_info): New member function.
4174 (cplus_language_arch_info): Delete function, move
4175 implementation to...
4176 (cplus_language::language_arch_info): ...here, a new member
4177 function.
4178 (cplus_language_data): Delete la_language_arch_info.
4179 (asm_language_data): Likewise.
4180 (asm_language::language_arch_info): New member function.
4181 (minimal_language_data): Delete la_language_arch_info.
4182 (minimal_language::language_arch_info): New member function.
4183 * d-lang.c (d_language_arch_info): Delete function, move
4184 implementation to...
4185 (d_language::language_arch_info): ...here, a new member
4186 function.
4187 (d_language_data): Delete la_language_arch_info.
4188 * f-lang.c (f_language_arch_info): Delete function, move
4189 implementation to...
4190 (f_language::language_arch_info): ...here, a new member
4191 function.
4192 (f_language_data): Delete la_language_arch_info.
4193 * go-lang.c (go_language_arch_info): Delete function, move
4194 implementation to...
4195 (go_language::language_arch_info): ...here, a new member
4196 function.
4197 (go_language_data): Delete la_language_arch_info.
4198 * language.c (unknown_language_data): Likewise.
4199 (unknown_language::language_arch_info): New member function.
4200 (auto_language_data): Delete la_language_arch_info.
4201 (auto_language::language_arch_info): New member function.
4202 (language_gdbarch_post_init): Update call to
4203 la_language_arch_info.
4204 * language.h (language_data): Delete la_language_arch_info
4205 function pointer.
4206 (language_defn::language_arch_info): New function.
4207 * m2-lang.c (m2_language_arch_info): Delete function, move
4208 implementation to...
4209 (m2_language::language_arch_info): ...here, a new member
4210 function.
4211 (m2_language_data): Delete la_language_arch_info.
4212 * objc-lang.c (objc_language_arch_info): Delete function, move
4213 implementation to...
4214 (objc_language::language_arch_info): ...here, a new member
4215 function.
4216 (objc_language_data): Delete la_language_arch_info.
4217 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4218 implementation to...
4219 (opencl_language::language_arch_info): ...here, a new member
4220 function.
4221 (opencl_language_data): Delete la_language_arch_info.
4222 * p-lang.c (pascal_language_arch_info): Delete function, move
4223 implementation to...
4224 (pascal_language::language_arch_info): ...here, a new member
4225 function.
4226 (pascal_language_data): Delete la_language_arch_info.
4227 * rust-lang.c (rust_language_arch_info): Delete function, move
4228 implementation to...
4229 (rust_language::language_arch_info): ...here, a new member
4230 function.
4231 (rust_language_data): Delete la_language_arch_info.
4232
4233 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4234
4235 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4236 initializer.
4237 * c-lang.c (c_language_data): Likewise.
4238 (cplus_language_data): Likewise.
4239 (cplus_language::pass_by_reference_info): New method.
4240 (asm_language_data): Delete la_pass_by_reference initializer.
4241 (minimal_language_data): Likewise.
4242 * cp-abi.c (cp_pass_by_reference): Remove use of
4243 default_pass_by_reference.
4244 * d-lang.c (d_language_data): Likewise.
4245 * f-lang.c (f_language_data): Likewise.
4246 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4247 default_pass_by_reference.
4248 * go-lang.c (go_language_data): Likewise.
4249 * language.c (language_pass_by_reference): Update.
4250 (default_pass_by_reference): Delete.
4251 (unknown_language_data): Delete la_pass_by_reference
4252 initializer.
4253 (auto_language_data): Likewise.
4254 * language.h (struct language_data): Delete la_pass_by_reference
4255 field.
4256 (language_defn::pass_by_reference_info): New member function.
4257 (default_pass_by_reference): Delete declaration.
4258 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4259 initializer.
4260 * objc-lang.c (objc_language_data): Likewise.
4261 * opencl-lang.c (opencl_language_data): Likewise.
4262 * p-lang.c (pascal_language_data): Likewise.
4263 * rust-lang.c (rust_language_data): Likewise.
4264
4265 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4266
4267 * ada-lang.c (ada_read_var_value): Delete function, move
4268 implementation to...
4269 (ada_language::read_var_value): ...here.
4270 (ada_language_data): Delete la_read_var_value initializer.
4271 * c-lang.c (c_language_data): Likewise.
4272 (cplus_language_data): Likewise.
4273 (minimal_language_data): Likewise.
4274 * d-lang.c (d_language_data): Likewise.
4275 * f-lang.c (f_language_data): Likewise.
4276 * findvar.c (default_read_var_value): Rename to...
4277 (language_defn::read_var_value): ...this.
4278 * findvar.c (read_var_value): Update header comment, and change to
4279 call member function instead of function pointer.
4280 * go-lang.c (go_language_data): Likewise.
4281 * language.c (unknown_language_data): Delete la_read_var_value
4282 initializer.
4283 (auto_language_data): Likewise.
4284 * language.h (struct language_data): Delete la_read_var_value
4285 field.
4286 (language_defn::read_var_value): New member function.
4287 (default_read_var_value): Delete declaration.
4288 * m2-lang.c (m2_language_data): Delete la_read_var_value
4289 initializer.
4290 * objc-lang.c (objc_language_data): Likewise.
4291 * opencl-lang.c (opencl_language_data): Likewise.
4292 * p-lang.c (pascal_language_data): Likewise.
4293 * rust-lang.c (rust_language_data): Likewise.
4294 * value.h (default_read_var_value): Delete declaration.
4295
4296 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4297
4298 * ada-lang.c (ada_print_array_index): Delete function, move
4299 implementation to...
4300 (ada_language::print_array_index): ...here.
4301 (ada_language_data): Delete la_print_array_index initializer.
4302 * c-lang.c (c_language_data): Likewise.
4303 (cplus_language_data): Likewise.
4304 (minimal_language_data): Likewise.
4305 * d-lang.c (d_language_data): Likewise.
4306 * f-lang.c (f_language_data): Likewise.
4307 * go-lang.c (go_language_data): Likewise.
4308 * language.c (default_print_array_index): Delete function, move
4309 implementation to...
4310 (language_defn::print_array_index): ...here.
4311 (unknown_language_data): Delete la_print_array_index initializer.
4312 (auto_language_data): Likewise.
4313 * language.h (struct language_data): Delete la_print_array_index
4314 field.
4315 (language_defn::print_array_index): New member function.
4316 (LA_PRINT_ARRAY_INDEX): Update.
4317 (default_print_array_index): Delete declaration.
4318 * m2-lang.c (m2_language_data): Delete la_print_array_index
4319 initializer.
4320 * objc-lang.c (objc_language_data): Likewise.
4321 * opencl-lang.c (opencl_language_data): Likewise.
4322 * p-lang.c (pascal_language_data): Likewise.
4323 * rust-lang.c (rust_language_data): Likewise.
4324
4325 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4326
4327 * gdb/ada-lang.c (ada_language_defn): Convert to...
4328 (ada_language_data): ...this.
4329 (class ada_language): New class.
4330 (ada_language_defn): New static global.
4331 * gdb/c-lang.c (c_language_defn): Convert to...
4332 (c_language_data): ...this.
4333 (class c_language): New class.
4334 (c_language_defn): New static global.
4335 (cplus_language_defn): Convert to...
4336 (cplus_language_data): ...this.
4337 (class cplus_language): New class.
4338 (cplus_language_defn): New static global.
4339 (asm_language_defn): Convert to...
4340 (asm_language_data): ...this.
4341 (class asm_language): New class.
4342 (asm_language_defn): New static global.
4343 (minimal_language_defn): Convert to...
4344 (minimal_language_data): ...this.
4345 (class minimal_language): New class.
4346 (minimal_language_defn): New static global.
4347 * gdb/d-lang.c (d_language_defn): Convert to...
4348 (d_language_data): ...this.
4349 (class d_language): New class.
4350 (d_language_defn): New static global.
4351 * gdb/f-lang.c (f_language_defn): Convert to...
4352 (f_language_data): ...this.
4353 (class f_language): New class.
4354 (f_language_defn): New static global.
4355 * gdb/go-lang.c (go_language_defn): Convert to...
4356 (go_language_data): ...this.
4357 (class go_language): New class.
4358 (go_language_defn): New static global.
4359 * gdb/language.c (unknown_language_defn): Remove declaration.
4360 (current_language): Initialize to nullptr, real initialization is
4361 moved to _initialize_language.
4362 (languages): Delete global.
4363 (language_defn::languages): Define.
4364 (set_language_command): Use language_defn::languages.
4365 (set_language): Likewise.
4366 (range_error): Likewise.
4367 (language_enum): Likewise.
4368 (language_def): Likewise.
4369 (add_set_language_command): Use language_def::languages for the
4370 language list, and language_def to lookup language pointers.
4371 (skip_language_trampoline): Use language_defn::languages.
4372 (unknown_language_defn): Convert to...
4373 (unknown_language_data): ...this.
4374 (class unknown_language): New class.
4375 (unknown_language_defn): New static global.
4376 (auto_language_defn): Convert to...
4377 (auto_language_data): ...this.
4378 (class auto_language): New class.
4379 (auto_language_defn): New static global.
4380 (language_gdbarch_post_init): Use language_defn::languages.
4381 (_initialize_language): Initialize current_language.
4382 * gdb/language.h (struct language_defn): Rename to...
4383 (struct language_data): ...this.
4384 (struct language_defn): New.
4385 (auto_language_defn): Delete.
4386 (unknown_language_defn): Delete.
4387 (minimal_language_defn): Delete.
4388 (ada_language_defn): Delete.
4389 (asm_language_defn): Delete.
4390 (c_language_defn): Delete.
4391 (cplus_language_defn): Delete.
4392 (d_language_defn): Delete.
4393 (f_language_defn): Delete.
4394 (go_language_defn): Delete.
4395 (m2_language_defn): Delete.
4396 (objc_language_defn): Delete.
4397 (opencl_language_defn): Delete.
4398 (pascal_language_defn): Delete.
4399 (rust_language_defn): Delete.
4400 * gdb/m2-lang.c (m2_language_defn): Convert to...
4401 (m2_language_data): ...this.
4402 (class m2_language): New class.
4403 (m2_language_defn): New static global.
4404 * gdb/objc-lang.c (objc_language_defn): Convert to...
4405 (objc_language_data): ...this.
4406 (class objc_language): New class.
4407 (objc_language_defn): New static global.
4408 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4409 (opencl_language_data): ...this.
4410 (class opencl_language): New class.
4411 (opencl_language_defn): New static global.
4412 * gdb/p-lang.c (pascal_language_defn): Convert to...
4413 (pascal_language_data): ...this.
4414 (class pascal_language): New class.
4415 (pascal_language_defn): New static global.
4416 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4417 language pointer, update comment format.
4418 * gdb/rust-lang.c (rust_language_defn): Convert to...
4419 (rust_language_data): ...this.
4420 (class rust_language): New class.
4421 (rust_language_defn): New static global.
4422
4423 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4424
4425 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4426 member variable.
4427 <m_stmt_at_address>: New member variable.
4428 (lnp_state_machine::record_line): Don't record some lines, update
4429 tracking of is_stmt at the same address.
4430 (lnp_state_machine::lnp_state_machine): Initialise new member
4431 variables.
4432
4433 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4434
4435 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4436 "-include gnu-nat-mig.h".
4437 * gnu-nat-mig.h: New file.
4438 * gnu-nat.c: Include "gnu-nat-mig.h".
4439 (exc_server, msg_reply_server, notify_server,
4440 process_reply_server): Remove declarations.
4441
4442 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4443
4444 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4445 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4446 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4447 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4448 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4449 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4450 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4451 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4452 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4453 to gnu_nat_target class.
4454 * gnu-nat.c: Likewise.
4455 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4456 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4457 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4458 object.
4459 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4460 instead of `gnu_target'.
4461
4462 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4463
4464 * i386-gnu-tdep.c: Include "gdbcore.h"
4465 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4466 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4467 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4468 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4469 i386_gnu_sigcontext_addr): New functions
4470 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4471 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4472 tdep.
4473
4474 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4475
4476 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4477 before fork_inferior call. Avoid calling it if target_is_pushed returns
4478 true.
4479
4480 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4481
4482 * gnu-nat.h (gnu_target): New variable declaration.
4483 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4484 gnu_target.
4485 * gnu-nat.c (gnu_target): New variable.
4486 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4487 add_thread_silent, and add_thread calls.
4488 (gnu_nat_target::create_inferior): Pass gnu_target to
4489 add_thread_silent, thread_change_ptid call.
4490 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4491 call.
4492
4493 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4494
4495 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4496 (gnu_nat_target::find_memory_regions): Remove unused
4497 `old_address' variable.
4498
4499 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4500
4501 * gnu-nat.c: Include "gdbarch.h".
4502
4503 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4504
4505 * reply_mig_hack.awk (Error return): Cast function through
4506 void *, to bypass compiler function call check.
4507
4508 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4509
4510 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4511 $(srcdir)/reply_mig_hack.awk.
4512
4513 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4514
4515 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4516
4517 2020-05-30 Jonny Grant <jg@jguk.org>
4518
4519 * configure.ac (ACX_BUGURL): change bug URL to https.
4520
4521 2020-05-30 Pedro Alves <palves@redhat.com>
4522
4523 * cp-support.c (replace_typedefs_template): New.
4524 (replace_typedefs_qualified_name): Handle
4525 DEMANGLE_COMPONENT_TEMPLATE.
4526
4527 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4528
4529 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4530 dwarf2/index-cache.h, dwarf2/index-write.c,
4531 dwarf2/index-write.h, dwarf2/line-header.c,
4532 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4533 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4534 variables and fields from `dwarf2_per_objfile` to just
4535 `per_objfile` throughout.
4536
4537 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4538
4539 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4540 <push_dwarf_reg_entry_value>: Add comment.
4541
4542 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4543 Keith Seitz <keiths@redhat.com>
4544
4545 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4546 instead of PyEval_ReleaseLock.
4547 (class gdbpy_gil): Move to earlier in file.
4548 (finalize_python): Set gdb_python_initialized.
4549 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4550 when not initialized.
4551
4552 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4553
4554 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4555 <push_dwarf_reg_entry_value>: Remove assert. Override
4556 per_objfile with caller_per_objfile.
4557
4558 2020-05-28 Tom de Vries <tdevries@suse.de>
4559
4560 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4561 PR gold/15646 workaround to symbol kind "type".
4562
4563 2020-05-27 Tom Tromey <tromey@adacore.com>
4564
4565 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4566
4567 2020-05-27 Tom Tromey <tromey@adacore.com>
4568
4569 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4570 Use htab_find_with_hash.
4571 <add_abbrev>: Remove "abbrev_number" parameter.
4572 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4573 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4574 (hash_abbrev): Add comment.
4575 (abbrev_table::lookup_abbrev): Move to header file.
4576 (abbrev_table::read): Update.
4577
4578 2020-05-27 Tom Tromey <tromey@adacore.com>
4579
4580 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4581 method.
4582 <canonical_name>: New member.
4583 <raw_name>: Rename from "name".
4584 (partial_die_info): Initialize canonical_name.
4585 (scan_partial_symbols): Check raw_name.
4586 (partial_die_parent_scope, partial_die_full_name)
4587 (add_partial_symbol, add_partial_subprogram)
4588 (add_partial_enumeration, load_partial_dies): Use "name" method.
4589 (partial_die_info::name): New method.
4590 (partial_die_info::read, guess_partial_die_structure_name)
4591 (partial_die_info::fixup): Update.
4592
4593 2020-05-27 Tom Tromey <tromey@adacore.com>
4594
4595 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4596 <get_ref_die_offset>: Inline.
4597 <get_ref_die_offset_complaint>: New method.
4598 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4599 (attribute::get_ref_die_offset_complaint): Rename from
4600 get_ref_die_offset. Just issue complaint.
4601
4602 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4603
4604 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4605
4606 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4607
4608 * exec.c (exec_file_attach): Use errno value of first openp failure.
4609
4610 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4611
4612 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4613 Don't close thread handle.
4614
4615 2020-05-27 Tom Tromey <tom@tromey.com>
4616 Simon Marchi <simon.marchi@efficios.com>
4617
4618 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4619 shared_ptr.
4620 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4621 member.
4622 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4623 dwarf2_per_bfd_objfile_data_key>: New globals.
4624 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4625 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4626 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4627 shared.
4628 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4629 short-circuit when sharing.
4630 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4631 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4632
4633 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4634
4635 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4636 to...
4637 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4638 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4639
4640 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4641
4642 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4643 build_name_components, find_name_components_bounds>:
4644 Add per_objfile parameter.
4645 (struct mapped_index) <symbol_name_at>: Likewise.
4646 (struct mapped_debug_names): Remove constructor.
4647 <dwarf2_per_objfile>: Remove field.
4648 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4649 (mapped_index_base::find_name_components_bounds,
4650 mapped_index_base::build_name_components,
4651 dw2_expand_symtabs_matching_symbol): Likewise.
4652 (class mock_mapped_index) <symbol_name_at>: Likewise.
4653 (check_match): Likewise.
4654 (check_find_bounds_finds): Likewise.
4655 (test_mapped_index_find_name_component_bounds): Update.
4656 (CHECK_MATCH): Update.
4657 (dw2_expand_symtabs_matching): Update.
4658 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4659 per_objfile parameter.
4660 <find_vec_in_debug_names>: Likewise.
4661 <m_per_objfile>: New field.
4662 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4663 parameter.
4664 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4665 (dw2_debug_names_iterator::next): Update.
4666 (dw2_debug_names_lookup_symbol): Update.
4667 (dw2_debug_names_expand_symtabs_for_function): Update.
4668 (dw2_debug_names_map_matching_symbols): Update.
4669 (dw2_debug_names_expand_symtabs_matching): Update.
4670 (dwarf2_read_debug_names): Update.
4671
4672 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4673
4674 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4675 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4676 move to dwarf2_per_objfile.
4677 <read_in_chain>: Remove.
4678 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4679 remove_all_cus, age_comp_units>: New methods.
4680 <m_dwarf2_cus>: New member.
4681 (struct dwarf2_per_cu_data) <cu>: Remove.
4682 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4683 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4684 moved to methods of dwarf2_per_objfile.
4685 (dwarf2_clear_marks): Remove.
4686 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4687 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4688 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4689 (dwarf2_per_objfile::remove_all_cus): New.
4690 (class free_cached_comp_units) <~free_cached_comp_units>:
4691 Update.
4692 (load_cu): Update.
4693 (dw2_do_instantiate_symtab): Adjust.
4694 (fill_in_sig_entry_from_dwo_entry): Adjust.
4695 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4696 (cutu_reader::cutu_reader): Likewise.
4697 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4698 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4699 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4700 and dwarf2_per_objfile::age_comp_units.
4701 (load_partial_comp_unit): Update.
4702 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4703 (process_queue): Likewise.
4704 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4705 backlink.
4706 (dwarf2_read_addr_index): Likewise.
4707 (follow_die_offset): Likewise.
4708 (dwarf2_fetch_die_loc_sect_off): Likewise.
4709 (dwarf2_fetch_constant_bytes): Likewise.
4710 (dwarf2_fetch_die_type_sect_off): Likewise.
4711 (follow_die_sig_1): Likewise.
4712 (load_full_type_unit): Likewise.
4713 (read_signatured_type): Likewise.
4714 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4715 (dwarf2_cu::~dwarf2_cu): Remove.
4716 (dwarf2_per_objfile::get_cu): New.
4717 (dwarf2_per_objfile::set_cu): New.
4718 (age_cached_comp_units): Rename to...
4719 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4720 to std::unordered_map.
4721 (free_one_cached_comp_unit): Rename to...
4722 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4723 to std::unordered_map.
4724 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4725 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4726 a dwarf2_per_objfile in data.
4727 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4728 (dwarf2_clear_marks): Remove.
4729
4730 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4733 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4734 (init_tu_and_read_dwo_dies): Likewise.
4735 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4736 (cutu_reader::cutu_reader): Likewise.
4737 (load_partial_comp_unit): Likewise.
4738 (process_psymtab_comp_unit): Update.
4739 (build_type_psymtabs_1): Update.
4740 (process_skeletonless_type_unit): Update.
4741 (load_full_comp_unit): Update.
4742 (find_partial_die): Update.
4743 (dwarf2_read_addr_index): Update.
4744 (read_signatured_type): Update.
4745
4746 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4747
4748 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4749 m_header_read_in>: New fields.
4750 <get_header>: New method.
4751 * dwarf2/read.c (per_cu_header_read_in): Remove.
4752 (dwarf2_per_cu_data::get_header): New.
4753 (dwarf2_per_cu_data::addr_size): Update.
4754 (dwarf2_per_cu_data::offset_size): Update.
4755 (dwarf2_per_cu_data::ref_addr_size): Update.
4756
4757 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4758
4759 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4760 (dw2_do_instantiate_symtab): Update.
4761 (queue_and_load_all_dwo_tus): Change parameter from
4762 dwarf2_per_cu_data to dwarf2_cu.
4763 (dwarf2_fetch_die_loc_sect_off): Update.
4764 (dwarf2_fetch_constant_bytes): Update.
4765 (dwarf2_fetch_die_type_sect_off): Update.
4766
4767 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4768
4769 * dwarf2/read.c (process_full_comp_unit,
4770 process_full_type_unit): Remove per_cu, per_objfile paramters.
4771 Add dwarf2_cu parameter.
4772 (process_queue): Update.
4773
4774 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4775
4776 * dwarf2/read.c (create_cu_from_index_list): Replace
4777 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4778 (create_cus_from_index_list): Likewise.
4779 (create_cus_from_index): Likewise.
4780 (create_signatured_type_table_from_index): Likewise.
4781 (create_cus_from_debug_names_list): Likewise.
4782 (create_cus_from_debug_names): Likewise.
4783 (dwarf2_read_gdb_index): Update.
4784 (dwarf2_read_debug_names): Update.
4785
4786 2020-05-27 Tom Tromey <tom@tromey.com>
4787 Simon Marchi <simon.marchi@efficios.com>
4788
4789 * dwarf2/read.h (struct dwarf2_per_objfile)
4790 <get_type_for_signatured_type, set_type_for_signatured_type>:
4791 New methods.
4792 <m_type_map>: New member.
4793 (struct signatured_type) <type>: Remove.
4794 * dwarf2/read.c
4795 (dwarf2_per_objfile::get_type_for_signatured_type,
4796 dwarf2_per_objfile::set_type_for_signatured_type): New.
4797 (get_signatured_type): Use new methods.
4798
4799 2020-05-27 Tom Tromey <tom@tromey.com>
4800 Simon Marchi <simon.marchi@efficios.com>
4801
4802 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4803 (struct dwarf2_per_objfile) <type_units>: New member.
4804 <get_type_unit_group_unshareable>: New method.
4805 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4806 num_symtabs, symtabs>: Remove; move to
4807 type_unit_group_unshareable.
4808 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4809 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4810 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4811
4812 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4813
4814 * dwarf2/read.h (struct dwarf2_per_cu_data):
4815 <dwarf2_per_objfile>: Remove.
4816 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4817 dwarf2_per_objfile.
4818 (create_signatured_type_table_from_index): Likewise.
4819 (create_signatured_type_table_from_debug_names): Likewise.
4820 (create_debug_type_hash_table): Likewise.
4821 (fill_in_sig_entry_from_dwo_entry): Likewise.
4822 (create_type_unit_group): Likewise.
4823 (read_comp_units_from_section): Likewise.
4824 (create_cus_hash_table): Likewise.
4825
4826 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4827
4828 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4829 dwarf2_per_cu_data::dwarf2_per_objfile.
4830 (compute_compunit_symtab_includes): Likewise.
4831 (dwarf2_cu::start_symtab): Likewise.
4832
4833 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4834
4835 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4836 parameter.
4837 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4838 (read_namespace_alias): Update.
4839 (lookup_die_type): Update.
4840 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4841 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4842 Update.
4843 (disassemble_dwarf_expression): Update.
4844
4845 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4846
4847 * dwarf2/read.h (struct dwarf2_queue_item): Add
4848 dwarf2_per_objfile parameter, assign new parameter.
4849 <per_objfile>: New field.
4850 * dwarf2/read.c (free_one_cached_comp_unit): Add
4851 dwarf2_per_objfile parameter.
4852 (queue_comp_unit): Likewise.
4853 (dw2_do_instantiate_symtab): Update.
4854 (process_psymtab_comp_unit): Update.
4855 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4856 (process_imported_unit_die): Update.
4857 (queue_and_load_dwo_tu): Update.
4858 (follow_die_offset): Update.
4859 (follow_die_sig_1): Update.
4860
4861 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4862
4863 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4864 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4865 (read_call_site_scope): Assign per_objfile.
4866 (dwarf2_per_cu_data::objfile): Remove.
4867 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4868 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4869 dwarf2_per_objfile parameter.
4870 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4871 dwarf2_per_objfile parameter.
4872 (dwarf_expr_reg_to_entry_parameter): Add output
4873 dwarf2_per_objfile parameter.
4874 (locexpr_get_frame_base): Update.
4875 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4876 <push_dwarf_reg_entry_value>: Update.
4877 <call_site_to_target_addr>: Update.
4878 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4879 parameter.
4880 (value_of_dwarf_reg_entry): Update.
4881 (rw_pieced_value): Update.
4882 (indirect_synthetic_pointer): Update.
4883 (dwarf2_evaluate_property): Update.
4884 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4885 parameter.
4886 (locexpr_read_variable): Update.
4887 (locexpr_get_symbol_read_needs): Update.
4888 (loclist_read_variable): Update.
4889
4890 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4891
4892 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4893 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4894 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4895 parameter.
4896 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4897 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4898 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4899 parameter.
4900 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4901 sect_variable_value): Add dwarf2_per_objfile parameter.
4902 (class dwarf_evaluate_loc_desc) <dwarf_call,
4903 dwarf_variable_value>: Update.
4904 (fetch_const_value_from_synthetic_pointer): Add
4905 dwarf2_per_objfile parameter.
4906 (fetch_const_value_from_synthetic_pointer): Update.
4907 (coerced_pieced_ref): Update.
4908 (class symbol_needs_eval_context) <dwarf_call,
4909 dwarf_variable_value>: Update.
4910 (dwarf2_compile_expr_to_ax): Update.
4911
4912 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4913
4914 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4915 parameter.
4916 (dwarf2_evaluate_loc_desc_full): Update.
4917
4918 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4919
4920 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4921 parameter.
4922 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4923 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4924 dwarf2_per_objfile parameter.
4925 (decode_debug_loc_dwo_addresses): Likewise.
4926 (dwarf2_find_location_expression): Update.
4927 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4928 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4929 parameter.
4930 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4931 parameter.
4932 (locexpr_describe_location_1): Likewise.
4933 (locexpr_describe_location): Update.
4934
4935 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4936
4937 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4938 Remove.
4939 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4940 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4941 (dwarf2_compile_property_to_c): Update.
4942 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4943 use text offset from objfile.
4944 (locexpr_tracepoint_var_ref): Update.
4945 (locexpr_generate_c_location): Update.
4946 (loclist_describe_location): Update.
4947 (loclist_tracepoint_var_ref): Update.
4948 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4949 dwarf2_per_objfile parameter.
4950 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4951 use text offset from objfile.
4952 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4953
4954 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4955
4956 * dwarf2/expr.h (struct dwarf_expr_context)
4957 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4958 <offset>: Remove.
4959 <per_objfile>: New member.
4960 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4961 dwarf2_per_objfile parameter. Don't set offset, set
4962 per_objfile.
4963 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4964 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4965 a dwarf2_per_objfile object instead of an offset.
4966 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4967 constructor.
4968 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4969 to dwarf2_expr_executor constructor. Don't set offset.
4970 (dwarf2_fetch_cfa_info): Update.
4971 (struct dwarf2_frame_cache) <text_offset>: Remove.
4972 <per_objfile>: New field.
4973 (dwarf2_frame_cache): Update.
4974 (dwarf2_frame_prev_register): Update.
4975 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4976 <dwarf_evaluate_loc_desc>: Add constructor.
4977 (dwarf2_evaluate_loc_desc_full): Update.
4978 (dwarf2_locexpr_baton_eval): Update.
4979 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4980 Add constructor.
4981 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4982
4983 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4984
4985 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4986 addr_sized_int_type>: Move to dwarf2_cu.
4987 <int_type>: Move to dwarf2_per_objfile.
4988 (struct dwarf2_per_objfile) <int_type>: Move here.
4989 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4990 addr_sized_int_type>: Move here.
4991 (read_func_scope): Update.
4992 (read_array_type): Update.
4993 (read_tag_string_type): Update.
4994 (attr_to_dynamic_prop): Update.
4995 (dwarf2_per_cu_data::int_type): Rename to...
4996 (dwarf2_per_objfile::int_type): ... this.
4997 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4998 (dwarf2_cu::addr_sized_int_type): ... this.
4999 (read_subrange_type): Update.
5000 (dwarf2_per_cu_data::addr_type): Rename to...
5001 (dwarf2_cu::addr_type): ... this.
5002 (set_die_type): Update.
5003
5004 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5005
5006 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5007 data through per_cu->cu.
5008
5009 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5010
5011 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5012 dwarf2_per_cu_data parameter fo dwarf2_cu.
5013 (lookup_dwo_type_unit): Likewise.
5014 (read_cutu_die_from_dwo): Likewise.
5015 (lookup_dwo_unit): Likewise.
5016 (open_and_init_dwo_file): Likewise.
5017 (lookup_dwo_cutu): Likewise.
5018 (lookup_dwo_comp_unit): Likewise.
5019 (lookup_dwo_type_unit): Likewise.
5020 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5021 (cutu_reader::cutu_reader): Update.
5022
5023 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5024
5025 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5026 parameter.
5027 (process_full_type_unit): Likewise.
5028 (process_queue): Update.
5029
5030 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5031
5032 * dwarf2/read.c (recursively_compute_inclusions): Add
5033 dwarf2_per_objfile parameter.
5034 (compute_compunit_symtab_includes): Likewise.
5035 (process_cu_includes): Update.
5036
5037 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5038
5039 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5040 parameter.
5041 (create_type_unit_group): Update.
5042 (process_psymtab_comp_unit_reader): Update.
5043 (build_type_psymtabs_reader): Update.
5044
5045 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5046
5047 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5048 object through m_this_cu->cu.
5049
5050 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5051
5052 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5053 the info parameter.
5054 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5055
5056 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5057
5058 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5059 per_objfile parameter.
5060 (load_full_type_unit): Add per_objfile parameter.
5061 (read_signatured_type): Likewise.
5062 (load_full_comp_unit): Likewise.
5063 (load_cu): Likewise.
5064 (dw2_do_instantiate_symtab): Likewise.
5065 (dw2_get_file_names): Likewise.
5066 (dw2_map_symtabs_matching_filename): Update.
5067 (dw_expand_symtabs_matching_file_matcher): Update.
5068 (dw2_map_symbol_filenames): Update.
5069 (process_psymtab_comp_unit): Add per_objfile parameter.
5070 (build_type_psymtabs_1): Update.
5071 (process_skeletonless_type_unit): Update.
5072 (dwarf2_build_psymtabs_hard): Update.
5073 (load_partial_comp_unit): Add per_objfile parameter.
5074 (scan_partial_symbols): Update.
5075 (load_full_comp_unit): Add per_objfile parameter.
5076 (process_imported_unit_die): Update.
5077 (create_cus_hash_table): Update.
5078 (find_partial_die): Update.
5079 (dwarf2_read_addr_index): Update.
5080 (follow_die_offset): Update.
5081 (dwarf2_fetch_die_loc_sect_off): Update.
5082 (dwarf2_fetch_constant_bytes): Update.
5083 (dwarf2_fetch_die_type_sect_off): Update.
5084 (follow_die_sig_1): Update.
5085 (load_full_type_unit): Add per_objfile parameter.
5086 (read_signatured_type): Likewise.
5087
5088 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5089
5090 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5091 of objfile_name.
5092
5093 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5094
5095 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5096 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5097 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5098 field.
5099 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5100 (create_cus_from_index): Update.
5101 (dwarf2_read_gdb_index): Update.
5102 (create_cus_from_debug_names): Update.
5103 (dwarf2_read_debug_names): Update.
5104 (get_abbrev_section_for_cu): Update.
5105 (create_all_comp_units): Update.
5106 (read_attribute_value): Update.
5107 (get_debug_line_section): Update.
5108 * dwarf2/index-cache.c (index_cache::store): Update.
5109 * dwarf2/index-write.c (save_gdb_index_command): Update.
5110 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5111
5112 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5113
5114 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5115 member.
5116 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5117 dwarf2_per_cu_data::per_bfd.
5118 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5119 (create_type_unit_group): Likewise.
5120 (queue_comp_unit): Remove reference to
5121 per_cu->dwarf2_per_objfile.
5122 (maybe_queue_comp_unit): Likewise.
5123 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5124 (create_cus_hash_table): Assign new field.
5125
5126 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5127
5128 * dwarf2/read.c: Replace
5129 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5130 dwarf2_cu->per_objfile throughout.
5131
5132 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5133
5134 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5135 parameter, don't use per_cu->dwarf2_per_objfile.
5136 (dw2_instantiate_symtab): Likewise.
5137 (dw2_find_last_source_symtab): Update.
5138 (dw2_map_expand_apply): Update.
5139 (dw2_lookup_symbol): Update.
5140 (dw2_expand_symtabs_for_function): Update.
5141 (dw2_expand_all_symtabs): Update.
5142 (dw2_expand_symtabs_with_fullname): Update.
5143 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5144 don't use per_cu->dwarf2_per_objfile.
5145 (dw2_expand_marked_cus): Update.
5146 (dw2_find_pc_sect_compunit_symtab): Update.
5147 (dw2_debug_names_lookup_symbol): Update.
5148 (dw2_debug_names_expand_symtabs_for_function): Update.
5149 (dw2_debug_names_map_matching_symbols): Update.
5150 (dwarf2_psymtab::expand_psymtab): Update.
5151
5152 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5153
5154 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5155 <per_objfile>: New member.
5156 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5157 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5158 call to dwarf2_cu.
5159 (cutu_reader::cutu_reader): Update.
5160 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5161
5162 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5163
5164 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5165 struct dwarf2_per_objfile.
5166 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5167 dwarf2_per_bfd.
5168 * dwarf2/read.c (set_die_type): Update.
5169 (get_die_type_at_offset): Update.
5170
5171 2020-05-27 Tom Tromey <tom@tromey.com>
5172 Simon Marchi <simon.marchi@efficios.com>
5173
5174 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5175 method.
5176 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5177 get_symtab, set_symtab>: New methods.
5178 <m_symtabs>: New field.
5179 (struct dwarf2_psymtab): Derive from partial_symtab.
5180 <readin_p, get_compunit_symtab>: Declare methods.
5181 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5182 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5183 New methods.
5184 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5185 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5186 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5187 (dw2_symtab_iter_next, dw2_print_stats)
5188 (dw2_expand_symtabs_with_fullname)
5189 (dw2_expand_symtabs_matching_one)
5190 (dw_expand_symtabs_matching_file_matcher)
5191 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5192 (dw2_debug_names_iterator::next)
5193 (dw2_debug_names_map_matching_symbols)
5194 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5195 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5196 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5197 New methods.
5198 (get_compunit_symtab, process_full_comp_unit)
5199 (process_full_type_unit): Update.
5200 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5201
5202 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5203
5204 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5205 then introduce a new dwarf2_per_objfile type.
5206 <read_line_string>: Move to the new dwarf2_per_objfile type.
5207 <objfile>: Likewise.
5208 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5209 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5210 dwarf2_per_objfile->per_bfd.
5211 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5212 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5213 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5214 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5215 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5216 (dwarf2_per_objfile::locate_sections): Rename to...
5217 (dwarf2_per_bfd::locate_sections): ... this.
5218 (dwarf2_per_objfile::get_cutu): Rename to...
5219 (dwarf2_per_bfd::get_cutu): ... this.
5220 (dwarf2_per_objfile::get_cu): Rename to...
5221 (dwarf2_per_bfd::get_cu): ... this.
5222 (dwarf2_per_objfile::get_tu): Rename to...
5223 (dwarf2_per_bfd::get_tu): ... this.
5224 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5225 (dwarf2_per_bfd::allocate_per_cu): ... this.
5226 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5227 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5228 (get_gdb_index_contents_ftype): Change parameter from
5229 dwarf2_per_objfile to dwarf2_per_bfd.
5230 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5231 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5232
5233 2020-05-27 Tom Tromey <tom@tromey.com>
5234 Simon Marchi <simon.marchi@efficios.com>
5235
5236 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5237 (allocate_piece_closure): Set "per_objfile" member.
5238 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5239 (locexpr_describe_location, loclist_describe_location): Use new
5240 member.
5241 * dwarf2/read.c (read_call_site_scope)
5242 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5243 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5244 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5245 handle_data_member_location): Set per_objfile member.
5246 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5247 member.
5248 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5249
5250 2020-05-27 Tom Tromey <tom@tromey.com>
5251
5252 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5253 allocate_signatured_type>: Declare new methods.
5254 <m_num_psymtabs>: New member.
5255 (struct dwarf2_per_cu_data) <index>: New member.
5256 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5257 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5258 (create_cu_from_index_list): Use allocate_per_cu.
5259 (create_signatured_type_table_from_index)
5260 (create_signatured_type_table_from_debug_names)
5261 (create_debug_type_hash_table, add_type_unit)
5262 (read_comp_units_from_section): Use allocate_signatured_type.
5263
5264 2020-05-27 Tom Tromey <tom@tromey.com>
5265
5266 * psymtab.c (partial_map_expand_apply)
5267 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5268 (psym_lookup_global_symbol_language)
5269 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5270 (psym_print_stats, psym_expand_symtabs_for_function)
5271 (psym_map_symbol_filenames, psym_map_matching_symbols)
5272 (psym_expand_symtabs_matching)
5273 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5274 (maintenance_check_psymtabs): Update.
5275 * psympriv.h (struct partial_symtab) <readin_p,
5276 get_compunit_symtab>: Add objfile parameter.
5277 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5278 Likewise.
5279 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5280 get_compunit_symtab>: Likewise.
5281 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5282
5283 2020-05-27 Tom Tromey <tom@tromey.com>
5284
5285 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5286 member.
5287 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5288 (create_cu_from_index_list)
5289 (create_signatured_type_table_from_index)
5290 (create_signatured_type_table_from_debug_names)
5291 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5292 (dwarf2_create_include_psymtab)
5293 (create_debug_type_hash_table, add_type_unit)
5294 (create_type_unit_group, read_comp_units_from_section)
5295 (dwarf2_compute_name, create_cus_hash_table)
5296 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5297 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5298 obstack.
5299 (dw2_get_real_path): Likewise. Change argument to
5300 dwarf2_per_objfile.
5301
5302 2020-05-27 Luis Machado <luis.machado@linaro.org>
5303
5304 PR tdep/26000
5305 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5306 for ldrd (immediate).
5307
5308 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5309
5310 * command.h: Add comment giving the name of class_tui.
5311 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5312 create the fake command for the help for class_tui.
5313
5314 2020-05-26 Tom Tromey <tromey@adacore.com>
5315
5316 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5317 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5318 (val_atr): New function.
5319 (value_val_atr): Use it.
5320 * ada-valprint.c (print_optional_low_bound): Change low bound
5321 handling for enums.
5322 (val_print_packed_array_elements): Don't call discrete_position.
5323 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5324 discrete_position for enum types.
5325 * language.c (default_print_array_index): Change type.
5326 * language.h (struct language_defn) <la_print_array_index>: Add
5327 index_type parameter, change type of index_value.
5328 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5329 (default_print_array_index): Update.
5330 * valprint.c (maybe_print_array_index): Don't call
5331 value_from_longest. Update.
5332 (value_print_array_elements): Don't call discrete_position.
5333
5334 2020-05-26 Tom Tromey <tromey@adacore.com>
5335
5336 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5337 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5338
5339 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5340
5341 PR gdb/13519
5342 * avr-tdep.c (avr_integer_to_address): Return data or code
5343 address accordingly to the second 'type' argument of the
5344 function.
5345
5346 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5347
5348 * infcmd.c, inferior.h: (construct_inferior_arguments):
5349 Moved function from here to gdbsupport/common-inferior.{h,cc}
5350
5351 2020-05-23 Tom Tromey <tom@tromey.com>
5352
5353 Revert commit eca1f90c:
5354 * NEWS: Remove entry for completion styling.
5355 * completer.c (_rl_completion_prefix_display_length): Move
5356 declaration later.
5357 (gdb_fnprint): Revert.
5358 (gdb_display_match_list_1): Likewise.
5359 * cli/cli-style.c (completion_prefix_style)
5360 (completion_difference_style, completion_suffix_style): Remove.
5361 (_initialize_cli_style): Revert.
5362 * cli/cli-style.h (completion_prefix_style)
5363 (completion_difference_style, completion_suffix_style): Don't
5364 declare.
5365
5366 2020-05-24 Pedro Alves <palves@redhat.com>
5367
5368 * symtab.c (completion_list_add_name): Return boolean indication
5369 of whether the symbol matched.
5370 (completion_list_add_symbol): Don't try to remove C++ aliases if
5371 the symbol didn't match in the first place.
5372 * symtab.h (completion_list_add_name): Return bool.
5373
5374 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5375
5376 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5377 type::field.
5378
5379 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5380
5381 GDB 9.2 released.
5382
5383 2020-05-23 Tom Tromey <tom@tromey.com>
5384
5385 * NEWS: Add entry for completion styling.
5386 * completer.c (_rl_completion_prefix_display_length): Move
5387 declaration earlier.
5388 (gdb_fnprint): Use completion_style.
5389 (gdb_display_match_list_1): Likewise.
5390 * cli/cli-style.c (completion_prefix_style)
5391 (completion_difference_style, completion_suffix_style): New
5392 globals.
5393 (_initialize_cli_style): Register new globals.
5394 * cli/cli-style.h (completion_prefix_style)
5395 (completion_difference_style, completion_suffix_style): Declare.
5396
5397 2020-05-23 Pedro Alves <palves@redhat.com>
5398
5399 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5400 (parse_escape): Use ISDIGIT instead of isdigit.
5401 (puts_debug): Use gdb_isprint instead of isprint.
5402 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5403 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5404 ISSPACE instead of isspace.
5405 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5406 instead of isspace.
5407 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5408 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5409 instead of isxdigit and ISDIGIT instead of isdigit.
5410
5411 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5412
5413 * gdbtypes.h (struct type) <field>: New method.
5414 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5415 or type::field.
5416
5417 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5418
5419 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5420 (TYPE_FIELDS): Use type::fields. Change all call sites that
5421 modify the propery to use type::set_fields instead.
5422
5423 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5424
5425 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5426 type::num_fields instead.
5427
5428 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5429
5430 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5431 methods.
5432 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5433 that modify the number of fields to use type::set_num_fields
5434 instead.
5435
5436 2020-05-22 Tom Tromey <tromey@adacore.com>
5437
5438 * compile/compile-object-load.h (munmap_list_free): Don't
5439 declare.
5440
5441 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5442
5443 * annotate.c (annotate_source_line): Update return type, add call
5444 to update current symtab and line.
5445 * annotate.h (annotate_source_line): Update return type, and
5446 extend header comment.
5447 * source.c (info_line_command): Check annotation_level before
5448 calling annotate_source_line.
5449 * stack.c (print_frame_info): If calling annotate_source_line
5450 returns true, then don't print any other source line information.
5451
5452 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5453
5454 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5455
5456 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5457
5458 * coffread.c (patch_type): Remove NULL check before xfree.
5459 * corefile.c (set_gnutarget): Likewise.
5460 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5461 * exec.c (build_section_table): Likewise.
5462 * remote.c (remote_target::pass_signals): Likewise.
5463 * utils.c (n_spaces): Likewise.
5464 * cli/cli-script.c (document_command): Likewise.
5465 * i386-windows-tdep.c (core_process_module_section): Likewise.
5466 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5467
5468 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5469
5470 * symfile.c (reread_symbols): Clear objfile's section_offsets
5471 vector and section indices, re-compute them by calling
5472 sym_offsets.
5473
5474 2020-05-20 Tom Tromey <tromey@adacore.com>
5475
5476 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5477 (desc_one_bound, desc_index_type): Compute field name.
5478
5479 2020-05-20 Tom de Vries <tdevries@suse.de>
5480
5481 PR symtab/25833
5482 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5483
5484 2020-05-20 Alan Modra <amodra@gmail.com>
5485
5486 PR 25993
5487 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5488 bfd_set_filename.
5489 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5490 passed to bfd_set_filename.
5491 * symfile-mem.c (add_vsyscall_page): Likewise for string
5492 passed to symbol_file_add_from_memory.
5493 (symbol_file_add_from_memory): Make name param a const char* and
5494 don't strdup.
5495
5496 2020-05-20 Alan Modra <amodra@gmail.com>
5497
5498 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5499 rather than accessing bfd->filename directly.
5500 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5501 and use bfd_section_name.
5502 * dwarf2/frame.c (decode_frame_entry): Likewise.
5503 * exec.c (exec_set_section_address): Likewise.
5504 * solib-aix.c (solib_aix_bfd_open): Likewise.
5505 * stap-probe.c (get_stap_base_address): Likewise.
5506 * symfile.c (reread_symbols): Likewise.
5507
5508 2020-05-19 Tom Tromey <tromey@adacore.com>
5509
5510 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5511
5512 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5513
5514 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5515
5516 2020-05-19 Pedro Alves <palves@redhat.com>
5517
5518 * NEWS (set exec-file-mismatch): Adjust entry.
5519 * exec.c: Include "build-id.h".
5520 (validate_exec_file): Try to match build IDs instead of filenames.
5521 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5522 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5523 and pass down 'warn_if_slow'.
5524 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5525 gdb_bfd_open_closure to pass it down.
5526 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5527
5528 2020-05-19 Pedro Alves <palves@redhat.com>
5529
5530 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5531 * target.c (target_fileio_open_1): Rename to target_fileio_open
5532 and make extern. Use bool.
5533 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5534 (target_fileio_read_alloc_1): Adjust.
5535 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5536 (target_fileio_open_warn_if_slow): Delete declaration.
5537
5538 2020-05-19 Pedro Alves <palves@redhat.com>
5539
5540 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5541 Adjust all callers.
5542
5543 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5544
5545 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5546 whether disp is negative.
5547
5548 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5549
5550 * symfile.h (struct symfile_segment_data)
5551 <~symfile_segment_data>: Remove.
5552 <segment_info>: Change to std::vector.
5553 * symfile.c (default_symfile_segments): Update.
5554 * elfread.c (elf_symfile_segments): Update.
5555
5556 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5557
5558 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5559 <segments>: New.
5560 <segment_bases, segment_sizes>: Remove.
5561 * symfile.c (default_symfile_segments): Update.
5562 * elfread.c (elf_symfile_segments): Update.
5563 * remote.c (remote_target::get_offsets): Update.
5564 * solib-target.c (solib_target_relocate_section_addresses):
5565 Update.
5566
5567 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5568
5569 * symfile.h (struct symfile_segment_data): Initialize fields.
5570 <~symfile_segment_data>: Add.
5571 (symfile_segment_data_up): New.
5572 (struct sym_fns) <sym_segments>: Return a
5573 symfile_segment_data_up.
5574 (default_symfile_segments): Return a symfile_segment_data_up.
5575 (free_symfile_segment_data): Remove.
5576 (get_symfile_segment_data): Return a symfile_segment_data_up.
5577 * symfile.c (default_symfile_segments): Likewise.
5578 (get_symfile_segment_data): Likewise.
5579 (free_symfile_segment_data): Remove.
5580 (symfile_find_segment_sections): Update.
5581 * elfread.c (elf_symfile_segments): Return a
5582 symfile_segment_data_up.
5583 * remote.c (remote_target::get_offsets): Update.
5584 * solib-target.c (solib_target_relocate_section_addresses):
5585 Update.
5586 * symfile-debug.c (debug_sym_segments): Return a
5587 symfile_segment_data_up.
5588
5589 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5590
5591 PR build/25981
5592 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5593 Hardcode register numbers.
5594
5595 PR build/25981
5596 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5597 procfs_find_LDT_entry): Remove.
5598 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5599 procfs_find_LDT_entry): Remove.
5600 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5601 Remove.
5602
5603 2020-05-17 Pedro Alves <palves@redhat.com>
5604 Andrew Burgess <andrew.burgess@embecosm.com>
5605 Keno Fischer <keno@juliacomputing.com>
5606
5607 PR gdb/25741
5608 * breakpoint.c (build_target_condition_list): Update comments.
5609 (build_target_command_list): Update comments and skip matching
5610 locations.
5611 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5612 a separate function. Simplify "set breakpoint auto-hw off"
5613 handling.
5614 (insert_breakpoints): Update comment.
5615 (tracepoint_locations_match): New parameter. For breakpoints,
5616 compare location types too, if the caller wants to.
5617 (handle_automatic_hardware_breakpoints): New functions.
5618 (bp_location_is_less_than): Also sort by location type and
5619 hardware breakpoint length.
5620 (update_global_location_list): Handle "set breakpoint auto-hw on"
5621 here.
5622 (update_breakpoint_locations): Ask breakpoint_locations_match to
5623 ignore location types.
5624
5625 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5626
5627 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5628 type::name instead.
5629
5630 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5631
5632 * gdbtypes.h (struct type) <name, set_name>: New methods.
5633 (TYPE_CODE): Use type::name. Change all call sites used to set
5634 the name to use type::set_name instead.
5635
5636 2020-05-16 Tom Tromey <tom@tromey.com>
5637
5638 * top.c (quit_force): Update.
5639 * infrun.c (handle_no_resumed): Update.
5640 * top.h (all_uis): New function.
5641 (ALL_UIS): Remove.
5642
5643 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5644
5645 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5646
5647 2020-05-16 Pedro Alves <palves@redhat.com>
5648
5649 * ia64-linux-nat.c
5650 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5651 Declare method.
5652 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5653
5654 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5655
5656 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5657 (sparc64_adi_info): Likewise.
5658
5659 2020-05-15 Tom Tromey <tom@tromey.com>
5660
5661 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5662 block_objfile.
5663 (lookup_objfile_from_block): Remove.
5664 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5665 (lookup_global_symbol): Use block_objfile.
5666 * symtab.h (lookup_objfile_from_block): Don't declare.
5667 * printcmd.c (clear_dangling_display_expressions): Use
5668 block_objfile.
5669 * parse.c (operator_check_standard): Use block_objfile.
5670
5671 2020-05-15 Tom Tromey <tom@tromey.com>
5672
5673 * language.c (language_alloc_type_symbol): Set
5674 SYMBOL_SECTION.
5675 * symtab.c (initialize_objfile_symbol): Remove.
5676 (allocate_symbol): Remove.
5677 (allocate_template_symbol): Remove.
5678 * dwarf2/read.c (fixup_go_packaging): Use "new".
5679 (new_symbol): Use "new".
5680 (read_variable): Don't call initialize_objfile_symbol. Use
5681 "new".
5682 (read_func_scope): Use "new".
5683 * xcoffread.c (process_xcoff_symbol): Don't call
5684 initialize_objfile_symbol.
5685 (SYMBOL_DUP): Remove.
5686 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5687 "new".
5688 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5689 (allocate_template_symbol): Don't declare.
5690 (struct symbol): Add copy constructor. Change defaults.
5691 * jit.c (finalize_symtab): Use "new".
5692 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5693 Use "new".
5694 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5695 (common_block_end): Use "new".
5696 * mdebugread.c (parse_symbol): Use "new".
5697 (new_symbol): Likewise.
5698
5699 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5700
5701 * NEWS: Mention changes to help and apropos.
5702
5703 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5704
5705 * command.h (enum command_class): Improve comments, document
5706 that class_alias is for user-defined aliases, give the class
5707 name for each class, remove unused class_xdb.
5708 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5709 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5710 by a precise class.
5711 * infcmd.c (_initialize_infcmd): Likewise.
5712 * reverse.c (_initialize_reverse): Likewise.
5713 * stack.c (_initialize_stack): Likewise.
5714 * symfile.c (_initialize_symfile): Likewise.
5715 * tracepoint.c (_initialize_tracepoint): Likewise.
5716
5717 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5718
5719 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5720 when their aliased command is traversed.
5721 (help_cmd): Add fput_command_names_styled call to
5722 output command name and aliases when command has an alias.
5723
5724 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5725
5726 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5727 * cli/cli-decode.c (help_cmd_list): Declare as static,
5728 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5729 a command together with the command.
5730 (fput_command_name_styled, fput_command_names_styled): New functions.
5731 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5732 fput_command_name_styled.
5733 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5734 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5735
5736 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5737
5738 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5739 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5740 * command.h (cmd_show_list): Likewise.
5741 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5742 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5743
5744 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5745
5746 * unittests/command-def-selftests.c (traverse_command_structure):
5747 Verify all commands of a list have the same prefix command and
5748 that only the top cmdlist commands have a null prefix.
5749
5750 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5751
5752 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5753 as prefix, not one of its aliases.
5754 (set_cmd_prefix): Remove.
5755 (do_add_cmd): Centralize the setting of the prefix of a command, when
5756 command is defined after its full chain of prefix commands.
5757 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5758 (add_setshow_cmd_full): Likewise.
5759 (update_prefix_field_of_prefixed_commands): New function.
5760 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5761 update_prefix_field_of_prefixed_commands.
5762 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5763 addresses of remote_set_cmdlist and remote_show_cmdlist given
5764 as argument, not the address of an argument.
5765 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5766 * gdb/remote.c (_initialize_remote): Likewise.
5767
5768 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5769
5770 * cli/cli-cmds.c (alias_command): Check for an existing alias
5771 using lookup_cmd_composition, as valid_command_p is too strict
5772 and forbids aliases that are the prefix of an existing alias
5773 or command.
5774 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5775 command is properly recognised as a valid command.
5776
5777 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5778
5779 * unittests/help-doc-selftests.c: Rename to
5780 unittests/command-def-selftests.c
5781 * unittests/command-def-selftests.c (help_doc_tests): Update some
5782 comments.
5783 (command_structure_tests, traverse_command_structure): New namespace
5784 and function.
5785 (command_structure_invariants_tests): New function.
5786 (_initialize_command_def_selftests) Renamed from
5787 _initialize_help_doc_selftests, register command_structure_invariants
5788 selftest.
5789
5790 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5791
5792 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5793 an alias of 'show'.
5794
5795 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5796
5797 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5798 ada_is_fixed_point_type. Update all callers.
5799 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5800 all callers.
5801 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5802 Update all callers.
5803 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5804 print_fixed_point_type. Update all callers.
5805 * ada-valprint.c (ada_value_print_num): Replace call to
5806 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5807
5808 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5809
5810 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5811 processors.
5812 (cpu_supports_bts): Add CV_AMD case.
5813
5814 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5815 Simon Marchi <simon.marchi@efficios.com>
5816
5817 * infrun.c (stop_all_threads): Collect multiple wait events at
5818 each pass.
5819
5820 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5821
5822 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5823 type::code instead.
5824
5825 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5826
5827 * gdbtypes.h (struct type) <code, set_code>: New methods.
5828 (TYPE_CODE): Use type::code. Change all call sites used to set
5829 the code to use type::set_code instead.
5830
5831 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5832 Tom de Vries <tdevries@suse.de>
5833 Pedro Alves <palves@redhat.com>
5834
5835 PR threads/25478
5836 * infrun.c (stop_all_threads): Do NOT ignore
5837 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5838 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5839 received.
5840 (handle_no_resumed): Remove code handling a live inferior with no
5841 threads.
5842 * remote.c (has_single_non_exited_thread): New.
5843 (remote_target::update_thread_list): Do not delete a thread if is
5844 the last thread of the process.
5845 * thread.c (thread_select): Call delete_exited_threads instead of
5846 prune_threads.
5847
5848 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5849
5850 * infrun.c (stop_all_threads): Enable/disable thread events of all
5851 targets. Move a debug message denoting the end of the function
5852 into the SCOPED_EXIT block.
5853
5854 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5855
5856 * process-stratum-target.h: Include <set>.
5857 (all_non_exited_process_targets, switch_to_target_no_thread): New
5858 function declarations.
5859 * process-stratum-target.c (all_non_exited_process_targets)
5860 (switch_to_target_no_thread): New function implementations.
5861
5862 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5863
5864 * infrun.c (handle_inferior_event): Extract out a piece of code
5865 into...
5866 (mark_non_executing_threads): ...this new function.
5867
5868 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5869
5870 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5871 use.
5872
5873 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5874
5875 * regcache.c (regcache_read_pc_protected): New function
5876 implementation that returns 0 if the PC cannot read via
5877 'regcache_read_pc'.
5878 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5879 instead of 'regcache_read_pc'.
5880 (keep_going_pass_signal): Ditto.
5881
5882 2020-05-13 Tom Tromey <tromey@adacore.com>
5883
5884 * ada-lang.c (align_value): Remove.
5885 (ada_template_to_fixed_record_type_1): Use align_up.
5886
5887 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5888
5889 * async-event.c: Update the copyright year.
5890 * async-event.h: Update the copyright year.
5891
5892 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5893
5894 * objfiles.h (is_addr_in_objfile,
5895 shared_objfile_contains_address_p): Return bool.
5896 * objfile.c (is_addr_in_objfile,
5897 shared_objfile_contains_address_p): Return bool.
5898
5899 2020-05-11 Tom Tromey <tromey@adacore.com>
5900
5901 * cli/cli-cmds.c (info_command): Restore.
5902 (_initialize_cli_cmds): Use add_prefix_command for "info".
5903 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5904
5905 2020-05-11 Tom Tromey <tromey@adacore.com>
5906
5907 * ada-lang.c (ada_value_primitive_field): Now public.
5908 * ada-lang.h (ada_value_primitive_field): Declare.
5909 * ada-valprint.c (print_field_values): Use
5910 ada_value_primitive_field for wrapper fields.
5911
5912 2020-05-11 Tom de Vries <tdevries@suse.de>
5913
5914 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5915 MODULE_DOMAIN.
5916
5917 2020-05-11 Tom de Vries <tdevries@suse.de>
5918
5919 PR symtab/25941
5920 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5921 with length 0, if not gdb-produced.
5922 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5923
5924 2020-05-09 Tom de Vries <tdevries@suse.de>
5925
5926 PR gdb/25955
5927 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5928 calculation.
5929
5930 2020-05-09 Tom Tromey <tom@tromey.com>
5931
5932 * top.c (server_command): Now bool.
5933 * top.h (server_command): Now bool.
5934
5935 2020-05-08 Tom Tromey <tromey@adacore.com>
5936
5937 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5938 already being processed.
5939
5940 2020-05-08 Tom Tromey <tom@tromey.com>
5941
5942 * printcmd.c (struct display) <next>: Remove.
5943 <display>: New constructor.
5944 <exp_string>: Now a std::string.
5945 <enabled_p>: Now a bool.
5946 (display_number): Move definition earlier.
5947 (displays): Rename from display_chain. Now a std::vector.
5948 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5949 (display_command): Update.
5950 (do_one_display, disable_display)
5951 (enable_disable_display_command, do_enable_disable_display):
5952 Update.
5953 (free_display): Remove.
5954 (clear_displays): Rewrite.
5955 (delete_display): Update.
5956 (map_display_numbers): Use function_view. Remove "data"
5957 parameter. Update.
5958 (do_delete_display): Remove.
5959 (undisplay_command): Update.
5960 (do_one_display, do_displays, disable_display)
5961 (info_display_command): Update.
5962 (do_enable_disable_display): Remove.
5963 (enable_disable_display_command)
5964 (clear_dangling_display_expressions): Update.
5965
5966 2020-05-08 Tom Tromey <tom@tromey.com>
5967
5968 * symtab.c (set_symbol_cache_size)
5969 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5970 (maintenance_print_symbol_cache_statistics): Update.
5971 * symmisc.c (print_symbol_bcache_statistics)
5972 (print_objfile_statistics, maintenance_print_objfiles)
5973 (maintenance_info_symtabs, maintenance_check_symtabs)
5974 (maintenance_expand_symtabs, maintenance_info_line_tables):
5975 Update.
5976 * symfile-debug.c (set_debug_symfile): Update.
5977 * source.c (forget_cached_source_info): Update.
5978 * python/python.c (gdbpy_progspaces): Update.
5979 * psymtab.c (maintenance_info_psymtabs): Update.
5980 * probe.c (parse_probes): Update.
5981 * linespec.c (iterate_over_all_matching_symtabs)
5982 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5983 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5984 * exec.c (exec_target::close): Update.
5985 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5986 * breakpoint.c (print_one_breakpoint_location)
5987 (create_longjmp_master_breakpoint)
5988 (create_std_terminate_master_breakpoint): Update.
5989 * progspace.c (program_spaces): Now a std::vector.
5990 (maybe_new_address_space): Update.
5991 (add_program_space): Remove.
5992 (program_space::program_space): Update.
5993 (remove_program_space): Update.
5994 (number_of_program_spaces): Remove.
5995 (print_program_space, update_address_spaces): Update.
5996 * progspace.h (program_spaces): Change type.
5997 (ALL_PSPACES): Remove.
5998 (number_of_program_spaces): Don't declare.
5999 (struct program_space) <next>: Remove.
6000
6001 2020-05-08 Tom Tromey <tom@tromey.com>
6002
6003 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6004 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6005 (enable_break): Update.
6006 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6007 (frv_fdpic_find_canonical_descriptor): Update.
6008 (frv_fetch_objfile_link_map): Update.
6009 * progspace.c (program_space::free_all_objfiles): Update.
6010 (program_space::solibs): New method.
6011 * progspace.h (struct program_space) <solibs>: New method.
6012 * solist.h (master_so_list): Don't declare.
6013 (ALL_SO_LIBS): Remove.
6014 * solib.h (so_list_head): Remove.
6015 (update_solib_list): Update comment.
6016 * solib.c (master_so_list): Remove.
6017 (solib_used, update_solib_list, solib_add)
6018 (info_sharedlibrary_command, clear_solib)
6019 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6020
6021 2020-05-08 Tom Tromey <tom@tromey.com>
6022
6023 * extension.c (extension_languages): Now a std::array.
6024 (ALL_EXTENSION_LANGUAGES): Remove.
6025 (get_ext_lang_defn, get_ext_lang_of_file)
6026 (eval_ext_lang_from_control_command): Update.
6027 (finish_ext_lang_initialization)
6028 (auto_load_ext_lang_scripts_for_objfile)
6029 (ext_lang_type_printers::ext_lang_type_printers)
6030 (apply_ext_lang_type_printers)
6031 (ext_lang_type_printers::~ext_lang_type_printers)
6032 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6033 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6034 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6035 (get_matching_xmethod_workers, ext_lang_colorize)
6036 (ext_lang_before_prompt): Update.
6037 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6038
6039 2020-05-08 Tom Tromey <tom@tromey.com>
6040
6041 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6042 overload.
6043 <swap_string, m_string>: Remove.
6044 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6045 Update.
6046 * stabsread.c (define_symbol, read_type): Update.
6047 * linespec.c (find_linespec_symbols): Update.
6048 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6049 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6050 * dbxread.c (read_dbx_symtab): Update.
6051 * cp-support.h (cp_canonicalize_string_full)
6052 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6053 Return unique_xmalloc_ptr.
6054 * cp-support.c (inspect_type): Update.
6055 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6056 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6057 Likewise.
6058 * c-typeprint.c (print_name_maybe_canonical): Update.
6059 * break-catch-throw.c (check_status_exception_catchpoint):
6060 Update.
6061
6062 2020-05-08 Tom de Vries <tdevries@suse.de>
6063
6064 * infrun.c (follow_fork): Copy current_line and current_symtab to
6065 child thread.
6066
6067 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6068
6069 * async-event.c (struct async_signal_handler, struct
6070 async_event_handler): Reformat, remove typedef.
6071
6072 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6073
6074 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6075 access thistype->main_type->dyn_prop_list directly.
6076
6077 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6078
6079 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6080 (remove_dyn_prop): Remove. Update all users to use
6081 type::remove_dyn_prop.
6082 * gdbtypes.c (remove_dyn_prop): Rename to...
6083 (type::remove_dyn_prop): ... this.
6084
6085 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6086
6087 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6088 (add_dyn_prop): Remove. Update all users to use
6089 type::add_dyn_prop.
6090 * gdbtypes.c (add_dyn_prop): Rename to...
6091 (type::add_dyn_prop): ... this.
6092
6093 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6094
6095 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6096 (get_dyn_prop): Remove. Update all users to use
6097 type::dyn_prop.
6098 * gdbtypes.c (get_dyn_prop): Rename to...
6099 (type::dyn_prop): ... this.
6100
6101 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6102
6103 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6104
6105 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6106
6107 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6108 instruction, skip it if it's there.
6109
6110 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6111
6112 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6113
6114 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6115
6116 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6117 * gdbtypes.c (recursive_dump_type): Remove use of
6118 TYPE_INCOMPLETE.
6119
6120 2020-05-03 Tom Tromey <tom@tromey.com>
6121
6122 * breakpoint.c (catch_command, tcatch_command): Remove.
6123 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6124 add_show_prefix_cmd.
6125 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6126 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6127 Remove.
6128 (add_internal_problem_command): Use add_basic_prefix_cmd,
6129 add_show_prefix_cmd.
6130 * mips-tdep.c (set_mipsfpu_command): Remove.
6131 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6132 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6133 (_initialize_index_cache): Use add_basic_prefix_cmd.
6134 * memattr.c (dummy_cmd): Remove.
6135 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6136 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6137 (_initialize_tui_win): Use add_basic_prefix_cmd,
6138 add_show_prefix_cmd.
6139 * cli/cli-logging.c (set_logging_command): Remove.
6140 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6141 add_show_prefix_cmd.
6142 (show_logging_command): Remove.
6143 * target.c (target_command): Remove.
6144 (add_target): Use add_basic_prefix_cmd.
6145
6146 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6147
6148 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6149
6150 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6151
6152 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6153 info_command.
6154
6155 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6156
6157 * nbsd-nat.c (nbsd_enable_proc_events)
6158 (nbsd_nat_target::post_startup_inferior): Add.
6159 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6160 (nbsd_nat_target::update_thread_list): Rewrite.
6161 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6162 "PTRACE_LWP_CREATE".
6163 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6164
6165 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6166
6167 * stack.c (_initialize_stack): Remove duplicated creation
6168 of "frame" command and "f" alias.
6169
6170 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6171
6172 PR gdb/18706
6173 * gdbtypes.c (check_typedef): Calculate size of array of
6174 stubbed type.
6175
6176 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6177
6178 PR gdb/15559
6179 * i386-tdep.c (i386_push_dummy_call): Call
6180 i386_thiscall_push_dummy_call.
6181 (i386_thiscall_push_dummy_call): New function.
6182 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6183 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6184 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6185
6186 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6187
6188 * gdbarch.sh (do_read): Add shellcheck disable directive for
6189 warning SC2162.
6190
6191 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6192
6193 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6194 "referenced but not assigned" warning.
6195
6196 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6197
6198 * gdbarch.sh: Remove code that sets fallbackdefault.
6199
6200 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6201
6202 * gdbarch.sh: Use shell operators && and || instead of
6203 -a and -o.
6204
6205 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6206
6207 * gdbarch.sh: Use $(...) instead of `...`.
6208
6209 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6210
6211 * gdbarch.sh: Use double quotes around variables.
6212
6213 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6214
6215 * gdbarch.sh: Use %s with printf, instead of variables in the
6216 format string.
6217
6218 2020-04-29 Tom Tromey <tromey@adacore.com>
6219
6220 PR ada/25875:
6221 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6222 type fields here.
6223 (read_enumeration_type): Call
6224 update_enumeration_type_from_children later. Update comments.
6225 (process_enumeration_scope): Don't create type fields.
6226
6227 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6228
6229 * nbsd-tdep.c: Include "xml-syscall.h".
6230 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6231
6232 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6233
6234 * nbsd-nat.c: Include "sys/wait.h".
6235 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6236 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6237 (nbsd_nat_target::remove_exec_catchpoint)
6238 (nbsd_nat_target::set_syscall_catchpoint): Add.
6239 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6240 (nbsd_nat_target::insert_exec_catchpoint)
6241 (nbsd_nat_target::remove_exec_catchpoint)
6242 (nbsd_nat_target::set_syscall_catchpoint): Add.
6243 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6244 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6245 `nbsd_get_syscall_number'.
6246
6247 2020-04-29 Tom Tromey <tom@tromey.com>
6248
6249 * stack.c (print_block_frame_labels): Remove.
6250
6251 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6252
6253 PR gdb/17320
6254 * ada-valprint.c (val_print_packed_array_elements): Move array
6255 end bracket to new line.
6256 (ada_val_print_string): Remove extra spaces before first array
6257 element.
6258 * c-valprint.c (c_value_print_array): Likewise.
6259 * m2-valprint.c (m2_print_array_contents): Likewise.
6260 (m2_value_print_inner): Likewise.
6261 * p-valprint.c (pascal_value_print_inner): Likewise.
6262 * valprint.c (generic_val_print_array): Likewise.
6263 (value_print_array_elements): Move first array element and array
6264 end bracket to new line.
6265
6266 2020-04-29 Tom de Vries <tdevries@suse.de>
6267
6268 PR symtab/25889
6269 * linespec.c (find_method): Fix ix calculation.
6270
6271 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6272
6273 * syscalls/update-netbsd.sh: New file.
6274 * syscalls/netbsd.xml: Regenerate.
6275 * data-directory/Makefile.in: Register `netbsd.xml' in
6276 `SYSCALLS_FILES'.
6277
6278 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6279
6280 * syscalls/update-freebsd.sh: Add double quotes.
6281
6282 2020-04-28 Tom Tromey <tom@tromey.com>
6283
6284 * NEWS: Update.
6285 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6286 (cmdpy_init): Allow class_tui.
6287
6288 2020-04-28 Mark Williams <mark@myosotissp.com>
6289
6290 PR gdb/24480
6291 * dwarf2read.c: Add missing assingments to list_in_scope when
6292 start_symtab was already called.
6293
6294 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6295
6296 PR gdb/25881
6297 * dwarf2/read.c (offset_map_type): Use
6298 gdb:hash_enum<sect_offset> as hash function.
6299
6300 2020-04-28 Tom de Vries <tdevries@suse.de>
6301
6302 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6303 with DW_AT_signature.
6304
6305 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6306
6307 * configure.ac: Remove check for fs_base/gs_base in
6308 user_regs_struct.
6309 * configure: Re-generate.
6310 * config.in: Re-generate.
6311 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6312 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6313 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6314
6315 2020-04-27 Luis Machado <luis.machado@linaro.org>
6316
6317 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6318 problematic inline frame unwinding situation.
6319 * frame.c (frame_id_computed_p): New function.
6320 * frame.h (frame_id_computed_p): New prototype.
6321
6322 2020-04-26 Tom Tromey <tom@tromey.com>
6323
6324 * command.h (enum command_class) <class_pseudo>: Remove.
6325
6326 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6327
6328 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6329 and whitespace.
6330
6331 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6332
6333 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6334 `PT_GET_PROCESS_STATE' block.
6335
6336 2020-04-24 Tom Tromey <tom@tromey.com>
6337
6338 * symtab.h (symbol_get_demangled_name): Don't declare.
6339 * symtab.c (symbol_get_demangled_name): Remove.
6340 (general_symbol_info::natural_name)
6341 (general_symbol_info::demangled_name): Update.
6342
6343 2020-04-24 Tom Tromey <tom@tromey.com>
6344
6345 PR rust/25025:
6346 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6347
6348 2020-04-24 Tom Tromey <tom@tromey.com>
6349
6350 PR symtab/12707:
6351 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6352 exists.
6353 (new_symbol): Likewise.
6354 * compile/compile-object-load.c (get_out_value_type): Use
6355 symbol_matches_search_name.
6356
6357 2020-04-24 Tom Tromey <tom@tromey.com>
6358
6359 * dwarf2/read.c (add_partial_symbol): Do not call
6360 compute_and_set_names.
6361
6362 2020-04-24 Tom Tromey <tom@tromey.com>
6363
6364 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6365 overload.
6366
6367 2020-04-24 Tom Tromey <tom@tromey.com>
6368
6369 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6370 (add_psymbol_to_list): New overload. Make old overload call new
6371 one.
6372 * psympriv.h (add_psymbol_to_list): New overload.
6373
6374 2020-04-24 Tom Tromey <tom@tromey.com>
6375
6376 * dwarf2/read.c (partial_die_info::read) <case
6377 DW_AT_linkage_name>: Use value_as_string.
6378 (dwarf2_string_attr): Use value_as_string.
6379 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6380 method.
6381 * dwarf2/attribute.c (attribute::value_as_string): New method.
6382
6383 2020-04-24 Tom Tromey <tom@tromey.com>
6384
6385 * symtab.c (general_symbol_info::natural_name)
6386 (general_symbol_info::demangled_name): Check for language_rust.
6387
6388 2020-04-24 Tom Tromey <tom@tromey.com>
6389
6390 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6391 (dwarf2_physname): ... from here.
6392 (partial_die_info::read): Add Rust "{" hack.
6393
6394 2020-04-24 Tom Tromey <tom@tromey.com>
6395
6396 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6397 method.
6398 (symbol_set_demangled_name): Don't declare.
6399 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6400 symbol_set_demangled_name.
6401 (general_symbol_info::set_language)
6402 (general_symbol_info::compute_and_set_names): Update.
6403 * minsyms.c (minimal_symbol_reader::install): Update.
6404 * dwarf2/read.c (new_symbol): Update.
6405
6406 2020-04-24 Tom Tromey <tromey@adacore.com>
6407
6408 PR python/23662:
6409 * python/py-type.c (convert_field): Handle
6410 FIELD_LOC_KIND_DWARF_BLOCK.
6411 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6412 (typy_get_dynamic): Nw function.
6413 (type_object_getset): Add "dynamic".
6414 * NEWS: Add entry.
6415
6416 2020-04-24 Tom Tromey <tromey@adacore.com>
6417
6418 * ada-typeprint.c (print_choices, print_variant_part)
6419 (print_record_field_types_dynamic): New functions.
6420 (print_record_field_types): Use print_record_field_types_dynamic.
6421
6422 2020-04-24 Tom Tromey <tromey@adacore.com>
6423
6424 * dwarf2/read.c (handle_data_member_location): New overload.
6425 (dwarf2_add_field): Use it.
6426 (decode_locdesc): Add "computed" parameter. Update comment.
6427 * gdbtypes.c (is_dynamic_type_internal): Also look for
6428 FIELD_LOC_KIND_DWARF_BLOCK.
6429 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6430 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6431 virtual base classes.
6432 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6433 FIELD_LOC_KIND_DWARF_BLOCK.
6434
6435 2020-04-24 Tom Tromey <tromey@adacore.com>
6436
6437 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6438 * gdbtypes.c (is_dynamic_type_internal): Check
6439 TYPE_HAS_DYNAMIC_LENGTH.
6440 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6441 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6442 New macros.
6443 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6444 constant.
6445
6446 2020-04-24 Tom Tromey <tromey@adacore.com>
6447
6448 * dwarf2/read.c (struct variant_field): Rewrite.
6449 (struct variant_part_builder): New.
6450 (struct nextfield): Remove "variant" field. Add "offset".
6451 (struct field_info): Add "current_variant_part" and
6452 "variant_parts".
6453 (alloc_discriminant_info): Remove.
6454 (alloc_rust_variant): New function.
6455 (quirk_rust_enum): Update.
6456 (dwarf2_add_field): Set "offset" member. Don't handle
6457 DW_TAG_variant_part.
6458 (offset_map_type): New typedef.
6459 (convert_variant_range, create_one_variant)
6460 (create_one_variant_part, create_variant_parts)
6461 (add_variant_property): New functions.
6462 (dwarf2_attach_fields_to_type): Call add_variant_property.
6463 (read_structure_type): Don't handle DW_TAG_variant_part.
6464 (handle_variant_part, handle_variant): New functions.
6465 (handle_struct_member_die): Use them.
6466 (process_structure_scope): Don't handle variant parts.
6467 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6468 (struct discriminant_info): Remove.
6469 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6470 (struct main_type) <flag_discriminated_union>: Remove.
6471 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6472 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6473 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6474 Update.
6475 * valops.c (value_union_variant): Remove.
6476 * value.h (value_union_variant): Don't declare.
6477
6478 2020-04-24 Tom Tromey <tromey@adacore.com>
6479
6480 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6481 (ada_value_primitive_packed_val): Update.
6482 * ada-valprint.c (ada_value_print_1): Update.
6483 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6484 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6485 just an address. Use evaluate_for_locexpr_baton.
6486 (dwarf2_evaluate_property): Update.
6487 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6488 array_view.
6489 * findvar.c (default_read_var_value): Update.
6490 * gdbtypes.c (compute_variant_fields_inner)
6491 (resolve_dynamic_type_internal): Update.
6492 (resolve_dynamic_type): Change type of valaddr parameter.
6493 * gdbtypes.h (resolve_dynamic_type): Update.
6494 * valarith.c (value_subscripted_rvalue): Update.
6495 * value.c (value_from_contents_and_address): Update.
6496
6497 2020-04-24 Tom Tromey <tromey@adacore.com>
6498
6499 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6500 "push_initial_value" parameter.
6501 (dwarf2_evaluate_property): Likewise.
6502 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6503
6504 2020-04-24 Tom Tromey <tromey@adacore.com>
6505
6506 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6507 (variant::matches, compute_variant_fields_recurse)
6508 (compute_variant_fields_inner, compute_variant_fields): New
6509 functions.
6510 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6511 Use resolved_type after type is made.
6512 (operator==): Add new cases.
6513 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6514 (struct discriminant_range, struct variant, struct variant_part):
6515 New.
6516 (union dynamic_prop_data) <variant_parts, original_type>: New
6517 members.
6518 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6519 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6520 constants.
6521 * value.c (unpack_bits_as_long): Now public.
6522 * value.h (unpack_bits_as_long): Declare.
6523
6524 2020-04-24 Tom Tromey <tromey@adacore.com>
6525
6526 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6527 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6528
6529 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6530
6531 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6532
6533 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6534
6535 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6536 (remove_fork_catchpoint, post_startup_inferior)
6537 (post_attach): Move...
6538 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6539 (remove_fork_catchpoint, post_startup_inferior)
6540 (post_attach): ...here.
6541 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6542 (remove_fork_catchpoint, post_startup_inferior)
6543 (post_attach): Move...
6544 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6545 (remove_fork_catchpoint, post_startup_inferior)
6546 (post_attach): ...here.
6547
6548 2020-04-24 Tom Tromey <tromey@adacore.com>
6549
6550 * nat/windows-nat.h (struct windows_thread_info)
6551 <pc_adjusted>: New member.
6552 * windows-nat.c (windows_fetch_one_register): Check
6553 pc_adjusted.
6554 (windows_nat_target::get_windows_debug_event)
6555 (windows_nat_target::wait): Set pc_adjusted.
6556
6557 2020-04-24 Tom de Vries <tdevries@suse.de>
6558
6559 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6560 Run gdb-add-index inside temp dir.
6561
6562 2020-04-23 Tom Tromey <tromey@adacore.com>
6563
6564 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6565 in loop.
6566
6567 2020-04-23 Luis Machado <luis.machado@linaro.org>
6568
6569 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6570 get_frame_register instead of gdbarch_unwind_pc.
6571
6572 2020-04-23 Tom de Vries <tdevries@suse.de>
6573
6574 * symtab.c (lookup_global_symbol): Prefer def over decl.
6575
6576 2020-04-23 Tom de Vries <tdevries@suse.de>
6577
6578 PR symtab/25807
6579 * block.c (best_symbol, better_symbol): Promote to external.
6580 * block.h (best_symbol, better_symbol): Declare.
6581 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6582 decl.
6583
6584 2020-04-23 Tom Tromey <tromey@adacore.com>
6585
6586 PR ada/25837:
6587 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6588 "const char *", not a "const std::string &".
6589 <name_and_matcher::operator==>: Update.
6590 * unittests/lookup_name_info-selftests.c: Change type of
6591 "result".
6592
6593 2020-04-23 Tom Tromey <tom@tromey.com>
6594
6595 * inferior.h (iterate_over_inferiors): Don't declare.
6596 * inferior.c (iterate_over_inferiors): Remove.
6597 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6598 Remove.
6599 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6600 use iterate_over_inferiors.
6601 (darwin_resume_inferior_it)
6602 (struct resume_inferior_threads_param)
6603 (darwin_resume_inferior_threads_it): Remove.
6604 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6605
6606 2020-04-23 Tom de Vries <tdevries@suse.de>
6607
6608 * blockframe.c (find_pc_partial_function): Use
6609 find_pc_sect_compunit_symtab rather than
6610 objfile->sf->qf->find_pc_sect_compunit_symtab.
6611
6612 2020-04-22 Tom de Vries <tdevries@suse.de>
6613
6614 PR symtab/25764
6615 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6616 in psymtabs.
6617
6618 2020-04-22 Tom de Vries <tdevries@suse.de>
6619
6620 PR symtab/25801
6621 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6622 symtabs.
6623
6624 2020-04-22 Tom de Vries <tdevries@suse.de>
6625
6626 PR symtab/25700
6627 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6628 CU if already created.
6629
6630 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6631
6632 * infrun.c (displaced_step_fixup): Switch to the event_thread
6633 before calling displaced_step_restore, not after.
6634
6635 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6636
6637 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6638 its inferior is not recorded by us.
6639 (record_btrace_target_open): Replace call to
6640 all_non_exited_threads () with call to current_inferior
6641 ()->non_exited_threads ().
6642 (record_btrace_target::stop_recording): Likewise.
6643 (record_btrace_target::close): Likewise.
6644 (record_btrace_target::wait): Likewise.
6645 (record_btrace_target::record_stop_replaying): Likewise.
6646
6647 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6648
6649 * btrace.c (btrace_enable): Throw an error on double enables and
6650 when enabling recording fails.
6651 (btrace_disable): Throw an error if the thread is not recorded.
6652
6653 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6654
6655 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6656 request if we do not have a thread_info.
6657
6658 2020-04-21 Tom de Vries <tdevries@suse.de>
6659
6660 PR gdb/25471
6661 * thread.c
6662 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6663 exception in get_frame_id.
6664
6665 2020-04-20 Tom Tromey <tromey@adacore.com>
6666
6667 * python/python.c (struct gdbpy_event): Mark move constructor as
6668 noexcept.
6669 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6670 constructor as noexcept.
6671 * completer.h (struct completion_result): Mark move constructor as
6672 noexcept.
6673 * completer.c (completion_result::completion_result): Use
6674 initialization style. Don't call reset_match_list.
6675
6676 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6677
6678 * MAINTAINERS (Write After Approval): Add myself.
6679
6680 2020-04-18 Tom Tromey <tom@tromey.com>
6681
6682 * windows-tdep.c (init_w32_command_list)
6683 (w32_prefix_command_valid): Restore.
6684 (_initialize_windows_tdep): Call init_w32_command_list.
6685
6686 2020-04-18 Tom Tromey <tom@tromey.com>
6687
6688 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6689 * value.c (value_fn_field): Update.
6690 * valops.c (find_function_in_inferior)
6691 (value_allocate_space_in_inferior): Update.
6692 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6693 Update.
6694 * tui/tui-source.c (tui_source_window::set_contents): Update.
6695 * symtab.c (lookup_global_or_static_symbol)
6696 (find_function_start_sal_1, skip_prologue_sal)
6697 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6698 * symmisc.c (dump_msymbols, dump_symtab_1)
6699 (maintenance_print_one_line_table): Update.
6700 * symfile.c (init_entry_point_info, section_is_mapped)
6701 (list_overlays_command, simple_read_overlay_table)
6702 (simple_overlay_update_1): Update.
6703 * stap-probe.c (handle_stap_probe): Update.
6704 * stabsread.c (dbx_init_float_type, define_symbol)
6705 (read_one_struct_field, read_enum_type, read_range_type): Update.
6706 * source.c (info_line_command): Update.
6707 * python/python.c (gdbpy_source_objfile_script)
6708 (gdbpy_execute_objfile_script): Update.
6709 * python/py-type.c (save_objfile_types): Update.
6710 * python/py-objfile.c (py_free_objfile): Update.
6711 * python/py-inferior.c (python_new_objfile): Update.
6712 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6713 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6714 (maintenance_check_psymtabs): Update.
6715 * printcmd.c (info_address_command): Update.
6716 * objfiles.h (struct objfile) <arch>: New method, from
6717 get_objfile_arch.
6718 (get_objfile_arch): Don't declare.
6719 * objfiles.c (get_objfile_arch): Remove.
6720 (filter_overlapping_sections): Update.
6721 * minsyms.c (msymbol_is_function): Update.
6722 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6723 (output_nondebug_symbol): Update.
6724 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6725 (mdebug_expand_psymtab): Update.
6726 * machoread.c (macho_add_oso_symfile): Update.
6727 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6728 Update.
6729 * linux-fork.c (checkpoint_command): Update.
6730 * linespec.c (convert_linespec_to_sals): Update.
6731 * jit.c (finalize_symtab): Update.
6732 * infrun.c (insert_exception_resume_from_probe): Update.
6733 * ia64-tdep.c (ia64_find_unwind_table): Update.
6734 * hppa-tdep.c (internalize_unwinds): Update.
6735 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6736 Update.
6737 * gcore.c (call_target_sbrk): Update.
6738 * elfread.c (record_minimal_symbol, elf_symtab_read)
6739 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6740 (elf_gnu_ifunc_resolve_by_got): Update.
6741 * dwarf2/read.c (create_addrmap_from_index)
6742 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6743 (read_debug_names_from_section)
6744 (process_psymtab_comp_unit_reader, add_partial_symbol)
6745 (add_partial_subprogram, process_full_comp_unit)
6746 (read_file_scope, read_func_scope, read_lexical_block_scope)
6747 (read_call_site_scope, dwarf2_ranges_read)
6748 (dwarf2_record_block_ranges, dwarf2_add_field)
6749 (mark_common_block_symbol_computed, read_tag_pointer_type)
6750 (read_tag_string_type, dwarf2_init_float_type)
6751 (dwarf2_init_complex_target_type, read_base_type)
6752 (partial_die_info::read, partial_die_info::read)
6753 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6754 (dwarf2_fetch_die_loc_sect_off): Update.
6755 * dwarf2/loc.c (dwarf2_find_location_expression)
6756 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6757 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6758 (dwarf2_loc_desc_get_symbol_read_needs)
6759 (locexpr_describe_location_piece, locexpr_describe_location_1)
6760 (loclist_describe_location): Update.
6761 * dwarf2/index-write.c (write_debug_names): Update.
6762 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6763 * dtrace-probe.c (dtrace_process_dof): Update.
6764 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6765 (process_one_symbol): Update.
6766 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6767 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6768 (coff_read_enum_type): Update.
6769 * cli/cli-cmds.c (edit_command, list_command): Update.
6770 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6771 * breakpoint.c (create_overlay_event_breakpoint)
6772 (create_longjmp_master_breakpoint)
6773 (create_std_terminate_master_breakpoint)
6774 (create_exception_master_breakpoint, get_sal_arch): Update.
6775 * block.c (block_gdbarch): Update.
6776 * annotate.c (annotate_source_line): Update.
6777
6778 2020-04-17 Tom Tromey <tromey@adacore.com>
6779
6780 * auto-load.c (show_auto_load_cmd): Remove.
6781 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6782 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6783 (maintenance_print_arc_command): Remove.
6784 * tui/tui-win.c (tui_command): Remove.
6785 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6786 * tui/tui-layout.c (tui_layout_command): Remove.
6787 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6788 * python/python.c (user_set_python, user_show_python): Remove.
6789 (_initialize_python): Use add_basic_prefix_cmd,
6790 add_show_prefix_cmd.
6791 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6792 (install_gdb_commands): Use add_basic_prefix_cmd,
6793 add_show_prefix_cmd.
6794 (info_guile_command): Remove.
6795 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6796 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6797 add_show_prefix_cmd.
6798 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6799 Remove do_set and do_show parameters.
6800 * cli/cli-style.c (set_style, show_style): Remove.
6801 (_initialize_cli_style): Use add_basic_prefix_cmd,
6802 add_show_prefix_cmd.
6803 (cli_style_option::add_setshow_commands): Remove do_set and
6804 do_show parameters.
6805 (cli_style_option::add_setshow_commands): Use
6806 add_basic_prefix_cmd, add_show_prefix_cmd.
6807 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6808 (set_style_name): Remove.
6809 * cli/cli-dump.c (dump_command, append_command): Remove.
6810 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6811 (tekhex_dump_command, binary_dump_command)
6812 (binary_append_command): Remove.
6813 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6814 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6815 (init_w32_command_list): Remove; move into ...
6816 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6817 * valprint.c (set_print, show_print, set_print_raw)
6818 (show_print_raw): Remove.
6819 (_initialize_valprint): Use add_basic_prefix_cmd,
6820 add_show_prefix_cmd.
6821 * typeprint.c (set_print_type, show_print_type): Remove.
6822 (_initialize_typeprint): Use add_basic_prefix_cmd,
6823 add_show_prefix_cmd.
6824 * record.c (set_record_command, show_record_command): Remove.
6825 (_initialize_record): Use add_basic_prefix_cmd,
6826 add_show_prefix_cmd.
6827 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6828 add_show_prefix_cmd.
6829 (info_command, show_command, set_debug, show_debug): Remove.
6830 * top.h (set_history, show_history): Don't declare.
6831 * top.c (set_history, show_history): Remove.
6832 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6833 (unset_tdesc_cmd): Remove.
6834 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6835 add_show_prefix_cmd.
6836 * symtab.c (info_module_command): Remove.
6837 (_initialize_symtab): Use add_basic_prefix_cmd.
6838 * symfile.c (overlay_command): Remove.
6839 (_initialize_symfile): Use add_basic_prefix_cmd.
6840 * sparc64-tdep.c (info_adi_command): Remove.
6841 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6842 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6843 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6844 add_show_prefix_cmd.
6845 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6846 (_initialize_serial): Use add_basic_prefix_cmd,
6847 add_show_prefix_cmd.
6848 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6849 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6850 add_show_prefix_cmd.
6851 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6852 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6853 add_show_prefix_cmd.
6854 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6855 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6856 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6857 add_show_prefix_cmd.
6858 * remote.c (remote_command, set_remote_cmd): Remove.
6859 (_initialize_remote): Use add_basic_prefix_cmd.
6860 * record-full.c (set_record_full_command)
6861 (show_record_full_command): Remove.
6862 (_initialize_record_full): Use add_basic_prefix_cmd,
6863 add_show_prefix_cmd.
6864 * record-btrace.c (cmd_set_record_btrace)
6865 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6866 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6867 (cmd_show_record_btrace_pt): Remove.
6868 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6869 add_show_prefix_cmd.
6870 * ravenscar-thread.c (set_ravenscar_command)
6871 (show_ravenscar_command): Remove.
6872 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6873 add_show_prefix_cmd.
6874 * mips-tdep.c (show_mips_command, set_mips_command)
6875 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6876 add_show_prefix_cmd.
6877 * maint.c (maintenance_command, maintenance_info_command)
6878 (maintenance_check_command, maintenance_print_command)
6879 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6880 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6881 add_show_prefix_cmd.
6882 (show_per_command_cmd): Remove.
6883 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6884 Remove.
6885 (maintenance_show_test_settings_cmd): Remove.
6886 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6887 add_show_prefix_cmd.
6888 * maint-test-options.c (maintenance_test_options_command):
6889 Remove.
6890 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6891 * macrocmd.c (macro_command): Remove
6892 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6893 * language.c (set_check, show_check): Remove.
6894 (_initialize_language): Use add_basic_prefix_cmd,
6895 add_show_prefix_cmd.
6896 * infcmd.c (unset_command): Remove.
6897 (_initialize_infcmd): Use add_basic_prefix_cmd.
6898 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6899 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6900 add_show_prefix_cmd.
6901 * go32-nat.c (go32_info_dos_command): Remove.
6902 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6903 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6904 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6905 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6906 (_initialize_frame): Use add_basic_prefix_cmd,
6907 add_show_prefix_cmd.
6908 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6909 (_initialize_dcache): Use add_basic_prefix_cmd,
6910 add_show_prefix_cmd.
6911 * cp-support.c (maint_cplus_command): Remove.
6912 (_initialize_cp_support): Use add_basic_prefix_cmd.
6913 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6914 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6915 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6916 add_basic_prefix_cmd, add_show_prefix_cmd.
6917 * breakpoint.c (save_command): Remove.
6918 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6919 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6920 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6921 add_show_prefix_cmd.
6922 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6923 (set_ada_command, show_ada_command): Remove.
6924 (_initialize_ada_language): Use add_basic_prefix_cmd,
6925 add_show_prefix_cmd.
6926 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6927
6928 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6929
6930 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6931 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6932
6933 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6934
6935 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6936 warning messages.
6937
6938 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6939
6940 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6941 import table is not at beginning of .idata section.
6942
6943 2020-04-16 Pedro Alves <palves@redhat.com>
6944
6945 * inferior.c (delete_inferior): Use delete operator directly
6946 instead of delete_program_space.
6947 * progspace.c (add_program_space): New, factored out from
6948 program_space::program_space.
6949 (remove_program_space): New, factored out from
6950 delete_program_space.
6951 (program_space::program_space): Remove intro comment. Rewrite.
6952 (program_space::~program_space): Remove intro comment. Call
6953 remove_program_space.
6954 (delete_program_space): Delete.
6955 * progspace.h (program_space::program_space): Make explicit. Move
6956 intro comment here, adjusted.
6957 (program_space::~program_space): Move intro comment here,
6958 adjusted.
6959 (delete_program_space): Remove.
6960
6961 2020-04-16 Tom Tromey <tromey@adacore.com>
6962
6963 * windows-nat.c (windows_nat::handle_access_violation): New
6964 function.
6965 * nat/windows-nat.h (handle_access_violation): Declare.
6966 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6967 windows-nat.c. Call handle_access_violation.
6968
6969 2020-04-16 Tom de Vries <tdevries@suse.de>
6970
6971 PR symtab/25791
6972 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6973 CUs without psymtab.
6974
6975 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6976
6977 * python/python.c (do_start_initialization): Don't call
6978 PyEval_InitThreads for Python 3.9 and beyond.
6979
6980 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6981
6982 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6983 thread functions.
6984 (obsd_nat_target::wait): Likewise.
6985
6986 2020-04-15 Tom Tromey <tromey@adacore.com>
6987
6988 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6989 (DEBUG_EXCEPT): Use debug_printf.
6990
6991 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6992
6993 * completer.c (class completion_tracker::completion_hash_entry)
6994 <hash_name>: New member function.
6995 (completion_tracker::discard_completions): New callback to hash a
6996 completion_hash_entry, pass this to htab_create_alloc.
6997
6998 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6999
7000 * windows-nat.c (windows_make_so): Warn rather than stopping with
7001 an error if realpath() fails.
7002
7003 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7004
7005 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7006 (nbsd_nat_target::info_proc): Add do_status.
7007
7008 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7009 Tom de Vries <tdevries@suse.de>
7010
7011 PR symtab/25718
7012 * psympriv.h (struct partial_symtab::read_symtab)
7013 (struct partial_symtab::expand_psymtab)
7014 (struct partial_symtab::read_dependencies): Update comments.
7015 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7016 read_symtab for includer.
7017 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7018 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7019 (struct dwarf2_include_psymtab::m_readin): Remove.
7020 (struct dwarf2_include_psymtab::includer): New member function.
7021 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7022
7023 2020-04-14 Tom de Vries <tdevries@suse.de>
7024
7025 PR symtab/25720
7026 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7027 with NULL symbol_matcher and lookup_name.
7028 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7029 and lookup_name.
7030 * dwarf2/read.c (dw2_expand_symtabs_matching)
7031 (dw2_debug_names_expand_symtabs_matching): Same.
7032 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7033 Make lookup_name a pointer. Update comment.
7034 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7035 lookup_name being a pointer.
7036 * symfile.c (expand_symtabs_matching): Same.
7037 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7038 * linespec.c (iterate_over_all_matching_symtabs): Same.
7039
7040 2020-04-13 Tom Tromey <tom@tromey.com>
7041
7042 * run-on-main-thread.c: Update include.
7043 * unittests/main-thread-selftests.c: Update include.
7044 * tui/tui-win.c: Update include.
7045 * tui/tui-io.c: Update include.
7046 * tui/tui-interp.c: Update include.
7047 * tui/tui-hooks.c: Update include.
7048 * top.h: Update include.
7049 * top.c: Update include.
7050 * ser-base.c: Update include.
7051 * remote.c: Update include.
7052 * remote-notif.c: Update include.
7053 * remote-fileio.c: Update include.
7054 * record-full.c: Update include.
7055 * record-btrace.c: Update include.
7056 * python/python.c: Update include.
7057 * posix-hdep.c: Update include.
7058 * mingw-hdep.c: Update include.
7059 * mi/mi-main.c: Update include.
7060 * mi/mi-interp.c: Update include.
7061 * main.c: Update include.
7062 * linux-nat.c: Update include.
7063 * interps.c: Update include.
7064 * infrun.c: Update include.
7065 * inf-loop.c: Update include.
7066 * event-top.c: Update include.
7067 * event-loop.c: Move to ../gdbsupport/.
7068 * event-loop.h: Move to ../gdbsupport/.
7069 * async-event.h: Update include.
7070 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7071
7072 2020-04-13 Tom Tromey <tom@tromey.com>
7073
7074 * tui/tui-win.c: Include async-event.h.
7075 * remote.c: Include async-event.h.
7076 * remote-notif.c: Include async-event.h.
7077 * record-full.c: Include async-event.h.
7078 * record-btrace.c: Include async-event.h.
7079 * infrun.c: Include async-event.h.
7080 * event-top.c: Include async-event.h.
7081 * event-loop.h: Move some declarations to async-event.h.
7082 * event-loop.c: Don't include ser-event.h or top.h. Move some
7083 code to async-event.c.
7084 * async-event.h: New file.
7085 * async-event.c: New file.
7086 * Makefile.in (COMMON_SFILES): Add async-event.c.
7087 (HFILES_NO_SRCDIR): Add async-event.h.
7088
7089 2020-04-13 Tom Tromey <tom@tromey.com>
7090
7091 * utils.c (flush_streams): New function.
7092 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7093
7094 2020-04-13 Tom Tromey <tom@tromey.com>
7095
7096 * event-loop.c (handle_file_event): Use warning, not
7097 printf_unfiltered.
7098
7099 2020-04-13 Tom Tromey <tom@tromey.com>
7100
7101 * event-loop.c: Include <chrono>.
7102
7103 2020-04-13 Tom Tromey <tom@tromey.com>
7104
7105 * gdb_select.h: Move to ../gdbsupport/.
7106 * event-loop.c: Update include path.
7107 * top.c: Update include path.
7108 * ser-base.c: Update include path.
7109 * ui-file.c: Update include path.
7110 * ser-tcp.c: Update include path.
7111 * guile/scm-ports.c: Update include path.
7112 * posix-hdep.c: Update include path.
7113 * ser-unix.c: Update include path.
7114 * gdb_usleep.c: Update include path.
7115 * mingw-hdep.c: Update include path.
7116 * inflow.c: Update include path.
7117 * infrun.c: Update include path.
7118 * event-top.c: Update include path.
7119
7120 2020-04-13 Tom Tromey <tom@tromey.com>
7121
7122 * configure: Rebuild.
7123 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7124
7125 2020-04-13 Tom Tromey <tom@tromey.com>
7126
7127 * event-loop.h (start_event_loop): Don't declare.
7128 * event-loop.c (start_event_loop): Move...
7129 * main.c (start_event_loop): ...here. Now static.
7130
7131 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7132
7133 * MAINTAINERS: Update my email address.
7134
7135 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7136
7137 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7138 IP_ALL.
7139
7140 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7141
7142 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7143 (nbsd_nat_target::info_proc): Add do_cmdline.
7144
7145 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7146
7147 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7148 (nbsd_nat_target::info_proc): Add do_cwd.
7149
7150 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7151
7152 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7153
7154 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7155
7156 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7157 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7158 (nbsd_nat_target::info_proc): New functions.
7159 * nbsd-nat.c (kinfo_get_vmmap): New function.
7160 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7161 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7162 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7163 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7164 functions.
7165 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7166 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7167 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7168 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7169 (KINFO_VME_FLAG_GROWS_DOWN): New.
7170
7171 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7172
7173 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7174 bit shift.
7175
7176 2020-04-10 Tom Tromey <tromey@adacore.com>
7177
7178 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7179
7180 2020-04-10 Tom Tromey <tromey@adacore.com>
7181
7182 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7183 separate debug files.
7184
7185 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7186
7187 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7188 Move to...
7189 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7190 ... here.
7191 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7192 Check for STATUS_WX86_BREAKPOINT.
7193 (windows_nat_target::wait): Same.
7194
7195 2020-04-10 Tom de Vries <tdevries@suse.de>
7196
7197 PR cli/25808
7198 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7199
7200 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7201
7202 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7203 (Write After Approval): Remove Tom de Vries.
7204
7205 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7206
7207 revert partially:
7208 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7209
7210 * buildsym.c (record_line): Fix undefined behavior and preserve
7211 lines at eof.
7212
7213 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7214
7215 * auxv.h (svr4_auxv_parse): New.
7216 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7217 and generic_auxv_parse.
7218 (svr4_auxv_parse): Add.
7219 * obsd-tdep.c: Include "auxv.h".
7220 (obsd_auxv_parse): Remove.
7221 (obsd_init_abi): Remove comment.
7222 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7223 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7224 * nbsd-tdep.c: Include "auxv.h".
7225 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7226
7227 2020-04-08 Tom Tromey <tromey@adacore.com>
7228
7229 * nat/windows-nat.h (last_wait_event): Don't declare.
7230 (wait_for_debug_event): Update comment.
7231 * nat/windows-nat.c (last_wait_event): Now static.
7232
7233 2020-04-08 Tom Tromey <tromey@adacore.com>
7234
7235 * windows-nat.c (wait_for_debug_event): Move to
7236 nat/windows-nat.c.
7237 * nat/windows-nat.h (wait_for_debug_event): Declare.
7238 * nat/windows-nat.c (wait_for_debug_event): Move from
7239 windows-nat.c. No longer static.
7240
7241 2020-04-08 Tom Tromey <tromey@adacore.com>
7242
7243 * windows-nat.c (get_windows_debug_event): Use
7244 fetch_pending_stop.
7245 * nat/windows-nat.h (fetch_pending_stop): Declare.
7246 * nat/windows-nat.c (fetch_pending_stop): New function.
7247
7248 2020-04-08 Tom Tromey <tromey@adacore.com>
7249
7250 * windows-nat.c (windows_continue): Use matching_pending_stop and
7251 continue_last_debug_event.
7252 * nat/windows-nat.h (matching_pending_stop)
7253 (continue_last_debug_event): Declare.
7254 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7255 (matching_pending_stop, continue_last_debug_event): New
7256 functions.
7257
7258 2020-04-08 Tom Tromey <tromey@adacore.com>
7259
7260 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7261 (handle_exception_result): Move to nat/windows-nat.h.
7262 (DEBUG_EXCEPTION_SIMPLE): Remove.
7263 (windows_nat::handle_ms_vc_exception): New function.
7264 (handle_exception): Move to nat/windows-nat.c.
7265 (get_windows_debug_event): Update.
7266 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7267 nat/windows-nat.c.
7268 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7269 (handle_exception_result): Move from windows-nat.c.
7270 (handle_exception): Declare.
7271 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7272 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7273 windows-nat.c.
7274
7275 2020-04-08 Tom Tromey <tromey@adacore.com>
7276
7277 * windows-nat.c (exception_count, event_count): Remove.
7278 (handle_exception, get_windows_debug_event)
7279 (do_initial_windows_stuff): Update.
7280
7281 2020-04-08 Tom Tromey <tromey@adacore.com>
7282
7283 * windows-nat.c (windows_nat::handle_load_dll)
7284 (windows_nat::handle_unload_dll): Rename. No longer static.
7285 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7286 Declare.
7287
7288 2020-04-08 Tom Tromey <tromey@adacore.com>
7289
7290 * complaints.h (stop_whining): Declare at top-level.
7291 (complaint): Don't declare stop_whining.
7292
7293 2020-04-08 Tom Tromey <tromey@adacore.com>
7294
7295 * windows-nat.c (windows_nat::handle_output_debug_string):
7296 Rename. No longer static.
7297 * nat/windows-nat.h (handle_output_debug_string): Declare.
7298
7299 2020-04-08 Tom Tromey <tromey@adacore.com>
7300
7301 * windows-nat.c (current_process_handle, current_process_id)
7302 (main_thread_id, last_sig, current_event, last_wait_event)
7303 (current_windows_thread, desired_stop_thread_id, pending_stops)
7304 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7305 (display_selectors, fake_create_process)
7306 (get_windows_debug_event): Update.
7307 * nat/windows-nat.h (current_process_handle, current_process_id)
7308 (main_thread_id, last_sig, current_event, last_wait_event)
7309 (current_windows_thread, desired_stop_thread_id, pending_stops)
7310 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7311 * nat/windows-nat.c (current_process_handle, current_process_id)
7312 (main_thread_id, last_sig, current_event, last_wait_event)
7313 (current_windows_thread, desired_stop_thread_id, pending_stops)
7314 (siginfo_er): New globals. Move from windows-nat.c.
7315
7316 2020-04-08 Tom Tromey <tromey@adacore.com>
7317
7318 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7319 (handle_load_dll): Update.
7320 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7321
7322 2020-04-08 Tom Tromey <tromey@adacore.com>
7323
7324 * windows-nat.c (enum thread_disposition_type): Move to
7325 nat/windows-nat.h.
7326 (windows_nat::thread_rec): Rename from thread_rec. No longer
7327 static.
7328 (windows_add_thread, windows_nat_target::fetch_registers)
7329 (windows_nat_target::store_registers, handle_exception)
7330 (windows_nat_target::resume, get_windows_debug_event)
7331 (windows_nat_target::get_tib_address)
7332 (windows_nat_target::thread_name)
7333 (windows_nat_target::thread_alive): Update.
7334 * nat/windows-nat.h (enum thread_disposition_type): Move from
7335 windows-nat.c.
7336 (thread_rec): Declare.
7337
7338 2020-04-08 Tom Tromey <tromey@adacore.com>
7339
7340 * windows-nat.c: Add "using namespace".
7341 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7342 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7343
7344 2020-04-08 Tom Tromey <tromey@adacore.com>
7345
7346 * nat/windows-nat.h (struct windows_thread_info): Declare
7347 destructor.
7348 * nat/windows-nat.c (~windows_thread_info): New.
7349
7350 2020-04-08 Tom Tromey <tromey@adacore.com>
7351
7352 PR gdb/22992
7353 * windows-nat.c (current_event): Update comment.
7354 (last_wait_event, desired_stop_thread_id): New globals.
7355 (struct pending_stop): New.
7356 (pending_stops): New global.
7357 (windows_nat_target) <stopped_by_sw_breakpoint>
7358 <supports_stopped_by_sw_breakpoint>: New methods.
7359 (windows_fetch_one_register): Add assertions. Adjust PC.
7360 (windows_continue): Handle pending stops. Suspend other threads
7361 when stepping. Use last_wait_event
7362 (wait_for_debug_event): New function.
7363 (get_windows_debug_event): Use wait_for_debug_event. Handle
7364 pending stops. Queue spurious stops.
7365 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7366 (windows_nat_target::kill): Use wait_for_debug_event.
7367 * nat/windows-nat.h (struct windows_thread_info)
7368 <stopped_at_software_breakpoint>: New field.
7369 * nat/windows-nat.c (windows_thread_info::resume): Clear
7370 stopped_at_software_breakpoint.
7371
7372 2020-04-08 Tom Tromey <tromey@adacore.com>
7373
7374 * windows-nat.c (enum thread_disposition_type): New.
7375 (thread_rec): Replace "get_context" parameter with "disposition";
7376 change type.
7377 (windows_add_thread, windows_nat_target::fetch_registers)
7378 (windows_nat_target::store_registers, handle_exception)
7379 (windows_nat_target::resume, get_windows_debug_event)
7380 (windows_nat_target::get_tib_address)
7381 (windows_nat_target::thread_name)
7382 (windows_nat_target::thread_alive): Update.
7383
7384 2020-04-08 Tom Tromey <tromey@adacore.com>
7385
7386 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7387 (windows_continue): Use windows_continue::resume.
7388 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7389 resume>: Declare new methods.
7390 * nat/windows-nat.c: New file.
7391 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7392
7393 2020-04-08 Tom Tromey <tromey@adacore.com>
7394
7395 * windows-nat.c (windows_add_thread, windows_delete_thread)
7396 (windows_nat_target::fetch_registers)
7397 (windows_nat_target::store_registers, fake_create_process)
7398 (windows_nat_target::resume, windows_nat_target::resume)
7399 (get_windows_debug_event, windows_nat_target::wait)
7400 (windows_nat_target::pid_to_str)
7401 (windows_nat_target::get_tib_address)
7402 (windows_nat_target::get_ada_task_ptid)
7403 (windows_nat_target::thread_name)
7404 (windows_nat_target::thread_alive): Use lwp, not tid.
7405
7406 2020-04-08 Tom Tromey <tromey@adacore.com>
7407
7408 * windows-nat.c (handle_exception)
7409 (windows_nat_target::thread_name): Update.
7410 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7411 <name>: Now unique_xmalloc_ptr.
7412
7413 2020-04-08 Tom Tromey <tromey@adacore.com>
7414
7415 * windows-nat.c (thread_rec)
7416 (windows_nat_target::fetch_registers): Update.
7417 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7418 Update comment.
7419 <debug_registers_changed, reload_context>: Now bool.
7420
7421 2020-04-08 Tom Tromey <tromey@adacore.com>
7422
7423 * windows-nat.c (windows_add_thread): Use new.
7424 (windows_init_thread_list, windows_delete_thread): Use delete.
7425 (get_windows_debug_event): Update.
7426 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7427 destructor, and initializers.
7428
7429 2020-04-08 Tom Tromey <tromey@adacore.com>
7430
7431 * windows-nat.c (struct windows_thread_info): Remove.
7432 * nat/windows-nat.h: New file.
7433
7434 2020-04-08 Tom Tromey <tromey@adacore.com>
7435
7436 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7437 (thread_rec, windows_add_thread, windows_delete_thread)
7438 (windows_continue): Update.
7439
7440 2020-04-08 Tom Tromey <tromey@adacore.com>
7441
7442 * windows-nat.c (struct windows_thread_info): Remove typedef.
7443 (thread_head): Remove.
7444 (thread_list): New global.
7445 (thread_rec, windows_add_thread, windows_init_thread_list)
7446 (windows_delete_thread, windows_continue): Update.
7447
7448 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7449
7450 * windows-tdep.h (windows_init_abi): Add comment.
7451 (cygwin_init_abi): New declaration.
7452 * windows-tdep.c: Split signal enumeration in two, one for
7453 Windows and one for Cygwin.
7454 (windows_gdb_signal_to_target): Only deal with signal of the
7455 Windows OS ABI.
7456 (cygwin_gdb_signal_to_target): New function.
7457 (windows_init_abi): Rename to windows_init_abi_common, don't set
7458 gdb_signal_to_target gdbarch method. Add new new function with
7459 this name.
7460 (cygwin_init_abi): New function.
7461 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7462 comment. Don't call windows_init_abi.
7463 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7464 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7465 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7466 i386_windows_init_abi_common, don't call windows_init_abi. Add
7467 a new function of this name.
7468 (i386_cygwin_init_abi): New function.
7469 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7470 OS ABI Cygwin.
7471
7472 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7473
7474 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7475 parameter.c.
7476 (dwarf2_read_gdb_index): Update.
7477
7478 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7479
7480 * nbsd-tdep.c: Include "objfiles.h".
7481 (nbsd_skip_solib_resolver): New.
7482 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7483
7484 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7485
7486 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7487 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7488 with DW_LLE_base_addressx are being emitted in DWARFv5.
7489 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7490 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7491 unsigned integer.
7492
7493 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7494
7495 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7496 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7497 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7498 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7499 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7500 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7501 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7502
7503
7504 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7505
7506 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7507 (read_loclist_index): New function definition.
7508 (lookup_loclist_base): New function definition.
7509 (read_loclist_header): New function definition.
7510 (dwarf2_cu): Add loclist_base and loclist_header field.
7511 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7512 (read_full_die_1): Read the value of DW_AT_loclists_base.
7513 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7514 (read_attribute_value): Handle DW_FORM_loclistx.
7515 (skip_one_die): Handle DW_FORM_loclistx.
7516 (loclist_header): New structure declaration.
7517 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7518
7519 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7520
7521 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7522 constructor. Remove `addr` parameter from other constructor and
7523 add `per_cu` parameter.
7524 * dwarf2/read.c (create_partial_symtab): Update.
7525
7526 2020-04-07 Tom de Vries <tdevries@suse.de>
7527
7528 PR symtab/25796
7529 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7530 (partial_die_info::fixup): Inherit has_const_value.
7531
7532 2020-04-07 Tom de Vries <tdevries@suse.de>
7533
7534 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7535 symbols without address.
7536
7537 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7538
7539 * nbsd-nat.h (struct thread_info): Add forward declaration.
7540 (nbsd_nat_target::thread_alive): Add.
7541 (nbsd_nat_target::thread_name): Likewise.
7542 (nbsd_nat_target::update_thread_list): Likewise.
7543 (update_thread_list::post_attach): Likewise.
7544 (post_attach::pid_to_str): Likewise.
7545 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7546 (nbsd_thread_lister): Add.
7547 (nbsd_nat_target::thread_alive): Likewise.
7548 (nbsd_nat_target::thread_name): Likewise.
7549 (nbsd_add_threads): Likewise.
7550 (update_thread_list::post_attach): Likewise.
7551 (nbsd_nat_target::update_thread_list): Likewise.
7552 (post_attach::pid_to_str): Likewise.
7553
7554 2020-04-06 Tom Tromey <tromey@adacore.com>
7555
7556 * ada-valprint.c (print_variant_part): Extract the variant field.
7557 (print_field_values): Use the field as the outer value when
7558 recursing.
7559
7560 2020-04-06 Tom Tromey <tromey@adacore.com>
7561
7562 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7563 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7564 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7565 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7566 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7567
7568 2020-04-06 Tom Tromey <tromey@adacore.com>
7569
7570 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7571 TYPE_CODE_ERROR.
7572
7573 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7574
7575 * nbsd-tdep.c: Include "gdbarch.h".
7576 Define enum with NetBSD signal numbers.
7577 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7578 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7579 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7580 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7581 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7582 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7583 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7584 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7585 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7586 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7587 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7588 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7589
7590 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7591
7592 PR gdb/25325
7593 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7594
7595 2020-04-03 Tom Tromey <tromey@adacore.com>
7596
7597 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7598 Read constant block.
7599
7600 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7601
7602 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7603 (gdb_bfd_get_full_section_contents): New declaration.
7604 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7605 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7606 gdb_bfd_get_full_section_contents.
7607
7608 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7609
7610 * exec.c (build_section_table): Replace internal_error with
7611 gdb_assert.
7612 (section_table_xfer_memory_partial): Likewise.
7613 * mdebugread.c (parse_partial_symbols): Likewise.
7614 * psymtab.c (lookup_partial_symbol): Likewise.
7615 * utils.c (wrap_here): Likewise.
7616
7617 2020-04-02 Tom Tromey <tromey@adacore.com>
7618
7619 * f-lang.c (build_fortran_types): Use arch_type to initialize
7620 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7621
7622 2020-04-02 Tom Tromey <tromey@adacore.com>
7623
7624 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7625 of attributes.
7626
7627 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7628 Bernd Edlinger <bernd.edlinger@hotmail.de>
7629 Tom Tromey <tromey@adacore.com>
7630
7631 * buildsym.c (buildsym_compunit::record_line): Remove
7632 deduplication code.
7633
7634 2020-04-02 Tom de Vries <tdevries@suse.de>
7635
7636 PR ada/24671
7637 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7638
7639 2020-04-02 Tom de Vries <tdevries@suse.de>
7640
7641 * dwarf2/read.c (dwarf2_gdb_index_functions,
7642 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7643 NULL.
7644 * psymtab.c (psym_lookup_global_symbol_language): New function.
7645 (psym_functions): Init psym_lookup_global_symbol_language with
7646 psym_lookup_global_symbol_language.
7647 * symfile-debug.c (debug_sym_quick_functions): Init
7648 lookup_global_symbol_language with NULL.
7649 * symfile.c (set_initial_language): Remove fixme comment.
7650 * symfile.h (struct quick_symbol_functions): Add
7651 lookup_global_symbol_language.
7652 * symtab.c (find_quick_global_symbol_language): New function.
7653 (find_main_name): Use find_quick_global_symbol_language.
7654
7655 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7656
7657 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7658
7659 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7660
7661 * buildsym.c (record_line): Fix undefined behavior and preserve
7662 lines at eof.
7663
7664 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7665
7666 * buildsym.c (record_line): Fix the resizing condition.
7667
7668 2020-04-01 Tom Tromey <tom@tromey.com>
7669
7670 * value.h (value_literal_complex): Add comment.
7671 * valops.c (value_literal_complex): Refer to value.h.
7672
7673 2020-04-01 Tom Tromey <tom@tromey.com>
7674
7675 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7676 (scalar_type): New rule, from typebase.
7677 (typebase): Use scalar_type. Recognize complex types.
7678 (field_name): Handle FLOAT_KEYWORD.
7679 (ident_tokens): Add _Complex and __complex__.
7680
7681 2020-04-01 Tom Tromey <tom@tromey.com>
7682
7683 PR exp/25299:
7684 * valarith.c (promotion_type, complex_binop): New functions.
7685 (scalar_binop): Handle complex numbers. Use promotion_type.
7686 (value_pos, value_neg, value_complement): Handle complex numbers.
7687
7688 2020-04-01 Tom Tromey <tom@tromey.com>
7689
7690 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7691 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7692 (parse_number): Handle complex numbers.
7693
7694 2020-04-01 Tom Tromey <tom@tromey.com>
7695
7696 * c-valprint.c (c_decorations): Change complex suffix to "i".
7697
7698 2020-04-01 Tom Tromey <tom@tromey.com>
7699
7700 * valprint.c (generic_value_print_complex): Use accessors.
7701 * value.h (value_real_part, value_imaginary_part): Declare.
7702 * valops.c (value_real_part, value_imaginary_part): New
7703 functions.
7704 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7705
7706 2020-04-01 Tom Tromey <tom@tromey.com>
7707
7708 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7709 (read_range_type): Update.
7710 * mdebugread.c (basic_type): Update.
7711 * go-lang.c (build_go_types): Use init_complex_type.
7712 * gdbtypes.h (struct main_type) <complex_type>: New member.
7713 (init_complex_type): Update.
7714 (arch_complex_type): Don't declare.
7715 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7716 Make name if none given. Use alloc_type_copy. Look for cached
7717 complex type.
7718 (arch_complex_type): Remove.
7719 (gdbtypes_post_init): Use init_complex_type.
7720 * f-lang.c (build_fortran_types): Use init_complex_type.
7721 * dwarf2/read.c (read_base_type): Update.
7722 * d-lang.c (build_d_types): Use init_complex_type.
7723 * ctfread.c (read_base_type): Update.
7724
7725 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7726
7727 * infrun.c (stop_all_threads): Update assertion, plus when
7728 stopping threads, take into account that we might be trying
7729 to stop an all-stop target.
7730 (stop_waiting): Call 'stop_all_threads' if there exists a
7731 non-stop target.
7732
7733 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7734
7735 * target.h (exists_non_stop_target): New function declaration.
7736 * target.c (exists_non_stop_target): New function.
7737
7738 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7739
7740 PR gdb/24789
7741 * eval.c (is_integral_or_integral_reference): New function.
7742 (evaluate_subexp_standard): Allow integer references in
7743 pointer arithmetic.
7744
7745 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7746
7747 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7748 check for no ptid in the stop reply when the target is non-stop.
7749
7750 2020-04-01 Tom Tromey <tromey@adacore.com>
7751
7752 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7753 "name" parameter to rvalue reference. Initialize m_name_holder.
7754 <lookup_name_info>: New overloads.
7755 <name>: Return gdb::string_view.
7756 <c_str>: New method.
7757 <make_ignore_params>: Update.
7758 <search_name_hash>: Update.
7759 <language_lookup_name>: Return const char *.
7760 <m_name>: Change type.
7761 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7762 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7763 (lookup_name_info::match_any): Update.
7764 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7765 Update.
7766 * minsyms.c (linkage_name_str): Update.
7767 * language.c (default_symbol_name_matcher): Update.
7768 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7769 Update.
7770 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7771 (ada_lookup_name_info::ada_lookup_name_info): Update.
7772 (literal_symbol_name_matcher): Update.
7773
7774 2020-04-01 Tom Tromey <tromey@adacore.com>
7775
7776 * psymtab.c (psymtab_search_name): Remove function.
7777 (psym_lookup_symbol): Create search name and lookup name here.
7778 (lookup_partial_symbol): Remove "name" parameter; add
7779 lookup_name.
7780 (psym_expand_symtabs_for_function): Update.
7781
7782 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7783
7784 PR tui/25597:
7785 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7786
7787 2020-03-31 Tom Tromey <tromey@adacore.com>
7788
7789 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7790 memcpy.
7791
7792 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7793
7794 * features/riscv/32bit-csr.xml: Regenerated.
7795 * features/riscv/64bit-csr.xml: Regenerated.
7796
7797 2020-03-30 Tom Tromey <tromey@adacore.com>
7798
7799 * ada-valprint.c (print_variant_part): Update.
7800 * ada-lang.h (ada_which_variant_applies): Update.
7801 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7802 outer_valaddr parameters; replace with "outer" value parameter.
7803 (to_fixed_variant_branch_type): Update.
7804
7805 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7806
7807 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7808 <list>. Remove inclusion of observable.h.
7809 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7810 (struct arch_lwp_info): New struct.
7811 (class ppc_linux_dreg_interface): New class.
7812 (struct ppc_linux_process_info): New struct.
7813 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7814 <low_new_clone, low_forget_process, low_prepare_to_resume>
7815 <copy_thread_dreg_state, mark_thread_stale>
7816 <mark_debug_registers_changed, register_hw_breakpoint>
7817 <clear_hw_breakpoint, register_wp, clear_wp>
7818 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7819 <num_memory_accesses, get_trigger_type>
7820 <create_watchpoint_request, hwdebug_point_cmp>
7821 <init_arch_lwp_info, get_arch_lwp_info>
7822 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7823 methods.
7824 <struct ptid_hash>: New inner struct.
7825 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7826 members.
7827 (saved_dabr_value, hwdebug_info, max_slots_number)
7828 (struct hw_break_tuple, struct thread_points, ppc_threads)
7829 (have_ptrace_hwdebug_interface)
7830 (hwdebug_find_thread_points_by_tid)
7831 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7832 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7833 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7834 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7835 use m_dreg_interface.
7836 (hwdebug_point_cmp): Change to...
7837 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7838 reference arguments instead of pointers.
7839 (ppc_linux_nat_target::ranged_break_num_registers): Use
7840 m_dreg_interface.
7841 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7842 m_dreg_interface. Call register_hw_breakpoint.
7843 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7844 m_dreg_interface. Call clear_hw_breakpoint.
7845 (get_trigger_type): Change to...
7846 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7847 comment.
7848 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7849 use m_dreg_interface. Call register_hw_breakpoint.
7850 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7851 use m_dreg_interface. Call clear_hw_breakpoint.
7852 (can_use_watchpoint_cond_accel): Change to...
7853 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7854 method. Update comment, use m_dreg_interface and
7855 m_process_info.
7856 (calculate_dvc): Change to...
7857 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7858 m_dreg_interface.
7859 (num_memory_accesses): Change to...
7860 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7861 (check_condition): Change to...
7862 (ppc_linux_nat_target::check_condition): ...this method.
7863 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7864 comment, use m_dreg_interface.
7865 (create_watchpoint_request): Change to...
7866 (ppc_linux_nat_target::create_watchpoint_request): ...this
7867 method. Use m_dreg_interface.
7868 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7869 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7870 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7871 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7872 (ppc_linux_nat_target::low_forget_process)
7873 (ppc_linux_nat_target::low_new_fork)
7874 (ppc_linux_nat_target::low_new_clone)
7875 (ppc_linux_nat_target::low_delete_thread)
7876 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7877 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7878 only call mark_thread_stale.
7879 (ppc_linux_thread_exit): Remove.
7880 (ppc_linux_nat_target::stopped_data_address): Change to...
7881 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7882 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7883 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7884 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7885 comment. Call low_stopped_data_address.
7886 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7887 m_dreg_interface.
7888 (ppc_linux_nat_target::masked_watch_num_registers): Use
7889 m_dreg_interface.
7890 (ppc_linux_nat_target::copy_thread_dreg_state)
7891 (ppc_linux_nat_target::mark_thread_stale)
7892 (ppc_linux_nat_target::mark_debug_registers_changed)
7893 (ppc_linux_nat_target::register_hw_breakpoint)
7894 (ppc_linux_nat_target::clear_hw_breakpoint)
7895 (ppc_linux_nat_target::register_wp)
7896 (ppc_linux_nat_target::clear_wp)
7897 (ppc_linux_nat_target::init_arch_lwp_info)
7898 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7899 (_initialize_ppc_linux_nat): Remove observer callback.
7900
7901 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7902
7903 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7904 (ppc_linux_nat_target::auxv_parse)
7905 (ppc_linux_nat_target::read_description)
7906 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7907 Move up.
7908
7909 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7910
7911 * linux-nat.h (low_new_clone): New method.
7912 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7913
7914 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7915
7916 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7917 (dbx_expand_psymtab): ... this.
7918 (start_psymtab): Update.
7919 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7920 (mdebug_expand_psymtab): ... this.
7921 (parse_partial_symbols): Update.
7922 (new_psymtab): Update.
7923 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7924 (xcoff_expand_psymtab): ... this.
7925 (xcoff_start_psymtab): Update.
7926
7927 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7928
7929 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7930 <expand_dependencies>: ... this.
7931 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7932 (partial_symtab::expand_dependencies): ... this.
7933 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7934 Update.
7935 (dwarf2_psymtab::expand_psymtab): Update.
7936 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7937 * mdebugread.c (psymtab_to_symtab_1): Update.
7938 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7939
7940 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7941
7942 * psympriv.h (discard_psymtab): Remove.
7943 * dbxread.c (dbx_end_psymtab): Update.
7944 * xcoffread.c (xcoff_end_psymtab): Update.
7945
7946 2020-03-28 Tom Tromey <tom@tromey.com>
7947
7948 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7949 comment.
7950
7951 2020-03-28 Tom Tromey <tom@tromey.com>
7952
7953 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7954
7955 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7956
7957 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7958
7959 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7960
7961 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7962
7963 2020-03-26 Tom Tromey <tom@tromey.com>
7964
7965 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7966 (mark_common_block_symbol_computed, read_tag_string_type)
7967 (attr_to_dynamic_prop, read_subrange_type): Update.
7968 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7969 to be methods on struct attribute.
7970 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7971 (read_call_site_scope, partial_die_info::read)
7972 (partial_die_info::read, lookup_die_type, follow_die_ref):
7973 Update.
7974 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7975 from dwarf2_get_ref_die_offset.
7976 (attribute::constant_value): New method, from
7977 dwarf2_get_attr_constant_value.
7978 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7979 Declare method.
7980 <constant_value>: New method.
7981
7982 2020-03-26 Tom Tromey <tom@tromey.com>
7983
7984 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7985 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7986 (dwarf_type_encoding_name): Move to stringify.c.
7987 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7988 * dwarf2/stringify.c: New file.
7989 * dwarf2/stringify.h: New file.
7990
7991 2020-03-26 Tom Tromey <tom@tromey.com>
7992
7993 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7994 Rewrite.
7995
7996 2020-03-26 Tom Tromey <tom@tromey.com>
7997
7998 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7999 methods.
8000 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8001 (lookup_ranges_base): Likewise.
8002 (read_cutu_die_from_dwo, read_full_die_1): Update.
8003
8004 2020-03-26 Tom Tromey <tom@tromey.com>
8005
8006 * dwarf2/read.c (read_import_statement, read_file_scope)
8007 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8008 (read_lexical_block_scope, read_call_site_scope)
8009 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8010 (handle_struct_member_die, process_structure_scope)
8011 (update_enumeration_type_from_children)
8012 (process_enumeration_scope, read_array_type, read_common_block)
8013 (read_namespace, read_module, read_subroutine_type): Update.
8014 (sibling_die): Remove.
8015
8016 2020-03-26 Tom Tromey <tom@tromey.com>
8017
8018 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8019 (build_type_psymtabs_reader, read_structure_type)
8020 (read_enumeration_type, read_full_die_1): Update.
8021 (dwarf2_attr_no_follow): Move to die.h.
8022 * dwarf2/die.h (struct die_info) <attr>: New method.
8023
8024 2020-03-26 Tom Tromey <tom@tromey.com>
8025
8026 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8027 <base_address>: Now an optional.
8028 (dwarf2_find_base_address, dwarf2_rnglists_process)
8029 (dwarf2_ranges_process, fill_in_loclist_baton)
8030 (dwarf2_symbol_mark_computed): Update.
8031
8032 2020-03-26 Tom Tromey <tom@tromey.com>
8033
8034 * dwarf2/read.c (struct die_info): Move to die.h.
8035 * dwarf2/die.h: New file.
8036
8037 2020-03-26 Tom Tromey <tom@tromey.com>
8038
8039 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8040 * dwarf2/read.c
8041 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8042 Move to line-header.c.
8043 (read_checked_initial_length_and_offset, read_formatted_entries):
8044 Likewise.
8045 (dwarf_decode_line_header): Split into two.
8046 * dwarf2/line-header.c
8047 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8048 Move from read.c.
8049 (read_checked_initial_length_and_offset, read_formatted_entries):
8050 Likewise.
8051 (dwarf_decode_line_header): New function, split from read.c.
8052
8053 2020-03-26 Tom Tromey <tom@tromey.com>
8054
8055 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8056 Declare method.
8057 * dwarf2/read.c (read_attribute_value): Update.
8058 (dwarf2_per_objfile::read_line_string): Rename from
8059 read_indirect_line_string.
8060 (read_formatted_entries): Update.
8061
8062 2020-03-26 Tom Tromey <tom@tromey.com>
8063
8064 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8065 variable.
8066
8067 2020-03-26 Tom Tromey <tom@tromey.com>
8068
8069 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8070 const.
8071 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8072 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8073 parameter const.
8074
8075 2020-03-26 Tom Tromey <tom@tromey.com>
8076
8077 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8078 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8079 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8080 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8081
8082 2020-03-26 Tom Tromey <tom@tromey.com>
8083
8084 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8085 file_names_size, file_full_name, file_file_name>: Use const.
8086 <file_name_at, file_names>: Add const overload.
8087 * dwarf2/line-header.c (line_header::file_file_name)
8088 (line_header::file_full_name): Update.
8089
8090 2020-03-26 Tom Tromey <tom@tromey.com>
8091
8092 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8093 (macro_start_file, consume_improper_spaces)
8094 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8095 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8096 (dwarf_decode_macros): Move to macro.c.
8097 * dwarf2/macro.c: New file.
8098 * dwarf2/macro.h: New file.
8099 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8100
8101 2020-03-26 Tom Tromey <tom@tromey.com>
8102
8103 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8104 method.
8105 * dwarf2/section.c: New method. From
8106 read_indirect_string_at_offset_from.
8107 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8108 (read_indirect_string_at_offset_from): Move to section.c.
8109 (read_indirect_string_at_offset): Rewrite.
8110 (read_indirect_line_string_at_offset): Remove.
8111 (read_indirect_string, read_indirect_line_string)
8112 (dwarf_decode_macro_bytes): Update.
8113
8114 2020-03-26 Tom Tromey <tom@tromey.com>
8115
8116 * dwarf2/section.h (struct dwarf2_section_info)
8117 <overload_complaint>: Declare.
8118 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8119 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8120 Rename from dwarf2_section_buffer_overflow_complaint.
8121 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8122 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8123
8124 2020-03-26 Tom Tromey <tom@tromey.com>
8125
8126 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8127 Declare.
8128 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8129 Move from read.c.
8130 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8131 to section.c.
8132
8133 2020-03-26 Tom Tromey <tom@tromey.com>
8134
8135 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8136
8137 2020-03-26 Tom Tromey <tom@tromey.com>
8138
8139 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8140 "builder".
8141 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8142 parameter.
8143 (dwarf_decode_macros): Update.
8144
8145 2020-03-26 Tom Tromey <tom@tromey.com>
8146
8147 * dwarf2/read.c (read_attribute_value): Update.
8148 (read_indirect_string_from_dwz): Move to dwz.c; change into
8149 method.
8150 (dwarf_decode_macro_bytes): Update.
8151 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8152 * dwarf2/dwz.c: New file.
8153 * Makefile.in (COMMON_SFILES): Add dwz.c.
8154
8155 2020-03-26 Tom Tromey <tom@tromey.com>
8156
8157 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8158 * dwarf2/read.c: Add include.
8159 * dwarf2/index-write.c: Add include.
8160 * dwarf2/index-cache.c: Add include.
8161 * dwarf2/dwz.h: New file.
8162
8163 2020-03-25 Tom Tromey <tom@tromey.com>
8164
8165 * compile/compile-object-load.c (get_out_value_type): Mention
8166 correct symbol name in error message.
8167
8168 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8169
8170 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8171
8172 2020-03-25 Tom de Vries <tdevries@suse.de>
8173
8174 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8175 * symmisc.c (dump_symtab_1): Print user and includes fields.
8176 (maintenance_info_symtabs): Same.
8177
8178 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8179
8180 PR gdb/25534
8181 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8182 (riscv_regcache_cooked_write): New function.
8183 (riscv_push_dummy_call): Use new function.
8184 (riscv_return_value): Likewise.
8185
8186 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8187
8188 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8189 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8190 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8191 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8192 * infrun.c (follow_fork): Likewise.
8193 (follow_fork_inferior): Likewise.
8194 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8195 * linux-nat.h (class linux_nat_target): Likewise.
8196 * remote.c (class remote_target) <follow_fork>: Likewise.
8197 (remote_target::follow_fork): Likewise.
8198 * target-delegates.c: Re-generate.
8199 * target.c (default_follow_fork): Likewise.
8200 (target_follow_fork): Likewise.
8201 * target.h (struct target_ops) <follow_fork>: Likewise.
8202 (target_follow_fork): Likewise.
8203
8204 2020-03-24 Tom de Vries <tdevries@suse.de>
8205
8206 * psymtab.c (maintenance_info_psymtabs): Print user field.
8207
8208 2020-03-20 Tom Tromey <tromey@adacore.com>
8209
8210 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8211 const.
8212 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8213 const.
8214
8215 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8216
8217 * ptrace.m4: Don't check for ptrace declaration.
8218 * config.in: Re-generate.
8219 * configure: Re-generate.
8220 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8221 not defined.
8222
8223 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8224
8225 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8226 `PTRACE_TYPE_RET'.
8227 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8228 * sparc-nat.c (gdb_ptrace): Likewise.
8229 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8230
8231 2020-03-20 Tom Tromey <tromey@adacore.com>
8232
8233 * c-exp.y (lex_one_token): Fix assert.
8234
8235 2020-03-20 Tom Tromey <tromey@adacore.com>
8236
8237 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8238 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8239 strncpy call.
8240
8241 2020-03-20 Tom Tromey <tromey@adacore.com>
8242
8243 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8244
8245 2020-03-20 Tom Tromey <tromey@adacore.com>
8246
8247 * ada-valprint.c (print_variant_part): Remove parameters; switch
8248 to value-based API.
8249 (print_field_values): Likewise.
8250 (ada_val_print_struct_union): Likewise.
8251 (ada_value_print_1): Update.
8252
8253 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8254
8255 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8256 nbsd_nat_target instead of inf_ptrace_target.
8257 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8258 nbsd_nat_target.
8259
8260 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8261
8262 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8263 it to the ptrace call.
8264 * (store_registers): Likewise.
8265
8266 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8267
8268 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8269 it to the ptrace call.
8270 * (store_registers): Likewise.
8271
8272 2020-03-19 Luis Machado <luis.machado@linaro.org>
8273
8274 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8275 valid, fetch vg value from ptrace.
8276
8277 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8278 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8279 * inf-ptrace.c: Likewise.
8280 * (gdb_ptrace): Add.
8281 * (inf_ptrace_target::resume): Update.
8282 * (inf_ptrace_target::xfer_partial): Likewise.
8283 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8284 * (inf_ptrace_peek_poke): Update.
8285
8286 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8287
8288 * x86-bsd-nat.c (gdb_ptrace): New.
8289 * (x86bsd_dr_set): Add new argument `ptid'.
8290 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8291 x86bsd_dr_set_addr): Update.
8292
8293 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8294
8295 * remote.c (remote_target::process_stop_reply): Handle events for
8296 all threads differently.
8297
8298 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8299
8300 * completer.c (completion_tracker::remove_completion): Define new
8301 function.
8302 * completer.h (completion_tracker::remove_completion): Declare new
8303 function.
8304 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8305 when adding a C++ function symbol.
8306
8307 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8308
8309 * completer.c (completion_tracker::completion_hash_entry): Define
8310 new class.
8311 (advance_to_filename_complete_word_point): Call
8312 recompute_lowest_common_denominator.
8313 (completion_tracker::completion_tracker): Call discard_completions
8314 to setup the hash table.
8315 (completion_tracker::discard_completions): Allow for being called
8316 from the constructor, pass new equal function, and element deleter
8317 when constructing the hash table. Initialise new class member
8318 variables.
8319 (completion_tracker::maybe_add_completion): Remove use of
8320 m_entries_vec, and store more information into m_entries_hash.
8321 (completion_tracker::recompute_lcd_visitor): New function, most
8322 content taken from...
8323 (completion_tracker::recompute_lowest_common_denominator):
8324 ...here, this now just visits each item in the hash calling the
8325 above visitor.
8326 (completion_tracker::build_completion_result): Remove use of
8327 m_entries_vec, call recompute_lowest_common_denominator.
8328 * completer.h (completion_tracker::have_completions): Remove use
8329 of m_entries_vec.
8330 (completion_tracker::completion_hash_entry): Declare new class.
8331 (completion_tracker::recompute_lowest_common_denominator): Change
8332 function signature.
8333 (completion_tracker::recompute_lcd_visitor): Declare new function.
8334 (completion_tracker::m_entries_vec): Delete.
8335 (completion_tracker::m_entries_hash): Initialize to NULL.
8336 (completion_tracker::m_lowest_common_denominator_valid): New
8337 member variable.
8338 (completion_tracker::m_lowest_common_denominator_max_length): New
8339 member variable.
8340
8341 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8342
8343 * regformats/regdef.h: Put reg in gdb namespace.
8344
8345 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8346
8347 * i386-bsd-nat.c (gdb_ptrace): New.
8348 * (i386bsd_fetch_inferior_registers,
8349 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8350 * (i386bsd_fetch_inferior_registers,
8351 i386bsd_store_inferior_registers) Use gdb_ptrace.
8352
8353 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8354
8355 * amd64-bsd-nat.c (gdb_ptrace): New.
8356 * (amd64bsd_fetch_inferior_registers,
8357 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8358 * (amd64bsd_fetch_inferior_registers,
8359 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8360
8361 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8362
8363 * user-regs.c (user_reg::read): Rename to...
8364 (user_reg::xread): ...this.
8365 * (append_user_reg): Rename argument `read' to `xread'.
8366 * (user_reg_add_builtin): Likewise.
8367 * (user_reg_add): Likewise.
8368 * (value_of_user_reg): Likewise.
8369
8370 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8371
8372 * sparc-nat.c (gdb_ptrace): New.
8373 * sparc-nat.c (sparc_fetch_inferior_registers)
8374 (sparc_store_inferior_registers) Remove obsolete comment.
8375 * sparc-nat.c (sparc_fetch_inferior_registers)
8376 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8377 * sparc-nat.c (sparc_fetch_inferior_registers)
8378 (sparc_store_inferior_registers) Use gdb_ptrace.
8379
8380 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8381
8382 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8383 it to the ptrace call.
8384 * sh-nbsd-nat.c (store_registers): Likewise.
8385
8386 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8387
8388 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8389 nbsd_nat_target instead of inf_ptrace_target.
8390 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8391 nbsd_nat_target.
8392
8393 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8394
8395 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8396
8397 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8398
8399 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8400 <sys/sysctl.h>.
8401 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8402
8403 2020-03-17 Tom de Vries <tdevries@suse.de>
8404
8405 PR gdb/23710
8406 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8407 fields.
8408 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8409 fields.
8410 (process_imported_unit_die): Skip import of c++ CUs.
8411
8412 2020-03-16 Tom Tromey <tom@tromey.com>
8413
8414 * p-valprint.c (pascal_object_print_value): Initialize
8415 base_value.
8416
8417 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8418 Shahab Vahedi <shahab@synopsys.com>
8419
8420 * Makefile.in: Add arch/arc.o
8421 * configure.tgt: Likewise.
8422 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8423 (_initialize_arc_tdep): Don't initialize old target descriptions.
8424 (arc_read_description): New function to cache target descriptions.
8425 * arc-tdep.h (arc_read_description): Add proto type.
8426 * arch/arc.c: New file.
8427 * arch/arc.h: Likewise.
8428 * features/Makefile: Replace old target descriptions with new.
8429 * features/arc-arcompact.c: Remove.
8430 * features/arc-arcompact.xml: Likewise.
8431 * features/arc-v2.c: Likewise
8432 * features/arc-v2.xml: Likewise
8433 * features/arc/aux-arcompact.xml: New file.
8434 * features/arc/aux-v2.xml: Likewise.
8435 * features/arc/core-arcompact.xml: Likewise.
8436 * features/arc/core-v2.xml: Likewise.
8437 * features/arc/aux-arcompact.c: Generate.
8438 * features/arc/aux-v2.c: Likewise.
8439 * features/arc/core-arcompact.c: Likewise.
8440 * features/arc/core-v2.c: Likewise.
8441 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8442
8443 2020-03-16 Tom Tromey <tromey@adacore.com>
8444
8445 PR gdb/25663:
8446 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8447 putting value into bcache.
8448
8449 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8450
8451 PR gdb/21500
8452 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8453 to...
8454 (amd64_windows_init_abi_common): ... this. Don't set size of
8455 long type.
8456 (amd64_windows_init_abi): New function.
8457 (amd64_cygwin_init_abi): New function.
8458 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8459 the Cygwin OS ABI.
8460 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8461 comment.
8462
8463 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8464
8465 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8466 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8467 (pe_import_directory_entry): New struct type.
8468 (is_linked_with_cygwin_dll): New function.
8469 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8470 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8471 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8472
8473 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8474
8475 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8476 i386_cygwin_core_osabi_sniffer.
8477
8478 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8479
8480 * i386-cygwin-tdep.c: Rename to...
8481 * i386-windows-tdep.c: ... this.
8482 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8483 i386-windows-tdep.c.
8484 * configure.tgt: Likewise.
8485
8486 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8487
8488 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8489 * osabi.c (gdb_osabi_names): Add "Windows".
8490 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8491 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8492 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8493 i386_cygwin_osabi_sniffer.
8494 (_initialize_i386_cygwin_tdep): Register OS ABI
8495 GDB_OSABI_WINDOWS for i386.
8496 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8497 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8498 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8499 for x86-64.
8500 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8501 when the target matches '*-*-mingw*'.
8502
8503 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8504
8505 * defs.h (enum gdb_osabi): Move to...
8506 * osabi.h (enum gdb_osabi): ... here.
8507 * gdbarch.sh: Include osabi.h in gdbarch.h.
8508 * gdbarch.h: Re-generate.
8509
8510 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8511
8512 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8513 function.
8514 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8515
8516 2020-03-14 Tom Tromey <tom@tromey.com>
8517
8518 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8519 for C++.
8520 (c_type_print_modifier): Likewise. Add "language" parameter.
8521 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8522 (c_type_print_base_1): Update.
8523 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8524 constants.
8525 * type-stack.c (type_stack::insert): Handle tp_atomic and
8526 tp_restrict.
8527 (type_stack::follow_type_instance_flags): Likewise.
8528 (type_stack::follow_types): Likewise. Merge type-following code.
8529 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8530 (space_identifier, cv_with_space_id)
8531 (const_or_volatile_or_space_identifier_noopt)
8532 (const_or_volatile_or_space_identifier): Remove.
8533 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8534 rules.
8535 (ptr_operator, typebase): Update.
8536 (enum token_flag) <FLAG_C>: New constant.
8537 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8538 "_Atomic".
8539 (lex_one_token): Handle FLAG_C.
8540
8541 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8542
8543 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8544 it to the ptrace call.
8545 * m68k-bsd-nat.c (store_registers): Likewise.
8546
8547 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8548
8549 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8550 gdb_byte *.
8551 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8552 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8553 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8554
8555 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8556
8557 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8558 nbsd_nat_target instead of inf_ptrace_target.
8559 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8560 nbsd_nat_target.
8561
8562 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8563
8564 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8565 register_t.
8566
8567 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8568
8569 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8570 it to the ptrace call.
8571 * alpha-bsd-nat.c (store_registers): Likewise.
8572
8573 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8574
8575 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8576 includes.
8577 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8578 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8579 fill_fpregset): Likewise.
8580
8581 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8582
8583 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8584 nbsd_nat_target instead of inf_ptrace_target.
8585 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8586 nbsd_nat_target.
8587
8588 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8589
8590 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8591 register_t.
8592
8593 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8594
8595 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8596 it to the ptrace call.
8597 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8598 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8599 * arm-nbsd-nat.c (store_register): Likewise.
8600 * arm-nbsd-nat.c (store_regs): Likewise.
8601 * arm-nbsd-nat.c (store_fp_register): Likewise.
8602 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8603
8604 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8605
8606 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8607 nbsd_nat_target instead of inf_ptrace_target.
8608 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8609 nbsd_nat_target.
8610
8611 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8612
8613 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8614 it to the ptrace call.
8615 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8616
8617 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8618
8619 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8620 it to the ptrace call.
8621 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8622
8623 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8624
8625 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8626 gdb_byte *.
8627 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8628
8629 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8630
8631 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8632 instead of inf_ptrace_target.
8633 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8634 nbsd_nat_target.
8635
8636 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8637
8638 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8639 register_t.
8640
8641 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8642
8643 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8644 register_t.
8645
8646 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8647
8648 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8649 register_t.
8650
8651 2020-03-13 Tom Tromey <tom@tromey.com>
8652
8653 * value.h (val_print): Don't declare.
8654 * valprint.h (val_print_array_elements)
8655 (val_print_scalar_formatted, generic_val_print): Don't declare.
8656 * valprint.c (generic_val_print_array): Take a struct value.
8657 (generic_val_print_ptr, generic_val_print_memberptr)
8658 (generic_val_print_bool, generic_val_print_int)
8659 (generic_val_print_char, generic_val_print_complex)
8660 (generic_val_print): Remove.
8661 (generic_value_print): Update.
8662 (do_val_print): Remove unused parameters. Don't call
8663 la_val_print.
8664 (val_print): Remove.
8665 (common_val_print): Update. Don't call value_check_printable.
8666 (val_print_scalar_formatted, val_print_array_elements): Remove.
8667 * rust-lang.c (rust_val_print): Remove.
8668 (rust_language_defn): Update.
8669 * p-valprint.c (pascal_val_print): Remove.
8670 (pascal_value_print_inner): Update.
8671 (pascal_object_print_val_fields, pascal_object_print_val):
8672 Remove.
8673 (pascal_object_print_static_field): Update.
8674 * p-lang.h (pascal_val_print): Don't declare.
8675 * p-lang.c (pascal_language_defn): Update.
8676 * opencl-lang.c (opencl_language_defn): Update.
8677 * objc-lang.c (objc_language_defn): Update.
8678 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8679 * m2-lang.h (m2_val_print): Don't declare.
8680 * m2-lang.c (m2_language_defn): Update.
8681 * language.h (struct language_defn) <la_val_print>: Remove.
8682 * language.c (unk_lang_value_print_inner): Rename. Change
8683 argument types.
8684 (unknown_language_defn, auto_language_defn): Update.
8685 * go-valprint.c (go_val_print): Remove.
8686 * go-lang.h (go_val_print): Don't declare.
8687 * go-lang.c (go_language_defn): Update.
8688 * f-valprint.c (f_val_print): Remove.
8689 * f-lang.h (f_value_print): Don't declare.
8690 * f-lang.c (f_language_defn): Update.
8691 * d-valprint.c (d_val_print): Remove.
8692 * d-lang.h (d_value_print): Don't declare.
8693 * d-lang.c (d_language_defn): Update.
8694 * cp-valprint.c (cp_print_value_fields)
8695 (cp_print_value_fields_rtti, cp_print_value): Remove.
8696 (cp_print_static_field): Update.
8697 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8698 (c_val_print_struct, c_val_print_union, c_val_print_int)
8699 (c_val_print_memberptr, c_val_print): Remove.
8700 * c-lang.h (c_val_print_array, cp_print_value_fields)
8701 (cp_print_value_fields_rtti): Don't declare.
8702 * c-lang.c (c_language_defn, cplus_language_defn)
8703 (asm_language_defn, minimal_language_defn): Update.
8704 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8705 (ada_val_print_enum): Take a struct value.
8706 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8707 (ada_val_print): Remove.
8708 (ada_value_print_1): Update.
8709 (printable_val_type): Remove.
8710 * ada-lang.h (ada_val_print): Don't declare.
8711 * ada-lang.c (ada_language_defn): Update.
8712
8713 2020-03-13 Tom Tromey <tom@tromey.com>
8714
8715 * valprint.c (do_val_print): Update.
8716 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8717 a struct value.
8718 (value_to_value_object_no_release): Declare.
8719 * python/py-value.c (value_to_value_object_no_release): New
8720 function.
8721 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8722 struct value.
8723 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8724 function.
8725 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8726 a struct value.
8727 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8728 Declare.
8729 (gdbscm_apply_val_pretty_printer): Take a struct value.
8730 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8731 value.
8732 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8733 value.
8734 * extension-priv.h (struct extension_language_ops)
8735 <apply_val_pretty_printer>: Take a struct value.
8736 * cp-valprint.c (cp_print_value): Create a struct value.
8737 (cp_print_value): Update.
8738
8739 2020-03-13 Tom Tromey <tom@tromey.com>
8740
8741 * ada-valprint.c (print_field_values): Call common_val_print.
8742
8743 2020-03-13 Tom Tromey <tom@tromey.com>
8744
8745 * ada-valprint.c (val_print_packed_array_elements): Remove
8746 bitoffset and val parameters. Call common_val_print.
8747 (ada_val_print_string): Remove offset, address, and original_value
8748 parameters.
8749 (ada_val_print_array): Update.
8750 (ada_value_print_array): New function.
8751 (ada_value_print_1): Call it.
8752
8753 2020-03-13 Tom Tromey <tom@tromey.com>
8754
8755 * ada-valprint.c (ada_value_print): Use common_val_print.
8756
8757 2020-03-13 Tom Tromey <tom@tromey.com>
8758
8759 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8760
8761 2020-03-13 Tom Tromey <tom@tromey.com>
8762
8763 * ada-valprint.c (ada_value_print_num): New function.
8764 (ada_value_print_1): Use it.
8765
8766 2020-03-13 Tom Tromey <tom@tromey.com>
8767
8768 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8769
8770 2020-03-13 Tom Tromey <tom@tromey.com>
8771
8772 * ada-valprint.c (ada_value_print_ptr): New function.
8773 (ada_value_print_1): Use it.
8774
8775 2020-03-13 Tom Tromey <tom@tromey.com>
8776
8777 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8778 call common_val_print.
8779 (ada_val_print_1): Update.
8780 (ada_value_print_1): New function.
8781 (ada_value_print_inner): Rewrite.
8782
8783 2020-03-13 Tom Tromey <tom@tromey.com>
8784
8785 * cp-valprint.c (cp_print_value_fields): Update.
8786 (cp_print_value): New function.
8787
8788 2020-03-13 Tom Tromey <tom@tromey.com>
8789
8790 * m2-valprint.c (m2_value_print_inner): Use
8791 cp_print_value_fields.
8792 * cp-valprint.c (cp_print_value_fields): New function.
8793 * c-valprint.c (c_value_print_struct): New function.
8794 (c_value_print_inner): Use c_value_print_struct.
8795 * c-lang.h (cp_print_value_fields): Declare.
8796
8797 2020-03-13 Tom Tromey <tom@tromey.com>
8798
8799 * c-valprint.c (c_value_print_array): New function.
8800 (c_value_print_inner): Use it.
8801
8802 2020-03-13 Tom Tromey <tom@tromey.com>
8803
8804 * c-valprint.c (c_value_print_memberptr): New function.
8805 (c_value_print_inner): Use it.
8806
8807 2020-03-13 Tom Tromey <tom@tromey.com>
8808
8809 * c-valprint.c (c_value_print_int): New function.
8810 (c_value_print_inner): Use it.
8811
8812 2020-03-13 Tom Tromey <tom@tromey.com>
8813
8814 * c-valprint.c (c_value_print_ptr): New function.
8815 (c_value_print_inner): Use it.
8816
8817 2020-03-13 Tom Tromey <tom@tromey.com>
8818
8819 * c-valprint.c (c_value_print_inner): Rewrite.
8820
8821 2020-03-13 Tom Tromey <tom@tromey.com>
8822
8823 * valprint.c (generic_value_print_complex): New function.
8824 (generic_value_print): Use it.
8825
8826 2020-03-13 Tom Tromey <tom@tromey.com>
8827
8828 * valprint.c (generic_val_print_float): Don't call
8829 val_print_scalar_formatted.
8830 (generic_val_print, generic_value_print): Update.
8831
8832 2020-03-13 Tom Tromey <tom@tromey.com>
8833
8834 * valprint.c (generic_value_print_char): New function
8835 (generic_value_print): Use it.
8836
8837 2020-03-13 Tom Tromey <tom@tromey.com>
8838
8839 * valprint.c (generic_value_print_int): New function.
8840 (generic_value_print): Use it.
8841
8842 2020-03-13 Tom Tromey <tom@tromey.com>
8843
8844 * valprint.c (generic_value_print_bool): New function.
8845 (generic_value_print): Use it.
8846
8847 2020-03-13 Tom Tromey <tom@tromey.com>
8848
8849 * valprint.c (generic_val_print_func): Simplify.
8850 (generic_val_print, generic_value_print): Update.
8851
8852 2020-03-13 Tom Tromey <tom@tromey.com>
8853
8854 * valprint.c (generic_val_print_flags): Remove.
8855 (generic_val_print, generic_value_print): Update.
8856 (val_print_type_code_flags): Add original_value parameter.
8857
8858 2020-03-13 Tom Tromey <tom@tromey.com>
8859
8860 * valprint.c (generic_val_print): Update.
8861 (generic_value_print): Update.
8862 * valprint.c (generic_val_print_enum): Don't call
8863 val_print_scalar_formatted.
8864
8865 2020-03-13 Tom Tromey <tom@tromey.com>
8866
8867 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8868 * valprint.c (generic_value_print_ptr): New function.
8869
8870 2020-03-13 Tom Tromey <tom@tromey.com>
8871
8872 * valprint.c (generic_value_print): Rewrite.
8873
8874 2020-03-13 Tom Tromey <tom@tromey.com>
8875
8876 * p-valprint.c (pascal_object_print_value_fields)
8877 (pascal_object_print_value): New functions.
8878
8879 2020-03-13 Tom Tromey <tom@tromey.com>
8880
8881 * p-valprint.c (pascal_value_print_inner): Rewrite.
8882
8883 2020-03-13 Tom Tromey <tom@tromey.com>
8884
8885 * f-valprint.c (f_value_print_innner): Rewrite.
8886
8887 2020-03-13 Tom Tromey <tom@tromey.com>
8888
8889 * m2-valprint.c (m2_print_unbounded_array): New overload.
8890 (m2_print_unbounded_array): Update.
8891 (m2_print_array_contents): Take a struct value.
8892 (m2_value_print_inner): Rewrite.
8893
8894 2020-03-13 Tom Tromey <tom@tromey.com>
8895
8896 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8897 (d_value_print_inner): New function.
8898 * d-lang.h (d_value_print_inner): Declare.
8899 * d-lang.c (d_language_defn): Use d_value_print_inner.
8900
8901 2020-03-13 Tom Tromey <tom@tromey.com>
8902
8903 * go-valprint.c (go_value_print_inner): New function.
8904 * go-lang.h (go_value_print_inner): Declare.
8905 * go-lang.c (go_language_defn): Use go_value_print_inner.
8906
8907 2020-03-13 Tom Tromey <tom@tromey.com>
8908
8909 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8910 API.
8911 (rust_val_print): Rewrite.
8912 (rust_value_print_inner): New function, from rust_val_print.
8913 (rust_language_defn): Use rust_value_print_inner.
8914
8915 2020-03-13 Tom Tromey <tom@tromey.com>
8916
8917 * ada-valprint.c (ada_value_print_inner): New function.
8918 * ada-lang.h (ada_value_print_inner): Declare.
8919 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8920
8921 2020-03-13 Tom Tromey <tom@tromey.com>
8922
8923 * f-valprint.c (f_value_print_innner): New function.
8924 * f-lang.h (f_value_print_innner): Declare.
8925 * f-lang.c (f_language_defn): Use f_value_print_innner.
8926
8927 2020-03-13 Tom Tromey <tom@tromey.com>
8928
8929 * p-valprint.c (pascal_value_print_inner): New function.
8930 * p-lang.h (pascal_value_print_inner): Declare.
8931 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8932
8933 2020-03-13 Tom Tromey <tom@tromey.com>
8934
8935 * m2-valprint.c (m2_value_print_inner): New function.
8936 * m2-lang.h (m2_value_print_inner): Declare.
8937 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8938
8939 2020-03-13 Tom Tromey <tom@tromey.com>
8940
8941 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8942 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8943 * c-valprint.c (c_value_print_inner): New function.
8944 * c-lang.h (c_value_print_inner): Declare.
8945 * c-lang.c (c_language_defn, cplus_language_defn)
8946 (asm_language_defn, minimal_language_defn): Use
8947 c_value_print_inner.
8948
8949 2020-03-13 Tom Tromey <tom@tromey.com>
8950
8951 * p-valprint.c (pascal_object_print_value_fields): Now static.
8952 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8953
8954 2020-03-13 Tom Tromey <tom@tromey.com>
8955
8956 * c-valprint.c (c_val_print_array): Simplify.
8957
8958 2020-03-13 Tom Tromey <tom@tromey.com>
8959
8960 * valprint.c (value_print_array_elements): New function.
8961 * valprint.h (value_print_array_elements): Declare.
8962
8963 2020-03-13 Tom Tromey <tom@tromey.com>
8964
8965 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8966 * mips-tdep.c (mips_print_register): Use
8967 value_print_scalar_formatted.
8968
8969 2020-03-13 Tom Tromey <tom@tromey.com>
8970
8971 * valprint.h (value_print_scalar_formatted): Declare.
8972 * valprint.c (value_print_scalar_formatted): New function.
8973
8974 2020-03-13 Tom Tromey <tom@tromey.com>
8975
8976 * valprint.h (generic_value_print): Declare.
8977 * valprint.c (generic_value_print): New function.
8978
8979 2020-03-13 Tom Tromey <tom@tromey.com>
8980
8981 * valprint.c (do_val_print): Call la_value_print_inner, if
8982 available.
8983 * rust-lang.c (rust_language_defn): Update.
8984 * p-lang.c (pascal_language_defn): Update.
8985 * opencl-lang.c (opencl_language_defn): Update.
8986 * objc-lang.c (objc_language_defn): Update.
8987 * m2-lang.c (m2_language_defn): Update.
8988 * language.h (struct language_defn) <la_value_print_inner>: New
8989 member.
8990 * language.c (unknown_language_defn, auto_language_defn): Update.
8991 * go-lang.c (go_language_defn): Update.
8992 * f-lang.c (f_language_defn): Update.
8993 * d-lang.c (d_language_defn): Update.
8994 * c-lang.c (c_language_defn, cplus_language_defn)
8995 (asm_language_defn, minimal_language_defn): Update.
8996 * ada-lang.c (ada_language_defn): Update.
8997
8998 2020-03-13 Tom Tromey <tom@tromey.com>
8999
9000 * c-valprint.c (c_value_print): Use common_val_print.
9001
9002 2020-03-13 Tom Tromey <tom@tromey.com>
9003
9004 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9005
9006 2020-03-13 Tom Tromey <tom@tromey.com>
9007
9008 * f-valprint.c (f77_print_array_1, f_val_print): Use
9009 common_val_print.
9010
9011 2020-03-13 Tom Tromey <tom@tromey.com>
9012
9013 * riscv-tdep.c (riscv_print_one_register_info): Use
9014 common_val_print.
9015
9016 2020-03-13 Tom Tromey <tom@tromey.com>
9017
9018 * mi/mi-main.c (output_register): Use common_val_print.
9019
9020 2020-03-13 Tom Tromey <tom@tromey.com>
9021
9022 * infcmd.c (default_print_one_register_info): Use
9023 common_val_print.
9024
9025 2020-03-13 Tom Tromey <tom@tromey.com>
9026
9027 * valprint.h (common_val_print_checked): Declare.
9028 * valprint.c (common_val_print_checked): New function.
9029 * stack.c (print_frame_arg): Use common_val_print_checked.
9030
9031 2020-03-13 Tom Tromey <tom@tromey.com>
9032
9033 * valprint.c (do_val_print): New function, from val_print.
9034 (val_print): Use do_val_print.
9035 (common_val_print): Use do_val_print.
9036
9037 2020-03-13 Tom Tromey <tom@tromey.com>
9038
9039 * valprint.c (value_print): Use scoped_value_mark.
9040
9041 2020-03-13 Tom de Vries <tdevries@suse.de>
9042
9043 PR symtab/25646
9044 * psymtab.c (partial_symtab::partial_symtab): Don't set
9045 globals_offset and statics_offset. Push element onto
9046 current_global_psymbols and current_static_psymbols stacks.
9047 (concat): New function.
9048 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9049 element from current_global_psymbols and current_static_psymbols
9050 stacks. Concat popped elements to global_psymbols and
9051 static_symbols.
9052 (add_psymbol_to_list): Use current_global_psymbols and
9053 current_static_psymbols stacks.
9054 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9055 current_static_psymbols fields.
9056
9057 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9058
9059 * corelow.c (sniff_core_bfd): Remove.
9060 (class core_target) <m_core_vec>: Remove.
9061 (core_target::core_target): Update.
9062 (core_file_fns): Remove.
9063 (deprecated_add_core_fns): Remove.
9064 (default_core_sniffer): Remove.
9065 (sniff_core_bfd): Remove.
9066 (default_check_format): Remove.
9067 (gdb_check_format): Remove.
9068 (core_target_open): Update.
9069 (core_target::get_core_register_section): Update.
9070 (get_core_registers_cb): Update.
9071 (core_target::fetch_registers): Update.
9072 * gdbcore.h (struct core_fns): Remove.
9073 (deprecated_add_core_fns): Remove.
9074 (default_core_sniffer): Remove.
9075 (default_check_format): Remove.
9076
9077 2020-03-12 Tom Tromey <tom@tromey.com>
9078
9079 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9080 CORE_ADDR.
9081 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9082
9083 2020-03-12 Tom Tromey <tom@tromey.com>
9084
9085 * remote.c (remote_target::download_tracepoint)
9086 (remote_target::enable_tracepoint)
9087 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9088 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9089 sprintf_vma.
9090
9091 2020-03-12 Tom Tromey <tom@tromey.com>
9092
9093 * symfile-mem.c: Update CORE_ADDR size assert.
9094
9095 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9096
9097 * selftest.m4: Move to gdbsupport/.
9098 * acinclude.m4: Update path to selftest.m4.
9099
9100 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9101
9102 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9103 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9104 gdbarch-selfselftests.c and selftest-arch.c.
9105 (SUBDIR_UNITTESTS_OBS): Rename to...
9106 (SELFTESTS_OBS): ... this.
9107 (COMMON_SFILES): Remove disasm-selftests.c and
9108 gdbarch-selftests.c.
9109 * configure.ac: Don't add selftest-arch.{c,o} to
9110 CONFIG_{SRCS,OBS}.
9111 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9112 preprocessor conditions.
9113
9114 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9115
9116 * configure.ac: Don't source bfd/development.sh.
9117 * selftest.m4: Modify comment.
9118 * configure: Re-generate.
9119
9120 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9121
9122 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9123 not "true" or "false".
9124 * configure: Re-generate.
9125
9126 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9127
9128 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9129 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9130 renamed to arm_nbsd_supply_gregset.
9131 (fetch_register): Update to call arm_nbsd_supply_gregset.
9132 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9133 (arm_netbsd_nat_target::fetch_registers): Update.
9134 (fetch_elfcore_registers): Removed.
9135 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9136 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9137 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9138 not require NetBSD system headers.
9139 (arm_nbsd_regset): New struct.
9140 (arm_nbsd_iterate_over_regset_sections): New function.
9141 (arm_netbsd_init_abi_common): Updated to call
9142 set_gdbarch_iterate_over_regset_sections.
9143 * arm-nbsd-tdep.h: New file.
9144
9145 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9146
9147 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9148 recursion.
9149
9150 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9151
9152 * configure: Re-generate.
9153
9154 2020-03-11 Tom Tromey <tromey@adacore.com>
9155
9156 * ada-typeprint.c (print_choices): Fix comment.
9157
9158 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9159
9160 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9161 previous item in the list, when the list has no items.
9162
9163 2020-03-11 Tom de Vries <tdevries@suse.de>
9164
9165 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9166 PROP_LOCLIST handling code.
9167
9168 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9169
9170 * buildsym-legacy.c (record_line): Pass extra parameter to
9171 record_line.
9172 * buildsym.c (buildsym_compunit::record_line): Take an extra
9173 parameter, reduce duplication in the line table, and record the
9174 is_stmt flag in the line table.
9175 * buildsym.h (buildsym_compunit::record_line): Add extra
9176 parameter.
9177 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9178 non-statement lines.
9179 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9180 this to the symtab builder.
9181 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9182 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9183 through to dwarf_record_line_1.
9184 * infrun.c (process_event_stop_test): When stepping, don't stop at
9185 a non-statement instruction, and only refresh the step info when
9186 we land in the middle of a line's range. Also add an extra
9187 comment.
9188 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9189 field.
9190 * record-btrace.c (btrace_find_line_range): Only record lines
9191 marked as is-statement.
9192 * stack.c (frame_show_address): Show the frame address if we are
9193 in a non-statement sal.
9194 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9195 (maintenance_print_one_line_table): Print a header for the is_stmt
9196 column, and include is_stmt information in the output.
9197 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9198 preference to non-statements.
9199 (find_pcs_for_symtab_line): Prefer is-statement entries.
9200 (find_line_common): Likewise.
9201 * symtab.h (struct linetable_entry): Add is_stmt field.
9202 (struct symtab_and_line): Likewise.
9203 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9204 arranging the line table.
9205
9206 2020-03-07 Tom de Vries <tdevries@suse.de>
9207
9208 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9209 DIE.
9210
9211 2020-03-07 Tom Tromey <tom@tromey.com>
9212
9213 * valops.c (value_literal_complex): Remove obsolete comment.
9214 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9215 comment.
9216
9217 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9218
9219 * infrun.h: Forward-declare thread_info.
9220 (set_step_info): Add thread_info parameter, add doc.
9221 * infrun.c (set_step_info): Add thread_info parameter, move doc
9222 to header.
9223 * infrun.c (process_event_stop_test): Pass thread to
9224 set_step_info call.
9225 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9226 set_step_info.
9227 (prepare_one_step): Add thread_info parameter, pass it to
9228 set_step_frame and prepare_one_step (recursive) call.
9229 (step_1): Pass thread to prepare_one_step call.
9230 (step_command_fsm::should_stop): Pass thread to
9231 prepare_one_step.
9232 (until_next_fsm): Pass thread to set_step_frame call.
9233 (finish_command): Pass thread to set_step_info call.
9234
9235 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9236
9237 * windows-tdep.c (windows_solib_create_inferior_hook):
9238 Check if inferior is running.
9239
9240 2020-03-06 Tom de Vries <tdevries@suse.de>
9241
9242 * NEWS: Fix "the the".
9243 * ctfread.c: Same.
9244
9245 2020-03-06 Tom de Vries <tdevries@suse.de>
9246
9247 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9248
9249 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9250
9251 * .dir-locals.el: Add a comment referencing the other copies of
9252 this file.
9253
9254 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9255
9256 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9257 psargs.
9258
9259 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9260
9261 * .gitattributes: New file.
9262
9263 2020-03-04 Tom Tromey <tom@tromey.com>
9264
9265 * symmisc.c (print_symbol_bcache_statistics)
9266 (print_objfile_statistics): Update.
9267 * symfile.c (allocate_symtab): Use intern.
9268 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9269 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9270 macro_cache>: Remove.
9271 <string_cache>: New member.
9272 (struct objfile) <intern>: New methods.
9273 * elfread.c (elf_symtab_read): Use intern.
9274 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9275 (dwarf2_compute_name, dwarf2_physname)
9276 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9277 names.
9278 (guess_partial_die_structure_name): Update.
9279 (partial_die_info::fixup): Intern name.
9280 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9281 name.
9282 (dwarf2_name): Intern name. Update.
9283 * buildsym.c (buildsym_compunit::get_macro_table): Use
9284 string_cache.
9285
9286 2020-03-04 Tom Tromey <tom@tromey.com>
9287
9288 * jit.c (bfd_open_from_target_memory): Make "target" const.
9289 * corefile.c (gnutarget): Now const.
9290 * gdbcore.h (gnutarget): Now const.
9291
9292 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9293
9294 * NEWS: Mention support for WOW64 processes.
9295 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9296 (amd64_windows_segment_register_p): Remove static.
9297 (_initialize_amd64_windows_nat): Update.
9298 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9299 * i386-windows-nat.c (context_offset): Update.
9300 (i386_mappings): Rename and remove static.
9301 (i386_windows_segment_register_p): Remove static.
9302 (_initialize_i386_windows_nat): Update.
9303 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9304 (STATUS_WX86_SINGLE_STEP): New macro.
9305 (EnumProcessModulesEx): New macro.
9306 (Wow64SuspendThread): New macro.
9307 (Wow64GetThreadContext): New macro.
9308 (Wow64SetThreadContext): New macro.
9309 (Wow64GetThreadSelectorEntry): New macro.
9310 (windows_set_context_register_offsets): Add static.
9311 (windows_set_segment_register_p): Likewise.
9312 (windows_add_thread): Adapt for WOW64 processes.
9313 (windows_fetch_one_register): Likewise.
9314 (windows_nat_target::fetch_registers): Likewise.
9315 (windows_store_one_register): Likewise.
9316 (display_selector): Likewise.
9317 (display_selectors): Likewise.
9318 (handle_exception): Likewise.
9319 (windows_continue): Likewise.
9320 (windows_nat_target::resume): Likewise.
9321 (windows_add_all_dlls): Likewise.
9322 (do_initial_windows_stuff): Likewise.
9323 (windows_nat_target::attach): Likewise.
9324 (windows_get_exec_module_filename): Likewise.
9325 (windows_nat_target::create_inferior): Likewise.
9326 (windows_xfer_siginfo): Likewise.
9327 (_initialize_loadable): Initialize Wow64SuspendThread,
9328 Wow64GetThreadContext, Wow64SetThreadContext,
9329 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9330 * windows-nat.h (windows_set_context_register_offsets):
9331 Remove declaration.
9332 (windows_set_segment_register_p): Likewise.
9333 (i386_windows_segment_register_p): Add declaration.
9334 (amd64_windows_segment_register_p): Likewise.
9335
9336 2020-03-04 Luis Machado <luis.machado@linaro.org>
9337
9338 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9339 in "info registers" for AArch64/ARM.
9340
9341 The change caused "info registers" to not print GPR's.
9342
9343 gdb/ChangeLog:
9344
9345 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9346
9347 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9348 when reg->group is empty and reggroup is not.
9349
9350 2020-03-03 Tom Tromey <tromey@adacore.com>
9351
9352 * dwarf2/frame.c (struct dwarf2_frame_cache)
9353 <checked_tailcall_bottom, entry_cfa_sp_offset,
9354 entry_cfa_sp_offset_p>: Remove members.
9355 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9356 (dwarf2_frame_prev_register): Don't call
9357 dwarf2_tailcall_sniffer_first.
9358 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9359 * frame-unwind.c (add_unwinder): New fuction.
9360 (frame_unwind_init): Use it. Add tailcall unwinder.
9361
9362 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9363 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9364
9365 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9366 value should be printed as true.
9367
9368 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9369
9370 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9371 (windows_init_abi): Set and use windows_so_ops.
9372
9373 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9374
9375 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9376 when verifying if dealing with a convenience variable.
9377
9378 2020-03-03 Luis Machado <luis.machado@linaro.org>
9379
9380 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9381
9382 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9383
9384 * infrun.c (gdbarch_supports_displaced_stepping): New.
9385 (use_displaced_stepping): Break up conditions in smaller pieces.
9386 Use gdbarch_supports_displaced_stepping.
9387 (displaced_step_prepare_throw): Use
9388 gdbarch_supports_displaced_stepping.
9389
9390 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9391
9392 * NEWS: Mention new behaviour of the history filename.
9393 * top.c (write_history_p): Add comment.
9394 (show_write_history_p): Add header comment, give a different
9395 message when history writing is on, but the history filename is
9396 empty.
9397 (history_filename): Add comment.
9398 (history_filename_empty): New function.
9399 (show_history_filename): Add header comment, give a different
9400 message when the filename is empty.
9401 (init_history): Compare history_filename against nullptr, and only
9402 read history if the filename is not empty.
9403 (set_history_filename): Add header comment, and only make
9404 non-empty filenames absolute.
9405 (init_main): Make the filename argument to 'set history filename'
9406 optional.
9407
9408 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9409
9410 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9411 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9412 (fetch_fp_register): Update.
9413 (fetch_fp_regs): Update.
9414 (store_fp_register): Update.
9415 (store_fp_regs): Update.
9416 (arm_netbsd_nat_target::read_description): New function.
9417 (fetch_elfcore_registers): Update.
9418
9419 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9420
9421 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9422 general_thread if the stop reply is missing a thread-id.
9423 (remote_target::process_stop_reply): Use the first non-exited
9424 thread if the target didn't pass a thread-id.
9425 * infrun.c (do_target_wait): Move call to
9426 switch_to_inferior_no_thread to ....
9427 (do_target_wait_1): ... here.
9428
9429 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9430
9431 * debuginfod-support.c: Include defs.h first.
9432
9433 2020-02-28 Tom de Vries <tdevries@suse.de>
9434
9435 * symfile.c (set_initial_language): Use default language for lookup.
9436
9437 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9438
9439 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9440 reader variable, pass `this` to read_cutu_die_from_dwo.
9441
9442 2020-02-27 Aaron Merey <amerey@redhat.com>
9443
9444 * source.c (open_source_file): Check for nullptr when computing
9445 srcpath.
9446
9447 2020-02-27 Tom Tromey <tromey@adacore.com>
9448
9449 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9450 member.
9451 (dwarf2_add_field): Don't update nfields.
9452 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9453
9454 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9455
9456 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9457 abs.
9458
9459 2020-02-26 Tom Tromey <tom@tromey.com>
9460
9461 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9462 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9463 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9464 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9465 per_cu_data.
9466
9467 2020-02-26 Tom Tromey <tom@tromey.com>
9468
9469 * dwarf2/index-write.c (psym_index_map): Change type.
9470 (add_address_entry_worker, write_one_signatured_type)
9471 (recursively_count_psymbols, recursively_write_psymbols)
9472 (class debug_names, psyms_seen_size, write_gdbindex)
9473 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9474
9475 2020-02-26 Aaron Merey <amerey@redhat.com>
9476
9477 * Makefile.in: Handle optional debuginfod support.
9478 * NEWS: Update.
9479 * README: Add --with-debuginfod summary.
9480 * config.in: Regenerate.
9481 * configure: Regenerate.
9482 * configure.ac: Handle optional debuginfod support.
9483 * debuginfod-support.c: debuginfod helper functions.
9484 * debuginfod-support.h: Ditto.
9485 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9486 summary.
9487 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9488 when a dwz file cannot be found.
9489 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9490 debuginfo file cannot be found.
9491 * source.c (open_source_file): Query debuginfod servers when a
9492 source file cannot be found.
9493 * top.c (print_gdb_configuration): Include
9494 --{with,without}-debuginfod in the output.
9495
9496 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9497
9498 * thread.c (thr_try_catch_cmd): Print thread name.
9499
9500 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9501
9502 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9503 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9504 dwarf2_fetch_die_type_sect_off): Move to...
9505 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9506 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9507 dwarf2_fetch_die_type_sect_off): ... here.
9508 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9509 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9510 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9511
9512 2020-02-26 Tom de Vries <tdevries@suse.de>
9513
9514 PR gdb/25603
9515 * symfile.c (set_initial_language): Exit-early if
9516 language_mode == language_mode_manual.
9517
9518 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9519
9520 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9521 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9522 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9523
9524 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9525
9526 * gdbtypes.c (create_array_type_with_stride): Handle negative
9527 array strides.
9528 * valarith.c (value_subscripted_rvalue): Likewise.
9529
9530 2020-02-25 Luis Machado <luis.machado@linaro.org>
9531
9532 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9533
9534 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9535
9536 * loc.h (dwarf2_get_die_type): Move to...
9537 * read.h (dwarf2_get_die_type): ... here.
9538 * read.c (dwarf2_get_die_type): Move doc to header.
9539
9540 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9541
9542 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9543 'gnulib/Makefile.in' to the list.
9544
9545 2020-02-24 Tom Tromey <tom@tromey.com>
9546
9547 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9548 Remove.
9549 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9550 XOBNEWVEC.
9551
9552 2020-02-24 Tom Tromey <tom@tromey.com>
9553
9554 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9555 New method.
9556 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9557 (dw2_do_instantiate_symtab, dw2_get_file_names)
9558 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9559
9560 2020-02-24 Tom Tromey <tom@tromey.com>
9561
9562 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9563 make_scoped_restore.
9564 (dwarf2_psymtab::read_symtab): Don't clear
9565 reading_partial_symbols.
9566
9567 2020-02-24 Tom de Vries <tdevries@suse.de>
9568
9569 PR gdb/25592
9570 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9571
9572 2020-02-24 Tom de Vries <tdevries@suse.de>
9573
9574 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9575 commands layout next/prev/regs.
9576
9577 2020-02-22 Tom Tromey <tom@tromey.com>
9578
9579 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9580 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9581
9582 2020-02-22 Tom Tromey <tom@tromey.com>
9583
9584 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9585
9586 2020-02-22 Tom Tromey <tom@tromey.com>
9587
9588 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9589 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9590 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9591 * tui/tui.c (_initialize_tui): Add usage text.
9592
9593 2020-02-22 Tom Tromey <tom@tromey.com>
9594
9595 * tui/tui-win.c (tui_set_focus_command)
9596 (tui_set_win_height_command): Use error_no_arg.
9597 (_initialize_tui_win): Update help text.
9598 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9599
9600 2020-02-22 Tom Tromey <tom@tromey.com>
9601
9602 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9603 * tui/tui-disasm.h (struct tui_disasm_window)
9604 <display_start_addr>: Declare.
9605 * tui/tui-source.h (struct tui_source_window)
9606 <display_start_addr>: Declare.
9607 * tui/tui-winsource.h (struct tui_source_window_base)
9608 <show_source_line, display_start_addr>: New methods.
9609 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9610 Rename and move to protected section.
9611 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9612 (tui_source_window_base::do_erase_source_content): Update.
9613 (tui_source_window_base::show_source_line): Now a method.
9614 (tui_source_window_base::show_source_content)
9615 (tui_source_window_base::tui_source_window_base)
9616 (tui_source_window_base::rerender)
9617 (tui_source_window_base::refill)
9618 (tui_source_window_base::do_scroll_horizontal)
9619 (tui_source_window_base::set_is_exec_point_at)
9620 (tui_source_window_base::update_breakpoint_info)
9621 (tui_source_window_base::update_exec_info): Update.
9622 * tui/tui-source.c (tui_source_window::set_contents)
9623 (tui_source_window::showing_source_p)
9624 (tui_source_window::do_scroll_vertical)
9625 (tui_source_window::location_matches_p)
9626 (tui_source_window::line_is_displayed): Update.
9627 (tui_source_window::display_start_addr): New method.
9628 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9629 (tui_disasm_window::do_scroll_vertical)
9630 (tui_disasm_window::location_matches_p): Update.
9631 (tui_disasm_window::display_start_addr): New method.
9632
9633 2020-02-22 Tom Tromey <tom@tromey.com>
9634
9635 * NEWS: Add entry for gdb.register_window_type.
9636 * tui/tui-layout.h (window_factory): New typedef.
9637 (tui_register_window): Declare.
9638 * tui/tui-layout.c (saved_tui_windows): New global.
9639 (tui_apply_current_layout): Use it.
9640 (tui_register_window): New function.
9641 * python/python.c (do_start_initialization): Call
9642 gdbpy_initialize_tui.
9643 (python_GdbMethods): Add "register_window_type" function.
9644 * python/python-internal.h (gdbpy_register_tui_window)
9645 (gdbpy_initialize_tui): Declare.
9646 * python/py-tui.c: New file.
9647 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9648
9649 2020-02-22 Tom Tromey <tom@tromey.com>
9650
9651 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9652
9653 2020-02-22 Tom Tromey <tom@tromey.com>
9654
9655 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9656 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9657 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9658 (tui_set_win_focus_to): Move from tui-win.c.
9659
9660 2020-02-22 Tom Tromey <tom@tromey.com>
9661
9662 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9663 functions.
9664 (known_window_types): New global.
9665 (tui_get_window_by_name): Reimplement.
9666 (initialize_known_windows): New function.
9667 (validate_window_name): Rewrite.
9668 (_initialize_tui_layout): Call initialize_known_windows.
9669
9670 2020-02-22 Tom Tromey <tom@tromey.com>
9671
9672 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9673 Remove constants.
9674 * tui/tui-winsource.h (struct tui_source_window_base)
9675 <tui_source_window_base>: Remove parameter.
9676 * tui/tui-winsource.c
9677 (tui_source_window_base::tui_source_window_base): Remove
9678 parameter.
9679 (tui_source_window_base::refill): Update.
9680 * tui/tui-stack.h (struct tui_locator_window)
9681 <tui_locator_window>: Update.
9682 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9683 Default the constructor.
9684 * tui/tui-regs.h (struct tui_data_item_window)
9685 <tui_data_item_window>: Default the constructor.
9686 (struct tui_data_window) <tui_data_window>: Likewise.
9687 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9688 Default the constructor.
9689 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9690 Default the constructor.
9691 <type>: Remove.
9692 (struct tui_win_info) <tui_win_info>: Default the constructor.
9693 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9694 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9695 Default the constructor.
9696
9697 2020-02-22 Tom Tromey <tom@tromey.com>
9698
9699 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9700 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9701 * tui/tui-win.c (tui_resize_all): Don't call
9702 tui_delete_invisible_windows.
9703 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9704 done.
9705 (tui_set_layout): Update.
9706 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9707 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9708 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9709
9710 2020-02-22 Tom Tromey <tom@tromey.com>
9711
9712 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9713 correctly.
9714
9715 2020-02-22 Tom Tromey <tom@tromey.com>
9716
9717 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9718
9719 2020-02-22 Tom Tromey <tom@tromey.com>
9720
9721 * tui/tui-winsource.h (struct tui_source_window_iterator)
9722 <inner_iterator>: New etytypedef.
9723 <tui_source_window_iterator>: Take "end" parameter.
9724 <tui_source_window_iterator>: Take iterator.
9725 <operator*, advance>: Update.
9726 <m_iter>: Change type.
9727 <m_end>: New field.
9728 (struct tui_source_windows) <begin, end>: Update.
9729 * tui/tui-layout.c (tui_windows): New global.
9730 (tui_apply_current_layout): Clear tui_windows.
9731 (tui_layout_window::apply): Update tui_windows.
9732 * tui/tui-data.h (tui_windows): Declare.
9733 (all_tui_windows): Now inline function.
9734 (class tui_window_iterator, struct all_tui_windows): Remove.
9735
9736 2020-02-22 Tom Tromey <tom@tromey.com>
9737
9738 PR tui/17850:
9739 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9740 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9741 "height" argument.
9742 (class tui_layout_window) <get_sizes>: Likewise.
9743 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9744 argument.
9745 <get_sizes>: Add "height" argument.
9746 <m_vertical>: New field.
9747 * tui/tui-layout.c (tui_layout_split::clone): Update.
9748 (tui_layout_split::get_sizes): Add "height" argument.
9749 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9750 (tui_new_layout_command): Parse "-horizontal".
9751 (_initialize_tui_layout): Update help string.
9752 (tui_layout_split::specification): Add "-horizontal" when needed.
9753 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9754 argument.
9755 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9756 New methods.
9757
9758 2020-02-22 Tom Tromey <tom@tromey.com>
9759
9760 * tui/tui-layout.h (enum tui_adjust_result): New.
9761 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9762 (class tui_layout_window) <adjust_size>: Return
9763 tui_adjust_result. Rewrite.
9764 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9765 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9766
9767 2020-02-22 Tom Tromey <tom@tromey.com>
9768
9769 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9770 parameter and return types.
9771 (class tui_layout_base) <specification>: Add "depth".
9772 (class tui_layout_window) <specification>: Add "depth".
9773 (class tui_layout_split) <specification>: Add "depth".
9774 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9775 and return types.
9776 (tui_new_layout_command): Parse sub-layouts.
9777 (_initialize_tui_layout): Update help string.
9778 (tui_layout_window::specification): Add "depth".
9779 (add_layout_command): Update.
9780
9781 2020-02-22 Tom Tromey <tom@tromey.com>
9782
9783 * NEWS: Add "tui new-layout" item.
9784 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9785 Add new-layout command to help text.
9786 (validate_window_name): New function.
9787 (tui_new_layout_command): New function.
9788 (_initialize_tui_layout): Register "new-layout".
9789 (tui_layout_window::specification): New method.
9790 (tui_layout_window::specification): New method.
9791 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9792 method.
9793 (class tui_layout_window) <specification>: New method.
9794 (class tui_layout_split) <specification>: New method.
9795
9796 2020-02-22 Tom Tromey <tom@tromey.com>
9797
9798 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9799 * tui/tui-win.c (window_name_completer): Update comment.
9800 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9801 Declare method.
9802 (class tui_layout_window) <replace_window>: Likewise.
9803 (class tui_layout_split) <replace_window>: Likewise.
9804 (tui_set_layout): Don't declare.
9805 (tui_set_initial_layout): Declare function.
9806 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9807 (asm_regs_layout): New globals.
9808 (tui_current_layout, show_layout): Remove.
9809 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9810 (find_layout, tui_apply_layout): New function.
9811 (layout_completer): Remove.
9812 (tui_next_layout): Reimplement.
9813 (tui_next_layout_command): New function.
9814 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9815 (tui_regs_layout): Reimplement.
9816 (tui_regs_layout_command): New function.
9817 (extract_display_start_addr): Rewrite.
9818 (next_layout, prev_layout): Remove.
9819 (tui_layout_window::replace_window): New method.
9820 (tui_layout_split::replace_window): New method.
9821 (destroy_layout): New function.
9822 (layout_list): New global.
9823 (add_layout_command): New function.
9824 (initialize_layouts): Update.
9825 (tui_layout_command): New function.
9826 (_initialize_tui_layout): Install "layout" commands.
9827 * tui/tui-data.h (enum tui_layout_type): Remove.
9828 (tui_current_layout): Don't declare.
9829
9830 2020-02-22 Tom Tromey <tom@tromey.com>
9831
9832 * tui/tui-regs.c (tui_reg_layout): Remove.
9833 (tui_reg_command): Use tui_regs_layout.
9834 * tui/tui-layout.h (tui_reg_command): Declare.
9835 * tui/tui-layout.c (tui_reg_command): New function.
9836
9837 2020-02-22 Tom Tromey <tom@tromey.com>
9838
9839 * tui/tui.c (tui_rl_delete_other_windows): Call
9840 tui_remove_some_windows.
9841 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9842 Declare method.
9843 (class tui_layout_window) <remove_windows>: New method.
9844 (class tui_layout_split) <remove_windows>: Declare.
9845 (tui_remove_some_windows): Declare.
9846 * tui/tui-layout.c (tui_remove_some_windows): New function.
9847 (tui_layout_split::remove_windows): New method.
9848
9849 2020-02-22 Tom Tromey <tom@tromey.com>
9850
9851 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9852 * tui/tui-layout.h (tui_next_layout): Declare.
9853 * tui/tui-layout.c (tui_next_layout): New function.
9854
9855 2020-02-22 Tom Tromey <tom@tromey.com>
9856
9857 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9858 correct coordinates.
9859
9860 2020-02-22 Tom Tromey <tom@tromey.com>
9861
9862 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9863 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9864 DATA_WIN case.
9865
9866 2020-02-22 Tom Tromey <tom@tromey.com>
9867
9868 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9869 TUI_DISASM_WIN, not tui_win_list.
9870
9871 2020-02-22 Tom Tromey <tom@tromey.com>
9872
9873 * valprint.c (generic_val_print_enum_1)
9874 (val_print_type_code_flags): Style member names.
9875 * rust-lang.c (val_print_struct, rust_print_enum)
9876 (rust_print_struct_def, rust_internal_print_type): Style member
9877 names.
9878 * p-valprint.c (pascal_object_print_value_fields): Style member
9879 names. Only call fprintf_symbol_filtered for static members.
9880 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9881 * f-valprint.c (f_val_print): Style member names.
9882 * f-typeprint.c (f_type_print_base): Style member names.
9883 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9884 call fprintf_symbol_filtered for static members.
9885 (cp_print_class_member): Style member names.
9886 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9887 member names.
9888 * ada-valprint.c (ada_print_scalar): Style enum names.
9889 (ada_val_print_enum): Likewise.
9890 * ada-typeprint.c (print_enum_type): Style enum names.
9891
9892 2020-02-21 Tom Tromey <tom@tromey.com>
9893
9894 * psympriv.h (struct partial_symtab): Update comment.
9895
9896 2020-02-21 Tom Tromey <tromey@adacore.com>
9897
9898 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9899 type is CORE_ADDR.
9900
9901 2020-02-21 Tom de Vries <tdevries@suse.de>
9902
9903 PR gdb/25534
9904 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9905 if dependencies[i]->user != NULL.
9906
9907 2020-02-21 Ali Tamur <tamur@google.com>
9908
9909 * dwarf2/read.c (dwarf2_name): Add null check.
9910
9911 2020-02-20 Tom Tromey <tom@tromey.com>
9912
9913 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9914 ">=", in binary search.
9915 (dwarf2_find_containing_comp_unit): New overload.
9916 (run_test): New self-test.
9917 (_initialize_dwarf2_read): Register new test.
9918
9919 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9920
9921 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9922 * riscv-tdep.h: Likewise.
9923 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9924 rv32-only CSR.
9925 * features/riscv/64bit-csr.xml: Regenerated.
9926
9927 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9928 Tom Tromey <tom@tromey.com>
9929
9930 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9931 of 'fputc_unfiltered'.
9932 (putchar_unfiltered): Call 'fputc_unfiltered'.
9933 (fputc_unfiltered): Call 'fputs_unfiltered'.
9934
9935 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9936
9937 * config.in: Regenerate.
9938 * configure: Regenerate.
9939 * configure.ac: Add --with-python-libdir option.
9940 * main.c: Use WITH_PYTHON_LIBDIR.
9941
9942 2020-02-19 Tom Tromey <tom@tromey.com>
9943
9944 * symtab.c (general_symbol_info::compute_and_set_names): Use
9945 obstack_strndup. Simplify call to symbol_set_demangled_name.
9946
9947 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9948
9949 * dwarf2/read.c (allocate_signatured_type_table,
9950 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9951 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9952 Remove objfile parameter, update all callers.
9953
9954 2020-02-19 Doug Evans <dje@google.com>
9955
9956 PR rust/25535
9957 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9958 rust_enum_variant calculation.
9959
9960 2020-02-19 Tom Tromey <tromey@adacore.com>
9961
9962 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9963
9964 2020-02-19 Tom Tromey <tromey@adacore.com>
9965
9966 * ada-lang.c (cache_symbol): Use obstack_strdup.
9967
9968 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9969
9970 * configure: Regenerate.
9971
9972 2020-02-19 Tom Tromey <tromey@adacore.com>
9973
9974 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9975 NULL check.
9976
9977 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9978
9979 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9980
9981 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9982
9983 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9984 if GDBSERVER is not defined.
9985 (riscv_tdesc_cache): Likewise, also store const target_desc.
9986 (STATIC_IN_GDB): Define.
9987 (riscv_create_target_description): Update declaration with
9988 STATIC_IN_GDB.
9989 (riscv_lookup_target_description): New function, only define if
9990 GDBSERVER is not defined.
9991 * arch/riscv.h (riscv_create_target_description): Declare only
9992 when GDBSERVER is defined.
9993 (riscv_lookup_target_description): New declaration when GDBSERVER
9994 is not defined.
9995 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9996 (riscv_linux_read_features): ...this, and return
9997 riscv_gdbarch_features instead of target_desc.
9998 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9999 (riscv_linux_read_description): Rename to...
10000 (riscv_linux_read_features): ...this.
10001 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10002 Update to use riscv_gdbarch_features and
10003 riscv_lookup_target_description.
10004 * riscv-tdep.c (riscv_find_default_target_description): Use
10005 riscv_lookup_target_description instead of
10006 riscv_create_target_description.
10007
10008 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10009
10010 * valprint.c (generic_val_print_enum_1): When printing a flag
10011 enum with value 0 and there is no enumerator with value 0, print
10012 just "0" instead of "(unknown: 0x0)".
10013
10014 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10015
10016 * valprint.c (generic_val_print_enum_1): Print unknown part of
10017 flag enum in hex.
10018
10019 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10020
10021 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10022 flag enums to contain duplicate enumerators.
10023 * valprint.c (generic_val_print_enum_1): Update comment.
10024
10025 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10026
10027 * dwarf2/read.c: Include "count-one-bits.h".
10028 (update_enumeration_type_from_children): If an enumerator has
10029 multiple bits set, don't treat the enumeration as a "flag enum".
10030 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10031 of flag enums have 0 or 1 bit set.
10032
10033 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10034
10035 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10036 conversion.
10037 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10038 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10039 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10040 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10041 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10042
10043 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10044
10045 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10046
10047 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10048
10049 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10050 displaced_step_closure_up.
10051 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10052 (struct displaced_step_closure_up):
10053 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10054 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10055 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10056 Likewise.
10057 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10058 * gdbarch.c, gdbarch.h: Re-generate.
10059 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10060 displaced_step_closure_up.
10061 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10062 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10063 * infrun.h (displaced_step_closure_up): New type alias.
10064 (struct displaced_step_inferior_state) <step_closure>: Change
10065 type to displaced_step_closure_up.
10066 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10067 displaced_step_closure_up.
10068 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10069
10070 2020-02-14 Tom Tromey <tom@tromey.com>
10071
10072 * minidebug.c (gnu_debug_key): New global.
10073 (find_separate_debug_file_in_section): Use it.
10074
10075 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10076
10077 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10078 std::unique_ptr.
10079 * gdbarch.c: Re-generate.
10080 * gdbarch.h: Re-generate.
10081 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10082 change.
10083 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10084 type to std::unique_ptr.
10085 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10086 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10087 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10088 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10089 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10090 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10091 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10092 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10093 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10094
10095 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10096
10097 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10098 std::unique_ptr.
10099 (displaced_step_clear): Rename to...
10100 (displaced_step_reset): ... this. Just call displaced->reset ().
10101 (displaced_step_clear_cleanup): Rename to...
10102 (displaced_step_reset_cleanup): ... this.
10103 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10104 (displaced_step_fixup): Likewise.
10105 (resume_1): Likewise.
10106 (handle_inferior_event): Restore child's memory before calling
10107 displaced_step_fixup on the parent.
10108 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10109 to std::unique_ptr.
10110 <step_closure>: Change type to std::unique_ptr.
10111
10112 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10113
10114 * arm-tdep.c: Include count-one-bits.h.
10115 (cleanup_block_store_pc): Use count_one_bits.
10116 (cleanup_block_load_pc): Use count_one_bits.
10117 (arm_copy_block_xfer): Use count_one_bits.
10118 (thumb2_copy_block_xfer): Use count_one_bits.
10119 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10120 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10121 (thumb_get_next_pcs_raw): Use count_one_bits.
10122 (arm_get_next_pcs_raw): Use count_one_bits_l.
10123 * arch/arm.c (bitcount): Remove.
10124 * arch/arm.h (bitcount): Remove.
10125
10126 2020-02-14 Tom Tromey <tromey@adacore.com>
10127
10128 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10129 Update.
10130 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10131 * dwarf2/loc.c (call_site_find_chain_1): Return
10132 unique_xmalloc_ptr.
10133 (call_site_find_chain): Likewise.
10134
10135 2020-02-14 Richard Biener <rguenther@suse.de>
10136
10137 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10138 on expression with division operators.
10139
10140 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10141
10142 * MAINTAINERS (Write After Approval): Adding myself.
10143
10144 2020-02-12 Tom Tromey <tom@tromey.com>
10145
10146 * event-loop.c (event_data, gdb_event, event_handler_func):
10147 Remove.
10148
10149 2020-02-12 Tom Tromey <tom@tromey.com>
10150
10151 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10152 (dwarf2_frame_objfile_data): Add comment.
10153 (find_comp_unit, set_comp_unit): New functions.
10154 (dwarf2_frame_find_fde): Use find_comp_unit.
10155 (dwarf2_build_frame_info): Use set_comp_unit.
10156
10157 2020-02-12 Tom Tromey <tom@tromey.com>
10158
10159 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10160 (comp_unit): Don't initialize objfile.
10161 (execute_cfa_program): Add text_offset parameter.
10162 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10163 (dwarf2_frame_cache): Update.
10164 (dwarf2_build_frame_info): Don't set "objfile" member.
10165
10166 2020-02-12 Tom Tromey <tom@tromey.com>
10167
10168 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10169 (decode_frame_entry): Likewise.
10170 (dwarf2_build_frame_info): Update.
10171
10172 2020-02-12 Tom Tromey <tom@tromey.com>
10173
10174 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10175 (decode_frame_entry_1): Use the comp_unit obstack.
10176
10177 2020-02-12 Tom Tromey <tom@tromey.com>
10178
10179 * dwarf2/frame.c (struct comp_unit): Add initializers and
10180 constructor.
10181 (dwarf2_frame_objfile_data): Store a comp_unit.
10182 (dwarf2_frame_find_fde): Update.
10183 (dwarf2_build_frame_info): Use "new".
10184
10185 2020-02-12 Tom Tromey <tom@tromey.com>
10186
10187 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10188 (dwarf2_fde_table): Typedef for std::vector.
10189 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10190 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10191 (decode_frame_entry): Update.
10192 (dwarf2_build_frame_info): Use "new".
10193
10194 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10195
10196 * arm-tdep.c (arm_gdbarch_init): Update.
10197 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10198 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10199 have_neon, is_m>: Change to bool.
10200
10201 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10202
10203 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10204
10205 2020-02-12 Tom Tromey <tom@tromey.com>
10206
10207 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10208
10209 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10210
10211 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10212 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10213
10214 2020-02-11 Tom Tromey <tom@tromey.com>
10215
10216 * psymtab.h: Update comment.
10217
10218 2020-02-11 Tom Tromey <tom@tromey.com>
10219
10220 * gdb_obstack.h (struct auto_obstack): Use
10221 DISABLE_COPY_AND_ASSIGN.
10222
10223 2020-02-11 Tom Tromey <tom@tromey.com>
10224
10225 * dwarf2/frame.h (struct objfile): Don't forward declare.
10226
10227 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10228
10229 * cris-tdep.c (cris_supply_gregset): Change signature to match
10230 what struct regset expects.
10231 (cris_regset): New struct.
10232 (fetch_core_registers): Remove.
10233 (cris_iterate_over_regset_sections): New function.
10234 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10235 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10236
10237 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10238
10239 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10240 registers.
10241
10242 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10243
10244 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10245
10246 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10247
10248 * configure: Re-generate.
10249
10250 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10251
10252 * configure: Re-generate.
10253
10254 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10255
10256 * acinclude: Update warning.m4 path.
10257 * warning.m4: Move to gdbsupport.
10258
10259 2020-02-11 Tom Tromey <tromey@adacore.com>
10260
10261 * remote.c (remote_console_output): Update.
10262 * printcmd.c (printf_command): Update.
10263 * event-loop.c (gdb_wait_for_event): Update.
10264 * linux-nat.c (sigchld_handler): Update.
10265 * remote-sim.c (gdb_os_write_stdout): Update.
10266 (gdb_os_flush_stdout): Update.
10267 (gdb_os_flush_stderr): Update.
10268 (gdb_os_write_stderr): Update.
10269 * exceptions.c (print_exception): Update.
10270 * remote-fileio.c (remote_fileio_func_read): Update.
10271 (remote_fileio_func_write): Update.
10272 * tui/tui.c (tui_enable): Update.
10273 * tui/tui-interp.c (tui_interp::init): Update.
10274 * utils.c (init_page_info): Update.
10275 (putchar_unfiltered, fputc_unfiltered): Update.
10276 (gdb_flush): Update.
10277 (emit_style_escape): Update.
10278 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10279 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10280 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10281 (stderr_file::write): Update.
10282 (stderr_file::puts): Update.
10283 * ui-file.h (ui_file_isatty, ui_file_write)
10284 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10285 (ui_file_puts): Don't declare.
10286
10287 2020-02-10 Tom de Vries <tdevries@suse.de>
10288
10289 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10290 sentinel to char *.
10291
10292 2020-02-09 Tom de Vries <tdevries@suse.de>
10293
10294 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10295 filename if it matches "<artificial>".
10296
10297 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10298
10299 * windows-tdep.c (struct enum_value_name): New struct.
10300 (create_enum): New function.
10301 (windows_get_siginfo_type): Create and use enum types.
10302
10303 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10304
10305 * NEWS: Mention $_siginfo support for Windows.
10306 * windows-nat.c (handle_exception): Set siginfo_er.
10307 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10308 (windows_xfer_siginfo): New function.
10309 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10310 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10311 (init_windows_gdbarch_data): New function.
10312 (get_windows_gdbarch_data): New function.
10313 (windows_get_siginfo_type): New function.
10314 (windows_init_abi): Register windows_get_siginfo_type.
10315 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10316
10317 2020-02-08 Tom Tromey <tom@tromey.com>
10318
10319 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10320 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10321 <keep>: Declare method.
10322 <m_keep>: Remove member.
10323 <~cutu_reader>: Remove.
10324 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10325 (cutu_reader::cutu_reader): Update.
10326 (cutu_reader::keep): Rename from ~cutu_reader.
10327 (process_psymtab_comp_unit, build_type_psymtabs_1)
10328 (process_skeletonless_type_unit, load_partial_comp_unit)
10329 (load_full_comp_unit, dwarf2_read_addr_index)
10330 (read_signatured_type): Update.
10331
10332 2020-02-08 Tom Tromey <tom@tromey.com>
10333
10334 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10335 "want_partial_unit" parameter.
10336 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10337 Inline check for DW_TAG_partial_unit.
10338 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10339
10340 2020-02-08 Tom Tromey <tom@tromey.com>
10341
10342 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10343 read.c.
10344 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10345 read.c.
10346
10347 2020-02-08 Tom Tromey <tom@tromey.com>
10348
10349 * dwarf2/read.c (read_address): Move to comp-unit.c.
10350 (dwarf2_rnglists_process, dwarf2_ranges_process)
10351 (read_attribute_value, dwarf_decode_lines_1)
10352 (var_decode_location, decode_locdesc): Update.
10353 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10354 read.c. Remove "cu" parameter.
10355 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10356 method.
10357
10358 2020-02-08 Tom Tromey <tom@tromey.com>
10359
10360 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10361 (read_indirect_line_string): Update.
10362 * dwarf2/comp-unit.c (read_offset): Remove.
10363 (read_comp_unit_head): Update.
10364 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10365 method.
10366 (read_offset): Don't declare.
10367
10368 2020-02-08 Tom Tromey <tom@tromey.com>
10369
10370 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10371 * dwarf2/read.c (struct comp_unit_head): Move to
10372 dwarf2/comp-unit.h.
10373 (enum class rcuh_kind): Move to comp-unit.h.
10374 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10375 (read_comp_unit_head, error_check_comp_unit_head)
10376 (read_and_check_comp_unit_head): Move to comp-unit.c.
10377 (read_offset, dwarf_unit_type_name): Likewise.
10378 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10379 (cutu_reader::cutu_reader, read_call_site_scope)
10380 (find_partial_die, follow_die_offset): Update.
10381 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10382
10383 2020-02-08 Tom Tromey <tom@tromey.com>
10384
10385 * dwarf2/read.c (read_offset_1): Move to leb.c.
10386 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10387 (dwarf_decode_macro_bytes): Update.
10388 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10389 * dwarf2/leb.h (read_offset): Declare.
10390
10391 2020-02-08 Tom Tromey <tom@tromey.com>
10392
10393 * dwarf2/read.c (dwarf2_section_size): Remove.
10394 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10395 Update.
10396 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10397
10398 2020-02-08 Tom Tromey <tom@tromey.com>
10399
10400 * dwarf2/read.c (read_initial_length): Move to leb.c.
10401 * dwarf2/leb.h (read_initial_length): Declare.
10402 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10403 handle_nonstd parameter.
10404 * dwarf2/frame.c (read_initial_length): Remove.
10405 (decode_frame_entry_1): Update.
10406
10407 2020-02-08 Tom Tromey <tom@tromey.com>
10408
10409 * dwarf2/loc.c (dwarf2_find_location_expression)
10410 (dwarf_evaluate_loc_desc::get_tls_address)
10411 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10412 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10413 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10414 (dwarf2_compile_property_to_c)
10415 (dwarf2_loc_desc_get_symbol_read_needs)
10416 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10417 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10418 (loclist_describe_location, loclist_tracepoint_var_ref)
10419 (loclist_generate_c_location): Update.
10420 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10421 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10422 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10423 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10424 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10425 (dwarf2_per_cu_data::addr_size)
10426 (dwarf2_per_cu_data::ref_addr_size)
10427 (dwarf2_per_cu_data::text_offset)
10428 (dwarf2_per_cu_data::addr_type): Now methods.
10429 (per_cu_header_read_in): Make per_cu "const".
10430 (dwarf2_version): Remove.
10431 (dwarf2_per_cu_data::int_type): Now a method.
10432 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10433 (set_die_type, read_array_type, read_subrange_index_type)
10434 (read_tag_string_type, read_subrange_type): Update.
10435 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10436 offset_size, ref_addr_size, text_offset, addr_type, version,
10437 objfile, int_type, addr_sized_int_type>: Declare methods.
10438
10439 2020-02-08 Tom Tromey <tom@tromey.com>
10440
10441 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10442 Move earlier.
10443
10444 2020-02-08 Tom Tromey <tom@tromey.com>
10445
10446 * dwarf2/read.h (dwarf_line_debug): Declare.
10447 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10448 * dwarf2/read.c: Move line_header code to new files.
10449 (dwarf_line_debug): No longer static.
10450 * dwarf2/line-header.c: New file.
10451 * dwarf2/line-header.h: New file.
10452
10453 2020-02-08 Tom Tromey <tom@tromey.com>
10454
10455 * dwarf2/read.c (struct line_header) <file_full_name,
10456 file_file_name>: Return unique_xmalloc_ptr.
10457 (line_header::file_file_name): Update.
10458 (line_header::file_full_name): Update.
10459 (dw2_get_file_names_reader): Update.
10460 (macro_start_file): Update.
10461
10462 2020-02-08 Tom Tromey <tom@tromey.com>
10463
10464 * dwarf2/read.c (struct line_header) <file_full_name,
10465 file_file_name>: Declare methods.
10466 (dw2_get_file_names_reader): Update.
10467 (file_file_name): Now a method.
10468 (file_full_name): Likewise.
10469 (macro_start_file): Update.
10470
10471 2020-02-08 Tom Tromey <tom@tromey.com>
10472
10473 * dwarf2/read.c (dwarf_always_disassemble)
10474 (show_dwarf_always_disassemble): Move to loc.c.
10475 (_initialize_dwarf2_read): Move "always-disassemble" registration
10476 to loc.c.
10477 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10478 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10479 static.
10480 (show_dwarf_always_disassemble): Move from read.c.
10481 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10482
10483 2020-02-08 Tom Tromey <tom@tromey.com>
10484
10485 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10486 (create_quick_file_names_table): Return htab_up.
10487 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10488 Update.
10489 * dwarf2/read.h (struct dwarf2_per_objfile)
10490 <quick_file_names_table>: Now htab_up.
10491
10492 2020-02-08 Tom Tromey <tom@tromey.com>
10493
10494 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10495
10496 2020-02-08 Tom Tromey <tom@tromey.com>
10497
10498 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10499 Rewrite.
10500 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10501 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10502 (abbrev_table::abbrev_table): No longer inline.
10503 (ABBREV_HASH_SIZE): Remove.
10504 (abbrev_table::m_abbrevs): Now an htab_up.
10505
10506 2020-02-08 Tom Tromey <tom@tromey.com>
10507
10508 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10509 (cutu_reader): Update.
10510 (build_type_psymtabs_1): Update.
10511 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10512 (abbrev_table::alloc_abbrev): Update.
10513 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10514 (abbrev_table::read): New static method, renamed from
10515 abbrev_table_read_table.
10516 (abbrev_table::alloc_abbrev)
10517 (abbrev_table::add_abbrev): Now private.
10518 (abbrev_table::abbrev_table): Now private.
10519 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10520
10521 2020-02-08 Tom Tromey <tom@tromey.com>
10522
10523 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10524 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10525 htab_up.
10526
10527 2020-02-08 Tom Tromey <tom@tromey.com>
10528
10529 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10530 htab_up.
10531 (lookup_dwo_unit_in_dwp): Update.
10532 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10533 on obstack.
10534
10535 2020-02-08 Tom Tromey <tom@tromey.com>
10536
10537 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10538 obstack.
10539
10540 2020-02-08 Tom Tromey <tom@tromey.com>
10541
10542 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10543 line_header_hash.
10544 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10545 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10546 Change type to htab_up.
10547
10548 2020-02-08 Tom Tromey <tom@tromey.com>
10549
10550 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10551 htab_up. Don't allocate on obstack.
10552 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10553 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10554 Change type to htab_up.
10555
10556 2020-02-08 Tom Tromey <tom@tromey.com>
10557
10558 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10559 Change type to htab_up.
10560 * dwarf2/read.c (create_signatured_type_table_from_index)
10561 (create_signatured_type_table_from_debug_names)
10562 (create_all_type_units, add_type_unit)
10563 (lookup_dwo_signatured_type, lookup_signatured_type)
10564 (process_skeletonless_type_unit): Update.
10565 (create_debug_type_hash_table, create_debug_types_hash_table):
10566 Change type of types_htab.
10567 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10568 htab_up. Don't allocate on obstack.
10569 (create_cus_hash_table): Change type of cus_htab parameter.
10570 (struct dwo_file) <cus, tus>: Now htab_up.
10571 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10572 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10573 (queue_and_load_all_dwo_tus): Update.
10574 * dwarf2/index-write.c (write_gdbindex): Update.
10575 (write_debug_names): Update.
10576
10577 2020-02-08 Tom Tromey <tom@tromey.com>
10578
10579 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10580 dwarf2/read.c. Remove "next" member. Add constructor ntad
10581 destructor.
10582 (struct dwarf2_per_objfile) <queue>: New member.
10583 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10584 dwarf2/read.h.
10585 (dwarf2_queue, dwarf2_queue_tail): Remove.
10586 (class dwarf2_queue_guard): Add parameter to constructor. Use
10587 DISABLE_COPY_AND_ASSIGN.
10588 <m_per_objfile>: New member.
10589 <~dwarf2_queue_guard>: Rewrite.
10590 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10591 Update.
10592 (~dwarf2_queue_item): New.
10593
10594 2020-02-08 Tom Tromey <tom@tromey.com>
10595
10596 * dwarf2/read.c (struct die_info) <has_children>: New member.
10597 (dw2_get_file_names_reader): Remove has_children.
10598 (dw2_get_file_names): Update.
10599 (read_cutu_die_from_dwo): Remove has_children.
10600 (cutu_reader::init_tu_and_read_dwo_dies)
10601 (cutu_reader::cutu_reader): Update.
10602 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10603 Remove has_children.
10604 (build_type_psymtabs_1, process_skeletonless_type_unit)
10605 (load_partial_comp_unit, load_full_comp_unit): Update.
10606 (create_dwo_cu_reader): Remove has_children.
10607 (create_cus_hash_table, read_die_and_children): Update.
10608 (read_full_die_1,read_full_die): Remove has_children.
10609 (read_signatured_type): Update.
10610 (class cutu_reader) <has_children>: Remove.
10611
10612 2020-02-08 Tom Tromey <tom@tromey.com>
10613
10614 * dwarf2/expr.c: Rename from dwarf2expr.c.
10615 * dwarf2/expr.h: Rename from dwarf2expr.h.
10616 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10617 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10618 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10619 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10620 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10621 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10622 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10623 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10624 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10625 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10626 * dwarf2/loc.c: Rename from dwarf2loc.c.
10627 * dwarf2/loc.h: Rename from dwarf2loc.h.
10628 * dwarf2/read.c: Rename from dwarf2read.c.
10629 * dwarf2/read.h: Rename from dwarf2read.h.
10630 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10631 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10632 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10633 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10634 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10635 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10636 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10637 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10638 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10639 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10640 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10641 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10642 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10643 Update.
10644 * Makefile.in (COMMON_SFILES): Update.
10645 (HFILES_NO_SRCDIR): Update.
10646
10647 2020-02-08 Tom Tromey <tom@tromey.com>
10648
10649 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10650 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10651
10652 2020-02-08 Tom Tromey <tom@tromey.com>
10653
10654 * dwarf2read.h (struct die_info): Don't declare.
10655
10656 2020-02-08 Tom Tromey <tom@tromey.com>
10657
10658 * dwarf2read.h (die_info_ptr): Remove typedef.
10659
10660 2020-02-08 Tom Tromey <tom@tromey.com>
10661
10662 * dwarf2read.c (read_call_site_scope)
10663 (handle_data_member_location, dwarf2_add_member_fn)
10664 (mark_common_block_symbol_computed, read_common_block)
10665 (attr_to_dynamic_prop, partial_die_info::read)
10666 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10667 (dwarf2_symbol_mark_computed, set_die_type): Update.
10668 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10669 method.
10670 (attr_form_is_block): Don't declare.
10671 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10672
10673 2020-02-08 Tom Tromey <tom@tromey.com>
10674
10675 * dwarf2read.c (dwarf2_find_base_address, )
10676 (read_call_site_scope, rust_containing_type)
10677 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10678 (handle_data_member_location, dwarf2_add_member_fn)
10679 (get_alignment, read_structure_type, process_structure_scope)
10680 (mark_common_block_symbol_computed, read_common_block)
10681 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10682 (partial_die_info::read, read_attribute_value, new_symbol)
10683 (lookup_die_type, dwarf2_get_ref_die_offset)
10684 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10685 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10686 (dwarf2_symbol_mark_computed): Update.
10687 * dwarf2/attribute.h (struct attribute) <value_as_address,
10688 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10689 methods.
10690 (value_as_address, attr_form_is_section_offset)
10691 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10692 * dwarf2/attribute.c (attribute::value_as_address)
10693 (attribute::form_is_section_offset, attribute::form_is_constant)
10694 (attribute::form_is_ref): Now methods.
10695
10696 2020-02-08 Tom Tromey <tom@tromey.com>
10697
10698 * dwarf2read.c (struct attribute, DW_STRING)
10699 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10700 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10701 (attr_form_is_block, attr_form_is_section_offset)
10702 (attr_form_is_constant, attr_form_is_ref): Move.
10703 * dwarf2/attribute.h: New file.
10704 * dwarf2/attribute.c: New file, from dwarf2read.c.
10705 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10706
10707 2020-02-08 Tom Tromey <tom@tromey.com>
10708
10709 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10710 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10711 Move.
10712 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10713 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10714 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10715 abbrev.c.
10716 * dwarf2/abbrev.h: New file.
10717 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10718 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10719
10720 2020-02-08 Tom Tromey <tom@tromey.com>
10721
10722 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10723 (dwarf2_section_size, dwarf2_get_section_info)
10724 (create_signatured_type_table_from_debug_names)
10725 (create_addrmap_from_aranges, read_debug_names_from_section)
10726 (get_gdb_index_contents_from_section, read_comp_unit_head)
10727 (error_check_comp_unit_head, read_abbrev_offset)
10728 (create_debug_type_hash_table, init_cu_die_reader)
10729 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10730 (read_comp_units_from_section, create_cus_hash_table)
10731 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10732 (create_dwp_v2_section, dwarf2_rnglists_process)
10733 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10734 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10735 (read_indirect_string_from_dwz, read_addr_index_1)
10736 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10737 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10738 (fill_in_loclist_baton): Update.
10739 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10740 get_containing_section, get_bfd_owner, get_bfd_section,
10741 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10742 (dwarf2_read_section, get_section_name, get_section_file_name)
10743 (get_containing_section, get_section_bfd_owner)
10744 (get_section_bfd_section, get_section_name, get_section_file_name)
10745 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10746 declare.
10747 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10748 (dwarf2_section_info::get_bfd_owner)
10749 (dwarf2_section_info::get_bfd_section)
10750 (dwarf2_section_info::get_name)
10751 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10752 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10753 (dwarf2_section_info::read): Now methods.
10754 * dwarf-index-write.c (class debug_names): Update.
10755
10756 2020-02-08 Tom Tromey <tom@tromey.com>
10757
10758 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10759 Move to dwarf2/section.h.
10760 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10761 (get_section_bfd_section, get_section_name)
10762 (get_section_file_name, get_section_id, get_section_flags)
10763 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10764 dwarf2/section.c.
10765 * dwarf2/section.h: New file.
10766 * dwarf2/section.c: New file, from dwarf2read.c.
10767 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10768
10769 2020-02-08 Tom Tromey <tom@tromey.com>
10770
10771 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10772 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10773 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10774 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10775 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10776 * dwarf2/leb.h: New file, from dwarf2read.c.
10777 * dwarf2/leb.c: New file, from dwarf2read.c.
10778 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10779 Remove.
10780 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10781 (COMMON_SFILES): Add dwarf2/leb.c.
10782
10783 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10784
10785 GDB 9.1 released.
10786
10787 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10788
10789 PR gdb/25190:
10790 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10791 * gdb/remote.c (remote_console_output): Update.
10792 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10793 (ui_file_puts): ...this.
10794 * gdb/ui-file.h (ui_file_puts): Add declaration.
10795 * gdb/utils.c (emit_style_escape): Update.
10796 (flush_wrap_buffer): Update.
10797 (fputs_maybe_filtered): Update.
10798 (fputs_unfiltered): Add function.
10799
10800 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10801
10802 * gdb/event-loop.c (gdb_wait_for_event): Update.
10803 * gdb/printcmd.c (printf_command): Update.
10804 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10805 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10806 (gdb_os_flush_stderr): Update.
10807 * gdb/remote.c (remote_console_output): Update.
10808 * gdb/ui-file.c (gdb_flush): Rename to...
10809 (ui_file_flush): ...this.
10810 (stderr_file::write): Update.
10811 (stderr_file::puts): Update.
10812 * gdb/ui-file.h (gdb_flush): Rename to...
10813 (ui_file_flush): ...this.
10814 * gdb/utils.c (gdb_flush): Add function.
10815 * gdb/utils.h (gdb_flush): Add declaration.
10816
10817 2020-02-07 Tom Tromey <tromey@adacore.com>
10818
10819 PR breakpoints/24915:
10820 * source.c (find_and_open_source): Do not check basenames_may_differ.
10821
10822 2020-02-07 Tom Tromey <tom@tromey.com>
10823
10824 * README: Update gdbserver documentation.
10825 * gdbserver: Move to top level.
10826 * configure.tgt (build_gdbserver): Remove.
10827 * configure.ac: Remove --enable-gdbserver.
10828 * configure: Rebuild.
10829 * Makefile.in (distclean): Don't mention gdbserver.
10830
10831 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10832
10833 * source-cache.c (source_cache::ensure): Surround
10834 get_plain_source_lines with a try/catch.
10835 (source_cache::get_line_charpos): Get rid of try/catch
10836 and only check for the return value of "ensure".
10837 * tui/tui-source.c (tui_source_window::set_contents):
10838 Simplify "nlines" calculation.
10839
10840 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10841
10842 * MAINTAINERS (Write After Approval): Add myself.
10843
10844 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10845
10846 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10847 function call.
10848
10849 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10850
10851 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10852
10853 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10854
10855 * nat/riscv-linux-tdesc.h: New file.
10856 * nat/riscv-linux-tdesc.c: New file, taking code from...
10857 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10858 ... here.
10859 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10860 NATDEPFILES.
10861
10862 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10863
10864 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10865 we don't set the fake simulator ptid to the null_ptid.
10866
10867 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10868
10869 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10870 * gdbthread.h (class thread_info) <resumed>: Likewise.
10871 * infrun.c (resume_1): Likewise.
10872 (proceed): Likewise.
10873 (infrun_thread_stop_requested): Likewise.
10874 (stop_all_threads): Likewise.
10875 (handle_inferior_event): Likewise.
10876 (restart_threads): Likewise.
10877 (finish_step_over): Likewise.
10878 (keep_going_stepped_thread): Likewise.
10879 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10880 (linux_handle_extended_wait): Likewise.
10881 * record-btrace.c (get_thread_current_frame_id): Likewise.
10882 * record-full.c (record_full_wait_1): Likewise.
10883 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10884 * target.c (target_resume): Likewise.
10885 * thread.c (set_running_thread): Likewise.
10886
10887 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10888
10889 * f-valprint.c (f77_print_array_1): Changed datatype of index
10890 variable to LONGEST from int to enable it to contain bound
10891 values correctly.
10892
10893 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10894
10895 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10896 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10897 offsets according to FLEN determined.
10898 (riscv_linux_nat_target::read_description): Determine FLEN
10899 dynamically.
10900 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10901 according to FLEN determined.
10902 (riscv_linux_nat_target::store_registers): Likewise.
10903
10904 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10905
10906 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10907 when reg->group is empty and reggroup is not.
10908
10909 2020-01-31 Tom Tromey <tromey@adacore.com>
10910
10911 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10912 Call beneath target's mourn_inferior after unpushing.
10913
10914 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10915
10916 PR tui/9765
10917 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10918 have enough lines to fill the screen, still return the lowest
10919 address we found.
10920
10921 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10922
10923 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10924 '-', '<', and '>' commands.
10925
10926 2020-01-29 Pedro Alves <palves@redhat.com>
10927 Sergio Durigan Junior <sergiodj@redhat.com>
10928
10929 * infcmd.c (construct_inferior_arguments): Assert that
10930 'argc' is greater than 0.
10931
10932 2020-01-29 Luis Machado <luis.machado@linaro.org>
10933
10934 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10935 (BRK_INSN_MASK): Define to 0xd4200000.
10936 (aarch64_program_breakpoint_here_p): New function.
10937 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10938 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10939 breakpoint.c.
10940 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10941 breakpoint.h
10942 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10943 call gdbarch_program_breakpoint_here_p.
10944 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10945 default_program_breakpoint_here_p, changed return type to bool and
10946 simplified.
10947 * breakpoint.h (program_breakpoint_here): Moved prototype to
10948 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10949 return type to bool.
10950 * gdbarch.c: Regenerate.
10951 * gdbarch.h: Regenerate.
10952 * gdbarch.sh (program_breakpoint_here_p): New method.
10953 * infrun.c (handle_signal_stop): Call
10954 gdbarch_program_breakpoint_here_p.
10955
10956 2020-01-26 Tom Tromey <tom@tromey.com>
10957
10958 * ctfread.c (struct ctf_fp_info): Reindent.
10959 (_initialize_ctfread): Remove.
10960
10961 2020-01-26 Tom Tromey <tom@tromey.com>
10962
10963 * psymtab.c (partial_map_expand_apply)
10964 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10965 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10966 (psym_print_stats, psym_expand_symtabs_for_function)
10967 (psym_map_symbol_filenames, psym_map_matching_symbols)
10968 (psym_expand_symtabs_matching)
10969 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10970 (maintenance_check_psymtabs): Use new methods.
10971 * psympriv.h (struct partial_symtab) <readin_p,
10972 get_compunit_symtab>: New methods.
10973 <readin, compunit_symtab>: Remove members.
10974 (struct standard_psymtab): New.
10975 (struct legacy_psymtab): Derive from standard_psymtab.
10976 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10977 standard_psymtab.
10978 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10979
10980 2020-01-26 Tom Tromey <tom@tromey.com>
10981
10982 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10983 read_dependencies. Add assert.
10984 * psymtab.c (partial_symtab::read_dependencies): New method.
10985 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10986 method.
10987 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10988 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10989 read_dependencies.
10990 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10991 Add assert.
10992
10993 2020-01-26 Tom Tromey <tom@tromey.com>
10994
10995 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10996 Call expand_psymtab.
10997 (xcoff_read_symtab): Call expand_psymtab.
10998 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10999 legacy_expand_psymtab.
11000 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11001 method.
11002 (struct legacy_psymtab) <expand_psymtab>: Implement.
11003 <legacy_expand_psymtab>: New member.
11004 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11005 (parse_partial_symbols): Set legacy_expand_psymtab.
11006 (psymtab_to_symtab_1): Change argument order. Call
11007 expand_psymtab.
11008 (new_psymtab): Set legacy_expand_psymtab.
11009 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11010 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11011 expand_psymtab.
11012 (dwarf2_psymtab::expand_psymtab): Rename from
11013 psymtab_to_symtab_1. Call expand_psymtab.
11014 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11015 (dbx_end_psymtab): Likewise.
11016 (dbx_psymtab_to_symtab_1): Change argument order. Call
11017 expand_psymtab.
11018 (dbx_read_symtab): Call expand_psymtab.
11019 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11020 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11021 (ctf_psymtab::read_symtab): Call expand_psymtab.
11022
11023 2020-01-26 Tom Tromey <tom@tromey.com>
11024
11025 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11026 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11027 messages.
11028 * mdebugread.c (mdebug_read_symtab): Remove prints.
11029 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11030 assert.
11031 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11032
11033 2020-01-26 Tom Tromey <tom@tromey.com>
11034
11035 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11036 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11037 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11038 legacy_symtab.
11039 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11040 * psymtab.c (psymtab_to_symtab): Call method.
11041 (dump_psymtab): Update.
11042 * psympriv.h (struct partial_symtab): Add virtual destructor.
11043 <read_symtab>: New method.
11044 (struct legacy_symtab): New.
11045 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11046 (struct pst_map) <pst>: Now a legacy_psymtab.
11047 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11048 (new_psymtab): Use legacy_psymtab.
11049 * dwarf2read.h (struct dwarf2_psymtab): New.
11050 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11051 * dwarf2read.c (dwarf2_create_include_psymtab)
11052 (dwarf2_build_include_psymtabs, create_type_unit_group)
11053 (create_partial_symtab, process_psymtab_comp_unit_reader)
11054 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11055 (set_partial_user): Use dwarf2_psymtab.
11056 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11057 (psymtab_to_symtab_1, process_full_comp_unit)
11058 (process_full_type_unit, dwarf2_ranges_read)
11059 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11060 (dwarf_decode_lines): Use dwarf2_psymtab.
11061 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11062 (add_address_entry_worker, write_one_signatured_type)
11063 (recursively_count_psymbols, recursively_write_psymbols)
11064 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11065 (write_debug_names): Likewise.
11066 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11067 <pst>: Now a legacy_psymtab.
11068 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11069 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11070 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11071 * ctfread.c (struct ctf_psymtab): New.
11072 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11073 ctf_psymtab.
11074 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11075 (create_partial_symtab): Return a ctf_psymtab.
11076 (scan_partial_symbols): Update.
11077
11078 2020-01-26 Tom Tromey <tom@tromey.com>
11079
11080 * xcoffread.c (xcoff_start_psymtab): Use new.
11081 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11082 renamed from start_psymtab_common.
11083 * psympriv.h (struct partial_symtab): Add new constructor.
11084 (start_psymtab_common): Don't declare.
11085 * mdebugread.c (parse_partial_symbols): Use new.
11086 * dwarf2read.c (create_partial_symtab): Use new.
11087 * dbxread.c (start_psymtab): Use new.
11088 * ctfread.c (create_partial_symtab): Use new.
11089
11090 2020-01-26 Tom Tromey <tom@tromey.com>
11091
11092 * xcoffread.c (xcoff_end_psymtab): Use new.
11093 * psymtab.c (start_psymtab_common): Use new.
11094 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11095 Update.
11096 * psympriv.h (struct partial_symtab): Add parameters to
11097 constructor. Don't inline.
11098 (allocate_psymtab): Don't declare.
11099 * mdebugread.c (new_psymtab): Use new.
11100 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11101 * dbxread.c (dbx_end_psymtab): Use new.
11102
11103 2020-01-26 Tom Tromey <tom@tromey.com>
11104
11105 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11106 allocate_psymtab. Update documentation.
11107 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11108 allocate_psymtab. Do not use new.
11109 (allocate_psymtab): Use new. Update.
11110
11111 2020-01-26 Tom Tromey <tom@tromey.com>
11112
11113 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11114 * psymtab.c (psym_print_stats): Update.
11115 * psympriv.h (struct partial_symtab) <readin,
11116 psymtabs_addrmap_supported, anonymous>: Now bool.
11117 * mdebugread.c (psymtab_to_symtab_1): Update.
11118 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11119 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11120 (process_full_comp_unit, process_full_type_unit): Update.
11121 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11122 * ctfread.c (psymtab_to_symtab): Update.
11123
11124 2020-01-26 Tom Tromey <tom@tromey.com>
11125
11126 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11127 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11128 * psymtab.c (psymtab_storage): Delete psymtabs.
11129 (psymtab_storage::allocate_psymtab): Use new.
11130 (psymtab_storage::discard_psymtab): Use delete.
11131 * psympriv.h (struct partial_symtab): Add constructor and
11132 initializers.
11133
11134 2020-01-26 Tom Tromey <tom@tromey.com>
11135
11136 * machoread.c: Do not include psympriv.h.
11137
11138 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11139
11140 * NEWS: Mention the new option and the set/show commands.
11141
11142 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11143
11144 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11145 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11146 (validate_exec_file): New variables, enums, functions.
11147 (exec_file_locate_attach, print_section_info): Style the filenames.
11148 (_initialize_exec): Install show_exec_file_mismatch_command and
11149 set_exec_file_mismatch_command.
11150 * gdbcore.h (validate_exec_file): Declare.
11151 * infcmd.c (attach_command): Call validate_exec_file.
11152 * remote.c ( remote_target::remote_add_inferior): Likewise.
11153
11154 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11155
11156 * frame.c (find_frame_sal): Move call to get_next_frame into more
11157 inner scope.
11158 * inline-frame.c (inilne_state) <inline_state>: Update argument
11159 types.
11160 (inilne_state) <skipped_symbol>: Rename to...
11161 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11162 (skip_inline_frames): Build vector of skipped symbols and use this
11163 to reate the inline_state.
11164 (inline_skipped_symbol): Add a comment and some assertions, fetch
11165 skipped symbol from the list.
11166
11167 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11168
11169 * buildsym.c (lte_is_less_than): Delete.
11170 (buildsym_compunit::end_symtab_with_blockvector): Create local
11171 lambda function to sort line table entries, and use
11172 std::stable_sort instead of std::sort.
11173 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11174 markers when looking for a previous line.
11175
11176 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11177
11178 * dwarf2read.c (lnp_state_machine::record_line): Include
11179 end_sequence parameter in debug print out. Record the line if we
11180 are at an end_sequence marker even if it's not the start of a
11181 statement.
11182 * symmisc.c (maintenance_print_one_line_table): Print end of
11183 sequence markers with 'END' not '0'.
11184
11185 2020-01-24 Pedro Alves <palves@redhat.com>
11186
11187 PR gdb/25410
11188 * thread.c (scoped_restore_current_thread::restore): Use
11189 switch_to_inferior_no_thread.
11190 * exec.c: Include "progspace-and-thread.h".
11191 (add_target_sections, remove_target_sections):
11192 scoped_restore_current_pspace_and_thread instead of
11193 scoped_restore_current_thread.
11194 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11195 and aspace to the inferior before calling clone_program_space.
11196 Remove stale comment.
11197
11198 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11199
11200 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11201 (arm_netbsd_nat_target::fetch_registers): ...this.
11202 (arm_nbsd_nat_target::store_registers): Rename to...
11203 (arm_netbsd_nat_target::store_registers): ...this.
11204
11205 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11206
11207 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11208 register_t.
11209
11210 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11211
11212 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11213 Update comment.
11214 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11215 Likewise.
11216 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11217 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11218 the correct replacement (iterate_over_regset_sections).
11219 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11220 Update comment.
11221
11222 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11223
11224 PR gdb/23718
11225 * gdb/python/python.c (execute_gdb_command): Call
11226 async_enable_stdin in catch block.
11227
11228 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11229
11230 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11231 SWITCH_THRU_ALL_UIS.
11232
11233 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11234
11235 PR tui/9765
11236 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11237 comment, add extra parameter, and update to store previous symbol
11238 when appropriate.
11239 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11240 add extra parameter.
11241 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11242 remove unneeded parameter, add try/catch around gdb_print_insn,
11243 rewrite to add items to asm_lines vector.
11244 (tui_find_backward_disassembly_start_address): New function.
11245 (tui_find_disassembly_address): Updated throughout.
11246 (tui_disasm_window::set_contents): Update for changes to
11247 tui_disassemble.
11248 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11249 number of lines to scroll.
11250
11251 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11252
11253 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11254 (SECT_OFF_DATA): Likewise.
11255 (SECT_OFF_RODATA): Likewise.
11256 (SECT_OFF_TEXT): Likewise.
11257 (SECT_OFF_BSS): Likewise.
11258 (struct objfile) <text_section_offset, data_section_offset>: New
11259 methods.
11260 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11261 objfile::text_section_offset.
11262 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11263 * coffread.c (coff_symtab_read): Likewise.
11264 (enter_linenos): Likewise.
11265 (process_coff_symbol): Likewise.
11266 * ctfread.c (get_objfile_text_range): Likewise.
11267 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11268 Use objfile::data_section_offset.
11269 * dwarf2-frame.c (execute_cfa_program): Use
11270 objfile::text_section_offset.
11271 (dwarf2_frame_find_fde): Likewise.
11272 * dwarf2read.c (create_addrmap_from_index): Likewise.
11273 (create_addrmap_from_aranges): Likewise.
11274 (dw2_find_pc_sect_compunit_symtab): Likewise.
11275 (process_psymtab_comp_unit_reader): Likewise.
11276 (add_partial_symbol): Likewise.
11277 (add_partial_subprogram): Likewise.
11278 (process_full_comp_unit): Likewise.
11279 (read_file_scope): Likewise.
11280 (read_func_scope): Likewise.
11281 (read_lexical_block_scope): Likewise.
11282 (read_call_site_scope): Likewise.
11283 (dwarf2_rnglists_process): Likewise.
11284 (dwarf2_ranges_process): Likewise.
11285 (dwarf2_ranges_read): Likewise.
11286 (dwarf_decode_lines_1): Likewise.
11287 (new_symbol): Likewise.
11288 (dwarf2_fetch_die_loc_sect_off): Likewise.
11289 (dwarf2_per_cu_text_offset): Likewise.
11290 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11291 * hppa-tdep.c (read_unwind_info): Likewise.
11292 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11293 * psympriv.h (struct partial_symtab): Likewise.
11294 * psymtab.c (find_pc_sect_psymtab): Likewise.
11295 * solib-svr4.c (enable_break): Likewise.
11296 * stap-probe.c (relocate_address): Use
11297 objfile::data_section_offset.
11298 * xcoffread.c (enter_line_range): Use
11299 objfile::text_section_offset.
11300 (read_xcoff_symtab): Likewise.
11301
11302 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11303
11304 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11305 declaration to narrower scopes.
11306
11307 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11308
11309 * darwin-nat.h (struct darwin_exception_msg, enum
11310 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11311 Move up.
11312 (class darwin_nat_target) <wait_1, check_new_threads,
11313 decode_exception_message, decode_message, stop_inferior,
11314 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11315 * darwin-nat.c (darwin_check_new_threads): Rename to...
11316 (darwin_nat_target::check_new_threads): ... this.
11317 (darwin_suspend_inferior_it): Remove.
11318 (darwin_decode_exception_message): Rename to...
11319 (darwin_nat_target::decode_exception_message): ... this.
11320 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11321 (darwin_decode_message): Rename to...
11322 (darwin_nat_target::decode_message): ... this.
11323 (cancel_breakpoint): Rename to...
11324 (darwin_nat_target::cancel_breakpoint): ... this.
11325 (darwin_wait): Rename to...
11326 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11327 instead of iterate_over_inferiors.
11328 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11329 (darwin_stop_inferior): Rename to...
11330 (darwin_nat_target::stop_inferior): ... this.
11331 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11332 (darwin_init_thread_list): Rename to...
11333 (darwin_nat_target::init_thread_list): ... this.
11334 (darwin_ptrace_him): Rename to...
11335 (darwin_nat_target::ptrace_him): ... this.
11336 (darwin_nat_target::create_inferior): Pass lambda function to
11337 fork_inferior.
11338 (darwin_nat_target::detach): Call stop_inferior instead of
11339 darwin_stop_inferior.
11340 * fork-inferior.h (fork_inferior): Change init_trace_fun
11341 parameter to gdb::function_view.
11342 * fork-inferior.c (fork_inferior): Likewise.
11343
11344 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11345
11346 * i386-cygwin-tdep.c (core_process_module_section): Update.
11347 * windows-nat.c (struct lm_info_windows): Add text_offset.
11348 (windows_xfer_shared_libraries): Update.
11349 * windows-tdep.c (windows_xfer_shared_library):
11350 Add text_offset_cached argument.
11351 * windows-tdep.h (windows_xfer_shared_library): Update.
11352
11353 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11354
11355 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11356
11357 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11358
11359 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11360 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11361 replace with range-based for.
11362 (gdbsim_interrupt_inferior): Remove.
11363 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11364 with a range-based for. Inline code from
11365 gdbsim_interrupt_inferior.
11366
11367 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11368
11369 * infrun.c (proceed): Fix indentation.
11370
11371 2020-01-21 Tom Tromey <tromey@adacore.com>
11372
11373 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11374 * python/python.c (python_extension_ops): Update.
11375 (gdbpy_colorize): New function.
11376 * python/lib/gdb/__init__.py (colorize): New function.
11377 * extension.h (ext_lang_colorize): Declare.
11378 * extension.c (ext_lang_colorize): New function.
11379 * extension-priv.h (struct extension_language_ops) <colorize>: New
11380 member.
11381 * cli/cli-style.c (_initialize_cli_style): Update help text.
11382
11383 2020-01-21 Luis Machado <luis.machado@linaro.org>
11384
11385 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11386 <cond>: Change type to bool.
11387 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11388 (aarch64_displaced_step_cb): Likewise.
11389 (aarch64_displaced_step_tb): Likewise.
11390
11391 2020-01-21 Luis Machado <luis.machado@linaro.org>
11392
11393 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11394 output.
11395
11396 2020-01-21 Luis Machado <luis.machado@linaro.org>
11397
11398 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11399 <pc_adjust>: Adjust the documentation.
11400 (aarch64_displaced_step_fixup): Check if PC really moved before
11401 adjusting it.
11402
11403 2020-01-19 Tom Tromey <tom@tromey.com>
11404
11405 * disasm.c (~gdb_disassembler): New destructor.
11406 (gdb_buffered_insn_length): Call disassemble_free_target.
11407 * disasm.h (class gdb_disassembler): Declare destructor. Use
11408 DISABLE_COPY_AND_ASSIGN.
11409
11410 2020-01-19 Tom Tromey <tom@tromey.com>
11411
11412 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11413 (die_reader_func_ftype): Remove.
11414 (cutu_reader): New class.
11415 (dw2_get_file_names_reader): Remove "data" parameter.
11416 (dw2_get_file_names): Use cutu_reader.
11417 (create_debug_type_hash_table): Update.
11418 (read_cutu_die_from_dwo): Update comment.
11419 (lookup_dwo_unit): Add dwo_name parameter.
11420 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11421 die_reader_func_ftype and data parameters.
11422 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11423 Remove die_reader_func_ftype and data parameters.
11424 (~cutu_reader): New; from init_cutu_and_read_dies.
11425 (cutu_reader::cutu_reader): Rename from
11426 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11427 and data parameters.
11428 (init_cutu_and_read_dies_simple): Remove.
11429 (struct process_psymtab_comp_unit_data): Remove.
11430 (process_psymtab_comp_unit_reader): Remove data parameter; add
11431 want_partial_unit and pretend_language parameters.
11432 (process_psymtab_comp_unit): Use cutu_reader.
11433 (build_type_psymtabs_reader): Remove data parameter.
11434 (build_type_psymtabs_1): Use cutu_reader.
11435 (process_skeletonless_type_unit): Likewise.
11436 (load_partial_comp_unit_reader): Remove.
11437 (load_partial_comp_unit): Use cutu_reader.
11438 (load_full_comp_unit_reader): Remove.
11439 (load_full_comp_unit): Use cutu_reader.
11440 (struct create_dwo_cu_data): Remove.
11441 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11442 dwo_unit parameters.
11443 (create_cus_hash_table): Use cutu_reader.
11444 (struct dwarf2_read_addr_index_data): Remove.
11445 (dwarf2_read_addr_index_reader): Remove.
11446 (dwarf2_read_addr_index): Use cutu_reader.
11447 (read_signatured_type_reader): Remove.
11448 (read_signatured_type): Use cutu_reader.
11449
11450 2020-01-19 Tom Tromey <tom@tromey.com>
11451
11452 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11453 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11454 (tui_wrefresh): Declare.
11455 * tui/tui-wingeneral.c (suppress_output): New global.
11456 (tui_suppress_output, ~tui_suppress_output): New constructor and
11457 destructor.
11458 (tui_wrefresh): New function.
11459 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11460 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11461 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11462 method.
11463 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11464 tui_wrefresh.
11465 (tui_data_window::no_refresh): New method.
11466 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11467 (tui_reg_command): Use tui_suppress_output
11468 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11469 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11470 method.
11471 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11472
11473 2020-01-19 Tom Tromey <tom@tromey.com>
11474
11475 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11476 Handle case where symtab is null.
11477
11478 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11479
11480 * linux-fork.c (one_fork_p): Simplify.
11481
11482 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11483
11484 * top.c (struct qt_args): Remove.
11485 (kill_or_detach): Change return type to void, replace `void *`
11486 parameter with a proper one.
11487 (print_inferior_quit_action): Likewise.
11488 (quit_confirm): Use range-based for loop to iterate over inferiors.
11489 (quit_force): Likewise.
11490
11491 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11492
11493 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11494 `void *` parameter with proper parameters.
11495 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11496 (print_one_inferior): Change return type to void, replace `void *`
11497 parameter with proper parameters.
11498 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11499 inferiors.
11500 (get_other_inferior): Remove.
11501 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11502 inferiors.
11503
11504 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11505
11506 * mi/mi-interp.c (report_initial_inferior): Remove.
11507 (mi_interp::init): Use range-based for to iterate over inferiors.
11508
11509 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11510
11511 * python/py-inferior.c (build_inferior_list): Remove.
11512 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11513
11514 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11515
11516 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11517 (btrace_stitch_trace): Likewise.
11518 * charset.c (intermediate_encoding): Likewise (vaild).
11519 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11520 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11521 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11522
11523 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11524
11525 * windows-tdep.c (windows_get_tlb_type):
11526 Add rtl_user_process_parameters type.
11527
11528 2020-01-16 Pedro Alves <palves@redhat.com>
11529 Norbert Lange <nolange79@gmail.com>
11530
11531 PR build/24805
11532 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11533 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11534 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11535 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11536 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11537 (ps_plog): Redeclare exported functions with default visibility.
11538
11539 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11540
11541 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11542 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11543
11544 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11545
11546 * infcmd.c (post_create_inferior): Use get_thread_regcache
11547 instead of get_current_regcache.
11548
11549 2020-01-14 Tom Tromey <tom@tromey.com>
11550
11551 PR symtab/12535:
11552 * python/python.c (gdbpy_decode_line): Treat empty string the same
11553 as no argument.
11554
11555 2020-01-14 Tom Tromey <tom@tromey.com>
11556
11557 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11558
11559 2020-01-14 Tom Tromey <tom@tromey.com>
11560
11561 * nat/linux-btrace.c: Don't include <config.h>.
11562 * nat/linux-ptrace.c: Don't include <config.h>.
11563 * nat/x86-linux-dregs.c: Don't include <config.h>.
11564
11565 2020-01-14 Tom Tromey <tom@tromey.com>
11566
11567 * configure: Rebuild.
11568 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11569
11570 2020-01-14 Tom Tromey <tom@tromey.com>
11571
11572 * nat/x86-linux-dregs.c: Include configh.h.
11573 * nat/linux-ptrace.c: Include configh.h.
11574 * nat/linux-btrace.c: Include configh.h.
11575 * defs.h: Include config.h, bfd.h.
11576 * configure.ac: Don't source common.host.
11577 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11578 * configure: Rebuild.
11579 * acinclude.m4: Update path.
11580 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11581 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11582 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11583 (CLIBS): Add LIBSUPPORT.
11584 (CDEPS): Likewise.
11585 (COMMON_SFILES): Remove gdbsupport files.
11586 (HFILES_NO_SRCDIR): Likewise.
11587 (stamp-version): Update path to create-version.sh.
11588 (ALLDEPFILES): Remove gdbsupport files.
11589
11590 2020-01-14 Tom Tromey <tom@tromey.com>
11591
11592 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11593 USE_WIN32API when needed.
11594 * configure.ac (USE_WIN32API): Don't define.
11595 (WIN32LIBS): Use WIN32APILIBS.
11596 * configure: Rebuild.
11597
11598 2020-01-14 Tom Tromey <tom@tromey.com>
11599
11600 * configure: Rebuild.
11601 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11602
11603 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11604
11605 * skip.c (skip_function_command): Make skip w/o arguments use the
11606 name of the inlined function if pc is inside any inlined function.
11607
11608 2020-01-14 Luis Machado <luis.machado@linaro.org>
11609
11610 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11611 * infrun.c (resume_1): Likewise.
11612 (handle_inferior_event): Remove stale comment.
11613 * linux-nat.c (linux_nat_target::resume): Update comments.
11614 (save_stop_reason): Likewise.
11615 (linux_nat_filter_event): Likewise.
11616 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11617
11618 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11619
11620 * elfread.c (record_minimal_symbol): Set section index to 0 for
11621 non-allocatable sections.
11622
11623
11624 2020-01-13 Ali Tamur <tamur@google.com>
11625
11626 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11627 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11628 to gdb::optional. Update comments.
11629 (dwo_file): Update comments.
11630 (read_attribute): Update API to take an additional out parameter,
11631 need_reprocess. This is used to mark attributes that need other
11632 attributes (e.g. str_offsets_base) for correct computation which may not
11633 have been read yet.
11634 (read_attribute_reprocess): New function declaration.
11635 (read_addr_index): Likewise.
11636 (read_dwo_str_index): Likewise.
11637 (read_stub_str_index): Likewise.
11638 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11639 (lookup_addr_base): New function definition.
11640 (lookup_ranges_base): Likewise.
11641 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11642 lookup_ranges_base.
11643 (init_cutu_and_read_dies): Update comments.
11644 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11645 unit. This is used to inherit parent's str_offsets_base and addr_base.
11646 Update comments.
11647 (init_cutu_and_read_dies_simple): Reflect API changes.
11648 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11649 (create_cus_hash_table): Change API to take parent compile unit.
11650 Reflect API changes.
11651 (open_and_init_dwo_file): Reflect API changes.
11652 (dwarf2_get_pc_bounds): Update comments.
11653 (dwarf2_record_block_ranges): Likewise.
11654 (read_full_die_1): Change implementation to reprocess attributes that
11655 need str_offsets_base and addr_base.
11656 (partial_die_info::read): Likewise.
11657 (read_attribute_reprocess): New function definition.
11658 (read_attribute_value): Change API to take an additional out parameter,
11659 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11660 when a non-dwo compile unit has index based attributes.
11661 (read_attribute): Reflect API changes.
11662 (read_addr_index_1): Reflect API changes. Update comments.
11663 (dwarf2_read_addr_index_data): Reflect API changes.
11664 (dwarf2_read_addr_index): Likewise.
11665 (read_str_index): Change API and implementation. This becomes a helper
11666 to be used by the new string index related methods. Update error
11667 message and comments.
11668 (read_dwo_str_index): New function definition.
11669 (read_stub_str_index): Likewise.
11670 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11671 * symfile.h (dwarf2_debug_sections): Likewise.
11672 * xcoffread.c (dwarf2_debug_sections): Likewise.
11673
11674 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11675
11676 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11677 core_reg_sect type to gdb_byte *.
11678 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11679 * cris-tdep.c (fetch_core_registers): Likewise.
11680 * corelow.c (core_target::get_core_register_section): Change
11681 type of `contents` to gdb::byte_vector.
11682
11683 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11684
11685 * tui/tui-wingeneral.c (box_win): Position the title in the center
11686 of the border.
11687
11688 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11689
11690 * corelow.c (core_target::get_core_register_section): Use
11691 std::vector instead of alloca.
11692
11693 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11694
11695 * warning.m4: Add -Wmissing-declarations to build_warnings.
11696 * configure: Re-generate.
11697
11698 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11699
11700 * python/python.c (init__gdb_module): Add declaration.
11701
11702 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11703
11704 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11705 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11706 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11707 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11708 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11709 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11710 * ada-exp.y (_initialize_ada_exp): Add declaration.
11711 * ada-lang.c (_initialize_ada_language): Add declaration.
11712 * ada-tasks.c (_initialize_tasks): Add declaration.
11713 * agent.c (_initialize_agent): Add declaration.
11714 * aix-thread.c (_initialize_aix_thread): Add declaration.
11715 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11716 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11717 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11718 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11719 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11720 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11721 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11722 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11723 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11724 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11725 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11726 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11727 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11728 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11729 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11730 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11731 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11732 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11733 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11734 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11735 * annotate.c (_initialize_annotate): Add declaration.
11736 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11737 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11738 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11739 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11740 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11741 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11742 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11743 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11744 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11745 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11746 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11747 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11748 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11749 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11750 * auto-load.c (_initialize_auto_load): Add declaration.
11751 * auxv.c (_initialize_auxv): Add declaration.
11752 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11753 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11754 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11755 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11756 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11757 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11758 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11759 * breakpoint.c (_initialize_breakpoint): Add declaration.
11760 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11761 * btrace.c (_initialize_btrace): Add declaration.
11762 * charset.c (_initialize_charset): Add declaration.
11763 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11764 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11765 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11766 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11767 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11768 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11769 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11770 * coffread.c (_initialize_coffread): Add declaration.
11771 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11772 * compile/compile.c (_initialize_compile): Add declaration.
11773 * complaints.c (_initialize_complaints): Add declaration.
11774 * completer.c (_initialize_completer): Add declaration.
11775 * copying.c (_initialize_copying): Add declaration.
11776 * corefile.c (_initialize_core): Add declaration.
11777 * corelow.c (_initialize_corelow): Add declaration.
11778 * cp-abi.c (_initialize_cp_abi): Add declaration.
11779 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11780 * cp-support.c (_initialize_cp_support): Add declaration.
11781 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11782 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11783 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11784 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11785 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11786 * ctfread.c (_initialize_ctfread): Add declaration.
11787 * d-lang.c (_initialize_d_language): Add declaration.
11788 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11789 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11790 * dbxread.c (_initialize_dbxread): Add declaration.
11791 * dcache.c (_initialize_dcache): Add declaration.
11792 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11793 * disasm.c (_initialize_disasm): Add declaration.
11794 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11795 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11796 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11797 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11798 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11799 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11800 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11801 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11802 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11803 * elfread.c (_initialize_elfread): Add declaration.
11804 * exec.c (_initialize_exec): Add declaration.
11805 * extension.c (_initialize_extension): Add declaration.
11806 * f-lang.c (_initialize_f_language): Add declaration.
11807 * f-valprint.c (_initialize_f_valprint): Add declaration.
11808 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11809 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11810 * filesystem.c (_initialize_filesystem): Add declaration.
11811 * findcmd.c (_initialize_mem_search): Add declaration.
11812 * findvar.c (_initialize_findvar): Add declaration.
11813 * fork-child.c (_initialize_fork_child): Add declaration.
11814 * frame-base.c (_initialize_frame_base): Add declaration.
11815 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11816 * frame.c (_initialize_frame): Add declaration.
11817 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11818 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11819 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11820 * gcore.c (_initialize_gcore): Add declaration.
11821 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11822 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11823 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11824 * gdbarch.c (_initialize_gdbarch): Add declaration.
11825 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11826 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11827 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11828 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11829 * go-lang.c (_initialize_go_language): Add declaration.
11830 * go32-nat.c (_initialize_go32_nat): Add declaration.
11831 * guile/guile.c (_initialize_guile): Add declaration.
11832 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11833 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11834 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11835 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11836 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11837 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11838 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11839 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11840 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11841 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11842 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11843 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11844 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11845 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11846 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11847 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11848 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11849 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11850 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11851 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11852 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11853 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11854 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11855 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11856 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11857 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11858 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11859 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11860 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11861 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11862 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11863 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11864 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11865 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11866 * infcall.c (_initialize_infcall): Add declaration.
11867 * infcmd.c (_initialize_infcmd): Add declaration.
11868 * inflow.c (_initialize_inflow): Add declaration.
11869 * infrun.c (_initialize_infrun): Add declaration.
11870 * interps.c (_initialize_interpreter): Add declaration.
11871 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11872 * jit.c (_initialize_jit): Add declaration.
11873 * language.c (_initialize_language): Add declaration.
11874 * linux-fork.c (_initialize_linux_fork): Add declaration.
11875 * linux-nat.c (_initialize_linux_nat): Add declaration.
11876 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11877 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11878 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11879 * m2-lang.c (_initialize_m2_language): Add declaration.
11880 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11881 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11882 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11883 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11884 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11885 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11886 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11887 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11888 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11889 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11890 * machoread.c (_initialize_machoread): Add declaration.
11891 * macrocmd.c (_initialize_macrocmd): Add declaration.
11892 * macroscope.c (_initialize_macroscope): Add declaration.
11893 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11894 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11895 * maint.c (_initialize_maint_cmds): Add declaration.
11896 * mdebugread.c (_initialize_mdebugread): Add declaration.
11897 * memattr.c (_initialize_mem): Add declaration.
11898 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11899 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11900 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11901 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11902 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11903 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11904 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11905 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11906 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11907 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11908 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11909 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11910 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11911 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11912 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11913 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11914 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11915 * mipsread.c (_initialize_mipsread): Add declaration.
11916 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11917 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11918 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11919 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11920 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11921 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11922 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11923 * nto-procfs.c (_initialize_procfs): Add declaration.
11924 * objc-lang.c (_initialize_objc_language): Add declaration.
11925 * observable.c (_initialize_observer): Add declaration.
11926 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11927 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11928 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11929 * osabi.c (_initialize_gdb_osabi): Add declaration.
11930 * osdata.c (_initialize_osdata): Add declaration.
11931 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11932 * parse.c (_initialize_parse): Add declaration.
11933 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11934 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11935 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11936 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11937 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11938 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11939 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11940 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11941 * printcmd.c (_initialize_printcmd): Add declaration.
11942 * probe.c (_initialize_probe): Add declaration.
11943 * proc-api.c (_initialize_proc_api): Add declaration.
11944 * proc-events.c (_initialize_proc_events): Add declaration.
11945 * proc-service.c (_initialize_proc_service): Add declaration.
11946 * procfs.c (_initialize_procfs): Add declaration.
11947 * producer.c (_initialize_producer): Add declaration.
11948 * psymtab.c (_initialize_psymtab): Add declaration.
11949 * python/python.c (_initialize_python): Add declaration.
11950 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11951 * record-btrace.c (_initialize_record_btrace): Add declaration.
11952 * record-full.c (_initialize_record_full): Add declaration.
11953 * record.c (_initialize_record): Add declaration.
11954 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11955 * regcache.c (_initialize_regcache): Add declaration.
11956 * reggroups.c (_initialize_reggroup): Add declaration.
11957 * remote-notif.c (_initialize_notif): Add declaration.
11958 * remote-sim.c (_initialize_remote_sim): Add declaration.
11959 * remote.c (_initialize_remote): Add declaration.
11960 * reverse.c (_initialize_reverse): Add declaration.
11961 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11962 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11963 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11964 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11965 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11966 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11967 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11968 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11969 Add declaration.
11970 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11971 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11972 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11973 * rust-exp.y (_initialize_rust_exp): Add declaration.
11974 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11975 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11976 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11977 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11978 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11979 * score-tdep.c (_initialize_score_tdep): Add declaration.
11980 * ser-go32.c (_initialize_ser_dos): Add declaration.
11981 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11982 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11983 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11984 * ser-uds.c (_initialize_ser_socket): Add declaration.
11985 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11986 * serial.c (_initialize_serial): Add declaration.
11987 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11988 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11989 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11990 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11991 * skip.c (_initialize_step_skip): Add declaration.
11992 * sol-thread.c (_initialize_sol_thread): Add declaration.
11993 * solib-aix.c (_initialize_solib_aix): Add declaration.
11994 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11995 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11996 * solib-frv.c (_initialize_frv_solib): Add declaration.
11997 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11998 * solib-target.c (_initialize_solib_target): Add declaration.
11999 * solib.c (_initialize_solib): Add declaration.
12000 * source-cache.c (_initialize_source_cache): Add declaration.
12001 * source.c (_initialize_source): Add declaration.
12002 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12003 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12004 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12005 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12006 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12007 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12008 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12009 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12010 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12011 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12012 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12013 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12014 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12015 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12016 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12017 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12018 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12019 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12020 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12021 * stabsread.c (_initialize_stabsread): Add declaration.
12022 * stack.c (_initialize_stack): Add declaration.
12023 * stap-probe.c (_initialize_stap_probe): Add declaration.
12024 * std-regs.c (_initialize_frame_reg): Add declaration.
12025 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12026 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12027 * symfile.c (_initialize_symfile): Add declaration.
12028 * symmisc.c (_initialize_symmisc): Add declaration.
12029 * symtab.c (_initialize_symtab): Add declaration.
12030 * target.c (_initialize_target): Add declaration.
12031 * target-connection.c (_initialize_target_connection): Add
12032 declaration.
12033 * target-dcache.c (_initialize_target_dcache): Add declaration.
12034 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12035 * thread.c (_initialize_thread): Add declaration.
12036 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12037 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12038 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12039 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12040 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12041 * tracectf.c (_initialize_ctf): Add declaration.
12042 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12043 * tracefile.c (_initialize_tracefile): Add declaration.
12044 * tracepoint.c (_initialize_tracepoint): Add declaration.
12045 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12046 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12047 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12048 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12049 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12050 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12051 * tui/tui.c (_initialize_tui): Add declaration.
12052 * typeprint.c (_initialize_typeprint): Add declaration.
12053 * ui-style.c (_initialize_ui_style): Add declaration.
12054 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12055 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12056 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12057 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12058 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12059 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12060 * unittests/filtered_iterator-selftests.c
12061 (_initialize_filtered_iterator_selftests): Add declaration.
12062 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12063 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12064 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12065 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12066 * unittests/main-thread-selftests.c
12067 (_initialize_main_thread_selftests): Add declaration.
12068 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12069 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12070 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12071 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12072 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12073 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12074 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12075 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12076 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12077 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12078 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12079 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12080 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12081 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12082 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12083 declaration.
12084 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12085 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12086 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12087 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12088 * user-regs.c (_initialize_user_regs): Add declaration.
12089 * utils.c (_initialize_utils): Add declaration.
12090 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12091 * valops.c (_initialize_valops): Add declaration.
12092 * valprint.c (_initialize_valprint): Add declaration.
12093 * value.c (_initialize_values): Add declaration.
12094 * varobj.c (_initialize_varobj): Add declaration.
12095 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12096 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12097 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12098 * windows-nat.c (_initialize_windows_nat): Add declaration.
12099 (_initialize_check_for_gdb_ini): Add declaration.
12100 (_initialize_loadable): Add declaration.
12101 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12102 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12103 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12104 * xcoffread.c (_initialize_xcoffread): Add declaration.
12105 * xml-support.c (_initialize_xml_support): Add declaration.
12106 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12107 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12108 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12109 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12110
12111 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12112
12113 * regformats/regdat.sh: Generate declaration for init function.
12114
12115 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12116
12117 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12118 up.
12119 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12120 close_one_inferior>: New methods.
12121 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12122 pass down target to find_inferior_pid.
12123 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12124 Pass down target to find_inferior_ptid.
12125 (gdbsim_target::create_inferior): Pass down target to
12126 add_thread_silent.
12127 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12128 target down to find_inferior_ptid and switch_to_thread.
12129 (gdbsim_target::close): Update to call close_one_inferior.
12130 (struct resume_data): Remove.
12131 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12132 directly, rather than through a void pointer.
12133 (gdbsim_target::resume): Update to call resume_one_inferior.
12134
12135 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12136
12137 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12138
12139 2020-01-12 Pedro Alves <palves@redhat.com>
12140
12141 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12142 directly for the current inferior instead of
12143 discard_all_inferiors.
12144 (discard_all_inferiors): Delete.
12145
12146 2020-01-11 Tom Tromey <tom@tromey.com>
12147
12148 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12149 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12150 deprecated_safe_get_selected_frame.
12151
12152 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12153
12154 * inferior.c (print_inferior): Switch inferior before printing it.
12155
12156 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12157 Pedro Alves <palves@redhat.com>
12158
12159 * progspace-and-thread.c (switch_to_program_space_and_thread):
12160 Assert there's an inferior for PSPACE. Use
12161 switch_to_inferior_no_thread to switch the inferior too.
12162 * progspace.c (program_space::~program_space): Call
12163 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12164 (program_space::free_all_objfiles): Don't call clear_symtab_users
12165 here.
12166 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12167
12168 2020-01-10 Pedro Alves <palves@redhat.com>
12169
12170 * NEWS: Mention multi-target debugging, "info connections", and
12171 "add-inferior -no-connection".
12172
12173 2020-01-10 Pedro Alves <palves@redhat.com>
12174
12175 * infrun.c: Include "target-connection.h".
12176 (check_multi_target_resumption): New.
12177 (proceed): Call it.
12178 * target-connection.c (make_target_connection_string): Make
12179 extern.
12180 * target-connection.h (make_target_connection_string): Declare.
12181
12182 2020-01-10 Pedro Alves <palves@redhat.com>
12183
12184 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12185 * inferior.c (uiout_field_connection): New function.
12186 (print_inferior): Add new "connection-id" column.
12187 (add_inferior_command): Show connection number/string of added
12188 inferior.
12189 * process-stratum-target.h
12190 (process_stratum_target::connection_string): New virtual method.
12191 (process_stratum_target::connection_number): New field.
12192 * remote.c (remote_target::connection_string): New override.
12193 * target-connection.c: New file.
12194 * target-connection.h: New file.
12195 * target.c (decref_target): Remove process_stratum targets from
12196 the connection list.
12197 (target_stack::push): Add process_stratum targets to the
12198 connection list.
12199
12200 2020-01-10 Pedro Alves <palves@redhat.com>
12201
12202 Revert:
12203 2016-04-12 Pedro Alves <palves@redhat.com>
12204 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12205 Remove references to name.
12206 * serial.h (struct serial) <name>: Delete.
12207
12208 2020-01-10 Pedro Alves <palves@redhat.com>
12209
12210 * gdbarch-selftests.c (register_to_value_test): Remove "target
12211 already pushed" check.
12212
12213 2020-01-10 Pedro Alves <palves@redhat.com>
12214 John Baldwin <jhb@FreeBSD.org>
12215
12216 * aarch64-linux-nat.c
12217 (aarch64_linux_nat_target::thread_architecture): Adjust.
12218 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12219 (task_command_1): Likewise.
12220 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12221 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12222 (aix_thread_target::store_registers)
12223 (aix_thread_target::thread_alive): Adjust.
12224 * amd64-fbsd-tdep.c: Include "inferior.h".
12225 (amd64fbsd_get_thread_local_address): Pass down target.
12226 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12227 thread's gdbarch instead of target_gdbarch.
12228 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12229 get_last_target_status.
12230 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12231 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12232 inferiors.
12233 (update_inserted_breakpoint_locations): Skip if inferiors with no
12234 execution.
12235 (update_global_location_list): When handling moribund locations,
12236 find representative inferior for location's pspace, and use thread
12237 count of its process_stratum target.
12238 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12239 * bsd-uthread.c (bsd_uthread_target::wait): Use
12240 as_process_stratum_target and adjust thread_change_ptid and
12241 add_thread calls.
12242 (bsd_uthread_target::update_thread_list): Use
12243 as_process_stratum_target and adjust find_thread_ptid,
12244 thread_change_ptid and add_thread calls.
12245 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12246 find_thread_ptid call.
12247 * corelow.c (add_to_thread_list): Adjust add_thread call.
12248 (core_target_open): Adjust add_thread_silent and thread_count
12249 calls.
12250 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12251 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12252 * event-top.c (async_disconnect): Pop targets from all inferiors.
12253 * exec.c (add_target_sections): Push exec target on all inferiors
12254 sharing the program space.
12255 (remove_target_sections): Remove the exec target from all
12256 inferiors sharing the program space.
12257 (exec_on_vfork): New.
12258 * exec.h (exec_on_vfork): Declare.
12259 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12260 Pass it down.
12261 (fbsd_nat_target::update_thread_list): Adjust.
12262 (fbsd_nat_target::resume): Adjust.
12263 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12264 down.
12265 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12266 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12267 get_thread_arch_regcache call.
12268 * fork-child.c (gdb_startup_inferior): Pass target down to
12269 startup_inferior and set_executing.
12270 * gdbthread.h (struct process_stratum_target): Forward declare.
12271 (add_thread, add_thread_silent, add_thread_with_info)
12272 (in_thread_list): Add process_stratum_target parameter.
12273 (find_thread_ptid(inferior*, ptid_t)): New overload.
12274 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12275 parameter.
12276 (all_threads()): Delete overload.
12277 (all_threads, all_non_exited_threads): Add process_stratum_target
12278 parameter.
12279 (all_threads_safe): Use brace initialization.
12280 (thread_count): Add process_stratum_target parameter.
12281 (set_resumed, set_running, set_stop_requested, set_executing)
12282 (threads_are_executing, finish_thread_state): Add
12283 process_stratum_target parameter.
12284 (switch_to_thread): Use is_current_thread.
12285 * i386-fbsd-tdep.c: Include "inferior.h".
12286 (i386fbsd_get_thread_local_address): Pass down target.
12287 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12288 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12289 have_inferiors check.
12290 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12291 (inf_ptrace_target::attach): Adjust.
12292 * infcall.c (run_inferior_call): Adjust.
12293 * infcmd.c (run_command_1): Pass target to
12294 scoped_finish_thread_state.
12295 (proceed_thread_callback): Skip inferiors with no execution.
12296 (continue_command): Rename 'all_threads' local to avoid hiding
12297 'all_threads' function. Adjust get_last_target_status call.
12298 (prepare_one_step): Adjust set_running call.
12299 (signal_command): Use user_visible_resume_target. Compare thread
12300 pointers instead of inferior_ptid.
12301 (info_program_command): Adjust to pass down target.
12302 (attach_command): Mark target's 'thread_executing' flag.
12303 (stop_current_target_threads_ns): New, factored out from ...
12304 (interrupt_target_1): ... this. Switch inferior before making
12305 target calls.
12306 * inferior-iter.h
12307 (struct all_inferiors_iterator, struct all_inferiors_range)
12308 (struct all_inferiors_safe_range)
12309 (struct all_non_exited_inferiors_range): Filter on
12310 process_stratum_target too. Remove explicit.
12311 * inferior.c (inferior::inferior): Push dummy target on target
12312 stack.
12313 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12314 Add process_stratum_target parameter, and pass it down.
12315 (have_live_inferiors): Adjust.
12316 (switch_to_inferior_and_push_target): New.
12317 (add_inferior_command, clone_inferior_command): Handle
12318 "-no-connection" parameter. Use
12319 switch_to_inferior_and_push_target.
12320 (_initialize_inferior): Mention "-no-connection" option in
12321 the help of "add-inferior" and "clone-inferior" commands.
12322 * inferior.h: Include "process-stratum-target.h".
12323 (interrupt_target_1): Use bool.
12324 (struct inferior) <push_target, unpush_target, target_is_pushed,
12325 find_target_beneath, top_target, process_target, target_at,
12326 m_stack>: New.
12327 (discard_all_inferiors): Delete.
12328 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12329 (all_inferiors, all_non_exited_inferiors): Add
12330 process_stratum_target parameter.
12331 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12332 (target_last_proc_target): New global.
12333 (follow_fork_inferior): Push target on new inferior. Pass target
12334 to add_thread_silent. Call exec_on_vfork. Handle target's
12335 reference count.
12336 (follow_fork): Adjust get_last_target_status call. Also consider
12337 target.
12338 (follow_exec): Push target on new inferior.
12339 (struct execution_control_state) <target>: New field.
12340 (user_visible_resume_target): New.
12341 (do_target_resume): Call target_async.
12342 (resume_1): Set target's threads_executing flag. Consider resume
12343 target.
12344 (commit_resume_all_targets): New.
12345 (proceed): Also consider resume target. Skip threads of inferiors
12346 with no execution. Commit resumtion in all targets.
12347 (start_remote): Pass current inferior to wait_for_inferior.
12348 (infrun_thread_stop_requested): Consider target as well. Pass
12349 thread_info pointer to clear_inline_frame_state instead of ptid.
12350 (infrun_thread_thread_exit): Consider target as well.
12351 (random_pending_event_thread): New inferior parameter. Use it.
12352 (do_target_wait): Rename to ...
12353 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12354 down.
12355 (threads_are_resumed_pending_p, do_target_wait): New.
12356 (prepare_for_detach): Adjust calls.
12357 (wait_for_inferior): New inferior parameter. Handle it. Use
12358 do_target_wait_1 instead of do_target_wait.
12359 (fetch_inferior_event): Adjust. Switch to representative
12360 inferior. Pass target down.
12361 (set_last_target_status): Add process_stratum_target parameter.
12362 Save target in global.
12363 (get_last_target_status): Add process_stratum_target parameter and
12364 handle it.
12365 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12366 (context_switch): Check inferior_ptid == null_ptid before calling
12367 inferior_thread().
12368 (get_inferior_stop_soon): Pass down target.
12369 (wait_one): Rename to ...
12370 (poll_one_curr_target): ... this.
12371 (struct wait_one_event): New.
12372 (wait_one): New.
12373 (stop_all_threads): Adjust.
12374 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12375 event's target.
12376 (switch_back_to_stepped_thread): Also consider target.
12377 (print_stop_event): Update.
12378 (normal_stop): Update. Also consider the resume target.
12379 * infrun.h (wait_for_inferior): Remove declaration.
12380 (user_visible_resume_target): New declaration.
12381 (get_last_target_status, set_last_target_status): New
12382 process_stratum_target parameter.
12383 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12384 process_stratum_target parameter, and use it.
12385 (clear_inline_frame_state (thread_info*)): New.
12386 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12387 process_stratum_target parameter.
12388 (clear_inline_frame_state (thread_info*)): Declare.
12389 * linux-fork.c (delete_checkpoint_command): Pass target down to
12390 find_thread_ptid.
12391 (checkpoint_command): Adjust.
12392 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12393 instead of just tweaking inferior_ptid.
12394 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12395 (exit_lwp): Pass target down to find_thread_ptid.
12396 (attach_proc_task_lwp_callback): Pass target down to
12397 add_thread/set_running/set_executing.
12398 (linux_nat_target::attach): Pass target down to
12399 thread_change_ptid.
12400 (get_detach_signal): Pass target down to find_thread_ptid.
12401 Consider last target status's target.
12402 (linux_resume_one_lwp_throw, resume_lwp)
12403 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12404 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12405 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12406 (linux_nat_target::async_wait_fd): New.
12407 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12408 target down.
12409 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12410 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12411 * linux-thread-db.c (struct thread_db_info::process_target): New
12412 field.
12413 (add_thread_db_info): Save target.
12414 (get_thread_db_info): New process_stratum_target parameter. Also
12415 match target.
12416 (delete_thread_db_info): New process_stratum_target parameter.
12417 Also match target.
12418 (thread_from_lwp): Adjust to pass down target.
12419 (thread_db_notice_clone): Pass down target.
12420 (check_thread_db_callback): Pass down target.
12421 (try_thread_db_load_1): Always push the thread_db target.
12422 (try_thread_db_load, record_thread): Pass target down.
12423 (thread_db_target::detach): Pass target down. Always unpush the
12424 thread_db target.
12425 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12426 target down. Always unpush the thread_db target.
12427 (find_new_threads_callback, thread_db_find_new_threads_2)
12428 (thread_db_target::update_thread_list): Pass target down.
12429 (thread_db_target::pid_to_str): Pass current inferior down.
12430 (thread_db_target::get_thread_local_address): Pass target down.
12431 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12432 target down.
12433 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12434 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12435 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12436 (procfs_init_inferior): Rename to ...
12437 (procfs_target::procfs_init_inferior): ... this and adjust.
12438 (procfs_target::create_inferior, procfs_notice_thread)
12439 (procfs_do_thread_registers): Adjust.
12440 * ppc-fbsd-tdep.c: Include "inferior.h".
12441 (ppcfbsd_get_thread_local_address): Pass down target.
12442 * proc-service.c (ps_xfer_memory): Switch current inferior and
12443 program space as well.
12444 (get_ps_regcache): Pass target down.
12445 * process-stratum-target.c
12446 (process_stratum_target::thread_address_space)
12447 (process_stratum_target::thread_architecture): Pass target down.
12448 * process-stratum-target.h
12449 (process_stratum_target::threads_executing): New field.
12450 (as_process_stratum_target): New.
12451 * ravenscar-thread.c
12452 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12453 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12454 down.
12455 * record-btrace.c (record_btrace_target::info_record): Adjust.
12456 (record_btrace_target::record_method)
12457 (record_btrace_target::record_is_replaying)
12458 (record_btrace_target::fetch_registers)
12459 (get_thread_current_frame_id, record_btrace_target::resume)
12460 (record_btrace_target::wait, record_btrace_target::stop): Pass
12461 target down.
12462 * record-full.c (record_full_wait_1): Switch to event thread.
12463 Pass target down.
12464 * regcache.c (regcache::regcache)
12465 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12466 process_stratum_target parameter and handle it.
12467 (current_thread_target): New global.
12468 (get_thread_regcache): Add process_stratum_target parameter and
12469 handle it. Switch inferior before calling target method.
12470 (get_thread_regcache): Pass target down.
12471 (get_thread_regcache_for_ptid): Pass target down.
12472 (registers_changed_ptid): Add process_stratum_target parameter and
12473 handle it.
12474 (registers_changed_thread, registers_changed): Pass target down.
12475 (test_get_thread_arch_aspace_regcache): New.
12476 (current_regcache_test): Define a couple local test_target_ops
12477 instances and use them for testing.
12478 (readwrite_regcache): Pass process_stratum_target parameter.
12479 (cooked_read_test, cooked_write_test): Pass mock_target down.
12480 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12481 (get_thread_arch_aspace_regcache): Add process_stratum_target
12482 parameter.
12483 (regcache::target): New method.
12484 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12485 (regcache::registers_changed_ptid): Add process_stratum_target
12486 parameter.
12487 (regcache::m_target): New field.
12488 (registers_changed_ptid): Add process_stratum_target parameter.
12489 * remote.c (remote_state::supports_vCont_probed): New field.
12490 (remote_target::async_wait_fd): New method.
12491 (remote_unpush_and_throw): Add remote_target parameter.
12492 (get_current_remote_target): Adjust.
12493 (remote_target::remote_add_inferior): Push target.
12494 (remote_target::remote_add_thread)
12495 (remote_target::remote_notice_new_inferior)
12496 (get_remote_thread_info): Pass target down.
12497 (remote_target::update_thread_list): Skip threads of inferiors
12498 bound to other targets. (remote_target::close): Don't discard
12499 inferiors. (remote_target::add_current_inferior_and_thread)
12500 (remote_target::process_initial_stop_replies)
12501 (remote_target::start_remote)
12502 (remote_target::remote_serial_quit_handler): Pass down target.
12503 (remote_target::remote_unpush_target): New remote_target
12504 parameter. Unpush the target from all inferiors.
12505 (remote_target::remote_unpush_and_throw): New remote_target
12506 parameter. Pass it down.
12507 (remote_target::open_1): Check whether the current inferior has
12508 execution instead of checking whether any inferior is live. Pass
12509 target down.
12510 (remote_target::remote_detach_1): Pass down target. Use
12511 remote_unpush_target.
12512 (extended_remote_target::attach): Pass down target.
12513 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12514 (remote_target::append_resumption): Pass down target.
12515 (remote_target::append_pending_thread_resumptions)
12516 (remote_target::remote_resume_with_hc, remote_target::resume)
12517 (remote_target::commit_resume): Pass down target.
12518 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12519 (remote_target::interrupt_query)
12520 (remote_target::remove_new_fork_children)
12521 (remote_target::check_pending_events_prevent_wildcard_vcont)
12522 (remote_target::remote_parse_stop_reply)
12523 (remote_target::process_stop_reply): Pass down target.
12524 (first_remote_resumed_thread): New remote_target parameter. Pass
12525 it down.
12526 (remote_target::wait_as): Pass down target.
12527 (unpush_and_perror): New remote_target parameter. Pass it down.
12528 (remote_target::readchar, remote_target::remote_serial_write)
12529 (remote_target::getpkt_or_notif_sane_1)
12530 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12531 down target.
12532 (remote_target::mourn_inferior): Pass down target. Use
12533 remote_unpush_target.
12534 (remote_target::core_of_thread)
12535 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12536 (remote_target::pid_to_exec_file)
12537 (remote_target::thread_handle_to_thread_info): Pass down target.
12538 (remote_target::async_wait_fd): New.
12539 * riscv-fbsd-tdep.c: Include "inferior.h".
12540 (riscv_fbsd_get_thread_local_address): Pass down target.
12541 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12542 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12543 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12544 Adjust.
12545 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12546 * solib-svr4.c (enable_break): Pass down target.
12547 * spu-multiarch.c (parse_spufs_run): Pass down target.
12548 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12549 * target-delegates.c: Regenerate.
12550 * target.c (g_target_stack): Delete.
12551 (current_top_target): Return the current inferior's top target.
12552 (target_has_execution_1): Refer to the passed-in inferior's top
12553 target.
12554 (target_supports_terminal_ours): Check whether the initial
12555 inferior was already created.
12556 (decref_target): New.
12557 (target_stack::push): Incref/decref the target.
12558 (push_target, push_target, unpush_target): Adjust.
12559 (target_stack::unpush): Defref target.
12560 (target_is_pushed): Return bool. Adjust to refer to the current
12561 inferior's target stack.
12562 (dispose_inferior): Delete, and inline parts ...
12563 (target_preopen): ... here. Only dispose of the current inferior.
12564 (target_detach): Hold strong target reference while detaching.
12565 Pass target down.
12566 (target_thread_name): Add assertion.
12567 (target_resume): Pass down target.
12568 (target_ops::beneath, find_target_at): Adjust to refer to the
12569 current inferior's target stack.
12570 (get_dummy_target): New.
12571 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12572 has a thread running.
12573 (initialize_targets): Rename to ...
12574 (_initialize_target): ... this.
12575 * target.h: Include "gdbsupport/refcounted-object.h".
12576 (struct target_ops): Inherit refcounted_object.
12577 (target_ops::shortname, target_ops::longname): Make const.
12578 (target_ops::async_wait_fd): New method.
12579 (decref_target): Declare.
12580 (struct target_ops_ref_policy): New.
12581 (target_ops_ref): New typedef.
12582 (get_dummy_target): Declare function.
12583 (target_is_pushed): Return bool.
12584 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12585 (all_matching_threads_iterator::all_matching_threads_iterator):
12586 Handle filter target.
12587 * thread-iter.h (struct all_matching_threads_iterator, struct
12588 all_matching_threads_range, class all_non_exited_threads_range):
12589 Filter by target too. Remove explicit.
12590 * thread.c (threads_executing): Delete.
12591 (inferior_thread): Pass down current inferior.
12592 (clear_thread_inferior_resources): Pass down thread pointer
12593 instead of ptid_t.
12594 (add_thread_silent, add_thread_with_info, add_thread): Add
12595 process_stratum_target parameter. Use it for thread and inferior
12596 searches.
12597 (is_current_thread): New.
12598 (thread_info::deletable): Use it.
12599 (find_thread_ptid, thread_count, in_thread_list)
12600 (thread_change_ptid, set_resumed, set_running): New
12601 process_stratum_target parameter. Pass it down.
12602 (set_executing): New process_stratum_target parameter. Pass it
12603 down. Adjust reference to 'threads_executing'.
12604 (threads_are_executing): New process_stratum_target parameter.
12605 Adjust reference to 'threads_executing'.
12606 (set_stop_requested, finish_thread_state): New
12607 process_stratum_target parameter. Pass it down.
12608 (switch_to_thread): Also match inferior.
12609 (switch_to_thread): New process_stratum_target parameter. Pass it
12610 down.
12611 (update_threads_executing): Reimplement.
12612 * top.c (quit_force): Pop targets from all inferior.
12613 (gdb_init): Don't call initialize_targets.
12614 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12615 Declare.
12616 (windows_add_thread, windows_delete_thread): Adjust.
12617 (get_windows_debug_event): Rename to ...
12618 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12619 * tracefile-tfile.c (tfile_target_open): Pass down target.
12620 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12621 Forward declare.
12622 (switch_to_thread): Add process_stratum_target parameter.
12623 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12624 parameter. Use it.
12625 (mi_on_resume): Pass target down.
12626 * nat/fork-inferior.c (startup_inferior): Add
12627 process_stratum_target parameter. Pass it down.
12628 * nat/fork-inferior.h (startup_inferior): Add
12629 process_stratum_target parameter.
12630 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12631
12632 2020-01-10 Pedro Alves <palves@redhat.com>
12633
12634 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12635 directly. Instead find the first thread in the thread list and
12636 use switch_to_thread.
12637
12638 2020-01-10 Pedro Alves <palves@redhat.com>
12639
12640 * remote.c (remote_target::remote_add_inferior): Don't bind a
12641 process to the current inferior if the current inferior is already
12642 bound to a process.
12643
12644 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12645 Pedro Alves <palves@redhat.com>
12646
12647 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12648 If no process is specified, return null_ptid instead of
12649 inferior_ptid.
12650 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12651 TARGET_WAITKIND_SIGNALLED with no pid.
12652
12653 2020-01-10 Pedro Alves <palves@redhat.com>
12654
12655 * remote.c (first_remote_resumed_thread): New.
12656 (remote_target::wait_as): Use it as default event_ptid instead of
12657 inferior_ptid.
12658
12659 2020-01-10 Pedro Alves <palves@redhat.com>
12660
12661 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12662
12663 2020-01-10 Pedro Alves <palves@redhat.com>
12664
12665 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12666 not -1.
12667
12668 2020-01-10 Pedro Alves <palves@redhat.com>
12669
12670 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12671 ptid to get_last_target_status.
12672 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12673 ptid to get_last_target_status.
12674 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12675 get_last_target_status.
12676 (info_program_command): Don't pass a target_waitstatus to
12677 get_last_target_status.
12678 * infrun.c (init_wait_for_inferior): Use
12679 nullify_last_target_wait_ptid.
12680 (get_last_target_status): Handle nullptr arguments.
12681 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12682 (print_stop_event): Don't pass a ptid to get_last_target_status.
12683 (normal_stop): Don't pass a ptid to get_last_target_status.
12684 * infrun.h (get_last_target_status, set_last_target_status): Move
12685 comments here and update.
12686 (nullify_last_target_wait_ptid): Declare.
12687 * linux-fork.c (fork_load_infrun_state): Remove local extern
12688 declaration of nullify_last_target_wait_ptid.
12689 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12690 to get_last_target_status.
12691
12692 2020-01-10 Pedro Alves <palves@redhat.com>
12693
12694 * gdbthread.h (scoped_restore_current_thread)
12695 <dont_restore, restore, m_dont_restore>: Declare.
12696 * thread.c (thread_alive): Add assertion. Return bool.
12697 (switch_to_thread_if_alive): New.
12698 (prune_threads): Switch inferior/thread.
12699 (print_thread_info_1): Switch thread before calling target methods.
12700 (scoped_restore_current_thread::restore): New, factored out from
12701 ...
12702 (scoped_restore_current_thread::~scoped_restore_current_thread):
12703 ... this.
12704 (scoped_restore_current_thread::scoped_restore_current_thread):
12705 Add assertion.
12706 (thread_apply_all_command, thread_select): Use
12707 switch_to_thread_if_alive.
12708 * infrun.c (proceed, restart_threads, handle_signal_stop)
12709 (switch_back_to_stepped_thread): Switch current thread before
12710 calling target methods.
12711
12712 2020-01-10 Pedro Alves <palves@redhat.com>
12713
12714 * inferior.c (switch_to_inferior_no_thread): New function,
12715 factored out from ...
12716 (inferior_command): ... here.
12717 * inferior.h (switch_to_inferior_no_thread): Declare.
12718 * mi/mi-main.c (run_one_inferior): Use
12719 switch_to_inferior_no_thread.
12720
12721 2020-01-10 Pedro Alves <palves@redhat.com>
12722
12723 * infcmd.c (kill_command): Remove dead code.
12724
12725 2020-01-10 Pedro Alves <palves@redhat.com>
12726
12727 * remote.c (remote_target::mourn_inferior): No longer check
12728 whether the target is running.
12729
12730 2020-01-10 Pedro Alves <palves@redhat.com>
12731
12732 * corelow.c (core_target::has_execution): Change parameter type to
12733 inferior pointer.
12734 * inferior.c (number_of_live_inferiors): Use
12735 inferior::has_execution instead of target_has_execution_1.
12736 * inferior.h (inferior::has_execution): New.
12737 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12738 inferior::has_execution instead of target_has_execution_1.
12739 * process-stratum-target.c
12740 (process_stratum_target::has_execution): Change parameter type to
12741 inferior pointer. Check the inferior's PID instead of
12742 inferior_ptid.
12743 * process-stratum-target.h
12744 (process_stratum_target::has_execution): Change parameter type to
12745 inferior pointer.
12746 * record-full.c (record_full_core_target::has_execution): Change
12747 parameter type to inferior pointer.
12748 * target.c (target_has_execution_1): Change parameter type to
12749 inferior pointer.
12750 (target_has_execution_current): Adjust.
12751 * target.h (target_ops::has_execution): Change parameter type to
12752 inferior pointer.
12753 (target_has_execution_1): Change parameter type to inferior
12754 pointer. Change return type to bool.
12755 * tracefile.h (tracefile_target::has_execution): Change parameter
12756 type to inferior pointer.
12757
12758 2020-01-10 Pedro Alves <palves@redhat.com>
12759
12760 * exceptions.c (print_flush): Remove current_top_target() check.
12761
12762 2020-01-10 Pedro Alves <palves@redhat.com>
12763
12764 * remote.c (show_remote_exec_file): Show the current inferior's
12765 exec-file instead of the command variable's value.
12766
12767 2020-01-10 Pedro Alves <palves@redhat.com>
12768
12769 * record-full.c (record_full_resume_ptid): New global.
12770 (record_full_target::resume): Set it.
12771 (record_full_wait_1): Use record_full_resume_ptid instead of
12772 inferior_ptid.
12773
12774 2020-01-10 Pedro Alves <palves@redhat.com>
12775
12776 * gdbthread.h (scoped_restore_current_thread)
12777 <dont_restore, restore, m_dont_restore>: Declare.
12778 * thread.c (thread_alive): Add assertion. Return bool.
12779 (switch_to_thread_if_alive): New.
12780 (prune_threads): Switch inferior/thread.
12781 (print_thread_info_1): Switch thread before calling target methods.
12782 (scoped_restore_current_thread::restore): New, factored out from
12783 ...
12784 (scoped_restore_current_thread::~scoped_restore_current_thread):
12785 ... this.
12786 (scoped_restore_current_thread::scoped_restore_current_thread):
12787 Add assertion.
12788 (thread_apply_all_command, thread_select): Use
12789 switch_to_thread_if_alive.
12790
12791 2020-01-10 George Barrett <bob@bob131.so>
12792
12793 * stap-probe.c (stap_modify_semaphore): Don't check for null
12794 semaphores.
12795 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12796 for null semaphores.
12797
12798 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12799
12800 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12801 all source windows, and maintain horizontal scroll status while
12802 doing so.
12803
12804 2020-01-09 Tom Tromey <tom@tromey.com>
12805
12806 PR tui/18932:
12807 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12808 update_source_window, not print_source_lines.
12809
12810 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12811
12812 * tui/tui.c (tui_enable): Register tui hooks after calling
12813 tui_display_main.
12814
12815 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12816
12817 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12818
12819 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12820
12821 * thread.c (print_thread_info_1): Fix indentation.
12822
12823 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12824
12825 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12826 unique_xmalloc_ptr outside the if to always free the demangled name.
12827
12828 2020-01-08 Tom Tromey <tromey@adacore.com>
12829
12830 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12831 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12832 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12833 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12834 Remove.
12835 (section_offsets): New typedef.
12836 * symtab.c (fixup_section, get_msymbol_address): Update.
12837 * symmisc.c (dump_msymbols): Update.
12838 * symfile.h (relative_addr_info_to_section_offsets)
12839 (symfile_map_offsets_to_segments): Update.
12840 * symfile.c (build_section_addr_info_from_objfile)
12841 (init_objfile_sect_indices): Update.
12842 (struct place_section_arg): Change type of "offsets".
12843 (place_section): Update.
12844 (relative_addr_info_to_section_offsets): Change type of
12845 "section_offsets". Remove "num_sections" parameter.
12846 (default_symfile_offsets, syms_from_objfile_1)
12847 (set_objfile_default_section_offset): Update.
12848 (reread_symbols): No need to preserve section offsets by hand.
12849 (symfile_map_offsets_to_segments): Change type of "offsets".
12850 * stap-probe.c (relocate_address): Update.
12851 * stabsread.h (process_one_symbol): Update.
12852 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12853 (solib_target_relocate_section_addresses): Update.
12854 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12855 Update.
12856 * solib-frv.c (frv_relocate_main_executable): Update.
12857 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12858 * solib-aix.c (solib_aix_get_section_offsets): Change return
12859 type.
12860 (solib_aix_solib_create_inferior_hook): Update.
12861 * remote.c (remote_target::get_offsets): Update.
12862 * psymtab.c (find_pc_sect_psymtab): Update.
12863 * psympriv.h (struct partial_symbol) <address, text_low,
12864 text_high>: Update.
12865 * objfiles.h (obj_section_offset): Update.
12866 (struct objfile) <section_offsets>: Change type.
12867 <num_sections>: Remove.
12868 (objfile_relocate): Update.
12869 * objfiles.c (entry_point_address_query): Update
12870 (relocate_one_symbol): Change type of "section_offsets".
12871 (objfile_relocate1, objfile_relocate1): Change type of
12872 "new_offsets".
12873 (objfile_rebase1): Update.
12874 * mipsread.c (mipscoff_symfile_read): Update.
12875 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12876 parameter.
12877 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12878 (parse_external, psymtab_to_symtab_1): Update.
12879 * machoread.c (macho_symfile_offsets): Update.
12880 * ia64-tdep.c (ia64_find_unwind_table): Update.
12881 * hppa-tdep.c (read_unwind_info): Update.
12882 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12883 * dwarf2read.c (create_addrmap_from_index)
12884 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12885 (process_psymtab_comp_unit_reader, add_partial_symbol)
12886 (add_partial_subprogram, process_full_comp_unit)
12887 (read_file_scope, read_func_scope, read_lexical_block_scope)
12888 (read_call_site_scope, dwarf2_rnglists_process)
12889 (dwarf2_ranges_process, dwarf2_ranges_read)
12890 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12891 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12892 Update.
12893 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12894 Update.
12895 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12896 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12897 (process_one_symbol): Change type of "section_offsets".
12898 * ctfread.c (get_objfile_text_range): Update.
12899 * coffread.c (coff_symtab_read, enter_linenos)
12900 (process_coff_symbol): Update.
12901 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12902 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12903
12904 2020-01-08 Tom Tromey <tromey@adacore.com>
12905
12906 * dwarf2read.c (parse_macro_definition): Use std::string.
12907 (parse_macro_definition): Likewise.
12908
12909 2020-01-08 Tom Tromey <tromey@adacore.com>
12910
12911 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12912 (ATTR_ALLOC_CHUNK): Remove.
12913
12914 2020-01-08 Tom Tromey <tromey@adacore.com>
12915
12916 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12917
12918 2020-01-08 Tom Tromey <tromey@adacore.com>
12919
12920 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12921 (dwarf2_compute_name, open_dwo_file): Likewise.
12922 (process_enumeration_scope): Use std::vector.
12923 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12924 (partial_die_info::fixup, dwarf2_start_subfile)
12925 (guess_full_die_structure_name, dwarf2_name): Likewise.
12926 (determine_prefix): Update.
12927 (guess_full_die_structure_name): Make return type const.
12928 (partial_die_full_name): Return unique_xmalloc_ptr.
12929 (DW_FIELD_ALLOC_CHUNK): Remove.
12930
12931 2020-01-07 Tom Tromey <tromey@adacore.com>
12932
12933 PR build/24937:
12934 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12935
12936 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12937
12938 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12939
12940 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12941
12942 * stack.c (print_frame_info): Move disassemble_next_line code
12943 inside source_print block.
12944
12945 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12946
12947 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12948 gdb/signals.h, as we are now using native signal symbols.
12949
12950 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12951
12952 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12953 overflow by an early check of content vs threshold.
12954 * tui/tui-source.c (tui_source_window::line_is_displayed):
12955 Likewise.
12956
12957 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12958
12959 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12960
12961 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12962
12963 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12964 export table if no section contains it's RVA.
12965
12966 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12967
12968 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12969
12970 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12971
12972 * source.c (print_source_lines_base): Set last_line_listed.
12973
12974 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12975
12976 * tui/tui-disasm.c: Remove trailing spaces.
12977
12978 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12979 Pedro Alves <palves@redhat.com>
12980
12981 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12982 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12983 (windows_gdb_signal_to_target): New function, uses the above
12984 enumeration to convert GDB internal signal codes to equivalent
12985 Windows codes.
12986 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12987 * windows-nat.c: Include "gdb_wait.h".
12988 (get_windows_debug_event): Extract the fatal exception from the
12989 exit status and convert to the equivalent Posix signal number.
12990 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12991 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12992 * gdbsupport/gdb_wait.c: New file, implements
12993 windows_status_to_termsig.
12994 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12995 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12996
12997 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12998
12999 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13000 show_layout.
13001
13002 2020-01-05 Luis Machado <luis.machado@linaro.org>
13003
13004 * aarch64-linux-nat.c
13005 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13006 and bfd_mach_aarch64.
13007
13008 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13009
13010 * ui-file.c (stdio_file::can_emit_style_escape)
13011 (tee_file::can_emit_style_escape): Ensure style is used also on
13012 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13013 to gdb_stdout.
13014 * main.c (set_gdb_data_directory): Use file style to output the
13015 warning that the given pathname is not a directory.
13016 * top.c (show_history_filename, gdb_safe_append_history)
13017 (show_gdb_datadir): Use file style.
13018
13019 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13020
13021 * solib-target.c (struct lm_info_target):
13022 Change offsets to be a unique_xmalloc_ptr.
13023 (solib_target_relocate_section_addresses): Update.
13024
13025 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13026
13027 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13028
13029 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13030
13031 * MAINTAINERS (Write After Approval): Add myself.
13032
13033 2020-01-02 Luis Machado <luis.machado@linaro.org>
13034
13035 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13036 Cell BE architecture.
13037 * target.h (struct target_ops) <thread_architecture>: Likewise.
13038
13039 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13040
13041 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13042
13043 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13044
13045 * MAINTAINERS (Write After Approval): Add myself.
13046
13047 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13048
13049 * gdbarch.sh: Update copyright year range of generated files.
13050
13051 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13052
13053 Update copyright year range in all GDB files.
13054
13055 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13056
13057 * copyright.py: Convert to Python 3.
13058
13059 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13060
13061 * copyright.py: Adapt after move of gnulib directory from gdb
13062 directory to toplevel directory.
13063
13064 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13065
13066 * copyright.py (main): Exit if run from the wrong directory.
13067
13068 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13069
13070 * top.c (print_gdb_version): Change copyright year to 2020.
13071
13072 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13073
13074 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13075
13076 For older changes see ChangeLog-2019.
13077 \f
13078 Local Variables:
13079 mode: change-log
13080 left-margin: 8
13081 fill-column: 74
13082 version-control: never
13083 coding: utf-8
13084 End: