Don't use PyLong_FromLong
[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_longest.
5 * python/py-type.c (convert_field, typy_range): Use
6 gdb_py_object_from_longest.
7 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
8 gdb_py_object_from_longest.
9 * python/py-lazy-string.c (stpy_get_length): Use
10 gdb_py_object_from_longest.
11 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
12 gdb_py_object_from_longest.
13 * python/py-infevents.c (create_memory_changed_event_object): Use
14 gdb_py_object_from_longest.
15 * python/py-inferior.c (infpy_get_num): Use
16 gdb_py_object_from_longest.
17 (infpy_get_pid): Likewise.
18
19 2020-09-15 Tom Tromey <tromey@adacore.com>
20
21 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
22 defines.
23 * python/py-value.c (valpy_long): Use
24 gdb_py_object_from_ulongest.
25 * python/py-symtab.c (salpy_get_pc): Use
26 gdb_py_object_from_ulongest.
27 (salpy_get_last): Likewise.
28 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
29 gdb_py_object_from_ulongest.
30 * python/py-lazy-string.c (stpy_get_address): Use
31 gdb_py_object_from_ulongest.
32 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
33 * python/py-arch.c (archpy_disassemble): Use
34 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
35 error handling.
36
37 2020-09-15 Tom Tromey <tromey@adacore.com>
38
39 * python/python-internal.h (gdb_py_long_from_longest): Remove
40 defines.
41 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
42 * python/py-type.c (convert_field, typy_get_sizeof): Use
43 gdb_py_object_from_longest.
44 * python/py-record-btrace.c (btpy_list_index): Use
45 gdb_py_object_from_longest.
46
47 2020-09-15 Tom Tromey <tromey@adacore.com>
48
49 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
50 * python/py-record.c (recpy_element_number): Use
51 gdb_py_object_from_longest.
52 (recpy_gap_number): Likewise.
53
54 2020-09-15 Tom Tromey <tromey@adacore.com>
55
56 * top.c (ui::ui): Update.
57 (highest_ui_num): Remove.
58 * top.h (struct ui) <num>: Remove.
59
60 2020-09-15 Tom Tromey <tromey@adacore.com>
61
62 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
63 * ui-style.c (ansi_regex_text): Now array.
64 * rust-exp.y (number_regex_text): Now array.
65 * linespec.c (linespec_quote_characters): Now array.
66 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
67 Now arrays.
68
69 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
70
71 * debuginfod-support.c (debuginfod_client_deleter): New.
72 (debuginfod_client_up): New.
73 (debuginfod_init): Return debuginfod_client_up.
74 (debuginfod_source_query): Adjust.
75 (debuginfod_debuginfo_query): Adjust.
76
77 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
78
79 * debuginfod-support.c (debuginfod_source_query): Use
80 make_unique_xstrdup.
81
82 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
83
84 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
85 with `type::instance_flags`.
86
87 2020-09-14 Michael Mullin <masmullin@gmail.com>
88
89 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
90 Remove baton parameter.
91
92 2020-09-14 Pedro Alves <pedro@palves.net>
93
94 * Makefile.in (SELFTESTS_SRCS): Add
95 unittests/enum-flags-selftests.c.
96 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
97 btrace_function_flags instead of enum btrace_function_flag.
98 * compile/compile-c-types.c (convert_qualified): Use
99 enum_flags::raw.
100 * compile/compile-cplus-symbols.c (convert_one_symbol)
101 (convert_symbol_bmsym):
102 * compile/compile-cplus-types.c (compile_cplus_convert_method)
103 (compile_cplus_convert_struct_or_union_methods)
104 (compile_cplus_instance::convert_qualified_base):
105 * go-exp.y (parse_string_or_char): Add cast to int.
106 * unittests/enum-flags-selftests.c: New file.
107 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
108 type to btrace_thread_flags from btrace_thread_flag.
109 (record_btrace_cancel_resume, record_btrace_step_thread): Change
110 local's type to btrace_thread_flags from btrace_thread_flag. Add
111 cast in DEBUG call.
112
113 2020-09-14 Pedro Alves <pedro@palves.net>
114
115 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
116 * gdbtypes.c (address_space_name_to_int): Rename to ...
117 (address_space_name_to_type_instance_flags): ... this.
118 (address_space_int_to_name): Rename to ...
119 (address_space_type_instance_flags_to_name): ... this.
120 * gdbtypes.h (address_space_name_to_int): Rename to ...
121 (address_space_name_to_type_instance_flags): ... this.
122 (address_space_int_to_name): Rename to ...
123 (address_space_type_instance_flags_to_name): ... this.
124 * type-stack.c (type_stack::insert): Adjust to rename.
125 * type-stack.h (type_stack::insert): Likewise.
126
127 2020-09-14 Pedro Alves <pedro@palves.net>
128 Andrew Burgess <andrew.burgess@embecosm.com>
129
130 * avr-tdep.c (avr_address_class_type_flags): Return
131 type_instance_flags.
132 (avr_address_class_type_flags_to_name): Take a
133 type_instance_flags.
134 (avr_address_class_name_to_type_flags): Return bool and take a
135 type_instance_flags.
136 * d-lang.c (build_d_types): Use type::set_instance_flags.
137 * ft32-tdep.c (ft32_address_class_type_flags): Return
138 type_instance_flags.
139 (ft32_address_class_type_flags_to_name): Take a
140 type_instance_flags.
141 (ft32_address_class_name_to_type_flags): Return bool and take a
142 type_instance_flags.
143 (ft32_gdbarch_init): Use type::set_instance_flags.
144 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
145 * gdbarch.h, gdbarch.c: Regenerate.
146 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
147 (address_class_name_to_type_flags): Use type_instance_flags and
148 bool.
149 * gdbtypes.c (address_space_name_to_int)
150 (address_space_int_to_name, make_qualified_type): Use
151 type_instance_flags.
152 (make_qualified_type): Use type_instance_flags and
153 type::set_instance_flags.
154 (make_type_with_address_space, make_cv_type, make_vector_type)
155 (check_typedef): Use type_instance_flags.
156 (recursive_dump_type): Cast type_instance_flags to unsigned for
157 printing.
158 (copy_type_recursive): Use type::set_instance_flags.
159 (gdbtypes_post_init): Use type::set_instance_flags.
160 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
161 <m_instance_flags>: ... this.
162 <instance_flags, set_instance_flags>: New methods.
163 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
164 (SET_TYPE_INSTANCE_FLAGS): New.
165 (address_space_name_to_int, address_space_int_to_name)
166 (make_type_with_address_space): Pass flags using
167 type_instance_flags instead of int.
168 * stabsread.c (cleanup_undefined_types_noname): Use
169 type::set_instance_flags.
170 * s390-tdep.c (s390_address_class_type_flags): Return
171 type_instance_flags.
172 (s390_address_class_type_flags_to_name): Take a
173 type_instance_flags.
174 (s390_address_class_name_to_type_flags): Return bool and take a
175 type_instance_flags.
176 * type-stack.c (type_stack::follow_types): Use
177 type_instance_flags.
178 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
179
180 2020-09-14 Tom Tromey <tromey@adacore.com>
181
182 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
183 * x86-tdep.c (x86_is_thunk_register_name)
184 (x86_in_indirect_branch_thunk): Update.
185 * sparc64-tdep.c (sparc64_fpu_register_names)
186 (sparc64_cp0_register_names, sparc64_register_names)
187 (sparc64_pseudo_register_names): Now const.
188 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
189 cp0_registers_num>: Now const.
190 * sparc-tdep.c (sparc_core_register_names)
191 (sparc32_fpu_register_names, sparc32_cp0_register_names)
192 (sparc32_pseudo_register_names): Now const.
193 (validate_tdesc_registers): Update.
194 * rust-lang.c (rust_extensions): Now const.
195 * p-lang.c (p_extensions): Now const.
196 * objc-lang.c (objc_extensions): Now const.
197 * nto-tdep.c (nto_thread_state_str): Now const.
198 * moxie-tdep.c (moxie_register_names): Now const.
199 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
200 Now const.
201 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
202 (mips_linux_reg_names): Now const.
203 (mips_gdbarch_init): Update.
204 * microblaze-tdep.c (microblaze_register_names): Now const.
205 * m68k-tdep.c (m68k_register_names): Now const.
206 * m32r-tdep.c (m32r_register_names): Now const.
207 * ia64-tdep.c (ia64_register_names): Now const.
208 * i386-tdep.h (struct gdbarch_tdep) <register_names,
209 ymmh_register_names, ymm16h_regnum, mpx_register_names,
210 k_register_names, zmmh_register_names, xmm_avx512_register_names,
211 ymm_avx512_register_names, pkeys_register_names>: Now const.
212 * i386-tdep.c (i386_register_names, i386_zmm_names)
213 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
214 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
215 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
216 * f-lang.c (f_extensions): Now const.
217 * d-lang.c (d_extensions): Now const.
218 * csky-tdep.c (csky_register_names): Now const.
219 * charset.c (default_charset_names, charset_enum): Now const.
220 (_initialize_charset): Update.
221 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
222 const.
223 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
224 (bsd_uthread_solib_loaded): Update.
225 (bsd_uthread_state): Now const.
226 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
227 (amd64_ymm_avx512_names, amd64_ymmh_names)
228 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
229 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
230 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
231 (amd64_dword_names): Now const.
232 * agent.c (can_use_agent_enum): Now const.
233 * ada-tasks.c (task_states, long_task_states): Now const.
234 * ada-lang.c (known_runtime_file_name_patterns)
235 (known_auxiliary_function_name_patterns, attribute_names)
236 (standard_exc, ada_extensions): Now const.
237
238 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
239
240 * bcache.h (struct bcache) <bcache>: Remove constructor.
241 <m_hash_function, m_compare_function>: Remove.
242 <~bcache>: Make virtual.
243 <compare>: Remove static method, introduce virtual method.
244 <default_hash>: Remove.
245 <hash>: New virtual method.
246 * bcache.c (bcache::expand_hash_table): Update.
247 (bcache::insert): Update.
248 (bcache::hash): New.
249 (bcache::compare): Update comment and parameter names.
250 * gdbtypes.c (types_deeply_equal): Update.
251 * psymtab.h (struct psymbol_bcache): New struct.
252 (class psymtab_storage) <psymtab_storage>: Make default.
253 <psymbol_cache>: Change type to psymbol_bcache.
254 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
255 (psymbol_hash): Change to...
256 (psymbol_bcache::hash): ... this.
257 (psymbol_compare): Change to...
258 (psymbol_bcache::compare): ... this.
259
260 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
261
262 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
263 checking for initial lwp.
264
265 2020-09-14 Tom Tromey <tromey@adacore.com>
266
267 * m68k-tdep.c (m68k_extract_return_value): Use
268 pointer_result_regnum.
269 (m68k_store_return_value): Likewise.
270 (m68k_reg_struct_return_p): Handle vectors and arrays.
271 (m68k_return_value): Handle arrays.
272 (m68k_svr4_return_value): Fix single-element aggregate handling.
273 Handle long double. Adjust for embedded ABI.
274 (m68k_svr4_init_abi): Set pointer_result_regnum.
275 (m68k_embedded_init_abi): New function.
276 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
277 (m68k_osabi_sniffer): New function.
278 (_initialize_m68k_tdep): Register osabi sniffer.
279 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
280 member.
281
282 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
283
284 * xml-support.c (xml_fetch_content_from_file): Replace xfree
285 with gdb::unique_xmalloc_ptr<char>.
286
287 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
288
289 * xml-support.h (xml_fetch_another): Change type to be a
290 function_view.
291 (xml_process_xincludes): Remove baton parameter.
292 (xml_fetch_content_from_file): Change baton parameter to
293 dirname.
294 * xml-support.c (struct xinclude_parsing_data)
295 <xinclude_parsing_data>: Remove baton parameter.
296 <fetcher_baton>: Remove.
297 (xinclude_start_include): Adjust.
298 (xml_process_xincludes): Adjust.
299 (xml_fetch_content_from_file): Replace baton parameter with
300 dirname.
301 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
302 (xml_init_syscalls_info): Use a lambda.
303 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
304 (file_read_description_xml): Use a lambda.
305 (fetch_available_features_from_target): Change baton parameter
306 to target_ops.
307 (target_read_description_xml): Use a lambda.
308 (target_fetch_description_xml): Use a lambda.
309 (string_read_description_xml): Update.
310
311 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
312
313 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
314 uses with type::endianity_is_not_default.
315
316 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
317
318 * gdbtypes.h (struct type) <endianity_is_not_default,
319 set_endianity_is_not_default>: New methods.
320 (TYPE_ENDIANITY_NOT_DEFAULT): Use
321 type::endianity_is_not_default, change all write call sites to
322 use type::set_endianity_is_not_default.
323
324 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
325
326 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
327 uses with type::is_fixed_instance.
328
329 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
330
331 * gdbtypes.h (struct type) <is_fixed_instance,
332 set_is_fixed_instance>: New methods.
333 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
334 write call sites to use type::set_is_fixed_instance.
335
336 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
337
338 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
339 uses with type::is_gnu_ifunc.
340
341 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
342
343 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
344 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
345 use type::set_is_gnu_ifunc.
346
347 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
348
349 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
350 uses with type::stub_is_supported.
351
352 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
353
354 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
355 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
356 use type::set_stub_is_supported.
357
358 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
359
360 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
361 uses with type::is_vector.
362
363 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
364
365 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
366 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
367 use type::set_is_vector.
368
369 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
370
371 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
372 uses with type::has_varargs.
373
374 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
375
376 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
377 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
378 use type::set_has_varargs.
379
380 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
381
382 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
383 uses with type::is_prototyped.
384
385 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
386
387 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
388 New methods.
389 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
390 call sites to use type::set_is_prototyped.
391
392 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
393
394 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
395 uses with type::target_is_stub.
396
397 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
398
399 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
400 New methods.
401 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
402 sites to use type::set_target_is_stub.
403
404 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
405
406 * gdbtypes.h (TYPE_STUB): Remove, replace all
407 uses with type::is_stub.
408
409 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
410
411 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
412 (TYPE_STUB): Use type::is_stub, change all write call sites to
413 use type::set_is_stub.
414
415 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
416
417 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
418 type::has_no_signedness.
419
420 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
421
422 * gdbtypes.h (struct type) <has_no_signedness,
423 set_has_no_signedness>: New methods.
424 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
425 call sites to use type::set_has_no_signedness.
426
427 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
428
429 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
430 type::is_unsigned.
431
432 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
433
434 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
435 methods.
436 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
437 sites to use type::set_is_unsigned.
438
439 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
440 Adam Renquinha <arenquinha@cimeq.qc.ca>
441
442 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
443 pointer and stack frame offset when unwinding.
444
445 2020-09-13 Pedro Alves <pedro@palves.net>
446
447 * NEWS: Document "-break-insert --qualified".
448 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
449
450 2020-09-13 Pedro Alves <pedro@palves.net>
451
452 * linespec.c (classify_mtype, compare_msyms): Delete.
453 (search_minsyms_for_name): Remove classification logic. Instead
454 filter out trampoline symbols if we also found an external
455 function of the same name.
456
457 2020-09-13 Joel Brobecker <brobecker@adacore.com>
458
459 * NEWS: Create a new section for the next release branch.
460 Rename the section of the current branch, now that it has
461 been cut.
462
463 2020-09-13 Joel Brobecker <brobecker@adacore.com>
464
465 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
466 * version.in: Bump version to 11.0.50.DATE-git.
467
468 2020-09-12 Joel Brobecker <brobecker@adacore.com>
469
470 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
471
472 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
473 Felix Willgerodt <Felix.Willgerodt@intel.com>
474
475 * gdbarch.sh: Added bfloat16 type.
476 * gdbarch.c: Regenerated.
477 * gdbarch.h: Regenerated.
478 * gdbtypes.c (floatformats_bfloat16): New struct.
479 (gdbtypes_post_init): Add builtin_bfloat16.
480 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
481 (floatformats_bfloat16): New struct.
482 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
483 (i386_ymm_type): Add field "v16_bfloat16"
484 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
485 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
486 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
487 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
488 * features/i386/64bit-avx512.xml: Add bfloat16 type.
489 * features/i386/64bit-avx512.c: Regenerated.
490 * features/i386/64bit-sse.xml: Add bfloat16 type.
491 * features/i386/64bit-sse.c: Regenerated.
492
493 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
494
495 * i386-tdep.c (i386_zmm_type): Fix field names.
496 (i386_ymm_type): Fix field names.
497
498 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
499
500 * breakpoint.c: Fix typo in the help message of the
501 "set breakpoint condition-evaluation" command.
502
503 2020-09-10 Kamil Rytarowski <n54@gmx.com>
504
505 * nbsd-nat.c: Include "nat/netbsd-nat.h".
506 * (nbsd_nat_target::pid_to_exec_file)
507 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
508 (nbsd_nat_target::post_startup_inferior)
509 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
510 (nbsd_add_threads): Switch local code to common gdb/nat functions.
511 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
512 * (nbsd_thread_lister): Remove.
513
514 2020-09-10 Kamil Rytarowski <n54@gmx.com>
515
516 * fork-inferior.c (startup_inferior): Avoid double free.
517
518 2020-09-10 Kamil Rytarowski <n54@gmx.com>
519
520 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
521 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
522
523 2020-09-10 Kamil Rytarowski <n54@gmx.com>
524
525 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
526 * netbsd-nat.c: Include <sys/ptrace.h>.
527 * (netbsd_nat::enable_proc_events): Add.
528
529 2020-09-10 Kamil Rytarowski <n54@gmx.com>
530
531 * netbsd-nat.h: Include "gdbsupport/function-view.h".
532 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
533 (netbsd_nat::for_each_thread): Add.
534 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
535 "gdbsupport/common-debug.h".
536 * (netbsd_nat::netbsd_thread_lister)
537 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
538 (netbsd_nat::for_each_thread): Add.
539
540 2020-09-10 Kamil Rytarowski <n54@gmx.com>
541
542 * netbsd-nat.h: Include <unistd.h>.
543 * (netbsd_nat::pid_to_exec_file): Add.
544 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
545 * (netbsd_nat::pid_to_exec_file) Add.
546
547 2020-09-10 Kamil Rytarowski <n54@gmx.com>
548
549 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
550
551 2020-09-10 Kamil Rytarowski <n54@gmx.com>
552
553 * netbsd-nat.h: New file.
554 * netbsd-nat.c: Likewise.
555
556 2020-09-09 Tom Tromey <tromey@adacore.com>
557
558 * ada-lang.c (remove_extra_symbols): Do not increment when
559 removing an element
560
561 2020-09-08 Tom Tromey <tromey@adacore.com>
562
563 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
564
565 2020-09-08 Tom Tromey <tromey@adacore.com>
566
567 PR win32/25302:
568 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
569 (gdb_bfd_init_data): New function.
570 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
571
572 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
573
574 * infrun.c (fetch_inferior_event): Use
575 `switch_to_target_no_thread` to switch the target.
576
577 2020-09-06 Tom Tromey <tom@tromey.com>
578
579 * symfile.h (dwarf2_free_objfile): Don't declare.
580
581 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
582
583 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
584 to match 16 byte real/complex type generated by Flang compiler.
585
586 2020-09-03 Tom de Vries <tdevries@suse.de>
587
588 PR breakpoint/26546
589 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
590 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
591
592 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
593
594 * maint.c (index_digits): New function.
595 (struct maint_print_section_data): Remove.
596 (print_bfd_section_info): Remove print_data parameter, add arg
597 and index_digits.
598 (print_objfile_section_info): Likewise.
599 (print_bfd_section_info_maybe_relocated): Likewise (plus
600 objfile).
601 (maintenance_info_sections): Adjust calls.
602
603 2020-09-02 Tom Tromey <tromey@adacore.com>
604
605 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
606 for null pointers.
607 (ada_varobj_adjust_for_child_access): Special-case null pointers.
608
609 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
610
611 * bcache.h (struct bcache) <insert>: Change type of `added` to
612 pointer to bool.
613 * bcache.c (bcache::insert): Likewise.
614 * gdbtypes.c (check_types_worklist): Adjust.
615 * psymtab.c (add_psymbol_to_bcache): Adjust.
616
617 2020-08-31 Kevin Buettner <kevinb@redhat.com>
618
619 * corelow.c (unordered_set): Include.
620 (class core_target): Add field 'm_core_unavailable_mappings'.
621 (core_target::build_file_mappings): Print only one warning
622 per inaccessible file. Add unavailable/broken mappings
623 to m_core_unavailable_mappings.
624 (core_target::xfer_partial): Call...
625 (core_target::xfer_memory_via_mappings): New method.
626
627 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
628
629 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
630 type to bool.
631
632 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
633
634 * dwarf2/read.c (struct field_info): Fix indentation.
635
636 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
637
638 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
639 ordering in comment.
640 * frame.c (frame_id_eq): Fix indentation.
641
642 2020-08-31 Scott Linder <scott@scottlinder.com>
643 Simon Marchi <simon.marchi@efficios.com>
644
645 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
646 inline frame ids in outer frame.
647
648 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
649
650 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
651 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
652 (outer_frame_id): Use FID_STACK_OUTER instead of
653 FID_STACK_INVALID.
654 (frame_id_p): Don't check for outer_frame_id.
655
656 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
657
658 * frame-unwind.c (frame_unwind_got_optimized): Don't set
659 regnum/frame in value. Call allocate_value_lazy.
660 * frame.c (frame_unwind_register_value): Use
661 val_print_not_saved.
662
663 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
664
665 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
666
667 2020-08-29 Pedro Alves <pedro@palves.net>
668
669 * progspace.c (print_program_space): Use all_inferiors. Switch to
670 the inferior before calling target_pid_to_str.
671
672 2020-08-28 Tom Tromey <tom@tromey.com>
673
674 * xcoffread.c (xcoff_end_psymtab): Update comment.
675 * dbxread.c (dbx_end_psymtab): Update comment.
676
677 2020-08-28 Tom de Vries <tdevries@suse.de>
678
679 PR breakpoint/26544
680 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
681 event_location.
682 (create_breakpoint): Same.
683 (base_breakpoint_decode_location): Same.
684 (bkpt_create_sals_from_location): Same.
685 (bkpt_decode_location): Same.
686 (bkpt_probe_create_sals_from_location): Same.
687 (bkpt_probe_decode_location): Same.
688 (tracepoint_create_sals_from_location): Same.
689 (tracepoint_decode_location): Same.
690 (tracepoint_probe_decode_location): Same.
691 (strace_marker_create_sals_from_location): Same.
692 (strace_marker_decode_location): Same.
693 (create_sals_from_location_default): Same.
694 (decode_location_default): Same.
695 * breakpoint.h (struct breakpoint_ops): Same.
696 (create_breakpoint): Same.
697 * linespec.h (decode_line_full): Same.
698 * linespec.c (decode_line_full): Same. Throw error if
699 result.size () == 0.
700
701 2020-08-27 Pedro Alves <pedro@palves.net>
702
703 PR gdb/26524
704 * breakpoint.c (until_break_fsm) <location_breakpoint,
705 caller_breakpoint>: Delete fields.
706 <breakpoints>: New field.
707 <until_break_fsm>: Adjust to save a breakpoint vector instead of
708 two individual breakpoints.
709 (until_break_fsm::should_stop): Loop over breakpoints in the
710 breakpoint vector.
711 (until_break_fsm::clean_up): Adjust to clear the breakpoints
712 vector.
713 (until_break_command): Handle location expanding into multiple
714 sals.
715
716 2020-08-27 Pedro Alves <pedro@palves.net>
717
718 PR gdb/26523
719 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
720 bp_until breakpoints user-specified locations. Update intro
721 comment.
722
723 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
724
725 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
726 gdb_bfd_sections): New.
727 * maint.c (print_bfd_section_info): Change param type to
728 maint_print_section_data.
729 (print_objfile_section_info): Likewise.
730 (print_bfd_section_info_maybe_relocated): Likewise.
731 (maintenance_info_sections): Use gdb_bfd_sections.
732
733 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
734
735 * MAINTAINERS: Add ARC target and maintainer.
736
737 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
738
739 * configure.tgt: ARC support for GNU/Linux.
740 * Makefile.in (ALL_TARGET_OBJS): Likewise.
741 * arc-linux-tdep.c: New file.
742 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
743 * arc-tdep.c (arc_write_pc): Use it.
744
745 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
746
747 * arc-tdep.c (arc_check_for_hardware_loop): New.
748 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
749
750 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
751
752 * arc-tdep.h: Include "gdbarch.h".
753
754 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
755
756 * arch/arc.h
757 (arc_gdbarch_features): New class to stir the selection of target XML.
758 (arc_create_target_description): Use FEATURES to choose XML target.
759 (arc_lookup_target_description): Use arc_create_target_description
760 to create _new_ target descriptions or return the already created
761 ones if the FEATURES is the same.
762 * arch/arc.c: Implementation of prototypes described above.
763 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
764 (arc_gdbarch_features_init): Initialize the FEATURES struct.
765 * arc-tdep.c (*_feature_name): Make feature names consistent.
766 (arc_register_feature): A new struct to hold information about
767 registers of a particular target/feature.
768 (arc_check_tdesc_feature): Check if XML provides registers in
769 compliance with ARC_REGISTER_FEATURE structs.
770 (arc_update_acc_reg_names): Add aliases for r58 and r59.
771 (determine_*_reg_feature_set): Which feature name to look for.
772 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
773 (mach_type_to_arc_isa): Convert from a set of binutils machine types
774 to expected ISA enums to be used in arc_gdbarch_features structs.
775 * features/Makefile (FEATURE_XMLFILES): Add new files.
776 * gdb/features/arc/v1-aux.c: New file.
777 * gdb/features/arc/v1-aux.xml: Likewise.
778 * gdb/features/arc/v1-core.c: Likewise.
779 * gdb/features/arc/v1-core.xml: Likewise.
780 * gdb/features/arc/v2-aux.c: Likewise.
781 * gdb/features/arc/v2-aux.xml: Likewise.
782 * gdb/features/arc/v2-core.c: Likewise.
783 * gdb/features/arc/v2-core.xml: Likewise.
784 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
785
786 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
787 Andrew Burgess <andrew.burgess@embecosm.com>
788
789 PR m2/26372
790 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
791 an assert. Remove single element array indexing pattern as the
792 MULTI_SUBSCRIPT support will handle this case too.
793
794 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
795
796 * value.h (valprint_check_validity): Move declaration from
797 here...
798 * valprint.h (valprint_check_validity): ... to here.
799
800 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
801
802 * debug.h: New file.
803 * debug.c (debug_prefixed_vprintf): New function.
804 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
805 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
806
807 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
808
809 * infrun.h (infrun_debug_printf_1): New function declaration.
810 (infrun_debug_printf): New macro.
811 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
812 throughout.
813 (infrun_debug_printf): New function.
814 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
815 (handle_jit_event): Likewise.
816
817 2020-08-21 Mark Wielaard <mark@klomp.org>
818
819 * ada-lex.l: Extend register warnings diagnostics comment for g++.
820
821 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
822
823 * frame.c (enum class frame_id_status): New.
824 (struct frame_info) <this_id::p>: Change type to frame_id_status.
825 (fprintf_frame): Update.
826 (compute_frame_id): Set frame id status to "computing" on entry.
827 Set it back to "not_computed" on failure and to "computed" on
828 success.
829 (get_frame_id): Assert the frame id is not being computed.
830 (create_sentinel_frame): Use frame_id_status::COMPUTED.
831 (create_new_frame): Likewise.
832 (frame_cleanup_after_sniffer): Update assert.
833
834 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
835
836 * regcache.c (pid_ptid_regcache_map): New type.
837 (target_ptid_regcache_map): Remove.
838 (target_pid_ptid_regcache_map): New type.
839 (regcaches): Change type to target_pid_ptid_regcache_map.
840 (get_thread_arch_aspace_regcache): Update.
841 (regcache_thread_ptid_changed): Update, handle pid-like ptid
842 case.
843 (regcaches_size): Update.
844 (regcache_count): Update.
845 (registers_changed_ptid_target_pid_test): New.
846 (_initialize_regcache): Register new test.
847
848 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
849
850 * regcache.c (regcache_count): New.
851 (struct regcache_test_data): New.
852 (regcache_test_data_up): New.
853 (populate_regcaches_for_test): New.
854 (regcaches_test): Remove.
855 (get_thread_arch_aspace_regcache_test): New.
856 (registers_changed_ptid_all_test): New.
857 (registers_changed_ptid_target_test): New.
858 (registers_changed_ptid_target_ptid_test): New.
859 (regcache_thread_ptid_changed): Remove regcache_count lambda.
860 (_initialize_regcache): Register new tests.
861
862 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
863
864 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
865 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
866 gdbarch and aspace parameter. Use current inferior's aspace.
867 Validate regcache's arch value.
868 (regcaches_test): Update.
869
870 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
871
872 * regcache.c (regcaches_test): Call registers_changed.
873
874 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
875
876 * infrun.c (process_event_stop_test): Fix typo "breapoint".
877
878 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
879
880 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
881 to find the end of prologue for flang compiled binaries.
882 * arm-tdep.c (arm_skip_prologue): Likewise.
883 * i386-tdep.c (i386_skip_prologue): Likewise.
884 * producer.c (producer_is_llvm): New function.
885 (producer_parsing_tests): Added new tests for clang/flang.
886 * producer.h (producer_is_llvm): New declaration.
887
888 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
889
890 * linux-nat.c (linux_nat_debug_printf): New function.
891 (linux_nat_debug_printf_1): New macro. Use throughout the file.
892
893 2020-08-18 Aaron Merey <amerey@redhat.com>
894
895 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
896 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
897 (CLIBS): Add DEBUGINFOD_LIBS.
898
899 2020-08-17 Sergei Trofimovich <siarheit@google.com>
900
901 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
902 'gdbarch_num_regs'.
903
904 2020-08-17 Tom Tromey <tromey@adacore.com>
905
906 * ada-varobj.c (ada_varobj_decode_var): Handle case where
907 ada_get_decoded_value returns NULL.
908
909 2020-08-17 Tom Tromey <tromey@adacore.com>
910
911 * python/py-inferior.c (infpy_search_memory): Use
912 gdb_py_object_from_ulongest.
913 * python/py-infevents.c (create_inferior_call_event_object)
914 (create_memory_changed_event_object): Use
915 gdb_py_object_from_ulongest.
916 * python/py-linetable.c (ltpy_entry_get_pc): Use
917 gdb_py_object_from_ulongest.
918
919 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
920
921 * loc.c (class symbol_needs_eval_context): Fix indentation.
922
923 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
924
925 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
926 bool.
927
928 2020-08-17 Tom de Vries <tdevries@suse.de>
929
930 PR gdb/26393
931 * gdbtypes.c (dump_dynamic_prop): New function.
932 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
933
934 2020-08-15 Tom de Vries <tdevries@suse.de>
935
936 PR backtrace/26390
937 * stack.c (print_frame_args): Temporarily set the selected
938 frame to FRAME while printing the frame's arguments.
939
940 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
941
942 PR breakpoints/26385
943 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
944 Always clear watchpoint with PTRACE_SET_DEBUGREG.
945
946 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
947
948 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
949 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
950 and >= to check return value instead of == -1 and != -1.
951
952 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
953
954 * utils.h (class gdb_argv) <as_array_view>: New method.
955 * utils.c (gdb_argv_as_array_view_test): New.
956 (_initialize_utils): Register selftest.
957 * maint.c (maintenance_selftest): Use the new method.
958
959 2020-08-13 Kamil Rytarowski <n54@gmx.com>
960
961 * target.h (supports_dumpcore, dumpcore): New
962 function declarations.
963 * target.c (supports_dumpcore, dumpcore): New
964 functions.
965 * target-delegates.c: Rebuild.
966 * gcore.c (gcore_command): Use target_supports_dumpcore ()
967 and target_dumpcore ().
968
969 2020-08-13 Aaron Merey <amerey@redhat.com>
970
971 * debuginfod-support.c: Replace global variables with user_data.
972
973 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
974
975 * maint.c (maintenance_selftest): Split args and pass array_view
976 to run_tests.
977
978 2020-08-12 Luis Machado <luis.machado@linaro.org>
979
980 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
981 type's length.
982 Use %s and pulongest to print the length.
983
984 2020-08-12 Pedro Alves <palves@redhat.com>
985
986 * NEWS: Move "Multi-target debugging support" item to the
987 "Changes since GDB 9" section.
988
989 2020-08-12 Pedro Alves <palves@redhat.com>
990
991 PR gdb/26336
992 * progspace.c (program_space::remove_objfile): Invalidate the
993 frame cache.
994
995 2020-08-11 Tom de Vries <tdevries@suse.de>
996
997 * MAINTAINERS: Mark ms1 as deleted.
998
999 2020-08-10 Luis Machado <luis.machado@linaro.org>
1000
1001 PR gdb/26310
1002
1003 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1004 act accordingly.
1005 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1006 movz/str/stur/stp skipping behavior.
1007
1008 2020-08-10 Luis Machado <luis.machado@linaro.org>
1009
1010 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1011 struct user_sve_header instead of struct sve_context.
1012
1013 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1014
1015 * read.h (dwarf2_fetch_die_loc_sect_off,
1016 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1017 `void *` parameter with function_view.
1018 * read.c (dwarf2_fetch_die_loc_sect_off,
1019 dwarf2_fetch_die_loc_cu_off): Likewise.
1020 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1021 (per_cu_dwarf_call): Adjust.
1022 (get_frame_address_in_block_wrapper): Remove.
1023 (indirect_synthetic_pointer): Adjust.
1024 (get_ax_pc): Remove.
1025 (dwarf2_compile_expr_to_ax): Adjust.
1026
1027 2020-08-08 Tom de Vries <tdevries@suse.de>
1028
1029 PR build/26344
1030 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1031 constructor.
1032 * regcache.c (get_thread_arch_aspace_regcache): Same.
1033
1034 2020-08-07 Tom Tromey <tromey@adacore.com>
1035
1036 * ravenscar-thread.c
1037 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1038 New method.
1039 (ravenscar_thread_target::wait): Check
1040 runtime_initialized.
1041 (ravenscar_thread_target::prepare_to_store)
1042 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1043 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1044 (ravenscar_thread_target::stopped_by_watchpoint)
1045 (ravenscar_thread_target::stopped_data_address)
1046 (ravenscar_thread_target::core_of_thread): Use
1047 scoped_restore_current_thread and
1048 set_base_thread_from_ravenscar_task.
1049
1050 2020-08-07 Tom Tromey <tromey@adacore.com>
1051
1052 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1053
1054 2020-08-07 Tom Tromey <tromey@adacore.com>
1055
1056 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1057 update_inferior_ptid before update_thread_list.
1058 (temporarily_change_regcache_ptid): New class.
1059 (ravenscar_thread_target::fetch_registers)
1060 (ravenscar_thread_target::store_registers)
1061 (ravenscar_thread_target::prepare_to_store): Use base thread when
1062 forwarding operation.
1063
1064 2020-08-07 Tom Tromey <tromey@adacore.com>
1065
1066 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1067 "is_pid" case.
1068
1069 2020-08-07 Tom Tromey <tromey@adacore.com>
1070
1071 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1072 New methods.
1073 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1074 first.
1075 (ravenscar_thread_target::add_thread): Rename from
1076 ravenscar_add_thread.
1077 (ravenscar_thread_target::update_thread_list): Use a lambda.
1078 (ravenscar_thread_target::xfer_partial): New method.
1079
1080 2020-08-07 Tom Tromey <tromey@adacore.com>
1081
1082 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1083 gdb::function_view.
1084 (iterate_over_live_ada_tasks): Change type of argument.
1085 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1086 of argument.
1087
1088 2020-08-07 Tom Tromey <tromey@adacore.com>
1089
1090 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1091 Remove.
1092 (ravenscar_thread_target::extra_thread_info): Remove.
1093 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1094 defer to target beneath for non-Ravenscar threads.
1095
1096 2020-08-07 Tom Tromey <tromey@adacore.com>
1097
1098 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1099 get_base_thread_from_ravenscar_task>: Now methods.
1100 <m_cpu_map>: New member.
1101 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1102 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1103 (ravenscar_thread_target::task_is_currently_active): Update.
1104 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1105 Now a method.
1106 (ravenscar_thread_target::add_active_thread): Put initial thread
1107 into the m_cpu_map.
1108
1109 2020-08-07 Tom Tromey <tromey@adacore.com>
1110
1111 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1112 event_ptid.
1113
1114 2020-08-07 Tom Tromey <tromey@adacore.com>
1115
1116 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1117 runtime_initialized.
1118
1119 2020-08-07 Tom Tromey <tromey@adacore.com>
1120
1121 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1122 add_active_thread.
1123 (ravenscar_thread_target::add_active_thread): Now public.
1124 (ravenscar_inferior_created): Call add_active_thread after pushing
1125 the target.
1126
1127 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1128
1129 * regcache.c (ptid_regcache_map): New type.
1130 (target_ptid_regcache_map): New type.
1131 (regcaches): Change type to target_ptid_regcache_map.
1132 (get_thread_arch_aspace_regcache): Update to regcaches' new
1133 type.
1134 (regcache_thread_ptid_changed): Likewise.
1135 (registers_changed_ptid): Likewise.
1136 (regcaches_size): Likewise.
1137 (regcaches_test): Update.
1138 (regcache_thread_ptid_changed): Update.
1139 * regcache.h (regcache_up): New type.
1140 * gdbsupport/ptid.h (hash_ptid): New struct.
1141
1142 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1143
1144 * observable.h (thread_ptid_changed): Add parameter
1145 `process_stratum_target *`.
1146 * infrun.c (infrun_thread_ptid_changed): Add parameter
1147 `process_stratum_target *` and use it.
1148 (selftests): New namespace.
1149 (infrun_thread_ptid_changed): New function.
1150 (_initialize_infrun): Register selftest.
1151 * regcache.c (regcache_thread_ptid_changed): Add parameter
1152 `process_stratum_target *` and use it.
1153 (regcache_thread_ptid_changed): New function.
1154 (_initialize_regcache): Register selftest.
1155 * thread.c (thread_change_ptid): Pass target to
1156 thread_ptid_changed observable.
1157
1158 2020-08-06 Caroline Tice <cmtice@google.com>
1159
1160 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1161 (struct dwp_sections): Update field comments. Add loclists and
1162 rnglists fields.
1163 (struct virtual_v2_dwo_sections): Rename struct to
1164 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1165 size & offset fields for loclists and rnglists.
1166 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1167 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1168 skipping dummy type units.
1169 (create_dwp_hash_table): Update the large comment above the function to
1170 discuss Version 5 DWP files as well, with references. Update all the
1171 version checks in the function to check for version 5 as well. Add new
1172 section at the end to create dwp hash table for version 5.
1173 (create_dwp_v2_section): Rename function to
1174 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1175 Add V5 to error message text.
1176 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1177 into calls to create_dwp_v2_or_v5_section.
1178 (create_dwo_unit_in_dwp_v5): New function.
1179 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1180 check for version2; add else clause to handle version 5.
1181 (open_and_init_dwo_file): Add code to check dwarf version & only call
1182 create_debug_types_hash_table (with sections.types) if version is not 5;
1183 else call create_debug_type_hash_table, with sections.info.
1184 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1185 version 5.
1186 (dwarf2_locate_v5_dwp_sections): New function.
1187 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1188 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1189
1190 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1191
1192 * regcache.h (class regcache): Remove friend
1193 registers_changed_ptid.
1194 <regcache_thread_ptid_changed>: Remove.
1195 <regcaches>: Remove.
1196 * regcache.c (regcache::regcaches): Rename to...
1197 (regcaches): ... this. Make static.
1198 (get_thread_arch_aspace_regcache): Update.
1199 (regcache::regcache_thread_ptid_changed): Rename to...
1200 (regcache_thread_ptid_changed): ... this. Update.
1201 (class regcache_access): Remove.
1202 (regcaches_test): Update.
1203 (_initialize_regcache): Update.
1204 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1205 <forward_list>.
1206
1207 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1208
1209 * regcache.h (class regcache) <current_regcache>: Rename to...
1210 <regcaches>: ... this. Move doc here.
1211 * regcache.c (regcache::current_regcache) Rename to...
1212 (regcache::regcaches): ... this. Move doc to header.
1213 (get_thread_arch_aspace_regcache): Update.
1214 (regcache::regcache_thread_ptid_changed): Update.
1215 (registers_changed_ptid): Update.
1216 (class regcache_access) <current_regcache_size>: Rename to...
1217 <regcaches_size>: ... this.
1218 (current_regcache_test): Rename to...
1219 (regcaches_test): ... this.
1220 (_initialize_regcache): Update.
1221
1222 2020-08-06 Victor Collod <vcollod@nvidia.com>
1223
1224 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1225
1226 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1227
1228 * corelow.c (core_target::build_file_mappings): Don't output
1229 null pathname in warning.
1230
1231 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1232
1233 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1234 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1235 gdb.dwarf2/dw2-single-line-discriminators.exp,
1236 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1237
1238 2020-08-05 Tom Tromey <tromey@adacore.com>
1239
1240 PR rust/26197:
1241 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1242 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1243 Fix off-by-one and type size errors in ordinary case.
1244
1245 2020-08-05 Tom de Vries <tdevries@suse.de>
1246
1247 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1248 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1249
1250 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1251
1252 * frame.h (frame_id_p): Return bool.
1253 (frame_id_artificial_p): Return bool.
1254 (frame_id_eq): Return bool.
1255 (has_stack_frames): Return bool.
1256 (get_selected_frame): Fix typo in comment.
1257 (get_frame_pc_if_available): Return bool.
1258 (get_frame_address_in_block_if_available): Return bool.
1259 (get_frame_func_if_available): Return bool.
1260 (read_frame_register_unsigned): Return bool.
1261 (get_frame_register_bytes): Return bool.
1262 (safe_frame_unwind_memory): Return bool.
1263 (deprecated_frame_register_read): Return bool.
1264 (frame_unwinder_is): Return bool.
1265 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1266 bool.
1267 <this_id::p>: Likewise.
1268 <prev_p>: Likewise.
1269 (frame_stash_add): Return bool.
1270 (get_frame_id): Use bool.
1271 (frame_id_build_special) Use bool.
1272 (frame_id_build_unavailable_stack): Use bool.
1273 (frame_id_build): Use bool.
1274 (frame_id_p): Return bool, use true/false instead of 1/0.
1275 (frame_id_artificial_p): Likewise.
1276 (frame_id_eq): Likewise.
1277 (frame_id_inner): Likewise.
1278 (get_frame_func_if_available): Likewise.
1279 (read_frame_register_unsigned): Likewise.
1280 (deprecated_frame_register_read): Likewise.
1281 (get_frame_register_bytes): Likewise.
1282 (has_stack_frames): Likewise.
1283 (inside_main_func): Likewise.
1284 (inside_entry_func): Likewise.
1285 (get_frame_pc_if_available): Likewise.
1286 (get_frame_address_in_block_if_available): Likewise.
1287 (frame_unwinder_is): Likewise.
1288 (safe_frame_unwind_memory): Likewise.
1289 (frame_unwind_arch): Likewise.
1290
1291 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1292
1293 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1294 type to cached_copy_status.
1295 (fprintf_frame): Adjust.
1296 (get_frame_func_if_available): Adjust.
1297 (frame_cleanup_after_sniffer): Adjust.
1298
1299 2020-08-04 Mark Wielaard <mark@klomp.org>
1300
1301 * MAINTAINERS (Write After Approval): Update email address.
1302
1303 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1304
1305 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1306 dynamic_prop::const_val.
1307
1308 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1309
1310 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1311 dynamic_prop::kind.
1312
1313 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1314
1315 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1316
1317 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1318
1319 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1320
1321 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1322 Jose E. Marchesi <jose.marchesi@oracle.com>
1323
1324 * configure.tgt: Add entry for bpf-*-*.
1325 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1326 (ALLDEPFILES): Add bpf-tdep.c.
1327 * bpf-tdep.c: New file.
1328 * MAINTAINERS: Add bpf target and maintainer.
1329 * NEWS: Mention the support for the new target.
1330
1331 2020-08-04 Tom de Vries <tdevries@suse.de>
1332
1333 PR symtab/23270
1334 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1335 Error.
1336
1337 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1338
1339 * syscalls/freebsd.xml: Regenerate.
1340
1341 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1342
1343 * syscalls/update-freebsd.sh: Fix usage and year range.
1344
1345 2020-08-03 Tom de Vries <tdevries@suse.de>
1346
1347 PR symtab/26333
1348 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1349 DW_LNE_lo_user/DW_LNE_hi_user range.
1350
1351 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1352
1353 PR ada/26318
1354 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1355 kind.
1356
1357 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1358
1359 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1360
1361 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1362
1363 * breakpoint.c (set_breakpoint_condition): Update the condition
1364 expressions after checking that the input condition string parses
1365 successfully and does not contain junk at the end.
1366
1367 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1368
1369 * breakpoint.c (set_breakpoint_condition): Update the
1370 condition string after parsing the new condition successfully.
1371
1372 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1373
1374 * proc-api.c (_STRUCTURED_PROC): Don't define.
1375 * proc-events.c: Likewise.
1376 * proc-flags.c: Likewise.
1377 * proc-why.c: Likewise.
1378 * procfs.c: Likewise.
1379
1380 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1381 * configure, config.in: Regenerate.
1382
1383 2020-07-30 Tom de Vries <tdevries@suse.de>
1384
1385 PR build/26320
1386 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1387 m_red/m_green/m_blue in a union.
1388
1389 2020-07-29 Tom de Vries <tdevries@suse.de>
1390
1391 PR tdep/26280
1392 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1393
1394 2020-07-28 Tom Tromey <tromey@adacore.com>
1395
1396 PR symtab/26270:
1397 * symtab.h (find_pc_partial_function_sym): Declare.
1398 * cli/cli-cmds.c (disassemble_command): Use
1399 find_pc_partial_function_sym. Check asm_demangle.
1400 * blockframe.c (cache_pc_function_sym): New global.
1401 (cache_pc_function_name): Remove.
1402 (clear_pc_function_cache): Update.
1403 (find_pc_partial_function_sym): New function, from
1404 find_pc_partial_function.
1405 (find_pc_partial_function): Rewrite using
1406 find_pc_partial_function_sym.
1407
1408 2020-07-28 Tom Tromey <tromey@adacore.com>
1409
1410 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1411 help. Add usage.
1412
1413 2020-07-28 Tom Tromey <tromey@adacore.com>
1414
1415 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1416 <DW_OP_GNU_variable_value>: Cast to address type.
1417
1418 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1419
1420 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1421 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1422 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1423 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1424 (nbsd_get_siginfo_type): New.
1425 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1426 (_initialize_nbsd_tdep): New.
1427
1428 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1429
1430 PR binutils/26301
1431 * configure: Regenerated.
1432
1433 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1434
1435 PR binutils/26301
1436 * configure: Regenerated.
1437
1438 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1439
1440 * python/py-frame.c: Remove 'user-regs.h' include.
1441 (frapy_read_register): Rewrite to make use of
1442 gdbpy_parse_register_id.
1443 * python/py-registers.c (gdbpy_parse_register_id): New function,
1444 moved here from python/py-unwind.c. Updated the return type, and
1445 also accepts register descriptor objects.
1446 * python/py-unwind.c: Remove 'user-regs.h' include.
1447 (pyuw_parse_register_id): Moved to python/py-registers.c.
1448 (unwind_infopy_add_saved_register): Update to use
1449 gdbpy_parse_register_id.
1450 (pending_framepy_read_register): Likewise.
1451 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1452
1453 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1454
1455 * python/py-registers.c: Add 'user-regs.h' include.
1456 (register_descriptor_iter_find): New function.
1457 (register_descriptor_iterator_object_methods): New static global
1458 methods array.
1459 (register_descriptor_iterator_object_type): Add pointer to methods
1460 array.
1461
1462 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1463
1464 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1465 for all architectures on FreeBSD 11.3 and later.
1466
1467 2020-07-27 Tom Tromey <tromey@adacore.com>
1468
1469 * gcore.h (load_corefile): Don't declare.
1470
1471 2020-07-27 Tom de Vries <tdevries@suse.de>
1472
1473 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1474 * config.in: Regenerate.
1475 * configure: Regenerate.
1476
1477 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1478
1479 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1480 ws2tcpip.h. When checking whether socklen_t type is defined, use
1481 ws2tcpip.h if it is available and sys/socket.h isn't.
1482 * configure: Regenerate.
1483 * config.in: Regenerate.
1484
1485 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1486
1487 PR fortran/23051
1488 PR fortran/26139
1489 * valops.c (value_ind): Pass address to
1490 readjust_indirect_value_type.
1491 * value.c (readjust_indirect_value_type): Make parameter
1492 non-const, and add extra address parameter. Resolve original type
1493 before using it.
1494 * value.h (readjust_indirect_value_type): Update function
1495 signature and comment.
1496
1497 2020-07-25 Tom de Vries <tdevries@suse.de>
1498
1499 PR symtab/26243
1500 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1501 entries.
1502
1503 2020-07-24 Aaron Merey <amerey@redhat.com>
1504
1505 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1506 * configure: Rebuild.
1507
1508 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1509
1510 PR corefiles/26294
1511 * corelow.c (_initialize_corelow): Add period to help text
1512 for "maintenance print core-file-backed-mappings".
1513
1514 2020-07-23 Pedro Alves <pedro@palves.net>
1515
1516 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1517 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1518 meanwhile.
1519 * frame.c (frame_cache_generation, get_frame_cache_generation):
1520 New.
1521 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1522 (get_prev_frame_if_no_cycle): On exception, don't touch
1523 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1524 * frame.h (get_frame_cache_generation): Declare.
1525
1526 2020-07-23 Tom de Vries <tdevries@suse.de>
1527
1528 PR tui/26282
1529 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1530 New default constructor.
1531
1532 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1533
1534 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1535 exclude non-statement entries.
1536
1537 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1538
1539 * NEWS (New commands): Mention new command
1540 "maintenance print core-file-backed-mappings".
1541
1542 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1543
1544 * corelow.c (gdbcmd.h): Include.
1545 (core_target::info_proc_mappings): New method.
1546 (get_current_core_target): New function.
1547 (maintenance_print_core_file_backed_mappings): New function.
1548 (_initialize_corelow): Add core-file-backed-mappings to
1549 "maint print" commands.
1550
1551 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1552
1553 * linux-tdep.c (dump_note_entry_p): New function.
1554 (linux_dump_mapping_p_ftype): New typedef.
1555 (linux_find_memory_regions_full): Add new parameter,
1556 should_dump_mapping_p.
1557 (linux_find_memory_regions): Adjust call to
1558 linux_find_memory_regions_full.
1559 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1560 call to linux_find_memory_regions_full.
1561
1562 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1563
1564 * corelow.c (solist.h, unordered_map): Include.
1565 (class core_target): Add field m_core_file_mappings and
1566 method build_file_mappings.
1567 (core_target::core_target): Call build_file_mappings.
1568 (core_target::~core_target): Free memory associated with
1569 m_core_file_mappings.
1570 (core_target::build_file_mappings): New method.
1571 (core_target::xfer_partial): Use m_core_file_mappings
1572 for memory transfers.
1573 * linux-tdep.c (linux_read_core_file_mappings): New
1574 function.
1575 (linux_core_info_proc_mappings): Rewrite to use
1576 linux_read_core_file_mappings.
1577 (linux_init_abi): Register linux_read_core_file_mappings.
1578
1579 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1580
1581 * arch-utils.c (default_read_core_file_mappings): New function.
1582 * arch-utils.c (default_read_core_file_mappings): Declare.
1583 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1584 * gdbarch.h, gdbarch.c: Regenerate.
1585
1586 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1587
1588 PR corefiles/25631
1589 * corelow.c (core_target:xfer_partial): Revise
1590 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1591 case after first checking the stratum beneath the core
1592 target.
1593 (has_all_memory): Return true.
1594 * target.c (raw_memory_xfer_partial): Revise comment
1595 regarding use of has_all_memory.
1596
1597 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1598
1599 * exec.h (section_table_xfer_memory): Revise declaration,
1600 replacing section name parameter with an optional callback
1601 predicate.
1602 * exec.c (section_table_xfer_memory): Likewise.
1603 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1604 of section_table_xfer_memory.
1605
1606 2020-07-22 Tom Tromey <tromey@adacore.com>
1607
1608 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1609 lookup_symbol_search_name.
1610
1611 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1612
1613 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1614 redundant local variable.
1615 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1616 reference, not pointer, update code accordingly.
1617
1618 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1619 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1620
1621 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1622 * jit.c (jit_breakpoint_re_set_internal): Use the
1623 `skip_jit_symbol_lookup` field.
1624
1625 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1626 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1627
1628 * jit.c (jit_read_descriptor): Define the descriptor address once,
1629 use twice.
1630 (jit_breakpoint_deleted): Move the declaration of the loop variable
1631 `iter` into the loop header.
1632 (jit_breakpoint_re_set_internal): Move the declaration of the local
1633 variable `objf_data` to the first point of definition.
1634 (jit_event_handler): Move the declaration of local variables
1635 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1636 Rename `objf` to `jited`.
1637
1638 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1639
1640 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1641 Remove.
1642 * jit.c (get_jiter_objfile_data): Update.
1643
1644 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1645 Simon Marchi <simon.marchi@polymtl.ca>
1646
1647 * jit.c (struct jit_program_space_data): Remove.
1648 (jit_program_space_key): Remove.
1649 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1650 stuff.
1651 (get_jit_program_space_data): Remove.
1652 (jit_breakpoint_deleted): Iterate on all of the program space's
1653 objfiles.
1654 (jit_inferior_init): Likewise.
1655 (jit_breakpoint_re_set_internal): Likewise. Also change return
1656 type to void.
1657 (jit_breakpoint_re_set): Pass current_program_space to
1658 jit_breakpoint_re_set_internal.
1659
1660 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1661
1662 * jit.h (struct jiter_objfile_data) <cached_code_address,
1663 jit_breakpoint>: Move to here from ...
1664 * jit.c (jit_program_space_data): ... here.
1665 (jiter_objfile_data::~jiter_objfile_data): Update.
1666 (jit_breakpoint_deleted): Update.
1667 (jit_breakpoint_re_set_internal): Update.
1668
1669 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1670
1671 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1672 checks.
1673 (jit_read_descriptor): Remove NULL check.
1674 (jit_event_handler): Add an assertion.
1675
1676 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1677
1678 * jit.h (struct jit_objfile_data): Split into...
1679 (struct jiter_objfile_data): ... this ...
1680 (struct jited_objfile_data): ... and this.
1681 * objfiles.h (struct objfile) <jit_data>: Remove.
1682 <jiter_data, jited_data>: New fields.
1683 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1684 (jiter_objfile_data::~jiter_objfile_data): ... this.
1685 (get_jit_objfile_data): Rename to ...
1686 (get_jiter_objfile_data): ... this.
1687 (add_objfile_entry): Update.
1688 (jit_read_descriptor): Use get_jiter_objfile_data.
1689 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1690 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1691 (jit_inferior_exit_hook): Use objfile's jited_data field.
1692
1693 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1694
1695 * jit.h: Forward-declare `struct minimal_symbol`.
1696 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1697 constructor, destructor, and an objfile* field.
1698 * jit.c (jit_objfile_data): Remove.
1699 (struct jit_objfile_data): Migrate from here to jit.h.
1700 (jit_objfile_data::~jit_objfile_data): New destructor
1701 implementation with code moved from free_objfile_data.
1702 (free_objfile_data): Delete.
1703 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1704 (jit_find_objf_with_entry_addr): Ditto.
1705 (jit_inferior_exit_hook): Ditto.
1706 (_initialize_jit): Remove the call to
1707 register_objfile_data_with_cleanup.
1708 * objfiles.h (struct objfile) <jit_data>: New field.
1709
1710 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1711
1712 * jit.h: Forward-declare `struct objfile`.
1713 (jit_event_handler): Add a second parameter, the JITer objfile.
1714 * jit.c (jit_read_descriptor): Change the signature to take the
1715 JITer objfile as an argument instead of the jit_program_space_data.
1716 (jit_inferior_init): Update the call to jit_read_descriptor.
1717 (jit_event_handler): Use the new JITer objfile argument when calling
1718 jit_read_descriptor.
1719 * breakpoint.c (handle_jit_event): Update the call to
1720 jit_event_handler to pass the JITer objfile.
1721
1722 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1723
1724 * gdbarch.c: Regenerate.
1725 * gdbarch.h: Regenerate.
1726 * gdbarch.sh (handle_segmentation_fault): Remove method.
1727 * infrun.c (handle_segmentation_fault): Remove.
1728 (print_signal_received_reason): Remove call to
1729 handle_segmentation_fault.
1730
1731 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1732
1733 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1734 Rename to sparc64_linux_report_signal_info and add siggnal
1735 argument.
1736 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1737 instead of sparc64_linux_handle_segmentation_fault.
1738
1739 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1740
1741 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1742 i386_linux_report_signal_info instead of
1743 i386_linux_handle_segmentation_fault.
1744 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1745 to i386_linux_report_signal_info and add siggnal argument.
1746 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1747 of i386_linux_handle_segmentation_fault.
1748 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1749 to i386_linux_report_signal_info and add siggnal argument.
1750
1751 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1752
1753 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1754 hook if present.
1755
1756 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1757
1758 * gdbarch.c: Regenerate.
1759 * gdbarch.h: Regenerate.
1760 * gdbarch.sh (report_signal_info): New method.
1761 * infrun.c (print_signal_received_reason): Invoke gdbarch
1762 report_signal_info hook if present.
1763
1764 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1765
1766 * python/py-registers.c : Add 'unordered_map' include.
1767 (gdbpy_new_reggroup): Renamed to...
1768 (gdbpy_get_reggroup): ...this. Update to only create register
1769 group descriptors when needed.
1770 (gdbpy_reggroup_iter_next): Update.
1771
1772 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1773
1774 * python/py-registers.c (gdbpy_register_object_data): New static
1775 global.
1776 (gdbpy_register_object_data_init): New function.
1777 (gdbpy_new_register_descriptor): Renamed to...
1778 (gdbpy_get_register_descriptor): ...this, and update to reuse
1779 existing register descriptors where possible.
1780 (gdbpy_register_descriptor_iter_next): Update.
1781 (gdbpy_initialize_registers): Register new gdbarch data.
1782
1783 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1784
1785 * linux-nat.c (stopped_pids): Make static.
1786
1787 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1788
1789 PR ada/26235
1790 * gdbtypes.c (ada_discrete_type_low_bound,
1791 ada_discrete_type_high_bound): Handle undefined bounds.
1792
1793 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1794
1795 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1796 declaration.
1797 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1798 function.
1799
1800 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1801
1802 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1803 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1804 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1805 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1806 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1807 method.
1808
1809 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1810
1811 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1812 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1813 which are deprecated in Guile 3.0.
1814 * configure.ac (try_guile_versions): Add "guile-3.0".
1815 * configure (try_guile_versions): Regenerate.
1816 * NEWS: Update entry.
1817
1818 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1819 Doug Evans <dje@google.com>
1820
1821 PR gdb/21104
1822 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1823 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1824 USING_GUILE_BEFORE_2_2.
1825 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1826 Change type to 'scm_t_port_type *'.
1827 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1828 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1829 parameter and honor it. Update callers.
1830 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1831 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1832 functions.
1833 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1834 USING_GUILE_BEFORE_2_2.
1835 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1836 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1837 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1838 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1839 and 'SCM_PORT_TYPE'.
1840 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1841 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1842 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1843 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1844 [!USING_GUILE_BEFORE_2_2]: New functions.
1845 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1846 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1847 'gdbscm_memory_port_read'.
1848 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1849 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1850 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1851 function.
1852 (ioscm_init_memory_port): Remove.
1853 (ioscm_init_memory_port_stream): New function
1854 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1855 function.
1856 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1857 Return scm_from_uint (0).
1858 (gdbscm_set_memory_port_read_buffer_size_x)
1859 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1860 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1861 Return scm_from_uint (0).
1862 (gdbscm_set_memory_port_write_buffer_size_x)
1863 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1864 * configure.ac (try_guile_versions): Add "guile-2.2".
1865 * configure: Regenerate.
1866 * NEWS: Add entry.
1867
1868 2020-07-18 Tom Tromey <tom@tromey.com>
1869
1870 * linux-nat.c (linux_multi_process): Remove.
1871 (linux_nat_target::supports_multi_process): Return true.
1872
1873 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1874
1875 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1876 (riscv_lookup_target_description): Return pointer out of
1877 unique_ptr.
1878 * target-descriptions.c (allocate_target_description): Add
1879 comment.
1880 (target_desc_deleter::operator()): Likewise.
1881 * target-descriptions.h (struct target_desc_deleter): Moved to
1882 gdbsupport/tdesc.h.
1883 (target_desc_up): Likewise.
1884
1885 2020-07-17 Tom Tromey <tromey@adacore.com>
1886
1887 * linux-nat.c (linux_nat_target::supports_non_stop)
1888 (linux_nat_target::always_non_stop_p): Use "true".
1889 (linux_nat_target::supports_disable_randomization): Use "true" and
1890 "false".
1891
1892 2020-07-16 Caroline Tice <cmtice@google.com>
1893
1894 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1895 (RNGLIST_HEADER_SIZE64): New constant definition.
1896 (struct dwop_section_names): Add rnglists_dwo.
1897 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1898 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1899 (struct dwo_sections): Add rnglists field.
1900 (read_attribut_reprocess): Add tag parameter.
1901 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1902 (cu_debug_rnglists_section): New function (decl & definition).
1903 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1904 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1905 die whose range is being checked; get rnglist section from
1906 cu_debug_rnglists_section, to get from either objfile or dwo file as
1907 appropriate. Add cases for DW_RLE_base_addressx,
1908 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1909 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1910 test inside if-condition and updating complaint message.
1911 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1912 dwarf2_rnglists_process.
1913 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1914 dwarf2_ranges_process.
1915 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1916 need_ranges_base and update comment appropriately. Also pass die tag
1917 to dwarf2_ranges_read.
1918 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1919 need_ranges_base and update comment appropriately. Also pass die tag
1920 to dwarf2_ranges_process.
1921 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1922 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1923 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1924 need_ranges_base and update comment appropriately. Also pass die tag
1925 to read_attribute_reprocess and dwarf2_ranges_read.
1926 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1927 and update function comment appropriately.
1928 (read_loclist_index): Call read_loclists_rnglists_header instead of
1929 read_loclist_header.
1930 (read_rnglist_index): New function.
1931 (read_attribute_reprocess): Add tag parameter. Add code for
1932 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1933 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1934
1935 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1936
1937 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1938 being resolved.
1939
1940 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1941
1942 * arch-utils.c (show_architecture): Update formatting of messages.
1943
1944 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1945
1946 * gdbtypes.h (struct type) <bounds>: Handle array and string
1947 types.
1948 * ada-lang.c (assign_aggregate): Use type::bounds on
1949 array/string type.
1950 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1951 * c-varobj.c (c_number_of_children): Likewise.
1952 (c_describe_child): Likewise.
1953 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1954 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1955 (f_type_print_base): Likewise.
1956 * f-valprint.c (f77_array_offset_tbl): Likewise.
1957 (f77_get_upperbound): Likewise.
1958 (f77_print_array_1): Likewise.
1959 * guile/scm-type.c (gdbscm_type_range): Likewise.
1960 * m2-typeprint.c (m2_array): Likewise.
1961 (m2_is_long_set_of_type): Likewise.
1962 * m2-valprint.c (get_long_set_bounds): Likewise.
1963 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1964 * python/py-type.c (typy_range): Likewise.
1965 * rust-lang.c (rust_internal_print_type): Likewise.
1966 * type-stack.c (type_stack::follow_types): Likewise.
1967 * valarith.c (value_subscripted_rvalue): Likewise.
1968 * valops.c (value_cast): Likewise.
1969
1970 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1971
1972 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1973 callers to use the equivalent accessor methods.
1974
1975 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1976
1977 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1978 (struct type) <bit_stride>: New method.
1979 (TYPE_BIT_STRIDE): Remove.
1980 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1981
1982 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1983
1984 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1985 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1986 callers to use the equivalent accessor methods instead.
1987
1988 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1989
1990 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1991 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1992 callers to use the equivalent accessor methods instead.
1993
1994 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1995
1996 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1997 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1998 to use dynamic_prop::kind.
1999
2000 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2001
2002 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2003 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2004 to get the bound property's kind and check against
2005 PROP_UNDEFINED.
2006
2007 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2008
2009 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2010 all callers to use type::range_bounds followed by
2011 dynamic_prop::{low,high}.
2012
2013 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2014
2015 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2016 const_val, set_const_val, baton, set_locexpr, set_loclist,
2017 set_addr_offset, variant_parts, set_variant_parts,
2018 original_type, set_original_type>: New methods.
2019 <kind>: Rename to...
2020 <m_kind>: ... this. Update all users to use the new methods
2021 instead.
2022 <data>: Rename to...
2023 <m_data>: ... this. Update all users to use the new methods
2024 instead.
2025
2026 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2027
2028 * gdbtypes.c (get_discrete_bounds): Return failure if
2029 the range type's bounds are not both defined and constant
2030 values.
2031 (get_array_bounds): Update comment. Remove undefined bound check.
2032
2033 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2034
2035 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2036 the type::bounds method directly.
2037
2038 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2039
2040 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2041 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2042 are used to set the range type's bounds to use set_bounds.
2043
2044 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2045
2046 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2047
2048 2020-07-10 Pedro Alves <pedro@palves.net>
2049
2050 * gdbthread.h (inferior_ref): Define.
2051 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2052 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2053 * thread.c
2054 (scoped_restore_current_thread::restore):
2055 Adjust to gdb::ref_ptr.
2056 (scoped_restore_current_thread::~scoped_restore_current_thread):
2057 Remove manual decref handling.
2058 (scoped_restore_current_thread::scoped_restore_current_thread):
2059 Adjust to use
2060 inferior_ref::new_reference/thread_info_ref::new_reference.
2061 Incref the thread before calling get_frame_id instead of after.
2062 Let TARGET_CLOSE_ERROR propagate.
2063
2064 2020-07-10 Pedro Alves <pedro@palves.net>
2065
2066 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2067 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2068 NOT_AVAILABLE_ERROR.
2069 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2070 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2071
2072 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2073 Pedro Alves <pedro@palves.net>
2074
2075 PR gdb/26199
2076 * infrun.c (threads_are_resumed_pending_p): Delete.
2077 (do_target_wait): Remove threads_are_executing and
2078 threads_are_resumed_pending_p checks from the inferior_matches
2079 lambda. Update comments.
2080
2081 2020-07-10 Pedro Alves <pedro@palves.net>
2082
2083 PR gdb/26199
2084 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2085 executing threads.
2086
2087 2020-07-10 Pedro Alves <pedro@palves.net>
2088
2089 PR gdb/26199
2090 * infrun.c (handle_no_resumed): Handle multiple targets.
2091
2092 2020-07-10 Pedro Alves <pedro@palves.net>
2093
2094 PR gdb/26199
2095 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2096 target_is_async_p.
2097
2098 2020-07-10 Pedro Alves <pedro@palves.net>
2099
2100 PR gdb/26199
2101 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2102 threads, not all threads.
2103
2104 2020-07-10 Pedro Alves <pedro@palves.net>
2105
2106 PR gdb/26199
2107 * remote.c (remote_target::open_1): Pass remote target pointer as
2108 data to create_async_event_handler.
2109 (remote_async_inferior_event_handler): Mark async event handler
2110 before returning if the remote target still has either pending
2111 events or unacknowledged notifications.
2112
2113 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2114
2115 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2116 declaration.
2117 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2118 function.
2119
2120 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2121
2122 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2123 inferior_ptid.
2124
2125 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2126
2127 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2128 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2129 AT_FREEBSD_PS_STRINGS.
2130
2131 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2132
2133 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2134 of debugfile path on Windows.
2135
2136 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2137
2138 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2139 argument to 'data'.
2140
2141 2020-07-08 Tom Tromey <tromey@adacore.com>
2142
2143 * ada-lang.c (ada_exception_message_1): Use read_memory.
2144
2145 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2146
2147 PR python/22748
2148 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2149 special handling for inline frames.
2150 * findvar.c (value_of_register_lazy): Skip inline frames when
2151 creating lazy register values.
2152 * frame.c (frame_id_computed_p): Delete definition.
2153 * frame.h (frame_id_computed_p): Delete declaration.
2154
2155 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2156
2157 * NEWS: Mention additions to Python API.
2158 * python/py-arch.c (archpy_register_groups): New function.
2159 (arch_object_methods): Add 'register_groups' method.
2160 * python/py-registers.c (reggroup_iterator_object): New struct.
2161 (reggroup_object): New struct.
2162 (gdbpy_new_reggroup): New function.
2163 (gdbpy_reggroup_to_string): New function.
2164 (gdbpy_reggroup_name): New function.
2165 (gdbpy_reggroup_iter): New function.
2166 (gdbpy_reggroup_iter_next): New function.
2167 (gdbpy_new_reggroup_iterator): New function
2168 (gdbpy_initialize_registers): Register new types.
2169 (reggroup_iterator_object_type): Define new Python type.
2170 (gdbpy_reggroup_getset): New static global.
2171 (reggroup_object_type): Define new Python type.
2172 * python/python-internal.h
2173
2174 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2175
2176 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2177 * python/py-arch.c (archpy_registers): New function.
2178 (arch_object_methods): Add 'registers' method.
2179 * python/py-registers.c: New file.
2180 * python/python-internal.h
2181 (gdbpy_new_register_descriptor_iterator): Declare.
2182 (gdbpy_initialize_registers): Declare.
2183 * python/python.c (do_start_initialization): Call
2184 gdbpy_initialize_registers.
2185 * NEWS: Mention additions to the Python API.
2186
2187 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2188
2189 * NEWS: Mention new Python API method.
2190 * python/py-unwind.c (pending_framepy_architecture): New function.
2191 (pending_frame_object_methods): Add architecture method.
2192
2193 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2194
2195 * gdbarch.c: Regenerate.
2196 * gdbarch.h: Regenerate.
2197 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2198 (gdbarch_data): Use internal_error for the case where
2199 deprecated_set_gdbarch_data was originally needed.
2200 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2201 and use passed in obstack.
2202 (libunwind_frame_set_descr): Should no longer get back NULL from
2203 gdbarch_data.
2204 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2205 type.
2206 * user-regs.c (user_regs_init): Update parameters, and use passed
2207 in obstack.
2208 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2209 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2210
2211 2020-07-06 Tom de Vries <tdevries@suse.de>
2212
2213 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2214 End-Of-Sequence in lte_is_less_than.
2215 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2216 "gdb: Don't reorder line table entries too much when sorting".
2217
2218 2020-07-06 Tom de Vries <tdevries@suse.de>
2219
2220 PR tui/26205
2221 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2222
2223 2020-07-05 Tom de Vries <tdevries@suse.de>
2224
2225 PR build/26187
2226 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2227 std::uncaught_exceptions instead of deprecated
2228 std::uncaught_exception.
2229
2230 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2231
2232 * macroexp.h (macro_stringify): Return
2233 gdb::unique_xmalloc_ptr<char>.
2234 * macroexp.c (macro_stringify): Likewise.
2235 * macrotab.c (fixup_definition): Update.
2236
2237 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2238
2239 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2240 (lex_one_token): Update.
2241 * macroexp.c (struct macro_buffer) <release>: Return
2242 gdb::unique_xmalloc_ptr<char>.
2243 (macro_stringify): Update.
2244 (macro_expand): Update.
2245 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2246 * macroexp.h (macro_expand_next): Likewise.
2247
2248 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2249
2250 * macroexp.h (macro_lookup_ftype): Remove.
2251 (macro_expand, macro_expand_once, macro_expand_next): Remove
2252 lookup function parameters, add scope parameter.
2253 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2254 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2255 * macroscope.h (standard_macro_lookup): Change parameter type
2256 to macro_scope.
2257 * macroscope.c (standard_macro_lookup): Likewise.
2258 * c-exp.y (lex_one_token): Update.
2259 * macrocmd.c (macro_expand_command): Likewise.
2260 (macro_expand_once_command): Likewise.
2261
2262 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2263
2264 * inf-loop.c (inferior_event_handler): Remove client_data param.
2265 * inf-loop.h (inferior_event_handler): Likewise.
2266 * infcmd.c (step_1): Adjust.
2267 * infrun.c (proceed): Adjust.
2268 (fetch_inferior_event): Remove client_data param.
2269 (infrun_async_inferior_event_handler): Adjust.
2270 * infrun.h (fetch_inferior_event): Remove `void *` param.
2271 * linux-nat.c (handle_target_event): Adjust.
2272 * record-btrace.c (record_btrace_handle_async_inferior_event):
2273 Adjust.
2274 * record-full.c (record_full_async_inferior_event_handler):
2275 Adjust.
2276 * remote.c (remote_async_inferior_event_handler): Adjust.
2277
2278 2020-07-01 Tom Tromey <tom@tromey.com>
2279
2280 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2281 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2282
2283 2020-07-01 Tom Tromey <tom@tromey.com>
2284
2285 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2286 tui_gen_win_info.
2287 (tui_win_info::make_window): Merge with
2288 tui_gen_win_info::make_window.
2289 (tui_win_info::make_visible): Move from tui_gen_win_info.
2290 * tui/tui-win.c (tui_win_info::max_width): Move from
2291 tui_gen_win_info.
2292 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2293 type.
2294 <window_factory>: Likewise.
2295 * tui/tui-layout.c (tui_win_info::resize): Move from
2296 tui_gen_win_info.
2297 (make_standard_window): Change return type.
2298 (get_locator_window, tui_get_window_by_name): Likewise.
2299 (tui_layout_window::apply): Remove a cast.
2300 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2301 (struct tui_win_info): Merge with tui_gen_win_info.
2302 (struct tui_gen_win_info): Remove.
2303
2304 2020-07-01 Tom Tromey <tom@tromey.com>
2305
2306 * tui/tui-stack.h (struct tui_locator_window): Derive from
2307 tui_win_info.
2308 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2309 <can_box>: New method.
2310
2311 2020-07-01 Tom Tromey <tom@tromey.com>
2312
2313 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2314
2315 2020-07-01 Tom Tromey <tom@tromey.com>
2316
2317 * tui/tui-regs.c (tui_data_window::display_registers_from)
2318 (tui_data_window::display_registers_from)
2319 (tui_data_window::first_data_item_displayed)
2320 (tui_data_window::delete_data_content_windows): Update.
2321 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2322 Remove.
2323 (tui_data_window::check_register_values): Update.
2324 (tui_data_item_window::rerender): Add parameters. Update.
2325 (tui_data_item_window::refresh_window): Remove.
2326 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2327 virtual.
2328 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2329 tui_gen_win_info.
2330 <refresh_window, max_height, min_height>: Remove.
2331 <rerender>: Add parameters.
2332 <x, y, visible>: New members.
2333 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2334 <m_item_width>: New member.
2335
2336 2020-07-01 Tom Tromey <tom@tromey.com>
2337
2338 * tui/tui-regs.c (tui_data_window::show_register_group)
2339 (tui_data_window::check_register_values): Update.
2340 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2341 from item_no.
2342
2343 2020-07-01 Tom Tromey <tom@tromey.com>
2344
2345 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2346 useless "if".
2347
2348 2020-07-01 Tom Tromey <tom@tromey.com>
2349
2350 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2351 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2352
2353 2020-07-01 Tom Tromey <tom@tromey.com>
2354
2355 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2356 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2357 (struct tui_line_or_address): Move from tui-data.h.
2358 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2359 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2360 (tui_cmd_window, tui_source_window_base, tui_source_window)
2361 (tui_disasm_window): Don't declare.
2362 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2363 to tui-winsource.h.
2364 (SINGLE_KEY): Move to tui-stack.c.
2365
2366 2020-07-01 Tom Tromey <tom@tromey.com>
2367
2368 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2369 std::string.
2370 * tui/tui-regs.c (class tab_expansion_file): New.
2371 (tab_expansion_file::write): New method.
2372 (tui_register_format): Change return type. Use
2373 tab_expansion_file.
2374 (tui_get_register, tui_data_window::display_registers_from)
2375 (tui_data_item_window::rerender): Update.
2376 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2377 * tui/tui-io.c (tui_expand_tabs): Remove.
2378
2379 2020-07-01 Tom Tromey <tom@tromey.com>
2380
2381 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2382
2383 2020-07-01 Fangrui Song <maskray@google.com>
2384
2385 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2386
2387 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2388
2389 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2390 forms for DW_AT_associated and DW_AT_allocated attributes,
2391 which is already checked in function attr_to_dynamic_prop.
2392
2393 2020-06-30 Tom Tromey <tromey@adacore.com>
2394
2395 * dwarf2/read.c (quirk_rust_enum): Correctly call
2396 alloc_rust_variant for default-less enum.
2397
2398 2020-06-30 Tom Tromey <tromey@adacore.com>
2399
2400 PR build/26183:
2401 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2402 gdb::to_string.
2403
2404 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2405
2406 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2407 * gdbarch.h: Re-generate.
2408
2409 2020-06-28 Tom Tromey <tom@tromey.com>
2410
2411 * command.h (cmd_types): Remove.
2412 (cmd_type): Don't declare.
2413 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2414 typedef.
2415 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2416 * cli/cli-decode.c (cmd_type): Remove.
2417
2418 2020-06-27 Pedro Alves <palves@redhat.com>
2419
2420 * fork-child.c (prefork_hook): Adjust.
2421 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2422 Delete.
2423 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2424 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2425 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2426 Remove declarations.
2427 (struct inferior) <set_tty, tty>: New methods.
2428 (struct inferior) <terminal>: Rename to ...
2429 (struct inferior) <m_terminal>: ... this and make private.
2430 * main.c (captured_main_1): Adjust.
2431 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2432 (mi_cmd_inferior_tty_show): Adjust.
2433 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2434 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2435
2436 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2437
2438 * configure.ac: Add --enable-libctf: handle --disable-static
2439 properly.
2440 * acinclude.m4: sinclude ../config/enable.m4.
2441 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2442 (LIBCTF): Substitute in.
2443 (CTF_DEPS): New, likewise.
2444 (CLIBS): libctf needs symbols from libbfd: move earlier.
2445 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2446 flags.
2447 * ctfread.c: Surround in ENABLE_LIBCTF.
2448 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2449 * configure: Regenerate.
2450 * config.in: Likewise.
2451
2452 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2453
2454 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2455
2456 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2457
2458 * inferior.h (struct inferior) <terminal>: Change type to
2459 gdb::unique_xmalloc_ptr<char>.
2460 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2461 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2462 field, adjust to unique pointer.
2463 (get_inferior_io_terminal): Adjust to unique pointer.
2464
2465 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2466
2467 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2468 registers, not just the known core set of registers.
2469
2470 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2471
2472 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2473 fflags, frm, and fcsr registers.
2474 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2475 restore groups.
2476 (riscv_tdesc_unknown_reg): New function.
2477 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2478 tdesc_use_registers.
2479 * riscv-tdep.h (struct gdbarch_tdep): Add
2480 unknown_csrs_first_regnum, unknown_csrs_count,
2481 duplicate_fflags_regnum, duplicate_frm_regnum, and
2482 duplicate_fcsr_regnum fields.
2483
2484 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2485
2486 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2487 callback, use the callback (when not null) to help number unknown
2488 registers.
2489 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2490 (tdesc_use_registers): Add extra parameter to declaration.
2491
2492 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2493
2494 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2495 in the file.
2496 (class riscv_pending_register_alias): Likewise.
2497 (riscv_register_feature::register_info): Change 'required_p' field
2498 to 'required', and change its type. Add 'check' member function.
2499 (riscv_register_feature::register_info::check): Define new member
2500 function.
2501 (riscv_xreg_feature): Change initialisation of 'required' field.
2502 (riscv_freg_feature): Likewise.
2503 (riscv_virtual_feature): Likewise.
2504 (riscv_csr_feature): Likewise.
2505 (riscv_check_tdesc_feature): Take extra parameter, the csr
2506 tdesc_feature, rewrite the function to use the new
2507 riscv_register_feature::register_info::check function.
2508 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2509
2510 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2511
2512 * features/Makefile: Remove all references to the deleted files
2513 below.
2514 * features/riscv/32bit-csr.c: Deleted.
2515 * features/riscv/32bit-csr.xml: Deleted.
2516 * features/riscv/64bit-csr.c: Deleted.
2517 * features/riscv/64bit-csr.xml: Deleted.
2518 * features/riscv/rebuild-csr-xml.sh: Deleted.
2519
2520 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2521
2522 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2523 whitespace error for declaration of names member variable.
2524 (struct riscv_register_feature): Add new prefer_first_name member
2525 variable, and fix whitespace error in declaration of registers.
2526 (riscv_xreg_feature): Initialize prefer_first_name field.
2527 (riscv_freg_feature): Likewise.
2528 (riscv_virtual_feature): Likewise.
2529 (riscv_csr_feature): Likewise.
2530 (riscv_register_name): Expand on comments. Remove register name
2531 modifications for CSR and virtual registers.
2532
2533 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2534
2535 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2536 errors.
2537
2538 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2539
2540 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2541 riscv-opc.h.
2542 (class riscv_pending_register_alias): New class.
2543 (riscv_check_tdesc_feature): Take vector of pending aliases and
2544 populate it as appropriate.
2545 (riscv_setup_register_aliases): Delete.
2546 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2547 to riscv_check_tdesc_feature in all cases. Use the vector to
2548 create the register aliases.
2549
2550 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2551
2552 * sol2-tdep.c (sol2_static_transform_name): Remove.
2553 (sol2_init_abi): Don't register it.
2554 * gdbarch.sh (static_transform_name): Remove.
2555 * gdbarch.c, gdbarch.h: Regenerate.
2556
2557 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2558 gdbarch_static_transform_name.
2559 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2560 * stabsread.c (define_symbol) <'X'>: Remove.
2561 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2562 handling.
2563 <'V'>: Likewise.
2564 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2565 <'S'>: Remove call to gdbarch_static_transform_name.
2566
2567 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2568
2569 * procfs.c (procfs_pre_trace): New function.
2570 (procfs_target::create_inferior): Pass it to fork_inferior.
2571
2572 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2573
2574 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2575 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2576 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2577 sol2-tdep.o, sparc-sol2-tdep.o.
2578 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2579 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2580 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2581 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2582
2583 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2584
2585 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2586 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2587 Call sol2_init_abi.
2588 Remove calls to set_gdbarch_skip_solib_resolver,
2589 set_gdbarch_core_pid_to_str.
2590 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2591 (i386_sol2_static_transform_name): Remove.
2592 (i386_sol2_init_abi): Call sol2_init_abi.
2593 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2594 set_gdbarch_static_transform_name,
2595 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2596 Use sol2_sigtramp_p.
2597 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2598 (sol2_sigtramp_p): New function.
2599 (sol2_static_transform_name): New function.
2600 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2601 (sol2_init_abi): New function.
2602 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2603 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2604 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2605 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2606 (sparc_sol2_static_transform_name): Remove.
2607 (sparc32_sol2_init_abi): Call sol2_init_abi.
2608 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2609 set_gdbarch_static_transform_name,
2610 set_gdbarch_skip_solib_resolver,
2611 set_gdbarch_core_pid_to_str.
2612 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2613 (sparc_sol2_static_transform_name): Remove
2614 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2615 call sol2_sigtramp_p.
2616 (sparc64_sol2_init_abi): Call sol2_init_abi.
2617 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2618 set_gdbarch_static_transform_name,
2619 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2620
2621 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2622
2623 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2624 * exec.c (validate_exec_file): If from_tty, set both
2625 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2626 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2627 and from_tty, unconditionally ask a confirmation.
2628
2629 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2630
2631 * target-descriptions.c (tdesc_architecture_name): Protect against
2632 NULL pointer dereference.
2633 (maint_print_xml_tdesc_cmd): New function.
2634 (_initialize_target_descriptions): Register new 'maint print
2635 xml-tdesc' command and give it the filename completer.
2636 * NEWS: Mention new 'maint print xml-tdesc' command.
2637
2638 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2639
2640 * target-descriptions.c (class tdesc_compatible_info): New class.
2641 (struct target_desc): Change type of compatible vector.
2642 (tdesc_compatible_p): Update for change in type of
2643 target_desc::compatible.
2644 (tdesc_compatible_info_list): New function.
2645 (tdesc_compatible_info_arch_name): New function.
2646 (tdesc_add_compatible): Update for change in type of
2647 target_desc::compatible.
2648 (print_c_tdesc::visit_pre): Likewise.
2649
2650 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2651
2652 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2653 whitespace to underscore.
2654 (maint_print_c_tdesc_cmd): Use fake filename for target
2655 descriptions that came from the target.
2656 (_initialize_target_descriptions): Add filename command completion
2657 for 'maint print c-tdesc'.
2658
2659 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2660
2661 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2662 lines.
2663
2664 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2665
2666 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2667 lines.
2668 (dwarf2_find_location_expression): Likewise.
2669 (call_site_parameter_matches): Likewise.
2670 (dwarf2_compile_expr_to_ax): Likewise.
2671 (disassemble_dwarf_expression): Likewise.
2672 (loclist_describe_location): Likewise.
2673
2674 2020-06-23 Pedro Alves <palves@redhat.com>
2675
2676 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2677 progspace-and-thread.h. Include scoped-mock-context.h instead.
2678 (register_to_value_test): Use scoped_mock_context.
2679 * regcache.c: Include "scoped-mock-context.h".
2680 (cooked_read_test): Don't error out if a target is already pushed.
2681 Use scoped_mock_context. Adjust.
2682 * scoped-mock-context.h: New file.
2683
2684 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2685
2686 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2687 initializer.
2688 (ada_language::is_string_type_p): New member function.
2689 * c-lang.c (c_language_data): Delete la_is_string_type_p
2690 initializer.
2691 (cplus_language_data): Likewise.
2692 (asm_language_data): Likewise.
2693 (minimal_language_data): Likewise.
2694 * d-lang.c (d_language_data): Likewise.
2695 * f-lang.c (f_is_string_type_p): Delete function, implementation
2696 moved to f_language::is_string_type_p.
2697 (f_language_data): Delete la_is_string_type_p initializer.
2698 (f_language::is_string_type_p): New member function,
2699 implementation from f_is_string_type_p.
2700 * go-lang.c (go_is_string_type_p): Delete function, implementation
2701 moved to go_language::is_string_type_p.
2702 (go_language_data): Delete la_is_string_type_p initializer.
2703 (go_language::is_string_type_p): New member function,
2704 implementation from go_is_string_type_p.
2705 * language.c (language_defn::is_string_type_p): Define new member
2706 function.
2707 (default_is_string_type_p): Make static, add comment copied from
2708 header file.
2709 (unknown_language_data): Delete la_is_string_type_p initializer.
2710 (unknown_language::is_string_type_p): New member function.
2711 (auto_language_data): Delete la_is_string_type_p initializer.
2712 (auto_language::is_string_type_p): New member function.
2713 * language.h (language_data): Delete la_is_string_type_p field.
2714 (language_defn::is_string_type_p): Declare new function.
2715 (default_is_string_type_p): Delete desclaration, move comment to
2716 definition.
2717 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2718 moved to m2_language::is_string_type_p.
2719 (m2_language_data): Delete la_is_string_type_p initializer.
2720 (m2_language::is_string_type_p): New member function,
2721 implementation from m2_is_string_type_p.
2722 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2723 initializer.
2724 * opencl-lang.c (opencl_language_data): Likewise.
2725 * p-lang.c (pascal_is_string_type_p): Delete function,
2726 implementation moved to pascal_language::is_string_type_p.
2727 (pascal_language_data): Delete la_is_string_type_p initializer.
2728 (pascal_language::is_string_type_p): New member function,
2729 implementation from pascal_is_string_type_p.
2730 * rust-lang.c (rust_is_string_type_p): Delete function,
2731 implementation moved to rust_language::is_string_type_p.
2732 (rust_language_data): Delete la_is_string_type_p initializer.
2733 (rust_language::is_string_type_p): New member function,
2734 implementation from rust_is_string_type_p.
2735 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2736 is_string_type_p.
2737
2738 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2739
2740 * ada-lang.c (ada_language_data): Delete la_print_typedef
2741 initializer.
2742 (ada_language::print_typedef): New member function.
2743 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2744 (cplus_language_data): Likewise.
2745 (asm_language_data): Likewise.
2746 (minimal_language_data): Likewise.
2747 * d-lang.c (d_language_data): Likewise.
2748 * f-lang.c (f_language_data): Likewise.
2749 (f_language::print_typedef): New member function.
2750 * go-lang.c (go_language_data): Delete la_print_typedef
2751 initializer.
2752 * language.c (language_defn::print_typedef): Define member
2753 function.
2754 (unknown_language_data): Delete la_print_typedef initializer.
2755 (unknown_language::print_typedef): New member function.
2756 (auto_language_data): Delete la_print_typedef initializer.
2757 (auto_language::print_typedef): New member function.
2758 * language.h (language_data): Delete la_print_typedef field.
2759 (language_defn::print_typedef): Declare new member function.
2760 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2761 (default_print_typedef): Delete declaration.
2762 * m2-lang.c (m2_language_data): Delete la_print_typedef
2763 initializer.
2764 (m2_language::print_typedef): New member function.
2765 * objc-lang.c (objc_language_data): Delete la_print_typedef
2766 initializer.
2767 * opencl-lang.c (opencl_language_data): Likewise.
2768 * p-lang.c (pascal_language_data): Likewise.
2769 (pascal_language::print_typedef): New member function.
2770 * rust-lang.c (rust_print_typedef): Delete function,
2771 implementation moved to rust_language::print_typedef.
2772 (rust_language): Delete la_print_typedef initializer.
2773 (rust_language::print_typedef): New member function,
2774 implementation from rust_print_typedef.
2775 * typeprint.c (default_print_typedef): Delete.
2776
2777 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2778
2779 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2780 (ada_language::printstr): New member function.
2781 * c-lang.c (c_language_data): Delete la_printstr initializer.
2782 (cplus_language_data): Likewise.
2783 (asm_language_data): Likewise.
2784 (minimal_language_data): Likewise.
2785 * d-lang.c (d_language_data): Likewise.
2786 * f-lang.c (f_printstr): Rename to f_language::printstr.
2787 (f_language_data): Delete la_printstr initializer.
2788 (f_language::printstr): New member function, implementation from
2789 f_printstr.
2790 * go-lang.c (go_language_data): Delete la_printstr initializer.
2791 * language.c (language_defn::printstr): Define new member
2792 function.
2793 (unk_lang_printstr): Delete.
2794 (unknown_language_data): Delete la_printstr initializer.
2795 (unknown_language::printstr): New member function.
2796 (auto_language_data): Delete la_printstr initializer.
2797 (auto_language::printstr): New member function.
2798 * language.h (language_data): Delete la_printstr field.
2799 (language_defn::printstr): Declare new member function.
2800 (LA_PRINT_STRING): Update call to printstr.
2801 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2802 (m2_language_data): Delete la_printstr initializer.
2803 (m2_language::printstr): New member function, implementation from
2804 m2_printstr.
2805 * objc-lang.c (objc_language_data): Delete la_printstr
2806 initializer.
2807 * opencl-lang.c (opencl_language_data): Likewise.
2808 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2809 (pascal_language_data): Delete la_printstr initializer.
2810 (pascal_language::printstr): New member function, implementation
2811 from pascal_printstr.
2812 * p-lang.h (pascal_printstr): Delete declaration.
2813 * rust-lang.c (rust_printstr): Update header comment.
2814 (rust_language_data): Delete la_printstr initializer.
2815 (rust_language::printstr): New member function.
2816
2817 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2818
2819 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2820 (ada_language::printchar): New member function.
2821 * c-lang.c (c_language_data): Delete la_printchar initializer.
2822 (cplus_language_data): Likewise.
2823 (asm_language_data): Likewise.
2824 (minimal_language_data): Likewise.
2825 * d-lang.c (d_language_data): Likewise.
2826 * f-lang.c (f_printchar): Rename to f_language::printchar.
2827 (f_language_data): Delete la_printchar initializer.
2828 (f_language::printchar): New member function, implementation from
2829 f_printchar.
2830 * go-lang.c (go_language_data): Delete la_printchar initializer.
2831 * language.c (unk_lang_printchar): Delete.
2832 (language_defn::printchar): Define new member function.
2833 (unknown_language_data): Delete la_printchar initializer.
2834 (unknown_language::printchar): New member function.
2835 (auto_language_data): Delete la_printchar initializer.
2836 (auto_language::printchar): New member function.
2837 * language.h (language_data): Delete la_printchar field.
2838 (language_defn::printchar): Declare new member function.
2839 (LA_PRINT_CHAR): Update call to printchar.
2840 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2841 (m2_language::printchar): New member function.
2842 * objc-lang.c (objc_language_data): Delete la_printchar
2843 initializer.
2844 * opencl-lang.c (opencl_language_data): Likewise.
2845 * p-lang.c (pascal_language_data): Delete la_printchar
2846 initializer.
2847 (pascal_language::printchar): New member function.
2848 * rust-lang.c (rust_printchar): Rename to
2849 rust_language::printchar.
2850 (rust_language_data): Delete la_printchar initializer.
2851 (rust_language::printchar): New member function, implementation
2852 from rust_printchar.
2853
2854 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2855
2856 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2857 (ada_language_data): Delete la_emitchar initializer.
2858 (ada_language::emitchar): New member function, implementation from
2859 emit_char.
2860 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2861 (cplus_language_data): Likewise.
2862 (asm_language_data): Likewise.
2863 (minimal_language_data): Likewise.
2864 * d-lang.c (d_language_data): Likewise.
2865 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2866 (f_language_data): Delete la_emitchar initializer.
2867 (f_language::emitchar): New member function, implementation from
2868 f_emit_char.
2869 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2870 * language.c (unk_lang_emit_char): Delete.
2871 (language_defn::emitchar): New member function definition.
2872 (unknown_language_data): Delete la_emitchar initializer.
2873 (unknown_language::emitchar): New member function.
2874 (auto_language_data): Delete la_emitchar initializer.
2875 (auto_language::emitchar): New member function.
2876 * language.h (language_data): Delete la_emitchar field.
2877 (language_defn::emitchar): New member field declaration.
2878 (LA_EMIT_CHAR): Update call to emitchar.
2879 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2880 (m2_language_data): Delete la_emitchar initializer.
2881 (m2_language::emitchar): New member function, implementation from
2882 m2_emit_char.
2883 * objc-lang.c (objc_language_data): Delete la_emitchar
2884 initializer.
2885 * opencl-lang.c (opencl_language_data): Likewise.
2886 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2887 (pascal_language_data): Delete la_emitchar initializer.
2888 (pascal_language::emitchar): New member function, implementation
2889 from pascal_emit_char.
2890 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2891 (rust_language_data): Delete la_emitchar initializer.
2892 (rust_language::emitchar): New member function, implementation
2893 from rust_emitchar.
2894
2895 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2896
2897 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2898 (ada_language_data): Delete la_post_parser initializer.
2899 (ada_language::post_parser): New member function.
2900 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2901 (cplus_language_data): Likewise.
2902 (asm_language_data): Likewise.
2903 (minimal_language_data): Likewise.
2904 * d-lang.c (d_language_data): Likewise.
2905 * f-lang.c (f_language_data): Likewise.
2906 * go-lang.c (go_language_data): Likewise.
2907 * language.c (unknown_language_data): Likewise.
2908 (auto_language_data): Likewise.
2909 * language.h (language_data): Delete la_post_parser field.
2910 (language_defn::post_parser): New member function.
2911 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2912 * objc-lang.c (objc_language_data): Likewise.
2913 * opencl-lang.c (opencl_language_data): Likewise.
2914 * p-lang.c (pascal_language_data): Likewise.
2915 * parse.c (parse_exp_in_context): Update call to post_parser.
2916 (null_post_parser): Delete definition.
2917 * parser-defs.h (null_post_parser): Delete declaration.
2918 * rust-lang.c (rust_language_data): Delete la_post_parser
2919 initializer.
2920
2921 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2922
2923 * ada-lang.c (parse): Rename to ada_language::parser.
2924 (ada_language_data): Delete la_parser initializer.
2925 (ada_language::parser): New member function, implementation from
2926 parse.
2927 * c-lang.c (c_language_data): Delete la_parser initializer.
2928 (cplus_language_data): Likewise.
2929 (asm_language_data): Likewise.
2930 (minimal_language_data): Likewise.
2931 * d-lang.c (d_language_data): Likewise.
2932 (d_language::parser): New member function.
2933 * f-lang.c (f_language_data): Delete la_parser initializer.
2934 (f_language::parser): New member function.
2935 * go-lang.c (go_language_data): Delete la_parser initializer.
2936 (go_language::parser): New member function.
2937 * language.c (unk_lang_parser): Delete.
2938 (language_defn::parser): Define new member function.
2939 (unknown_language_data): Delete la_parser initializer.
2940 (unknown_language::parser): New member function.
2941 (auto_language_data): Delete la_parser initializer.
2942 (auto_language::parser): New member function.
2943 * language.h (language_data): Delete la_parser field.
2944 (language_defn::parser): Declare new member function.
2945 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2946 (m2_language::parser): New member function.
2947 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2948 * opencl-lang.c (opencl_language_data): Likewise.
2949 * p-lang.c (pascal_language_data): Likewise.
2950 (pascal_language::parser): New member function.
2951 * parse.c (parse_exp_in_context): Update call to parser.
2952 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2953 (rust_language::parser): New member function.
2954
2955 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2956
2957 * top.c (print_gdb_configuration): Print --with-python-libdir
2958 configuration value.
2959
2960 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2961
2962 * NEWS: Mention change to the alias command.
2963
2964 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2965
2966 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2967 (alias_command_completer)
2968 (make_alias_options_def_group): New functions.
2969 (alias_opts, alias_option_defs): New struct and array.
2970 (alias_usage_error): Update usage.
2971 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2972 Use option framework.
2973 (_initialize_cli_cmds): Update alias command help.
2974 Update aliases command help.
2975 (show_user):
2976 Add NULL for new default_args lookup_cmd argument.
2977 (valid_command_p): Rename to validate_aliased_command.
2978 Add NULL for new default_args lookup_cmd argument. Verify that the
2979 aliased_command has no default args.
2980 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2981 (lookup_cmd_1, lookup_cmd): New argument default_args.
2982 (add_alias_cmd):
2983 Add NULL for new default_args lookup_cmd argument.
2984 (print_help_for_command): Show default args under the layout
2985 alias some_alias = some_aliased_cmd some_alias_default_arg.
2986 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2987 xfree default_args in destructor.
2988 * cli/cli-script.c (process_next_line, do_define_command):
2989 Add NULL for new default_args lookup_cmd argument.
2990 * command.h: Declare new default_args argument in lookup_cmd
2991 and lookup_cmd_1.
2992 * completer.c (complete_line_internal_1):
2993 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2994 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2995 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2996 Likewise.
2997 * infcmd.c (_initialize_infcmd): Likewise.
2998 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2999 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3000 * python/py-param.c (add_setshow_generic): Likewise.
3001 * remote.c (_initialize_remote): Likewise.
3002 * top.c (execute_command): Prepend default_args if command has some.
3003 (set_verbose):
3004 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3005 * tracepoint.c (validate_actionline, encode_actions_1):
3006 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3007
3008 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3009
3010 * jit.c (jit_read_descriptor): Use bool as the return type.
3011 (jit_breakpoint_re_set_internal): Use bool as the return type.
3012 Invert the return value logic; return true if the jit breakpoint
3013 has been successfully initialized.
3014 (jit_inferior_init): Update the call to
3015 jit_breakpoint_re_set_internal.
3016
3017 2020-06-22 Pedro Alves <palves@redhat.com>
3018
3019 PR gdb/25939
3020 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3021 Use the current inferior instead. Don't return
3022 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3023 wait again.
3024 * sol-thread.c (sol_thread_target::wait): Don't reference
3025 inferior_ptid.
3026 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3027 (sol_update_thread_list_callback): Use the current inferior's pid
3028 instead of inferior_ptid.
3029
3030 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3031
3032 * procfs.c: Cleanup many comments.
3033
3034 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3035 (AFTER_WATCHFLAG): Replace by value.
3036
3037 (MAIN_PROC_NAME_FORMAT): Inline ...
3038 (create_procinfo): ... here.
3039
3040 (procfs_debug_inferior): Remove SYS_exec handling.
3041 (syscall_is_exec): Likewise.
3042 (procfs_set_exec_trap): Likewise.
3043
3044 (syscall_is_lwp_exit): Inline in callers.
3045 (syscall_is_exit): Likewise.
3046 (syscall_is_exec): Likewise.
3047 (syscall_is_lwp_create): Likewise.
3048
3049 (invalidate_cache): Remove #if 0 code.
3050
3051 (make_signal_thread_runnable): Remove.
3052 (procfs_target::resume): Remove #if 0 code.
3053
3054 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3055
3056 PR gdb/25939
3057 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3058 call ...
3059 (procfs_target::create_inferior): ... here.
3060
3061 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3062
3063 * exec.c (validate_exec_file): Ensure the build-id is up to
3064 date by calling reopen_exec_file (that checks file timestamp
3065 to decide to re-read the file).
3066
3067 2020-06-18 Pedro Alves <palves@redhat.com>
3068
3069 PR gdb/25412
3070 * gdbthread.h (delete_thread, delete_thread_silent)
3071 (find_thread_ptid): Update comments.
3072 * thread.c (current_thread_): New global.
3073 (is_current_thread): Move higher, and reimplement.
3074 (inferior_thread): Reimplement.
3075 (set_thread_exited): Use bool. Add assertions.
3076 (add_thread_silent): Simplify thread-reuse handling by always
3077 calling delete_thread.
3078 (delete_thread): Remove intro comment.
3079 (find_thread_ptid): Skip exited threads.
3080 (switch_to_thread_no_regs): Write to current_thread_.
3081 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3082 INFERIOR_PTID. Clear current_thread_.
3083
3084 2020-06-18 Pedro Alves <palves@redhat.com>
3085
3086 * aix-thread.c (pd_update): Use switch_to_thread.
3087
3088 2020-06-18 Pedro Alves <palves@redhat.com>
3089
3090 * ravenscar-thread.c (ravenscar_thread_target): Update.
3091 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3092 (ravenscar_thread_target::add_active_thread): ... this. Don't
3093 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3094 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3095
3096 2020-06-18 Pedro Alves <palves@redhat.com>
3097
3098 * nat/windows-nat.c (current_windows_thread): Remove.
3099 * nat/windows-nat.h (current_windows_thread): Remove.
3100 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3101 Adjust.
3102 (display_selectors): Adjust to fetch the current
3103 windows_thread_info based on inferior_ptid.
3104 (fake_create_process): No longer write to current_windows_thread.
3105 (windows_nat_target::get_windows_debug_event):
3106 Don't set inferior_ptid or current_windows_thread.
3107 (windows_nat_target::wait): Adjust to not rely on
3108 current_windows_thread.
3109 (do_initial_windows_stuff): Now a method of windows_nat_target.
3110 Switch to the last_ptid thread.
3111 (windows_nat_target::attach): Adjust.
3112 (windows_nat_target::detach): Use switch_to_no_thread instead of
3113 writing to inferior_ptid directly.
3114 (windows_nat_target::create_inferior): Adjust.
3115
3116 2020-06-18 Pedro Alves <palves@redhat.com>
3117
3118 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3119
3120 2020-06-18 Pedro Alves <palves@redhat.com>
3121
3122 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3123 after creating it, instead of writing to inferior_ptid. Don't
3124 write to inferior_ptid.
3125
3126 2020-06-18 Pedro Alves <palves@redhat.com>
3127
3128 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3129
3130 2020-06-18 Pedro Alves <palves@redhat.com>
3131
3132 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3133 it, instead of writing to inferior_ptid.
3134
3135 2020-06-18 Pedro Alves <palves@redhat.com>
3136
3137 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3138 to inferior_ptid.
3139
3140 2020-06-18 Pedro Alves <palves@redhat.com>
3141
3142 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3143 instead of writing to inferior_ptid directly.
3144
3145 2020-06-18 Pedro Alves <palves@redhat.com>
3146
3147 * corelow.c (core_target::close): Use switch_to_no_thread instead
3148 of writing to inferior_ptid directly.
3149 (add_to_thread_list, core_target_open): Use switch_to_thread
3150 instead of writing to inferior_ptid directly.
3151
3152 2020-06-18 Pedro Alves <palves@redhat.com>
3153
3154 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3155 inferior_ptid.
3156 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3157 inferior_ptid.
3158 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3159 inferior_ptid directly.
3160 (darwin_nat_target::init_thread_list): Switch to thread, instead
3161 of writing to inferior_ptid.
3162 (darwin_nat_target::attach): Don't write to inferior_ptid.
3163 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3164
3165 2020-06-18 Pedro Alves <palves@redhat.com>
3166
3167 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3168 thread.
3169 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3170 Instead use switch_to_thread.
3171 (gnu_nat_target::detach): Use switch_to_no_thread
3172 instead of writing to inferior_ptid directly. Used passed-in
3173 inferior instead of looking up the inferior by pid.
3174
3175 2020-06-18 Pedro Alves <palves@redhat.com>
3176
3177 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3178 inferior_ptid.
3179
3180 2020-06-18 Pedro Alves <palves@redhat.com>
3181
3182 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3183 inferior_ptid.
3184 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3185 thread.
3186 (nto_procfs_target::detach): Avoid referencing
3187 inferior_ptid. Use switch_to_no_thread instead of writing to
3188 inferior_ptid directly.
3189 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3190 instead of writing to inferior_ptid directly.
3191 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3192 to thread.
3193
3194 2020-06-18 Pedro Alves <palves@redhat.com>
3195
3196 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3197 after creating it, instead of writing to inferior_ptid.
3198 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3199 to inferior_ptid directly.
3200 (gdbsim_target::wait): Don't write to inferior_ptid.
3201
3202 2020-06-18 Pedro Alves <palves@redhat.com>
3203
3204 * remote.c (remote_target::remote_notice_new_inferior): Use
3205 switch_to_thread instead of writing to inferior_ptid directly.
3206 (remote_target::add_current_inferior_and_thread): Use
3207 switch_to_no_thread instead of writing to inferior_ptid directly.
3208 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3209 and switch_to_thread instead of using set_current_inferior or
3210 writing to inferior_ptid directly.
3211
3212 2020-06-18 Pedro Alves <palves@redhat.com>
3213
3214 * tracectf.c (ctf_target_open): Switch to added thread instead of
3215 writing to inferior_ptid directly.
3216 (ctf_target::close): Use switch_to_no_thread instead of writing to
3217 inferior_ptid directly.
3218
3219 2020-06-18 Pedro Alves <palves@redhat.com>
3220
3221 * tracefile-tfile.c (tfile_target_open): Don't write to
3222 inferior_ptid directly, instead switch to added thread.
3223 (tfile_target::close): Use switch_to_no_thread instead of writing
3224 to inferior_ptid directly.
3225
3226 2020-06-18 Pedro Alves <palves@redhat.com>
3227
3228 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3229 (procfs_target::detach): Use switch_to_no_thread
3230 instead of writing to inferior_ptid directly.
3231 (do_attach): Change return type to void. Switch to the added
3232 thread.
3233 (procfs_target::create_inferior): Switch to the added thread.
3234 (procfs_do_thread_registers): Don't write to inferior_ptid.
3235
3236 2020-06-18 Pedro Alves <palves@redhat.com>
3237
3238 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3239 of writing to inferior_ptid.
3240 (scoped_restore_exited_inferior): Delete.
3241 (handle_vfork_child_exec_or_exit): Simplify using
3242 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3243 instead of writing to inferior_ptid.
3244 (THREAD_STOPPED_BY): Delete.
3245 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3246 (thread_stopped_by_hw_breakpoint): Delete.
3247 (save_waitstatus): Use
3248 scoped_restore_current_thread+switch_to_thread, and call
3249 target_stopped_by_watchpoint instead of
3250 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3251 instead of thread_stopped_by_sw_breakpoint, and
3252 target_stopped_by_hw_breakpoint instead of
3253 thread_stopped_by_hw_breakpoint.
3254 (handle_inferior_event)
3255 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3256 inferior_ptid directly, nor
3257 set_current_inferior/set_current_program_space. Use
3258 switch_to_thread / switch_to_inferior_no_thread instead.
3259
3260 2020-06-18 Pedro Alves <palves@redhat.com>
3261
3262 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3263 instead of writing to inferior_ptid.
3264
3265 2020-06-18 Pedro Alves <palves@redhat.com>
3266
3267 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3268 added thread.
3269 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3270 to the added thread.
3271 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3272 instead of writing to inferior_ptid.
3273
3274 2020-06-18 Pedro Alves <palves@redhat.com>
3275
3276 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3277 (register_to_value_test): Mock a program_space too. Heap-allocate
3278 the address space. Don't write to inferior_ptid. Use
3279 switch_to_thread instead.
3280
3281 2020-06-18 Pedro Alves <palves@redhat.com>
3282
3283 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3284 Delete.
3285 (find_signalled_thread()): New, factored out from
3286 linux_make_corefile_notes and adjusted to handle exited threads.
3287 (linux_make_corefile_notes): Adjust to use the new
3288 find_signalled_thread.
3289
3290 2020-06-18 Pedro Alves <palves@redhat.com>
3291
3292 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3293 of saving/restoring inferior_ptid.
3294
3295 2020-06-17 Tom Tromey <tom@tromey.com>
3296
3297 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3298 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3299 declare.
3300 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3301
3302 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3303
3304 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3305 of partial symtabs.
3306
3307 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3308
3309 * regformats/reg-arm.dat: Remove.
3310 * regformats/reg-bfin.dat: Remove.
3311 * regformats/reg-cris.dat: Remove.
3312 * regformats/reg-crisv32.dat: Remove.
3313 * regformats/reg-m32r.dat: Remove.
3314 * regformats/reg-tilegx.dat: Remove.
3315 * regformats/reg-tilegx32.dat: Remove.
3316
3317 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3318
3319 * features/Makefile (WHICH): Remove arm files.
3320 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3321 * regformats/arm/arm-with-neon.dat: Remove.
3322 * regformats/arm/arm-with-vfpv2.dat: Remove.
3323 * regformats/arm/arm-with-vfpv3.dat: Remove.
3324
3325 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3326
3327 * features/Makefile (XMLTOC): Remove rx.xml.
3328
3329 2020-06-17 Pedro Alves <palves@redhat.com>
3330
3331 * gdbthread.h (thread_control_state) <trap_expected> Update
3332 comments.
3333
3334 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3335
3336 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3337 ada_language::lookup_symbol_nonlocal.
3338 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3339 (ada_language::lookup_symbol_nonlocal): New member function,
3340 implementation from ada_lookup_symbol_nonlocal.
3341 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3342 initializer.
3343 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3344 initializer.
3345 (cplus_language::lookup_symbol_nonlocal): New member function.
3346 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3347 (minimal_language_data) Likewise.
3348 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3349 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3350 initializer.
3351 (d_language::lookup_symbol_nonlocal): New member function.
3352 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3353 initializer.
3354 (f_language::lookup_symbol_nonlocal): New member function.
3355 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3356 initializer.
3357 * language.c (unknown_language_data): Likewise.
3358 (auto_language_data): Likewise.
3359 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3360 field.
3361 (language_defn::lookup_symbol_nonlocal): New member function.
3362 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3363 initializer.
3364 * objc-lang.c (objc_language_data): Likewise.
3365 * opencl-lang.c (opencl_language_data): Likewise.
3366 * p-lang.c (pascal_language_data): Likewise.
3367 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3368 rust_language::lookup_symbol_nonlocal.
3369 (rust_language_data): Delete la_lookup_symbol_nonlocal
3370 initializer.
3371 (rust_language::lookup_symbol_nonlocal): New member function,
3372 implementation from rust_lookup_symbol_nonlocal.
3373 * symtab.c (lookup_symbol_aux): Update call to
3374 lookup_symbol_nonlocal.
3375 (basic_lookup_symbol_nonlocal): Rename to...
3376 (language_defn::lookup_symbol_nonlocal): ...this, and update
3377 header comment. Remove language_defn parameter, and replace with
3378 uses of `this'.
3379 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3380
3381 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3382
3383 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3384 initializer.
3385 (ada_language::value_print_inner): New member function.
3386 * c-lang.c (c_language_data): Delete la_value_print_inner
3387 initializer.
3388 (cplus_language_data): Likewise.
3389 (asm_language_data): Likewise.
3390 (minimal_language_data): Likewise.
3391 * d-lang.c (d_language_data): Likewise.
3392 (d_language::value_print_inner): New member function.
3393 * f-lang.c (f_language_data): Delete la_value_print_inner
3394 initializer.
3395 (f_language::value_print_inner): New member function.
3396 * f-lang.h (f_value_print_innner): Rename to...
3397 (f_value_print_inner): ...this (note spelling of 'inner').
3398 * f-valprint.c (f_value_print_innner): Rename to...
3399 (f_value_print_inner): ...this (note spelling of 'inner').
3400 * go-lang.c (go_language_data): Delete la_value_print_inner
3401 initializer.
3402 (go_language::value_print_inner): New member function.
3403 * language.c (language_defn::value_print_inner): Define new member
3404 function.
3405 (unk_lang_value_print_inner): Delete.
3406 (unknown_language_data): Delete la_value_print_inner initializer.
3407 (unknown_language::value_print_inner): New member function.
3408 (auto_language_data): Delete la_value_print_inner initializer.
3409 (auto_language::value_print_inner): New member function.
3410 * language.h (language_data): Delete la_value_print_inner field.
3411 (language_defn::value_print_inner): Delcare new member function.
3412 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3413 initializer.
3414 (m2_language::value_print_inner): New member function.
3415 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3416 initializer.
3417 * opencl-lang.c (opencl_language_data): Likewise.
3418 * p-lang.c (pascal_language_data): Likewise.
3419 (pascal_language::value_print_inner): New member function.
3420 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3421 initializer.
3422 (rust_language::value_print_inner): New member function.
3423 * valprint.c (do_val_print): Update call to value_print_inner.
3424
3425 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3426
3427 * ada-lang.c (ada_language_data): Delete la_value_print
3428 initializer.
3429 (ada_language::value_print): New member function.
3430 * c-lang.c (c_language_data): Delete la_value_print initializer.
3431 (cplus_language_data): Likewise.
3432 (asm_language_data): Likewise.
3433 (minimal_language_data): Likewise.
3434 * d-lang.c (d_language_data): Likewise.
3435 * f-lang.c (f_language_data): Likewise.
3436 * go-lang.c (go_language_data): Likewise.
3437 * language.c (unk_lang_value_print): Delete.
3438 (language_defn::value_print): Define new member function.
3439 (unknown_language_data): Delete la_value_print initializer.
3440 (unknown_language::value_print): New member function.
3441 (auto_language_data): Delete la_value_print initializer.
3442 (auto_language::value_print): New member function.
3443 * language.h (language_data): Delete la_value_print field.
3444 (language_defn::value_print): Declare new member function.
3445 (LA_VALUE_PRINT): Update call to value_print.
3446 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3447 * objc-lang.c (objc_language_data): Likewise.
3448 * opencl-lang.c (opencl_language_data): Likewise.
3449 * p-lang.c (pascal_language_data): Likewise.
3450 (pascal_language::value_print): New member function.
3451 * rust-lang.c (rust_language_data): Delete la_value_print
3452 initializer.
3453
3454 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3455
3456 * ada-lang.c (ada_watch_location_expression): Rename to
3457 ada_language::watch_location_expression.
3458 (ada_language_data): Delete la_watch_location_expression
3459 initializer.
3460 (ada_language::watch_location_expression): New member function,
3461 implementation from ada_watch_location_expression.
3462 * breakpoint.c (watch_command_1): Update call to
3463 watch_location_expression.
3464 * c-lang.c (c_watch_location_expression): Rename to
3465 language_defn::watch_location_expression.
3466 (c_language_data): Delete la_watch_location_expression
3467 initializer.
3468 (cplus_language_data): Likewise.
3469 (asm_language_data): Likewise.
3470 (minimal_language_data): Likewise.
3471 * c-lang.h (c_watch_location_expression): Delete declaration.
3472 * d-lang.c (d_language_data): Delete la_watch_location_expression
3473 initializer.
3474 * f-lang.c (f_language_data): Likewise.
3475 * go-lang.c (go_language_data): Likewise.
3476 * language.c (language_defn::watch_location_expression): Member
3477 function implementation from c_watch_location_expression.
3478 (unknown_language_data): Delete la_watch_location_expression
3479 initializer.
3480 (auto_language_data): Likewise.
3481 * language.h (language_data): Delete la_watch_location_expression
3482 field.
3483 (language_defn::watch_location_expression): Declare new member
3484 function.
3485 * m2-lang.c (m2_language_data): Delete
3486 la_watch_location_expression initializer.
3487 * objc-lang.c (objc_language_data): Likewise.
3488 * opencl-lang.c (opencl_language_data): Likewise.
3489 * p-lang.c (pascal_language_data): Likewise.
3490 * rust-lang.c (rust_watch_location_expression): Rename to
3491 rust_language::watch_location_expression.
3492 (rust_language_data): Delete la_watch_location_expression
3493 initializer.
3494 (rust_language::watch_location_expression): New member function,
3495 implementation from rust_watch_location_expression.
3496
3497 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3498
3499 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3500 ada_language::collect_symbol_completion_matches.
3501 (ada_language_data): Delete la_collect_symbol_completion_matches
3502 initializer.
3503 (ada_language::collect_symbol_completion_matches): New member
3504 function, implementation from
3505 ada_collect_symbol_completion_matches.
3506 * c-lang.c (c_language_data): Delete
3507 la_collect_symbol_completion_matches initializer.
3508 (cplus_language_data): Likewise.
3509 (asm_language_data): Likewise.
3510 (minimal_language_data): Likewise.
3511 * d-lang.c (d_language_data): Likewise.
3512 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3513 f_language::collect_symbol_completion_matches.
3514 (f_language_data): Delete la_collect_symbol_completion_matches
3515 initializer.
3516 (f_language::collect_symbol_completion_matches) New member
3517 function, implementation from f_collect_symbol_completion_matches.
3518 * go-lang.c (go_language_data): Delete
3519 la_collect_symbol_completion_matches initializer.
3520 * language.c (unknown_language_data): Likewise.
3521 (auto_language_data): Likewise.
3522 * language.h (language_data): Delete
3523 la_collect_symbol_completion_matches field.
3524 (language_defn::collect_symbol_completion_matches): New member
3525 function.
3526 * m2-lang.c (m2_language_data): Delete
3527 la_collect_symbol_completion_matches initializer.
3528 * objc-lang.c (objc_language_data): Likewise.
3529 * opencl-lang.c (opencl_language_data): Likewise.
3530 * p-lang.c (pascal_language_data): Likewise.
3531 * rust-lang.c (rust_language_data): Likewise.
3532 * symtab.c (default_collect_symbol_completion_matches): Delete.
3533 (collect_symbol_completion_matches): Update call to
3534 collect_symbol_completion_matches.
3535 (collect_symbol_completion_matches_type): Likewise.
3536 * symtab.h (default_collect_symbol_completion_matches): Delete
3537 declaration.
3538
3539 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3540
3541 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3542 (ada_language_data): Delete la_word_break_characters initializer.
3543 (ada_language::word_break_characters): New member function.
3544 * c-lang.c (c_language_data): Delete la_word_break_characters
3545 initializer.
3546 (cplus_language_data): Likewise.
3547 (asm_language_data): Likewise.
3548 (minimal_language_data): Likewise.
3549 * completer.c: Update global comment.
3550 (advance_to_expression_complete_word_point): Update call to
3551 word_break_characters.
3552 (complete_files_symbols): Likewise.
3553 (complete_line_internal_1): Likewise.
3554 (default_completer_handle_brkchars): Likewise.
3555 (skip_quoted_chars): Likewise.
3556 * d-lang.c (d_language_data): Delete la_word_break_characters
3557 initializer.
3558 * f-lang.c (f_word_break_characters): Delete.
3559 (f_language_data): Delete la_word_break_characters initializer.
3560 (f_language::word_break_characters): New member function.
3561 * go-lang.c (go_language_data): Delete la_word_break_characters
3562 initializer.
3563 * language.c (unknown_language_data): Likewise.
3564 (auto_language_data): Likewise.
3565 * language.h (default_word_break_characters): Move declaration to
3566 earlier in the file.
3567 (language_data): Delete la_word_break_characters field.
3568 (language_defn::word_break_characters): New member function.
3569 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3570 initializer.
3571 * objc-lang.c (objc_language_data): Likewise.
3572 * opencl-lang.c (opencl_language_data): Likewise.
3573 * p-lang.c (pascal_language_data): Likewise.
3574 * rust-lang.c (rust_language_data): Likewise.
3575
3576 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3577
3578 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3579 (ada_language_data): Delete la_get_symbol_name_matcher
3580 initializer.
3581 (language_defn::get_symbol_name_matcher_inner): New member
3582 function.
3583 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3584 initializer.
3585 (cplus_language_data): Likewise.
3586 (cplus_language::get_symbol_name_matcher_inner): New member
3587 function.
3588 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3589 (minimal_language_data): Likewise.
3590 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3591 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3592 initializer.
3593 * dictionary.c (iter_match_first_hashed): Update call to
3594 get_symbol_name_matcher.
3595 (iter_match_next_hashed): Likewise.
3596 (iter_match_next_linear): Likewise.
3597 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3598 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3599 initializer.
3600 (f_language::get_symbol_name_matcher_inner): New member function.
3601 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3602 initializer.
3603 * language.c (default_symbol_name_matcher): Update header comment,
3604 make static.
3605 (language_defn::get_symbol_name_matcher): New definition.
3606 (language_defn::get_symbol_name_matcher_inner): Likewise.
3607 (get_symbol_name_matcher): Delete.
3608 (unknown_language_data): Delete la_get_symbol_name_matcher
3609 initializer.
3610 (auto_language_data): Likewise.
3611 * language.h (language_data): Delete la_get_symbol_name_matcher
3612 field.
3613 (language_defn::get_symbol_name_matcher): New member function.
3614 (language_defn::get_symbol_name_matcher_inner): Likewise.
3615 (default_symbol_name_matcher): Delete declaration.
3616 * linespec.c (find_methods): Update call to
3617 get_symbol_name_matcher.
3618 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3619 initializer.
3620 * minsyms.c (lookup_minimal_symbol): Update call to
3621 get_symbol_name_matcher.
3622 (iterate_over_minimal_symbols): Likewise.
3623 * objc-lang.c (objc_language_data): Delete
3624 la_get_symbol_name_matcher initializer.
3625 * opencl-lang.c (opencl_language_data): Likewise.
3626 * p-lang.c (pascal_language_data): Likewise.
3627 * psymtab.c (psymbol_name_matches): Update call to
3628 get_symbol_name_matcher.
3629 * rust-lang.c (rust_language_data): Delete
3630 la_get_symbol_name_matcher initializer.
3631 * symtab.c (symbol_matches_search_name): Update call to
3632 get_symbol_name_matcher.
3633 (compare_symbol_name): Likewise.
3634
3635 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3636
3637 * ada-lang.c (ada_language_data): Delete la_compute_program
3638 initializer.
3639 * c-lang.c (c_language_data): Likewise.
3640 (c_language::compute_program): New member function.
3641 (cplus_language_data): Delete la_compute_program initializer.
3642 (cplus_language::compute_program): New member function.
3643 (asm_language_data): Delete la_compute_program initializer.
3644 (minimal_language_data): Likewise.
3645 * c-lang.h (c_compute_program): Update comment.
3646 (cplus_compute_program): Likewise.
3647 * compile/compile-c-support.c (c_compute_program): Likewise.
3648 (cplus_compute_program): Likewise.
3649 * compile/compile.c (compile_to_object): Update call to
3650 la_compute_program.
3651 * d-lang.c (d_language_data): Delete la_compute_program
3652 initializer.
3653 * f-lang.c (f_language_data): Likewise.
3654 * go-lang.c (go_language_data): Likewise.
3655 * language.c (unknown_language_data): Likewise.
3656 (auto_language_data): Likewise.
3657 * language.h (language_data): Delete la_compute_program field.
3658 (language_defn::compute_program): New member function.
3659 * m2-lang.c (m2_language_data): Delete la_compute_program
3660 initializer.
3661 * objc-lang.c (objc_language_data): Likewise.
3662 * opencl-lang.c (opencl_language_data): Likewise.
3663 * p-lang.c (pascal_language_data): Likewise.
3664 * rust-lang.c (rust_language_data): Likewise.
3665
3666 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3667
3668 * ada-lang.c (ada_language_data) Delete
3669 la_class_name_from_physname initializer.
3670 * c-lang.c (c_language_data): Likewise.
3671 (cplus_language_data): Likewise.
3672 (cplus_language::class_name_from_physname): New member function.
3673 (asm_language_data): Delete la_class_name_from_physname
3674 initializer.
3675 (minimal_language_data): Likewise.
3676 * d-lang.c (d_language_data): Likewise.
3677 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3678 method on language_defn class.
3679 (guess_full_die_structure_name): Likewise.
3680 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3681 initializer.
3682 * go-lang.c (go_language_data): Likewise.
3683 * language.c (language_class_name_from_physname): Delete.
3684 (unk_lang_class_name): Delete.
3685 (unknown_language_data): Delete la_class_name_from_physname
3686 initializer.
3687 (auto_language_data): Likewise.
3688 * language.h (language_data): Delete la_class_name_from_physname
3689 field.
3690 (language_defn::class_name_from_physname): New function.
3691 (language_class_name_from_physname): Delete declaration.
3692 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3693 initializer.
3694 * objc-lang.c (objc_language_data): Likewise.
3695 * opencl-lang.c (opencl_language_data): Likewise.
3696 * p-lang.c (pascal_language_data): Likewise.
3697 * rust-lang.c (rust_language_data): Likewise.
3698
3699 2020-06-16 Tom Tromey <tom@tromey.com>
3700
3701 * tui/tui-data.h (STATUS_NAME): New macro.
3702 * tui/tui-layout.c (tui_remove_some_windows)
3703 (initialize_known_windows, tui_register_window)
3704 (tui_layout_split::remove_windows, initialize_layouts)
3705 (tui_new_layout_command): Don't use hard-coded window names.
3706
3707 2020-06-16 Tom Tromey <tom@tromey.com>
3708
3709 PR tui/25348:
3710 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3711 tui_initialize_readline. Only run once. Call rl_initialize.
3712 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3713 tui_initialize_readline.
3714 * tui/tui-io.c (tui_setup_io): Call
3715 tui_ensure_readline_initialized.
3716 * tui/tui-interp.c (tui_interp::init): Update.
3717
3718 2020-06-16 Tom Tromey <tom@tromey.com>
3719
3720 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3721 Also preserve the status window.
3722
3723 2020-06-16 Tom Tromey <tom@tromey.com>
3724
3725 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3726 where m_window==nullptr.
3727
3728 2020-06-15 Tom Tromey <tromey@adacore.com>
3729
3730 * windows-nat.c (windows_nat::handle_output_debug_string):
3731 Update.
3732 (windows_nat::handle_ms_vc_exception): Update.
3733 * target.h (target_read_string): Change API.
3734 * target.c (target_read_string): Change API.
3735 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3736 Update.
3737 * solib-frv.c (frv_current_sos): Update.
3738 * solib-dsbt.c (dsbt_current_sos): Update.
3739 * solib-darwin.c (darwin_current_sos): Update.
3740 * linux-thread-db.c (inferior_has_bug): Update.
3741 * expprint.c (print_subexp_standard): Update.
3742 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3743 (ada_exception_message_1): Update.
3744
3745 2020-06-15 Tom Tromey <tromey@adacore.com>
3746
3747 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3748
3749 2020-06-15 Tom Tromey <tromey@adacore.com>
3750
3751 * valprint.c (read_string): Update comment.
3752 * target.c (MIN): Remove.
3753 (target_read_string): Rewrite.
3754
3755 2020-06-15 Tom Tromey <tromey@adacore.com>
3756
3757 * corefile.c (read_memory_string): Remove.
3758 * ada-valprint.c (ada_value_print_ptr): Update.
3759 * ada-lang.h (ada_tag_name): Change return type.
3760 * ada-lang.c (type_from_tag): Update.
3761 (ada_tag_name_from_tsd): Change return type. Use
3762 target_read_string.
3763 (ada_tag_name): Likewise.
3764 * gdbcore.h (read_memory_string): Don't declare.
3765
3766 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3767
3768 * symtab.c (rbreak_command): Ignore Windows drive colon.
3769
3770 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3771
3772 * NEWS: Mention removed GDBserver host support.
3773
3774 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3775
3776 * features/riscv/rebuild-csr-xml.sh: Updated.
3777
3778 2020-06-11 Tom Tromey <tom@tromey.com>
3779
3780 PR gdb/18318:
3781 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3782
3783 2020-06-09 Jonny Grant <jg@jguk.org>
3784 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3785
3786 * main.c (captured_main_1): Don't print new line after help.
3787 (print_gdb_help): add mailing list and IRC channel information
3788 to --help. Add new lines between items in the footer. Remove
3789 quotes around bug url.
3790
3791 2020-06-11 Keith Seitz <keiths@redhat.com>
3792
3793 PR gdb/21356
3794 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3795 Resolve typedefs for type length calculations.
3796
3797 2020-06-10 Tom de Vries <tdevries@suse.de>
3798
3799 PR ada/24713
3800 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3801 (write_psymbols): Enable .gdb_index for ada.
3802 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3803 ada.
3804
3805 2020-06-10 Tom de Vries <tdevries@suse.de>
3806
3807 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3808 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3809 namei" instead of "const char *name" argument.
3810 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3811 dw2_symtab_iter_init.
3812
3813 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3814
3815 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3816 to use type::field and field::type instead.
3817
3818 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3819
3820 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3821 to use field::type instead.
3822
3823 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3824
3825 * gdbtypes.h (struct field) <type, set_type>: New methods.
3826 Rename `type` field to...
3827 <m_type>: ... this. Change references throughout to use type or
3828 set_type methods.
3829 (FIELD_TYPE): Use field::type. Change call sites that modify
3830 the field's type to use field::set_type instead.
3831
3832 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3833
3834 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3835 to use type::index_type instead.
3836
3837 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3838
3839 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3840 methods.
3841 (TYPE_INDEX_TYPE): Use type::index_type.
3842 * gdbtypes.c (create_array_type_with_stride): Likewise.
3843
3844 2020-06-07 Tom Tromey <tom@tromey.com>
3845
3846 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3847 parameter.
3848 (generic_value_print): Update.
3849
3850 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3851
3852 Revert commit 982a38f60b0.
3853 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3854
3855 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3856
3857 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3858 avoid use after free.
3859
3860 2020-06-05 Tom de Vries <tdevries@suse.de>
3861
3862 * NEWS: Fix typos.
3863
3864 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3865
3866 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3867 the per_bfd object.
3868 (dwarf2_read_debug_names): Likewise.
3869 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3870 object when re-using a per_bfd object with an index.
3871
3872 2020-06-03 Tom de Vries <tdevries@suse.de>
3873
3874 PR symtab/26046
3875 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3876 children for C++.
3877 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3878 DW_TAG_subprogram.
3879
3880 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3881
3882 * ada-lang.c (ada_language_data): Delete skip_trampoline
3883 initializer.
3884 * c-lang.c (c_language_data): Likewise.
3885 (cplus_language_data): Likewise.
3886 (cplus_language::skip_trampoline): New member function.
3887 (asm_language_data): Delete skip_trampoline initializer.
3888 (minimal_language_data): Likewise.
3889 * d-lang.c (d_language_data): Likewise.
3890 * f-lang.c (f_language_data): Likewise.
3891 * go-lang.c (go_language_data): Likewise.
3892 * language.c (unk_lang_trampoline): Delete function.
3893 (skip_language_trampoline): Update.
3894 (unknown_language_data): Delete skip_trampoline initializer.
3895 (auto_language_data): Likewise.
3896 * language.h (language_data): Delete skip_trampoline field.
3897 (language_defn::skip_trampoline): New function.
3898 * m2-lang.c (m2_language_data): Delete skip_trampoline
3899 initializer.
3900 * objc-lang.c (objc_skip_trampoline): Delete function, move
3901 implementation to objc_language::skip_trampoline.
3902 (objc_language_data): Delete skip_trampoline initializer.
3903 (objc_language::skip_trampoline): New member function with
3904 implementation from objc_skip_trampoline.
3905 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3906 initializer.
3907 * p-lang.c (pascal_language_data): Likewise.
3908 * rust-lang.c (rust_language_data): Likewise.
3909
3910 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3911
3912 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3913 (ada_language::demangle): New member function.
3914 * c-lang.c (c_language_data): Delete la_demangle initializer.
3915 (cplus_language_data): Delete la_demangle initializer.
3916 (cplus_language::demangle): New member function.
3917 (asm_language_data): Delete la_demangle initializer.
3918 (minimal_language_data): Delete la_demangle initializer.
3919 * d-lang.c (d_language_data): Delete la_demangle initializer.
3920 (d_language::demangle): New member function.
3921 * f-lang.c (f_language_data): Delete la_demangle initializer.
3922 (f_language::demangle): New member function.
3923 * go-lang.c (go_language_data): Delete la_demangle initializer.
3924 (go_language::demangle): New member function.
3925 * language.c (language_demangle): Update.
3926 (unk_lang_demangle): Delete.
3927 (unknown_language_data): Delete la_demangle initializer.
3928 (unknown_language::demangle): New member function.
3929 (auto_language_data): Delete la_demangle initializer.
3930 (auto_language::demangle): New member function.
3931 * language.h (language_data): Delete la_demangle field.
3932 (language_defn::demangle): New function.
3933 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3934 * objc-lang.c (objc_language_data): Delete la_demangle
3935 initializer.
3936 (objc_language::demangle): New member function.
3937 * opencl-lang.c (opencl_language_data): Delete la_demangle
3938 initializer.
3939 * p-lang.c (pascal_language_data): Likewise.
3940 * rust-lang.c (rust_language_data): Likewise.
3941 (rust_language::demangle): New member function.
3942
3943 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3944
3945 * ada-lang.c (ada_language_data): Delete la_print_type
3946 initializer.
3947 (ada_language::print_type): New member function.
3948 * c-lang.c (c_language_data): Delete la_print_type initializer.
3949 (c_language::print_type): New member function.
3950 (cplus_language_data): Delete la_print_type initializer.
3951 (cplus_language::print_type): New member function.
3952 (asm_language_data): Delete la_print_type initializer.
3953 (asm_language::print_type): New member function.
3954 (minimal_language_data): Delete la_print_type initializer.
3955 (minimal_language::print_type): New member function.
3956 * d-lang.c (d_language_data): Delete la_print_type initializer.
3957 (d_language::print_type): New member function.
3958 * f-lang.c (f_language_data): Delete la_print_type initializer.
3959 (f_language::print_type): New member function.
3960 * go-lang.c (go_language_data): Delete la_print_type initializer.
3961 (go_language::print_type): New member function.
3962 * language.c (unk_lang_print_type): Delete.
3963 (unknown_language_data): Delete la_print_type initializer.
3964 (unknown_language::print_type): New member function.
3965 (auto_language_data): Delete la_print_type initializer.
3966 (auto_language::print_type): New member function.
3967 * language.h (language_data): Delete la_print_type field.
3968 (language_defn::print_type): New function.
3969 (LA_PRINT_TYPE): Update.
3970 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3971 (m2_language::print_type): New member function.
3972 * objc-lang.c (objc_language_data): Delete la_print_type
3973 initializer.
3974 (objc_language::print_type): New member function.
3975 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3976 to opencl_language::print_type.
3977 (opencl_language_data): Delete la_print_type initializer.
3978 (opencl_language::print_type): New member function, implementation
3979 from opencl_print_type.
3980 * p-lang.c (pascal_language_data): Delete la_print_type
3981 initializer.
3982 (pascal_language::print_type): New member function.
3983 * rust-lang.c (rust_print_type): Delete, implementation moved to
3984 rust_language::print_type.
3985 (rust_language_data): Delete la_print_type initializer.
3986 (rust_language::print_type): New member function, implementation
3987 from rust_print_type.
3988
3989 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3990
3991 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3992 implementation moves to...
3993 (ada_language::sniff_from_mangled_name): ...here. Update return
3994 type.
3995 (ada_language_data): Delete la_sniff_from_mangled_name
3996 initializer.
3997 * c-lang.c (c_language_data): Likewise.
3998 (cplus_language_data): Likewise.
3999 (cplus_language::sniff_from_mangled_name): New member function,
4000 implementation taken from gdb_sniff_from_mangled_name.
4001 (asm_language_data): Delete la_sniff_from_mangled_name
4002 initializer.
4003 (minimal_language_data): Likewise.
4004 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4005 implementation moves to cplus_language::sniff_from_mangled_name.
4006 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4007 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4008 moves to...
4009 (d_language::sniff_from_mangled_name): ...here.
4010 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4011 * f-lang.c (f_language_data): Likewise.
4012 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4013 moves to...
4014 (go_language::sniff_from_mangled_name): ...here.
4015 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4016 * language.c (language_sniff_from_mangled_name): Delete.
4017 (unknown_language_data): Delete la_sniff_from_mangled_name
4018 initializer.
4019 (auto_language_data): Likewise.
4020 * language.h (language_data): Delete la_sniff_from_mangled_name
4021 field.
4022 (language_defn::sniff_from_mangled_name): New function.
4023 (language_sniff_from_mangled_name): Delete declaration.
4024 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4025 field.
4026 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4027 implementation moves to...
4028 (objc_language::sniff_from_mangled_name): ...here.
4029 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4030 * opencl-lang.c (opencl_language_data): Likewise.
4031 * p-lang.c (pascal_language_data): Likewise.
4032 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4033 implementation moves to...
4034 (rust_language::sniff_from_mangled_name): ...here.
4035 (rust_language_data): Delete la_sniff_from_mangled_name
4036 initializer.
4037 * symtab.c (symbol_find_demangled_name): Call
4038 sniff_from_mangled_name member function.
4039
4040 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4041
4042 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4043 initializer.
4044 * c-lang.c (c_language_data): Likewise.
4045 (cplus_language_data): Likewise.
4046 (cplus_language::search_name_hash): New member function.
4047 (asm_language_data): Delete la_search_name_hash initializer.
4048 (minimal_language_data): Likewise.
4049 * d-lang.c (d_language_data): Likewise.
4050 * dictionary.c (default_search_name_hash): Rename to...
4051 (language_defn::search_name_hash): ...this.
4052 * f-lang.c (f_language_data): Likewise.
4053 (f_language::search_name_hash): New member function.
4054 * go-lang.c (go_language_data): Delete la_search_name_hash
4055 initializer.
4056 * language.c (unknown_language_data): Likewise.
4057 (auto_language_data): Likewise.
4058 * language.h (struct language_data): Delete la_search_name_hash
4059 field.
4060 (language_defn::search_name_hash): Declare new member function.
4061 (default_search_name_hash): Delete declaration.
4062 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4063 initializer.
4064 * objc-lang.c (objc_language_data): Likewise.
4065 * opencl-lang.c (opencl_language_data): Likewise.
4066 * p-lang.c (pascal_language_data): Likewise.
4067 * rust-lang.c (rust_language_data): Likewise.
4068 * symtab.c (search_name_hash): Update call.
4069
4070 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4071
4072 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4073 initializer.
4074 * c-lang.c (class compile_instance): Declare.
4075 (c_language_data): Delete la_get_compile_instance initializer.
4076 (c_language::get_compile_instance): New member function.
4077 (cplus_language_data): Delete la_get_compile_instance initializer.
4078 (cplus_language::get_compile_instance): New member function.
4079 (asm_language_data): Delete la_get_compile_instance initializer.
4080 (minimal_language_data): Likewise.
4081 * c-lang.h (c_get_compile_context): Update comment.
4082 (cplus_get_compile_context): Update comment.
4083 * compile/compile.c (compile_to_object): Update calls, don't rely
4084 on function pointer being NULL.
4085 * d-lang.c (d_language_data): Delete la_get_compile_instance
4086 initializer.
4087 * f-lang.c (f_language_data): Likewise.
4088 * go-lang.c (go_language_data): Likewise.
4089 * language.c (unknown_language_data): Likewise.
4090 (auto_language_data): Likewise.
4091 * language.h (language_data): Delete la_get_compile_instance field.
4092 (language_defn::get_compile_instance): New member function.
4093 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4094 initializer.
4095 * objc-lang.c (objc_language_data): Likewise.
4096 * opencl-lang.c (opencl_language_data): Likewise.
4097 * p-lang.c (pascal_language_data): Likewise.
4098 * rust-lang.c (rust_language_data): Likewise.
4099
4100 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4101
4102 * ada-lang.c (ada_add_all_symbols): Update comment.
4103 (ada_iterate_over_symbols): Delete, move implementation to...
4104 (ada_language::iterate_over_symbols): ...here, a new member
4105 function, rewrite to use range based for loop.
4106 (ada_language_data): Delete la_iterate_over_symbols initializer.
4107 * c-lang.c (c_language_data): Likewise.
4108 (cplus_language_data): Likewise.
4109 (asm_language_data): Likewise.
4110 (minimal_language_data): Likewise.
4111 * d-lang.c (d_language_data): Likewise.
4112 * f-lang.c (f_language_data): Likewise.
4113 * go-lang.c (go_language_data): Likewise.
4114 * language.c (unknown_language_data): Likewise.
4115 (auto_language_data): Likewise.
4116 * language.h (language_data): Delete la_iterate_over_symbols field.
4117 (language_defn::iterate_over_symbols): New member function.
4118 (LA_ITERATE_OVER_SYMBOLS): Update.
4119 * linespec.c (iterate_over_all_matching_symtabs): Update.
4120 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4121 initializer.
4122 * objc-lang.c (objc_language_data): Likewise.
4123 * opencl-lang.c (opencl_language_data): Likewise.
4124 * p-lang.c (pascal_language_data): Likewise.
4125 * rust-lang.c (rust_language_data): Likewise.
4126
4127 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4128
4129 * ada-lang.c (ada_language_data): Delete
4130 la_lookup_transparent_type initializer.
4131 * c-lang.c (c_language_data): Likewise.
4132 (cplus_language_data): Likewise.
4133 (cplus_language::lookup_transparent_type): New member function.
4134 (asm_language_data): Delete la_lookup_transparent_type
4135 initializer.
4136 (minimal_language_data): Likewise.
4137 * d-lang.c (d_language_data): Likewise.
4138 * f-lang.c (f_language_data): Likewise.
4139 * go-lang.c (go_language_data): Likewise.
4140 * language.c (unknown_language_data): Likewise.
4141 (auto_language_data): Likewise.
4142 * language.h (struct language_data): Delete
4143 la_lookup_transparent_type field.
4144 (language_defn::lookup_transparent_type): New member function.
4145 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4146 initializer.
4147 * objc-lang.c (objc_language_data): Likewise.
4148 * opencl-lang.c (opencl_language_data): Likewise.
4149 * p-lang.c (pascal_language_data): Likewise.
4150 * rust-lang.c (rust_language_data): Likewise.
4151 * symtab.c (symbol_matches_domain): Update call.
4152
4153 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4154
4155 * ada-lang.c (ada_language_arch_info): Delete function, move
4156 implementation to...
4157 (ada_language::language_arch_info): ...here, a new member
4158 function.
4159 (ada_language_data): Delete la_language_arch_info.
4160 * c-lang.c (c_language_data): Likewise.
4161 (c_language::language_arch_info): New member function.
4162 (cplus_language_arch_info): Delete function, move
4163 implementation to...
4164 (cplus_language::language_arch_info): ...here, a new member
4165 function.
4166 (cplus_language_data): Delete la_language_arch_info.
4167 (asm_language_data): Likewise.
4168 (asm_language::language_arch_info): New member function.
4169 (minimal_language_data): Delete la_language_arch_info.
4170 (minimal_language::language_arch_info): New member function.
4171 * d-lang.c (d_language_arch_info): Delete function, move
4172 implementation to...
4173 (d_language::language_arch_info): ...here, a new member
4174 function.
4175 (d_language_data): Delete la_language_arch_info.
4176 * f-lang.c (f_language_arch_info): Delete function, move
4177 implementation to...
4178 (f_language::language_arch_info): ...here, a new member
4179 function.
4180 (f_language_data): Delete la_language_arch_info.
4181 * go-lang.c (go_language_arch_info): Delete function, move
4182 implementation to...
4183 (go_language::language_arch_info): ...here, a new member
4184 function.
4185 (go_language_data): Delete la_language_arch_info.
4186 * language.c (unknown_language_data): Likewise.
4187 (unknown_language::language_arch_info): New member function.
4188 (auto_language_data): Delete la_language_arch_info.
4189 (auto_language::language_arch_info): New member function.
4190 (language_gdbarch_post_init): Update call to
4191 la_language_arch_info.
4192 * language.h (language_data): Delete la_language_arch_info
4193 function pointer.
4194 (language_defn::language_arch_info): New function.
4195 * m2-lang.c (m2_language_arch_info): Delete function, move
4196 implementation to...
4197 (m2_language::language_arch_info): ...here, a new member
4198 function.
4199 (m2_language_data): Delete la_language_arch_info.
4200 * objc-lang.c (objc_language_arch_info): Delete function, move
4201 implementation to...
4202 (objc_language::language_arch_info): ...here, a new member
4203 function.
4204 (objc_language_data): Delete la_language_arch_info.
4205 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4206 implementation to...
4207 (opencl_language::language_arch_info): ...here, a new member
4208 function.
4209 (opencl_language_data): Delete la_language_arch_info.
4210 * p-lang.c (pascal_language_arch_info): Delete function, move
4211 implementation to...
4212 (pascal_language::language_arch_info): ...here, a new member
4213 function.
4214 (pascal_language_data): Delete la_language_arch_info.
4215 * rust-lang.c (rust_language_arch_info): Delete function, move
4216 implementation to...
4217 (rust_language::language_arch_info): ...here, a new member
4218 function.
4219 (rust_language_data): Delete la_language_arch_info.
4220
4221 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4222
4223 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4224 initializer.
4225 * c-lang.c (c_language_data): Likewise.
4226 (cplus_language_data): Likewise.
4227 (cplus_language::pass_by_reference_info): New method.
4228 (asm_language_data): Delete la_pass_by_reference initializer.
4229 (minimal_language_data): Likewise.
4230 * cp-abi.c (cp_pass_by_reference): Remove use of
4231 default_pass_by_reference.
4232 * d-lang.c (d_language_data): Likewise.
4233 * f-lang.c (f_language_data): Likewise.
4234 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4235 default_pass_by_reference.
4236 * go-lang.c (go_language_data): Likewise.
4237 * language.c (language_pass_by_reference): Update.
4238 (default_pass_by_reference): Delete.
4239 (unknown_language_data): Delete la_pass_by_reference
4240 initializer.
4241 (auto_language_data): Likewise.
4242 * language.h (struct language_data): Delete la_pass_by_reference
4243 field.
4244 (language_defn::pass_by_reference_info): New member function.
4245 (default_pass_by_reference): Delete declaration.
4246 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4247 initializer.
4248 * objc-lang.c (objc_language_data): Likewise.
4249 * opencl-lang.c (opencl_language_data): Likewise.
4250 * p-lang.c (pascal_language_data): Likewise.
4251 * rust-lang.c (rust_language_data): Likewise.
4252
4253 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4254
4255 * ada-lang.c (ada_read_var_value): Delete function, move
4256 implementation to...
4257 (ada_language::read_var_value): ...here.
4258 (ada_language_data): Delete la_read_var_value initializer.
4259 * c-lang.c (c_language_data): Likewise.
4260 (cplus_language_data): Likewise.
4261 (minimal_language_data): Likewise.
4262 * d-lang.c (d_language_data): Likewise.
4263 * f-lang.c (f_language_data): Likewise.
4264 * findvar.c (default_read_var_value): Rename to...
4265 (language_defn::read_var_value): ...this.
4266 * findvar.c (read_var_value): Update header comment, and change to
4267 call member function instead of function pointer.
4268 * go-lang.c (go_language_data): Likewise.
4269 * language.c (unknown_language_data): Delete la_read_var_value
4270 initializer.
4271 (auto_language_data): Likewise.
4272 * language.h (struct language_data): Delete la_read_var_value
4273 field.
4274 (language_defn::read_var_value): New member function.
4275 (default_read_var_value): Delete declaration.
4276 * m2-lang.c (m2_language_data): Delete la_read_var_value
4277 initializer.
4278 * objc-lang.c (objc_language_data): Likewise.
4279 * opencl-lang.c (opencl_language_data): Likewise.
4280 * p-lang.c (pascal_language_data): Likewise.
4281 * rust-lang.c (rust_language_data): Likewise.
4282 * value.h (default_read_var_value): Delete declaration.
4283
4284 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4285
4286 * ada-lang.c (ada_print_array_index): Delete function, move
4287 implementation to...
4288 (ada_language::print_array_index): ...here.
4289 (ada_language_data): Delete la_print_array_index initializer.
4290 * c-lang.c (c_language_data): Likewise.
4291 (cplus_language_data): Likewise.
4292 (minimal_language_data): Likewise.
4293 * d-lang.c (d_language_data): Likewise.
4294 * f-lang.c (f_language_data): Likewise.
4295 * go-lang.c (go_language_data): Likewise.
4296 * language.c (default_print_array_index): Delete function, move
4297 implementation to...
4298 (language_defn::print_array_index): ...here.
4299 (unknown_language_data): Delete la_print_array_index initializer.
4300 (auto_language_data): Likewise.
4301 * language.h (struct language_data): Delete la_print_array_index
4302 field.
4303 (language_defn::print_array_index): New member function.
4304 (LA_PRINT_ARRAY_INDEX): Update.
4305 (default_print_array_index): Delete declaration.
4306 * m2-lang.c (m2_language_data): Delete la_print_array_index
4307 initializer.
4308 * objc-lang.c (objc_language_data): Likewise.
4309 * opencl-lang.c (opencl_language_data): Likewise.
4310 * p-lang.c (pascal_language_data): Likewise.
4311 * rust-lang.c (rust_language_data): Likewise.
4312
4313 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4314
4315 * gdb/ada-lang.c (ada_language_defn): Convert to...
4316 (ada_language_data): ...this.
4317 (class ada_language): New class.
4318 (ada_language_defn): New static global.
4319 * gdb/c-lang.c (c_language_defn): Convert to...
4320 (c_language_data): ...this.
4321 (class c_language): New class.
4322 (c_language_defn): New static global.
4323 (cplus_language_defn): Convert to...
4324 (cplus_language_data): ...this.
4325 (class cplus_language): New class.
4326 (cplus_language_defn): New static global.
4327 (asm_language_defn): Convert to...
4328 (asm_language_data): ...this.
4329 (class asm_language): New class.
4330 (asm_language_defn): New static global.
4331 (minimal_language_defn): Convert to...
4332 (minimal_language_data): ...this.
4333 (class minimal_language): New class.
4334 (minimal_language_defn): New static global.
4335 * gdb/d-lang.c (d_language_defn): Convert to...
4336 (d_language_data): ...this.
4337 (class d_language): New class.
4338 (d_language_defn): New static global.
4339 * gdb/f-lang.c (f_language_defn): Convert to...
4340 (f_language_data): ...this.
4341 (class f_language): New class.
4342 (f_language_defn): New static global.
4343 * gdb/go-lang.c (go_language_defn): Convert to...
4344 (go_language_data): ...this.
4345 (class go_language): New class.
4346 (go_language_defn): New static global.
4347 * gdb/language.c (unknown_language_defn): Remove declaration.
4348 (current_language): Initialize to nullptr, real initialization is
4349 moved to _initialize_language.
4350 (languages): Delete global.
4351 (language_defn::languages): Define.
4352 (set_language_command): Use language_defn::languages.
4353 (set_language): Likewise.
4354 (range_error): Likewise.
4355 (language_enum): Likewise.
4356 (language_def): Likewise.
4357 (add_set_language_command): Use language_def::languages for the
4358 language list, and language_def to lookup language pointers.
4359 (skip_language_trampoline): Use language_defn::languages.
4360 (unknown_language_defn): Convert to...
4361 (unknown_language_data): ...this.
4362 (class unknown_language): New class.
4363 (unknown_language_defn): New static global.
4364 (auto_language_defn): Convert to...
4365 (auto_language_data): ...this.
4366 (class auto_language): New class.
4367 (auto_language_defn): New static global.
4368 (language_gdbarch_post_init): Use language_defn::languages.
4369 (_initialize_language): Initialize current_language.
4370 * gdb/language.h (struct language_defn): Rename to...
4371 (struct language_data): ...this.
4372 (struct language_defn): New.
4373 (auto_language_defn): Delete.
4374 (unknown_language_defn): Delete.
4375 (minimal_language_defn): Delete.
4376 (ada_language_defn): Delete.
4377 (asm_language_defn): Delete.
4378 (c_language_defn): Delete.
4379 (cplus_language_defn): Delete.
4380 (d_language_defn): Delete.
4381 (f_language_defn): Delete.
4382 (go_language_defn): Delete.
4383 (m2_language_defn): Delete.
4384 (objc_language_defn): Delete.
4385 (opencl_language_defn): Delete.
4386 (pascal_language_defn): Delete.
4387 (rust_language_defn): Delete.
4388 * gdb/m2-lang.c (m2_language_defn): Convert to...
4389 (m2_language_data): ...this.
4390 (class m2_language): New class.
4391 (m2_language_defn): New static global.
4392 * gdb/objc-lang.c (objc_language_defn): Convert to...
4393 (objc_language_data): ...this.
4394 (class objc_language): New class.
4395 (objc_language_defn): New static global.
4396 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4397 (opencl_language_data): ...this.
4398 (class opencl_language): New class.
4399 (opencl_language_defn): New static global.
4400 * gdb/p-lang.c (pascal_language_defn): Convert to...
4401 (pascal_language_data): ...this.
4402 (class pascal_language): New class.
4403 (pascal_language_defn): New static global.
4404 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4405 language pointer, update comment format.
4406 * gdb/rust-lang.c (rust_language_defn): Convert to...
4407 (rust_language_data): ...this.
4408 (class rust_language): New class.
4409 (rust_language_defn): New static global.
4410
4411 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4412
4413 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4414 member variable.
4415 <m_stmt_at_address>: New member variable.
4416 (lnp_state_machine::record_line): Don't record some lines, update
4417 tracking of is_stmt at the same address.
4418 (lnp_state_machine::lnp_state_machine): Initialise new member
4419 variables.
4420
4421 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4422
4423 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4424 "-include gnu-nat-mig.h".
4425 * gnu-nat-mig.h: New file.
4426 * gnu-nat.c: Include "gnu-nat-mig.h".
4427 (exc_server, msg_reply_server, notify_server,
4428 process_reply_server): Remove declarations.
4429
4430 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4431
4432 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4433 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4434 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4435 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4436 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4437 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4438 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4439 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4440 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4441 to gnu_nat_target class.
4442 * gnu-nat.c: Likewise.
4443 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4444 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4445 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4446 object.
4447 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4448 instead of `gnu_target'.
4449
4450 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4451
4452 * i386-gnu-tdep.c: Include "gdbcore.h"
4453 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4454 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4455 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4456 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4457 i386_gnu_sigcontext_addr): New functions
4458 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4459 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4460 tdep.
4461
4462 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4463
4464 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4465 before fork_inferior call. Avoid calling it if target_is_pushed returns
4466 true.
4467
4468 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4469
4470 * gnu-nat.h (gnu_target): New variable declaration.
4471 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4472 gnu_target.
4473 * gnu-nat.c (gnu_target): New variable.
4474 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4475 add_thread_silent, and add_thread calls.
4476 (gnu_nat_target::create_inferior): Pass gnu_target to
4477 add_thread_silent, thread_change_ptid call.
4478 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4479 call.
4480
4481 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4482
4483 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4484 (gnu_nat_target::find_memory_regions): Remove unused
4485 `old_address' variable.
4486
4487 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4488
4489 * gnu-nat.c: Include "gdbarch.h".
4490
4491 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4492
4493 * reply_mig_hack.awk (Error return): Cast function through
4494 void *, to bypass compiler function call check.
4495
4496 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4497
4498 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4499 $(srcdir)/reply_mig_hack.awk.
4500
4501 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4502
4503 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4504
4505 2020-05-30 Jonny Grant <jg@jguk.org>
4506
4507 * configure.ac (ACX_BUGURL): change bug URL to https.
4508
4509 2020-05-30 Pedro Alves <palves@redhat.com>
4510
4511 * cp-support.c (replace_typedefs_template): New.
4512 (replace_typedefs_qualified_name): Handle
4513 DEMANGLE_COMPONENT_TEMPLATE.
4514
4515 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4516
4517 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4518 dwarf2/index-cache.h, dwarf2/index-write.c,
4519 dwarf2/index-write.h, dwarf2/line-header.c,
4520 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4521 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4522 variables and fields from `dwarf2_per_objfile` to just
4523 `per_objfile` throughout.
4524
4525 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4526
4527 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4528 <push_dwarf_reg_entry_value>: Add comment.
4529
4530 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4531 Keith Seitz <keiths@redhat.com>
4532
4533 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4534 instead of PyEval_ReleaseLock.
4535 (class gdbpy_gil): Move to earlier in file.
4536 (finalize_python): Set gdb_python_initialized.
4537 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4538 when not initialized.
4539
4540 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4541
4542 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4543 <push_dwarf_reg_entry_value>: Remove assert. Override
4544 per_objfile with caller_per_objfile.
4545
4546 2020-05-28 Tom de Vries <tdevries@suse.de>
4547
4548 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4549 PR gold/15646 workaround to symbol kind "type".
4550
4551 2020-05-27 Tom Tromey <tromey@adacore.com>
4552
4553 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4554
4555 2020-05-27 Tom Tromey <tromey@adacore.com>
4556
4557 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4558 Use htab_find_with_hash.
4559 <add_abbrev>: Remove "abbrev_number" parameter.
4560 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4561 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4562 (hash_abbrev): Add comment.
4563 (abbrev_table::lookup_abbrev): Move to header file.
4564 (abbrev_table::read): Update.
4565
4566 2020-05-27 Tom Tromey <tromey@adacore.com>
4567
4568 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4569 method.
4570 <canonical_name>: New member.
4571 <raw_name>: Rename from "name".
4572 (partial_die_info): Initialize canonical_name.
4573 (scan_partial_symbols): Check raw_name.
4574 (partial_die_parent_scope, partial_die_full_name)
4575 (add_partial_symbol, add_partial_subprogram)
4576 (add_partial_enumeration, load_partial_dies): Use "name" method.
4577 (partial_die_info::name): New method.
4578 (partial_die_info::read, guess_partial_die_structure_name)
4579 (partial_die_info::fixup): Update.
4580
4581 2020-05-27 Tom Tromey <tromey@adacore.com>
4582
4583 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4584 <get_ref_die_offset>: Inline.
4585 <get_ref_die_offset_complaint>: New method.
4586 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4587 (attribute::get_ref_die_offset_complaint): Rename from
4588 get_ref_die_offset. Just issue complaint.
4589
4590 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4591
4592 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4593
4594 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4595
4596 * exec.c (exec_file_attach): Use errno value of first openp failure.
4597
4598 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4599
4600 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4601 Don't close thread handle.
4602
4603 2020-05-27 Tom Tromey <tom@tromey.com>
4604 Simon Marchi <simon.marchi@efficios.com>
4605
4606 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4607 shared_ptr.
4608 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4609 member.
4610 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4611 dwarf2_per_bfd_objfile_data_key>: New globals.
4612 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4613 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4614 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4615 shared.
4616 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4617 short-circuit when sharing.
4618 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4619 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4620
4621 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4622
4623 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4624 to...
4625 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4626 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4627
4628 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4629
4630 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4631 build_name_components, find_name_components_bounds>:
4632 Add per_objfile parameter.
4633 (struct mapped_index) <symbol_name_at>: Likewise.
4634 (struct mapped_debug_names): Remove constructor.
4635 <dwarf2_per_objfile>: Remove field.
4636 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4637 (mapped_index_base::find_name_components_bounds,
4638 mapped_index_base::build_name_components,
4639 dw2_expand_symtabs_matching_symbol): Likewise.
4640 (class mock_mapped_index) <symbol_name_at>: Likewise.
4641 (check_match): Likewise.
4642 (check_find_bounds_finds): Likewise.
4643 (test_mapped_index_find_name_component_bounds): Update.
4644 (CHECK_MATCH): Update.
4645 (dw2_expand_symtabs_matching): Update.
4646 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4647 per_objfile parameter.
4648 <find_vec_in_debug_names>: Likewise.
4649 <m_per_objfile>: New field.
4650 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4651 parameter.
4652 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4653 (dw2_debug_names_iterator::next): Update.
4654 (dw2_debug_names_lookup_symbol): Update.
4655 (dw2_debug_names_expand_symtabs_for_function): Update.
4656 (dw2_debug_names_map_matching_symbols): Update.
4657 (dw2_debug_names_expand_symtabs_matching): Update.
4658 (dwarf2_read_debug_names): Update.
4659
4660 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4661
4662 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4663 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4664 move to dwarf2_per_objfile.
4665 <read_in_chain>: Remove.
4666 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4667 remove_all_cus, age_comp_units>: New methods.
4668 <m_dwarf2_cus>: New member.
4669 (struct dwarf2_per_cu_data) <cu>: Remove.
4670 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4671 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4672 moved to methods of dwarf2_per_objfile.
4673 (dwarf2_clear_marks): Remove.
4674 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4675 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4676 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4677 (dwarf2_per_objfile::remove_all_cus): New.
4678 (class free_cached_comp_units) <~free_cached_comp_units>:
4679 Update.
4680 (load_cu): Update.
4681 (dw2_do_instantiate_symtab): Adjust.
4682 (fill_in_sig_entry_from_dwo_entry): Adjust.
4683 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4684 (cutu_reader::cutu_reader): Likewise.
4685 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4686 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4687 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4688 and dwarf2_per_objfile::age_comp_units.
4689 (load_partial_comp_unit): Update.
4690 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4691 (process_queue): Likewise.
4692 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4693 backlink.
4694 (dwarf2_read_addr_index): Likewise.
4695 (follow_die_offset): Likewise.
4696 (dwarf2_fetch_die_loc_sect_off): Likewise.
4697 (dwarf2_fetch_constant_bytes): Likewise.
4698 (dwarf2_fetch_die_type_sect_off): Likewise.
4699 (follow_die_sig_1): Likewise.
4700 (load_full_type_unit): Likewise.
4701 (read_signatured_type): Likewise.
4702 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4703 (dwarf2_cu::~dwarf2_cu): Remove.
4704 (dwarf2_per_objfile::get_cu): New.
4705 (dwarf2_per_objfile::set_cu): New.
4706 (age_cached_comp_units): Rename to...
4707 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4708 to std::unordered_map.
4709 (free_one_cached_comp_unit): Rename to...
4710 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4711 to std::unordered_map.
4712 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4713 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4714 a dwarf2_per_objfile in data.
4715 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4716 (dwarf2_clear_marks): Remove.
4717
4718 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4719
4720 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4721 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4722 (init_tu_and_read_dwo_dies): Likewise.
4723 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4724 (cutu_reader::cutu_reader): Likewise.
4725 (load_partial_comp_unit): Likewise.
4726 (process_psymtab_comp_unit): Update.
4727 (build_type_psymtabs_1): Update.
4728 (process_skeletonless_type_unit): Update.
4729 (load_full_comp_unit): Update.
4730 (find_partial_die): Update.
4731 (dwarf2_read_addr_index): Update.
4732 (read_signatured_type): Update.
4733
4734 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4735
4736 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4737 m_header_read_in>: New fields.
4738 <get_header>: New method.
4739 * dwarf2/read.c (per_cu_header_read_in): Remove.
4740 (dwarf2_per_cu_data::get_header): New.
4741 (dwarf2_per_cu_data::addr_size): Update.
4742 (dwarf2_per_cu_data::offset_size): Update.
4743 (dwarf2_per_cu_data::ref_addr_size): Update.
4744
4745 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4746
4747 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4748 (dw2_do_instantiate_symtab): Update.
4749 (queue_and_load_all_dwo_tus): Change parameter from
4750 dwarf2_per_cu_data to dwarf2_cu.
4751 (dwarf2_fetch_die_loc_sect_off): Update.
4752 (dwarf2_fetch_constant_bytes): Update.
4753 (dwarf2_fetch_die_type_sect_off): Update.
4754
4755 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4756
4757 * dwarf2/read.c (process_full_comp_unit,
4758 process_full_type_unit): Remove per_cu, per_objfile paramters.
4759 Add dwarf2_cu parameter.
4760 (process_queue): Update.
4761
4762 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4763
4764 * dwarf2/read.c (create_cu_from_index_list): Replace
4765 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4766 (create_cus_from_index_list): Likewise.
4767 (create_cus_from_index): Likewise.
4768 (create_signatured_type_table_from_index): Likewise.
4769 (create_cus_from_debug_names_list): Likewise.
4770 (create_cus_from_debug_names): Likewise.
4771 (dwarf2_read_gdb_index): Update.
4772 (dwarf2_read_debug_names): Update.
4773
4774 2020-05-27 Tom Tromey <tom@tromey.com>
4775 Simon Marchi <simon.marchi@efficios.com>
4776
4777 * dwarf2/read.h (struct dwarf2_per_objfile)
4778 <get_type_for_signatured_type, set_type_for_signatured_type>:
4779 New methods.
4780 <m_type_map>: New member.
4781 (struct signatured_type) <type>: Remove.
4782 * dwarf2/read.c
4783 (dwarf2_per_objfile::get_type_for_signatured_type,
4784 dwarf2_per_objfile::set_type_for_signatured_type): New.
4785 (get_signatured_type): Use new methods.
4786
4787 2020-05-27 Tom Tromey <tom@tromey.com>
4788 Simon Marchi <simon.marchi@efficios.com>
4789
4790 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4791 (struct dwarf2_per_objfile) <type_units>: New member.
4792 <get_type_unit_group_unshareable>: New method.
4793 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4794 num_symtabs, symtabs>: Remove; move to
4795 type_unit_group_unshareable.
4796 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4797 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4798 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4799
4800 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4801
4802 * dwarf2/read.h (struct dwarf2_per_cu_data):
4803 <dwarf2_per_objfile>: Remove.
4804 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4805 dwarf2_per_objfile.
4806 (create_signatured_type_table_from_index): Likewise.
4807 (create_signatured_type_table_from_debug_names): Likewise.
4808 (create_debug_type_hash_table): Likewise.
4809 (fill_in_sig_entry_from_dwo_entry): Likewise.
4810 (create_type_unit_group): Likewise.
4811 (read_comp_units_from_section): Likewise.
4812 (create_cus_hash_table): Likewise.
4813
4814 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4815
4816 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4817 dwarf2_per_cu_data::dwarf2_per_objfile.
4818 (compute_compunit_symtab_includes): Likewise.
4819 (dwarf2_cu::start_symtab): Likewise.
4820
4821 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4822
4823 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4824 parameter.
4825 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4826 (read_namespace_alias): Update.
4827 (lookup_die_type): Update.
4828 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4829 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4830 Update.
4831 (disassemble_dwarf_expression): Update.
4832
4833 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4834
4835 * dwarf2/read.h (struct dwarf2_queue_item): Add
4836 dwarf2_per_objfile parameter, assign new parameter.
4837 <per_objfile>: New field.
4838 * dwarf2/read.c (free_one_cached_comp_unit): Add
4839 dwarf2_per_objfile parameter.
4840 (queue_comp_unit): Likewise.
4841 (dw2_do_instantiate_symtab): Update.
4842 (process_psymtab_comp_unit): Update.
4843 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4844 (process_imported_unit_die): Update.
4845 (queue_and_load_dwo_tu): Update.
4846 (follow_die_offset): Update.
4847 (follow_die_sig_1): Update.
4848
4849 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4850
4851 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4852 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4853 (read_call_site_scope): Assign per_objfile.
4854 (dwarf2_per_cu_data::objfile): Remove.
4855 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4856 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4857 dwarf2_per_objfile parameter.
4858 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4859 dwarf2_per_objfile parameter.
4860 (dwarf_expr_reg_to_entry_parameter): Add output
4861 dwarf2_per_objfile parameter.
4862 (locexpr_get_frame_base): Update.
4863 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4864 <push_dwarf_reg_entry_value>: Update.
4865 <call_site_to_target_addr>: Update.
4866 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4867 parameter.
4868 (value_of_dwarf_reg_entry): Update.
4869 (rw_pieced_value): Update.
4870 (indirect_synthetic_pointer): Update.
4871 (dwarf2_evaluate_property): Update.
4872 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4873 parameter.
4874 (locexpr_read_variable): Update.
4875 (locexpr_get_symbol_read_needs): Update.
4876 (loclist_read_variable): Update.
4877
4878 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4879
4880 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4881 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4882 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4883 parameter.
4884 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4885 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4886 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4887 parameter.
4888 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4889 sect_variable_value): Add dwarf2_per_objfile parameter.
4890 (class dwarf_evaluate_loc_desc) <dwarf_call,
4891 dwarf_variable_value>: Update.
4892 (fetch_const_value_from_synthetic_pointer): Add
4893 dwarf2_per_objfile parameter.
4894 (fetch_const_value_from_synthetic_pointer): Update.
4895 (coerced_pieced_ref): Update.
4896 (class symbol_needs_eval_context) <dwarf_call,
4897 dwarf_variable_value>: Update.
4898 (dwarf2_compile_expr_to_ax): Update.
4899
4900 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4901
4902 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4903 parameter.
4904 (dwarf2_evaluate_loc_desc_full): Update.
4905
4906 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4907
4908 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4909 parameter.
4910 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4911 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4912 dwarf2_per_objfile parameter.
4913 (decode_debug_loc_dwo_addresses): Likewise.
4914 (dwarf2_find_location_expression): Update.
4915 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4916 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4917 parameter.
4918 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4919 parameter.
4920 (locexpr_describe_location_1): Likewise.
4921 (locexpr_describe_location): Update.
4922
4923 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4924
4925 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4926 Remove.
4927 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4928 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4929 (dwarf2_compile_property_to_c): Update.
4930 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4931 use text offset from objfile.
4932 (locexpr_tracepoint_var_ref): Update.
4933 (locexpr_generate_c_location): Update.
4934 (loclist_describe_location): Update.
4935 (loclist_tracepoint_var_ref): Update.
4936 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4937 dwarf2_per_objfile parameter.
4938 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4939 use text offset from objfile.
4940 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4941
4942 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4943
4944 * dwarf2/expr.h (struct dwarf_expr_context)
4945 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4946 <offset>: Remove.
4947 <per_objfile>: New member.
4948 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4949 dwarf2_per_objfile parameter. Don't set offset, set
4950 per_objfile.
4951 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4952 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4953 a dwarf2_per_objfile object instead of an offset.
4954 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4955 constructor.
4956 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4957 to dwarf2_expr_executor constructor. Don't set offset.
4958 (dwarf2_fetch_cfa_info): Update.
4959 (struct dwarf2_frame_cache) <text_offset>: Remove.
4960 <per_objfile>: New field.
4961 (dwarf2_frame_cache): Update.
4962 (dwarf2_frame_prev_register): Update.
4963 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4964 <dwarf_evaluate_loc_desc>: Add constructor.
4965 (dwarf2_evaluate_loc_desc_full): Update.
4966 (dwarf2_locexpr_baton_eval): Update.
4967 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4968 Add constructor.
4969 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4970
4971 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4972
4973 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4974 addr_sized_int_type>: Move to dwarf2_cu.
4975 <int_type>: Move to dwarf2_per_objfile.
4976 (struct dwarf2_per_objfile) <int_type>: Move here.
4977 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4978 addr_sized_int_type>: Move here.
4979 (read_func_scope): Update.
4980 (read_array_type): Update.
4981 (read_tag_string_type): Update.
4982 (attr_to_dynamic_prop): Update.
4983 (dwarf2_per_cu_data::int_type): Rename to...
4984 (dwarf2_per_objfile::int_type): ... this.
4985 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4986 (dwarf2_cu::addr_sized_int_type): ... this.
4987 (read_subrange_type): Update.
4988 (dwarf2_per_cu_data::addr_type): Rename to...
4989 (dwarf2_cu::addr_type): ... this.
4990 (set_die_type): Update.
4991
4992 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4993
4994 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4995 data through per_cu->cu.
4996
4997 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4998
4999 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5000 dwarf2_per_cu_data parameter fo dwarf2_cu.
5001 (lookup_dwo_type_unit): Likewise.
5002 (read_cutu_die_from_dwo): Likewise.
5003 (lookup_dwo_unit): Likewise.
5004 (open_and_init_dwo_file): Likewise.
5005 (lookup_dwo_cutu): Likewise.
5006 (lookup_dwo_comp_unit): Likewise.
5007 (lookup_dwo_type_unit): Likewise.
5008 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5009 (cutu_reader::cutu_reader): Update.
5010
5011 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5012
5013 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5014 parameter.
5015 (process_full_type_unit): Likewise.
5016 (process_queue): Update.
5017
5018 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5019
5020 * dwarf2/read.c (recursively_compute_inclusions): Add
5021 dwarf2_per_objfile parameter.
5022 (compute_compunit_symtab_includes): Likewise.
5023 (process_cu_includes): Update.
5024
5025 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5026
5027 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5028 parameter.
5029 (create_type_unit_group): Update.
5030 (process_psymtab_comp_unit_reader): Update.
5031 (build_type_psymtabs_reader): Update.
5032
5033 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5034
5035 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5036 object through m_this_cu->cu.
5037
5038 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5039
5040 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5041 the info parameter.
5042 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5043
5044 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5045
5046 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5047 per_objfile parameter.
5048 (load_full_type_unit): Add per_objfile parameter.
5049 (read_signatured_type): Likewise.
5050 (load_full_comp_unit): Likewise.
5051 (load_cu): Likewise.
5052 (dw2_do_instantiate_symtab): Likewise.
5053 (dw2_get_file_names): Likewise.
5054 (dw2_map_symtabs_matching_filename): Update.
5055 (dw_expand_symtabs_matching_file_matcher): Update.
5056 (dw2_map_symbol_filenames): Update.
5057 (process_psymtab_comp_unit): Add per_objfile parameter.
5058 (build_type_psymtabs_1): Update.
5059 (process_skeletonless_type_unit): Update.
5060 (dwarf2_build_psymtabs_hard): Update.
5061 (load_partial_comp_unit): Add per_objfile parameter.
5062 (scan_partial_symbols): Update.
5063 (load_full_comp_unit): Add per_objfile parameter.
5064 (process_imported_unit_die): Update.
5065 (create_cus_hash_table): Update.
5066 (find_partial_die): Update.
5067 (dwarf2_read_addr_index): Update.
5068 (follow_die_offset): Update.
5069 (dwarf2_fetch_die_loc_sect_off): Update.
5070 (dwarf2_fetch_constant_bytes): Update.
5071 (dwarf2_fetch_die_type_sect_off): Update.
5072 (follow_die_sig_1): Update.
5073 (load_full_type_unit): Add per_objfile parameter.
5074 (read_signatured_type): Likewise.
5075
5076 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5077
5078 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5079 of objfile_name.
5080
5081 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5082
5083 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5084 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5085 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5086 field.
5087 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5088 (create_cus_from_index): Update.
5089 (dwarf2_read_gdb_index): Update.
5090 (create_cus_from_debug_names): Update.
5091 (dwarf2_read_debug_names): Update.
5092 (get_abbrev_section_for_cu): Update.
5093 (create_all_comp_units): Update.
5094 (read_attribute_value): Update.
5095 (get_debug_line_section): Update.
5096 * dwarf2/index-cache.c (index_cache::store): Update.
5097 * dwarf2/index-write.c (save_gdb_index_command): Update.
5098 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5099
5100 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5101
5102 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5103 member.
5104 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5105 dwarf2_per_cu_data::per_bfd.
5106 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5107 (create_type_unit_group): Likewise.
5108 (queue_comp_unit): Remove reference to
5109 per_cu->dwarf2_per_objfile.
5110 (maybe_queue_comp_unit): Likewise.
5111 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5112 (create_cus_hash_table): Assign new field.
5113
5114 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5115
5116 * dwarf2/read.c: Replace
5117 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5118 dwarf2_cu->per_objfile throughout.
5119
5120 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5121
5122 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5123 parameter, don't use per_cu->dwarf2_per_objfile.
5124 (dw2_instantiate_symtab): Likewise.
5125 (dw2_find_last_source_symtab): Update.
5126 (dw2_map_expand_apply): Update.
5127 (dw2_lookup_symbol): Update.
5128 (dw2_expand_symtabs_for_function): Update.
5129 (dw2_expand_all_symtabs): Update.
5130 (dw2_expand_symtabs_with_fullname): Update.
5131 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5132 don't use per_cu->dwarf2_per_objfile.
5133 (dw2_expand_marked_cus): Update.
5134 (dw2_find_pc_sect_compunit_symtab): Update.
5135 (dw2_debug_names_lookup_symbol): Update.
5136 (dw2_debug_names_expand_symtabs_for_function): Update.
5137 (dw2_debug_names_map_matching_symbols): Update.
5138 (dwarf2_psymtab::expand_psymtab): Update.
5139
5140 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5141
5142 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5143 <per_objfile>: New member.
5144 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5145 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5146 call to dwarf2_cu.
5147 (cutu_reader::cutu_reader): Update.
5148 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5149
5150 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5151
5152 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5153 struct dwarf2_per_objfile.
5154 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5155 dwarf2_per_bfd.
5156 * dwarf2/read.c (set_die_type): Update.
5157 (get_die_type_at_offset): Update.
5158
5159 2020-05-27 Tom Tromey <tom@tromey.com>
5160 Simon Marchi <simon.marchi@efficios.com>
5161
5162 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5163 method.
5164 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5165 get_symtab, set_symtab>: New methods.
5166 <m_symtabs>: New field.
5167 (struct dwarf2_psymtab): Derive from partial_symtab.
5168 <readin_p, get_compunit_symtab>: Declare methods.
5169 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5170 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5171 New methods.
5172 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5173 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5174 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5175 (dw2_symtab_iter_next, dw2_print_stats)
5176 (dw2_expand_symtabs_with_fullname)
5177 (dw2_expand_symtabs_matching_one)
5178 (dw_expand_symtabs_matching_file_matcher)
5179 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5180 (dw2_debug_names_iterator::next)
5181 (dw2_debug_names_map_matching_symbols)
5182 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5183 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5184 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5185 New methods.
5186 (get_compunit_symtab, process_full_comp_unit)
5187 (process_full_type_unit): Update.
5188 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5189
5190 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5191
5192 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5193 then introduce a new dwarf2_per_objfile type.
5194 <read_line_string>: Move to the new dwarf2_per_objfile type.
5195 <objfile>: Likewise.
5196 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5197 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5198 dwarf2_per_objfile->per_bfd.
5199 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5200 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5201 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5202 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5203 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5204 (dwarf2_per_objfile::locate_sections): Rename to...
5205 (dwarf2_per_bfd::locate_sections): ... this.
5206 (dwarf2_per_objfile::get_cutu): Rename to...
5207 (dwarf2_per_bfd::get_cutu): ... this.
5208 (dwarf2_per_objfile::get_cu): Rename to...
5209 (dwarf2_per_bfd::get_cu): ... this.
5210 (dwarf2_per_objfile::get_tu): Rename to...
5211 (dwarf2_per_bfd::get_tu): ... this.
5212 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5213 (dwarf2_per_bfd::allocate_per_cu): ... this.
5214 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5215 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5216 (get_gdb_index_contents_ftype): Change parameter from
5217 dwarf2_per_objfile to dwarf2_per_bfd.
5218 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5219 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5220
5221 2020-05-27 Tom Tromey <tom@tromey.com>
5222 Simon Marchi <simon.marchi@efficios.com>
5223
5224 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5225 (allocate_piece_closure): Set "per_objfile" member.
5226 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5227 (locexpr_describe_location, loclist_describe_location): Use new
5228 member.
5229 * dwarf2/read.c (read_call_site_scope)
5230 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5231 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5232 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5233 handle_data_member_location): Set per_objfile member.
5234 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5235 member.
5236 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5237
5238 2020-05-27 Tom Tromey <tom@tromey.com>
5239
5240 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5241 allocate_signatured_type>: Declare new methods.
5242 <m_num_psymtabs>: New member.
5243 (struct dwarf2_per_cu_data) <index>: New member.
5244 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5245 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5246 (create_cu_from_index_list): Use allocate_per_cu.
5247 (create_signatured_type_table_from_index)
5248 (create_signatured_type_table_from_debug_names)
5249 (create_debug_type_hash_table, add_type_unit)
5250 (read_comp_units_from_section): Use allocate_signatured_type.
5251
5252 2020-05-27 Tom Tromey <tom@tromey.com>
5253
5254 * psymtab.c (partial_map_expand_apply)
5255 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5256 (psym_lookup_global_symbol_language)
5257 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5258 (psym_print_stats, psym_expand_symtabs_for_function)
5259 (psym_map_symbol_filenames, psym_map_matching_symbols)
5260 (psym_expand_symtabs_matching)
5261 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5262 (maintenance_check_psymtabs): Update.
5263 * psympriv.h (struct partial_symtab) <readin_p,
5264 get_compunit_symtab>: Add objfile parameter.
5265 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5266 Likewise.
5267 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5268 get_compunit_symtab>: Likewise.
5269 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5270
5271 2020-05-27 Tom Tromey <tom@tromey.com>
5272
5273 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5274 member.
5275 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5276 (create_cu_from_index_list)
5277 (create_signatured_type_table_from_index)
5278 (create_signatured_type_table_from_debug_names)
5279 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5280 (dwarf2_create_include_psymtab)
5281 (create_debug_type_hash_table, add_type_unit)
5282 (create_type_unit_group, read_comp_units_from_section)
5283 (dwarf2_compute_name, create_cus_hash_table)
5284 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5285 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5286 obstack.
5287 (dw2_get_real_path): Likewise. Change argument to
5288 dwarf2_per_objfile.
5289
5290 2020-05-27 Luis Machado <luis.machado@linaro.org>
5291
5292 PR tdep/26000
5293 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5294 for ldrd (immediate).
5295
5296 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5297
5298 * command.h: Add comment giving the name of class_tui.
5299 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5300 create the fake command for the help for class_tui.
5301
5302 2020-05-26 Tom Tromey <tromey@adacore.com>
5303
5304 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5305 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5306 (val_atr): New function.
5307 (value_val_atr): Use it.
5308 * ada-valprint.c (print_optional_low_bound): Change low bound
5309 handling for enums.
5310 (val_print_packed_array_elements): Don't call discrete_position.
5311 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5312 discrete_position for enum types.
5313 * language.c (default_print_array_index): Change type.
5314 * language.h (struct language_defn) <la_print_array_index>: Add
5315 index_type parameter, change type of index_value.
5316 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5317 (default_print_array_index): Update.
5318 * valprint.c (maybe_print_array_index): Don't call
5319 value_from_longest. Update.
5320 (value_print_array_elements): Don't call discrete_position.
5321
5322 2020-05-26 Tom Tromey <tromey@adacore.com>
5323
5324 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5325 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5326
5327 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5328
5329 PR gdb/13519
5330 * avr-tdep.c (avr_integer_to_address): Return data or code
5331 address accordingly to the second 'type' argument of the
5332 function.
5333
5334 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5335
5336 * infcmd.c, inferior.h: (construct_inferior_arguments):
5337 Moved function from here to gdbsupport/common-inferior.{h,cc}
5338
5339 2020-05-23 Tom Tromey <tom@tromey.com>
5340
5341 Revert commit eca1f90c:
5342 * NEWS: Remove entry for completion styling.
5343 * completer.c (_rl_completion_prefix_display_length): Move
5344 declaration later.
5345 (gdb_fnprint): Revert.
5346 (gdb_display_match_list_1): Likewise.
5347 * cli/cli-style.c (completion_prefix_style)
5348 (completion_difference_style, completion_suffix_style): Remove.
5349 (_initialize_cli_style): Revert.
5350 * cli/cli-style.h (completion_prefix_style)
5351 (completion_difference_style, completion_suffix_style): Don't
5352 declare.
5353
5354 2020-05-24 Pedro Alves <palves@redhat.com>
5355
5356 * symtab.c (completion_list_add_name): Return boolean indication
5357 of whether the symbol matched.
5358 (completion_list_add_symbol): Don't try to remove C++ aliases if
5359 the symbol didn't match in the first place.
5360 * symtab.h (completion_list_add_name): Return bool.
5361
5362 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5363
5364 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5365 type::field.
5366
5367 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5368
5369 GDB 9.2 released.
5370
5371 2020-05-23 Tom Tromey <tom@tromey.com>
5372
5373 * NEWS: Add entry for completion styling.
5374 * completer.c (_rl_completion_prefix_display_length): Move
5375 declaration earlier.
5376 (gdb_fnprint): Use completion_style.
5377 (gdb_display_match_list_1): Likewise.
5378 * cli/cli-style.c (completion_prefix_style)
5379 (completion_difference_style, completion_suffix_style): New
5380 globals.
5381 (_initialize_cli_style): Register new globals.
5382 * cli/cli-style.h (completion_prefix_style)
5383 (completion_difference_style, completion_suffix_style): Declare.
5384
5385 2020-05-23 Pedro Alves <palves@redhat.com>
5386
5387 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5388 (parse_escape): Use ISDIGIT instead of isdigit.
5389 (puts_debug): Use gdb_isprint instead of isprint.
5390 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5391 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5392 ISSPACE instead of isspace.
5393 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5394 instead of isspace.
5395 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5396 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5397 instead of isxdigit and ISDIGIT instead of isdigit.
5398
5399 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5400
5401 * gdbtypes.h (struct type) <field>: New method.
5402 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5403 or type::field.
5404
5405 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5406
5407 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5408 (TYPE_FIELDS): Use type::fields. Change all call sites that
5409 modify the propery to use type::set_fields instead.
5410
5411 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5412
5413 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5414 type::num_fields instead.
5415
5416 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5417
5418 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5419 methods.
5420 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5421 that modify the number of fields to use type::set_num_fields
5422 instead.
5423
5424 2020-05-22 Tom Tromey <tromey@adacore.com>
5425
5426 * compile/compile-object-load.h (munmap_list_free): Don't
5427 declare.
5428
5429 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5430
5431 * annotate.c (annotate_source_line): Update return type, add call
5432 to update current symtab and line.
5433 * annotate.h (annotate_source_line): Update return type, and
5434 extend header comment.
5435 * source.c (info_line_command): Check annotation_level before
5436 calling annotate_source_line.
5437 * stack.c (print_frame_info): If calling annotate_source_line
5438 returns true, then don't print any other source line information.
5439
5440 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5441
5442 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5443
5444 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5445
5446 * coffread.c (patch_type): Remove NULL check before xfree.
5447 * corefile.c (set_gnutarget): Likewise.
5448 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5449 * exec.c (build_section_table): Likewise.
5450 * remote.c (remote_target::pass_signals): Likewise.
5451 * utils.c (n_spaces): Likewise.
5452 * cli/cli-script.c (document_command): Likewise.
5453 * i386-windows-tdep.c (core_process_module_section): Likewise.
5454 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5455
5456 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5457
5458 * symfile.c (reread_symbols): Clear objfile's section_offsets
5459 vector and section indices, re-compute them by calling
5460 sym_offsets.
5461
5462 2020-05-20 Tom Tromey <tromey@adacore.com>
5463
5464 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5465 (desc_one_bound, desc_index_type): Compute field name.
5466
5467 2020-05-20 Tom de Vries <tdevries@suse.de>
5468
5469 PR symtab/25833
5470 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5471
5472 2020-05-20 Alan Modra <amodra@gmail.com>
5473
5474 PR 25993
5475 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5476 bfd_set_filename.
5477 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5478 passed to bfd_set_filename.
5479 * symfile-mem.c (add_vsyscall_page): Likewise for string
5480 passed to symbol_file_add_from_memory.
5481 (symbol_file_add_from_memory): Make name param a const char* and
5482 don't strdup.
5483
5484 2020-05-20 Alan Modra <amodra@gmail.com>
5485
5486 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5487 rather than accessing bfd->filename directly.
5488 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5489 and use bfd_section_name.
5490 * dwarf2/frame.c (decode_frame_entry): Likewise.
5491 * exec.c (exec_set_section_address): Likewise.
5492 * solib-aix.c (solib_aix_bfd_open): Likewise.
5493 * stap-probe.c (get_stap_base_address): Likewise.
5494 * symfile.c (reread_symbols): Likewise.
5495
5496 2020-05-19 Tom Tromey <tromey@adacore.com>
5497
5498 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5499
5500 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5501
5502 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5503
5504 2020-05-19 Pedro Alves <palves@redhat.com>
5505
5506 * NEWS (set exec-file-mismatch): Adjust entry.
5507 * exec.c: Include "build-id.h".
5508 (validate_exec_file): Try to match build IDs instead of filenames.
5509 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5510 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5511 and pass down 'warn_if_slow'.
5512 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5513 gdb_bfd_open_closure to pass it down.
5514 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5515
5516 2020-05-19 Pedro Alves <palves@redhat.com>
5517
5518 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5519 * target.c (target_fileio_open_1): Rename to target_fileio_open
5520 and make extern. Use bool.
5521 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5522 (target_fileio_read_alloc_1): Adjust.
5523 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5524 (target_fileio_open_warn_if_slow): Delete declaration.
5525
5526 2020-05-19 Pedro Alves <palves@redhat.com>
5527
5528 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5529 Adjust all callers.
5530
5531 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5532
5533 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5534 whether disp is negative.
5535
5536 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5537
5538 * symfile.h (struct symfile_segment_data)
5539 <~symfile_segment_data>: Remove.
5540 <segment_info>: Change to std::vector.
5541 * symfile.c (default_symfile_segments): Update.
5542 * elfread.c (elf_symfile_segments): Update.
5543
5544 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5545
5546 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5547 <segments>: New.
5548 <segment_bases, segment_sizes>: Remove.
5549 * symfile.c (default_symfile_segments): Update.
5550 * elfread.c (elf_symfile_segments): Update.
5551 * remote.c (remote_target::get_offsets): Update.
5552 * solib-target.c (solib_target_relocate_section_addresses):
5553 Update.
5554
5555 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5556
5557 * symfile.h (struct symfile_segment_data): Initialize fields.
5558 <~symfile_segment_data>: Add.
5559 (symfile_segment_data_up): New.
5560 (struct sym_fns) <sym_segments>: Return a
5561 symfile_segment_data_up.
5562 (default_symfile_segments): Return a symfile_segment_data_up.
5563 (free_symfile_segment_data): Remove.
5564 (get_symfile_segment_data): Return a symfile_segment_data_up.
5565 * symfile.c (default_symfile_segments): Likewise.
5566 (get_symfile_segment_data): Likewise.
5567 (free_symfile_segment_data): Remove.
5568 (symfile_find_segment_sections): Update.
5569 * elfread.c (elf_symfile_segments): Return a
5570 symfile_segment_data_up.
5571 * remote.c (remote_target::get_offsets): Update.
5572 * solib-target.c (solib_target_relocate_section_addresses):
5573 Update.
5574 * symfile-debug.c (debug_sym_segments): Return a
5575 symfile_segment_data_up.
5576
5577 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5578
5579 PR build/25981
5580 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5581 Hardcode register numbers.
5582
5583 PR build/25981
5584 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5585 procfs_find_LDT_entry): Remove.
5586 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5587 procfs_find_LDT_entry): Remove.
5588 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5589 Remove.
5590
5591 2020-05-17 Pedro Alves <palves@redhat.com>
5592 Andrew Burgess <andrew.burgess@embecosm.com>
5593 Keno Fischer <keno@juliacomputing.com>
5594
5595 PR gdb/25741
5596 * breakpoint.c (build_target_condition_list): Update comments.
5597 (build_target_command_list): Update comments and skip matching
5598 locations.
5599 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5600 a separate function. Simplify "set breakpoint auto-hw off"
5601 handling.
5602 (insert_breakpoints): Update comment.
5603 (tracepoint_locations_match): New parameter. For breakpoints,
5604 compare location types too, if the caller wants to.
5605 (handle_automatic_hardware_breakpoints): New functions.
5606 (bp_location_is_less_than): Also sort by location type and
5607 hardware breakpoint length.
5608 (update_global_location_list): Handle "set breakpoint auto-hw on"
5609 here.
5610 (update_breakpoint_locations): Ask breakpoint_locations_match to
5611 ignore location types.
5612
5613 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5614
5615 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5616 type::name instead.
5617
5618 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5619
5620 * gdbtypes.h (struct type) <name, set_name>: New methods.
5621 (TYPE_CODE): Use type::name. Change all call sites used to set
5622 the name to use type::set_name instead.
5623
5624 2020-05-16 Tom Tromey <tom@tromey.com>
5625
5626 * top.c (quit_force): Update.
5627 * infrun.c (handle_no_resumed): Update.
5628 * top.h (all_uis): New function.
5629 (ALL_UIS): Remove.
5630
5631 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5632
5633 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5634
5635 2020-05-16 Pedro Alves <palves@redhat.com>
5636
5637 * ia64-linux-nat.c
5638 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5639 Declare method.
5640 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5641
5642 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5643
5644 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5645 (sparc64_adi_info): Likewise.
5646
5647 2020-05-15 Tom Tromey <tom@tromey.com>
5648
5649 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5650 block_objfile.
5651 (lookup_objfile_from_block): Remove.
5652 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5653 (lookup_global_symbol): Use block_objfile.
5654 * symtab.h (lookup_objfile_from_block): Don't declare.
5655 * printcmd.c (clear_dangling_display_expressions): Use
5656 block_objfile.
5657 * parse.c (operator_check_standard): Use block_objfile.
5658
5659 2020-05-15 Tom Tromey <tom@tromey.com>
5660
5661 * language.c (language_alloc_type_symbol): Set
5662 SYMBOL_SECTION.
5663 * symtab.c (initialize_objfile_symbol): Remove.
5664 (allocate_symbol): Remove.
5665 (allocate_template_symbol): Remove.
5666 * dwarf2/read.c (fixup_go_packaging): Use "new".
5667 (new_symbol): Use "new".
5668 (read_variable): Don't call initialize_objfile_symbol. Use
5669 "new".
5670 (read_func_scope): Use "new".
5671 * xcoffread.c (process_xcoff_symbol): Don't call
5672 initialize_objfile_symbol.
5673 (SYMBOL_DUP): Remove.
5674 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5675 "new".
5676 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5677 (allocate_template_symbol): Don't declare.
5678 (struct symbol): Add copy constructor. Change defaults.
5679 * jit.c (finalize_symtab): Use "new".
5680 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5681 Use "new".
5682 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5683 (common_block_end): Use "new".
5684 * mdebugread.c (parse_symbol): Use "new".
5685 (new_symbol): Likewise.
5686
5687 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5688
5689 * NEWS: Mention changes to help and apropos.
5690
5691 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5692
5693 * command.h (enum command_class): Improve comments, document
5694 that class_alias is for user-defined aliases, give the class
5695 name for each class, remove unused class_xdb.
5696 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5697 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5698 by a precise class.
5699 * infcmd.c (_initialize_infcmd): Likewise.
5700 * reverse.c (_initialize_reverse): Likewise.
5701 * stack.c (_initialize_stack): Likewise.
5702 * symfile.c (_initialize_symfile): Likewise.
5703 * tracepoint.c (_initialize_tracepoint): Likewise.
5704
5705 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5706
5707 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5708 when their aliased command is traversed.
5709 (help_cmd): Add fput_command_names_styled call to
5710 output command name and aliases when command has an alias.
5711
5712 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5713
5714 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5715 * cli/cli-decode.c (help_cmd_list): Declare as static,
5716 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5717 a command together with the command.
5718 (fput_command_name_styled, fput_command_names_styled): New functions.
5719 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5720 fput_command_name_styled.
5721 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5722 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5723
5724 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5725
5726 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5727 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5728 * command.h (cmd_show_list): Likewise.
5729 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5730 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5731
5732 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5733
5734 * unittests/command-def-selftests.c (traverse_command_structure):
5735 Verify all commands of a list have the same prefix command and
5736 that only the top cmdlist commands have a null prefix.
5737
5738 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5739
5740 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5741 as prefix, not one of its aliases.
5742 (set_cmd_prefix): Remove.
5743 (do_add_cmd): Centralize the setting of the prefix of a command, when
5744 command is defined after its full chain of prefix commands.
5745 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5746 (add_setshow_cmd_full): Likewise.
5747 (update_prefix_field_of_prefixed_commands): New function.
5748 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5749 update_prefix_field_of_prefixed_commands.
5750 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5751 addresses of remote_set_cmdlist and remote_show_cmdlist given
5752 as argument, not the address of an argument.
5753 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5754 * gdb/remote.c (_initialize_remote): Likewise.
5755
5756 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5757
5758 * cli/cli-cmds.c (alias_command): Check for an existing alias
5759 using lookup_cmd_composition, as valid_command_p is too strict
5760 and forbids aliases that are the prefix of an existing alias
5761 or command.
5762 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5763 command is properly recognised as a valid command.
5764
5765 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5766
5767 * unittests/help-doc-selftests.c: Rename to
5768 unittests/command-def-selftests.c
5769 * unittests/command-def-selftests.c (help_doc_tests): Update some
5770 comments.
5771 (command_structure_tests, traverse_command_structure): New namespace
5772 and function.
5773 (command_structure_invariants_tests): New function.
5774 (_initialize_command_def_selftests) Renamed from
5775 _initialize_help_doc_selftests, register command_structure_invariants
5776 selftest.
5777
5778 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5779
5780 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5781 an alias of 'show'.
5782
5783 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5784
5785 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5786 ada_is_fixed_point_type. Update all callers.
5787 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5788 all callers.
5789 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5790 Update all callers.
5791 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5792 print_fixed_point_type. Update all callers.
5793 * ada-valprint.c (ada_value_print_num): Replace call to
5794 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5795
5796 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5797
5798 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5799 processors.
5800 (cpu_supports_bts): Add CV_AMD case.
5801
5802 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5803 Simon Marchi <simon.marchi@efficios.com>
5804
5805 * infrun.c (stop_all_threads): Collect multiple wait events at
5806 each pass.
5807
5808 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5809
5810 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5811 type::code instead.
5812
5813 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5814
5815 * gdbtypes.h (struct type) <code, set_code>: New methods.
5816 (TYPE_CODE): Use type::code. Change all call sites used to set
5817 the code to use type::set_code instead.
5818
5819 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5820 Tom de Vries <tdevries@suse.de>
5821 Pedro Alves <palves@redhat.com>
5822
5823 PR threads/25478
5824 * infrun.c (stop_all_threads): Do NOT ignore
5825 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5826 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5827 received.
5828 (handle_no_resumed): Remove code handling a live inferior with no
5829 threads.
5830 * remote.c (has_single_non_exited_thread): New.
5831 (remote_target::update_thread_list): Do not delete a thread if is
5832 the last thread of the process.
5833 * thread.c (thread_select): Call delete_exited_threads instead of
5834 prune_threads.
5835
5836 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5837
5838 * infrun.c (stop_all_threads): Enable/disable thread events of all
5839 targets. Move a debug message denoting the end of the function
5840 into the SCOPED_EXIT block.
5841
5842 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5843
5844 * process-stratum-target.h: Include <set>.
5845 (all_non_exited_process_targets, switch_to_target_no_thread): New
5846 function declarations.
5847 * process-stratum-target.c (all_non_exited_process_targets)
5848 (switch_to_target_no_thread): New function implementations.
5849
5850 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5851
5852 * infrun.c (handle_inferior_event): Extract out a piece of code
5853 into...
5854 (mark_non_executing_threads): ...this new function.
5855
5856 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5857
5858 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5859 use.
5860
5861 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5862
5863 * regcache.c (regcache_read_pc_protected): New function
5864 implementation that returns 0 if the PC cannot read via
5865 'regcache_read_pc'.
5866 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5867 instead of 'regcache_read_pc'.
5868 (keep_going_pass_signal): Ditto.
5869
5870 2020-05-13 Tom Tromey <tromey@adacore.com>
5871
5872 * ada-lang.c (align_value): Remove.
5873 (ada_template_to_fixed_record_type_1): Use align_up.
5874
5875 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5876
5877 * async-event.c: Update the copyright year.
5878 * async-event.h: Update the copyright year.
5879
5880 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5881
5882 * objfiles.h (is_addr_in_objfile,
5883 shared_objfile_contains_address_p): Return bool.
5884 * objfile.c (is_addr_in_objfile,
5885 shared_objfile_contains_address_p): Return bool.
5886
5887 2020-05-11 Tom Tromey <tromey@adacore.com>
5888
5889 * cli/cli-cmds.c (info_command): Restore.
5890 (_initialize_cli_cmds): Use add_prefix_command for "info".
5891 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5892
5893 2020-05-11 Tom Tromey <tromey@adacore.com>
5894
5895 * ada-lang.c (ada_value_primitive_field): Now public.
5896 * ada-lang.h (ada_value_primitive_field): Declare.
5897 * ada-valprint.c (print_field_values): Use
5898 ada_value_primitive_field for wrapper fields.
5899
5900 2020-05-11 Tom de Vries <tdevries@suse.de>
5901
5902 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5903 MODULE_DOMAIN.
5904
5905 2020-05-11 Tom de Vries <tdevries@suse.de>
5906
5907 PR symtab/25941
5908 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5909 with length 0, if not gdb-produced.
5910 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5911
5912 2020-05-09 Tom de Vries <tdevries@suse.de>
5913
5914 PR gdb/25955
5915 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5916 calculation.
5917
5918 2020-05-09 Tom Tromey <tom@tromey.com>
5919
5920 * top.c (server_command): Now bool.
5921 * top.h (server_command): Now bool.
5922
5923 2020-05-08 Tom Tromey <tromey@adacore.com>
5924
5925 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5926 already being processed.
5927
5928 2020-05-08 Tom Tromey <tom@tromey.com>
5929
5930 * printcmd.c (struct display) <next>: Remove.
5931 <display>: New constructor.
5932 <exp_string>: Now a std::string.
5933 <enabled_p>: Now a bool.
5934 (display_number): Move definition earlier.
5935 (displays): Rename from display_chain. Now a std::vector.
5936 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5937 (display_command): Update.
5938 (do_one_display, disable_display)
5939 (enable_disable_display_command, do_enable_disable_display):
5940 Update.
5941 (free_display): Remove.
5942 (clear_displays): Rewrite.
5943 (delete_display): Update.
5944 (map_display_numbers): Use function_view. Remove "data"
5945 parameter. Update.
5946 (do_delete_display): Remove.
5947 (undisplay_command): Update.
5948 (do_one_display, do_displays, disable_display)
5949 (info_display_command): Update.
5950 (do_enable_disable_display): Remove.
5951 (enable_disable_display_command)
5952 (clear_dangling_display_expressions): Update.
5953
5954 2020-05-08 Tom Tromey <tom@tromey.com>
5955
5956 * symtab.c (set_symbol_cache_size)
5957 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5958 (maintenance_print_symbol_cache_statistics): Update.
5959 * symmisc.c (print_symbol_bcache_statistics)
5960 (print_objfile_statistics, maintenance_print_objfiles)
5961 (maintenance_info_symtabs, maintenance_check_symtabs)
5962 (maintenance_expand_symtabs, maintenance_info_line_tables):
5963 Update.
5964 * symfile-debug.c (set_debug_symfile): Update.
5965 * source.c (forget_cached_source_info): Update.
5966 * python/python.c (gdbpy_progspaces): Update.
5967 * psymtab.c (maintenance_info_psymtabs): Update.
5968 * probe.c (parse_probes): Update.
5969 * linespec.c (iterate_over_all_matching_symtabs)
5970 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5971 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5972 * exec.c (exec_target::close): Update.
5973 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5974 * breakpoint.c (print_one_breakpoint_location)
5975 (create_longjmp_master_breakpoint)
5976 (create_std_terminate_master_breakpoint): Update.
5977 * progspace.c (program_spaces): Now a std::vector.
5978 (maybe_new_address_space): Update.
5979 (add_program_space): Remove.
5980 (program_space::program_space): Update.
5981 (remove_program_space): Update.
5982 (number_of_program_spaces): Remove.
5983 (print_program_space, update_address_spaces): Update.
5984 * progspace.h (program_spaces): Change type.
5985 (ALL_PSPACES): Remove.
5986 (number_of_program_spaces): Don't declare.
5987 (struct program_space) <next>: Remove.
5988
5989 2020-05-08 Tom Tromey <tom@tromey.com>
5990
5991 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5992 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5993 (enable_break): Update.
5994 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5995 (frv_fdpic_find_canonical_descriptor): Update.
5996 (frv_fetch_objfile_link_map): Update.
5997 * progspace.c (program_space::free_all_objfiles): Update.
5998 (program_space::solibs): New method.
5999 * progspace.h (struct program_space) <solibs>: New method.
6000 * solist.h (master_so_list): Don't declare.
6001 (ALL_SO_LIBS): Remove.
6002 * solib.h (so_list_head): Remove.
6003 (update_solib_list): Update comment.
6004 * solib.c (master_so_list): Remove.
6005 (solib_used, update_solib_list, solib_add)
6006 (info_sharedlibrary_command, clear_solib)
6007 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6008
6009 2020-05-08 Tom Tromey <tom@tromey.com>
6010
6011 * extension.c (extension_languages): Now a std::array.
6012 (ALL_EXTENSION_LANGUAGES): Remove.
6013 (get_ext_lang_defn, get_ext_lang_of_file)
6014 (eval_ext_lang_from_control_command): Update.
6015 (finish_ext_lang_initialization)
6016 (auto_load_ext_lang_scripts_for_objfile)
6017 (ext_lang_type_printers::ext_lang_type_printers)
6018 (apply_ext_lang_type_printers)
6019 (ext_lang_type_printers::~ext_lang_type_printers)
6020 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6021 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6022 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6023 (get_matching_xmethod_workers, ext_lang_colorize)
6024 (ext_lang_before_prompt): Update.
6025 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6026
6027 2020-05-08 Tom Tromey <tom@tromey.com>
6028
6029 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6030 overload.
6031 <swap_string, m_string>: Remove.
6032 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6033 Update.
6034 * stabsread.c (define_symbol, read_type): Update.
6035 * linespec.c (find_linespec_symbols): Update.
6036 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6037 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6038 * dbxread.c (read_dbx_symtab): Update.
6039 * cp-support.h (cp_canonicalize_string_full)
6040 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6041 Return unique_xmalloc_ptr.
6042 * cp-support.c (inspect_type): Update.
6043 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6044 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6045 Likewise.
6046 * c-typeprint.c (print_name_maybe_canonical): Update.
6047 * break-catch-throw.c (check_status_exception_catchpoint):
6048 Update.
6049
6050 2020-05-08 Tom de Vries <tdevries@suse.de>
6051
6052 * infrun.c (follow_fork): Copy current_line and current_symtab to
6053 child thread.
6054
6055 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6056
6057 * async-event.c (struct async_signal_handler, struct
6058 async_event_handler): Reformat, remove typedef.
6059
6060 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6061
6062 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6063 access thistype->main_type->dyn_prop_list directly.
6064
6065 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6066
6067 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6068 (remove_dyn_prop): Remove. Update all users to use
6069 type::remove_dyn_prop.
6070 * gdbtypes.c (remove_dyn_prop): Rename to...
6071 (type::remove_dyn_prop): ... this.
6072
6073 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6074
6075 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6076 (add_dyn_prop): Remove. Update all users to use
6077 type::add_dyn_prop.
6078 * gdbtypes.c (add_dyn_prop): Rename to...
6079 (type::add_dyn_prop): ... this.
6080
6081 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6082
6083 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6084 (get_dyn_prop): Remove. Update all users to use
6085 type::dyn_prop.
6086 * gdbtypes.c (get_dyn_prop): Rename to...
6087 (type::dyn_prop): ... this.
6088
6089 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6090
6091 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6092
6093 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6094
6095 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6096 instruction, skip it if it's there.
6097
6098 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6099
6100 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6101
6102 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6103
6104 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6105 * gdbtypes.c (recursive_dump_type): Remove use of
6106 TYPE_INCOMPLETE.
6107
6108 2020-05-03 Tom Tromey <tom@tromey.com>
6109
6110 * breakpoint.c (catch_command, tcatch_command): Remove.
6111 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6112 add_show_prefix_cmd.
6113 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6114 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6115 Remove.
6116 (add_internal_problem_command): Use add_basic_prefix_cmd,
6117 add_show_prefix_cmd.
6118 * mips-tdep.c (set_mipsfpu_command): Remove.
6119 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6120 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6121 (_initialize_index_cache): Use add_basic_prefix_cmd.
6122 * memattr.c (dummy_cmd): Remove.
6123 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6124 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6125 (_initialize_tui_win): Use add_basic_prefix_cmd,
6126 add_show_prefix_cmd.
6127 * cli/cli-logging.c (set_logging_command): Remove.
6128 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6129 add_show_prefix_cmd.
6130 (show_logging_command): Remove.
6131 * target.c (target_command): Remove.
6132 (add_target): Use add_basic_prefix_cmd.
6133
6134 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6135
6136 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6137
6138 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6139
6140 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6141 info_command.
6142
6143 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6144
6145 * nbsd-nat.c (nbsd_enable_proc_events)
6146 (nbsd_nat_target::post_startup_inferior): Add.
6147 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6148 (nbsd_nat_target::update_thread_list): Rewrite.
6149 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6150 "PTRACE_LWP_CREATE".
6151 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6152
6153 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6154
6155 * stack.c (_initialize_stack): Remove duplicated creation
6156 of "frame" command and "f" alias.
6157
6158 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6159
6160 PR gdb/18706
6161 * gdbtypes.c (check_typedef): Calculate size of array of
6162 stubbed type.
6163
6164 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6165
6166 PR gdb/15559
6167 * i386-tdep.c (i386_push_dummy_call): Call
6168 i386_thiscall_push_dummy_call.
6169 (i386_thiscall_push_dummy_call): New function.
6170 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6171 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6172 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6173
6174 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6175
6176 * gdbarch.sh (do_read): Add shellcheck disable directive for
6177 warning SC2162.
6178
6179 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6180
6181 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6182 "referenced but not assigned" warning.
6183
6184 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6185
6186 * gdbarch.sh: Remove code that sets fallbackdefault.
6187
6188 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6189
6190 * gdbarch.sh: Use shell operators && and || instead of
6191 -a and -o.
6192
6193 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6194
6195 * gdbarch.sh: Use $(...) instead of `...`.
6196
6197 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6198
6199 * gdbarch.sh: Use double quotes around variables.
6200
6201 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6202
6203 * gdbarch.sh: Use %s with printf, instead of variables in the
6204 format string.
6205
6206 2020-04-29 Tom Tromey <tromey@adacore.com>
6207
6208 PR ada/25875:
6209 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6210 type fields here.
6211 (read_enumeration_type): Call
6212 update_enumeration_type_from_children later. Update comments.
6213 (process_enumeration_scope): Don't create type fields.
6214
6215 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6216
6217 * nbsd-tdep.c: Include "xml-syscall.h".
6218 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6219
6220 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6221
6222 * nbsd-nat.c: Include "sys/wait.h".
6223 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6224 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6225 (nbsd_nat_target::remove_exec_catchpoint)
6226 (nbsd_nat_target::set_syscall_catchpoint): Add.
6227 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6228 (nbsd_nat_target::insert_exec_catchpoint)
6229 (nbsd_nat_target::remove_exec_catchpoint)
6230 (nbsd_nat_target::set_syscall_catchpoint): Add.
6231 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6232 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6233 `nbsd_get_syscall_number'.
6234
6235 2020-04-29 Tom Tromey <tom@tromey.com>
6236
6237 * stack.c (print_block_frame_labels): Remove.
6238
6239 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6240
6241 PR gdb/17320
6242 * ada-valprint.c (val_print_packed_array_elements): Move array
6243 end bracket to new line.
6244 (ada_val_print_string): Remove extra spaces before first array
6245 element.
6246 * c-valprint.c (c_value_print_array): Likewise.
6247 * m2-valprint.c (m2_print_array_contents): Likewise.
6248 (m2_value_print_inner): Likewise.
6249 * p-valprint.c (pascal_value_print_inner): Likewise.
6250 * valprint.c (generic_val_print_array): Likewise.
6251 (value_print_array_elements): Move first array element and array
6252 end bracket to new line.
6253
6254 2020-04-29 Tom de Vries <tdevries@suse.de>
6255
6256 PR symtab/25889
6257 * linespec.c (find_method): Fix ix calculation.
6258
6259 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6260
6261 * syscalls/update-netbsd.sh: New file.
6262 * syscalls/netbsd.xml: Regenerate.
6263 * data-directory/Makefile.in: Register `netbsd.xml' in
6264 `SYSCALLS_FILES'.
6265
6266 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6267
6268 * syscalls/update-freebsd.sh: Add double quotes.
6269
6270 2020-04-28 Tom Tromey <tom@tromey.com>
6271
6272 * NEWS: Update.
6273 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6274 (cmdpy_init): Allow class_tui.
6275
6276 2020-04-28 Mark Williams <mark@myosotissp.com>
6277
6278 PR gdb/24480
6279 * dwarf2read.c: Add missing assingments to list_in_scope when
6280 start_symtab was already called.
6281
6282 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6283
6284 PR gdb/25881
6285 * dwarf2/read.c (offset_map_type): Use
6286 gdb:hash_enum<sect_offset> as hash function.
6287
6288 2020-04-28 Tom de Vries <tdevries@suse.de>
6289
6290 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6291 with DW_AT_signature.
6292
6293 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6294
6295 * configure.ac: Remove check for fs_base/gs_base in
6296 user_regs_struct.
6297 * configure: Re-generate.
6298 * config.in: Re-generate.
6299 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6300 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6301 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6302
6303 2020-04-27 Luis Machado <luis.machado@linaro.org>
6304
6305 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6306 problematic inline frame unwinding situation.
6307 * frame.c (frame_id_computed_p): New function.
6308 * frame.h (frame_id_computed_p): New prototype.
6309
6310 2020-04-26 Tom Tromey <tom@tromey.com>
6311
6312 * command.h (enum command_class) <class_pseudo>: Remove.
6313
6314 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6315
6316 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6317 and whitespace.
6318
6319 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6320
6321 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6322 `PT_GET_PROCESS_STATE' block.
6323
6324 2020-04-24 Tom Tromey <tom@tromey.com>
6325
6326 * symtab.h (symbol_get_demangled_name): Don't declare.
6327 * symtab.c (symbol_get_demangled_name): Remove.
6328 (general_symbol_info::natural_name)
6329 (general_symbol_info::demangled_name): Update.
6330
6331 2020-04-24 Tom Tromey <tom@tromey.com>
6332
6333 PR rust/25025:
6334 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6335
6336 2020-04-24 Tom Tromey <tom@tromey.com>
6337
6338 PR symtab/12707:
6339 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6340 exists.
6341 (new_symbol): Likewise.
6342 * compile/compile-object-load.c (get_out_value_type): Use
6343 symbol_matches_search_name.
6344
6345 2020-04-24 Tom Tromey <tom@tromey.com>
6346
6347 * dwarf2/read.c (add_partial_symbol): Do not call
6348 compute_and_set_names.
6349
6350 2020-04-24 Tom Tromey <tom@tromey.com>
6351
6352 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6353 overload.
6354
6355 2020-04-24 Tom Tromey <tom@tromey.com>
6356
6357 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6358 (add_psymbol_to_list): New overload. Make old overload call new
6359 one.
6360 * psympriv.h (add_psymbol_to_list): New overload.
6361
6362 2020-04-24 Tom Tromey <tom@tromey.com>
6363
6364 * dwarf2/read.c (partial_die_info::read) <case
6365 DW_AT_linkage_name>: Use value_as_string.
6366 (dwarf2_string_attr): Use value_as_string.
6367 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6368 method.
6369 * dwarf2/attribute.c (attribute::value_as_string): New method.
6370
6371 2020-04-24 Tom Tromey <tom@tromey.com>
6372
6373 * symtab.c (general_symbol_info::natural_name)
6374 (general_symbol_info::demangled_name): Check for language_rust.
6375
6376 2020-04-24 Tom Tromey <tom@tromey.com>
6377
6378 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6379 (dwarf2_physname): ... from here.
6380 (partial_die_info::read): Add Rust "{" hack.
6381
6382 2020-04-24 Tom Tromey <tom@tromey.com>
6383
6384 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6385 method.
6386 (symbol_set_demangled_name): Don't declare.
6387 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6388 symbol_set_demangled_name.
6389 (general_symbol_info::set_language)
6390 (general_symbol_info::compute_and_set_names): Update.
6391 * minsyms.c (minimal_symbol_reader::install): Update.
6392 * dwarf2/read.c (new_symbol): Update.
6393
6394 2020-04-24 Tom Tromey <tromey@adacore.com>
6395
6396 PR python/23662:
6397 * python/py-type.c (convert_field): Handle
6398 FIELD_LOC_KIND_DWARF_BLOCK.
6399 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6400 (typy_get_dynamic): Nw function.
6401 (type_object_getset): Add "dynamic".
6402 * NEWS: Add entry.
6403
6404 2020-04-24 Tom Tromey <tromey@adacore.com>
6405
6406 * ada-typeprint.c (print_choices, print_variant_part)
6407 (print_record_field_types_dynamic): New functions.
6408 (print_record_field_types): Use print_record_field_types_dynamic.
6409
6410 2020-04-24 Tom Tromey <tromey@adacore.com>
6411
6412 * dwarf2/read.c (handle_data_member_location): New overload.
6413 (dwarf2_add_field): Use it.
6414 (decode_locdesc): Add "computed" parameter. Update comment.
6415 * gdbtypes.c (is_dynamic_type_internal): Also look for
6416 FIELD_LOC_KIND_DWARF_BLOCK.
6417 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6418 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6419 virtual base classes.
6420 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6421 FIELD_LOC_KIND_DWARF_BLOCK.
6422
6423 2020-04-24 Tom Tromey <tromey@adacore.com>
6424
6425 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6426 * gdbtypes.c (is_dynamic_type_internal): Check
6427 TYPE_HAS_DYNAMIC_LENGTH.
6428 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6429 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6430 New macros.
6431 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6432 constant.
6433
6434 2020-04-24 Tom Tromey <tromey@adacore.com>
6435
6436 * dwarf2/read.c (struct variant_field): Rewrite.
6437 (struct variant_part_builder): New.
6438 (struct nextfield): Remove "variant" field. Add "offset".
6439 (struct field_info): Add "current_variant_part" and
6440 "variant_parts".
6441 (alloc_discriminant_info): Remove.
6442 (alloc_rust_variant): New function.
6443 (quirk_rust_enum): Update.
6444 (dwarf2_add_field): Set "offset" member. Don't handle
6445 DW_TAG_variant_part.
6446 (offset_map_type): New typedef.
6447 (convert_variant_range, create_one_variant)
6448 (create_one_variant_part, create_variant_parts)
6449 (add_variant_property): New functions.
6450 (dwarf2_attach_fields_to_type): Call add_variant_property.
6451 (read_structure_type): Don't handle DW_TAG_variant_part.
6452 (handle_variant_part, handle_variant): New functions.
6453 (handle_struct_member_die): Use them.
6454 (process_structure_scope): Don't handle variant parts.
6455 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6456 (struct discriminant_info): Remove.
6457 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6458 (struct main_type) <flag_discriminated_union>: Remove.
6459 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6460 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6461 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6462 Update.
6463 * valops.c (value_union_variant): Remove.
6464 * value.h (value_union_variant): Don't declare.
6465
6466 2020-04-24 Tom Tromey <tromey@adacore.com>
6467
6468 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6469 (ada_value_primitive_packed_val): Update.
6470 * ada-valprint.c (ada_value_print_1): Update.
6471 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6472 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6473 just an address. Use evaluate_for_locexpr_baton.
6474 (dwarf2_evaluate_property): Update.
6475 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6476 array_view.
6477 * findvar.c (default_read_var_value): Update.
6478 * gdbtypes.c (compute_variant_fields_inner)
6479 (resolve_dynamic_type_internal): Update.
6480 (resolve_dynamic_type): Change type of valaddr parameter.
6481 * gdbtypes.h (resolve_dynamic_type): Update.
6482 * valarith.c (value_subscripted_rvalue): Update.
6483 * value.c (value_from_contents_and_address): Update.
6484
6485 2020-04-24 Tom Tromey <tromey@adacore.com>
6486
6487 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6488 "push_initial_value" parameter.
6489 (dwarf2_evaluate_property): Likewise.
6490 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6491
6492 2020-04-24 Tom Tromey <tromey@adacore.com>
6493
6494 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6495 (variant::matches, compute_variant_fields_recurse)
6496 (compute_variant_fields_inner, compute_variant_fields): New
6497 functions.
6498 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6499 Use resolved_type after type is made.
6500 (operator==): Add new cases.
6501 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6502 (struct discriminant_range, struct variant, struct variant_part):
6503 New.
6504 (union dynamic_prop_data) <variant_parts, original_type>: New
6505 members.
6506 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6507 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6508 constants.
6509 * value.c (unpack_bits_as_long): Now public.
6510 * value.h (unpack_bits_as_long): Declare.
6511
6512 2020-04-24 Tom Tromey <tromey@adacore.com>
6513
6514 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6515 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6516
6517 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6518
6519 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6520
6521 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6522
6523 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6524 (remove_fork_catchpoint, post_startup_inferior)
6525 (post_attach): Move...
6526 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6527 (remove_fork_catchpoint, post_startup_inferior)
6528 (post_attach): ...here.
6529 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6530 (remove_fork_catchpoint, post_startup_inferior)
6531 (post_attach): Move...
6532 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6533 (remove_fork_catchpoint, post_startup_inferior)
6534 (post_attach): ...here.
6535
6536 2020-04-24 Tom Tromey <tromey@adacore.com>
6537
6538 * nat/windows-nat.h (struct windows_thread_info)
6539 <pc_adjusted>: New member.
6540 * windows-nat.c (windows_fetch_one_register): Check
6541 pc_adjusted.
6542 (windows_nat_target::get_windows_debug_event)
6543 (windows_nat_target::wait): Set pc_adjusted.
6544
6545 2020-04-24 Tom de Vries <tdevries@suse.de>
6546
6547 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6548 Run gdb-add-index inside temp dir.
6549
6550 2020-04-23 Tom Tromey <tromey@adacore.com>
6551
6552 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6553 in loop.
6554
6555 2020-04-23 Luis Machado <luis.machado@linaro.org>
6556
6557 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6558 get_frame_register instead of gdbarch_unwind_pc.
6559
6560 2020-04-23 Tom de Vries <tdevries@suse.de>
6561
6562 * symtab.c (lookup_global_symbol): Prefer def over decl.
6563
6564 2020-04-23 Tom de Vries <tdevries@suse.de>
6565
6566 PR symtab/25807
6567 * block.c (best_symbol, better_symbol): Promote to external.
6568 * block.h (best_symbol, better_symbol): Declare.
6569 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6570 decl.
6571
6572 2020-04-23 Tom Tromey <tromey@adacore.com>
6573
6574 PR ada/25837:
6575 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6576 "const char *", not a "const std::string &".
6577 <name_and_matcher::operator==>: Update.
6578 * unittests/lookup_name_info-selftests.c: Change type of
6579 "result".
6580
6581 2020-04-23 Tom Tromey <tom@tromey.com>
6582
6583 * inferior.h (iterate_over_inferiors): Don't declare.
6584 * inferior.c (iterate_over_inferiors): Remove.
6585 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6586 Remove.
6587 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6588 use iterate_over_inferiors.
6589 (darwin_resume_inferior_it)
6590 (struct resume_inferior_threads_param)
6591 (darwin_resume_inferior_threads_it): Remove.
6592 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6593
6594 2020-04-23 Tom de Vries <tdevries@suse.de>
6595
6596 * blockframe.c (find_pc_partial_function): Use
6597 find_pc_sect_compunit_symtab rather than
6598 objfile->sf->qf->find_pc_sect_compunit_symtab.
6599
6600 2020-04-22 Tom de Vries <tdevries@suse.de>
6601
6602 PR symtab/25764
6603 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6604 in psymtabs.
6605
6606 2020-04-22 Tom de Vries <tdevries@suse.de>
6607
6608 PR symtab/25801
6609 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6610 symtabs.
6611
6612 2020-04-22 Tom de Vries <tdevries@suse.de>
6613
6614 PR symtab/25700
6615 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6616 CU if already created.
6617
6618 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6619
6620 * infrun.c (displaced_step_fixup): Switch to the event_thread
6621 before calling displaced_step_restore, not after.
6622
6623 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6624
6625 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6626 its inferior is not recorded by us.
6627 (record_btrace_target_open): Replace call to
6628 all_non_exited_threads () with call to current_inferior
6629 ()->non_exited_threads ().
6630 (record_btrace_target::stop_recording): Likewise.
6631 (record_btrace_target::close): Likewise.
6632 (record_btrace_target::wait): Likewise.
6633 (record_btrace_target::record_stop_replaying): Likewise.
6634
6635 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6636
6637 * btrace.c (btrace_enable): Throw an error on double enables and
6638 when enabling recording fails.
6639 (btrace_disable): Throw an error if the thread is not recorded.
6640
6641 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6642
6643 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6644 request if we do not have a thread_info.
6645
6646 2020-04-21 Tom de Vries <tdevries@suse.de>
6647
6648 PR gdb/25471
6649 * thread.c
6650 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6651 exception in get_frame_id.
6652
6653 2020-04-20 Tom Tromey <tromey@adacore.com>
6654
6655 * python/python.c (struct gdbpy_event): Mark move constructor as
6656 noexcept.
6657 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6658 constructor as noexcept.
6659 * completer.h (struct completion_result): Mark move constructor as
6660 noexcept.
6661 * completer.c (completion_result::completion_result): Use
6662 initialization style. Don't call reset_match_list.
6663
6664 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6665
6666 * MAINTAINERS (Write After Approval): Add myself.
6667
6668 2020-04-18 Tom Tromey <tom@tromey.com>
6669
6670 * windows-tdep.c (init_w32_command_list)
6671 (w32_prefix_command_valid): Restore.
6672 (_initialize_windows_tdep): Call init_w32_command_list.
6673
6674 2020-04-18 Tom Tromey <tom@tromey.com>
6675
6676 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6677 * value.c (value_fn_field): Update.
6678 * valops.c (find_function_in_inferior)
6679 (value_allocate_space_in_inferior): Update.
6680 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6681 Update.
6682 * tui/tui-source.c (tui_source_window::set_contents): Update.
6683 * symtab.c (lookup_global_or_static_symbol)
6684 (find_function_start_sal_1, skip_prologue_sal)
6685 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6686 * symmisc.c (dump_msymbols, dump_symtab_1)
6687 (maintenance_print_one_line_table): Update.
6688 * symfile.c (init_entry_point_info, section_is_mapped)
6689 (list_overlays_command, simple_read_overlay_table)
6690 (simple_overlay_update_1): Update.
6691 * stap-probe.c (handle_stap_probe): Update.
6692 * stabsread.c (dbx_init_float_type, define_symbol)
6693 (read_one_struct_field, read_enum_type, read_range_type): Update.
6694 * source.c (info_line_command): Update.
6695 * python/python.c (gdbpy_source_objfile_script)
6696 (gdbpy_execute_objfile_script): Update.
6697 * python/py-type.c (save_objfile_types): Update.
6698 * python/py-objfile.c (py_free_objfile): Update.
6699 * python/py-inferior.c (python_new_objfile): Update.
6700 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6701 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6702 (maintenance_check_psymtabs): Update.
6703 * printcmd.c (info_address_command): Update.
6704 * objfiles.h (struct objfile) <arch>: New method, from
6705 get_objfile_arch.
6706 (get_objfile_arch): Don't declare.
6707 * objfiles.c (get_objfile_arch): Remove.
6708 (filter_overlapping_sections): Update.
6709 * minsyms.c (msymbol_is_function): Update.
6710 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6711 (output_nondebug_symbol): Update.
6712 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6713 (mdebug_expand_psymtab): Update.
6714 * machoread.c (macho_add_oso_symfile): Update.
6715 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6716 Update.
6717 * linux-fork.c (checkpoint_command): Update.
6718 * linespec.c (convert_linespec_to_sals): Update.
6719 * jit.c (finalize_symtab): Update.
6720 * infrun.c (insert_exception_resume_from_probe): Update.
6721 * ia64-tdep.c (ia64_find_unwind_table): Update.
6722 * hppa-tdep.c (internalize_unwinds): Update.
6723 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6724 Update.
6725 * gcore.c (call_target_sbrk): Update.
6726 * elfread.c (record_minimal_symbol, elf_symtab_read)
6727 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6728 (elf_gnu_ifunc_resolve_by_got): Update.
6729 * dwarf2/read.c (create_addrmap_from_index)
6730 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6731 (read_debug_names_from_section)
6732 (process_psymtab_comp_unit_reader, add_partial_symbol)
6733 (add_partial_subprogram, process_full_comp_unit)
6734 (read_file_scope, read_func_scope, read_lexical_block_scope)
6735 (read_call_site_scope, dwarf2_ranges_read)
6736 (dwarf2_record_block_ranges, dwarf2_add_field)
6737 (mark_common_block_symbol_computed, read_tag_pointer_type)
6738 (read_tag_string_type, dwarf2_init_float_type)
6739 (dwarf2_init_complex_target_type, read_base_type)
6740 (partial_die_info::read, partial_die_info::read)
6741 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6742 (dwarf2_fetch_die_loc_sect_off): Update.
6743 * dwarf2/loc.c (dwarf2_find_location_expression)
6744 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6745 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6746 (dwarf2_loc_desc_get_symbol_read_needs)
6747 (locexpr_describe_location_piece, locexpr_describe_location_1)
6748 (loclist_describe_location): Update.
6749 * dwarf2/index-write.c (write_debug_names): Update.
6750 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6751 * dtrace-probe.c (dtrace_process_dof): Update.
6752 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6753 (process_one_symbol): Update.
6754 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6755 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6756 (coff_read_enum_type): Update.
6757 * cli/cli-cmds.c (edit_command, list_command): Update.
6758 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6759 * breakpoint.c (create_overlay_event_breakpoint)
6760 (create_longjmp_master_breakpoint)
6761 (create_std_terminate_master_breakpoint)
6762 (create_exception_master_breakpoint, get_sal_arch): Update.
6763 * block.c (block_gdbarch): Update.
6764 * annotate.c (annotate_source_line): Update.
6765
6766 2020-04-17 Tom Tromey <tromey@adacore.com>
6767
6768 * auto-load.c (show_auto_load_cmd): Remove.
6769 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6770 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6771 (maintenance_print_arc_command): Remove.
6772 * tui/tui-win.c (tui_command): Remove.
6773 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6774 * tui/tui-layout.c (tui_layout_command): Remove.
6775 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6776 * python/python.c (user_set_python, user_show_python): Remove.
6777 (_initialize_python): Use add_basic_prefix_cmd,
6778 add_show_prefix_cmd.
6779 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6780 (install_gdb_commands): Use add_basic_prefix_cmd,
6781 add_show_prefix_cmd.
6782 (info_guile_command): Remove.
6783 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6784 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6785 add_show_prefix_cmd.
6786 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6787 Remove do_set and do_show parameters.
6788 * cli/cli-style.c (set_style, show_style): Remove.
6789 (_initialize_cli_style): Use add_basic_prefix_cmd,
6790 add_show_prefix_cmd.
6791 (cli_style_option::add_setshow_commands): Remove do_set and
6792 do_show parameters.
6793 (cli_style_option::add_setshow_commands): Use
6794 add_basic_prefix_cmd, add_show_prefix_cmd.
6795 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6796 (set_style_name): Remove.
6797 * cli/cli-dump.c (dump_command, append_command): Remove.
6798 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6799 (tekhex_dump_command, binary_dump_command)
6800 (binary_append_command): Remove.
6801 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6802 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6803 (init_w32_command_list): Remove; move into ...
6804 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6805 * valprint.c (set_print, show_print, set_print_raw)
6806 (show_print_raw): Remove.
6807 (_initialize_valprint): Use add_basic_prefix_cmd,
6808 add_show_prefix_cmd.
6809 * typeprint.c (set_print_type, show_print_type): Remove.
6810 (_initialize_typeprint): Use add_basic_prefix_cmd,
6811 add_show_prefix_cmd.
6812 * record.c (set_record_command, show_record_command): Remove.
6813 (_initialize_record): Use add_basic_prefix_cmd,
6814 add_show_prefix_cmd.
6815 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6816 add_show_prefix_cmd.
6817 (info_command, show_command, set_debug, show_debug): Remove.
6818 * top.h (set_history, show_history): Don't declare.
6819 * top.c (set_history, show_history): Remove.
6820 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6821 (unset_tdesc_cmd): Remove.
6822 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6823 add_show_prefix_cmd.
6824 * symtab.c (info_module_command): Remove.
6825 (_initialize_symtab): Use add_basic_prefix_cmd.
6826 * symfile.c (overlay_command): Remove.
6827 (_initialize_symfile): Use add_basic_prefix_cmd.
6828 * sparc64-tdep.c (info_adi_command): Remove.
6829 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6830 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6831 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6832 add_show_prefix_cmd.
6833 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6834 (_initialize_serial): Use add_basic_prefix_cmd,
6835 add_show_prefix_cmd.
6836 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6837 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6838 add_show_prefix_cmd.
6839 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6840 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6841 add_show_prefix_cmd.
6842 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6843 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6844 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6845 add_show_prefix_cmd.
6846 * remote.c (remote_command, set_remote_cmd): Remove.
6847 (_initialize_remote): Use add_basic_prefix_cmd.
6848 * record-full.c (set_record_full_command)
6849 (show_record_full_command): Remove.
6850 (_initialize_record_full): Use add_basic_prefix_cmd,
6851 add_show_prefix_cmd.
6852 * record-btrace.c (cmd_set_record_btrace)
6853 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6854 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6855 (cmd_show_record_btrace_pt): Remove.
6856 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6857 add_show_prefix_cmd.
6858 * ravenscar-thread.c (set_ravenscar_command)
6859 (show_ravenscar_command): Remove.
6860 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6861 add_show_prefix_cmd.
6862 * mips-tdep.c (show_mips_command, set_mips_command)
6863 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6864 add_show_prefix_cmd.
6865 * maint.c (maintenance_command, maintenance_info_command)
6866 (maintenance_check_command, maintenance_print_command)
6867 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6868 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6869 add_show_prefix_cmd.
6870 (show_per_command_cmd): Remove.
6871 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6872 Remove.
6873 (maintenance_show_test_settings_cmd): Remove.
6874 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6875 add_show_prefix_cmd.
6876 * maint-test-options.c (maintenance_test_options_command):
6877 Remove.
6878 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6879 * macrocmd.c (macro_command): Remove
6880 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6881 * language.c (set_check, show_check): Remove.
6882 (_initialize_language): Use add_basic_prefix_cmd,
6883 add_show_prefix_cmd.
6884 * infcmd.c (unset_command): Remove.
6885 (_initialize_infcmd): Use add_basic_prefix_cmd.
6886 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6887 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6888 add_show_prefix_cmd.
6889 * go32-nat.c (go32_info_dos_command): Remove.
6890 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6891 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6892 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6893 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6894 (_initialize_frame): Use add_basic_prefix_cmd,
6895 add_show_prefix_cmd.
6896 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6897 (_initialize_dcache): Use add_basic_prefix_cmd,
6898 add_show_prefix_cmd.
6899 * cp-support.c (maint_cplus_command): Remove.
6900 (_initialize_cp_support): Use add_basic_prefix_cmd.
6901 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6902 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6903 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6904 add_basic_prefix_cmd, add_show_prefix_cmd.
6905 * breakpoint.c (save_command): Remove.
6906 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6907 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6908 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6909 add_show_prefix_cmd.
6910 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6911 (set_ada_command, show_ada_command): Remove.
6912 (_initialize_ada_language): Use add_basic_prefix_cmd,
6913 add_show_prefix_cmd.
6914 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6915
6916 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6917
6918 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6919 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6920
6921 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6922
6923 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6924 warning messages.
6925
6926 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6927
6928 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6929 import table is not at beginning of .idata section.
6930
6931 2020-04-16 Pedro Alves <palves@redhat.com>
6932
6933 * inferior.c (delete_inferior): Use delete operator directly
6934 instead of delete_program_space.
6935 * progspace.c (add_program_space): New, factored out from
6936 program_space::program_space.
6937 (remove_program_space): New, factored out from
6938 delete_program_space.
6939 (program_space::program_space): Remove intro comment. Rewrite.
6940 (program_space::~program_space): Remove intro comment. Call
6941 remove_program_space.
6942 (delete_program_space): Delete.
6943 * progspace.h (program_space::program_space): Make explicit. Move
6944 intro comment here, adjusted.
6945 (program_space::~program_space): Move intro comment here,
6946 adjusted.
6947 (delete_program_space): Remove.
6948
6949 2020-04-16 Tom Tromey <tromey@adacore.com>
6950
6951 * windows-nat.c (windows_nat::handle_access_violation): New
6952 function.
6953 * nat/windows-nat.h (handle_access_violation): Declare.
6954 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6955 windows-nat.c. Call handle_access_violation.
6956
6957 2020-04-16 Tom de Vries <tdevries@suse.de>
6958
6959 PR symtab/25791
6960 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6961 CUs without psymtab.
6962
6963 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6964
6965 * python/python.c (do_start_initialization): Don't call
6966 PyEval_InitThreads for Python 3.9 and beyond.
6967
6968 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6969
6970 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6971 thread functions.
6972 (obsd_nat_target::wait): Likewise.
6973
6974 2020-04-15 Tom Tromey <tromey@adacore.com>
6975
6976 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6977 (DEBUG_EXCEPT): Use debug_printf.
6978
6979 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6980
6981 * completer.c (class completion_tracker::completion_hash_entry)
6982 <hash_name>: New member function.
6983 (completion_tracker::discard_completions): New callback to hash a
6984 completion_hash_entry, pass this to htab_create_alloc.
6985
6986 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6987
6988 * windows-nat.c (windows_make_so): Warn rather than stopping with
6989 an error if realpath() fails.
6990
6991 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6992
6993 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6994 (nbsd_nat_target::info_proc): Add do_status.
6995
6996 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6997 Tom de Vries <tdevries@suse.de>
6998
6999 PR symtab/25718
7000 * psympriv.h (struct partial_symtab::read_symtab)
7001 (struct partial_symtab::expand_psymtab)
7002 (struct partial_symtab::read_dependencies): Update comments.
7003 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7004 read_symtab for includer.
7005 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7006 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7007 (struct dwarf2_include_psymtab::m_readin): Remove.
7008 (struct dwarf2_include_psymtab::includer): New member function.
7009 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7010
7011 2020-04-14 Tom de Vries <tdevries@suse.de>
7012
7013 PR symtab/25720
7014 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7015 with NULL symbol_matcher and lookup_name.
7016 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7017 and lookup_name.
7018 * dwarf2/read.c (dw2_expand_symtabs_matching)
7019 (dw2_debug_names_expand_symtabs_matching): Same.
7020 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7021 Make lookup_name a pointer. Update comment.
7022 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7023 lookup_name being a pointer.
7024 * symfile.c (expand_symtabs_matching): Same.
7025 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7026 * linespec.c (iterate_over_all_matching_symtabs): Same.
7027
7028 2020-04-13 Tom Tromey <tom@tromey.com>
7029
7030 * run-on-main-thread.c: Update include.
7031 * unittests/main-thread-selftests.c: Update include.
7032 * tui/tui-win.c: Update include.
7033 * tui/tui-io.c: Update include.
7034 * tui/tui-interp.c: Update include.
7035 * tui/tui-hooks.c: Update include.
7036 * top.h: Update include.
7037 * top.c: Update include.
7038 * ser-base.c: Update include.
7039 * remote.c: Update include.
7040 * remote-notif.c: Update include.
7041 * remote-fileio.c: Update include.
7042 * record-full.c: Update include.
7043 * record-btrace.c: Update include.
7044 * python/python.c: Update include.
7045 * posix-hdep.c: Update include.
7046 * mingw-hdep.c: Update include.
7047 * mi/mi-main.c: Update include.
7048 * mi/mi-interp.c: Update include.
7049 * main.c: Update include.
7050 * linux-nat.c: Update include.
7051 * interps.c: Update include.
7052 * infrun.c: Update include.
7053 * inf-loop.c: Update include.
7054 * event-top.c: Update include.
7055 * event-loop.c: Move to ../gdbsupport/.
7056 * event-loop.h: Move to ../gdbsupport/.
7057 * async-event.h: Update include.
7058 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7059
7060 2020-04-13 Tom Tromey <tom@tromey.com>
7061
7062 * tui/tui-win.c: Include async-event.h.
7063 * remote.c: Include async-event.h.
7064 * remote-notif.c: Include async-event.h.
7065 * record-full.c: Include async-event.h.
7066 * record-btrace.c: Include async-event.h.
7067 * infrun.c: Include async-event.h.
7068 * event-top.c: Include async-event.h.
7069 * event-loop.h: Move some declarations to async-event.h.
7070 * event-loop.c: Don't include ser-event.h or top.h. Move some
7071 code to async-event.c.
7072 * async-event.h: New file.
7073 * async-event.c: New file.
7074 * Makefile.in (COMMON_SFILES): Add async-event.c.
7075 (HFILES_NO_SRCDIR): Add async-event.h.
7076
7077 2020-04-13 Tom Tromey <tom@tromey.com>
7078
7079 * utils.c (flush_streams): New function.
7080 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7081
7082 2020-04-13 Tom Tromey <tom@tromey.com>
7083
7084 * event-loop.c (handle_file_event): Use warning, not
7085 printf_unfiltered.
7086
7087 2020-04-13 Tom Tromey <tom@tromey.com>
7088
7089 * event-loop.c: Include <chrono>.
7090
7091 2020-04-13 Tom Tromey <tom@tromey.com>
7092
7093 * gdb_select.h: Move to ../gdbsupport/.
7094 * event-loop.c: Update include path.
7095 * top.c: Update include path.
7096 * ser-base.c: Update include path.
7097 * ui-file.c: Update include path.
7098 * ser-tcp.c: Update include path.
7099 * guile/scm-ports.c: Update include path.
7100 * posix-hdep.c: Update include path.
7101 * ser-unix.c: Update include path.
7102 * gdb_usleep.c: Update include path.
7103 * mingw-hdep.c: Update include path.
7104 * inflow.c: Update include path.
7105 * infrun.c: Update include path.
7106 * event-top.c: Update include path.
7107
7108 2020-04-13 Tom Tromey <tom@tromey.com>
7109
7110 * configure: Rebuild.
7111 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7112
7113 2020-04-13 Tom Tromey <tom@tromey.com>
7114
7115 * event-loop.h (start_event_loop): Don't declare.
7116 * event-loop.c (start_event_loop): Move...
7117 * main.c (start_event_loop): ...here. Now static.
7118
7119 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7120
7121 * MAINTAINERS: Update my email address.
7122
7123 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7124
7125 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7126 IP_ALL.
7127
7128 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7129
7130 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7131 (nbsd_nat_target::info_proc): Add do_cmdline.
7132
7133 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7134
7135 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7136 (nbsd_nat_target::info_proc): Add do_cwd.
7137
7138 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7139
7140 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7141
7142 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7143
7144 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7145 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7146 (nbsd_nat_target::info_proc): New functions.
7147 * nbsd-nat.c (kinfo_get_vmmap): New function.
7148 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7149 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7150 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7151 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7152 functions.
7153 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7154 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7155 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7156 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7157 (KINFO_VME_FLAG_GROWS_DOWN): New.
7158
7159 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7160
7161 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7162 bit shift.
7163
7164 2020-04-10 Tom Tromey <tromey@adacore.com>
7165
7166 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7167
7168 2020-04-10 Tom Tromey <tromey@adacore.com>
7169
7170 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7171 separate debug files.
7172
7173 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7174
7175 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7176 Move to...
7177 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7178 ... here.
7179 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7180 Check for STATUS_WX86_BREAKPOINT.
7181 (windows_nat_target::wait): Same.
7182
7183 2020-04-10 Tom de Vries <tdevries@suse.de>
7184
7185 PR cli/25808
7186 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7187
7188 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7189
7190 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7191 (Write After Approval): Remove Tom de Vries.
7192
7193 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7194
7195 revert partially:
7196 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7197
7198 * buildsym.c (record_line): Fix undefined behavior and preserve
7199 lines at eof.
7200
7201 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7202
7203 * auxv.h (svr4_auxv_parse): New.
7204 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7205 and generic_auxv_parse.
7206 (svr4_auxv_parse): Add.
7207 * obsd-tdep.c: Include "auxv.h".
7208 (obsd_auxv_parse): Remove.
7209 (obsd_init_abi): Remove comment.
7210 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7211 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7212 * nbsd-tdep.c: Include "auxv.h".
7213 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7214
7215 2020-04-08 Tom Tromey <tromey@adacore.com>
7216
7217 * nat/windows-nat.h (last_wait_event): Don't declare.
7218 (wait_for_debug_event): Update comment.
7219 * nat/windows-nat.c (last_wait_event): Now static.
7220
7221 2020-04-08 Tom Tromey <tromey@adacore.com>
7222
7223 * windows-nat.c (wait_for_debug_event): Move to
7224 nat/windows-nat.c.
7225 * nat/windows-nat.h (wait_for_debug_event): Declare.
7226 * nat/windows-nat.c (wait_for_debug_event): Move from
7227 windows-nat.c. No longer static.
7228
7229 2020-04-08 Tom Tromey <tromey@adacore.com>
7230
7231 * windows-nat.c (get_windows_debug_event): Use
7232 fetch_pending_stop.
7233 * nat/windows-nat.h (fetch_pending_stop): Declare.
7234 * nat/windows-nat.c (fetch_pending_stop): New function.
7235
7236 2020-04-08 Tom Tromey <tromey@adacore.com>
7237
7238 * windows-nat.c (windows_continue): Use matching_pending_stop and
7239 continue_last_debug_event.
7240 * nat/windows-nat.h (matching_pending_stop)
7241 (continue_last_debug_event): Declare.
7242 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7243 (matching_pending_stop, continue_last_debug_event): New
7244 functions.
7245
7246 2020-04-08 Tom Tromey <tromey@adacore.com>
7247
7248 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7249 (handle_exception_result): Move to nat/windows-nat.h.
7250 (DEBUG_EXCEPTION_SIMPLE): Remove.
7251 (windows_nat::handle_ms_vc_exception): New function.
7252 (handle_exception): Move to nat/windows-nat.c.
7253 (get_windows_debug_event): Update.
7254 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7255 nat/windows-nat.c.
7256 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7257 (handle_exception_result): Move from windows-nat.c.
7258 (handle_exception): Declare.
7259 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7260 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7261 windows-nat.c.
7262
7263 2020-04-08 Tom Tromey <tromey@adacore.com>
7264
7265 * windows-nat.c (exception_count, event_count): Remove.
7266 (handle_exception, get_windows_debug_event)
7267 (do_initial_windows_stuff): Update.
7268
7269 2020-04-08 Tom Tromey <tromey@adacore.com>
7270
7271 * windows-nat.c (windows_nat::handle_load_dll)
7272 (windows_nat::handle_unload_dll): Rename. No longer static.
7273 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7274 Declare.
7275
7276 2020-04-08 Tom Tromey <tromey@adacore.com>
7277
7278 * complaints.h (stop_whining): Declare at top-level.
7279 (complaint): Don't declare stop_whining.
7280
7281 2020-04-08 Tom Tromey <tromey@adacore.com>
7282
7283 * windows-nat.c (windows_nat::handle_output_debug_string):
7284 Rename. No longer static.
7285 * nat/windows-nat.h (handle_output_debug_string): Declare.
7286
7287 2020-04-08 Tom Tromey <tromey@adacore.com>
7288
7289 * windows-nat.c (current_process_handle, current_process_id)
7290 (main_thread_id, last_sig, current_event, last_wait_event)
7291 (current_windows_thread, desired_stop_thread_id, pending_stops)
7292 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7293 (display_selectors, fake_create_process)
7294 (get_windows_debug_event): Update.
7295 * nat/windows-nat.h (current_process_handle, current_process_id)
7296 (main_thread_id, last_sig, current_event, last_wait_event)
7297 (current_windows_thread, desired_stop_thread_id, pending_stops)
7298 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7299 * nat/windows-nat.c (current_process_handle, current_process_id)
7300 (main_thread_id, last_sig, current_event, last_wait_event)
7301 (current_windows_thread, desired_stop_thread_id, pending_stops)
7302 (siginfo_er): New globals. Move from windows-nat.c.
7303
7304 2020-04-08 Tom Tromey <tromey@adacore.com>
7305
7306 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7307 (handle_load_dll): Update.
7308 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7309
7310 2020-04-08 Tom Tromey <tromey@adacore.com>
7311
7312 * windows-nat.c (enum thread_disposition_type): Move to
7313 nat/windows-nat.h.
7314 (windows_nat::thread_rec): Rename from thread_rec. No longer
7315 static.
7316 (windows_add_thread, windows_nat_target::fetch_registers)
7317 (windows_nat_target::store_registers, handle_exception)
7318 (windows_nat_target::resume, get_windows_debug_event)
7319 (windows_nat_target::get_tib_address)
7320 (windows_nat_target::thread_name)
7321 (windows_nat_target::thread_alive): Update.
7322 * nat/windows-nat.h (enum thread_disposition_type): Move from
7323 windows-nat.c.
7324 (thread_rec): Declare.
7325
7326 2020-04-08 Tom Tromey <tromey@adacore.com>
7327
7328 * windows-nat.c: Add "using namespace".
7329 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7330 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7331
7332 2020-04-08 Tom Tromey <tromey@adacore.com>
7333
7334 * nat/windows-nat.h (struct windows_thread_info): Declare
7335 destructor.
7336 * nat/windows-nat.c (~windows_thread_info): New.
7337
7338 2020-04-08 Tom Tromey <tromey@adacore.com>
7339
7340 PR gdb/22992
7341 * windows-nat.c (current_event): Update comment.
7342 (last_wait_event, desired_stop_thread_id): New globals.
7343 (struct pending_stop): New.
7344 (pending_stops): New global.
7345 (windows_nat_target) <stopped_by_sw_breakpoint>
7346 <supports_stopped_by_sw_breakpoint>: New methods.
7347 (windows_fetch_one_register): Add assertions. Adjust PC.
7348 (windows_continue): Handle pending stops. Suspend other threads
7349 when stepping. Use last_wait_event
7350 (wait_for_debug_event): New function.
7351 (get_windows_debug_event): Use wait_for_debug_event. Handle
7352 pending stops. Queue spurious stops.
7353 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7354 (windows_nat_target::kill): Use wait_for_debug_event.
7355 * nat/windows-nat.h (struct windows_thread_info)
7356 <stopped_at_software_breakpoint>: New field.
7357 * nat/windows-nat.c (windows_thread_info::resume): Clear
7358 stopped_at_software_breakpoint.
7359
7360 2020-04-08 Tom Tromey <tromey@adacore.com>
7361
7362 * windows-nat.c (enum thread_disposition_type): New.
7363 (thread_rec): Replace "get_context" parameter with "disposition";
7364 change type.
7365 (windows_add_thread, windows_nat_target::fetch_registers)
7366 (windows_nat_target::store_registers, handle_exception)
7367 (windows_nat_target::resume, get_windows_debug_event)
7368 (windows_nat_target::get_tib_address)
7369 (windows_nat_target::thread_name)
7370 (windows_nat_target::thread_alive): Update.
7371
7372 2020-04-08 Tom Tromey <tromey@adacore.com>
7373
7374 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7375 (windows_continue): Use windows_continue::resume.
7376 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7377 resume>: Declare new methods.
7378 * nat/windows-nat.c: New file.
7379 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7380
7381 2020-04-08 Tom Tromey <tromey@adacore.com>
7382
7383 * windows-nat.c (windows_add_thread, windows_delete_thread)
7384 (windows_nat_target::fetch_registers)
7385 (windows_nat_target::store_registers, fake_create_process)
7386 (windows_nat_target::resume, windows_nat_target::resume)
7387 (get_windows_debug_event, windows_nat_target::wait)
7388 (windows_nat_target::pid_to_str)
7389 (windows_nat_target::get_tib_address)
7390 (windows_nat_target::get_ada_task_ptid)
7391 (windows_nat_target::thread_name)
7392 (windows_nat_target::thread_alive): Use lwp, not tid.
7393
7394 2020-04-08 Tom Tromey <tromey@adacore.com>
7395
7396 * windows-nat.c (handle_exception)
7397 (windows_nat_target::thread_name): Update.
7398 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7399 <name>: Now unique_xmalloc_ptr.
7400
7401 2020-04-08 Tom Tromey <tromey@adacore.com>
7402
7403 * windows-nat.c (thread_rec)
7404 (windows_nat_target::fetch_registers): Update.
7405 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7406 Update comment.
7407 <debug_registers_changed, reload_context>: Now bool.
7408
7409 2020-04-08 Tom Tromey <tromey@adacore.com>
7410
7411 * windows-nat.c (windows_add_thread): Use new.
7412 (windows_init_thread_list, windows_delete_thread): Use delete.
7413 (get_windows_debug_event): Update.
7414 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7415 destructor, and initializers.
7416
7417 2020-04-08 Tom Tromey <tromey@adacore.com>
7418
7419 * windows-nat.c (struct windows_thread_info): Remove.
7420 * nat/windows-nat.h: New file.
7421
7422 2020-04-08 Tom Tromey <tromey@adacore.com>
7423
7424 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7425 (thread_rec, windows_add_thread, windows_delete_thread)
7426 (windows_continue): Update.
7427
7428 2020-04-08 Tom Tromey <tromey@adacore.com>
7429
7430 * windows-nat.c (struct windows_thread_info): Remove typedef.
7431 (thread_head): Remove.
7432 (thread_list): New global.
7433 (thread_rec, windows_add_thread, windows_init_thread_list)
7434 (windows_delete_thread, windows_continue): Update.
7435
7436 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7437
7438 * windows-tdep.h (windows_init_abi): Add comment.
7439 (cygwin_init_abi): New declaration.
7440 * windows-tdep.c: Split signal enumeration in two, one for
7441 Windows and one for Cygwin.
7442 (windows_gdb_signal_to_target): Only deal with signal of the
7443 Windows OS ABI.
7444 (cygwin_gdb_signal_to_target): New function.
7445 (windows_init_abi): Rename to windows_init_abi_common, don't set
7446 gdb_signal_to_target gdbarch method. Add new new function with
7447 this name.
7448 (cygwin_init_abi): New function.
7449 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7450 comment. Don't call windows_init_abi.
7451 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7452 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7453 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7454 i386_windows_init_abi_common, don't call windows_init_abi. Add
7455 a new function of this name.
7456 (i386_cygwin_init_abi): New function.
7457 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7458 OS ABI Cygwin.
7459
7460 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7461
7462 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7463 parameter.c.
7464 (dwarf2_read_gdb_index): Update.
7465
7466 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7467
7468 * nbsd-tdep.c: Include "objfiles.h".
7469 (nbsd_skip_solib_resolver): New.
7470 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7471
7472 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7473
7474 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7475 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7476 with DW_LLE_base_addressx are being emitted in DWARFv5.
7477 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7478 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7479 unsigned integer.
7480
7481 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7482
7483 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7484 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7485 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7486 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7487 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7488 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7489 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7490
7491
7492 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7493
7494 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7495 (read_loclist_index): New function definition.
7496 (lookup_loclist_base): New function definition.
7497 (read_loclist_header): New function definition.
7498 (dwarf2_cu): Add loclist_base and loclist_header field.
7499 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7500 (read_full_die_1): Read the value of DW_AT_loclists_base.
7501 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7502 (read_attribute_value): Handle DW_FORM_loclistx.
7503 (skip_one_die): Handle DW_FORM_loclistx.
7504 (loclist_header): New structure declaration.
7505 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7506
7507 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7508
7509 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7510 constructor. Remove `addr` parameter from other constructor and
7511 add `per_cu` parameter.
7512 * dwarf2/read.c (create_partial_symtab): Update.
7513
7514 2020-04-07 Tom de Vries <tdevries@suse.de>
7515
7516 PR symtab/25796
7517 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7518 (partial_die_info::fixup): Inherit has_const_value.
7519
7520 2020-04-07 Tom de Vries <tdevries@suse.de>
7521
7522 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7523 symbols without address.
7524
7525 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7526
7527 * nbsd-nat.h (struct thread_info): Add forward declaration.
7528 (nbsd_nat_target::thread_alive): Add.
7529 (nbsd_nat_target::thread_name): Likewise.
7530 (nbsd_nat_target::update_thread_list): Likewise.
7531 (update_thread_list::post_attach): Likewise.
7532 (post_attach::pid_to_str): Likewise.
7533 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7534 (nbsd_thread_lister): Add.
7535 (nbsd_nat_target::thread_alive): Likewise.
7536 (nbsd_nat_target::thread_name): Likewise.
7537 (nbsd_add_threads): Likewise.
7538 (update_thread_list::post_attach): Likewise.
7539 (nbsd_nat_target::update_thread_list): Likewise.
7540 (post_attach::pid_to_str): Likewise.
7541
7542 2020-04-06 Tom Tromey <tromey@adacore.com>
7543
7544 * ada-valprint.c (print_variant_part): Extract the variant field.
7545 (print_field_values): Use the field as the outer value when
7546 recursing.
7547
7548 2020-04-06 Tom Tromey <tromey@adacore.com>
7549
7550 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7551 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7552 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7553 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7554 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7555
7556 2020-04-06 Tom Tromey <tromey@adacore.com>
7557
7558 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7559 TYPE_CODE_ERROR.
7560
7561 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7562
7563 * nbsd-tdep.c: Include "gdbarch.h".
7564 Define enum with NetBSD signal numbers.
7565 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7566 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7567 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7568 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7569 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7570 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7571 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7572 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7573 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7574 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7575 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7576 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7577
7578 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7579
7580 PR gdb/25325
7581 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7582
7583 2020-04-03 Tom Tromey <tromey@adacore.com>
7584
7585 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7586 Read constant block.
7587
7588 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7589
7590 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7591 (gdb_bfd_get_full_section_contents): New declaration.
7592 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7593 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7594 gdb_bfd_get_full_section_contents.
7595
7596 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7597
7598 * exec.c (build_section_table): Replace internal_error with
7599 gdb_assert.
7600 (section_table_xfer_memory_partial): Likewise.
7601 * mdebugread.c (parse_partial_symbols): Likewise.
7602 * psymtab.c (lookup_partial_symbol): Likewise.
7603 * utils.c (wrap_here): Likewise.
7604
7605 2020-04-02 Tom Tromey <tromey@adacore.com>
7606
7607 * f-lang.c (build_fortran_types): Use arch_type to initialize
7608 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7609
7610 2020-04-02 Tom Tromey <tromey@adacore.com>
7611
7612 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7613 of attributes.
7614
7615 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7616 Bernd Edlinger <bernd.edlinger@hotmail.de>
7617 Tom Tromey <tromey@adacore.com>
7618
7619 * buildsym.c (buildsym_compunit::record_line): Remove
7620 deduplication code.
7621
7622 2020-04-02 Tom de Vries <tdevries@suse.de>
7623
7624 PR ada/24671
7625 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7626
7627 2020-04-02 Tom de Vries <tdevries@suse.de>
7628
7629 * dwarf2/read.c (dwarf2_gdb_index_functions,
7630 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7631 NULL.
7632 * psymtab.c (psym_lookup_global_symbol_language): New function.
7633 (psym_functions): Init psym_lookup_global_symbol_language with
7634 psym_lookup_global_symbol_language.
7635 * symfile-debug.c (debug_sym_quick_functions): Init
7636 lookup_global_symbol_language with NULL.
7637 * symfile.c (set_initial_language): Remove fixme comment.
7638 * symfile.h (struct quick_symbol_functions): Add
7639 lookup_global_symbol_language.
7640 * symtab.c (find_quick_global_symbol_language): New function.
7641 (find_main_name): Use find_quick_global_symbol_language.
7642
7643 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7644
7645 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7646
7647 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7648
7649 * buildsym.c (record_line): Fix undefined behavior and preserve
7650 lines at eof.
7651
7652 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7653
7654 * buildsym.c (record_line): Fix the resizing condition.
7655
7656 2020-04-01 Tom Tromey <tom@tromey.com>
7657
7658 * value.h (value_literal_complex): Add comment.
7659 * valops.c (value_literal_complex): Refer to value.h.
7660
7661 2020-04-01 Tom Tromey <tom@tromey.com>
7662
7663 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7664 (scalar_type): New rule, from typebase.
7665 (typebase): Use scalar_type. Recognize complex types.
7666 (field_name): Handle FLOAT_KEYWORD.
7667 (ident_tokens): Add _Complex and __complex__.
7668
7669 2020-04-01 Tom Tromey <tom@tromey.com>
7670
7671 PR exp/25299:
7672 * valarith.c (promotion_type, complex_binop): New functions.
7673 (scalar_binop): Handle complex numbers. Use promotion_type.
7674 (value_pos, value_neg, value_complement): Handle complex numbers.
7675
7676 2020-04-01 Tom Tromey <tom@tromey.com>
7677
7678 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7679 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7680 (parse_number): Handle complex numbers.
7681
7682 2020-04-01 Tom Tromey <tom@tromey.com>
7683
7684 * c-valprint.c (c_decorations): Change complex suffix to "i".
7685
7686 2020-04-01 Tom Tromey <tom@tromey.com>
7687
7688 * valprint.c (generic_value_print_complex): Use accessors.
7689 * value.h (value_real_part, value_imaginary_part): Declare.
7690 * valops.c (value_real_part, value_imaginary_part): New
7691 functions.
7692 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7693
7694 2020-04-01 Tom Tromey <tom@tromey.com>
7695
7696 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7697 (read_range_type): Update.
7698 * mdebugread.c (basic_type): Update.
7699 * go-lang.c (build_go_types): Use init_complex_type.
7700 * gdbtypes.h (struct main_type) <complex_type>: New member.
7701 (init_complex_type): Update.
7702 (arch_complex_type): Don't declare.
7703 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7704 Make name if none given. Use alloc_type_copy. Look for cached
7705 complex type.
7706 (arch_complex_type): Remove.
7707 (gdbtypes_post_init): Use init_complex_type.
7708 * f-lang.c (build_fortran_types): Use init_complex_type.
7709 * dwarf2/read.c (read_base_type): Update.
7710 * d-lang.c (build_d_types): Use init_complex_type.
7711 * ctfread.c (read_base_type): Update.
7712
7713 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7714
7715 * infrun.c (stop_all_threads): Update assertion, plus when
7716 stopping threads, take into account that we might be trying
7717 to stop an all-stop target.
7718 (stop_waiting): Call 'stop_all_threads' if there exists a
7719 non-stop target.
7720
7721 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7722
7723 * target.h (exists_non_stop_target): New function declaration.
7724 * target.c (exists_non_stop_target): New function.
7725
7726 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7727
7728 PR gdb/24789
7729 * eval.c (is_integral_or_integral_reference): New function.
7730 (evaluate_subexp_standard): Allow integer references in
7731 pointer arithmetic.
7732
7733 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7734
7735 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7736 check for no ptid in the stop reply when the target is non-stop.
7737
7738 2020-04-01 Tom Tromey <tromey@adacore.com>
7739
7740 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7741 "name" parameter to rvalue reference. Initialize m_name_holder.
7742 <lookup_name_info>: New overloads.
7743 <name>: Return gdb::string_view.
7744 <c_str>: New method.
7745 <make_ignore_params>: Update.
7746 <search_name_hash>: Update.
7747 <language_lookup_name>: Return const char *.
7748 <m_name>: Change type.
7749 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7750 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7751 (lookup_name_info::match_any): Update.
7752 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7753 Update.
7754 * minsyms.c (linkage_name_str): Update.
7755 * language.c (default_symbol_name_matcher): Update.
7756 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7757 Update.
7758 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7759 (ada_lookup_name_info::ada_lookup_name_info): Update.
7760 (literal_symbol_name_matcher): Update.
7761
7762 2020-04-01 Tom Tromey <tromey@adacore.com>
7763
7764 * psymtab.c (psymtab_search_name): Remove function.
7765 (psym_lookup_symbol): Create search name and lookup name here.
7766 (lookup_partial_symbol): Remove "name" parameter; add
7767 lookup_name.
7768 (psym_expand_symtabs_for_function): Update.
7769
7770 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7771
7772 PR tui/25597:
7773 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7774
7775 2020-03-31 Tom Tromey <tromey@adacore.com>
7776
7777 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7778 memcpy.
7779
7780 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7781
7782 * features/riscv/32bit-csr.xml: Regenerated.
7783 * features/riscv/64bit-csr.xml: Regenerated.
7784
7785 2020-03-30 Tom Tromey <tromey@adacore.com>
7786
7787 * ada-valprint.c (print_variant_part): Update.
7788 * ada-lang.h (ada_which_variant_applies): Update.
7789 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7790 outer_valaddr parameters; replace with "outer" value parameter.
7791 (to_fixed_variant_branch_type): Update.
7792
7793 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7794
7795 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7796 <list>. Remove inclusion of observable.h.
7797 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7798 (struct arch_lwp_info): New struct.
7799 (class ppc_linux_dreg_interface): New class.
7800 (struct ppc_linux_process_info): New struct.
7801 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7802 <low_new_clone, low_forget_process, low_prepare_to_resume>
7803 <copy_thread_dreg_state, mark_thread_stale>
7804 <mark_debug_registers_changed, register_hw_breakpoint>
7805 <clear_hw_breakpoint, register_wp, clear_wp>
7806 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7807 <num_memory_accesses, get_trigger_type>
7808 <create_watchpoint_request, hwdebug_point_cmp>
7809 <init_arch_lwp_info, get_arch_lwp_info>
7810 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7811 methods.
7812 <struct ptid_hash>: New inner struct.
7813 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7814 members.
7815 (saved_dabr_value, hwdebug_info, max_slots_number)
7816 (struct hw_break_tuple, struct thread_points, ppc_threads)
7817 (have_ptrace_hwdebug_interface)
7818 (hwdebug_find_thread_points_by_tid)
7819 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7820 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7821 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7822 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7823 use m_dreg_interface.
7824 (hwdebug_point_cmp): Change to...
7825 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7826 reference arguments instead of pointers.
7827 (ppc_linux_nat_target::ranged_break_num_registers): Use
7828 m_dreg_interface.
7829 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7830 m_dreg_interface. Call register_hw_breakpoint.
7831 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7832 m_dreg_interface. Call clear_hw_breakpoint.
7833 (get_trigger_type): Change to...
7834 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7835 comment.
7836 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7837 use m_dreg_interface. Call register_hw_breakpoint.
7838 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7839 use m_dreg_interface. Call clear_hw_breakpoint.
7840 (can_use_watchpoint_cond_accel): Change to...
7841 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7842 method. Update comment, use m_dreg_interface and
7843 m_process_info.
7844 (calculate_dvc): Change to...
7845 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7846 m_dreg_interface.
7847 (num_memory_accesses): Change to...
7848 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7849 (check_condition): Change to...
7850 (ppc_linux_nat_target::check_condition): ...this method.
7851 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7852 comment, use m_dreg_interface.
7853 (create_watchpoint_request): Change to...
7854 (ppc_linux_nat_target::create_watchpoint_request): ...this
7855 method. Use m_dreg_interface.
7856 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7857 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7858 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7859 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7860 (ppc_linux_nat_target::low_forget_process)
7861 (ppc_linux_nat_target::low_new_fork)
7862 (ppc_linux_nat_target::low_new_clone)
7863 (ppc_linux_nat_target::low_delete_thread)
7864 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7865 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7866 only call mark_thread_stale.
7867 (ppc_linux_thread_exit): Remove.
7868 (ppc_linux_nat_target::stopped_data_address): Change to...
7869 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7870 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7871 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7872 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7873 comment. Call low_stopped_data_address.
7874 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7875 m_dreg_interface.
7876 (ppc_linux_nat_target::masked_watch_num_registers): Use
7877 m_dreg_interface.
7878 (ppc_linux_nat_target::copy_thread_dreg_state)
7879 (ppc_linux_nat_target::mark_thread_stale)
7880 (ppc_linux_nat_target::mark_debug_registers_changed)
7881 (ppc_linux_nat_target::register_hw_breakpoint)
7882 (ppc_linux_nat_target::clear_hw_breakpoint)
7883 (ppc_linux_nat_target::register_wp)
7884 (ppc_linux_nat_target::clear_wp)
7885 (ppc_linux_nat_target::init_arch_lwp_info)
7886 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7887 (_initialize_ppc_linux_nat): Remove observer callback.
7888
7889 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7890
7891 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7892 (ppc_linux_nat_target::auxv_parse)
7893 (ppc_linux_nat_target::read_description)
7894 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7895 Move up.
7896
7897 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7898
7899 * linux-nat.h (low_new_clone): New method.
7900 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7901
7902 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7903
7904 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7905 (dbx_expand_psymtab): ... this.
7906 (start_psymtab): Update.
7907 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7908 (mdebug_expand_psymtab): ... this.
7909 (parse_partial_symbols): Update.
7910 (new_psymtab): Update.
7911 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7912 (xcoff_expand_psymtab): ... this.
7913 (xcoff_start_psymtab): Update.
7914
7915 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7916
7917 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7918 <expand_dependencies>: ... this.
7919 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7920 (partial_symtab::expand_dependencies): ... this.
7921 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7922 Update.
7923 (dwarf2_psymtab::expand_psymtab): Update.
7924 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7925 * mdebugread.c (psymtab_to_symtab_1): Update.
7926 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7927
7928 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7929
7930 * psympriv.h (discard_psymtab): Remove.
7931 * dbxread.c (dbx_end_psymtab): Update.
7932 * xcoffread.c (xcoff_end_psymtab): Update.
7933
7934 2020-03-28 Tom Tromey <tom@tromey.com>
7935
7936 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7937 comment.
7938
7939 2020-03-28 Tom Tromey <tom@tromey.com>
7940
7941 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7942
7943 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7944
7945 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7946
7947 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7948
7949 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7950
7951 2020-03-26 Tom Tromey <tom@tromey.com>
7952
7953 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7954 (mark_common_block_symbol_computed, read_tag_string_type)
7955 (attr_to_dynamic_prop, read_subrange_type): Update.
7956 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7957 to be methods on struct attribute.
7958 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7959 (read_call_site_scope, partial_die_info::read)
7960 (partial_die_info::read, lookup_die_type, follow_die_ref):
7961 Update.
7962 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7963 from dwarf2_get_ref_die_offset.
7964 (attribute::constant_value): New method, from
7965 dwarf2_get_attr_constant_value.
7966 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7967 Declare method.
7968 <constant_value>: New method.
7969
7970 2020-03-26 Tom Tromey <tom@tromey.com>
7971
7972 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7973 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7974 (dwarf_type_encoding_name): Move to stringify.c.
7975 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7976 * dwarf2/stringify.c: New file.
7977 * dwarf2/stringify.h: New file.
7978
7979 2020-03-26 Tom Tromey <tom@tromey.com>
7980
7981 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7982 Rewrite.
7983
7984 2020-03-26 Tom Tromey <tom@tromey.com>
7985
7986 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7987 methods.
7988 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7989 (lookup_ranges_base): Likewise.
7990 (read_cutu_die_from_dwo, read_full_die_1): Update.
7991
7992 2020-03-26 Tom Tromey <tom@tromey.com>
7993
7994 * dwarf2/read.c (read_import_statement, read_file_scope)
7995 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7996 (read_lexical_block_scope, read_call_site_scope)
7997 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7998 (handle_struct_member_die, process_structure_scope)
7999 (update_enumeration_type_from_children)
8000 (process_enumeration_scope, read_array_type, read_common_block)
8001 (read_namespace, read_module, read_subroutine_type): Update.
8002 (sibling_die): Remove.
8003
8004 2020-03-26 Tom Tromey <tom@tromey.com>
8005
8006 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8007 (build_type_psymtabs_reader, read_structure_type)
8008 (read_enumeration_type, read_full_die_1): Update.
8009 (dwarf2_attr_no_follow): Move to die.h.
8010 * dwarf2/die.h (struct die_info) <attr>: New method.
8011
8012 2020-03-26 Tom Tromey <tom@tromey.com>
8013
8014 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8015 <base_address>: Now an optional.
8016 (dwarf2_find_base_address, dwarf2_rnglists_process)
8017 (dwarf2_ranges_process, fill_in_loclist_baton)
8018 (dwarf2_symbol_mark_computed): Update.
8019
8020 2020-03-26 Tom Tromey <tom@tromey.com>
8021
8022 * dwarf2/read.c (struct die_info): Move to die.h.
8023 * dwarf2/die.h: New file.
8024
8025 2020-03-26 Tom Tromey <tom@tromey.com>
8026
8027 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8028 * dwarf2/read.c
8029 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8030 Move to line-header.c.
8031 (read_checked_initial_length_and_offset, read_formatted_entries):
8032 Likewise.
8033 (dwarf_decode_line_header): Split into two.
8034 * dwarf2/line-header.c
8035 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8036 Move from read.c.
8037 (read_checked_initial_length_and_offset, read_formatted_entries):
8038 Likewise.
8039 (dwarf_decode_line_header): New function, split from read.c.
8040
8041 2020-03-26 Tom Tromey <tom@tromey.com>
8042
8043 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8044 Declare method.
8045 * dwarf2/read.c (read_attribute_value): Update.
8046 (dwarf2_per_objfile::read_line_string): Rename from
8047 read_indirect_line_string.
8048 (read_formatted_entries): Update.
8049
8050 2020-03-26 Tom Tromey <tom@tromey.com>
8051
8052 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8053 variable.
8054
8055 2020-03-26 Tom Tromey <tom@tromey.com>
8056
8057 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8058 const.
8059 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8060 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8061 parameter const.
8062
8063 2020-03-26 Tom Tromey <tom@tromey.com>
8064
8065 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8066 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8067 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8068 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8069
8070 2020-03-26 Tom Tromey <tom@tromey.com>
8071
8072 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8073 file_names_size, file_full_name, file_file_name>: Use const.
8074 <file_name_at, file_names>: Add const overload.
8075 * dwarf2/line-header.c (line_header::file_file_name)
8076 (line_header::file_full_name): Update.
8077
8078 2020-03-26 Tom Tromey <tom@tromey.com>
8079
8080 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8081 (macro_start_file, consume_improper_spaces)
8082 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8083 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8084 (dwarf_decode_macros): Move to macro.c.
8085 * dwarf2/macro.c: New file.
8086 * dwarf2/macro.h: New file.
8087 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8088
8089 2020-03-26 Tom Tromey <tom@tromey.com>
8090
8091 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8092 method.
8093 * dwarf2/section.c: New method. From
8094 read_indirect_string_at_offset_from.
8095 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8096 (read_indirect_string_at_offset_from): Move to section.c.
8097 (read_indirect_string_at_offset): Rewrite.
8098 (read_indirect_line_string_at_offset): Remove.
8099 (read_indirect_string, read_indirect_line_string)
8100 (dwarf_decode_macro_bytes): Update.
8101
8102 2020-03-26 Tom Tromey <tom@tromey.com>
8103
8104 * dwarf2/section.h (struct dwarf2_section_info)
8105 <overload_complaint>: Declare.
8106 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8107 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8108 Rename from dwarf2_section_buffer_overflow_complaint.
8109 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8110 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8111
8112 2020-03-26 Tom Tromey <tom@tromey.com>
8113
8114 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8115 Declare.
8116 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8117 Move from read.c.
8118 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8119 to section.c.
8120
8121 2020-03-26 Tom Tromey <tom@tromey.com>
8122
8123 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8124
8125 2020-03-26 Tom Tromey <tom@tromey.com>
8126
8127 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8128 "builder".
8129 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8130 parameter.
8131 (dwarf_decode_macros): Update.
8132
8133 2020-03-26 Tom Tromey <tom@tromey.com>
8134
8135 * dwarf2/read.c (read_attribute_value): Update.
8136 (read_indirect_string_from_dwz): Move to dwz.c; change into
8137 method.
8138 (dwarf_decode_macro_bytes): Update.
8139 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8140 * dwarf2/dwz.c: New file.
8141 * Makefile.in (COMMON_SFILES): Add dwz.c.
8142
8143 2020-03-26 Tom Tromey <tom@tromey.com>
8144
8145 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8146 * dwarf2/read.c: Add include.
8147 * dwarf2/index-write.c: Add include.
8148 * dwarf2/index-cache.c: Add include.
8149 * dwarf2/dwz.h: New file.
8150
8151 2020-03-25 Tom Tromey <tom@tromey.com>
8152
8153 * compile/compile-object-load.c (get_out_value_type): Mention
8154 correct symbol name in error message.
8155
8156 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8157
8158 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8159
8160 2020-03-25 Tom de Vries <tdevries@suse.de>
8161
8162 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8163 * symmisc.c (dump_symtab_1): Print user and includes fields.
8164 (maintenance_info_symtabs): Same.
8165
8166 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8167
8168 PR gdb/25534
8169 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8170 (riscv_regcache_cooked_write): New function.
8171 (riscv_push_dummy_call): Use new function.
8172 (riscv_return_value): Likewise.
8173
8174 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8175
8176 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8177 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8178 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8179 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8180 * infrun.c (follow_fork): Likewise.
8181 (follow_fork_inferior): Likewise.
8182 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8183 * linux-nat.h (class linux_nat_target): Likewise.
8184 * remote.c (class remote_target) <follow_fork>: Likewise.
8185 (remote_target::follow_fork): Likewise.
8186 * target-delegates.c: Re-generate.
8187 * target.c (default_follow_fork): Likewise.
8188 (target_follow_fork): Likewise.
8189 * target.h (struct target_ops) <follow_fork>: Likewise.
8190 (target_follow_fork): Likewise.
8191
8192 2020-03-24 Tom de Vries <tdevries@suse.de>
8193
8194 * psymtab.c (maintenance_info_psymtabs): Print user field.
8195
8196 2020-03-20 Tom Tromey <tromey@adacore.com>
8197
8198 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8199 const.
8200 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8201 const.
8202
8203 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8204
8205 * ptrace.m4: Don't check for ptrace declaration.
8206 * config.in: Re-generate.
8207 * configure: Re-generate.
8208 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8209 not defined.
8210
8211 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8212
8213 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8214 `PTRACE_TYPE_RET'.
8215 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8216 * sparc-nat.c (gdb_ptrace): Likewise.
8217 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8218
8219 2020-03-20 Tom Tromey <tromey@adacore.com>
8220
8221 * c-exp.y (lex_one_token): Fix assert.
8222
8223 2020-03-20 Tom Tromey <tromey@adacore.com>
8224
8225 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8226 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8227 strncpy call.
8228
8229 2020-03-20 Tom Tromey <tromey@adacore.com>
8230
8231 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8232
8233 2020-03-20 Tom Tromey <tromey@adacore.com>
8234
8235 * ada-valprint.c (print_variant_part): Remove parameters; switch
8236 to value-based API.
8237 (print_field_values): Likewise.
8238 (ada_val_print_struct_union): Likewise.
8239 (ada_value_print_1): Update.
8240
8241 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8242
8243 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8244 nbsd_nat_target instead of inf_ptrace_target.
8245 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8246 nbsd_nat_target.
8247
8248 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8249
8250 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8251 it to the ptrace call.
8252 * (store_registers): Likewise.
8253
8254 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8255
8256 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8257 it to the ptrace call.
8258 * (store_registers): Likewise.
8259
8260 2020-03-19 Luis Machado <luis.machado@linaro.org>
8261
8262 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8263 valid, fetch vg value from ptrace.
8264
8265 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8266 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8267 * inf-ptrace.c: Likewise.
8268 * (gdb_ptrace): Add.
8269 * (inf_ptrace_target::resume): Update.
8270 * (inf_ptrace_target::xfer_partial): Likewise.
8271 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8272 * (inf_ptrace_peek_poke): Update.
8273
8274 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8275
8276 * x86-bsd-nat.c (gdb_ptrace): New.
8277 * (x86bsd_dr_set): Add new argument `ptid'.
8278 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8279 x86bsd_dr_set_addr): Update.
8280
8281 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8282
8283 * remote.c (remote_target::process_stop_reply): Handle events for
8284 all threads differently.
8285
8286 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8287
8288 * completer.c (completion_tracker::remove_completion): Define new
8289 function.
8290 * completer.h (completion_tracker::remove_completion): Declare new
8291 function.
8292 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8293 when adding a C++ function symbol.
8294
8295 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8296
8297 * completer.c (completion_tracker::completion_hash_entry): Define
8298 new class.
8299 (advance_to_filename_complete_word_point): Call
8300 recompute_lowest_common_denominator.
8301 (completion_tracker::completion_tracker): Call discard_completions
8302 to setup the hash table.
8303 (completion_tracker::discard_completions): Allow for being called
8304 from the constructor, pass new equal function, and element deleter
8305 when constructing the hash table. Initialise new class member
8306 variables.
8307 (completion_tracker::maybe_add_completion): Remove use of
8308 m_entries_vec, and store more information into m_entries_hash.
8309 (completion_tracker::recompute_lcd_visitor): New function, most
8310 content taken from...
8311 (completion_tracker::recompute_lowest_common_denominator):
8312 ...here, this now just visits each item in the hash calling the
8313 above visitor.
8314 (completion_tracker::build_completion_result): Remove use of
8315 m_entries_vec, call recompute_lowest_common_denominator.
8316 * completer.h (completion_tracker::have_completions): Remove use
8317 of m_entries_vec.
8318 (completion_tracker::completion_hash_entry): Declare new class.
8319 (completion_tracker::recompute_lowest_common_denominator): Change
8320 function signature.
8321 (completion_tracker::recompute_lcd_visitor): Declare new function.
8322 (completion_tracker::m_entries_vec): Delete.
8323 (completion_tracker::m_entries_hash): Initialize to NULL.
8324 (completion_tracker::m_lowest_common_denominator_valid): New
8325 member variable.
8326 (completion_tracker::m_lowest_common_denominator_max_length): New
8327 member variable.
8328
8329 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8330
8331 * regformats/regdef.h: Put reg in gdb namespace.
8332
8333 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8334
8335 * i386-bsd-nat.c (gdb_ptrace): New.
8336 * (i386bsd_fetch_inferior_registers,
8337 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8338 * (i386bsd_fetch_inferior_registers,
8339 i386bsd_store_inferior_registers) Use gdb_ptrace.
8340
8341 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8342
8343 * amd64-bsd-nat.c (gdb_ptrace): New.
8344 * (amd64bsd_fetch_inferior_registers,
8345 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8346 * (amd64bsd_fetch_inferior_registers,
8347 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8348
8349 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8350
8351 * user-regs.c (user_reg::read): Rename to...
8352 (user_reg::xread): ...this.
8353 * (append_user_reg): Rename argument `read' to `xread'.
8354 * (user_reg_add_builtin): Likewise.
8355 * (user_reg_add): Likewise.
8356 * (value_of_user_reg): Likewise.
8357
8358 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8359
8360 * sparc-nat.c (gdb_ptrace): New.
8361 * sparc-nat.c (sparc_fetch_inferior_registers)
8362 (sparc_store_inferior_registers) Remove obsolete comment.
8363 * sparc-nat.c (sparc_fetch_inferior_registers)
8364 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8365 * sparc-nat.c (sparc_fetch_inferior_registers)
8366 (sparc_store_inferior_registers) Use gdb_ptrace.
8367
8368 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8369
8370 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8371 it to the ptrace call.
8372 * sh-nbsd-nat.c (store_registers): Likewise.
8373
8374 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8375
8376 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8377 nbsd_nat_target instead of inf_ptrace_target.
8378 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8379 nbsd_nat_target.
8380
8381 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8382
8383 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8384
8385 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8386
8387 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8388 <sys/sysctl.h>.
8389 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8390
8391 2020-03-17 Tom de Vries <tdevries@suse.de>
8392
8393 PR gdb/23710
8394 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8395 fields.
8396 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8397 fields.
8398 (process_imported_unit_die): Skip import of c++ CUs.
8399
8400 2020-03-16 Tom Tromey <tom@tromey.com>
8401
8402 * p-valprint.c (pascal_object_print_value): Initialize
8403 base_value.
8404
8405 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8406 Shahab Vahedi <shahab@synopsys.com>
8407
8408 * Makefile.in: Add arch/arc.o
8409 * configure.tgt: Likewise.
8410 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8411 (_initialize_arc_tdep): Don't initialize old target descriptions.
8412 (arc_read_description): New function to cache target descriptions.
8413 * arc-tdep.h (arc_read_description): Add proto type.
8414 * arch/arc.c: New file.
8415 * arch/arc.h: Likewise.
8416 * features/Makefile: Replace old target descriptions with new.
8417 * features/arc-arcompact.c: Remove.
8418 * features/arc-arcompact.xml: Likewise.
8419 * features/arc-v2.c: Likewise
8420 * features/arc-v2.xml: Likewise
8421 * features/arc/aux-arcompact.xml: New file.
8422 * features/arc/aux-v2.xml: Likewise.
8423 * features/arc/core-arcompact.xml: Likewise.
8424 * features/arc/core-v2.xml: Likewise.
8425 * features/arc/aux-arcompact.c: Generate.
8426 * features/arc/aux-v2.c: Likewise.
8427 * features/arc/core-arcompact.c: Likewise.
8428 * features/arc/core-v2.c: Likewise.
8429 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8430
8431 2020-03-16 Tom Tromey <tromey@adacore.com>
8432
8433 PR gdb/25663:
8434 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8435 putting value into bcache.
8436
8437 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8438
8439 PR gdb/21500
8440 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8441 to...
8442 (amd64_windows_init_abi_common): ... this. Don't set size of
8443 long type.
8444 (amd64_windows_init_abi): New function.
8445 (amd64_cygwin_init_abi): New function.
8446 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8447 the Cygwin OS ABI.
8448 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8449 comment.
8450
8451 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8452
8453 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8454 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8455 (pe_import_directory_entry): New struct type.
8456 (is_linked_with_cygwin_dll): New function.
8457 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8458 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8459 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8460
8461 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8462
8463 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8464 i386_cygwin_core_osabi_sniffer.
8465
8466 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8467
8468 * i386-cygwin-tdep.c: Rename to...
8469 * i386-windows-tdep.c: ... this.
8470 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8471 i386-windows-tdep.c.
8472 * configure.tgt: Likewise.
8473
8474 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8475
8476 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8477 * osabi.c (gdb_osabi_names): Add "Windows".
8478 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8479 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8480 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8481 i386_cygwin_osabi_sniffer.
8482 (_initialize_i386_cygwin_tdep): Register OS ABI
8483 GDB_OSABI_WINDOWS for i386.
8484 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8485 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8486 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8487 for x86-64.
8488 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8489 when the target matches '*-*-mingw*'.
8490
8491 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8492
8493 * defs.h (enum gdb_osabi): Move to...
8494 * osabi.h (enum gdb_osabi): ... here.
8495 * gdbarch.sh: Include osabi.h in gdbarch.h.
8496 * gdbarch.h: Re-generate.
8497
8498 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8499
8500 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8501 function.
8502 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8503
8504 2020-03-14 Tom Tromey <tom@tromey.com>
8505
8506 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8507 for C++.
8508 (c_type_print_modifier): Likewise. Add "language" parameter.
8509 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8510 (c_type_print_base_1): Update.
8511 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8512 constants.
8513 * type-stack.c (type_stack::insert): Handle tp_atomic and
8514 tp_restrict.
8515 (type_stack::follow_type_instance_flags): Likewise.
8516 (type_stack::follow_types): Likewise. Merge type-following code.
8517 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8518 (space_identifier, cv_with_space_id)
8519 (const_or_volatile_or_space_identifier_noopt)
8520 (const_or_volatile_or_space_identifier): Remove.
8521 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8522 rules.
8523 (ptr_operator, typebase): Update.
8524 (enum token_flag) <FLAG_C>: New constant.
8525 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8526 "_Atomic".
8527 (lex_one_token): Handle FLAG_C.
8528
8529 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8530
8531 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8532 it to the ptrace call.
8533 * m68k-bsd-nat.c (store_registers): Likewise.
8534
8535 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8536
8537 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8538 gdb_byte *.
8539 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8540 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8541 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8542
8543 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8544
8545 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8546 nbsd_nat_target instead of inf_ptrace_target.
8547 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8548 nbsd_nat_target.
8549
8550 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8551
8552 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8553 register_t.
8554
8555 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8556
8557 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8558 it to the ptrace call.
8559 * alpha-bsd-nat.c (store_registers): Likewise.
8560
8561 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8562
8563 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8564 includes.
8565 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8566 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8567 fill_fpregset): Likewise.
8568
8569 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8570
8571 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8572 nbsd_nat_target instead of inf_ptrace_target.
8573 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8574 nbsd_nat_target.
8575
8576 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8577
8578 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8579 register_t.
8580
8581 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8582
8583 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8584 it to the ptrace call.
8585 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8586 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8587 * arm-nbsd-nat.c (store_register): Likewise.
8588 * arm-nbsd-nat.c (store_regs): Likewise.
8589 * arm-nbsd-nat.c (store_fp_register): Likewise.
8590 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8591
8592 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8593
8594 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8595 nbsd_nat_target instead of inf_ptrace_target.
8596 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8597 nbsd_nat_target.
8598
8599 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8600
8601 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8602 it to the ptrace call.
8603 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8604
8605 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8606
8607 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8608 it to the ptrace call.
8609 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8610
8611 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8612
8613 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8614 gdb_byte *.
8615 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8616
8617 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8618
8619 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8620 instead of inf_ptrace_target.
8621 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8622 nbsd_nat_target.
8623
8624 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8625
8626 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8627 register_t.
8628
8629 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8630
8631 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8632 register_t.
8633
8634 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8635
8636 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8637 register_t.
8638
8639 2020-03-13 Tom Tromey <tom@tromey.com>
8640
8641 * value.h (val_print): Don't declare.
8642 * valprint.h (val_print_array_elements)
8643 (val_print_scalar_formatted, generic_val_print): Don't declare.
8644 * valprint.c (generic_val_print_array): Take a struct value.
8645 (generic_val_print_ptr, generic_val_print_memberptr)
8646 (generic_val_print_bool, generic_val_print_int)
8647 (generic_val_print_char, generic_val_print_complex)
8648 (generic_val_print): Remove.
8649 (generic_value_print): Update.
8650 (do_val_print): Remove unused parameters. Don't call
8651 la_val_print.
8652 (val_print): Remove.
8653 (common_val_print): Update. Don't call value_check_printable.
8654 (val_print_scalar_formatted, val_print_array_elements): Remove.
8655 * rust-lang.c (rust_val_print): Remove.
8656 (rust_language_defn): Update.
8657 * p-valprint.c (pascal_val_print): Remove.
8658 (pascal_value_print_inner): Update.
8659 (pascal_object_print_val_fields, pascal_object_print_val):
8660 Remove.
8661 (pascal_object_print_static_field): Update.
8662 * p-lang.h (pascal_val_print): Don't declare.
8663 * p-lang.c (pascal_language_defn): Update.
8664 * opencl-lang.c (opencl_language_defn): Update.
8665 * objc-lang.c (objc_language_defn): Update.
8666 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8667 * m2-lang.h (m2_val_print): Don't declare.
8668 * m2-lang.c (m2_language_defn): Update.
8669 * language.h (struct language_defn) <la_val_print>: Remove.
8670 * language.c (unk_lang_value_print_inner): Rename. Change
8671 argument types.
8672 (unknown_language_defn, auto_language_defn): Update.
8673 * go-valprint.c (go_val_print): Remove.
8674 * go-lang.h (go_val_print): Don't declare.
8675 * go-lang.c (go_language_defn): Update.
8676 * f-valprint.c (f_val_print): Remove.
8677 * f-lang.h (f_value_print): Don't declare.
8678 * f-lang.c (f_language_defn): Update.
8679 * d-valprint.c (d_val_print): Remove.
8680 * d-lang.h (d_value_print): Don't declare.
8681 * d-lang.c (d_language_defn): Update.
8682 * cp-valprint.c (cp_print_value_fields)
8683 (cp_print_value_fields_rtti, cp_print_value): Remove.
8684 (cp_print_static_field): Update.
8685 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8686 (c_val_print_struct, c_val_print_union, c_val_print_int)
8687 (c_val_print_memberptr, c_val_print): Remove.
8688 * c-lang.h (c_val_print_array, cp_print_value_fields)
8689 (cp_print_value_fields_rtti): Don't declare.
8690 * c-lang.c (c_language_defn, cplus_language_defn)
8691 (asm_language_defn, minimal_language_defn): Update.
8692 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8693 (ada_val_print_enum): Take a struct value.
8694 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8695 (ada_val_print): Remove.
8696 (ada_value_print_1): Update.
8697 (printable_val_type): Remove.
8698 * ada-lang.h (ada_val_print): Don't declare.
8699 * ada-lang.c (ada_language_defn): Update.
8700
8701 2020-03-13 Tom Tromey <tom@tromey.com>
8702
8703 * valprint.c (do_val_print): Update.
8704 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8705 a struct value.
8706 (value_to_value_object_no_release): Declare.
8707 * python/py-value.c (value_to_value_object_no_release): New
8708 function.
8709 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8710 struct value.
8711 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8712 function.
8713 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8714 a struct value.
8715 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8716 Declare.
8717 (gdbscm_apply_val_pretty_printer): Take a struct value.
8718 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8719 value.
8720 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8721 value.
8722 * extension-priv.h (struct extension_language_ops)
8723 <apply_val_pretty_printer>: Take a struct value.
8724 * cp-valprint.c (cp_print_value): Create a struct value.
8725 (cp_print_value): Update.
8726
8727 2020-03-13 Tom Tromey <tom@tromey.com>
8728
8729 * ada-valprint.c (print_field_values): Call common_val_print.
8730
8731 2020-03-13 Tom Tromey <tom@tromey.com>
8732
8733 * ada-valprint.c (val_print_packed_array_elements): Remove
8734 bitoffset and val parameters. Call common_val_print.
8735 (ada_val_print_string): Remove offset, address, and original_value
8736 parameters.
8737 (ada_val_print_array): Update.
8738 (ada_value_print_array): New function.
8739 (ada_value_print_1): Call it.
8740
8741 2020-03-13 Tom Tromey <tom@tromey.com>
8742
8743 * ada-valprint.c (ada_value_print): Use common_val_print.
8744
8745 2020-03-13 Tom Tromey <tom@tromey.com>
8746
8747 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8748
8749 2020-03-13 Tom Tromey <tom@tromey.com>
8750
8751 * ada-valprint.c (ada_value_print_num): New function.
8752 (ada_value_print_1): Use it.
8753
8754 2020-03-13 Tom Tromey <tom@tromey.com>
8755
8756 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8757
8758 2020-03-13 Tom Tromey <tom@tromey.com>
8759
8760 * ada-valprint.c (ada_value_print_ptr): New function.
8761 (ada_value_print_1): Use it.
8762
8763 2020-03-13 Tom Tromey <tom@tromey.com>
8764
8765 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8766 call common_val_print.
8767 (ada_val_print_1): Update.
8768 (ada_value_print_1): New function.
8769 (ada_value_print_inner): Rewrite.
8770
8771 2020-03-13 Tom Tromey <tom@tromey.com>
8772
8773 * cp-valprint.c (cp_print_value_fields): Update.
8774 (cp_print_value): New function.
8775
8776 2020-03-13 Tom Tromey <tom@tromey.com>
8777
8778 * m2-valprint.c (m2_value_print_inner): Use
8779 cp_print_value_fields.
8780 * cp-valprint.c (cp_print_value_fields): New function.
8781 * c-valprint.c (c_value_print_struct): New function.
8782 (c_value_print_inner): Use c_value_print_struct.
8783 * c-lang.h (cp_print_value_fields): Declare.
8784
8785 2020-03-13 Tom Tromey <tom@tromey.com>
8786
8787 * c-valprint.c (c_value_print_array): New function.
8788 (c_value_print_inner): Use it.
8789
8790 2020-03-13 Tom Tromey <tom@tromey.com>
8791
8792 * c-valprint.c (c_value_print_memberptr): New function.
8793 (c_value_print_inner): Use it.
8794
8795 2020-03-13 Tom Tromey <tom@tromey.com>
8796
8797 * c-valprint.c (c_value_print_int): New function.
8798 (c_value_print_inner): Use it.
8799
8800 2020-03-13 Tom Tromey <tom@tromey.com>
8801
8802 * c-valprint.c (c_value_print_ptr): New function.
8803 (c_value_print_inner): Use it.
8804
8805 2020-03-13 Tom Tromey <tom@tromey.com>
8806
8807 * c-valprint.c (c_value_print_inner): Rewrite.
8808
8809 2020-03-13 Tom Tromey <tom@tromey.com>
8810
8811 * valprint.c (generic_value_print_complex): New function.
8812 (generic_value_print): Use it.
8813
8814 2020-03-13 Tom Tromey <tom@tromey.com>
8815
8816 * valprint.c (generic_val_print_float): Don't call
8817 val_print_scalar_formatted.
8818 (generic_val_print, generic_value_print): Update.
8819
8820 2020-03-13 Tom Tromey <tom@tromey.com>
8821
8822 * valprint.c (generic_value_print_char): New function
8823 (generic_value_print): Use it.
8824
8825 2020-03-13 Tom Tromey <tom@tromey.com>
8826
8827 * valprint.c (generic_value_print_int): New function.
8828 (generic_value_print): Use it.
8829
8830 2020-03-13 Tom Tromey <tom@tromey.com>
8831
8832 * valprint.c (generic_value_print_bool): New function.
8833 (generic_value_print): Use it.
8834
8835 2020-03-13 Tom Tromey <tom@tromey.com>
8836
8837 * valprint.c (generic_val_print_func): Simplify.
8838 (generic_val_print, generic_value_print): Update.
8839
8840 2020-03-13 Tom Tromey <tom@tromey.com>
8841
8842 * valprint.c (generic_val_print_flags): Remove.
8843 (generic_val_print, generic_value_print): Update.
8844 (val_print_type_code_flags): Add original_value parameter.
8845
8846 2020-03-13 Tom Tromey <tom@tromey.com>
8847
8848 * valprint.c (generic_val_print): Update.
8849 (generic_value_print): Update.
8850 * valprint.c (generic_val_print_enum): Don't call
8851 val_print_scalar_formatted.
8852
8853 2020-03-13 Tom Tromey <tom@tromey.com>
8854
8855 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8856 * valprint.c (generic_value_print_ptr): New function.
8857
8858 2020-03-13 Tom Tromey <tom@tromey.com>
8859
8860 * valprint.c (generic_value_print): Rewrite.
8861
8862 2020-03-13 Tom Tromey <tom@tromey.com>
8863
8864 * p-valprint.c (pascal_object_print_value_fields)
8865 (pascal_object_print_value): New functions.
8866
8867 2020-03-13 Tom Tromey <tom@tromey.com>
8868
8869 * p-valprint.c (pascal_value_print_inner): Rewrite.
8870
8871 2020-03-13 Tom Tromey <tom@tromey.com>
8872
8873 * f-valprint.c (f_value_print_innner): Rewrite.
8874
8875 2020-03-13 Tom Tromey <tom@tromey.com>
8876
8877 * m2-valprint.c (m2_print_unbounded_array): New overload.
8878 (m2_print_unbounded_array): Update.
8879 (m2_print_array_contents): Take a struct value.
8880 (m2_value_print_inner): Rewrite.
8881
8882 2020-03-13 Tom Tromey <tom@tromey.com>
8883
8884 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8885 (d_value_print_inner): New function.
8886 * d-lang.h (d_value_print_inner): Declare.
8887 * d-lang.c (d_language_defn): Use d_value_print_inner.
8888
8889 2020-03-13 Tom Tromey <tom@tromey.com>
8890
8891 * go-valprint.c (go_value_print_inner): New function.
8892 * go-lang.h (go_value_print_inner): Declare.
8893 * go-lang.c (go_language_defn): Use go_value_print_inner.
8894
8895 2020-03-13 Tom Tromey <tom@tromey.com>
8896
8897 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8898 API.
8899 (rust_val_print): Rewrite.
8900 (rust_value_print_inner): New function, from rust_val_print.
8901 (rust_language_defn): Use rust_value_print_inner.
8902
8903 2020-03-13 Tom Tromey <tom@tromey.com>
8904
8905 * ada-valprint.c (ada_value_print_inner): New function.
8906 * ada-lang.h (ada_value_print_inner): Declare.
8907 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8908
8909 2020-03-13 Tom Tromey <tom@tromey.com>
8910
8911 * f-valprint.c (f_value_print_innner): New function.
8912 * f-lang.h (f_value_print_innner): Declare.
8913 * f-lang.c (f_language_defn): Use f_value_print_innner.
8914
8915 2020-03-13 Tom Tromey <tom@tromey.com>
8916
8917 * p-valprint.c (pascal_value_print_inner): New function.
8918 * p-lang.h (pascal_value_print_inner): Declare.
8919 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8920
8921 2020-03-13 Tom Tromey <tom@tromey.com>
8922
8923 * m2-valprint.c (m2_value_print_inner): New function.
8924 * m2-lang.h (m2_value_print_inner): Declare.
8925 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8926
8927 2020-03-13 Tom Tromey <tom@tromey.com>
8928
8929 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8930 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8931 * c-valprint.c (c_value_print_inner): New function.
8932 * c-lang.h (c_value_print_inner): Declare.
8933 * c-lang.c (c_language_defn, cplus_language_defn)
8934 (asm_language_defn, minimal_language_defn): Use
8935 c_value_print_inner.
8936
8937 2020-03-13 Tom Tromey <tom@tromey.com>
8938
8939 * p-valprint.c (pascal_object_print_value_fields): Now static.
8940 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8941
8942 2020-03-13 Tom Tromey <tom@tromey.com>
8943
8944 * c-valprint.c (c_val_print_array): Simplify.
8945
8946 2020-03-13 Tom Tromey <tom@tromey.com>
8947
8948 * valprint.c (value_print_array_elements): New function.
8949 * valprint.h (value_print_array_elements): Declare.
8950
8951 2020-03-13 Tom Tromey <tom@tromey.com>
8952
8953 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8954 * mips-tdep.c (mips_print_register): Use
8955 value_print_scalar_formatted.
8956
8957 2020-03-13 Tom Tromey <tom@tromey.com>
8958
8959 * valprint.h (value_print_scalar_formatted): Declare.
8960 * valprint.c (value_print_scalar_formatted): New function.
8961
8962 2020-03-13 Tom Tromey <tom@tromey.com>
8963
8964 * valprint.h (generic_value_print): Declare.
8965 * valprint.c (generic_value_print): New function.
8966
8967 2020-03-13 Tom Tromey <tom@tromey.com>
8968
8969 * valprint.c (do_val_print): Call la_value_print_inner, if
8970 available.
8971 * rust-lang.c (rust_language_defn): Update.
8972 * p-lang.c (pascal_language_defn): Update.
8973 * opencl-lang.c (opencl_language_defn): Update.
8974 * objc-lang.c (objc_language_defn): Update.
8975 * m2-lang.c (m2_language_defn): Update.
8976 * language.h (struct language_defn) <la_value_print_inner>: New
8977 member.
8978 * language.c (unknown_language_defn, auto_language_defn): Update.
8979 * go-lang.c (go_language_defn): Update.
8980 * f-lang.c (f_language_defn): Update.
8981 * d-lang.c (d_language_defn): Update.
8982 * c-lang.c (c_language_defn, cplus_language_defn)
8983 (asm_language_defn, minimal_language_defn): Update.
8984 * ada-lang.c (ada_language_defn): Update.
8985
8986 2020-03-13 Tom Tromey <tom@tromey.com>
8987
8988 * c-valprint.c (c_value_print): Use common_val_print.
8989
8990 2020-03-13 Tom Tromey <tom@tromey.com>
8991
8992 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8993
8994 2020-03-13 Tom Tromey <tom@tromey.com>
8995
8996 * f-valprint.c (f77_print_array_1, f_val_print): Use
8997 common_val_print.
8998
8999 2020-03-13 Tom Tromey <tom@tromey.com>
9000
9001 * riscv-tdep.c (riscv_print_one_register_info): Use
9002 common_val_print.
9003
9004 2020-03-13 Tom Tromey <tom@tromey.com>
9005
9006 * mi/mi-main.c (output_register): Use common_val_print.
9007
9008 2020-03-13 Tom Tromey <tom@tromey.com>
9009
9010 * infcmd.c (default_print_one_register_info): Use
9011 common_val_print.
9012
9013 2020-03-13 Tom Tromey <tom@tromey.com>
9014
9015 * valprint.h (common_val_print_checked): Declare.
9016 * valprint.c (common_val_print_checked): New function.
9017 * stack.c (print_frame_arg): Use common_val_print_checked.
9018
9019 2020-03-13 Tom Tromey <tom@tromey.com>
9020
9021 * valprint.c (do_val_print): New function, from val_print.
9022 (val_print): Use do_val_print.
9023 (common_val_print): Use do_val_print.
9024
9025 2020-03-13 Tom Tromey <tom@tromey.com>
9026
9027 * valprint.c (value_print): Use scoped_value_mark.
9028
9029 2020-03-13 Tom de Vries <tdevries@suse.de>
9030
9031 PR symtab/25646
9032 * psymtab.c (partial_symtab::partial_symtab): Don't set
9033 globals_offset and statics_offset. Push element onto
9034 current_global_psymbols and current_static_psymbols stacks.
9035 (concat): New function.
9036 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9037 element from current_global_psymbols and current_static_psymbols
9038 stacks. Concat popped elements to global_psymbols and
9039 static_symbols.
9040 (add_psymbol_to_list): Use current_global_psymbols and
9041 current_static_psymbols stacks.
9042 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9043 current_static_psymbols fields.
9044
9045 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9046
9047 * corelow.c (sniff_core_bfd): Remove.
9048 (class core_target) <m_core_vec>: Remove.
9049 (core_target::core_target): Update.
9050 (core_file_fns): Remove.
9051 (deprecated_add_core_fns): Remove.
9052 (default_core_sniffer): Remove.
9053 (sniff_core_bfd): Remove.
9054 (default_check_format): Remove.
9055 (gdb_check_format): Remove.
9056 (core_target_open): Update.
9057 (core_target::get_core_register_section): Update.
9058 (get_core_registers_cb): Update.
9059 (core_target::fetch_registers): Update.
9060 * gdbcore.h (struct core_fns): Remove.
9061 (deprecated_add_core_fns): Remove.
9062 (default_core_sniffer): Remove.
9063 (default_check_format): Remove.
9064
9065 2020-03-12 Tom Tromey <tom@tromey.com>
9066
9067 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9068 CORE_ADDR.
9069 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9070
9071 2020-03-12 Tom Tromey <tom@tromey.com>
9072
9073 * remote.c (remote_target::download_tracepoint)
9074 (remote_target::enable_tracepoint)
9075 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9076 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9077 sprintf_vma.
9078
9079 2020-03-12 Tom Tromey <tom@tromey.com>
9080
9081 * symfile-mem.c: Update CORE_ADDR size assert.
9082
9083 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9084
9085 * selftest.m4: Move to gdbsupport/.
9086 * acinclude.m4: Update path to selftest.m4.
9087
9088 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9089
9090 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9091 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9092 gdbarch-selfselftests.c and selftest-arch.c.
9093 (SUBDIR_UNITTESTS_OBS): Rename to...
9094 (SELFTESTS_OBS): ... this.
9095 (COMMON_SFILES): Remove disasm-selftests.c and
9096 gdbarch-selftests.c.
9097 * configure.ac: Don't add selftest-arch.{c,o} to
9098 CONFIG_{SRCS,OBS}.
9099 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9100 preprocessor conditions.
9101
9102 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9103
9104 * configure.ac: Don't source bfd/development.sh.
9105 * selftest.m4: Modify comment.
9106 * configure: Re-generate.
9107
9108 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9109
9110 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9111 not "true" or "false".
9112 * configure: Re-generate.
9113
9114 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9115
9116 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9117 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9118 renamed to arm_nbsd_supply_gregset.
9119 (fetch_register): Update to call arm_nbsd_supply_gregset.
9120 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9121 (arm_netbsd_nat_target::fetch_registers): Update.
9122 (fetch_elfcore_registers): Removed.
9123 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9124 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9125 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9126 not require NetBSD system headers.
9127 (arm_nbsd_regset): New struct.
9128 (arm_nbsd_iterate_over_regset_sections): New function.
9129 (arm_netbsd_init_abi_common): Updated to call
9130 set_gdbarch_iterate_over_regset_sections.
9131 * arm-nbsd-tdep.h: New file.
9132
9133 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9134
9135 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9136 recursion.
9137
9138 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9139
9140 * configure: Re-generate.
9141
9142 2020-03-11 Tom Tromey <tromey@adacore.com>
9143
9144 * ada-typeprint.c (print_choices): Fix comment.
9145
9146 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9147
9148 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9149 previous item in the list, when the list has no items.
9150
9151 2020-03-11 Tom de Vries <tdevries@suse.de>
9152
9153 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9154 PROP_LOCLIST handling code.
9155
9156 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9157
9158 * buildsym-legacy.c (record_line): Pass extra parameter to
9159 record_line.
9160 * buildsym.c (buildsym_compunit::record_line): Take an extra
9161 parameter, reduce duplication in the line table, and record the
9162 is_stmt flag in the line table.
9163 * buildsym.h (buildsym_compunit::record_line): Add extra
9164 parameter.
9165 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9166 non-statement lines.
9167 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9168 this to the symtab builder.
9169 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9170 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9171 through to dwarf_record_line_1.
9172 * infrun.c (process_event_stop_test): When stepping, don't stop at
9173 a non-statement instruction, and only refresh the step info when
9174 we land in the middle of a line's range. Also add an extra
9175 comment.
9176 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9177 field.
9178 * record-btrace.c (btrace_find_line_range): Only record lines
9179 marked as is-statement.
9180 * stack.c (frame_show_address): Show the frame address if we are
9181 in a non-statement sal.
9182 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9183 (maintenance_print_one_line_table): Print a header for the is_stmt
9184 column, and include is_stmt information in the output.
9185 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9186 preference to non-statements.
9187 (find_pcs_for_symtab_line): Prefer is-statement entries.
9188 (find_line_common): Likewise.
9189 * symtab.h (struct linetable_entry): Add is_stmt field.
9190 (struct symtab_and_line): Likewise.
9191 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9192 arranging the line table.
9193
9194 2020-03-07 Tom de Vries <tdevries@suse.de>
9195
9196 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9197 DIE.
9198
9199 2020-03-07 Tom Tromey <tom@tromey.com>
9200
9201 * valops.c (value_literal_complex): Remove obsolete comment.
9202 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9203 comment.
9204
9205 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9206
9207 * infrun.h: Forward-declare thread_info.
9208 (set_step_info): Add thread_info parameter, add doc.
9209 * infrun.c (set_step_info): Add thread_info parameter, move doc
9210 to header.
9211 * infrun.c (process_event_stop_test): Pass thread to
9212 set_step_info call.
9213 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9214 set_step_info.
9215 (prepare_one_step): Add thread_info parameter, pass it to
9216 set_step_frame and prepare_one_step (recursive) call.
9217 (step_1): Pass thread to prepare_one_step call.
9218 (step_command_fsm::should_stop): Pass thread to
9219 prepare_one_step.
9220 (until_next_fsm): Pass thread to set_step_frame call.
9221 (finish_command): Pass thread to set_step_info call.
9222
9223 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9224
9225 * windows-tdep.c (windows_solib_create_inferior_hook):
9226 Check if inferior is running.
9227
9228 2020-03-06 Tom de Vries <tdevries@suse.de>
9229
9230 * NEWS: Fix "the the".
9231 * ctfread.c: Same.
9232
9233 2020-03-06 Tom de Vries <tdevries@suse.de>
9234
9235 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9236
9237 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9238
9239 * .dir-locals.el: Add a comment referencing the other copies of
9240 this file.
9241
9242 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9243
9244 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9245 psargs.
9246
9247 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9248
9249 * .gitattributes: New file.
9250
9251 2020-03-04 Tom Tromey <tom@tromey.com>
9252
9253 * symmisc.c (print_symbol_bcache_statistics)
9254 (print_objfile_statistics): Update.
9255 * symfile.c (allocate_symtab): Use intern.
9256 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9257 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9258 macro_cache>: Remove.
9259 <string_cache>: New member.
9260 (struct objfile) <intern>: New methods.
9261 * elfread.c (elf_symtab_read): Use intern.
9262 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9263 (dwarf2_compute_name, dwarf2_physname)
9264 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9265 names.
9266 (guess_partial_die_structure_name): Update.
9267 (partial_die_info::fixup): Intern name.
9268 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9269 name.
9270 (dwarf2_name): Intern name. Update.
9271 * buildsym.c (buildsym_compunit::get_macro_table): Use
9272 string_cache.
9273
9274 2020-03-04 Tom Tromey <tom@tromey.com>
9275
9276 * jit.c (bfd_open_from_target_memory): Make "target" const.
9277 * corefile.c (gnutarget): Now const.
9278 * gdbcore.h (gnutarget): Now const.
9279
9280 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9281
9282 * NEWS: Mention support for WOW64 processes.
9283 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9284 (amd64_windows_segment_register_p): Remove static.
9285 (_initialize_amd64_windows_nat): Update.
9286 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9287 * i386-windows-nat.c (context_offset): Update.
9288 (i386_mappings): Rename and remove static.
9289 (i386_windows_segment_register_p): Remove static.
9290 (_initialize_i386_windows_nat): Update.
9291 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9292 (STATUS_WX86_SINGLE_STEP): New macro.
9293 (EnumProcessModulesEx): New macro.
9294 (Wow64SuspendThread): New macro.
9295 (Wow64GetThreadContext): New macro.
9296 (Wow64SetThreadContext): New macro.
9297 (Wow64GetThreadSelectorEntry): New macro.
9298 (windows_set_context_register_offsets): Add static.
9299 (windows_set_segment_register_p): Likewise.
9300 (windows_add_thread): Adapt for WOW64 processes.
9301 (windows_fetch_one_register): Likewise.
9302 (windows_nat_target::fetch_registers): Likewise.
9303 (windows_store_one_register): Likewise.
9304 (display_selector): Likewise.
9305 (display_selectors): Likewise.
9306 (handle_exception): Likewise.
9307 (windows_continue): Likewise.
9308 (windows_nat_target::resume): Likewise.
9309 (windows_add_all_dlls): Likewise.
9310 (do_initial_windows_stuff): Likewise.
9311 (windows_nat_target::attach): Likewise.
9312 (windows_get_exec_module_filename): Likewise.
9313 (windows_nat_target::create_inferior): Likewise.
9314 (windows_xfer_siginfo): Likewise.
9315 (_initialize_loadable): Initialize Wow64SuspendThread,
9316 Wow64GetThreadContext, Wow64SetThreadContext,
9317 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9318 * windows-nat.h (windows_set_context_register_offsets):
9319 Remove declaration.
9320 (windows_set_segment_register_p): Likewise.
9321 (i386_windows_segment_register_p): Add declaration.
9322 (amd64_windows_segment_register_p): Likewise.
9323
9324 2020-03-04 Luis Machado <luis.machado@linaro.org>
9325
9326 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9327 in "info registers" for AArch64/ARM.
9328
9329 The change caused "info registers" to not print GPR's.
9330
9331 gdb/ChangeLog:
9332
9333 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9334
9335 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9336 when reg->group is empty and reggroup is not.
9337
9338 2020-03-03 Tom Tromey <tromey@adacore.com>
9339
9340 * dwarf2/frame.c (struct dwarf2_frame_cache)
9341 <checked_tailcall_bottom, entry_cfa_sp_offset,
9342 entry_cfa_sp_offset_p>: Remove members.
9343 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9344 (dwarf2_frame_prev_register): Don't call
9345 dwarf2_tailcall_sniffer_first.
9346 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9347 * frame-unwind.c (add_unwinder): New fuction.
9348 (frame_unwind_init): Use it. Add tailcall unwinder.
9349
9350 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9351 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9352
9353 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9354 value should be printed as true.
9355
9356 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9357
9358 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9359 (windows_init_abi): Set and use windows_so_ops.
9360
9361 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9362
9363 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9364 when verifying if dealing with a convenience variable.
9365
9366 2020-03-03 Luis Machado <luis.machado@linaro.org>
9367
9368 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9369
9370 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9371
9372 * infrun.c (gdbarch_supports_displaced_stepping): New.
9373 (use_displaced_stepping): Break up conditions in smaller pieces.
9374 Use gdbarch_supports_displaced_stepping.
9375 (displaced_step_prepare_throw): Use
9376 gdbarch_supports_displaced_stepping.
9377
9378 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9379
9380 * NEWS: Mention new behaviour of the history filename.
9381 * top.c (write_history_p): Add comment.
9382 (show_write_history_p): Add header comment, give a different
9383 message when history writing is on, but the history filename is
9384 empty.
9385 (history_filename): Add comment.
9386 (history_filename_empty): New function.
9387 (show_history_filename): Add header comment, give a different
9388 message when the filename is empty.
9389 (init_history): Compare history_filename against nullptr, and only
9390 read history if the filename is not empty.
9391 (set_history_filename): Add header comment, and only make
9392 non-empty filenames absolute.
9393 (init_main): Make the filename argument to 'set history filename'
9394 optional.
9395
9396 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9397
9398 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9399 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9400 (fetch_fp_register): Update.
9401 (fetch_fp_regs): Update.
9402 (store_fp_register): Update.
9403 (store_fp_regs): Update.
9404 (arm_netbsd_nat_target::read_description): New function.
9405 (fetch_elfcore_registers): Update.
9406
9407 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9408
9409 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9410 general_thread if the stop reply is missing a thread-id.
9411 (remote_target::process_stop_reply): Use the first non-exited
9412 thread if the target didn't pass a thread-id.
9413 * infrun.c (do_target_wait): Move call to
9414 switch_to_inferior_no_thread to ....
9415 (do_target_wait_1): ... here.
9416
9417 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9418
9419 * debuginfod-support.c: Include defs.h first.
9420
9421 2020-02-28 Tom de Vries <tdevries@suse.de>
9422
9423 * symfile.c (set_initial_language): Use default language for lookup.
9424
9425 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9426
9427 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9428 reader variable, pass `this` to read_cutu_die_from_dwo.
9429
9430 2020-02-27 Aaron Merey <amerey@redhat.com>
9431
9432 * source.c (open_source_file): Check for nullptr when computing
9433 srcpath.
9434
9435 2020-02-27 Tom Tromey <tromey@adacore.com>
9436
9437 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9438 member.
9439 (dwarf2_add_field): Don't update nfields.
9440 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9441
9442 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9443
9444 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9445 abs.
9446
9447 2020-02-26 Tom Tromey <tom@tromey.com>
9448
9449 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9450 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9451 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9452 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9453 per_cu_data.
9454
9455 2020-02-26 Tom Tromey <tom@tromey.com>
9456
9457 * dwarf2/index-write.c (psym_index_map): Change type.
9458 (add_address_entry_worker, write_one_signatured_type)
9459 (recursively_count_psymbols, recursively_write_psymbols)
9460 (class debug_names, psyms_seen_size, write_gdbindex)
9461 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9462
9463 2020-02-26 Aaron Merey <amerey@redhat.com>
9464
9465 * Makefile.in: Handle optional debuginfod support.
9466 * NEWS: Update.
9467 * README: Add --with-debuginfod summary.
9468 * config.in: Regenerate.
9469 * configure: Regenerate.
9470 * configure.ac: Handle optional debuginfod support.
9471 * debuginfod-support.c: debuginfod helper functions.
9472 * debuginfod-support.h: Ditto.
9473 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9474 summary.
9475 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9476 when a dwz file cannot be found.
9477 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9478 debuginfo file cannot be found.
9479 * source.c (open_source_file): Query debuginfod servers when a
9480 source file cannot be found.
9481 * top.c (print_gdb_configuration): Include
9482 --{with,without}-debuginfod in the output.
9483
9484 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9485
9486 * thread.c (thr_try_catch_cmd): Print thread name.
9487
9488 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9489
9490 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9491 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9492 dwarf2_fetch_die_type_sect_off): Move to...
9493 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9494 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9495 dwarf2_fetch_die_type_sect_off): ... here.
9496 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9497 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9498 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9499
9500 2020-02-26 Tom de Vries <tdevries@suse.de>
9501
9502 PR gdb/25603
9503 * symfile.c (set_initial_language): Exit-early if
9504 language_mode == language_mode_manual.
9505
9506 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9507
9508 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9509 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9510 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9511
9512 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9513
9514 * gdbtypes.c (create_array_type_with_stride): Handle negative
9515 array strides.
9516 * valarith.c (value_subscripted_rvalue): Likewise.
9517
9518 2020-02-25 Luis Machado <luis.machado@linaro.org>
9519
9520 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9521
9522 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9523
9524 * loc.h (dwarf2_get_die_type): Move to...
9525 * read.h (dwarf2_get_die_type): ... here.
9526 * read.c (dwarf2_get_die_type): Move doc to header.
9527
9528 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9529
9530 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9531 'gnulib/Makefile.in' to the list.
9532
9533 2020-02-24 Tom Tromey <tom@tromey.com>
9534
9535 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9536 Remove.
9537 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9538 XOBNEWVEC.
9539
9540 2020-02-24 Tom Tromey <tom@tromey.com>
9541
9542 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9543 New method.
9544 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9545 (dw2_do_instantiate_symtab, dw2_get_file_names)
9546 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9547
9548 2020-02-24 Tom Tromey <tom@tromey.com>
9549
9550 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9551 make_scoped_restore.
9552 (dwarf2_psymtab::read_symtab): Don't clear
9553 reading_partial_symbols.
9554
9555 2020-02-24 Tom de Vries <tdevries@suse.de>
9556
9557 PR gdb/25592
9558 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9559
9560 2020-02-24 Tom de Vries <tdevries@suse.de>
9561
9562 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9563 commands layout next/prev/regs.
9564
9565 2020-02-22 Tom Tromey <tom@tromey.com>
9566
9567 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9568 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9569
9570 2020-02-22 Tom Tromey <tom@tromey.com>
9571
9572 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9573
9574 2020-02-22 Tom Tromey <tom@tromey.com>
9575
9576 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9577 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9578 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9579 * tui/tui.c (_initialize_tui): Add usage text.
9580
9581 2020-02-22 Tom Tromey <tom@tromey.com>
9582
9583 * tui/tui-win.c (tui_set_focus_command)
9584 (tui_set_win_height_command): Use error_no_arg.
9585 (_initialize_tui_win): Update help text.
9586 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9587
9588 2020-02-22 Tom Tromey <tom@tromey.com>
9589
9590 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9591 * tui/tui-disasm.h (struct tui_disasm_window)
9592 <display_start_addr>: Declare.
9593 * tui/tui-source.h (struct tui_source_window)
9594 <display_start_addr>: Declare.
9595 * tui/tui-winsource.h (struct tui_source_window_base)
9596 <show_source_line, display_start_addr>: New methods.
9597 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9598 Rename and move to protected section.
9599 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9600 (tui_source_window_base::do_erase_source_content): Update.
9601 (tui_source_window_base::show_source_line): Now a method.
9602 (tui_source_window_base::show_source_content)
9603 (tui_source_window_base::tui_source_window_base)
9604 (tui_source_window_base::rerender)
9605 (tui_source_window_base::refill)
9606 (tui_source_window_base::do_scroll_horizontal)
9607 (tui_source_window_base::set_is_exec_point_at)
9608 (tui_source_window_base::update_breakpoint_info)
9609 (tui_source_window_base::update_exec_info): Update.
9610 * tui/tui-source.c (tui_source_window::set_contents)
9611 (tui_source_window::showing_source_p)
9612 (tui_source_window::do_scroll_vertical)
9613 (tui_source_window::location_matches_p)
9614 (tui_source_window::line_is_displayed): Update.
9615 (tui_source_window::display_start_addr): New method.
9616 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9617 (tui_disasm_window::do_scroll_vertical)
9618 (tui_disasm_window::location_matches_p): Update.
9619 (tui_disasm_window::display_start_addr): New method.
9620
9621 2020-02-22 Tom Tromey <tom@tromey.com>
9622
9623 * NEWS: Add entry for gdb.register_window_type.
9624 * tui/tui-layout.h (window_factory): New typedef.
9625 (tui_register_window): Declare.
9626 * tui/tui-layout.c (saved_tui_windows): New global.
9627 (tui_apply_current_layout): Use it.
9628 (tui_register_window): New function.
9629 * python/python.c (do_start_initialization): Call
9630 gdbpy_initialize_tui.
9631 (python_GdbMethods): Add "register_window_type" function.
9632 * python/python-internal.h (gdbpy_register_tui_window)
9633 (gdbpy_initialize_tui): Declare.
9634 * python/py-tui.c: New file.
9635 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9636
9637 2020-02-22 Tom Tromey <tom@tromey.com>
9638
9639 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9640
9641 2020-02-22 Tom Tromey <tom@tromey.com>
9642
9643 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9644 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9645 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9646 (tui_set_win_focus_to): Move from tui-win.c.
9647
9648 2020-02-22 Tom Tromey <tom@tromey.com>
9649
9650 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9651 functions.
9652 (known_window_types): New global.
9653 (tui_get_window_by_name): Reimplement.
9654 (initialize_known_windows): New function.
9655 (validate_window_name): Rewrite.
9656 (_initialize_tui_layout): Call initialize_known_windows.
9657
9658 2020-02-22 Tom Tromey <tom@tromey.com>
9659
9660 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9661 Remove constants.
9662 * tui/tui-winsource.h (struct tui_source_window_base)
9663 <tui_source_window_base>: Remove parameter.
9664 * tui/tui-winsource.c
9665 (tui_source_window_base::tui_source_window_base): Remove
9666 parameter.
9667 (tui_source_window_base::refill): Update.
9668 * tui/tui-stack.h (struct tui_locator_window)
9669 <tui_locator_window>: Update.
9670 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9671 Default the constructor.
9672 * tui/tui-regs.h (struct tui_data_item_window)
9673 <tui_data_item_window>: Default the constructor.
9674 (struct tui_data_window) <tui_data_window>: Likewise.
9675 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9676 Default the constructor.
9677 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9678 Default the constructor.
9679 <type>: Remove.
9680 (struct tui_win_info) <tui_win_info>: Default the constructor.
9681 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9682 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9683 Default the constructor.
9684
9685 2020-02-22 Tom Tromey <tom@tromey.com>
9686
9687 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9688 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9689 * tui/tui-win.c (tui_resize_all): Don't call
9690 tui_delete_invisible_windows.
9691 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9692 done.
9693 (tui_set_layout): Update.
9694 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9695 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9696 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9697
9698 2020-02-22 Tom Tromey <tom@tromey.com>
9699
9700 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9701 correctly.
9702
9703 2020-02-22 Tom Tromey <tom@tromey.com>
9704
9705 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9706
9707 2020-02-22 Tom Tromey <tom@tromey.com>
9708
9709 * tui/tui-winsource.h (struct tui_source_window_iterator)
9710 <inner_iterator>: New etytypedef.
9711 <tui_source_window_iterator>: Take "end" parameter.
9712 <tui_source_window_iterator>: Take iterator.
9713 <operator*, advance>: Update.
9714 <m_iter>: Change type.
9715 <m_end>: New field.
9716 (struct tui_source_windows) <begin, end>: Update.
9717 * tui/tui-layout.c (tui_windows): New global.
9718 (tui_apply_current_layout): Clear tui_windows.
9719 (tui_layout_window::apply): Update tui_windows.
9720 * tui/tui-data.h (tui_windows): Declare.
9721 (all_tui_windows): Now inline function.
9722 (class tui_window_iterator, struct all_tui_windows): Remove.
9723
9724 2020-02-22 Tom Tromey <tom@tromey.com>
9725
9726 PR tui/17850:
9727 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9728 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9729 "height" argument.
9730 (class tui_layout_window) <get_sizes>: Likewise.
9731 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9732 argument.
9733 <get_sizes>: Add "height" argument.
9734 <m_vertical>: New field.
9735 * tui/tui-layout.c (tui_layout_split::clone): Update.
9736 (tui_layout_split::get_sizes): Add "height" argument.
9737 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9738 (tui_new_layout_command): Parse "-horizontal".
9739 (_initialize_tui_layout): Update help string.
9740 (tui_layout_split::specification): Add "-horizontal" when needed.
9741 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9742 argument.
9743 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9744 New methods.
9745
9746 2020-02-22 Tom Tromey <tom@tromey.com>
9747
9748 * tui/tui-layout.h (enum tui_adjust_result): New.
9749 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9750 (class tui_layout_window) <adjust_size>: Return
9751 tui_adjust_result. Rewrite.
9752 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9753 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9754
9755 2020-02-22 Tom Tromey <tom@tromey.com>
9756
9757 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9758 parameter and return types.
9759 (class tui_layout_base) <specification>: Add "depth".
9760 (class tui_layout_window) <specification>: Add "depth".
9761 (class tui_layout_split) <specification>: Add "depth".
9762 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9763 and return types.
9764 (tui_new_layout_command): Parse sub-layouts.
9765 (_initialize_tui_layout): Update help string.
9766 (tui_layout_window::specification): Add "depth".
9767 (add_layout_command): Update.
9768
9769 2020-02-22 Tom Tromey <tom@tromey.com>
9770
9771 * NEWS: Add "tui new-layout" item.
9772 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9773 Add new-layout command to help text.
9774 (validate_window_name): New function.
9775 (tui_new_layout_command): New function.
9776 (_initialize_tui_layout): Register "new-layout".
9777 (tui_layout_window::specification): New method.
9778 (tui_layout_window::specification): New method.
9779 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9780 method.
9781 (class tui_layout_window) <specification>: New method.
9782 (class tui_layout_split) <specification>: New method.
9783
9784 2020-02-22 Tom Tromey <tom@tromey.com>
9785
9786 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9787 * tui/tui-win.c (window_name_completer): Update comment.
9788 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9789 Declare method.
9790 (class tui_layout_window) <replace_window>: Likewise.
9791 (class tui_layout_split) <replace_window>: Likewise.
9792 (tui_set_layout): Don't declare.
9793 (tui_set_initial_layout): Declare function.
9794 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9795 (asm_regs_layout): New globals.
9796 (tui_current_layout, show_layout): Remove.
9797 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9798 (find_layout, tui_apply_layout): New function.
9799 (layout_completer): Remove.
9800 (tui_next_layout): Reimplement.
9801 (tui_next_layout_command): New function.
9802 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9803 (tui_regs_layout): Reimplement.
9804 (tui_regs_layout_command): New function.
9805 (extract_display_start_addr): Rewrite.
9806 (next_layout, prev_layout): Remove.
9807 (tui_layout_window::replace_window): New method.
9808 (tui_layout_split::replace_window): New method.
9809 (destroy_layout): New function.
9810 (layout_list): New global.
9811 (add_layout_command): New function.
9812 (initialize_layouts): Update.
9813 (tui_layout_command): New function.
9814 (_initialize_tui_layout): Install "layout" commands.
9815 * tui/tui-data.h (enum tui_layout_type): Remove.
9816 (tui_current_layout): Don't declare.
9817
9818 2020-02-22 Tom Tromey <tom@tromey.com>
9819
9820 * tui/tui-regs.c (tui_reg_layout): Remove.
9821 (tui_reg_command): Use tui_regs_layout.
9822 * tui/tui-layout.h (tui_reg_command): Declare.
9823 * tui/tui-layout.c (tui_reg_command): New function.
9824
9825 2020-02-22 Tom Tromey <tom@tromey.com>
9826
9827 * tui/tui.c (tui_rl_delete_other_windows): Call
9828 tui_remove_some_windows.
9829 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9830 Declare method.
9831 (class tui_layout_window) <remove_windows>: New method.
9832 (class tui_layout_split) <remove_windows>: Declare.
9833 (tui_remove_some_windows): Declare.
9834 * tui/tui-layout.c (tui_remove_some_windows): New function.
9835 (tui_layout_split::remove_windows): New method.
9836
9837 2020-02-22 Tom Tromey <tom@tromey.com>
9838
9839 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9840 * tui/tui-layout.h (tui_next_layout): Declare.
9841 * tui/tui-layout.c (tui_next_layout): New function.
9842
9843 2020-02-22 Tom Tromey <tom@tromey.com>
9844
9845 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9846 correct coordinates.
9847
9848 2020-02-22 Tom Tromey <tom@tromey.com>
9849
9850 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9851 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9852 DATA_WIN case.
9853
9854 2020-02-22 Tom Tromey <tom@tromey.com>
9855
9856 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9857 TUI_DISASM_WIN, not tui_win_list.
9858
9859 2020-02-22 Tom Tromey <tom@tromey.com>
9860
9861 * valprint.c (generic_val_print_enum_1)
9862 (val_print_type_code_flags): Style member names.
9863 * rust-lang.c (val_print_struct, rust_print_enum)
9864 (rust_print_struct_def, rust_internal_print_type): Style member
9865 names.
9866 * p-valprint.c (pascal_object_print_value_fields): Style member
9867 names. Only call fprintf_symbol_filtered for static members.
9868 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9869 * f-valprint.c (f_val_print): Style member names.
9870 * f-typeprint.c (f_type_print_base): Style member names.
9871 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9872 call fprintf_symbol_filtered for static members.
9873 (cp_print_class_member): Style member names.
9874 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9875 member names.
9876 * ada-valprint.c (ada_print_scalar): Style enum names.
9877 (ada_val_print_enum): Likewise.
9878 * ada-typeprint.c (print_enum_type): Style enum names.
9879
9880 2020-02-21 Tom Tromey <tom@tromey.com>
9881
9882 * psympriv.h (struct partial_symtab): Update comment.
9883
9884 2020-02-21 Tom Tromey <tromey@adacore.com>
9885
9886 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9887 type is CORE_ADDR.
9888
9889 2020-02-21 Tom de Vries <tdevries@suse.de>
9890
9891 PR gdb/25534
9892 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9893 if dependencies[i]->user != NULL.
9894
9895 2020-02-21 Ali Tamur <tamur@google.com>
9896
9897 * dwarf2/read.c (dwarf2_name): Add null check.
9898
9899 2020-02-20 Tom Tromey <tom@tromey.com>
9900
9901 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9902 ">=", in binary search.
9903 (dwarf2_find_containing_comp_unit): New overload.
9904 (run_test): New self-test.
9905 (_initialize_dwarf2_read): Register new test.
9906
9907 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9908
9909 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9910 * riscv-tdep.h: Likewise.
9911 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9912 rv32-only CSR.
9913 * features/riscv/64bit-csr.xml: Regenerated.
9914
9915 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9916 Tom Tromey <tom@tromey.com>
9917
9918 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9919 of 'fputc_unfiltered'.
9920 (putchar_unfiltered): Call 'fputc_unfiltered'.
9921 (fputc_unfiltered): Call 'fputs_unfiltered'.
9922
9923 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9924
9925 * config.in: Regenerate.
9926 * configure: Regenerate.
9927 * configure.ac: Add --with-python-libdir option.
9928 * main.c: Use WITH_PYTHON_LIBDIR.
9929
9930 2020-02-19 Tom Tromey <tom@tromey.com>
9931
9932 * symtab.c (general_symbol_info::compute_and_set_names): Use
9933 obstack_strndup. Simplify call to symbol_set_demangled_name.
9934
9935 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9936
9937 * dwarf2/read.c (allocate_signatured_type_table,
9938 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9939 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9940 Remove objfile parameter, update all callers.
9941
9942 2020-02-19 Doug Evans <dje@google.com>
9943
9944 PR rust/25535
9945 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9946 rust_enum_variant calculation.
9947
9948 2020-02-19 Tom Tromey <tromey@adacore.com>
9949
9950 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9951
9952 2020-02-19 Tom Tromey <tromey@adacore.com>
9953
9954 * ada-lang.c (cache_symbol): Use obstack_strdup.
9955
9956 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9957
9958 * configure: Regenerate.
9959
9960 2020-02-19 Tom Tromey <tromey@adacore.com>
9961
9962 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9963 NULL check.
9964
9965 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9966
9967 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9968
9969 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9970
9971 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9972 if GDBSERVER is not defined.
9973 (riscv_tdesc_cache): Likewise, also store const target_desc.
9974 (STATIC_IN_GDB): Define.
9975 (riscv_create_target_description): Update declaration with
9976 STATIC_IN_GDB.
9977 (riscv_lookup_target_description): New function, only define if
9978 GDBSERVER is not defined.
9979 * arch/riscv.h (riscv_create_target_description): Declare only
9980 when GDBSERVER is defined.
9981 (riscv_lookup_target_description): New declaration when GDBSERVER
9982 is not defined.
9983 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9984 (riscv_linux_read_features): ...this, and return
9985 riscv_gdbarch_features instead of target_desc.
9986 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9987 (riscv_linux_read_description): Rename to...
9988 (riscv_linux_read_features): ...this.
9989 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9990 Update to use riscv_gdbarch_features and
9991 riscv_lookup_target_description.
9992 * riscv-tdep.c (riscv_find_default_target_description): Use
9993 riscv_lookup_target_description instead of
9994 riscv_create_target_description.
9995
9996 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9997
9998 * valprint.c (generic_val_print_enum_1): When printing a flag
9999 enum with value 0 and there is no enumerator with value 0, print
10000 just "0" instead of "(unknown: 0x0)".
10001
10002 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10003
10004 * valprint.c (generic_val_print_enum_1): Print unknown part of
10005 flag enum in hex.
10006
10007 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10008
10009 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10010 flag enums to contain duplicate enumerators.
10011 * valprint.c (generic_val_print_enum_1): Update comment.
10012
10013 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10014
10015 * dwarf2/read.c: Include "count-one-bits.h".
10016 (update_enumeration_type_from_children): If an enumerator has
10017 multiple bits set, don't treat the enumeration as a "flag enum".
10018 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10019 of flag enums have 0 or 1 bit set.
10020
10021 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10022
10023 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10024 conversion.
10025 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10026 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10027 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10028 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10029 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10030
10031 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10032
10033 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10034
10035 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10036
10037 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10038 displaced_step_closure_up.
10039 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10040 (struct displaced_step_closure_up):
10041 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10042 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10043 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10044 Likewise.
10045 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10046 * gdbarch.c, gdbarch.h: Re-generate.
10047 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10048 displaced_step_closure_up.
10049 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10050 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10051 * infrun.h (displaced_step_closure_up): New type alias.
10052 (struct displaced_step_inferior_state) <step_closure>: Change
10053 type to displaced_step_closure_up.
10054 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10055 displaced_step_closure_up.
10056 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10057
10058 2020-02-14 Tom Tromey <tom@tromey.com>
10059
10060 * minidebug.c (gnu_debug_key): New global.
10061 (find_separate_debug_file_in_section): Use it.
10062
10063 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10064
10065 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10066 std::unique_ptr.
10067 * gdbarch.c: Re-generate.
10068 * gdbarch.h: Re-generate.
10069 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10070 change.
10071 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10072 type to std::unique_ptr.
10073 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10074 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10075 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10076 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10077 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10078 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10079 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10080 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10081 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10082
10083 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10084
10085 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10086 std::unique_ptr.
10087 (displaced_step_clear): Rename to...
10088 (displaced_step_reset): ... this. Just call displaced->reset ().
10089 (displaced_step_clear_cleanup): Rename to...
10090 (displaced_step_reset_cleanup): ... this.
10091 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10092 (displaced_step_fixup): Likewise.
10093 (resume_1): Likewise.
10094 (handle_inferior_event): Restore child's memory before calling
10095 displaced_step_fixup on the parent.
10096 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10097 to std::unique_ptr.
10098 <step_closure>: Change type to std::unique_ptr.
10099
10100 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10101
10102 * arm-tdep.c: Include count-one-bits.h.
10103 (cleanup_block_store_pc): Use count_one_bits.
10104 (cleanup_block_load_pc): Use count_one_bits.
10105 (arm_copy_block_xfer): Use count_one_bits.
10106 (thumb2_copy_block_xfer): Use count_one_bits.
10107 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10108 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10109 (thumb_get_next_pcs_raw): Use count_one_bits.
10110 (arm_get_next_pcs_raw): Use count_one_bits_l.
10111 * arch/arm.c (bitcount): Remove.
10112 * arch/arm.h (bitcount): Remove.
10113
10114 2020-02-14 Tom Tromey <tromey@adacore.com>
10115
10116 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10117 Update.
10118 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10119 * dwarf2/loc.c (call_site_find_chain_1): Return
10120 unique_xmalloc_ptr.
10121 (call_site_find_chain): Likewise.
10122
10123 2020-02-14 Richard Biener <rguenther@suse.de>
10124
10125 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10126 on expression with division operators.
10127
10128 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10129
10130 * MAINTAINERS (Write After Approval): Adding myself.
10131
10132 2020-02-12 Tom Tromey <tom@tromey.com>
10133
10134 * event-loop.c (event_data, gdb_event, event_handler_func):
10135 Remove.
10136
10137 2020-02-12 Tom Tromey <tom@tromey.com>
10138
10139 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10140 (dwarf2_frame_objfile_data): Add comment.
10141 (find_comp_unit, set_comp_unit): New functions.
10142 (dwarf2_frame_find_fde): Use find_comp_unit.
10143 (dwarf2_build_frame_info): Use set_comp_unit.
10144
10145 2020-02-12 Tom Tromey <tom@tromey.com>
10146
10147 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10148 (comp_unit): Don't initialize objfile.
10149 (execute_cfa_program): Add text_offset parameter.
10150 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10151 (dwarf2_frame_cache): Update.
10152 (dwarf2_build_frame_info): Don't set "objfile" member.
10153
10154 2020-02-12 Tom Tromey <tom@tromey.com>
10155
10156 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10157 (decode_frame_entry): Likewise.
10158 (dwarf2_build_frame_info): Update.
10159
10160 2020-02-12 Tom Tromey <tom@tromey.com>
10161
10162 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10163 (decode_frame_entry_1): Use the comp_unit obstack.
10164
10165 2020-02-12 Tom Tromey <tom@tromey.com>
10166
10167 * dwarf2/frame.c (struct comp_unit): Add initializers and
10168 constructor.
10169 (dwarf2_frame_objfile_data): Store a comp_unit.
10170 (dwarf2_frame_find_fde): Update.
10171 (dwarf2_build_frame_info): Use "new".
10172
10173 2020-02-12 Tom Tromey <tom@tromey.com>
10174
10175 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10176 (dwarf2_fde_table): Typedef for std::vector.
10177 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10178 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10179 (decode_frame_entry): Update.
10180 (dwarf2_build_frame_info): Use "new".
10181
10182 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10183
10184 * arm-tdep.c (arm_gdbarch_init): Update.
10185 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10186 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10187 have_neon, is_m>: Change to bool.
10188
10189 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10190
10191 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10192
10193 2020-02-12 Tom Tromey <tom@tromey.com>
10194
10195 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10196
10197 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10198
10199 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10200 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10201
10202 2020-02-11 Tom Tromey <tom@tromey.com>
10203
10204 * psymtab.h: Update comment.
10205
10206 2020-02-11 Tom Tromey <tom@tromey.com>
10207
10208 * gdb_obstack.h (struct auto_obstack): Use
10209 DISABLE_COPY_AND_ASSIGN.
10210
10211 2020-02-11 Tom Tromey <tom@tromey.com>
10212
10213 * dwarf2/frame.h (struct objfile): Don't forward declare.
10214
10215 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10216
10217 * cris-tdep.c (cris_supply_gregset): Change signature to match
10218 what struct regset expects.
10219 (cris_regset): New struct.
10220 (fetch_core_registers): Remove.
10221 (cris_iterate_over_regset_sections): New function.
10222 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10223 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10224
10225 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10226
10227 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10228 registers.
10229
10230 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10231
10232 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10233
10234 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10235
10236 * configure: Re-generate.
10237
10238 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10239
10240 * configure: Re-generate.
10241
10242 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10243
10244 * acinclude: Update warning.m4 path.
10245 * warning.m4: Move to gdbsupport.
10246
10247 2020-02-11 Tom Tromey <tromey@adacore.com>
10248
10249 * remote.c (remote_console_output): Update.
10250 * printcmd.c (printf_command): Update.
10251 * event-loop.c (gdb_wait_for_event): Update.
10252 * linux-nat.c (sigchld_handler): Update.
10253 * remote-sim.c (gdb_os_write_stdout): Update.
10254 (gdb_os_flush_stdout): Update.
10255 (gdb_os_flush_stderr): Update.
10256 (gdb_os_write_stderr): Update.
10257 * exceptions.c (print_exception): Update.
10258 * remote-fileio.c (remote_fileio_func_read): Update.
10259 (remote_fileio_func_write): Update.
10260 * tui/tui.c (tui_enable): Update.
10261 * tui/tui-interp.c (tui_interp::init): Update.
10262 * utils.c (init_page_info): Update.
10263 (putchar_unfiltered, fputc_unfiltered): Update.
10264 (gdb_flush): Update.
10265 (emit_style_escape): Update.
10266 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10267 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10268 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10269 (stderr_file::write): Update.
10270 (stderr_file::puts): Update.
10271 * ui-file.h (ui_file_isatty, ui_file_write)
10272 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10273 (ui_file_puts): Don't declare.
10274
10275 2020-02-10 Tom de Vries <tdevries@suse.de>
10276
10277 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10278 sentinel to char *.
10279
10280 2020-02-09 Tom de Vries <tdevries@suse.de>
10281
10282 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10283 filename if it matches "<artificial>".
10284
10285 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10286
10287 * windows-tdep.c (struct enum_value_name): New struct.
10288 (create_enum): New function.
10289 (windows_get_siginfo_type): Create and use enum types.
10290
10291 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10292
10293 * NEWS: Mention $_siginfo support for Windows.
10294 * windows-nat.c (handle_exception): Set siginfo_er.
10295 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10296 (windows_xfer_siginfo): New function.
10297 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10298 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10299 (init_windows_gdbarch_data): New function.
10300 (get_windows_gdbarch_data): New function.
10301 (windows_get_siginfo_type): New function.
10302 (windows_init_abi): Register windows_get_siginfo_type.
10303 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10304
10305 2020-02-08 Tom Tromey <tom@tromey.com>
10306
10307 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10308 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10309 <keep>: Declare method.
10310 <m_keep>: Remove member.
10311 <~cutu_reader>: Remove.
10312 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10313 (cutu_reader::cutu_reader): Update.
10314 (cutu_reader::keep): Rename from ~cutu_reader.
10315 (process_psymtab_comp_unit, build_type_psymtabs_1)
10316 (process_skeletonless_type_unit, load_partial_comp_unit)
10317 (load_full_comp_unit, dwarf2_read_addr_index)
10318 (read_signatured_type): Update.
10319
10320 2020-02-08 Tom Tromey <tom@tromey.com>
10321
10322 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10323 "want_partial_unit" parameter.
10324 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10325 Inline check for DW_TAG_partial_unit.
10326 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10327
10328 2020-02-08 Tom Tromey <tom@tromey.com>
10329
10330 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10331 read.c.
10332 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10333 read.c.
10334
10335 2020-02-08 Tom Tromey <tom@tromey.com>
10336
10337 * dwarf2/read.c (read_address): Move to comp-unit.c.
10338 (dwarf2_rnglists_process, dwarf2_ranges_process)
10339 (read_attribute_value, dwarf_decode_lines_1)
10340 (var_decode_location, decode_locdesc): Update.
10341 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10342 read.c. Remove "cu" parameter.
10343 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10344 method.
10345
10346 2020-02-08 Tom Tromey <tom@tromey.com>
10347
10348 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10349 (read_indirect_line_string): Update.
10350 * dwarf2/comp-unit.c (read_offset): Remove.
10351 (read_comp_unit_head): Update.
10352 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10353 method.
10354 (read_offset): Don't declare.
10355
10356 2020-02-08 Tom Tromey <tom@tromey.com>
10357
10358 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10359 * dwarf2/read.c (struct comp_unit_head): Move to
10360 dwarf2/comp-unit.h.
10361 (enum class rcuh_kind): Move to comp-unit.h.
10362 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10363 (read_comp_unit_head, error_check_comp_unit_head)
10364 (read_and_check_comp_unit_head): Move to comp-unit.c.
10365 (read_offset, dwarf_unit_type_name): Likewise.
10366 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10367 (cutu_reader::cutu_reader, read_call_site_scope)
10368 (find_partial_die, follow_die_offset): Update.
10369 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10370
10371 2020-02-08 Tom Tromey <tom@tromey.com>
10372
10373 * dwarf2/read.c (read_offset_1): Move to leb.c.
10374 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10375 (dwarf_decode_macro_bytes): Update.
10376 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10377 * dwarf2/leb.h (read_offset): Declare.
10378
10379 2020-02-08 Tom Tromey <tom@tromey.com>
10380
10381 * dwarf2/read.c (dwarf2_section_size): Remove.
10382 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10383 Update.
10384 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10385
10386 2020-02-08 Tom Tromey <tom@tromey.com>
10387
10388 * dwarf2/read.c (read_initial_length): Move to leb.c.
10389 * dwarf2/leb.h (read_initial_length): Declare.
10390 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10391 handle_nonstd parameter.
10392 * dwarf2/frame.c (read_initial_length): Remove.
10393 (decode_frame_entry_1): Update.
10394
10395 2020-02-08 Tom Tromey <tom@tromey.com>
10396
10397 * dwarf2/loc.c (dwarf2_find_location_expression)
10398 (dwarf_evaluate_loc_desc::get_tls_address)
10399 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10400 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10401 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10402 (dwarf2_compile_property_to_c)
10403 (dwarf2_loc_desc_get_symbol_read_needs)
10404 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10405 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10406 (loclist_describe_location, loclist_tracepoint_var_ref)
10407 (loclist_generate_c_location): Update.
10408 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10409 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10410 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10411 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10412 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10413 (dwarf2_per_cu_data::addr_size)
10414 (dwarf2_per_cu_data::ref_addr_size)
10415 (dwarf2_per_cu_data::text_offset)
10416 (dwarf2_per_cu_data::addr_type): Now methods.
10417 (per_cu_header_read_in): Make per_cu "const".
10418 (dwarf2_version): Remove.
10419 (dwarf2_per_cu_data::int_type): Now a method.
10420 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10421 (set_die_type, read_array_type, read_subrange_index_type)
10422 (read_tag_string_type, read_subrange_type): Update.
10423 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10424 offset_size, ref_addr_size, text_offset, addr_type, version,
10425 objfile, int_type, addr_sized_int_type>: Declare methods.
10426
10427 2020-02-08 Tom Tromey <tom@tromey.com>
10428
10429 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10430 Move earlier.
10431
10432 2020-02-08 Tom Tromey <tom@tromey.com>
10433
10434 * dwarf2/read.h (dwarf_line_debug): Declare.
10435 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10436 * dwarf2/read.c: Move line_header code to new files.
10437 (dwarf_line_debug): No longer static.
10438 * dwarf2/line-header.c: New file.
10439 * dwarf2/line-header.h: New file.
10440
10441 2020-02-08 Tom Tromey <tom@tromey.com>
10442
10443 * dwarf2/read.c (struct line_header) <file_full_name,
10444 file_file_name>: Return unique_xmalloc_ptr.
10445 (line_header::file_file_name): Update.
10446 (line_header::file_full_name): Update.
10447 (dw2_get_file_names_reader): Update.
10448 (macro_start_file): Update.
10449
10450 2020-02-08 Tom Tromey <tom@tromey.com>
10451
10452 * dwarf2/read.c (struct line_header) <file_full_name,
10453 file_file_name>: Declare methods.
10454 (dw2_get_file_names_reader): Update.
10455 (file_file_name): Now a method.
10456 (file_full_name): Likewise.
10457 (macro_start_file): Update.
10458
10459 2020-02-08 Tom Tromey <tom@tromey.com>
10460
10461 * dwarf2/read.c (dwarf_always_disassemble)
10462 (show_dwarf_always_disassemble): Move to loc.c.
10463 (_initialize_dwarf2_read): Move "always-disassemble" registration
10464 to loc.c.
10465 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10466 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10467 static.
10468 (show_dwarf_always_disassemble): Move from read.c.
10469 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10470
10471 2020-02-08 Tom Tromey <tom@tromey.com>
10472
10473 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10474 (create_quick_file_names_table): Return htab_up.
10475 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10476 Update.
10477 * dwarf2/read.h (struct dwarf2_per_objfile)
10478 <quick_file_names_table>: Now htab_up.
10479
10480 2020-02-08 Tom Tromey <tom@tromey.com>
10481
10482 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10483
10484 2020-02-08 Tom Tromey <tom@tromey.com>
10485
10486 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10487 Rewrite.
10488 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10489 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10490 (abbrev_table::abbrev_table): No longer inline.
10491 (ABBREV_HASH_SIZE): Remove.
10492 (abbrev_table::m_abbrevs): Now an htab_up.
10493
10494 2020-02-08 Tom Tromey <tom@tromey.com>
10495
10496 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10497 (cutu_reader): Update.
10498 (build_type_psymtabs_1): Update.
10499 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10500 (abbrev_table::alloc_abbrev): Update.
10501 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10502 (abbrev_table::read): New static method, renamed from
10503 abbrev_table_read_table.
10504 (abbrev_table::alloc_abbrev)
10505 (abbrev_table::add_abbrev): Now private.
10506 (abbrev_table::abbrev_table): Now private.
10507 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10508
10509 2020-02-08 Tom Tromey <tom@tromey.com>
10510
10511 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10512 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10513 htab_up.
10514
10515 2020-02-08 Tom Tromey <tom@tromey.com>
10516
10517 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10518 htab_up.
10519 (lookup_dwo_unit_in_dwp): Update.
10520 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10521 on obstack.
10522
10523 2020-02-08 Tom Tromey <tom@tromey.com>
10524
10525 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10526 obstack.
10527
10528 2020-02-08 Tom Tromey <tom@tromey.com>
10529
10530 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10531 line_header_hash.
10532 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10533 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10534 Change type to htab_up.
10535
10536 2020-02-08 Tom Tromey <tom@tromey.com>
10537
10538 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10539 htab_up. Don't allocate on obstack.
10540 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10541 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10542 Change type to htab_up.
10543
10544 2020-02-08 Tom Tromey <tom@tromey.com>
10545
10546 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10547 Change type to htab_up.
10548 * dwarf2/read.c (create_signatured_type_table_from_index)
10549 (create_signatured_type_table_from_debug_names)
10550 (create_all_type_units, add_type_unit)
10551 (lookup_dwo_signatured_type, lookup_signatured_type)
10552 (process_skeletonless_type_unit): Update.
10553 (create_debug_type_hash_table, create_debug_types_hash_table):
10554 Change type of types_htab.
10555 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10556 htab_up. Don't allocate on obstack.
10557 (create_cus_hash_table): Change type of cus_htab parameter.
10558 (struct dwo_file) <cus, tus>: Now htab_up.
10559 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10560 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10561 (queue_and_load_all_dwo_tus): Update.
10562 * dwarf2/index-write.c (write_gdbindex): Update.
10563 (write_debug_names): Update.
10564
10565 2020-02-08 Tom Tromey <tom@tromey.com>
10566
10567 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10568 dwarf2/read.c. Remove "next" member. Add constructor ntad
10569 destructor.
10570 (struct dwarf2_per_objfile) <queue>: New member.
10571 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10572 dwarf2/read.h.
10573 (dwarf2_queue, dwarf2_queue_tail): Remove.
10574 (class dwarf2_queue_guard): Add parameter to constructor. Use
10575 DISABLE_COPY_AND_ASSIGN.
10576 <m_per_objfile>: New member.
10577 <~dwarf2_queue_guard>: Rewrite.
10578 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10579 Update.
10580 (~dwarf2_queue_item): New.
10581
10582 2020-02-08 Tom Tromey <tom@tromey.com>
10583
10584 * dwarf2/read.c (struct die_info) <has_children>: New member.
10585 (dw2_get_file_names_reader): Remove has_children.
10586 (dw2_get_file_names): Update.
10587 (read_cutu_die_from_dwo): Remove has_children.
10588 (cutu_reader::init_tu_and_read_dwo_dies)
10589 (cutu_reader::cutu_reader): Update.
10590 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10591 Remove has_children.
10592 (build_type_psymtabs_1, process_skeletonless_type_unit)
10593 (load_partial_comp_unit, load_full_comp_unit): Update.
10594 (create_dwo_cu_reader): Remove has_children.
10595 (create_cus_hash_table, read_die_and_children): Update.
10596 (read_full_die_1,read_full_die): Remove has_children.
10597 (read_signatured_type): Update.
10598 (class cutu_reader) <has_children>: Remove.
10599
10600 2020-02-08 Tom Tromey <tom@tromey.com>
10601
10602 * dwarf2/expr.c: Rename from dwarf2expr.c.
10603 * dwarf2/expr.h: Rename from dwarf2expr.h.
10604 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10605 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10606 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10607 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10608 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10609 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10610 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10611 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10612 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10613 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10614 * dwarf2/loc.c: Rename from dwarf2loc.c.
10615 * dwarf2/loc.h: Rename from dwarf2loc.h.
10616 * dwarf2/read.c: Rename from dwarf2read.c.
10617 * dwarf2/read.h: Rename from dwarf2read.h.
10618 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10619 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10620 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10621 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10622 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10623 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10624 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10625 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10626 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10627 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10628 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10629 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10630 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10631 Update.
10632 * Makefile.in (COMMON_SFILES): Update.
10633 (HFILES_NO_SRCDIR): Update.
10634
10635 2020-02-08 Tom Tromey <tom@tromey.com>
10636
10637 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10638 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10639
10640 2020-02-08 Tom Tromey <tom@tromey.com>
10641
10642 * dwarf2read.h (struct die_info): Don't declare.
10643
10644 2020-02-08 Tom Tromey <tom@tromey.com>
10645
10646 * dwarf2read.h (die_info_ptr): Remove typedef.
10647
10648 2020-02-08 Tom Tromey <tom@tromey.com>
10649
10650 * dwarf2read.c (read_call_site_scope)
10651 (handle_data_member_location, dwarf2_add_member_fn)
10652 (mark_common_block_symbol_computed, read_common_block)
10653 (attr_to_dynamic_prop, partial_die_info::read)
10654 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10655 (dwarf2_symbol_mark_computed, set_die_type): Update.
10656 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10657 method.
10658 (attr_form_is_block): Don't declare.
10659 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10660
10661 2020-02-08 Tom Tromey <tom@tromey.com>
10662
10663 * dwarf2read.c (dwarf2_find_base_address, )
10664 (read_call_site_scope, rust_containing_type)
10665 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10666 (handle_data_member_location, dwarf2_add_member_fn)
10667 (get_alignment, read_structure_type, process_structure_scope)
10668 (mark_common_block_symbol_computed, read_common_block)
10669 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10670 (partial_die_info::read, read_attribute_value, new_symbol)
10671 (lookup_die_type, dwarf2_get_ref_die_offset)
10672 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10673 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10674 (dwarf2_symbol_mark_computed): Update.
10675 * dwarf2/attribute.h (struct attribute) <value_as_address,
10676 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10677 methods.
10678 (value_as_address, attr_form_is_section_offset)
10679 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10680 * dwarf2/attribute.c (attribute::value_as_address)
10681 (attribute::form_is_section_offset, attribute::form_is_constant)
10682 (attribute::form_is_ref): Now methods.
10683
10684 2020-02-08 Tom Tromey <tom@tromey.com>
10685
10686 * dwarf2read.c (struct attribute, DW_STRING)
10687 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10688 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10689 (attr_form_is_block, attr_form_is_section_offset)
10690 (attr_form_is_constant, attr_form_is_ref): Move.
10691 * dwarf2/attribute.h: New file.
10692 * dwarf2/attribute.c: New file, from dwarf2read.c.
10693 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10694
10695 2020-02-08 Tom Tromey <tom@tromey.com>
10696
10697 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10698 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10699 Move.
10700 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10701 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10702 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10703 abbrev.c.
10704 * dwarf2/abbrev.h: New file.
10705 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10706 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10707
10708 2020-02-08 Tom Tromey <tom@tromey.com>
10709
10710 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10711 (dwarf2_section_size, dwarf2_get_section_info)
10712 (create_signatured_type_table_from_debug_names)
10713 (create_addrmap_from_aranges, read_debug_names_from_section)
10714 (get_gdb_index_contents_from_section, read_comp_unit_head)
10715 (error_check_comp_unit_head, read_abbrev_offset)
10716 (create_debug_type_hash_table, init_cu_die_reader)
10717 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10718 (read_comp_units_from_section, create_cus_hash_table)
10719 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10720 (create_dwp_v2_section, dwarf2_rnglists_process)
10721 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10722 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10723 (read_indirect_string_from_dwz, read_addr_index_1)
10724 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10725 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10726 (fill_in_loclist_baton): Update.
10727 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10728 get_containing_section, get_bfd_owner, get_bfd_section,
10729 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10730 (dwarf2_read_section, get_section_name, get_section_file_name)
10731 (get_containing_section, get_section_bfd_owner)
10732 (get_section_bfd_section, get_section_name, get_section_file_name)
10733 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10734 declare.
10735 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10736 (dwarf2_section_info::get_bfd_owner)
10737 (dwarf2_section_info::get_bfd_section)
10738 (dwarf2_section_info::get_name)
10739 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10740 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10741 (dwarf2_section_info::read): Now methods.
10742 * dwarf-index-write.c (class debug_names): Update.
10743
10744 2020-02-08 Tom Tromey <tom@tromey.com>
10745
10746 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10747 Move to dwarf2/section.h.
10748 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10749 (get_section_bfd_section, get_section_name)
10750 (get_section_file_name, get_section_id, get_section_flags)
10751 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10752 dwarf2/section.c.
10753 * dwarf2/section.h: New file.
10754 * dwarf2/section.c: New file, from dwarf2read.c.
10755 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10756
10757 2020-02-08 Tom Tromey <tom@tromey.com>
10758
10759 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10760 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10761 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10762 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10763 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10764 * dwarf2/leb.h: New file, from dwarf2read.c.
10765 * dwarf2/leb.c: New file, from dwarf2read.c.
10766 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10767 Remove.
10768 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10769 (COMMON_SFILES): Add dwarf2/leb.c.
10770
10771 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10772
10773 GDB 9.1 released.
10774
10775 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10776
10777 PR gdb/25190:
10778 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10779 * gdb/remote.c (remote_console_output): Update.
10780 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10781 (ui_file_puts): ...this.
10782 * gdb/ui-file.h (ui_file_puts): Add declaration.
10783 * gdb/utils.c (emit_style_escape): Update.
10784 (flush_wrap_buffer): Update.
10785 (fputs_maybe_filtered): Update.
10786 (fputs_unfiltered): Add function.
10787
10788 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10789
10790 * gdb/event-loop.c (gdb_wait_for_event): Update.
10791 * gdb/printcmd.c (printf_command): Update.
10792 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10793 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10794 (gdb_os_flush_stderr): Update.
10795 * gdb/remote.c (remote_console_output): Update.
10796 * gdb/ui-file.c (gdb_flush): Rename to...
10797 (ui_file_flush): ...this.
10798 (stderr_file::write): Update.
10799 (stderr_file::puts): Update.
10800 * gdb/ui-file.h (gdb_flush): Rename to...
10801 (ui_file_flush): ...this.
10802 * gdb/utils.c (gdb_flush): Add function.
10803 * gdb/utils.h (gdb_flush): Add declaration.
10804
10805 2020-02-07 Tom Tromey <tromey@adacore.com>
10806
10807 PR breakpoints/24915:
10808 * source.c (find_and_open_source): Do not check basenames_may_differ.
10809
10810 2020-02-07 Tom Tromey <tom@tromey.com>
10811
10812 * README: Update gdbserver documentation.
10813 * gdbserver: Move to top level.
10814 * configure.tgt (build_gdbserver): Remove.
10815 * configure.ac: Remove --enable-gdbserver.
10816 * configure: Rebuild.
10817 * Makefile.in (distclean): Don't mention gdbserver.
10818
10819 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10820
10821 * source-cache.c (source_cache::ensure): Surround
10822 get_plain_source_lines with a try/catch.
10823 (source_cache::get_line_charpos): Get rid of try/catch
10824 and only check for the return value of "ensure".
10825 * tui/tui-source.c (tui_source_window::set_contents):
10826 Simplify "nlines" calculation.
10827
10828 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10829
10830 * MAINTAINERS (Write After Approval): Add myself.
10831
10832 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10833
10834 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10835 function call.
10836
10837 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10838
10839 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10840
10841 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10842
10843 * nat/riscv-linux-tdesc.h: New file.
10844 * nat/riscv-linux-tdesc.c: New file, taking code from...
10845 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10846 ... here.
10847 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10848 NATDEPFILES.
10849
10850 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10851
10852 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10853 we don't set the fake simulator ptid to the null_ptid.
10854
10855 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10856
10857 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10858 * gdbthread.h (class thread_info) <resumed>: Likewise.
10859 * infrun.c (resume_1): Likewise.
10860 (proceed): Likewise.
10861 (infrun_thread_stop_requested): Likewise.
10862 (stop_all_threads): Likewise.
10863 (handle_inferior_event): Likewise.
10864 (restart_threads): Likewise.
10865 (finish_step_over): Likewise.
10866 (keep_going_stepped_thread): Likewise.
10867 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10868 (linux_handle_extended_wait): Likewise.
10869 * record-btrace.c (get_thread_current_frame_id): Likewise.
10870 * record-full.c (record_full_wait_1): Likewise.
10871 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10872 * target.c (target_resume): Likewise.
10873 * thread.c (set_running_thread): Likewise.
10874
10875 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10876
10877 * f-valprint.c (f77_print_array_1): Changed datatype of index
10878 variable to LONGEST from int to enable it to contain bound
10879 values correctly.
10880
10881 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10882
10883 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10884 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10885 offsets according to FLEN determined.
10886 (riscv_linux_nat_target::read_description): Determine FLEN
10887 dynamically.
10888 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10889 according to FLEN determined.
10890 (riscv_linux_nat_target::store_registers): Likewise.
10891
10892 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10893
10894 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10895 when reg->group is empty and reggroup is not.
10896
10897 2020-01-31 Tom Tromey <tromey@adacore.com>
10898
10899 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10900 Call beneath target's mourn_inferior after unpushing.
10901
10902 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10903
10904 PR tui/9765
10905 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10906 have enough lines to fill the screen, still return the lowest
10907 address we found.
10908
10909 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10910
10911 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10912 '-', '<', and '>' commands.
10913
10914 2020-01-29 Pedro Alves <palves@redhat.com>
10915 Sergio Durigan Junior <sergiodj@redhat.com>
10916
10917 * infcmd.c (construct_inferior_arguments): Assert that
10918 'argc' is greater than 0.
10919
10920 2020-01-29 Luis Machado <luis.machado@linaro.org>
10921
10922 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10923 (BRK_INSN_MASK): Define to 0xd4200000.
10924 (aarch64_program_breakpoint_here_p): New function.
10925 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10926 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10927 breakpoint.c.
10928 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10929 breakpoint.h
10930 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10931 call gdbarch_program_breakpoint_here_p.
10932 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10933 default_program_breakpoint_here_p, changed return type to bool and
10934 simplified.
10935 * breakpoint.h (program_breakpoint_here): Moved prototype to
10936 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10937 return type to bool.
10938 * gdbarch.c: Regenerate.
10939 * gdbarch.h: Regenerate.
10940 * gdbarch.sh (program_breakpoint_here_p): New method.
10941 * infrun.c (handle_signal_stop): Call
10942 gdbarch_program_breakpoint_here_p.
10943
10944 2020-01-26 Tom Tromey <tom@tromey.com>
10945
10946 * ctfread.c (struct ctf_fp_info): Reindent.
10947 (_initialize_ctfread): Remove.
10948
10949 2020-01-26 Tom Tromey <tom@tromey.com>
10950
10951 * psymtab.c (partial_map_expand_apply)
10952 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10953 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10954 (psym_print_stats, psym_expand_symtabs_for_function)
10955 (psym_map_symbol_filenames, psym_map_matching_symbols)
10956 (psym_expand_symtabs_matching)
10957 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10958 (maintenance_check_psymtabs): Use new methods.
10959 * psympriv.h (struct partial_symtab) <readin_p,
10960 get_compunit_symtab>: New methods.
10961 <readin, compunit_symtab>: Remove members.
10962 (struct standard_psymtab): New.
10963 (struct legacy_psymtab): Derive from standard_psymtab.
10964 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10965 standard_psymtab.
10966 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10967
10968 2020-01-26 Tom Tromey <tom@tromey.com>
10969
10970 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10971 read_dependencies. Add assert.
10972 * psymtab.c (partial_symtab::read_dependencies): New method.
10973 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10974 method.
10975 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10976 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10977 read_dependencies.
10978 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10979 Add assert.
10980
10981 2020-01-26 Tom Tromey <tom@tromey.com>
10982
10983 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10984 Call expand_psymtab.
10985 (xcoff_read_symtab): Call expand_psymtab.
10986 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10987 legacy_expand_psymtab.
10988 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10989 method.
10990 (struct legacy_psymtab) <expand_psymtab>: Implement.
10991 <legacy_expand_psymtab>: New member.
10992 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10993 (parse_partial_symbols): Set legacy_expand_psymtab.
10994 (psymtab_to_symtab_1): Change argument order. Call
10995 expand_psymtab.
10996 (new_psymtab): Set legacy_expand_psymtab.
10997 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10998 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10999 expand_psymtab.
11000 (dwarf2_psymtab::expand_psymtab): Rename from
11001 psymtab_to_symtab_1. Call expand_psymtab.
11002 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11003 (dbx_end_psymtab): Likewise.
11004 (dbx_psymtab_to_symtab_1): Change argument order. Call
11005 expand_psymtab.
11006 (dbx_read_symtab): Call expand_psymtab.
11007 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11008 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11009 (ctf_psymtab::read_symtab): Call expand_psymtab.
11010
11011 2020-01-26 Tom Tromey <tom@tromey.com>
11012
11013 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11014 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11015 messages.
11016 * mdebugread.c (mdebug_read_symtab): Remove prints.
11017 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11018 assert.
11019 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11020
11021 2020-01-26 Tom Tromey <tom@tromey.com>
11022
11023 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11024 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11025 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11026 legacy_symtab.
11027 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11028 * psymtab.c (psymtab_to_symtab): Call method.
11029 (dump_psymtab): Update.
11030 * psympriv.h (struct partial_symtab): Add virtual destructor.
11031 <read_symtab>: New method.
11032 (struct legacy_symtab): New.
11033 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11034 (struct pst_map) <pst>: Now a legacy_psymtab.
11035 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11036 (new_psymtab): Use legacy_psymtab.
11037 * dwarf2read.h (struct dwarf2_psymtab): New.
11038 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11039 * dwarf2read.c (dwarf2_create_include_psymtab)
11040 (dwarf2_build_include_psymtabs, create_type_unit_group)
11041 (create_partial_symtab, process_psymtab_comp_unit_reader)
11042 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11043 (set_partial_user): Use dwarf2_psymtab.
11044 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11045 (psymtab_to_symtab_1, process_full_comp_unit)
11046 (process_full_type_unit, dwarf2_ranges_read)
11047 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11048 (dwarf_decode_lines): Use dwarf2_psymtab.
11049 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11050 (add_address_entry_worker, write_one_signatured_type)
11051 (recursively_count_psymbols, recursively_write_psymbols)
11052 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11053 (write_debug_names): Likewise.
11054 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11055 <pst>: Now a legacy_psymtab.
11056 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11057 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11058 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11059 * ctfread.c (struct ctf_psymtab): New.
11060 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11061 ctf_psymtab.
11062 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11063 (create_partial_symtab): Return a ctf_psymtab.
11064 (scan_partial_symbols): Update.
11065
11066 2020-01-26 Tom Tromey <tom@tromey.com>
11067
11068 * xcoffread.c (xcoff_start_psymtab): Use new.
11069 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11070 renamed from start_psymtab_common.
11071 * psympriv.h (struct partial_symtab): Add new constructor.
11072 (start_psymtab_common): Don't declare.
11073 * mdebugread.c (parse_partial_symbols): Use new.
11074 * dwarf2read.c (create_partial_symtab): Use new.
11075 * dbxread.c (start_psymtab): Use new.
11076 * ctfread.c (create_partial_symtab): Use new.
11077
11078 2020-01-26 Tom Tromey <tom@tromey.com>
11079
11080 * xcoffread.c (xcoff_end_psymtab): Use new.
11081 * psymtab.c (start_psymtab_common): Use new.
11082 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11083 Update.
11084 * psympriv.h (struct partial_symtab): Add parameters to
11085 constructor. Don't inline.
11086 (allocate_psymtab): Don't declare.
11087 * mdebugread.c (new_psymtab): Use new.
11088 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11089 * dbxread.c (dbx_end_psymtab): Use new.
11090
11091 2020-01-26 Tom Tromey <tom@tromey.com>
11092
11093 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11094 allocate_psymtab. Update documentation.
11095 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11096 allocate_psymtab. Do not use new.
11097 (allocate_psymtab): Use new. Update.
11098
11099 2020-01-26 Tom Tromey <tom@tromey.com>
11100
11101 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11102 * psymtab.c (psym_print_stats): Update.
11103 * psympriv.h (struct partial_symtab) <readin,
11104 psymtabs_addrmap_supported, anonymous>: Now bool.
11105 * mdebugread.c (psymtab_to_symtab_1): Update.
11106 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11107 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11108 (process_full_comp_unit, process_full_type_unit): Update.
11109 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11110 * ctfread.c (psymtab_to_symtab): Update.
11111
11112 2020-01-26 Tom Tromey <tom@tromey.com>
11113
11114 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11115 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11116 * psymtab.c (psymtab_storage): Delete psymtabs.
11117 (psymtab_storage::allocate_psymtab): Use new.
11118 (psymtab_storage::discard_psymtab): Use delete.
11119 * psympriv.h (struct partial_symtab): Add constructor and
11120 initializers.
11121
11122 2020-01-26 Tom Tromey <tom@tromey.com>
11123
11124 * machoread.c: Do not include psympriv.h.
11125
11126 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11127
11128 * NEWS: Mention the new option and the set/show commands.
11129
11130 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11131
11132 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11133 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11134 (validate_exec_file): New variables, enums, functions.
11135 (exec_file_locate_attach, print_section_info): Style the filenames.
11136 (_initialize_exec): Install show_exec_file_mismatch_command and
11137 set_exec_file_mismatch_command.
11138 * gdbcore.h (validate_exec_file): Declare.
11139 * infcmd.c (attach_command): Call validate_exec_file.
11140 * remote.c ( remote_target::remote_add_inferior): Likewise.
11141
11142 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11143
11144 * frame.c (find_frame_sal): Move call to get_next_frame into more
11145 inner scope.
11146 * inline-frame.c (inilne_state) <inline_state>: Update argument
11147 types.
11148 (inilne_state) <skipped_symbol>: Rename to...
11149 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11150 (skip_inline_frames): Build vector of skipped symbols and use this
11151 to reate the inline_state.
11152 (inline_skipped_symbol): Add a comment and some assertions, fetch
11153 skipped symbol from the list.
11154
11155 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11156
11157 * buildsym.c (lte_is_less_than): Delete.
11158 (buildsym_compunit::end_symtab_with_blockvector): Create local
11159 lambda function to sort line table entries, and use
11160 std::stable_sort instead of std::sort.
11161 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11162 markers when looking for a previous line.
11163
11164 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11165
11166 * dwarf2read.c (lnp_state_machine::record_line): Include
11167 end_sequence parameter in debug print out. Record the line if we
11168 are at an end_sequence marker even if it's not the start of a
11169 statement.
11170 * symmisc.c (maintenance_print_one_line_table): Print end of
11171 sequence markers with 'END' not '0'.
11172
11173 2020-01-24 Pedro Alves <palves@redhat.com>
11174
11175 PR gdb/25410
11176 * thread.c (scoped_restore_current_thread::restore): Use
11177 switch_to_inferior_no_thread.
11178 * exec.c: Include "progspace-and-thread.h".
11179 (add_target_sections, remove_target_sections):
11180 scoped_restore_current_pspace_and_thread instead of
11181 scoped_restore_current_thread.
11182 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11183 and aspace to the inferior before calling clone_program_space.
11184 Remove stale comment.
11185
11186 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11187
11188 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11189 (arm_netbsd_nat_target::fetch_registers): ...this.
11190 (arm_nbsd_nat_target::store_registers): Rename to...
11191 (arm_netbsd_nat_target::store_registers): ...this.
11192
11193 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11194
11195 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11196 register_t.
11197
11198 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11199
11200 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11201 Update comment.
11202 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11203 Likewise.
11204 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11205 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11206 the correct replacement (iterate_over_regset_sections).
11207 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11208 Update comment.
11209
11210 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11211
11212 PR gdb/23718
11213 * gdb/python/python.c (execute_gdb_command): Call
11214 async_enable_stdin in catch block.
11215
11216 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11217
11218 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11219 SWITCH_THRU_ALL_UIS.
11220
11221 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11222
11223 PR tui/9765
11224 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11225 comment, add extra parameter, and update to store previous symbol
11226 when appropriate.
11227 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11228 add extra parameter.
11229 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11230 remove unneeded parameter, add try/catch around gdb_print_insn,
11231 rewrite to add items to asm_lines vector.
11232 (tui_find_backward_disassembly_start_address): New function.
11233 (tui_find_disassembly_address): Updated throughout.
11234 (tui_disasm_window::set_contents): Update for changes to
11235 tui_disassemble.
11236 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11237 number of lines to scroll.
11238
11239 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11240
11241 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11242 (SECT_OFF_DATA): Likewise.
11243 (SECT_OFF_RODATA): Likewise.
11244 (SECT_OFF_TEXT): Likewise.
11245 (SECT_OFF_BSS): Likewise.
11246 (struct objfile) <text_section_offset, data_section_offset>: New
11247 methods.
11248 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11249 objfile::text_section_offset.
11250 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11251 * coffread.c (coff_symtab_read): Likewise.
11252 (enter_linenos): Likewise.
11253 (process_coff_symbol): Likewise.
11254 * ctfread.c (get_objfile_text_range): Likewise.
11255 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11256 Use objfile::data_section_offset.
11257 * dwarf2-frame.c (execute_cfa_program): Use
11258 objfile::text_section_offset.
11259 (dwarf2_frame_find_fde): Likewise.
11260 * dwarf2read.c (create_addrmap_from_index): Likewise.
11261 (create_addrmap_from_aranges): Likewise.
11262 (dw2_find_pc_sect_compunit_symtab): Likewise.
11263 (process_psymtab_comp_unit_reader): Likewise.
11264 (add_partial_symbol): Likewise.
11265 (add_partial_subprogram): Likewise.
11266 (process_full_comp_unit): Likewise.
11267 (read_file_scope): Likewise.
11268 (read_func_scope): Likewise.
11269 (read_lexical_block_scope): Likewise.
11270 (read_call_site_scope): Likewise.
11271 (dwarf2_rnglists_process): Likewise.
11272 (dwarf2_ranges_process): Likewise.
11273 (dwarf2_ranges_read): Likewise.
11274 (dwarf_decode_lines_1): Likewise.
11275 (new_symbol): Likewise.
11276 (dwarf2_fetch_die_loc_sect_off): Likewise.
11277 (dwarf2_per_cu_text_offset): Likewise.
11278 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11279 * hppa-tdep.c (read_unwind_info): Likewise.
11280 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11281 * psympriv.h (struct partial_symtab): Likewise.
11282 * psymtab.c (find_pc_sect_psymtab): Likewise.
11283 * solib-svr4.c (enable_break): Likewise.
11284 * stap-probe.c (relocate_address): Use
11285 objfile::data_section_offset.
11286 * xcoffread.c (enter_line_range): Use
11287 objfile::text_section_offset.
11288 (read_xcoff_symtab): Likewise.
11289
11290 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11291
11292 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11293 declaration to narrower scopes.
11294
11295 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11296
11297 * darwin-nat.h (struct darwin_exception_msg, enum
11298 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11299 Move up.
11300 (class darwin_nat_target) <wait_1, check_new_threads,
11301 decode_exception_message, decode_message, stop_inferior,
11302 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11303 * darwin-nat.c (darwin_check_new_threads): Rename to...
11304 (darwin_nat_target::check_new_threads): ... this.
11305 (darwin_suspend_inferior_it): Remove.
11306 (darwin_decode_exception_message): Rename to...
11307 (darwin_nat_target::decode_exception_message): ... this.
11308 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11309 (darwin_decode_message): Rename to...
11310 (darwin_nat_target::decode_message): ... this.
11311 (cancel_breakpoint): Rename to...
11312 (darwin_nat_target::cancel_breakpoint): ... this.
11313 (darwin_wait): Rename to...
11314 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11315 instead of iterate_over_inferiors.
11316 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11317 (darwin_stop_inferior): Rename to...
11318 (darwin_nat_target::stop_inferior): ... this.
11319 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11320 (darwin_init_thread_list): Rename to...
11321 (darwin_nat_target::init_thread_list): ... this.
11322 (darwin_ptrace_him): Rename to...
11323 (darwin_nat_target::ptrace_him): ... this.
11324 (darwin_nat_target::create_inferior): Pass lambda function to
11325 fork_inferior.
11326 (darwin_nat_target::detach): Call stop_inferior instead of
11327 darwin_stop_inferior.
11328 * fork-inferior.h (fork_inferior): Change init_trace_fun
11329 parameter to gdb::function_view.
11330 * fork-inferior.c (fork_inferior): Likewise.
11331
11332 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11333
11334 * i386-cygwin-tdep.c (core_process_module_section): Update.
11335 * windows-nat.c (struct lm_info_windows): Add text_offset.
11336 (windows_xfer_shared_libraries): Update.
11337 * windows-tdep.c (windows_xfer_shared_library):
11338 Add text_offset_cached argument.
11339 * windows-tdep.h (windows_xfer_shared_library): Update.
11340
11341 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11342
11343 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11344
11345 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11346
11347 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11348 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11349 replace with range-based for.
11350 (gdbsim_interrupt_inferior): Remove.
11351 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11352 with a range-based for. Inline code from
11353 gdbsim_interrupt_inferior.
11354
11355 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11356
11357 * infrun.c (proceed): Fix indentation.
11358
11359 2020-01-21 Tom Tromey <tromey@adacore.com>
11360
11361 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11362 * python/python.c (python_extension_ops): Update.
11363 (gdbpy_colorize): New function.
11364 * python/lib/gdb/__init__.py (colorize): New function.
11365 * extension.h (ext_lang_colorize): Declare.
11366 * extension.c (ext_lang_colorize): New function.
11367 * extension-priv.h (struct extension_language_ops) <colorize>: New
11368 member.
11369 * cli/cli-style.c (_initialize_cli_style): Update help text.
11370
11371 2020-01-21 Luis Machado <luis.machado@linaro.org>
11372
11373 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11374 <cond>: Change type to bool.
11375 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11376 (aarch64_displaced_step_cb): Likewise.
11377 (aarch64_displaced_step_tb): Likewise.
11378
11379 2020-01-21 Luis Machado <luis.machado@linaro.org>
11380
11381 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11382 output.
11383
11384 2020-01-21 Luis Machado <luis.machado@linaro.org>
11385
11386 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11387 <pc_adjust>: Adjust the documentation.
11388 (aarch64_displaced_step_fixup): Check if PC really moved before
11389 adjusting it.
11390
11391 2020-01-19 Tom Tromey <tom@tromey.com>
11392
11393 * disasm.c (~gdb_disassembler): New destructor.
11394 (gdb_buffered_insn_length): Call disassemble_free_target.
11395 * disasm.h (class gdb_disassembler): Declare destructor. Use
11396 DISABLE_COPY_AND_ASSIGN.
11397
11398 2020-01-19 Tom Tromey <tom@tromey.com>
11399
11400 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11401 (die_reader_func_ftype): Remove.
11402 (cutu_reader): New class.
11403 (dw2_get_file_names_reader): Remove "data" parameter.
11404 (dw2_get_file_names): Use cutu_reader.
11405 (create_debug_type_hash_table): Update.
11406 (read_cutu_die_from_dwo): Update comment.
11407 (lookup_dwo_unit): Add dwo_name parameter.
11408 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11409 die_reader_func_ftype and data parameters.
11410 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11411 Remove die_reader_func_ftype and data parameters.
11412 (~cutu_reader): New; from init_cutu_and_read_dies.
11413 (cutu_reader::cutu_reader): Rename from
11414 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11415 and data parameters.
11416 (init_cutu_and_read_dies_simple): Remove.
11417 (struct process_psymtab_comp_unit_data): Remove.
11418 (process_psymtab_comp_unit_reader): Remove data parameter; add
11419 want_partial_unit and pretend_language parameters.
11420 (process_psymtab_comp_unit): Use cutu_reader.
11421 (build_type_psymtabs_reader): Remove data parameter.
11422 (build_type_psymtabs_1): Use cutu_reader.
11423 (process_skeletonless_type_unit): Likewise.
11424 (load_partial_comp_unit_reader): Remove.
11425 (load_partial_comp_unit): Use cutu_reader.
11426 (load_full_comp_unit_reader): Remove.
11427 (load_full_comp_unit): Use cutu_reader.
11428 (struct create_dwo_cu_data): Remove.
11429 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11430 dwo_unit parameters.
11431 (create_cus_hash_table): Use cutu_reader.
11432 (struct dwarf2_read_addr_index_data): Remove.
11433 (dwarf2_read_addr_index_reader): Remove.
11434 (dwarf2_read_addr_index): Use cutu_reader.
11435 (read_signatured_type_reader): Remove.
11436 (read_signatured_type): Use cutu_reader.
11437
11438 2020-01-19 Tom Tromey <tom@tromey.com>
11439
11440 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11441 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11442 (tui_wrefresh): Declare.
11443 * tui/tui-wingeneral.c (suppress_output): New global.
11444 (tui_suppress_output, ~tui_suppress_output): New constructor and
11445 destructor.
11446 (tui_wrefresh): New function.
11447 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11448 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11449 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11450 method.
11451 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11452 tui_wrefresh.
11453 (tui_data_window::no_refresh): New method.
11454 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11455 (tui_reg_command): Use tui_suppress_output
11456 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11457 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11458 method.
11459 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11460
11461 2020-01-19 Tom Tromey <tom@tromey.com>
11462
11463 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11464 Handle case where symtab is null.
11465
11466 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11467
11468 * linux-fork.c (one_fork_p): Simplify.
11469
11470 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11471
11472 * top.c (struct qt_args): Remove.
11473 (kill_or_detach): Change return type to void, replace `void *`
11474 parameter with a proper one.
11475 (print_inferior_quit_action): Likewise.
11476 (quit_confirm): Use range-based for loop to iterate over inferiors.
11477 (quit_force): Likewise.
11478
11479 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11480
11481 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11482 `void *` parameter with proper parameters.
11483 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11484 (print_one_inferior): Change return type to void, replace `void *`
11485 parameter with proper parameters.
11486 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11487 inferiors.
11488 (get_other_inferior): Remove.
11489 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11490 inferiors.
11491
11492 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11493
11494 * mi/mi-interp.c (report_initial_inferior): Remove.
11495 (mi_interp::init): Use range-based for to iterate over inferiors.
11496
11497 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11498
11499 * python/py-inferior.c (build_inferior_list): Remove.
11500 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11501
11502 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11503
11504 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11505 (btrace_stitch_trace): Likewise.
11506 * charset.c (intermediate_encoding): Likewise (vaild).
11507 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11508 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11509 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11510
11511 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11512
11513 * windows-tdep.c (windows_get_tlb_type):
11514 Add rtl_user_process_parameters type.
11515
11516 2020-01-16 Pedro Alves <palves@redhat.com>
11517 Norbert Lange <nolange79@gmail.com>
11518
11519 PR build/24805
11520 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11521 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11522 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11523 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11524 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11525 (ps_plog): Redeclare exported functions with default visibility.
11526
11527 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11528
11529 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11530 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11531
11532 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11533
11534 * infcmd.c (post_create_inferior): Use get_thread_regcache
11535 instead of get_current_regcache.
11536
11537 2020-01-14 Tom Tromey <tom@tromey.com>
11538
11539 PR symtab/12535:
11540 * python/python.c (gdbpy_decode_line): Treat empty string the same
11541 as no argument.
11542
11543 2020-01-14 Tom Tromey <tom@tromey.com>
11544
11545 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11546
11547 2020-01-14 Tom Tromey <tom@tromey.com>
11548
11549 * nat/linux-btrace.c: Don't include <config.h>.
11550 * nat/linux-ptrace.c: Don't include <config.h>.
11551 * nat/x86-linux-dregs.c: Don't include <config.h>.
11552
11553 2020-01-14 Tom Tromey <tom@tromey.com>
11554
11555 * configure: Rebuild.
11556 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11557
11558 2020-01-14 Tom Tromey <tom@tromey.com>
11559
11560 * nat/x86-linux-dregs.c: Include configh.h.
11561 * nat/linux-ptrace.c: Include configh.h.
11562 * nat/linux-btrace.c: Include configh.h.
11563 * defs.h: Include config.h, bfd.h.
11564 * configure.ac: Don't source common.host.
11565 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11566 * configure: Rebuild.
11567 * acinclude.m4: Update path.
11568 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11569 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11570 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11571 (CLIBS): Add LIBSUPPORT.
11572 (CDEPS): Likewise.
11573 (COMMON_SFILES): Remove gdbsupport files.
11574 (HFILES_NO_SRCDIR): Likewise.
11575 (stamp-version): Update path to create-version.sh.
11576 (ALLDEPFILES): Remove gdbsupport files.
11577
11578 2020-01-14 Tom Tromey <tom@tromey.com>
11579
11580 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11581 USE_WIN32API when needed.
11582 * configure.ac (USE_WIN32API): Don't define.
11583 (WIN32LIBS): Use WIN32APILIBS.
11584 * configure: Rebuild.
11585
11586 2020-01-14 Tom Tromey <tom@tromey.com>
11587
11588 * configure: Rebuild.
11589 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11590
11591 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11592
11593 * skip.c (skip_function_command): Make skip w/o arguments use the
11594 name of the inlined function if pc is inside any inlined function.
11595
11596 2020-01-14 Luis Machado <luis.machado@linaro.org>
11597
11598 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11599 * infrun.c (resume_1): Likewise.
11600 (handle_inferior_event): Remove stale comment.
11601 * linux-nat.c (linux_nat_target::resume): Update comments.
11602 (save_stop_reason): Likewise.
11603 (linux_nat_filter_event): Likewise.
11604 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11605
11606 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11607
11608 * elfread.c (record_minimal_symbol): Set section index to 0 for
11609 non-allocatable sections.
11610
11611
11612 2020-01-13 Ali Tamur <tamur@google.com>
11613
11614 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11615 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11616 to gdb::optional. Update comments.
11617 (dwo_file): Update comments.
11618 (read_attribute): Update API to take an additional out parameter,
11619 need_reprocess. This is used to mark attributes that need other
11620 attributes (e.g. str_offsets_base) for correct computation which may not
11621 have been read yet.
11622 (read_attribute_reprocess): New function declaration.
11623 (read_addr_index): Likewise.
11624 (read_dwo_str_index): Likewise.
11625 (read_stub_str_index): Likewise.
11626 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11627 (lookup_addr_base): New function definition.
11628 (lookup_ranges_base): Likewise.
11629 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11630 lookup_ranges_base.
11631 (init_cutu_and_read_dies): Update comments.
11632 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11633 unit. This is used to inherit parent's str_offsets_base and addr_base.
11634 Update comments.
11635 (init_cutu_and_read_dies_simple): Reflect API changes.
11636 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11637 (create_cus_hash_table): Change API to take parent compile unit.
11638 Reflect API changes.
11639 (open_and_init_dwo_file): Reflect API changes.
11640 (dwarf2_get_pc_bounds): Update comments.
11641 (dwarf2_record_block_ranges): Likewise.
11642 (read_full_die_1): Change implementation to reprocess attributes that
11643 need str_offsets_base and addr_base.
11644 (partial_die_info::read): Likewise.
11645 (read_attribute_reprocess): New function definition.
11646 (read_attribute_value): Change API to take an additional out parameter,
11647 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11648 when a non-dwo compile unit has index based attributes.
11649 (read_attribute): Reflect API changes.
11650 (read_addr_index_1): Reflect API changes. Update comments.
11651 (dwarf2_read_addr_index_data): Reflect API changes.
11652 (dwarf2_read_addr_index): Likewise.
11653 (read_str_index): Change API and implementation. This becomes a helper
11654 to be used by the new string index related methods. Update error
11655 message and comments.
11656 (read_dwo_str_index): New function definition.
11657 (read_stub_str_index): Likewise.
11658 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11659 * symfile.h (dwarf2_debug_sections): Likewise.
11660 * xcoffread.c (dwarf2_debug_sections): Likewise.
11661
11662 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11663
11664 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11665 core_reg_sect type to gdb_byte *.
11666 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11667 * cris-tdep.c (fetch_core_registers): Likewise.
11668 * corelow.c (core_target::get_core_register_section): Change
11669 type of `contents` to gdb::byte_vector.
11670
11671 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11672
11673 * tui/tui-wingeneral.c (box_win): Position the title in the center
11674 of the border.
11675
11676 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11677
11678 * corelow.c (core_target::get_core_register_section): Use
11679 std::vector instead of alloca.
11680
11681 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11682
11683 * warning.m4: Add -Wmissing-declarations to build_warnings.
11684 * configure: Re-generate.
11685
11686 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11687
11688 * python/python.c (init__gdb_module): Add declaration.
11689
11690 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11691
11692 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11693 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11694 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11695 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11696 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11697 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11698 * ada-exp.y (_initialize_ada_exp): Add declaration.
11699 * ada-lang.c (_initialize_ada_language): Add declaration.
11700 * ada-tasks.c (_initialize_tasks): Add declaration.
11701 * agent.c (_initialize_agent): Add declaration.
11702 * aix-thread.c (_initialize_aix_thread): Add declaration.
11703 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11704 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11705 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11706 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11707 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11708 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11709 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11710 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11711 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11712 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11713 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11714 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11715 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11716 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11717 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11718 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11719 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11720 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11721 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11722 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11723 * annotate.c (_initialize_annotate): Add declaration.
11724 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11725 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11726 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11727 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11728 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11729 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11730 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11731 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11732 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11733 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11734 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11735 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11736 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11737 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11738 * auto-load.c (_initialize_auto_load): Add declaration.
11739 * auxv.c (_initialize_auxv): Add declaration.
11740 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11741 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11742 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11743 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11744 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11745 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11746 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11747 * breakpoint.c (_initialize_breakpoint): Add declaration.
11748 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11749 * btrace.c (_initialize_btrace): Add declaration.
11750 * charset.c (_initialize_charset): Add declaration.
11751 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11752 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11753 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11754 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11755 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11756 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11757 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11758 * coffread.c (_initialize_coffread): Add declaration.
11759 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11760 * compile/compile.c (_initialize_compile): Add declaration.
11761 * complaints.c (_initialize_complaints): Add declaration.
11762 * completer.c (_initialize_completer): Add declaration.
11763 * copying.c (_initialize_copying): Add declaration.
11764 * corefile.c (_initialize_core): Add declaration.
11765 * corelow.c (_initialize_corelow): Add declaration.
11766 * cp-abi.c (_initialize_cp_abi): Add declaration.
11767 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11768 * cp-support.c (_initialize_cp_support): Add declaration.
11769 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11770 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11771 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11772 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11773 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11774 * ctfread.c (_initialize_ctfread): Add declaration.
11775 * d-lang.c (_initialize_d_language): Add declaration.
11776 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11777 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11778 * dbxread.c (_initialize_dbxread): Add declaration.
11779 * dcache.c (_initialize_dcache): Add declaration.
11780 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11781 * disasm.c (_initialize_disasm): Add declaration.
11782 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11783 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11784 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11785 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11786 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11787 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11788 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11789 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11790 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11791 * elfread.c (_initialize_elfread): Add declaration.
11792 * exec.c (_initialize_exec): Add declaration.
11793 * extension.c (_initialize_extension): Add declaration.
11794 * f-lang.c (_initialize_f_language): Add declaration.
11795 * f-valprint.c (_initialize_f_valprint): Add declaration.
11796 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11797 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11798 * filesystem.c (_initialize_filesystem): Add declaration.
11799 * findcmd.c (_initialize_mem_search): Add declaration.
11800 * findvar.c (_initialize_findvar): Add declaration.
11801 * fork-child.c (_initialize_fork_child): Add declaration.
11802 * frame-base.c (_initialize_frame_base): Add declaration.
11803 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11804 * frame.c (_initialize_frame): Add declaration.
11805 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11806 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11807 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11808 * gcore.c (_initialize_gcore): Add declaration.
11809 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11810 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11811 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11812 * gdbarch.c (_initialize_gdbarch): Add declaration.
11813 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11814 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11815 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11816 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11817 * go-lang.c (_initialize_go_language): Add declaration.
11818 * go32-nat.c (_initialize_go32_nat): Add declaration.
11819 * guile/guile.c (_initialize_guile): Add declaration.
11820 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11821 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11822 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11823 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11824 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11825 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11826 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11827 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11828 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11829 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11830 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11831 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11832 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11833 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11834 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11835 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11836 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11837 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11838 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11839 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11840 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11841 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11842 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11843 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11844 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11845 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11846 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11847 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11848 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11849 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11850 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11851 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11852 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11853 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11854 * infcall.c (_initialize_infcall): Add declaration.
11855 * infcmd.c (_initialize_infcmd): Add declaration.
11856 * inflow.c (_initialize_inflow): Add declaration.
11857 * infrun.c (_initialize_infrun): Add declaration.
11858 * interps.c (_initialize_interpreter): Add declaration.
11859 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11860 * jit.c (_initialize_jit): Add declaration.
11861 * language.c (_initialize_language): Add declaration.
11862 * linux-fork.c (_initialize_linux_fork): Add declaration.
11863 * linux-nat.c (_initialize_linux_nat): Add declaration.
11864 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11865 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11866 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11867 * m2-lang.c (_initialize_m2_language): Add declaration.
11868 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11869 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11870 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11871 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11872 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11873 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11874 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11875 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11876 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11877 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11878 * machoread.c (_initialize_machoread): Add declaration.
11879 * macrocmd.c (_initialize_macrocmd): Add declaration.
11880 * macroscope.c (_initialize_macroscope): Add declaration.
11881 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11882 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11883 * maint.c (_initialize_maint_cmds): Add declaration.
11884 * mdebugread.c (_initialize_mdebugread): Add declaration.
11885 * memattr.c (_initialize_mem): Add declaration.
11886 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11887 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11888 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11889 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11890 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11891 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11892 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11893 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11894 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11895 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11896 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11897 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11898 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11899 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11900 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11901 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11902 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11903 * mipsread.c (_initialize_mipsread): Add declaration.
11904 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11905 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11906 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11907 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11908 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11909 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11910 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11911 * nto-procfs.c (_initialize_procfs): Add declaration.
11912 * objc-lang.c (_initialize_objc_language): Add declaration.
11913 * observable.c (_initialize_observer): Add declaration.
11914 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11915 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11916 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11917 * osabi.c (_initialize_gdb_osabi): Add declaration.
11918 * osdata.c (_initialize_osdata): Add declaration.
11919 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11920 * parse.c (_initialize_parse): Add declaration.
11921 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11922 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11923 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11924 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11925 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11926 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11927 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11928 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11929 * printcmd.c (_initialize_printcmd): Add declaration.
11930 * probe.c (_initialize_probe): Add declaration.
11931 * proc-api.c (_initialize_proc_api): Add declaration.
11932 * proc-events.c (_initialize_proc_events): Add declaration.
11933 * proc-service.c (_initialize_proc_service): Add declaration.
11934 * procfs.c (_initialize_procfs): Add declaration.
11935 * producer.c (_initialize_producer): Add declaration.
11936 * psymtab.c (_initialize_psymtab): Add declaration.
11937 * python/python.c (_initialize_python): Add declaration.
11938 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11939 * record-btrace.c (_initialize_record_btrace): Add declaration.
11940 * record-full.c (_initialize_record_full): Add declaration.
11941 * record.c (_initialize_record): Add declaration.
11942 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11943 * regcache.c (_initialize_regcache): Add declaration.
11944 * reggroups.c (_initialize_reggroup): Add declaration.
11945 * remote-notif.c (_initialize_notif): Add declaration.
11946 * remote-sim.c (_initialize_remote_sim): Add declaration.
11947 * remote.c (_initialize_remote): Add declaration.
11948 * reverse.c (_initialize_reverse): Add declaration.
11949 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11950 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11951 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11952 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11953 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11954 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11955 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11956 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11957 Add declaration.
11958 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11959 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11960 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11961 * rust-exp.y (_initialize_rust_exp): Add declaration.
11962 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11963 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11964 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11965 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11966 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11967 * score-tdep.c (_initialize_score_tdep): Add declaration.
11968 * ser-go32.c (_initialize_ser_dos): Add declaration.
11969 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11970 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11971 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11972 * ser-uds.c (_initialize_ser_socket): Add declaration.
11973 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11974 * serial.c (_initialize_serial): Add declaration.
11975 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11976 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11977 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11978 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11979 * skip.c (_initialize_step_skip): Add declaration.
11980 * sol-thread.c (_initialize_sol_thread): Add declaration.
11981 * solib-aix.c (_initialize_solib_aix): Add declaration.
11982 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11983 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11984 * solib-frv.c (_initialize_frv_solib): Add declaration.
11985 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11986 * solib-target.c (_initialize_solib_target): Add declaration.
11987 * solib.c (_initialize_solib): Add declaration.
11988 * source-cache.c (_initialize_source_cache): Add declaration.
11989 * source.c (_initialize_source): Add declaration.
11990 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11991 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11992 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11993 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11994 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11995 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11996 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11997 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11998 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11999 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12000 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12001 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12002 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12003 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12004 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12005 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12006 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12007 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12008 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12009 * stabsread.c (_initialize_stabsread): Add declaration.
12010 * stack.c (_initialize_stack): Add declaration.
12011 * stap-probe.c (_initialize_stap_probe): Add declaration.
12012 * std-regs.c (_initialize_frame_reg): Add declaration.
12013 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12014 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12015 * symfile.c (_initialize_symfile): Add declaration.
12016 * symmisc.c (_initialize_symmisc): Add declaration.
12017 * symtab.c (_initialize_symtab): Add declaration.
12018 * target.c (_initialize_target): Add declaration.
12019 * target-connection.c (_initialize_target_connection): Add
12020 declaration.
12021 * target-dcache.c (_initialize_target_dcache): Add declaration.
12022 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12023 * thread.c (_initialize_thread): Add declaration.
12024 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12025 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12026 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12027 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12028 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12029 * tracectf.c (_initialize_ctf): Add declaration.
12030 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12031 * tracefile.c (_initialize_tracefile): Add declaration.
12032 * tracepoint.c (_initialize_tracepoint): Add declaration.
12033 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12034 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12035 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12036 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12037 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12038 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12039 * tui/tui.c (_initialize_tui): Add declaration.
12040 * typeprint.c (_initialize_typeprint): Add declaration.
12041 * ui-style.c (_initialize_ui_style): Add declaration.
12042 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12043 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12044 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12045 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12046 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12047 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12048 * unittests/filtered_iterator-selftests.c
12049 (_initialize_filtered_iterator_selftests): Add declaration.
12050 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12051 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12052 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12053 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12054 * unittests/main-thread-selftests.c
12055 (_initialize_main_thread_selftests): Add declaration.
12056 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12057 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12058 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12059 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12060 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12061 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12062 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12063 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12064 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12065 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12066 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12067 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12068 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12069 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12070 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12071 declaration.
12072 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12073 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12074 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12075 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12076 * user-regs.c (_initialize_user_regs): Add declaration.
12077 * utils.c (_initialize_utils): Add declaration.
12078 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12079 * valops.c (_initialize_valops): Add declaration.
12080 * valprint.c (_initialize_valprint): Add declaration.
12081 * value.c (_initialize_values): Add declaration.
12082 * varobj.c (_initialize_varobj): Add declaration.
12083 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12084 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12085 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12086 * windows-nat.c (_initialize_windows_nat): Add declaration.
12087 (_initialize_check_for_gdb_ini): Add declaration.
12088 (_initialize_loadable): Add declaration.
12089 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12090 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12091 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12092 * xcoffread.c (_initialize_xcoffread): Add declaration.
12093 * xml-support.c (_initialize_xml_support): Add declaration.
12094 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12095 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12096 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12097 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12098
12099 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12100
12101 * regformats/regdat.sh: Generate declaration for init function.
12102
12103 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12104
12105 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12106 up.
12107 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12108 close_one_inferior>: New methods.
12109 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12110 pass down target to find_inferior_pid.
12111 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12112 Pass down target to find_inferior_ptid.
12113 (gdbsim_target::create_inferior): Pass down target to
12114 add_thread_silent.
12115 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12116 target down to find_inferior_ptid and switch_to_thread.
12117 (gdbsim_target::close): Update to call close_one_inferior.
12118 (struct resume_data): Remove.
12119 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12120 directly, rather than through a void pointer.
12121 (gdbsim_target::resume): Update to call resume_one_inferior.
12122
12123 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12124
12125 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12126
12127 2020-01-12 Pedro Alves <palves@redhat.com>
12128
12129 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12130 directly for the current inferior instead of
12131 discard_all_inferiors.
12132 (discard_all_inferiors): Delete.
12133
12134 2020-01-11 Tom Tromey <tom@tromey.com>
12135
12136 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12137 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12138 deprecated_safe_get_selected_frame.
12139
12140 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12141
12142 * inferior.c (print_inferior): Switch inferior before printing it.
12143
12144 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12145 Pedro Alves <palves@redhat.com>
12146
12147 * progspace-and-thread.c (switch_to_program_space_and_thread):
12148 Assert there's an inferior for PSPACE. Use
12149 switch_to_inferior_no_thread to switch the inferior too.
12150 * progspace.c (program_space::~program_space): Call
12151 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12152 (program_space::free_all_objfiles): Don't call clear_symtab_users
12153 here.
12154 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12155
12156 2020-01-10 Pedro Alves <palves@redhat.com>
12157
12158 * NEWS: Mention multi-target debugging, "info connections", and
12159 "add-inferior -no-connection".
12160
12161 2020-01-10 Pedro Alves <palves@redhat.com>
12162
12163 * infrun.c: Include "target-connection.h".
12164 (check_multi_target_resumption): New.
12165 (proceed): Call it.
12166 * target-connection.c (make_target_connection_string): Make
12167 extern.
12168 * target-connection.h (make_target_connection_string): Declare.
12169
12170 2020-01-10 Pedro Alves <palves@redhat.com>
12171
12172 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12173 * inferior.c (uiout_field_connection): New function.
12174 (print_inferior): Add new "connection-id" column.
12175 (add_inferior_command): Show connection number/string of added
12176 inferior.
12177 * process-stratum-target.h
12178 (process_stratum_target::connection_string): New virtual method.
12179 (process_stratum_target::connection_number): New field.
12180 * remote.c (remote_target::connection_string): New override.
12181 * target-connection.c: New file.
12182 * target-connection.h: New file.
12183 * target.c (decref_target): Remove process_stratum targets from
12184 the connection list.
12185 (target_stack::push): Add process_stratum targets to the
12186 connection list.
12187
12188 2020-01-10 Pedro Alves <palves@redhat.com>
12189
12190 Revert:
12191 2016-04-12 Pedro Alves <palves@redhat.com>
12192 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12193 Remove references to name.
12194 * serial.h (struct serial) <name>: Delete.
12195
12196 2020-01-10 Pedro Alves <palves@redhat.com>
12197
12198 * gdbarch-selftests.c (register_to_value_test): Remove "target
12199 already pushed" check.
12200
12201 2020-01-10 Pedro Alves <palves@redhat.com>
12202 John Baldwin <jhb@FreeBSD.org>
12203
12204 * aarch64-linux-nat.c
12205 (aarch64_linux_nat_target::thread_architecture): Adjust.
12206 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12207 (task_command_1): Likewise.
12208 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12209 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12210 (aix_thread_target::store_registers)
12211 (aix_thread_target::thread_alive): Adjust.
12212 * amd64-fbsd-tdep.c: Include "inferior.h".
12213 (amd64fbsd_get_thread_local_address): Pass down target.
12214 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12215 thread's gdbarch instead of target_gdbarch.
12216 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12217 get_last_target_status.
12218 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12219 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12220 inferiors.
12221 (update_inserted_breakpoint_locations): Skip if inferiors with no
12222 execution.
12223 (update_global_location_list): When handling moribund locations,
12224 find representative inferior for location's pspace, and use thread
12225 count of its process_stratum target.
12226 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12227 * bsd-uthread.c (bsd_uthread_target::wait): Use
12228 as_process_stratum_target and adjust thread_change_ptid and
12229 add_thread calls.
12230 (bsd_uthread_target::update_thread_list): Use
12231 as_process_stratum_target and adjust find_thread_ptid,
12232 thread_change_ptid and add_thread calls.
12233 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12234 find_thread_ptid call.
12235 * corelow.c (add_to_thread_list): Adjust add_thread call.
12236 (core_target_open): Adjust add_thread_silent and thread_count
12237 calls.
12238 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12239 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12240 * event-top.c (async_disconnect): Pop targets from all inferiors.
12241 * exec.c (add_target_sections): Push exec target on all inferiors
12242 sharing the program space.
12243 (remove_target_sections): Remove the exec target from all
12244 inferiors sharing the program space.
12245 (exec_on_vfork): New.
12246 * exec.h (exec_on_vfork): Declare.
12247 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12248 Pass it down.
12249 (fbsd_nat_target::update_thread_list): Adjust.
12250 (fbsd_nat_target::resume): Adjust.
12251 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12252 down.
12253 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12254 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12255 get_thread_arch_regcache call.
12256 * fork-child.c (gdb_startup_inferior): Pass target down to
12257 startup_inferior and set_executing.
12258 * gdbthread.h (struct process_stratum_target): Forward declare.
12259 (add_thread, add_thread_silent, add_thread_with_info)
12260 (in_thread_list): Add process_stratum_target parameter.
12261 (find_thread_ptid(inferior*, ptid_t)): New overload.
12262 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12263 parameter.
12264 (all_threads()): Delete overload.
12265 (all_threads, all_non_exited_threads): Add process_stratum_target
12266 parameter.
12267 (all_threads_safe): Use brace initialization.
12268 (thread_count): Add process_stratum_target parameter.
12269 (set_resumed, set_running, set_stop_requested, set_executing)
12270 (threads_are_executing, finish_thread_state): Add
12271 process_stratum_target parameter.
12272 (switch_to_thread): Use is_current_thread.
12273 * i386-fbsd-tdep.c: Include "inferior.h".
12274 (i386fbsd_get_thread_local_address): Pass down target.
12275 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12276 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12277 have_inferiors check.
12278 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12279 (inf_ptrace_target::attach): Adjust.
12280 * infcall.c (run_inferior_call): Adjust.
12281 * infcmd.c (run_command_1): Pass target to
12282 scoped_finish_thread_state.
12283 (proceed_thread_callback): Skip inferiors with no execution.
12284 (continue_command): Rename 'all_threads' local to avoid hiding
12285 'all_threads' function. Adjust get_last_target_status call.
12286 (prepare_one_step): Adjust set_running call.
12287 (signal_command): Use user_visible_resume_target. Compare thread
12288 pointers instead of inferior_ptid.
12289 (info_program_command): Adjust to pass down target.
12290 (attach_command): Mark target's 'thread_executing' flag.
12291 (stop_current_target_threads_ns): New, factored out from ...
12292 (interrupt_target_1): ... this. Switch inferior before making
12293 target calls.
12294 * inferior-iter.h
12295 (struct all_inferiors_iterator, struct all_inferiors_range)
12296 (struct all_inferiors_safe_range)
12297 (struct all_non_exited_inferiors_range): Filter on
12298 process_stratum_target too. Remove explicit.
12299 * inferior.c (inferior::inferior): Push dummy target on target
12300 stack.
12301 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12302 Add process_stratum_target parameter, and pass it down.
12303 (have_live_inferiors): Adjust.
12304 (switch_to_inferior_and_push_target): New.
12305 (add_inferior_command, clone_inferior_command): Handle
12306 "-no-connection" parameter. Use
12307 switch_to_inferior_and_push_target.
12308 (_initialize_inferior): Mention "-no-connection" option in
12309 the help of "add-inferior" and "clone-inferior" commands.
12310 * inferior.h: Include "process-stratum-target.h".
12311 (interrupt_target_1): Use bool.
12312 (struct inferior) <push_target, unpush_target, target_is_pushed,
12313 find_target_beneath, top_target, process_target, target_at,
12314 m_stack>: New.
12315 (discard_all_inferiors): Delete.
12316 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12317 (all_inferiors, all_non_exited_inferiors): Add
12318 process_stratum_target parameter.
12319 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12320 (target_last_proc_target): New global.
12321 (follow_fork_inferior): Push target on new inferior. Pass target
12322 to add_thread_silent. Call exec_on_vfork. Handle target's
12323 reference count.
12324 (follow_fork): Adjust get_last_target_status call. Also consider
12325 target.
12326 (follow_exec): Push target on new inferior.
12327 (struct execution_control_state) <target>: New field.
12328 (user_visible_resume_target): New.
12329 (do_target_resume): Call target_async.
12330 (resume_1): Set target's threads_executing flag. Consider resume
12331 target.
12332 (commit_resume_all_targets): New.
12333 (proceed): Also consider resume target. Skip threads of inferiors
12334 with no execution. Commit resumtion in all targets.
12335 (start_remote): Pass current inferior to wait_for_inferior.
12336 (infrun_thread_stop_requested): Consider target as well. Pass
12337 thread_info pointer to clear_inline_frame_state instead of ptid.
12338 (infrun_thread_thread_exit): Consider target as well.
12339 (random_pending_event_thread): New inferior parameter. Use it.
12340 (do_target_wait): Rename to ...
12341 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12342 down.
12343 (threads_are_resumed_pending_p, do_target_wait): New.
12344 (prepare_for_detach): Adjust calls.
12345 (wait_for_inferior): New inferior parameter. Handle it. Use
12346 do_target_wait_1 instead of do_target_wait.
12347 (fetch_inferior_event): Adjust. Switch to representative
12348 inferior. Pass target down.
12349 (set_last_target_status): Add process_stratum_target parameter.
12350 Save target in global.
12351 (get_last_target_status): Add process_stratum_target parameter and
12352 handle it.
12353 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12354 (context_switch): Check inferior_ptid == null_ptid before calling
12355 inferior_thread().
12356 (get_inferior_stop_soon): Pass down target.
12357 (wait_one): Rename to ...
12358 (poll_one_curr_target): ... this.
12359 (struct wait_one_event): New.
12360 (wait_one): New.
12361 (stop_all_threads): Adjust.
12362 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12363 event's target.
12364 (switch_back_to_stepped_thread): Also consider target.
12365 (print_stop_event): Update.
12366 (normal_stop): Update. Also consider the resume target.
12367 * infrun.h (wait_for_inferior): Remove declaration.
12368 (user_visible_resume_target): New declaration.
12369 (get_last_target_status, set_last_target_status): New
12370 process_stratum_target parameter.
12371 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12372 process_stratum_target parameter, and use it.
12373 (clear_inline_frame_state (thread_info*)): New.
12374 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12375 process_stratum_target parameter.
12376 (clear_inline_frame_state (thread_info*)): Declare.
12377 * linux-fork.c (delete_checkpoint_command): Pass target down to
12378 find_thread_ptid.
12379 (checkpoint_command): Adjust.
12380 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12381 instead of just tweaking inferior_ptid.
12382 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12383 (exit_lwp): Pass target down to find_thread_ptid.
12384 (attach_proc_task_lwp_callback): Pass target down to
12385 add_thread/set_running/set_executing.
12386 (linux_nat_target::attach): Pass target down to
12387 thread_change_ptid.
12388 (get_detach_signal): Pass target down to find_thread_ptid.
12389 Consider last target status's target.
12390 (linux_resume_one_lwp_throw, resume_lwp)
12391 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12392 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12393 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12394 (linux_nat_target::async_wait_fd): New.
12395 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12396 target down.
12397 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12398 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12399 * linux-thread-db.c (struct thread_db_info::process_target): New
12400 field.
12401 (add_thread_db_info): Save target.
12402 (get_thread_db_info): New process_stratum_target parameter. Also
12403 match target.
12404 (delete_thread_db_info): New process_stratum_target parameter.
12405 Also match target.
12406 (thread_from_lwp): Adjust to pass down target.
12407 (thread_db_notice_clone): Pass down target.
12408 (check_thread_db_callback): Pass down target.
12409 (try_thread_db_load_1): Always push the thread_db target.
12410 (try_thread_db_load, record_thread): Pass target down.
12411 (thread_db_target::detach): Pass target down. Always unpush the
12412 thread_db target.
12413 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12414 target down. Always unpush the thread_db target.
12415 (find_new_threads_callback, thread_db_find_new_threads_2)
12416 (thread_db_target::update_thread_list): Pass target down.
12417 (thread_db_target::pid_to_str): Pass current inferior down.
12418 (thread_db_target::get_thread_local_address): Pass target down.
12419 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12420 target down.
12421 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12422 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12423 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12424 (procfs_init_inferior): Rename to ...
12425 (procfs_target::procfs_init_inferior): ... this and adjust.
12426 (procfs_target::create_inferior, procfs_notice_thread)
12427 (procfs_do_thread_registers): Adjust.
12428 * ppc-fbsd-tdep.c: Include "inferior.h".
12429 (ppcfbsd_get_thread_local_address): Pass down target.
12430 * proc-service.c (ps_xfer_memory): Switch current inferior and
12431 program space as well.
12432 (get_ps_regcache): Pass target down.
12433 * process-stratum-target.c
12434 (process_stratum_target::thread_address_space)
12435 (process_stratum_target::thread_architecture): Pass target down.
12436 * process-stratum-target.h
12437 (process_stratum_target::threads_executing): New field.
12438 (as_process_stratum_target): New.
12439 * ravenscar-thread.c
12440 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12441 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12442 down.
12443 * record-btrace.c (record_btrace_target::info_record): Adjust.
12444 (record_btrace_target::record_method)
12445 (record_btrace_target::record_is_replaying)
12446 (record_btrace_target::fetch_registers)
12447 (get_thread_current_frame_id, record_btrace_target::resume)
12448 (record_btrace_target::wait, record_btrace_target::stop): Pass
12449 target down.
12450 * record-full.c (record_full_wait_1): Switch to event thread.
12451 Pass target down.
12452 * regcache.c (regcache::regcache)
12453 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12454 process_stratum_target parameter and handle it.
12455 (current_thread_target): New global.
12456 (get_thread_regcache): Add process_stratum_target parameter and
12457 handle it. Switch inferior before calling target method.
12458 (get_thread_regcache): Pass target down.
12459 (get_thread_regcache_for_ptid): Pass target down.
12460 (registers_changed_ptid): Add process_stratum_target parameter and
12461 handle it.
12462 (registers_changed_thread, registers_changed): Pass target down.
12463 (test_get_thread_arch_aspace_regcache): New.
12464 (current_regcache_test): Define a couple local test_target_ops
12465 instances and use them for testing.
12466 (readwrite_regcache): Pass process_stratum_target parameter.
12467 (cooked_read_test, cooked_write_test): Pass mock_target down.
12468 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12469 (get_thread_arch_aspace_regcache): Add process_stratum_target
12470 parameter.
12471 (regcache::target): New method.
12472 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12473 (regcache::registers_changed_ptid): Add process_stratum_target
12474 parameter.
12475 (regcache::m_target): New field.
12476 (registers_changed_ptid): Add process_stratum_target parameter.
12477 * remote.c (remote_state::supports_vCont_probed): New field.
12478 (remote_target::async_wait_fd): New method.
12479 (remote_unpush_and_throw): Add remote_target parameter.
12480 (get_current_remote_target): Adjust.
12481 (remote_target::remote_add_inferior): Push target.
12482 (remote_target::remote_add_thread)
12483 (remote_target::remote_notice_new_inferior)
12484 (get_remote_thread_info): Pass target down.
12485 (remote_target::update_thread_list): Skip threads of inferiors
12486 bound to other targets. (remote_target::close): Don't discard
12487 inferiors. (remote_target::add_current_inferior_and_thread)
12488 (remote_target::process_initial_stop_replies)
12489 (remote_target::start_remote)
12490 (remote_target::remote_serial_quit_handler): Pass down target.
12491 (remote_target::remote_unpush_target): New remote_target
12492 parameter. Unpush the target from all inferiors.
12493 (remote_target::remote_unpush_and_throw): New remote_target
12494 parameter. Pass it down.
12495 (remote_target::open_1): Check whether the current inferior has
12496 execution instead of checking whether any inferior is live. Pass
12497 target down.
12498 (remote_target::remote_detach_1): Pass down target. Use
12499 remote_unpush_target.
12500 (extended_remote_target::attach): Pass down target.
12501 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12502 (remote_target::append_resumption): Pass down target.
12503 (remote_target::append_pending_thread_resumptions)
12504 (remote_target::remote_resume_with_hc, remote_target::resume)
12505 (remote_target::commit_resume): Pass down target.
12506 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12507 (remote_target::interrupt_query)
12508 (remote_target::remove_new_fork_children)
12509 (remote_target::check_pending_events_prevent_wildcard_vcont)
12510 (remote_target::remote_parse_stop_reply)
12511 (remote_target::process_stop_reply): Pass down target.
12512 (first_remote_resumed_thread): New remote_target parameter. Pass
12513 it down.
12514 (remote_target::wait_as): Pass down target.
12515 (unpush_and_perror): New remote_target parameter. Pass it down.
12516 (remote_target::readchar, remote_target::remote_serial_write)
12517 (remote_target::getpkt_or_notif_sane_1)
12518 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12519 down target.
12520 (remote_target::mourn_inferior): Pass down target. Use
12521 remote_unpush_target.
12522 (remote_target::core_of_thread)
12523 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12524 (remote_target::pid_to_exec_file)
12525 (remote_target::thread_handle_to_thread_info): Pass down target.
12526 (remote_target::async_wait_fd): New.
12527 * riscv-fbsd-tdep.c: Include "inferior.h".
12528 (riscv_fbsd_get_thread_local_address): Pass down target.
12529 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12530 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12531 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12532 Adjust.
12533 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12534 * solib-svr4.c (enable_break): Pass down target.
12535 * spu-multiarch.c (parse_spufs_run): Pass down target.
12536 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12537 * target-delegates.c: Regenerate.
12538 * target.c (g_target_stack): Delete.
12539 (current_top_target): Return the current inferior's top target.
12540 (target_has_execution_1): Refer to the passed-in inferior's top
12541 target.
12542 (target_supports_terminal_ours): Check whether the initial
12543 inferior was already created.
12544 (decref_target): New.
12545 (target_stack::push): Incref/decref the target.
12546 (push_target, push_target, unpush_target): Adjust.
12547 (target_stack::unpush): Defref target.
12548 (target_is_pushed): Return bool. Adjust to refer to the current
12549 inferior's target stack.
12550 (dispose_inferior): Delete, and inline parts ...
12551 (target_preopen): ... here. Only dispose of the current inferior.
12552 (target_detach): Hold strong target reference while detaching.
12553 Pass target down.
12554 (target_thread_name): Add assertion.
12555 (target_resume): Pass down target.
12556 (target_ops::beneath, find_target_at): Adjust to refer to the
12557 current inferior's target stack.
12558 (get_dummy_target): New.
12559 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12560 has a thread running.
12561 (initialize_targets): Rename to ...
12562 (_initialize_target): ... this.
12563 * target.h: Include "gdbsupport/refcounted-object.h".
12564 (struct target_ops): Inherit refcounted_object.
12565 (target_ops::shortname, target_ops::longname): Make const.
12566 (target_ops::async_wait_fd): New method.
12567 (decref_target): Declare.
12568 (struct target_ops_ref_policy): New.
12569 (target_ops_ref): New typedef.
12570 (get_dummy_target): Declare function.
12571 (target_is_pushed): Return bool.
12572 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12573 (all_matching_threads_iterator::all_matching_threads_iterator):
12574 Handle filter target.
12575 * thread-iter.h (struct all_matching_threads_iterator, struct
12576 all_matching_threads_range, class all_non_exited_threads_range):
12577 Filter by target too. Remove explicit.
12578 * thread.c (threads_executing): Delete.
12579 (inferior_thread): Pass down current inferior.
12580 (clear_thread_inferior_resources): Pass down thread pointer
12581 instead of ptid_t.
12582 (add_thread_silent, add_thread_with_info, add_thread): Add
12583 process_stratum_target parameter. Use it for thread and inferior
12584 searches.
12585 (is_current_thread): New.
12586 (thread_info::deletable): Use it.
12587 (find_thread_ptid, thread_count, in_thread_list)
12588 (thread_change_ptid, set_resumed, set_running): New
12589 process_stratum_target parameter. Pass it down.
12590 (set_executing): New process_stratum_target parameter. Pass it
12591 down. Adjust reference to 'threads_executing'.
12592 (threads_are_executing): New process_stratum_target parameter.
12593 Adjust reference to 'threads_executing'.
12594 (set_stop_requested, finish_thread_state): New
12595 process_stratum_target parameter. Pass it down.
12596 (switch_to_thread): Also match inferior.
12597 (switch_to_thread): New process_stratum_target parameter. Pass it
12598 down.
12599 (update_threads_executing): Reimplement.
12600 * top.c (quit_force): Pop targets from all inferior.
12601 (gdb_init): Don't call initialize_targets.
12602 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12603 Declare.
12604 (windows_add_thread, windows_delete_thread): Adjust.
12605 (get_windows_debug_event): Rename to ...
12606 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12607 * tracefile-tfile.c (tfile_target_open): Pass down target.
12608 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12609 Forward declare.
12610 (switch_to_thread): Add process_stratum_target parameter.
12611 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12612 parameter. Use it.
12613 (mi_on_resume): Pass target down.
12614 * nat/fork-inferior.c (startup_inferior): Add
12615 process_stratum_target parameter. Pass it down.
12616 * nat/fork-inferior.h (startup_inferior): Add
12617 process_stratum_target parameter.
12618 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12619
12620 2020-01-10 Pedro Alves <palves@redhat.com>
12621
12622 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12623 directly. Instead find the first thread in the thread list and
12624 use switch_to_thread.
12625
12626 2020-01-10 Pedro Alves <palves@redhat.com>
12627
12628 * remote.c (remote_target::remote_add_inferior): Don't bind a
12629 process to the current inferior if the current inferior is already
12630 bound to a process.
12631
12632 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12633 Pedro Alves <palves@redhat.com>
12634
12635 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12636 If no process is specified, return null_ptid instead of
12637 inferior_ptid.
12638 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12639 TARGET_WAITKIND_SIGNALLED with no pid.
12640
12641 2020-01-10 Pedro Alves <palves@redhat.com>
12642
12643 * remote.c (first_remote_resumed_thread): New.
12644 (remote_target::wait_as): Use it as default event_ptid instead of
12645 inferior_ptid.
12646
12647 2020-01-10 Pedro Alves <palves@redhat.com>
12648
12649 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12650
12651 2020-01-10 Pedro Alves <palves@redhat.com>
12652
12653 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12654 not -1.
12655
12656 2020-01-10 Pedro Alves <palves@redhat.com>
12657
12658 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12659 ptid to get_last_target_status.
12660 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12661 ptid to get_last_target_status.
12662 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12663 get_last_target_status.
12664 (info_program_command): Don't pass a target_waitstatus to
12665 get_last_target_status.
12666 * infrun.c (init_wait_for_inferior): Use
12667 nullify_last_target_wait_ptid.
12668 (get_last_target_status): Handle nullptr arguments.
12669 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12670 (print_stop_event): Don't pass a ptid to get_last_target_status.
12671 (normal_stop): Don't pass a ptid to get_last_target_status.
12672 * infrun.h (get_last_target_status, set_last_target_status): Move
12673 comments here and update.
12674 (nullify_last_target_wait_ptid): Declare.
12675 * linux-fork.c (fork_load_infrun_state): Remove local extern
12676 declaration of nullify_last_target_wait_ptid.
12677 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12678 to get_last_target_status.
12679
12680 2020-01-10 Pedro Alves <palves@redhat.com>
12681
12682 * gdbthread.h (scoped_restore_current_thread)
12683 <dont_restore, restore, m_dont_restore>: Declare.
12684 * thread.c (thread_alive): Add assertion. Return bool.
12685 (switch_to_thread_if_alive): New.
12686 (prune_threads): Switch inferior/thread.
12687 (print_thread_info_1): Switch thread before calling target methods.
12688 (scoped_restore_current_thread::restore): New, factored out from
12689 ...
12690 (scoped_restore_current_thread::~scoped_restore_current_thread):
12691 ... this.
12692 (scoped_restore_current_thread::scoped_restore_current_thread):
12693 Add assertion.
12694 (thread_apply_all_command, thread_select): Use
12695 switch_to_thread_if_alive.
12696 * infrun.c (proceed, restart_threads, handle_signal_stop)
12697 (switch_back_to_stepped_thread): Switch current thread before
12698 calling target methods.
12699
12700 2020-01-10 Pedro Alves <palves@redhat.com>
12701
12702 * inferior.c (switch_to_inferior_no_thread): New function,
12703 factored out from ...
12704 (inferior_command): ... here.
12705 * inferior.h (switch_to_inferior_no_thread): Declare.
12706 * mi/mi-main.c (run_one_inferior): Use
12707 switch_to_inferior_no_thread.
12708
12709 2020-01-10 Pedro Alves <palves@redhat.com>
12710
12711 * infcmd.c (kill_command): Remove dead code.
12712
12713 2020-01-10 Pedro Alves <palves@redhat.com>
12714
12715 * remote.c (remote_target::mourn_inferior): No longer check
12716 whether the target is running.
12717
12718 2020-01-10 Pedro Alves <palves@redhat.com>
12719
12720 * corelow.c (core_target::has_execution): Change parameter type to
12721 inferior pointer.
12722 * inferior.c (number_of_live_inferiors): Use
12723 inferior::has_execution instead of target_has_execution_1.
12724 * inferior.h (inferior::has_execution): New.
12725 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12726 inferior::has_execution instead of target_has_execution_1.
12727 * process-stratum-target.c
12728 (process_stratum_target::has_execution): Change parameter type to
12729 inferior pointer. Check the inferior's PID instead of
12730 inferior_ptid.
12731 * process-stratum-target.h
12732 (process_stratum_target::has_execution): Change parameter type to
12733 inferior pointer.
12734 * record-full.c (record_full_core_target::has_execution): Change
12735 parameter type to inferior pointer.
12736 * target.c (target_has_execution_1): Change parameter type to
12737 inferior pointer.
12738 (target_has_execution_current): Adjust.
12739 * target.h (target_ops::has_execution): Change parameter type to
12740 inferior pointer.
12741 (target_has_execution_1): Change parameter type to inferior
12742 pointer. Change return type to bool.
12743 * tracefile.h (tracefile_target::has_execution): Change parameter
12744 type to inferior pointer.
12745
12746 2020-01-10 Pedro Alves <palves@redhat.com>
12747
12748 * exceptions.c (print_flush): Remove current_top_target() check.
12749
12750 2020-01-10 Pedro Alves <palves@redhat.com>
12751
12752 * remote.c (show_remote_exec_file): Show the current inferior's
12753 exec-file instead of the command variable's value.
12754
12755 2020-01-10 Pedro Alves <palves@redhat.com>
12756
12757 * record-full.c (record_full_resume_ptid): New global.
12758 (record_full_target::resume): Set it.
12759 (record_full_wait_1): Use record_full_resume_ptid instead of
12760 inferior_ptid.
12761
12762 2020-01-10 Pedro Alves <palves@redhat.com>
12763
12764 * gdbthread.h (scoped_restore_current_thread)
12765 <dont_restore, restore, m_dont_restore>: Declare.
12766 * thread.c (thread_alive): Add assertion. Return bool.
12767 (switch_to_thread_if_alive): New.
12768 (prune_threads): Switch inferior/thread.
12769 (print_thread_info_1): Switch thread before calling target methods.
12770 (scoped_restore_current_thread::restore): New, factored out from
12771 ...
12772 (scoped_restore_current_thread::~scoped_restore_current_thread):
12773 ... this.
12774 (scoped_restore_current_thread::scoped_restore_current_thread):
12775 Add assertion.
12776 (thread_apply_all_command, thread_select): Use
12777 switch_to_thread_if_alive.
12778
12779 2020-01-10 George Barrett <bob@bob131.so>
12780
12781 * stap-probe.c (stap_modify_semaphore): Don't check for null
12782 semaphores.
12783 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12784 for null semaphores.
12785
12786 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12787
12788 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12789 all source windows, and maintain horizontal scroll status while
12790 doing so.
12791
12792 2020-01-09 Tom Tromey <tom@tromey.com>
12793
12794 PR tui/18932:
12795 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12796 update_source_window, not print_source_lines.
12797
12798 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12799
12800 * tui/tui.c (tui_enable): Register tui hooks after calling
12801 tui_display_main.
12802
12803 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12804
12805 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12806
12807 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12808
12809 * thread.c (print_thread_info_1): Fix indentation.
12810
12811 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12812
12813 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12814 unique_xmalloc_ptr outside the if to always free the demangled name.
12815
12816 2020-01-08 Tom Tromey <tromey@adacore.com>
12817
12818 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12819 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12820 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12821 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12822 Remove.
12823 (section_offsets): New typedef.
12824 * symtab.c (fixup_section, get_msymbol_address): Update.
12825 * symmisc.c (dump_msymbols): Update.
12826 * symfile.h (relative_addr_info_to_section_offsets)
12827 (symfile_map_offsets_to_segments): Update.
12828 * symfile.c (build_section_addr_info_from_objfile)
12829 (init_objfile_sect_indices): Update.
12830 (struct place_section_arg): Change type of "offsets".
12831 (place_section): Update.
12832 (relative_addr_info_to_section_offsets): Change type of
12833 "section_offsets". Remove "num_sections" parameter.
12834 (default_symfile_offsets, syms_from_objfile_1)
12835 (set_objfile_default_section_offset): Update.
12836 (reread_symbols): No need to preserve section offsets by hand.
12837 (symfile_map_offsets_to_segments): Change type of "offsets".
12838 * stap-probe.c (relocate_address): Update.
12839 * stabsread.h (process_one_symbol): Update.
12840 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12841 (solib_target_relocate_section_addresses): Update.
12842 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12843 Update.
12844 * solib-frv.c (frv_relocate_main_executable): Update.
12845 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12846 * solib-aix.c (solib_aix_get_section_offsets): Change return
12847 type.
12848 (solib_aix_solib_create_inferior_hook): Update.
12849 * remote.c (remote_target::get_offsets): Update.
12850 * psymtab.c (find_pc_sect_psymtab): Update.
12851 * psympriv.h (struct partial_symbol) <address, text_low,
12852 text_high>: Update.
12853 * objfiles.h (obj_section_offset): Update.
12854 (struct objfile) <section_offsets>: Change type.
12855 <num_sections>: Remove.
12856 (objfile_relocate): Update.
12857 * objfiles.c (entry_point_address_query): Update
12858 (relocate_one_symbol): Change type of "section_offsets".
12859 (objfile_relocate1, objfile_relocate1): Change type of
12860 "new_offsets".
12861 (objfile_rebase1): Update.
12862 * mipsread.c (mipscoff_symfile_read): Update.
12863 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12864 parameter.
12865 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12866 (parse_external, psymtab_to_symtab_1): Update.
12867 * machoread.c (macho_symfile_offsets): Update.
12868 * ia64-tdep.c (ia64_find_unwind_table): Update.
12869 * hppa-tdep.c (read_unwind_info): Update.
12870 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12871 * dwarf2read.c (create_addrmap_from_index)
12872 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12873 (process_psymtab_comp_unit_reader, add_partial_symbol)
12874 (add_partial_subprogram, process_full_comp_unit)
12875 (read_file_scope, read_func_scope, read_lexical_block_scope)
12876 (read_call_site_scope, dwarf2_rnglists_process)
12877 (dwarf2_ranges_process, dwarf2_ranges_read)
12878 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12879 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12880 Update.
12881 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12882 Update.
12883 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12884 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12885 (process_one_symbol): Change type of "section_offsets".
12886 * ctfread.c (get_objfile_text_range): Update.
12887 * coffread.c (coff_symtab_read, enter_linenos)
12888 (process_coff_symbol): Update.
12889 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12890 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12891
12892 2020-01-08 Tom Tromey <tromey@adacore.com>
12893
12894 * dwarf2read.c (parse_macro_definition): Use std::string.
12895 (parse_macro_definition): Likewise.
12896
12897 2020-01-08 Tom Tromey <tromey@adacore.com>
12898
12899 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12900 (ATTR_ALLOC_CHUNK): Remove.
12901
12902 2020-01-08 Tom Tromey <tromey@adacore.com>
12903
12904 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12905
12906 2020-01-08 Tom Tromey <tromey@adacore.com>
12907
12908 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12909 (dwarf2_compute_name, open_dwo_file): Likewise.
12910 (process_enumeration_scope): Use std::vector.
12911 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12912 (partial_die_info::fixup, dwarf2_start_subfile)
12913 (guess_full_die_structure_name, dwarf2_name): Likewise.
12914 (determine_prefix): Update.
12915 (guess_full_die_structure_name): Make return type const.
12916 (partial_die_full_name): Return unique_xmalloc_ptr.
12917 (DW_FIELD_ALLOC_CHUNK): Remove.
12918
12919 2020-01-07 Tom Tromey <tromey@adacore.com>
12920
12921 PR build/24937:
12922 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12923
12924 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12925
12926 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12927
12928 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12929
12930 * stack.c (print_frame_info): Move disassemble_next_line code
12931 inside source_print block.
12932
12933 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12934
12935 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12936 gdb/signals.h, as we are now using native signal symbols.
12937
12938 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12939
12940 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12941 overflow by an early check of content vs threshold.
12942 * tui/tui-source.c (tui_source_window::line_is_displayed):
12943 Likewise.
12944
12945 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12946
12947 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12948
12949 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12950
12951 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12952 export table if no section contains it's RVA.
12953
12954 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12955
12956 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12957
12958 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12959
12960 * source.c (print_source_lines_base): Set last_line_listed.
12961
12962 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12963
12964 * tui/tui-disasm.c: Remove trailing spaces.
12965
12966 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12967 Pedro Alves <palves@redhat.com>
12968
12969 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12970 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12971 (windows_gdb_signal_to_target): New function, uses the above
12972 enumeration to convert GDB internal signal codes to equivalent
12973 Windows codes.
12974 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12975 * windows-nat.c: Include "gdb_wait.h".
12976 (get_windows_debug_event): Extract the fatal exception from the
12977 exit status and convert to the equivalent Posix signal number.
12978 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12979 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12980 * gdbsupport/gdb_wait.c: New file, implements
12981 windows_status_to_termsig.
12982 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12983 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12984
12985 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12986
12987 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12988 show_layout.
12989
12990 2020-01-05 Luis Machado <luis.machado@linaro.org>
12991
12992 * aarch64-linux-nat.c
12993 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12994 and bfd_mach_aarch64.
12995
12996 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12997
12998 * ui-file.c (stdio_file::can_emit_style_escape)
12999 (tee_file::can_emit_style_escape): Ensure style is used also on
13000 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13001 to gdb_stdout.
13002 * main.c (set_gdb_data_directory): Use file style to output the
13003 warning that the given pathname is not a directory.
13004 * top.c (show_history_filename, gdb_safe_append_history)
13005 (show_gdb_datadir): Use file style.
13006
13007 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13008
13009 * solib-target.c (struct lm_info_target):
13010 Change offsets to be a unique_xmalloc_ptr.
13011 (solib_target_relocate_section_addresses): Update.
13012
13013 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13014
13015 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13016
13017 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13018
13019 * MAINTAINERS (Write After Approval): Add myself.
13020
13021 2020-01-02 Luis Machado <luis.machado@linaro.org>
13022
13023 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13024 Cell BE architecture.
13025 * target.h (struct target_ops) <thread_architecture>: Likewise.
13026
13027 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13028
13029 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13030
13031 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13032
13033 * MAINTAINERS (Write After Approval): Add myself.
13034
13035 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13036
13037 * gdbarch.sh: Update copyright year range of generated files.
13038
13039 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13040
13041 Update copyright year range in all GDB files.
13042
13043 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13044
13045 * copyright.py: Convert to Python 3.
13046
13047 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13048
13049 * copyright.py: Adapt after move of gnulib directory from gdb
13050 directory to toplevel directory.
13051
13052 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13053
13054 * copyright.py (main): Exit if run from the wrong directory.
13055
13056 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13057
13058 * top.c (print_gdb_version): Change copyright year to 2020.
13059
13060 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13061
13062 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13063
13064 For older changes see ChangeLog-2019.
13065 \f
13066 Local Variables:
13067 mode: change-log
13068 left-margin: 8
13069 fill-column: 74
13070 version-control: never
13071 coding: utf-8
13072 End: