Don't use PyLong_FromLongLong
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-15 Tom Tromey <tromey@adacore.com>
2
3 * python/py-infevents.c (create_register_changed_event_object):
4 Use gdb_py_object_from_longest.
5 * python/py-exitedevent.c (create_exited_event_object): Use
6 gdb_py_object_from_longest.
7
8 2020-09-15 Tom Tromey <tromey@adacore.com>
9
10 * python/python.c (gdbpy_parameter_value): Use
11 gdb_py_object_from_longest.
12 * python/py-type.c (convert_field, typy_range): Use
13 gdb_py_object_from_longest.
14 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
15 gdb_py_object_from_longest.
16 * python/py-lazy-string.c (stpy_get_length): Use
17 gdb_py_object_from_longest.
18 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
19 gdb_py_object_from_longest.
20 * python/py-infevents.c (create_memory_changed_event_object): Use
21 gdb_py_object_from_longest.
22 * python/py-inferior.c (infpy_get_num): Use
23 gdb_py_object_from_longest.
24 (infpy_get_pid): Likewise.
25
26 2020-09-15 Tom Tromey <tromey@adacore.com>
27
28 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
29 defines.
30 * python/py-value.c (valpy_long): Use
31 gdb_py_object_from_ulongest.
32 * python/py-symtab.c (salpy_get_pc): Use
33 gdb_py_object_from_ulongest.
34 (salpy_get_last): Likewise.
35 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
36 gdb_py_object_from_ulongest.
37 * python/py-lazy-string.c (stpy_get_address): Use
38 gdb_py_object_from_ulongest.
39 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
40 * python/py-arch.c (archpy_disassemble): Use
41 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
42 error handling.
43
44 2020-09-15 Tom Tromey <tromey@adacore.com>
45
46 * python/python-internal.h (gdb_py_long_from_longest): Remove
47 defines.
48 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
49 * python/py-type.c (convert_field, typy_get_sizeof): Use
50 gdb_py_object_from_longest.
51 * python/py-record-btrace.c (btpy_list_index): Use
52 gdb_py_object_from_longest.
53
54 2020-09-15 Tom Tromey <tromey@adacore.com>
55
56 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
57 * python/py-record.c (recpy_element_number): Use
58 gdb_py_object_from_longest.
59 (recpy_gap_number): Likewise.
60
61 2020-09-15 Tom Tromey <tromey@adacore.com>
62
63 * top.c (ui::ui): Update.
64 (highest_ui_num): Remove.
65 * top.h (struct ui) <num>: Remove.
66
67 2020-09-15 Tom Tromey <tromey@adacore.com>
68
69 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
70 * ui-style.c (ansi_regex_text): Now array.
71 * rust-exp.y (number_regex_text): Now array.
72 * linespec.c (linespec_quote_characters): Now array.
73 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
74 Now arrays.
75
76 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
77
78 * debuginfod-support.c (debuginfod_client_deleter): New.
79 (debuginfod_client_up): New.
80 (debuginfod_init): Return debuginfod_client_up.
81 (debuginfod_source_query): Adjust.
82 (debuginfod_debuginfo_query): Adjust.
83
84 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
85
86 * debuginfod-support.c (debuginfod_source_query): Use
87 make_unique_xstrdup.
88
89 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
90
91 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
92 with `type::instance_flags`.
93
94 2020-09-14 Michael Mullin <masmullin@gmail.com>
95
96 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
97 Remove baton parameter.
98
99 2020-09-14 Pedro Alves <pedro@palves.net>
100
101 * Makefile.in (SELFTESTS_SRCS): Add
102 unittests/enum-flags-selftests.c.
103 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
104 btrace_function_flags instead of enum btrace_function_flag.
105 * compile/compile-c-types.c (convert_qualified): Use
106 enum_flags::raw.
107 * compile/compile-cplus-symbols.c (convert_one_symbol)
108 (convert_symbol_bmsym):
109 * compile/compile-cplus-types.c (compile_cplus_convert_method)
110 (compile_cplus_convert_struct_or_union_methods)
111 (compile_cplus_instance::convert_qualified_base):
112 * go-exp.y (parse_string_or_char): Add cast to int.
113 * unittests/enum-flags-selftests.c: New file.
114 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
115 type to btrace_thread_flags from btrace_thread_flag.
116 (record_btrace_cancel_resume, record_btrace_step_thread): Change
117 local's type to btrace_thread_flags from btrace_thread_flag. Add
118 cast in DEBUG call.
119
120 2020-09-14 Pedro Alves <pedro@palves.net>
121
122 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
123 * gdbtypes.c (address_space_name_to_int): Rename to ...
124 (address_space_name_to_type_instance_flags): ... this.
125 (address_space_int_to_name): Rename to ...
126 (address_space_type_instance_flags_to_name): ... this.
127 * gdbtypes.h (address_space_name_to_int): Rename to ...
128 (address_space_name_to_type_instance_flags): ... this.
129 (address_space_int_to_name): Rename to ...
130 (address_space_type_instance_flags_to_name): ... this.
131 * type-stack.c (type_stack::insert): Adjust to rename.
132 * type-stack.h (type_stack::insert): Likewise.
133
134 2020-09-14 Pedro Alves <pedro@palves.net>
135 Andrew Burgess <andrew.burgess@embecosm.com>
136
137 * avr-tdep.c (avr_address_class_type_flags): Return
138 type_instance_flags.
139 (avr_address_class_type_flags_to_name): Take a
140 type_instance_flags.
141 (avr_address_class_name_to_type_flags): Return bool and take a
142 type_instance_flags.
143 * d-lang.c (build_d_types): Use type::set_instance_flags.
144 * ft32-tdep.c (ft32_address_class_type_flags): Return
145 type_instance_flags.
146 (ft32_address_class_type_flags_to_name): Take a
147 type_instance_flags.
148 (ft32_address_class_name_to_type_flags): Return bool and take a
149 type_instance_flags.
150 (ft32_gdbarch_init): Use type::set_instance_flags.
151 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
152 * gdbarch.h, gdbarch.c: Regenerate.
153 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
154 (address_class_name_to_type_flags): Use type_instance_flags and
155 bool.
156 * gdbtypes.c (address_space_name_to_int)
157 (address_space_int_to_name, make_qualified_type): Use
158 type_instance_flags.
159 (make_qualified_type): Use type_instance_flags and
160 type::set_instance_flags.
161 (make_type_with_address_space, make_cv_type, make_vector_type)
162 (check_typedef): Use type_instance_flags.
163 (recursive_dump_type): Cast type_instance_flags to unsigned for
164 printing.
165 (copy_type_recursive): Use type::set_instance_flags.
166 (gdbtypes_post_init): Use type::set_instance_flags.
167 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
168 <m_instance_flags>: ... this.
169 <instance_flags, set_instance_flags>: New methods.
170 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
171 (SET_TYPE_INSTANCE_FLAGS): New.
172 (address_space_name_to_int, address_space_int_to_name)
173 (make_type_with_address_space): Pass flags using
174 type_instance_flags instead of int.
175 * stabsread.c (cleanup_undefined_types_noname): Use
176 type::set_instance_flags.
177 * s390-tdep.c (s390_address_class_type_flags): Return
178 type_instance_flags.
179 (s390_address_class_type_flags_to_name): Take a
180 type_instance_flags.
181 (s390_address_class_name_to_type_flags): Return bool and take a
182 type_instance_flags.
183 * type-stack.c (type_stack::follow_types): Use
184 type_instance_flags.
185 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
186
187 2020-09-14 Tom Tromey <tromey@adacore.com>
188
189 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
190 * x86-tdep.c (x86_is_thunk_register_name)
191 (x86_in_indirect_branch_thunk): Update.
192 * sparc64-tdep.c (sparc64_fpu_register_names)
193 (sparc64_cp0_register_names, sparc64_register_names)
194 (sparc64_pseudo_register_names): Now const.
195 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
196 cp0_registers_num>: Now const.
197 * sparc-tdep.c (sparc_core_register_names)
198 (sparc32_fpu_register_names, sparc32_cp0_register_names)
199 (sparc32_pseudo_register_names): Now const.
200 (validate_tdesc_registers): Update.
201 * rust-lang.c (rust_extensions): Now const.
202 * p-lang.c (p_extensions): Now const.
203 * objc-lang.c (objc_extensions): Now const.
204 * nto-tdep.c (nto_thread_state_str): Now const.
205 * moxie-tdep.c (moxie_register_names): Now const.
206 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
207 Now const.
208 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
209 (mips_linux_reg_names): Now const.
210 (mips_gdbarch_init): Update.
211 * microblaze-tdep.c (microblaze_register_names): Now const.
212 * m68k-tdep.c (m68k_register_names): Now const.
213 * m32r-tdep.c (m32r_register_names): Now const.
214 * ia64-tdep.c (ia64_register_names): Now const.
215 * i386-tdep.h (struct gdbarch_tdep) <register_names,
216 ymmh_register_names, ymm16h_regnum, mpx_register_names,
217 k_register_names, zmmh_register_names, xmm_avx512_register_names,
218 ymm_avx512_register_names, pkeys_register_names>: Now const.
219 * i386-tdep.c (i386_register_names, i386_zmm_names)
220 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
221 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
222 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
223 * f-lang.c (f_extensions): Now const.
224 * d-lang.c (d_extensions): Now const.
225 * csky-tdep.c (csky_register_names): Now const.
226 * charset.c (default_charset_names, charset_enum): Now const.
227 (_initialize_charset): Update.
228 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
229 const.
230 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
231 (bsd_uthread_solib_loaded): Update.
232 (bsd_uthread_state): Now const.
233 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
234 (amd64_ymm_avx512_names, amd64_ymmh_names)
235 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
236 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
237 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
238 (amd64_dword_names): Now const.
239 * agent.c (can_use_agent_enum): Now const.
240 * ada-tasks.c (task_states, long_task_states): Now const.
241 * ada-lang.c (known_runtime_file_name_patterns)
242 (known_auxiliary_function_name_patterns, attribute_names)
243 (standard_exc, ada_extensions): Now const.
244
245 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
246
247 * bcache.h (struct bcache) <bcache>: Remove constructor.
248 <m_hash_function, m_compare_function>: Remove.
249 <~bcache>: Make virtual.
250 <compare>: Remove static method, introduce virtual method.
251 <default_hash>: Remove.
252 <hash>: New virtual method.
253 * bcache.c (bcache::expand_hash_table): Update.
254 (bcache::insert): Update.
255 (bcache::hash): New.
256 (bcache::compare): Update comment and parameter names.
257 * gdbtypes.c (types_deeply_equal): Update.
258 * psymtab.h (struct psymbol_bcache): New struct.
259 (class psymtab_storage) <psymtab_storage>: Make default.
260 <psymbol_cache>: Change type to psymbol_bcache.
261 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
262 (psymbol_hash): Change to...
263 (psymbol_bcache::hash): ... this.
264 (psymbol_compare): Change to...
265 (psymbol_bcache::compare): ... this.
266
267 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
268
269 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
270 checking for initial lwp.
271
272 2020-09-14 Tom Tromey <tromey@adacore.com>
273
274 * m68k-tdep.c (m68k_extract_return_value): Use
275 pointer_result_regnum.
276 (m68k_store_return_value): Likewise.
277 (m68k_reg_struct_return_p): Handle vectors and arrays.
278 (m68k_return_value): Handle arrays.
279 (m68k_svr4_return_value): Fix single-element aggregate handling.
280 Handle long double. Adjust for embedded ABI.
281 (m68k_svr4_init_abi): Set pointer_result_regnum.
282 (m68k_embedded_init_abi): New function.
283 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
284 (m68k_osabi_sniffer): New function.
285 (_initialize_m68k_tdep): Register osabi sniffer.
286 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
287 member.
288
289 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
290
291 * xml-support.c (xml_fetch_content_from_file): Replace xfree
292 with gdb::unique_xmalloc_ptr<char>.
293
294 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
295
296 * xml-support.h (xml_fetch_another): Change type to be a
297 function_view.
298 (xml_process_xincludes): Remove baton parameter.
299 (xml_fetch_content_from_file): Change baton parameter to
300 dirname.
301 * xml-support.c (struct xinclude_parsing_data)
302 <xinclude_parsing_data>: Remove baton parameter.
303 <fetcher_baton>: Remove.
304 (xinclude_start_include): Adjust.
305 (xml_process_xincludes): Adjust.
306 (xml_fetch_content_from_file): Replace baton parameter with
307 dirname.
308 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
309 (xml_init_syscalls_info): Use a lambda.
310 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
311 (file_read_description_xml): Use a lambda.
312 (fetch_available_features_from_target): Change baton parameter
313 to target_ops.
314 (target_read_description_xml): Use a lambda.
315 (target_fetch_description_xml): Use a lambda.
316 (string_read_description_xml): Update.
317
318 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
319
320 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
321 uses with type::endianity_is_not_default.
322
323 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
324
325 * gdbtypes.h (struct type) <endianity_is_not_default,
326 set_endianity_is_not_default>: New methods.
327 (TYPE_ENDIANITY_NOT_DEFAULT): Use
328 type::endianity_is_not_default, change all write call sites to
329 use type::set_endianity_is_not_default.
330
331 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
332
333 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
334 uses with type::is_fixed_instance.
335
336 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
337
338 * gdbtypes.h (struct type) <is_fixed_instance,
339 set_is_fixed_instance>: New methods.
340 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
341 write call sites to use type::set_is_fixed_instance.
342
343 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
344
345 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
346 uses with type::is_gnu_ifunc.
347
348 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
349
350 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
351 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
352 use type::set_is_gnu_ifunc.
353
354 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
355
356 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
357 uses with type::stub_is_supported.
358
359 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
360
361 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
362 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
363 use type::set_stub_is_supported.
364
365 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
366
367 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
368 uses with type::is_vector.
369
370 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
371
372 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
373 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
374 use type::set_is_vector.
375
376 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
377
378 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
379 uses with type::has_varargs.
380
381 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
382
383 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
384 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
385 use type::set_has_varargs.
386
387 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
388
389 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
390 uses with type::is_prototyped.
391
392 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
393
394 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
395 New methods.
396 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
397 call sites to use type::set_is_prototyped.
398
399 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
400
401 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
402 uses with type::target_is_stub.
403
404 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
405
406 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
407 New methods.
408 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
409 sites to use type::set_target_is_stub.
410
411 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
412
413 * gdbtypes.h (TYPE_STUB): Remove, replace all
414 uses with type::is_stub.
415
416 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
417
418 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
419 (TYPE_STUB): Use type::is_stub, change all write call sites to
420 use type::set_is_stub.
421
422 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
423
424 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
425 type::has_no_signedness.
426
427 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
428
429 * gdbtypes.h (struct type) <has_no_signedness,
430 set_has_no_signedness>: New methods.
431 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
432 call sites to use type::set_has_no_signedness.
433
434 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
435
436 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
437 type::is_unsigned.
438
439 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
440
441 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
442 methods.
443 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
444 sites to use type::set_is_unsigned.
445
446 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
447 Adam Renquinha <arenquinha@cimeq.qc.ca>
448
449 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
450 pointer and stack frame offset when unwinding.
451
452 2020-09-13 Pedro Alves <pedro@palves.net>
453
454 * NEWS: Document "-break-insert --qualified".
455 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
456
457 2020-09-13 Pedro Alves <pedro@palves.net>
458
459 * linespec.c (classify_mtype, compare_msyms): Delete.
460 (search_minsyms_for_name): Remove classification logic. Instead
461 filter out trampoline symbols if we also found an external
462 function of the same name.
463
464 2020-09-13 Joel Brobecker <brobecker@adacore.com>
465
466 * NEWS: Create a new section for the next release branch.
467 Rename the section of the current branch, now that it has
468 been cut.
469
470 2020-09-13 Joel Brobecker <brobecker@adacore.com>
471
472 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
473 * version.in: Bump version to 11.0.50.DATE-git.
474
475 2020-09-12 Joel Brobecker <brobecker@adacore.com>
476
477 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
478
479 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
480 Felix Willgerodt <Felix.Willgerodt@intel.com>
481
482 * gdbarch.sh: Added bfloat16 type.
483 * gdbarch.c: Regenerated.
484 * gdbarch.h: Regenerated.
485 * gdbtypes.c (floatformats_bfloat16): New struct.
486 (gdbtypes_post_init): Add builtin_bfloat16.
487 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
488 (floatformats_bfloat16): New struct.
489 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
490 (i386_ymm_type): Add field "v16_bfloat16"
491 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
492 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
493 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
494 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
495 * features/i386/64bit-avx512.xml: Add bfloat16 type.
496 * features/i386/64bit-avx512.c: Regenerated.
497 * features/i386/64bit-sse.xml: Add bfloat16 type.
498 * features/i386/64bit-sse.c: Regenerated.
499
500 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
501
502 * i386-tdep.c (i386_zmm_type): Fix field names.
503 (i386_ymm_type): Fix field names.
504
505 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
506
507 * breakpoint.c: Fix typo in the help message of the
508 "set breakpoint condition-evaluation" command.
509
510 2020-09-10 Kamil Rytarowski <n54@gmx.com>
511
512 * nbsd-nat.c: Include "nat/netbsd-nat.h".
513 * (nbsd_nat_target::pid_to_exec_file)
514 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
515 (nbsd_nat_target::post_startup_inferior)
516 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
517 (nbsd_add_threads): Switch local code to common gdb/nat functions.
518 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
519 * (nbsd_thread_lister): Remove.
520
521 2020-09-10 Kamil Rytarowski <n54@gmx.com>
522
523 * fork-inferior.c (startup_inferior): Avoid double free.
524
525 2020-09-10 Kamil Rytarowski <n54@gmx.com>
526
527 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
528 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
529
530 2020-09-10 Kamil Rytarowski <n54@gmx.com>
531
532 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
533 * netbsd-nat.c: Include <sys/ptrace.h>.
534 * (netbsd_nat::enable_proc_events): Add.
535
536 2020-09-10 Kamil Rytarowski <n54@gmx.com>
537
538 * netbsd-nat.h: Include "gdbsupport/function-view.h".
539 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
540 (netbsd_nat::for_each_thread): Add.
541 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
542 "gdbsupport/common-debug.h".
543 * (netbsd_nat::netbsd_thread_lister)
544 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
545 (netbsd_nat::for_each_thread): Add.
546
547 2020-09-10 Kamil Rytarowski <n54@gmx.com>
548
549 * netbsd-nat.h: Include <unistd.h>.
550 * (netbsd_nat::pid_to_exec_file): Add.
551 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
552 * (netbsd_nat::pid_to_exec_file) Add.
553
554 2020-09-10 Kamil Rytarowski <n54@gmx.com>
555
556 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
557
558 2020-09-10 Kamil Rytarowski <n54@gmx.com>
559
560 * netbsd-nat.h: New file.
561 * netbsd-nat.c: Likewise.
562
563 2020-09-09 Tom Tromey <tromey@adacore.com>
564
565 * ada-lang.c (remove_extra_symbols): Do not increment when
566 removing an element
567
568 2020-09-08 Tom Tromey <tromey@adacore.com>
569
570 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
571
572 2020-09-08 Tom Tromey <tromey@adacore.com>
573
574 PR win32/25302:
575 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
576 (gdb_bfd_init_data): New function.
577 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
578
579 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
580
581 * infrun.c (fetch_inferior_event): Use
582 `switch_to_target_no_thread` to switch the target.
583
584 2020-09-06 Tom Tromey <tom@tromey.com>
585
586 * symfile.h (dwarf2_free_objfile): Don't declare.
587
588 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
589
590 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
591 to match 16 byte real/complex type generated by Flang compiler.
592
593 2020-09-03 Tom de Vries <tdevries@suse.de>
594
595 PR breakpoint/26546
596 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
597 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
598
599 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
600
601 * maint.c (index_digits): New function.
602 (struct maint_print_section_data): Remove.
603 (print_bfd_section_info): Remove print_data parameter, add arg
604 and index_digits.
605 (print_objfile_section_info): Likewise.
606 (print_bfd_section_info_maybe_relocated): Likewise (plus
607 objfile).
608 (maintenance_info_sections): Adjust calls.
609
610 2020-09-02 Tom Tromey <tromey@adacore.com>
611
612 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
613 for null pointers.
614 (ada_varobj_adjust_for_child_access): Special-case null pointers.
615
616 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
617
618 * bcache.h (struct bcache) <insert>: Change type of `added` to
619 pointer to bool.
620 * bcache.c (bcache::insert): Likewise.
621 * gdbtypes.c (check_types_worklist): Adjust.
622 * psymtab.c (add_psymbol_to_bcache): Adjust.
623
624 2020-08-31 Kevin Buettner <kevinb@redhat.com>
625
626 * corelow.c (unordered_set): Include.
627 (class core_target): Add field 'm_core_unavailable_mappings'.
628 (core_target::build_file_mappings): Print only one warning
629 per inaccessible file. Add unavailable/broken mappings
630 to m_core_unavailable_mappings.
631 (core_target::xfer_partial): Call...
632 (core_target::xfer_memory_via_mappings): New method.
633
634 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
635
636 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
637 type to bool.
638
639 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
640
641 * dwarf2/read.c (struct field_info): Fix indentation.
642
643 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
644
645 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
646 ordering in comment.
647 * frame.c (frame_id_eq): Fix indentation.
648
649 2020-08-31 Scott Linder <scott@scottlinder.com>
650 Simon Marchi <simon.marchi@efficios.com>
651
652 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
653 inline frame ids in outer frame.
654
655 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
656
657 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
658 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
659 (outer_frame_id): Use FID_STACK_OUTER instead of
660 FID_STACK_INVALID.
661 (frame_id_p): Don't check for outer_frame_id.
662
663 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
664
665 * frame-unwind.c (frame_unwind_got_optimized): Don't set
666 regnum/frame in value. Call allocate_value_lazy.
667 * frame.c (frame_unwind_register_value): Use
668 val_print_not_saved.
669
670 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
671
672 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
673
674 2020-08-29 Pedro Alves <pedro@palves.net>
675
676 * progspace.c (print_program_space): Use all_inferiors. Switch to
677 the inferior before calling target_pid_to_str.
678
679 2020-08-28 Tom Tromey <tom@tromey.com>
680
681 * xcoffread.c (xcoff_end_psymtab): Update comment.
682 * dbxread.c (dbx_end_psymtab): Update comment.
683
684 2020-08-28 Tom de Vries <tdevries@suse.de>
685
686 PR breakpoint/26544
687 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
688 event_location.
689 (create_breakpoint): Same.
690 (base_breakpoint_decode_location): Same.
691 (bkpt_create_sals_from_location): Same.
692 (bkpt_decode_location): Same.
693 (bkpt_probe_create_sals_from_location): Same.
694 (bkpt_probe_decode_location): Same.
695 (tracepoint_create_sals_from_location): Same.
696 (tracepoint_decode_location): Same.
697 (tracepoint_probe_decode_location): Same.
698 (strace_marker_create_sals_from_location): Same.
699 (strace_marker_decode_location): Same.
700 (create_sals_from_location_default): Same.
701 (decode_location_default): Same.
702 * breakpoint.h (struct breakpoint_ops): Same.
703 (create_breakpoint): Same.
704 * linespec.h (decode_line_full): Same.
705 * linespec.c (decode_line_full): Same. Throw error if
706 result.size () == 0.
707
708 2020-08-27 Pedro Alves <pedro@palves.net>
709
710 PR gdb/26524
711 * breakpoint.c (until_break_fsm) <location_breakpoint,
712 caller_breakpoint>: Delete fields.
713 <breakpoints>: New field.
714 <until_break_fsm>: Adjust to save a breakpoint vector instead of
715 two individual breakpoints.
716 (until_break_fsm::should_stop): Loop over breakpoints in the
717 breakpoint vector.
718 (until_break_fsm::clean_up): Adjust to clear the breakpoints
719 vector.
720 (until_break_command): Handle location expanding into multiple
721 sals.
722
723 2020-08-27 Pedro Alves <pedro@palves.net>
724
725 PR gdb/26523
726 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
727 bp_until breakpoints user-specified locations. Update intro
728 comment.
729
730 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
731
732 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
733 gdb_bfd_sections): New.
734 * maint.c (print_bfd_section_info): Change param type to
735 maint_print_section_data.
736 (print_objfile_section_info): Likewise.
737 (print_bfd_section_info_maybe_relocated): Likewise.
738 (maintenance_info_sections): Use gdb_bfd_sections.
739
740 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
741
742 * MAINTAINERS: Add ARC target and maintainer.
743
744 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
745
746 * configure.tgt: ARC support for GNU/Linux.
747 * Makefile.in (ALL_TARGET_OBJS): Likewise.
748 * arc-linux-tdep.c: New file.
749 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
750 * arc-tdep.c (arc_write_pc): Use it.
751
752 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
753
754 * arc-tdep.c (arc_check_for_hardware_loop): New.
755 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
756
757 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
758
759 * arc-tdep.h: Include "gdbarch.h".
760
761 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
762
763 * arch/arc.h
764 (arc_gdbarch_features): New class to stir the selection of target XML.
765 (arc_create_target_description): Use FEATURES to choose XML target.
766 (arc_lookup_target_description): Use arc_create_target_description
767 to create _new_ target descriptions or return the already created
768 ones if the FEATURES is the same.
769 * arch/arc.c: Implementation of prototypes described above.
770 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
771 (arc_gdbarch_features_init): Initialize the FEATURES struct.
772 * arc-tdep.c (*_feature_name): Make feature names consistent.
773 (arc_register_feature): A new struct to hold information about
774 registers of a particular target/feature.
775 (arc_check_tdesc_feature): Check if XML provides registers in
776 compliance with ARC_REGISTER_FEATURE structs.
777 (arc_update_acc_reg_names): Add aliases for r58 and r59.
778 (determine_*_reg_feature_set): Which feature name to look for.
779 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
780 (mach_type_to_arc_isa): Convert from a set of binutils machine types
781 to expected ISA enums to be used in arc_gdbarch_features structs.
782 * features/Makefile (FEATURE_XMLFILES): Add new files.
783 * gdb/features/arc/v1-aux.c: New file.
784 * gdb/features/arc/v1-aux.xml: Likewise.
785 * gdb/features/arc/v1-core.c: Likewise.
786 * gdb/features/arc/v1-core.xml: Likewise.
787 * gdb/features/arc/v2-aux.c: Likewise.
788 * gdb/features/arc/v2-aux.xml: Likewise.
789 * gdb/features/arc/v2-core.c: Likewise.
790 * gdb/features/arc/v2-core.xml: Likewise.
791 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
792
793 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
794 Andrew Burgess <andrew.burgess@embecosm.com>
795
796 PR m2/26372
797 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
798 an assert. Remove single element array indexing pattern as the
799 MULTI_SUBSCRIPT support will handle this case too.
800
801 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
802
803 * value.h (valprint_check_validity): Move declaration from
804 here...
805 * valprint.h (valprint_check_validity): ... to here.
806
807 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
808
809 * debug.h: New file.
810 * debug.c (debug_prefixed_vprintf): New function.
811 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
812 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
813
814 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
815
816 * infrun.h (infrun_debug_printf_1): New function declaration.
817 (infrun_debug_printf): New macro.
818 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
819 throughout.
820 (infrun_debug_printf): New function.
821 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
822 (handle_jit_event): Likewise.
823
824 2020-08-21 Mark Wielaard <mark@klomp.org>
825
826 * ada-lex.l: Extend register warnings diagnostics comment for g++.
827
828 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
829
830 * frame.c (enum class frame_id_status): New.
831 (struct frame_info) <this_id::p>: Change type to frame_id_status.
832 (fprintf_frame): Update.
833 (compute_frame_id): Set frame id status to "computing" on entry.
834 Set it back to "not_computed" on failure and to "computed" on
835 success.
836 (get_frame_id): Assert the frame id is not being computed.
837 (create_sentinel_frame): Use frame_id_status::COMPUTED.
838 (create_new_frame): Likewise.
839 (frame_cleanup_after_sniffer): Update assert.
840
841 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
842
843 * regcache.c (pid_ptid_regcache_map): New type.
844 (target_ptid_regcache_map): Remove.
845 (target_pid_ptid_regcache_map): New type.
846 (regcaches): Change type to target_pid_ptid_regcache_map.
847 (get_thread_arch_aspace_regcache): Update.
848 (regcache_thread_ptid_changed): Update, handle pid-like ptid
849 case.
850 (regcaches_size): Update.
851 (regcache_count): Update.
852 (registers_changed_ptid_target_pid_test): New.
853 (_initialize_regcache): Register new test.
854
855 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
856
857 * regcache.c (regcache_count): New.
858 (struct regcache_test_data): New.
859 (regcache_test_data_up): New.
860 (populate_regcaches_for_test): New.
861 (regcaches_test): Remove.
862 (get_thread_arch_aspace_regcache_test): New.
863 (registers_changed_ptid_all_test): New.
864 (registers_changed_ptid_target_test): New.
865 (registers_changed_ptid_target_ptid_test): New.
866 (regcache_thread_ptid_changed): Remove regcache_count lambda.
867 (_initialize_regcache): Register new tests.
868
869 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
870
871 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
872 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
873 gdbarch and aspace parameter. Use current inferior's aspace.
874 Validate regcache's arch value.
875 (regcaches_test): Update.
876
877 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
878
879 * regcache.c (regcaches_test): Call registers_changed.
880
881 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
882
883 * infrun.c (process_event_stop_test): Fix typo "breapoint".
884
885 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
886
887 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
888 to find the end of prologue for flang compiled binaries.
889 * arm-tdep.c (arm_skip_prologue): Likewise.
890 * i386-tdep.c (i386_skip_prologue): Likewise.
891 * producer.c (producer_is_llvm): New function.
892 (producer_parsing_tests): Added new tests for clang/flang.
893 * producer.h (producer_is_llvm): New declaration.
894
895 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
896
897 * linux-nat.c (linux_nat_debug_printf): New function.
898 (linux_nat_debug_printf_1): New macro. Use throughout the file.
899
900 2020-08-18 Aaron Merey <amerey@redhat.com>
901
902 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
903 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
904 (CLIBS): Add DEBUGINFOD_LIBS.
905
906 2020-08-17 Sergei Trofimovich <siarheit@google.com>
907
908 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
909 'gdbarch_num_regs'.
910
911 2020-08-17 Tom Tromey <tromey@adacore.com>
912
913 * ada-varobj.c (ada_varobj_decode_var): Handle case where
914 ada_get_decoded_value returns NULL.
915
916 2020-08-17 Tom Tromey <tromey@adacore.com>
917
918 * python/py-inferior.c (infpy_search_memory): Use
919 gdb_py_object_from_ulongest.
920 * python/py-infevents.c (create_inferior_call_event_object)
921 (create_memory_changed_event_object): Use
922 gdb_py_object_from_ulongest.
923 * python/py-linetable.c (ltpy_entry_get_pc): Use
924 gdb_py_object_from_ulongest.
925
926 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
927
928 * loc.c (class symbol_needs_eval_context): Fix indentation.
929
930 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
931
932 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
933 bool.
934
935 2020-08-17 Tom de Vries <tdevries@suse.de>
936
937 PR gdb/26393
938 * gdbtypes.c (dump_dynamic_prop): New function.
939 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
940
941 2020-08-15 Tom de Vries <tdevries@suse.de>
942
943 PR backtrace/26390
944 * stack.c (print_frame_args): Temporarily set the selected
945 frame to FRAME while printing the frame's arguments.
946
947 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
948
949 PR breakpoints/26385
950 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
951 Always clear watchpoint with PTRACE_SET_DEBUGREG.
952
953 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
954
955 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
956 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
957 and >= to check return value instead of == -1 and != -1.
958
959 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
960
961 * utils.h (class gdb_argv) <as_array_view>: New method.
962 * utils.c (gdb_argv_as_array_view_test): New.
963 (_initialize_utils): Register selftest.
964 * maint.c (maintenance_selftest): Use the new method.
965
966 2020-08-13 Kamil Rytarowski <n54@gmx.com>
967
968 * target.h (supports_dumpcore, dumpcore): New
969 function declarations.
970 * target.c (supports_dumpcore, dumpcore): New
971 functions.
972 * target-delegates.c: Rebuild.
973 * gcore.c (gcore_command): Use target_supports_dumpcore ()
974 and target_dumpcore ().
975
976 2020-08-13 Aaron Merey <amerey@redhat.com>
977
978 * debuginfod-support.c: Replace global variables with user_data.
979
980 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
981
982 * maint.c (maintenance_selftest): Split args and pass array_view
983 to run_tests.
984
985 2020-08-12 Luis Machado <luis.machado@linaro.org>
986
987 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
988 type's length.
989 Use %s and pulongest to print the length.
990
991 2020-08-12 Pedro Alves <palves@redhat.com>
992
993 * NEWS: Move "Multi-target debugging support" item to the
994 "Changes since GDB 9" section.
995
996 2020-08-12 Pedro Alves <palves@redhat.com>
997
998 PR gdb/26336
999 * progspace.c (program_space::remove_objfile): Invalidate the
1000 frame cache.
1001
1002 2020-08-11 Tom de Vries <tdevries@suse.de>
1003
1004 * MAINTAINERS: Mark ms1 as deleted.
1005
1006 2020-08-10 Luis Machado <luis.machado@linaro.org>
1007
1008 PR gdb/26310
1009
1010 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1011 act accordingly.
1012 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1013 movz/str/stur/stp skipping behavior.
1014
1015 2020-08-10 Luis Machado <luis.machado@linaro.org>
1016
1017 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1018 struct user_sve_header instead of struct sve_context.
1019
1020 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1021
1022 * read.h (dwarf2_fetch_die_loc_sect_off,
1023 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1024 `void *` parameter with function_view.
1025 * read.c (dwarf2_fetch_die_loc_sect_off,
1026 dwarf2_fetch_die_loc_cu_off): Likewise.
1027 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1028 (per_cu_dwarf_call): Adjust.
1029 (get_frame_address_in_block_wrapper): Remove.
1030 (indirect_synthetic_pointer): Adjust.
1031 (get_ax_pc): Remove.
1032 (dwarf2_compile_expr_to_ax): Adjust.
1033
1034 2020-08-08 Tom de Vries <tdevries@suse.de>
1035
1036 PR build/26344
1037 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1038 constructor.
1039 * regcache.c (get_thread_arch_aspace_regcache): Same.
1040
1041 2020-08-07 Tom Tromey <tromey@adacore.com>
1042
1043 * ravenscar-thread.c
1044 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1045 New method.
1046 (ravenscar_thread_target::wait): Check
1047 runtime_initialized.
1048 (ravenscar_thread_target::prepare_to_store)
1049 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1050 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1051 (ravenscar_thread_target::stopped_by_watchpoint)
1052 (ravenscar_thread_target::stopped_data_address)
1053 (ravenscar_thread_target::core_of_thread): Use
1054 scoped_restore_current_thread and
1055 set_base_thread_from_ravenscar_task.
1056
1057 2020-08-07 Tom Tromey <tromey@adacore.com>
1058
1059 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1060
1061 2020-08-07 Tom Tromey <tromey@adacore.com>
1062
1063 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1064 update_inferior_ptid before update_thread_list.
1065 (temporarily_change_regcache_ptid): New class.
1066 (ravenscar_thread_target::fetch_registers)
1067 (ravenscar_thread_target::store_registers)
1068 (ravenscar_thread_target::prepare_to_store): Use base thread when
1069 forwarding operation.
1070
1071 2020-08-07 Tom Tromey <tromey@adacore.com>
1072
1073 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1074 "is_pid" case.
1075
1076 2020-08-07 Tom Tromey <tromey@adacore.com>
1077
1078 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1079 New methods.
1080 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1081 first.
1082 (ravenscar_thread_target::add_thread): Rename from
1083 ravenscar_add_thread.
1084 (ravenscar_thread_target::update_thread_list): Use a lambda.
1085 (ravenscar_thread_target::xfer_partial): New method.
1086
1087 2020-08-07 Tom Tromey <tromey@adacore.com>
1088
1089 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1090 gdb::function_view.
1091 (iterate_over_live_ada_tasks): Change type of argument.
1092 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1093 of argument.
1094
1095 2020-08-07 Tom Tromey <tromey@adacore.com>
1096
1097 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1098 Remove.
1099 (ravenscar_thread_target::extra_thread_info): Remove.
1100 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1101 defer to target beneath for non-Ravenscar threads.
1102
1103 2020-08-07 Tom Tromey <tromey@adacore.com>
1104
1105 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1106 get_base_thread_from_ravenscar_task>: Now methods.
1107 <m_cpu_map>: New member.
1108 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1109 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1110 (ravenscar_thread_target::task_is_currently_active): Update.
1111 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1112 Now a method.
1113 (ravenscar_thread_target::add_active_thread): Put initial thread
1114 into the m_cpu_map.
1115
1116 2020-08-07 Tom Tromey <tromey@adacore.com>
1117
1118 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1119 event_ptid.
1120
1121 2020-08-07 Tom Tromey <tromey@adacore.com>
1122
1123 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1124 runtime_initialized.
1125
1126 2020-08-07 Tom Tromey <tromey@adacore.com>
1127
1128 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1129 add_active_thread.
1130 (ravenscar_thread_target::add_active_thread): Now public.
1131 (ravenscar_inferior_created): Call add_active_thread after pushing
1132 the target.
1133
1134 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1135
1136 * regcache.c (ptid_regcache_map): New type.
1137 (target_ptid_regcache_map): New type.
1138 (regcaches): Change type to target_ptid_regcache_map.
1139 (get_thread_arch_aspace_regcache): Update to regcaches' new
1140 type.
1141 (regcache_thread_ptid_changed): Likewise.
1142 (registers_changed_ptid): Likewise.
1143 (regcaches_size): Likewise.
1144 (regcaches_test): Update.
1145 (regcache_thread_ptid_changed): Update.
1146 * regcache.h (regcache_up): New type.
1147 * gdbsupport/ptid.h (hash_ptid): New struct.
1148
1149 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1150
1151 * observable.h (thread_ptid_changed): Add parameter
1152 `process_stratum_target *`.
1153 * infrun.c (infrun_thread_ptid_changed): Add parameter
1154 `process_stratum_target *` and use it.
1155 (selftests): New namespace.
1156 (infrun_thread_ptid_changed): New function.
1157 (_initialize_infrun): Register selftest.
1158 * regcache.c (regcache_thread_ptid_changed): Add parameter
1159 `process_stratum_target *` and use it.
1160 (regcache_thread_ptid_changed): New function.
1161 (_initialize_regcache): Register selftest.
1162 * thread.c (thread_change_ptid): Pass target to
1163 thread_ptid_changed observable.
1164
1165 2020-08-06 Caroline Tice <cmtice@google.com>
1166
1167 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1168 (struct dwp_sections): Update field comments. Add loclists and
1169 rnglists fields.
1170 (struct virtual_v2_dwo_sections): Rename struct to
1171 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1172 size & offset fields for loclists and rnglists.
1173 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1174 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1175 skipping dummy type units.
1176 (create_dwp_hash_table): Update the large comment above the function to
1177 discuss Version 5 DWP files as well, with references. Update all the
1178 version checks in the function to check for version 5 as well. Add new
1179 section at the end to create dwp hash table for version 5.
1180 (create_dwp_v2_section): Rename function to
1181 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1182 Add V5 to error message text.
1183 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1184 into calls to create_dwp_v2_or_v5_section.
1185 (create_dwo_unit_in_dwp_v5): New function.
1186 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1187 check for version2; add else clause to handle version 5.
1188 (open_and_init_dwo_file): Add code to check dwarf version & only call
1189 create_debug_types_hash_table (with sections.types) if version is not 5;
1190 else call create_debug_type_hash_table, with sections.info.
1191 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1192 version 5.
1193 (dwarf2_locate_v5_dwp_sections): New function.
1194 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1195 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1196
1197 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1198
1199 * regcache.h (class regcache): Remove friend
1200 registers_changed_ptid.
1201 <regcache_thread_ptid_changed>: Remove.
1202 <regcaches>: Remove.
1203 * regcache.c (regcache::regcaches): Rename to...
1204 (regcaches): ... this. Make static.
1205 (get_thread_arch_aspace_regcache): Update.
1206 (regcache::regcache_thread_ptid_changed): Rename to...
1207 (regcache_thread_ptid_changed): ... this. Update.
1208 (class regcache_access): Remove.
1209 (regcaches_test): Update.
1210 (_initialize_regcache): Update.
1211 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1212 <forward_list>.
1213
1214 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1215
1216 * regcache.h (class regcache) <current_regcache>: Rename to...
1217 <regcaches>: ... this. Move doc here.
1218 * regcache.c (regcache::current_regcache) Rename to...
1219 (regcache::regcaches): ... this. Move doc to header.
1220 (get_thread_arch_aspace_regcache): Update.
1221 (regcache::regcache_thread_ptid_changed): Update.
1222 (registers_changed_ptid): Update.
1223 (class regcache_access) <current_regcache_size>: Rename to...
1224 <regcaches_size>: ... this.
1225 (current_regcache_test): Rename to...
1226 (regcaches_test): ... this.
1227 (_initialize_regcache): Update.
1228
1229 2020-08-06 Victor Collod <vcollod@nvidia.com>
1230
1231 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1232
1233 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1234
1235 * corelow.c (core_target::build_file_mappings): Don't output
1236 null pathname in warning.
1237
1238 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1239
1240 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1241 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1242 gdb.dwarf2/dw2-single-line-discriminators.exp,
1243 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1244
1245 2020-08-05 Tom Tromey <tromey@adacore.com>
1246
1247 PR rust/26197:
1248 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1249 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1250 Fix off-by-one and type size errors in ordinary case.
1251
1252 2020-08-05 Tom de Vries <tdevries@suse.de>
1253
1254 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1255 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1256
1257 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1258
1259 * frame.h (frame_id_p): Return bool.
1260 (frame_id_artificial_p): Return bool.
1261 (frame_id_eq): Return bool.
1262 (has_stack_frames): Return bool.
1263 (get_selected_frame): Fix typo in comment.
1264 (get_frame_pc_if_available): Return bool.
1265 (get_frame_address_in_block_if_available): Return bool.
1266 (get_frame_func_if_available): Return bool.
1267 (read_frame_register_unsigned): Return bool.
1268 (get_frame_register_bytes): Return bool.
1269 (safe_frame_unwind_memory): Return bool.
1270 (deprecated_frame_register_read): Return bool.
1271 (frame_unwinder_is): Return bool.
1272 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1273 bool.
1274 <this_id::p>: Likewise.
1275 <prev_p>: Likewise.
1276 (frame_stash_add): Return bool.
1277 (get_frame_id): Use bool.
1278 (frame_id_build_special) Use bool.
1279 (frame_id_build_unavailable_stack): Use bool.
1280 (frame_id_build): Use bool.
1281 (frame_id_p): Return bool, use true/false instead of 1/0.
1282 (frame_id_artificial_p): Likewise.
1283 (frame_id_eq): Likewise.
1284 (frame_id_inner): Likewise.
1285 (get_frame_func_if_available): Likewise.
1286 (read_frame_register_unsigned): Likewise.
1287 (deprecated_frame_register_read): Likewise.
1288 (get_frame_register_bytes): Likewise.
1289 (has_stack_frames): Likewise.
1290 (inside_main_func): Likewise.
1291 (inside_entry_func): Likewise.
1292 (get_frame_pc_if_available): Likewise.
1293 (get_frame_address_in_block_if_available): Likewise.
1294 (frame_unwinder_is): Likewise.
1295 (safe_frame_unwind_memory): Likewise.
1296 (frame_unwind_arch): Likewise.
1297
1298 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1299
1300 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1301 type to cached_copy_status.
1302 (fprintf_frame): Adjust.
1303 (get_frame_func_if_available): Adjust.
1304 (frame_cleanup_after_sniffer): Adjust.
1305
1306 2020-08-04 Mark Wielaard <mark@klomp.org>
1307
1308 * MAINTAINERS (Write After Approval): Update email address.
1309
1310 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1311
1312 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1313 dynamic_prop::const_val.
1314
1315 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1316
1317 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1318 dynamic_prop::kind.
1319
1320 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1321
1322 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1323
1324 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1325
1326 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1327
1328 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1329 Jose E. Marchesi <jose.marchesi@oracle.com>
1330
1331 * configure.tgt: Add entry for bpf-*-*.
1332 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1333 (ALLDEPFILES): Add bpf-tdep.c.
1334 * bpf-tdep.c: New file.
1335 * MAINTAINERS: Add bpf target and maintainer.
1336 * NEWS: Mention the support for the new target.
1337
1338 2020-08-04 Tom de Vries <tdevries@suse.de>
1339
1340 PR symtab/23270
1341 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1342 Error.
1343
1344 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1345
1346 * syscalls/freebsd.xml: Regenerate.
1347
1348 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1349
1350 * syscalls/update-freebsd.sh: Fix usage and year range.
1351
1352 2020-08-03 Tom de Vries <tdevries@suse.de>
1353
1354 PR symtab/26333
1355 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1356 DW_LNE_lo_user/DW_LNE_hi_user range.
1357
1358 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1359
1360 PR ada/26318
1361 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1362 kind.
1363
1364 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1365
1366 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1367
1368 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1369
1370 * breakpoint.c (set_breakpoint_condition): Update the condition
1371 expressions after checking that the input condition string parses
1372 successfully and does not contain junk at the end.
1373
1374 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1375
1376 * breakpoint.c (set_breakpoint_condition): Update the
1377 condition string after parsing the new condition successfully.
1378
1379 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1380
1381 * proc-api.c (_STRUCTURED_PROC): Don't define.
1382 * proc-events.c: Likewise.
1383 * proc-flags.c: Likewise.
1384 * proc-why.c: Likewise.
1385 * procfs.c: Likewise.
1386
1387 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1388 * configure, config.in: Regenerate.
1389
1390 2020-07-30 Tom de Vries <tdevries@suse.de>
1391
1392 PR build/26320
1393 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1394 m_red/m_green/m_blue in a union.
1395
1396 2020-07-29 Tom de Vries <tdevries@suse.de>
1397
1398 PR tdep/26280
1399 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1400
1401 2020-07-28 Tom Tromey <tromey@adacore.com>
1402
1403 PR symtab/26270:
1404 * symtab.h (find_pc_partial_function_sym): Declare.
1405 * cli/cli-cmds.c (disassemble_command): Use
1406 find_pc_partial_function_sym. Check asm_demangle.
1407 * blockframe.c (cache_pc_function_sym): New global.
1408 (cache_pc_function_name): Remove.
1409 (clear_pc_function_cache): Update.
1410 (find_pc_partial_function_sym): New function, from
1411 find_pc_partial_function.
1412 (find_pc_partial_function): Rewrite using
1413 find_pc_partial_function_sym.
1414
1415 2020-07-28 Tom Tromey <tromey@adacore.com>
1416
1417 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1418 help. Add usage.
1419
1420 2020-07-28 Tom Tromey <tromey@adacore.com>
1421
1422 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1423 <DW_OP_GNU_variable_value>: Cast to address type.
1424
1425 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1426
1427 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1428 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1429 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1430 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1431 (nbsd_get_siginfo_type): New.
1432 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1433 (_initialize_nbsd_tdep): New.
1434
1435 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1436
1437 PR binutils/26301
1438 * configure: Regenerated.
1439
1440 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1441
1442 PR binutils/26301
1443 * configure: Regenerated.
1444
1445 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1446
1447 * python/py-frame.c: Remove 'user-regs.h' include.
1448 (frapy_read_register): Rewrite to make use of
1449 gdbpy_parse_register_id.
1450 * python/py-registers.c (gdbpy_parse_register_id): New function,
1451 moved here from python/py-unwind.c. Updated the return type, and
1452 also accepts register descriptor objects.
1453 * python/py-unwind.c: Remove 'user-regs.h' include.
1454 (pyuw_parse_register_id): Moved to python/py-registers.c.
1455 (unwind_infopy_add_saved_register): Update to use
1456 gdbpy_parse_register_id.
1457 (pending_framepy_read_register): Likewise.
1458 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1459
1460 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1461
1462 * python/py-registers.c: Add 'user-regs.h' include.
1463 (register_descriptor_iter_find): New function.
1464 (register_descriptor_iterator_object_methods): New static global
1465 methods array.
1466 (register_descriptor_iterator_object_type): Add pointer to methods
1467 array.
1468
1469 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1470
1471 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1472 for all architectures on FreeBSD 11.3 and later.
1473
1474 2020-07-27 Tom Tromey <tromey@adacore.com>
1475
1476 * gcore.h (load_corefile): Don't declare.
1477
1478 2020-07-27 Tom de Vries <tdevries@suse.de>
1479
1480 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1481 * config.in: Regenerate.
1482 * configure: Regenerate.
1483
1484 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1485
1486 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1487 ws2tcpip.h. When checking whether socklen_t type is defined, use
1488 ws2tcpip.h if it is available and sys/socket.h isn't.
1489 * configure: Regenerate.
1490 * config.in: Regenerate.
1491
1492 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1493
1494 PR fortran/23051
1495 PR fortran/26139
1496 * valops.c (value_ind): Pass address to
1497 readjust_indirect_value_type.
1498 * value.c (readjust_indirect_value_type): Make parameter
1499 non-const, and add extra address parameter. Resolve original type
1500 before using it.
1501 * value.h (readjust_indirect_value_type): Update function
1502 signature and comment.
1503
1504 2020-07-25 Tom de Vries <tdevries@suse.de>
1505
1506 PR symtab/26243
1507 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1508 entries.
1509
1510 2020-07-24 Aaron Merey <amerey@redhat.com>
1511
1512 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1513 * configure: Rebuild.
1514
1515 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1516
1517 PR corefiles/26294
1518 * corelow.c (_initialize_corelow): Add period to help text
1519 for "maintenance print core-file-backed-mappings".
1520
1521 2020-07-23 Pedro Alves <pedro@palves.net>
1522
1523 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1524 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1525 meanwhile.
1526 * frame.c (frame_cache_generation, get_frame_cache_generation):
1527 New.
1528 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1529 (get_prev_frame_if_no_cycle): On exception, don't touch
1530 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1531 * frame.h (get_frame_cache_generation): Declare.
1532
1533 2020-07-23 Tom de Vries <tdevries@suse.de>
1534
1535 PR tui/26282
1536 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1537 New default constructor.
1538
1539 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1540
1541 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1542 exclude non-statement entries.
1543
1544 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1545
1546 * NEWS (New commands): Mention new command
1547 "maintenance print core-file-backed-mappings".
1548
1549 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1550
1551 * corelow.c (gdbcmd.h): Include.
1552 (core_target::info_proc_mappings): New method.
1553 (get_current_core_target): New function.
1554 (maintenance_print_core_file_backed_mappings): New function.
1555 (_initialize_corelow): Add core-file-backed-mappings to
1556 "maint print" commands.
1557
1558 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1559
1560 * linux-tdep.c (dump_note_entry_p): New function.
1561 (linux_dump_mapping_p_ftype): New typedef.
1562 (linux_find_memory_regions_full): Add new parameter,
1563 should_dump_mapping_p.
1564 (linux_find_memory_regions): Adjust call to
1565 linux_find_memory_regions_full.
1566 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1567 call to linux_find_memory_regions_full.
1568
1569 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1570
1571 * corelow.c (solist.h, unordered_map): Include.
1572 (class core_target): Add field m_core_file_mappings and
1573 method build_file_mappings.
1574 (core_target::core_target): Call build_file_mappings.
1575 (core_target::~core_target): Free memory associated with
1576 m_core_file_mappings.
1577 (core_target::build_file_mappings): New method.
1578 (core_target::xfer_partial): Use m_core_file_mappings
1579 for memory transfers.
1580 * linux-tdep.c (linux_read_core_file_mappings): New
1581 function.
1582 (linux_core_info_proc_mappings): Rewrite to use
1583 linux_read_core_file_mappings.
1584 (linux_init_abi): Register linux_read_core_file_mappings.
1585
1586 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1587
1588 * arch-utils.c (default_read_core_file_mappings): New function.
1589 * arch-utils.c (default_read_core_file_mappings): Declare.
1590 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1591 * gdbarch.h, gdbarch.c: Regenerate.
1592
1593 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1594
1595 PR corefiles/25631
1596 * corelow.c (core_target:xfer_partial): Revise
1597 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1598 case after first checking the stratum beneath the core
1599 target.
1600 (has_all_memory): Return true.
1601 * target.c (raw_memory_xfer_partial): Revise comment
1602 regarding use of has_all_memory.
1603
1604 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1605
1606 * exec.h (section_table_xfer_memory): Revise declaration,
1607 replacing section name parameter with an optional callback
1608 predicate.
1609 * exec.c (section_table_xfer_memory): Likewise.
1610 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1611 of section_table_xfer_memory.
1612
1613 2020-07-22 Tom Tromey <tromey@adacore.com>
1614
1615 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1616 lookup_symbol_search_name.
1617
1618 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1619
1620 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1621 redundant local variable.
1622 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1623 reference, not pointer, update code accordingly.
1624
1625 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1626 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1627
1628 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1629 * jit.c (jit_breakpoint_re_set_internal): Use the
1630 `skip_jit_symbol_lookup` field.
1631
1632 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1633 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1634
1635 * jit.c (jit_read_descriptor): Define the descriptor address once,
1636 use twice.
1637 (jit_breakpoint_deleted): Move the declaration of the loop variable
1638 `iter` into the loop header.
1639 (jit_breakpoint_re_set_internal): Move the declaration of the local
1640 variable `objf_data` to the first point of definition.
1641 (jit_event_handler): Move the declaration of local variables
1642 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1643 Rename `objf` to `jited`.
1644
1645 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1646
1647 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1648 Remove.
1649 * jit.c (get_jiter_objfile_data): Update.
1650
1651 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1652 Simon Marchi <simon.marchi@polymtl.ca>
1653
1654 * jit.c (struct jit_program_space_data): Remove.
1655 (jit_program_space_key): Remove.
1656 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1657 stuff.
1658 (get_jit_program_space_data): Remove.
1659 (jit_breakpoint_deleted): Iterate on all of the program space's
1660 objfiles.
1661 (jit_inferior_init): Likewise.
1662 (jit_breakpoint_re_set_internal): Likewise. Also change return
1663 type to void.
1664 (jit_breakpoint_re_set): Pass current_program_space to
1665 jit_breakpoint_re_set_internal.
1666
1667 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1668
1669 * jit.h (struct jiter_objfile_data) <cached_code_address,
1670 jit_breakpoint>: Move to here from ...
1671 * jit.c (jit_program_space_data): ... here.
1672 (jiter_objfile_data::~jiter_objfile_data): Update.
1673 (jit_breakpoint_deleted): Update.
1674 (jit_breakpoint_re_set_internal): Update.
1675
1676 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1677
1678 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1679 checks.
1680 (jit_read_descriptor): Remove NULL check.
1681 (jit_event_handler): Add an assertion.
1682
1683 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1684
1685 * jit.h (struct jit_objfile_data): Split into...
1686 (struct jiter_objfile_data): ... this ...
1687 (struct jited_objfile_data): ... and this.
1688 * objfiles.h (struct objfile) <jit_data>: Remove.
1689 <jiter_data, jited_data>: New fields.
1690 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1691 (jiter_objfile_data::~jiter_objfile_data): ... this.
1692 (get_jit_objfile_data): Rename to ...
1693 (get_jiter_objfile_data): ... this.
1694 (add_objfile_entry): Update.
1695 (jit_read_descriptor): Use get_jiter_objfile_data.
1696 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1697 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1698 (jit_inferior_exit_hook): Use objfile's jited_data field.
1699
1700 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1701
1702 * jit.h: Forward-declare `struct minimal_symbol`.
1703 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1704 constructor, destructor, and an objfile* field.
1705 * jit.c (jit_objfile_data): Remove.
1706 (struct jit_objfile_data): Migrate from here to jit.h.
1707 (jit_objfile_data::~jit_objfile_data): New destructor
1708 implementation with code moved from free_objfile_data.
1709 (free_objfile_data): Delete.
1710 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1711 (jit_find_objf_with_entry_addr): Ditto.
1712 (jit_inferior_exit_hook): Ditto.
1713 (_initialize_jit): Remove the call to
1714 register_objfile_data_with_cleanup.
1715 * objfiles.h (struct objfile) <jit_data>: New field.
1716
1717 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1718
1719 * jit.h: Forward-declare `struct objfile`.
1720 (jit_event_handler): Add a second parameter, the JITer objfile.
1721 * jit.c (jit_read_descriptor): Change the signature to take the
1722 JITer objfile as an argument instead of the jit_program_space_data.
1723 (jit_inferior_init): Update the call to jit_read_descriptor.
1724 (jit_event_handler): Use the new JITer objfile argument when calling
1725 jit_read_descriptor.
1726 * breakpoint.c (handle_jit_event): Update the call to
1727 jit_event_handler to pass the JITer objfile.
1728
1729 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1730
1731 * gdbarch.c: Regenerate.
1732 * gdbarch.h: Regenerate.
1733 * gdbarch.sh (handle_segmentation_fault): Remove method.
1734 * infrun.c (handle_segmentation_fault): Remove.
1735 (print_signal_received_reason): Remove call to
1736 handle_segmentation_fault.
1737
1738 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1739
1740 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1741 Rename to sparc64_linux_report_signal_info and add siggnal
1742 argument.
1743 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1744 instead of sparc64_linux_handle_segmentation_fault.
1745
1746 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1747
1748 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1749 i386_linux_report_signal_info instead of
1750 i386_linux_handle_segmentation_fault.
1751 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1752 to i386_linux_report_signal_info and add siggnal argument.
1753 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1754 of i386_linux_handle_segmentation_fault.
1755 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1756 to i386_linux_report_signal_info and add siggnal argument.
1757
1758 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1759
1760 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1761 hook if present.
1762
1763 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1764
1765 * gdbarch.c: Regenerate.
1766 * gdbarch.h: Regenerate.
1767 * gdbarch.sh (report_signal_info): New method.
1768 * infrun.c (print_signal_received_reason): Invoke gdbarch
1769 report_signal_info hook if present.
1770
1771 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1772
1773 * python/py-registers.c : Add 'unordered_map' include.
1774 (gdbpy_new_reggroup): Renamed to...
1775 (gdbpy_get_reggroup): ...this. Update to only create register
1776 group descriptors when needed.
1777 (gdbpy_reggroup_iter_next): Update.
1778
1779 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1780
1781 * python/py-registers.c (gdbpy_register_object_data): New static
1782 global.
1783 (gdbpy_register_object_data_init): New function.
1784 (gdbpy_new_register_descriptor): Renamed to...
1785 (gdbpy_get_register_descriptor): ...this, and update to reuse
1786 existing register descriptors where possible.
1787 (gdbpy_register_descriptor_iter_next): Update.
1788 (gdbpy_initialize_registers): Register new gdbarch data.
1789
1790 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1791
1792 * linux-nat.c (stopped_pids): Make static.
1793
1794 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1795
1796 PR ada/26235
1797 * gdbtypes.c (ada_discrete_type_low_bound,
1798 ada_discrete_type_high_bound): Handle undefined bounds.
1799
1800 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1801
1802 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1803 declaration.
1804 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1805 function.
1806
1807 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1808
1809 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1810 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1811 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1812 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1813 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1814 method.
1815
1816 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1817
1818 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1819 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1820 which are deprecated in Guile 3.0.
1821 * configure.ac (try_guile_versions): Add "guile-3.0".
1822 * configure (try_guile_versions): Regenerate.
1823 * NEWS: Update entry.
1824
1825 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1826 Doug Evans <dje@google.com>
1827
1828 PR gdb/21104
1829 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1830 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1831 USING_GUILE_BEFORE_2_2.
1832 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1833 Change type to 'scm_t_port_type *'.
1834 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1835 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1836 parameter and honor it. Update callers.
1837 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1838 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1839 functions.
1840 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1841 USING_GUILE_BEFORE_2_2.
1842 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1843 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1844 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1845 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1846 and 'SCM_PORT_TYPE'.
1847 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1848 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1849 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1850 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1851 [!USING_GUILE_BEFORE_2_2]: New functions.
1852 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1853 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1854 'gdbscm_memory_port_read'.
1855 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1856 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1857 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1858 function.
1859 (ioscm_init_memory_port): Remove.
1860 (ioscm_init_memory_port_stream): New function
1861 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1862 function.
1863 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1864 Return scm_from_uint (0).
1865 (gdbscm_set_memory_port_read_buffer_size_x)
1866 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1867 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1868 Return scm_from_uint (0).
1869 (gdbscm_set_memory_port_write_buffer_size_x)
1870 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1871 * configure.ac (try_guile_versions): Add "guile-2.2".
1872 * configure: Regenerate.
1873 * NEWS: Add entry.
1874
1875 2020-07-18 Tom Tromey <tom@tromey.com>
1876
1877 * linux-nat.c (linux_multi_process): Remove.
1878 (linux_nat_target::supports_multi_process): Return true.
1879
1880 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1881
1882 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1883 (riscv_lookup_target_description): Return pointer out of
1884 unique_ptr.
1885 * target-descriptions.c (allocate_target_description): Add
1886 comment.
1887 (target_desc_deleter::operator()): Likewise.
1888 * target-descriptions.h (struct target_desc_deleter): Moved to
1889 gdbsupport/tdesc.h.
1890 (target_desc_up): Likewise.
1891
1892 2020-07-17 Tom Tromey <tromey@adacore.com>
1893
1894 * linux-nat.c (linux_nat_target::supports_non_stop)
1895 (linux_nat_target::always_non_stop_p): Use "true".
1896 (linux_nat_target::supports_disable_randomization): Use "true" and
1897 "false".
1898
1899 2020-07-16 Caroline Tice <cmtice@google.com>
1900
1901 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1902 (RNGLIST_HEADER_SIZE64): New constant definition.
1903 (struct dwop_section_names): Add rnglists_dwo.
1904 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1905 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1906 (struct dwo_sections): Add rnglists field.
1907 (read_attribut_reprocess): Add tag parameter.
1908 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1909 (cu_debug_rnglists_section): New function (decl & definition).
1910 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1911 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1912 die whose range is being checked; get rnglist section from
1913 cu_debug_rnglists_section, to get from either objfile or dwo file as
1914 appropriate. Add cases for DW_RLE_base_addressx,
1915 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1916 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1917 test inside if-condition and updating complaint message.
1918 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1919 dwarf2_rnglists_process.
1920 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1921 dwarf2_ranges_process.
1922 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1923 need_ranges_base and update comment appropriately. Also pass die tag
1924 to dwarf2_ranges_read.
1925 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1926 need_ranges_base and update comment appropriately. Also pass die tag
1927 to dwarf2_ranges_process.
1928 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1929 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1930 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1931 need_ranges_base and update comment appropriately. Also pass die tag
1932 to read_attribute_reprocess and dwarf2_ranges_read.
1933 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1934 and update function comment appropriately.
1935 (read_loclist_index): Call read_loclists_rnglists_header instead of
1936 read_loclist_header.
1937 (read_rnglist_index): New function.
1938 (read_attribute_reprocess): Add tag parameter. Add code for
1939 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1940 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1941
1942 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1943
1944 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1945 being resolved.
1946
1947 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1948
1949 * arch-utils.c (show_architecture): Update formatting of messages.
1950
1951 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1952
1953 * gdbtypes.h (struct type) <bounds>: Handle array and string
1954 types.
1955 * ada-lang.c (assign_aggregate): Use type::bounds on
1956 array/string type.
1957 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1958 * c-varobj.c (c_number_of_children): Likewise.
1959 (c_describe_child): Likewise.
1960 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1961 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1962 (f_type_print_base): Likewise.
1963 * f-valprint.c (f77_array_offset_tbl): Likewise.
1964 (f77_get_upperbound): Likewise.
1965 (f77_print_array_1): Likewise.
1966 * guile/scm-type.c (gdbscm_type_range): Likewise.
1967 * m2-typeprint.c (m2_array): Likewise.
1968 (m2_is_long_set_of_type): Likewise.
1969 * m2-valprint.c (get_long_set_bounds): Likewise.
1970 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1971 * python/py-type.c (typy_range): Likewise.
1972 * rust-lang.c (rust_internal_print_type): Likewise.
1973 * type-stack.c (type_stack::follow_types): Likewise.
1974 * valarith.c (value_subscripted_rvalue): Likewise.
1975 * valops.c (value_cast): Likewise.
1976
1977 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1978
1979 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1980 callers to use the equivalent accessor methods.
1981
1982 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1983
1984 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1985 (struct type) <bit_stride>: New method.
1986 (TYPE_BIT_STRIDE): Remove.
1987 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1988
1989 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1990
1991 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1992 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1993 callers to use the equivalent accessor methods instead.
1994
1995 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1996
1997 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1998 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1999 callers to use the equivalent accessor methods instead.
2000
2001 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2002
2003 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2004 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2005 to use dynamic_prop::kind.
2006
2007 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2008
2009 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2010 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2011 to get the bound property's kind and check against
2012 PROP_UNDEFINED.
2013
2014 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2015
2016 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2017 all callers to use type::range_bounds followed by
2018 dynamic_prop::{low,high}.
2019
2020 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2021
2022 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2023 const_val, set_const_val, baton, set_locexpr, set_loclist,
2024 set_addr_offset, variant_parts, set_variant_parts,
2025 original_type, set_original_type>: New methods.
2026 <kind>: Rename to...
2027 <m_kind>: ... this. Update all users to use the new methods
2028 instead.
2029 <data>: Rename to...
2030 <m_data>: ... this. Update all users to use the new methods
2031 instead.
2032
2033 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2034
2035 * gdbtypes.c (get_discrete_bounds): Return failure if
2036 the range type's bounds are not both defined and constant
2037 values.
2038 (get_array_bounds): Update comment. Remove undefined bound check.
2039
2040 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2041
2042 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2043 the type::bounds method directly.
2044
2045 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2046
2047 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2048 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2049 are used to set the range type's bounds to use set_bounds.
2050
2051 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2052
2053 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2054
2055 2020-07-10 Pedro Alves <pedro@palves.net>
2056
2057 * gdbthread.h (inferior_ref): Define.
2058 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2059 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2060 * thread.c
2061 (scoped_restore_current_thread::restore):
2062 Adjust to gdb::ref_ptr.
2063 (scoped_restore_current_thread::~scoped_restore_current_thread):
2064 Remove manual decref handling.
2065 (scoped_restore_current_thread::scoped_restore_current_thread):
2066 Adjust to use
2067 inferior_ref::new_reference/thread_info_ref::new_reference.
2068 Incref the thread before calling get_frame_id instead of after.
2069 Let TARGET_CLOSE_ERROR propagate.
2070
2071 2020-07-10 Pedro Alves <pedro@palves.net>
2072
2073 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2074 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2075 NOT_AVAILABLE_ERROR.
2076 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2077 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2078
2079 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2080 Pedro Alves <pedro@palves.net>
2081
2082 PR gdb/26199
2083 * infrun.c (threads_are_resumed_pending_p): Delete.
2084 (do_target_wait): Remove threads_are_executing and
2085 threads_are_resumed_pending_p checks from the inferior_matches
2086 lambda. Update comments.
2087
2088 2020-07-10 Pedro Alves <pedro@palves.net>
2089
2090 PR gdb/26199
2091 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2092 executing threads.
2093
2094 2020-07-10 Pedro Alves <pedro@palves.net>
2095
2096 PR gdb/26199
2097 * infrun.c (handle_no_resumed): Handle multiple targets.
2098
2099 2020-07-10 Pedro Alves <pedro@palves.net>
2100
2101 PR gdb/26199
2102 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2103 target_is_async_p.
2104
2105 2020-07-10 Pedro Alves <pedro@palves.net>
2106
2107 PR gdb/26199
2108 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2109 threads, not all threads.
2110
2111 2020-07-10 Pedro Alves <pedro@palves.net>
2112
2113 PR gdb/26199
2114 * remote.c (remote_target::open_1): Pass remote target pointer as
2115 data to create_async_event_handler.
2116 (remote_async_inferior_event_handler): Mark async event handler
2117 before returning if the remote target still has either pending
2118 events or unacknowledged notifications.
2119
2120 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2121
2122 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2123 declaration.
2124 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2125 function.
2126
2127 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2128
2129 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2130 inferior_ptid.
2131
2132 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2133
2134 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2135 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2136 AT_FREEBSD_PS_STRINGS.
2137
2138 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2139
2140 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2141 of debugfile path on Windows.
2142
2143 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2144
2145 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2146 argument to 'data'.
2147
2148 2020-07-08 Tom Tromey <tromey@adacore.com>
2149
2150 * ada-lang.c (ada_exception_message_1): Use read_memory.
2151
2152 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2153
2154 PR python/22748
2155 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2156 special handling for inline frames.
2157 * findvar.c (value_of_register_lazy): Skip inline frames when
2158 creating lazy register values.
2159 * frame.c (frame_id_computed_p): Delete definition.
2160 * frame.h (frame_id_computed_p): Delete declaration.
2161
2162 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2163
2164 * NEWS: Mention additions to Python API.
2165 * python/py-arch.c (archpy_register_groups): New function.
2166 (arch_object_methods): Add 'register_groups' method.
2167 * python/py-registers.c (reggroup_iterator_object): New struct.
2168 (reggroup_object): New struct.
2169 (gdbpy_new_reggroup): New function.
2170 (gdbpy_reggroup_to_string): New function.
2171 (gdbpy_reggroup_name): New function.
2172 (gdbpy_reggroup_iter): New function.
2173 (gdbpy_reggroup_iter_next): New function.
2174 (gdbpy_new_reggroup_iterator): New function
2175 (gdbpy_initialize_registers): Register new types.
2176 (reggroup_iterator_object_type): Define new Python type.
2177 (gdbpy_reggroup_getset): New static global.
2178 (reggroup_object_type): Define new Python type.
2179 * python/python-internal.h
2180
2181 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2182
2183 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2184 * python/py-arch.c (archpy_registers): New function.
2185 (arch_object_methods): Add 'registers' method.
2186 * python/py-registers.c: New file.
2187 * python/python-internal.h
2188 (gdbpy_new_register_descriptor_iterator): Declare.
2189 (gdbpy_initialize_registers): Declare.
2190 * python/python.c (do_start_initialization): Call
2191 gdbpy_initialize_registers.
2192 * NEWS: Mention additions to the Python API.
2193
2194 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2195
2196 * NEWS: Mention new Python API method.
2197 * python/py-unwind.c (pending_framepy_architecture): New function.
2198 (pending_frame_object_methods): Add architecture method.
2199
2200 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2201
2202 * gdbarch.c: Regenerate.
2203 * gdbarch.h: Regenerate.
2204 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2205 (gdbarch_data): Use internal_error for the case where
2206 deprecated_set_gdbarch_data was originally needed.
2207 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2208 and use passed in obstack.
2209 (libunwind_frame_set_descr): Should no longer get back NULL from
2210 gdbarch_data.
2211 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2212 type.
2213 * user-regs.c (user_regs_init): Update parameters, and use passed
2214 in obstack.
2215 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2216 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2217
2218 2020-07-06 Tom de Vries <tdevries@suse.de>
2219
2220 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2221 End-Of-Sequence in lte_is_less_than.
2222 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2223 "gdb: Don't reorder line table entries too much when sorting".
2224
2225 2020-07-06 Tom de Vries <tdevries@suse.de>
2226
2227 PR tui/26205
2228 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2229
2230 2020-07-05 Tom de Vries <tdevries@suse.de>
2231
2232 PR build/26187
2233 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2234 std::uncaught_exceptions instead of deprecated
2235 std::uncaught_exception.
2236
2237 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2238
2239 * macroexp.h (macro_stringify): Return
2240 gdb::unique_xmalloc_ptr<char>.
2241 * macroexp.c (macro_stringify): Likewise.
2242 * macrotab.c (fixup_definition): Update.
2243
2244 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2245
2246 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2247 (lex_one_token): Update.
2248 * macroexp.c (struct macro_buffer) <release>: Return
2249 gdb::unique_xmalloc_ptr<char>.
2250 (macro_stringify): Update.
2251 (macro_expand): Update.
2252 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2253 * macroexp.h (macro_expand_next): Likewise.
2254
2255 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2256
2257 * macroexp.h (macro_lookup_ftype): Remove.
2258 (macro_expand, macro_expand_once, macro_expand_next): Remove
2259 lookup function parameters, add scope parameter.
2260 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2261 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2262 * macroscope.h (standard_macro_lookup): Change parameter type
2263 to macro_scope.
2264 * macroscope.c (standard_macro_lookup): Likewise.
2265 * c-exp.y (lex_one_token): Update.
2266 * macrocmd.c (macro_expand_command): Likewise.
2267 (macro_expand_once_command): Likewise.
2268
2269 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2270
2271 * inf-loop.c (inferior_event_handler): Remove client_data param.
2272 * inf-loop.h (inferior_event_handler): Likewise.
2273 * infcmd.c (step_1): Adjust.
2274 * infrun.c (proceed): Adjust.
2275 (fetch_inferior_event): Remove client_data param.
2276 (infrun_async_inferior_event_handler): Adjust.
2277 * infrun.h (fetch_inferior_event): Remove `void *` param.
2278 * linux-nat.c (handle_target_event): Adjust.
2279 * record-btrace.c (record_btrace_handle_async_inferior_event):
2280 Adjust.
2281 * record-full.c (record_full_async_inferior_event_handler):
2282 Adjust.
2283 * remote.c (remote_async_inferior_event_handler): Adjust.
2284
2285 2020-07-01 Tom Tromey <tom@tromey.com>
2286
2287 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2288 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2289
2290 2020-07-01 Tom Tromey <tom@tromey.com>
2291
2292 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2293 tui_gen_win_info.
2294 (tui_win_info::make_window): Merge with
2295 tui_gen_win_info::make_window.
2296 (tui_win_info::make_visible): Move from tui_gen_win_info.
2297 * tui/tui-win.c (tui_win_info::max_width): Move from
2298 tui_gen_win_info.
2299 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2300 type.
2301 <window_factory>: Likewise.
2302 * tui/tui-layout.c (tui_win_info::resize): Move from
2303 tui_gen_win_info.
2304 (make_standard_window): Change return type.
2305 (get_locator_window, tui_get_window_by_name): Likewise.
2306 (tui_layout_window::apply): Remove a cast.
2307 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2308 (struct tui_win_info): Merge with tui_gen_win_info.
2309 (struct tui_gen_win_info): Remove.
2310
2311 2020-07-01 Tom Tromey <tom@tromey.com>
2312
2313 * tui/tui-stack.h (struct tui_locator_window): Derive from
2314 tui_win_info.
2315 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2316 <can_box>: New method.
2317
2318 2020-07-01 Tom Tromey <tom@tromey.com>
2319
2320 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2321
2322 2020-07-01 Tom Tromey <tom@tromey.com>
2323
2324 * tui/tui-regs.c (tui_data_window::display_registers_from)
2325 (tui_data_window::display_registers_from)
2326 (tui_data_window::first_data_item_displayed)
2327 (tui_data_window::delete_data_content_windows): Update.
2328 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2329 Remove.
2330 (tui_data_window::check_register_values): Update.
2331 (tui_data_item_window::rerender): Add parameters. Update.
2332 (tui_data_item_window::refresh_window): Remove.
2333 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2334 virtual.
2335 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2336 tui_gen_win_info.
2337 <refresh_window, max_height, min_height>: Remove.
2338 <rerender>: Add parameters.
2339 <x, y, visible>: New members.
2340 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2341 <m_item_width>: New member.
2342
2343 2020-07-01 Tom Tromey <tom@tromey.com>
2344
2345 * tui/tui-regs.c (tui_data_window::show_register_group)
2346 (tui_data_window::check_register_values): Update.
2347 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2348 from item_no.
2349
2350 2020-07-01 Tom Tromey <tom@tromey.com>
2351
2352 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2353 useless "if".
2354
2355 2020-07-01 Tom Tromey <tom@tromey.com>
2356
2357 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2358 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2359
2360 2020-07-01 Tom Tromey <tom@tromey.com>
2361
2362 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2363 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2364 (struct tui_line_or_address): Move from tui-data.h.
2365 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2366 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2367 (tui_cmd_window, tui_source_window_base, tui_source_window)
2368 (tui_disasm_window): Don't declare.
2369 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2370 to tui-winsource.h.
2371 (SINGLE_KEY): Move to tui-stack.c.
2372
2373 2020-07-01 Tom Tromey <tom@tromey.com>
2374
2375 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2376 std::string.
2377 * tui/tui-regs.c (class tab_expansion_file): New.
2378 (tab_expansion_file::write): New method.
2379 (tui_register_format): Change return type. Use
2380 tab_expansion_file.
2381 (tui_get_register, tui_data_window::display_registers_from)
2382 (tui_data_item_window::rerender): Update.
2383 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2384 * tui/tui-io.c (tui_expand_tabs): Remove.
2385
2386 2020-07-01 Tom Tromey <tom@tromey.com>
2387
2388 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2389
2390 2020-07-01 Fangrui Song <maskray@google.com>
2391
2392 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2393
2394 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2395
2396 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2397 forms for DW_AT_associated and DW_AT_allocated attributes,
2398 which is already checked in function attr_to_dynamic_prop.
2399
2400 2020-06-30 Tom Tromey <tromey@adacore.com>
2401
2402 * dwarf2/read.c (quirk_rust_enum): Correctly call
2403 alloc_rust_variant for default-less enum.
2404
2405 2020-06-30 Tom Tromey <tromey@adacore.com>
2406
2407 PR build/26183:
2408 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2409 gdb::to_string.
2410
2411 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2412
2413 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2414 * gdbarch.h: Re-generate.
2415
2416 2020-06-28 Tom Tromey <tom@tromey.com>
2417
2418 * command.h (cmd_types): Remove.
2419 (cmd_type): Don't declare.
2420 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2421 typedef.
2422 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2423 * cli/cli-decode.c (cmd_type): Remove.
2424
2425 2020-06-27 Pedro Alves <palves@redhat.com>
2426
2427 * fork-child.c (prefork_hook): Adjust.
2428 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2429 Delete.
2430 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2431 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2432 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2433 Remove declarations.
2434 (struct inferior) <set_tty, tty>: New methods.
2435 (struct inferior) <terminal>: Rename to ...
2436 (struct inferior) <m_terminal>: ... this and make private.
2437 * main.c (captured_main_1): Adjust.
2438 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2439 (mi_cmd_inferior_tty_show): Adjust.
2440 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2441 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2442
2443 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2444
2445 * configure.ac: Add --enable-libctf: handle --disable-static
2446 properly.
2447 * acinclude.m4: sinclude ../config/enable.m4.
2448 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2449 (LIBCTF): Substitute in.
2450 (CTF_DEPS): New, likewise.
2451 (CLIBS): libctf needs symbols from libbfd: move earlier.
2452 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2453 flags.
2454 * ctfread.c: Surround in ENABLE_LIBCTF.
2455 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2456 * configure: Regenerate.
2457 * config.in: Likewise.
2458
2459 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2460
2461 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2462
2463 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2464
2465 * inferior.h (struct inferior) <terminal>: Change type to
2466 gdb::unique_xmalloc_ptr<char>.
2467 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2468 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2469 field, adjust to unique pointer.
2470 (get_inferior_io_terminal): Adjust to unique pointer.
2471
2472 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2473
2474 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2475 registers, not just the known core set of registers.
2476
2477 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2478
2479 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2480 fflags, frm, and fcsr registers.
2481 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2482 restore groups.
2483 (riscv_tdesc_unknown_reg): New function.
2484 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2485 tdesc_use_registers.
2486 * riscv-tdep.h (struct gdbarch_tdep): Add
2487 unknown_csrs_first_regnum, unknown_csrs_count,
2488 duplicate_fflags_regnum, duplicate_frm_regnum, and
2489 duplicate_fcsr_regnum fields.
2490
2491 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2492
2493 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2494 callback, use the callback (when not null) to help number unknown
2495 registers.
2496 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2497 (tdesc_use_registers): Add extra parameter to declaration.
2498
2499 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2500
2501 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2502 in the file.
2503 (class riscv_pending_register_alias): Likewise.
2504 (riscv_register_feature::register_info): Change 'required_p' field
2505 to 'required', and change its type. Add 'check' member function.
2506 (riscv_register_feature::register_info::check): Define new member
2507 function.
2508 (riscv_xreg_feature): Change initialisation of 'required' field.
2509 (riscv_freg_feature): Likewise.
2510 (riscv_virtual_feature): Likewise.
2511 (riscv_csr_feature): Likewise.
2512 (riscv_check_tdesc_feature): Take extra parameter, the csr
2513 tdesc_feature, rewrite the function to use the new
2514 riscv_register_feature::register_info::check function.
2515 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2516
2517 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2518
2519 * features/Makefile: Remove all references to the deleted files
2520 below.
2521 * features/riscv/32bit-csr.c: Deleted.
2522 * features/riscv/32bit-csr.xml: Deleted.
2523 * features/riscv/64bit-csr.c: Deleted.
2524 * features/riscv/64bit-csr.xml: Deleted.
2525 * features/riscv/rebuild-csr-xml.sh: Deleted.
2526
2527 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2530 whitespace error for declaration of names member variable.
2531 (struct riscv_register_feature): Add new prefer_first_name member
2532 variable, and fix whitespace error in declaration of registers.
2533 (riscv_xreg_feature): Initialize prefer_first_name field.
2534 (riscv_freg_feature): Likewise.
2535 (riscv_virtual_feature): Likewise.
2536 (riscv_csr_feature): Likewise.
2537 (riscv_register_name): Expand on comments. Remove register name
2538 modifications for CSR and virtual registers.
2539
2540 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2541
2542 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2543 errors.
2544
2545 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2546
2547 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2548 riscv-opc.h.
2549 (class riscv_pending_register_alias): New class.
2550 (riscv_check_tdesc_feature): Take vector of pending aliases and
2551 populate it as appropriate.
2552 (riscv_setup_register_aliases): Delete.
2553 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2554 to riscv_check_tdesc_feature in all cases. Use the vector to
2555 create the register aliases.
2556
2557 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2558
2559 * sol2-tdep.c (sol2_static_transform_name): Remove.
2560 (sol2_init_abi): Don't register it.
2561 * gdbarch.sh (static_transform_name): Remove.
2562 * gdbarch.c, gdbarch.h: Regenerate.
2563
2564 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2565 gdbarch_static_transform_name.
2566 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2567 * stabsread.c (define_symbol) <'X'>: Remove.
2568 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2569 handling.
2570 <'V'>: Likewise.
2571 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2572 <'S'>: Remove call to gdbarch_static_transform_name.
2573
2574 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2575
2576 * procfs.c (procfs_pre_trace): New function.
2577 (procfs_target::create_inferior): Pass it to fork_inferior.
2578
2579 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2580
2581 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2582 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2583 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2584 sol2-tdep.o, sparc-sol2-tdep.o.
2585 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2586 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2587 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2588 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2589
2590 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2591
2592 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2593 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2594 Call sol2_init_abi.
2595 Remove calls to set_gdbarch_skip_solib_resolver,
2596 set_gdbarch_core_pid_to_str.
2597 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2598 (i386_sol2_static_transform_name): Remove.
2599 (i386_sol2_init_abi): Call sol2_init_abi.
2600 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2601 set_gdbarch_static_transform_name,
2602 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2603 Use sol2_sigtramp_p.
2604 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2605 (sol2_sigtramp_p): New function.
2606 (sol2_static_transform_name): New function.
2607 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2608 (sol2_init_abi): New function.
2609 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2610 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2611 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2612 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2613 (sparc_sol2_static_transform_name): Remove.
2614 (sparc32_sol2_init_abi): Call sol2_init_abi.
2615 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2616 set_gdbarch_static_transform_name,
2617 set_gdbarch_skip_solib_resolver,
2618 set_gdbarch_core_pid_to_str.
2619 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2620 (sparc_sol2_static_transform_name): Remove
2621 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2622 call sol2_sigtramp_p.
2623 (sparc64_sol2_init_abi): Call sol2_init_abi.
2624 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2625 set_gdbarch_static_transform_name,
2626 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2627
2628 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2629
2630 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2631 * exec.c (validate_exec_file): If from_tty, set both
2632 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2633 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2634 and from_tty, unconditionally ask a confirmation.
2635
2636 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2637
2638 * target-descriptions.c (tdesc_architecture_name): Protect against
2639 NULL pointer dereference.
2640 (maint_print_xml_tdesc_cmd): New function.
2641 (_initialize_target_descriptions): Register new 'maint print
2642 xml-tdesc' command and give it the filename completer.
2643 * NEWS: Mention new 'maint print xml-tdesc' command.
2644
2645 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2646
2647 * target-descriptions.c (class tdesc_compatible_info): New class.
2648 (struct target_desc): Change type of compatible vector.
2649 (tdesc_compatible_p): Update for change in type of
2650 target_desc::compatible.
2651 (tdesc_compatible_info_list): New function.
2652 (tdesc_compatible_info_arch_name): New function.
2653 (tdesc_add_compatible): Update for change in type of
2654 target_desc::compatible.
2655 (print_c_tdesc::visit_pre): Likewise.
2656
2657 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2658
2659 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2660 whitespace to underscore.
2661 (maint_print_c_tdesc_cmd): Use fake filename for target
2662 descriptions that came from the target.
2663 (_initialize_target_descriptions): Add filename command completion
2664 for 'maint print c-tdesc'.
2665
2666 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2667
2668 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2669 lines.
2670
2671 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2672
2673 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2674 lines.
2675 (dwarf2_find_location_expression): Likewise.
2676 (call_site_parameter_matches): Likewise.
2677 (dwarf2_compile_expr_to_ax): Likewise.
2678 (disassemble_dwarf_expression): Likewise.
2679 (loclist_describe_location): Likewise.
2680
2681 2020-06-23 Pedro Alves <palves@redhat.com>
2682
2683 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2684 progspace-and-thread.h. Include scoped-mock-context.h instead.
2685 (register_to_value_test): Use scoped_mock_context.
2686 * regcache.c: Include "scoped-mock-context.h".
2687 (cooked_read_test): Don't error out if a target is already pushed.
2688 Use scoped_mock_context. Adjust.
2689 * scoped-mock-context.h: New file.
2690
2691 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2692
2693 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2694 initializer.
2695 (ada_language::is_string_type_p): New member function.
2696 * c-lang.c (c_language_data): Delete la_is_string_type_p
2697 initializer.
2698 (cplus_language_data): Likewise.
2699 (asm_language_data): Likewise.
2700 (minimal_language_data): Likewise.
2701 * d-lang.c (d_language_data): Likewise.
2702 * f-lang.c (f_is_string_type_p): Delete function, implementation
2703 moved to f_language::is_string_type_p.
2704 (f_language_data): Delete la_is_string_type_p initializer.
2705 (f_language::is_string_type_p): New member function,
2706 implementation from f_is_string_type_p.
2707 * go-lang.c (go_is_string_type_p): Delete function, implementation
2708 moved to go_language::is_string_type_p.
2709 (go_language_data): Delete la_is_string_type_p initializer.
2710 (go_language::is_string_type_p): New member function,
2711 implementation from go_is_string_type_p.
2712 * language.c (language_defn::is_string_type_p): Define new member
2713 function.
2714 (default_is_string_type_p): Make static, add comment copied from
2715 header file.
2716 (unknown_language_data): Delete la_is_string_type_p initializer.
2717 (unknown_language::is_string_type_p): New member function.
2718 (auto_language_data): Delete la_is_string_type_p initializer.
2719 (auto_language::is_string_type_p): New member function.
2720 * language.h (language_data): Delete la_is_string_type_p field.
2721 (language_defn::is_string_type_p): Declare new function.
2722 (default_is_string_type_p): Delete desclaration, move comment to
2723 definition.
2724 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2725 moved to m2_language::is_string_type_p.
2726 (m2_language_data): Delete la_is_string_type_p initializer.
2727 (m2_language::is_string_type_p): New member function,
2728 implementation from m2_is_string_type_p.
2729 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2730 initializer.
2731 * opencl-lang.c (opencl_language_data): Likewise.
2732 * p-lang.c (pascal_is_string_type_p): Delete function,
2733 implementation moved to pascal_language::is_string_type_p.
2734 (pascal_language_data): Delete la_is_string_type_p initializer.
2735 (pascal_language::is_string_type_p): New member function,
2736 implementation from pascal_is_string_type_p.
2737 * rust-lang.c (rust_is_string_type_p): Delete function,
2738 implementation moved to rust_language::is_string_type_p.
2739 (rust_language_data): Delete la_is_string_type_p initializer.
2740 (rust_language::is_string_type_p): New member function,
2741 implementation from rust_is_string_type_p.
2742 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2743 is_string_type_p.
2744
2745 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2746
2747 * ada-lang.c (ada_language_data): Delete la_print_typedef
2748 initializer.
2749 (ada_language::print_typedef): New member function.
2750 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2751 (cplus_language_data): Likewise.
2752 (asm_language_data): Likewise.
2753 (minimal_language_data): Likewise.
2754 * d-lang.c (d_language_data): Likewise.
2755 * f-lang.c (f_language_data): Likewise.
2756 (f_language::print_typedef): New member function.
2757 * go-lang.c (go_language_data): Delete la_print_typedef
2758 initializer.
2759 * language.c (language_defn::print_typedef): Define member
2760 function.
2761 (unknown_language_data): Delete la_print_typedef initializer.
2762 (unknown_language::print_typedef): New member function.
2763 (auto_language_data): Delete la_print_typedef initializer.
2764 (auto_language::print_typedef): New member function.
2765 * language.h (language_data): Delete la_print_typedef field.
2766 (language_defn::print_typedef): Declare new member function.
2767 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2768 (default_print_typedef): Delete declaration.
2769 * m2-lang.c (m2_language_data): Delete la_print_typedef
2770 initializer.
2771 (m2_language::print_typedef): New member function.
2772 * objc-lang.c (objc_language_data): Delete la_print_typedef
2773 initializer.
2774 * opencl-lang.c (opencl_language_data): Likewise.
2775 * p-lang.c (pascal_language_data): Likewise.
2776 (pascal_language::print_typedef): New member function.
2777 * rust-lang.c (rust_print_typedef): Delete function,
2778 implementation moved to rust_language::print_typedef.
2779 (rust_language): Delete la_print_typedef initializer.
2780 (rust_language::print_typedef): New member function,
2781 implementation from rust_print_typedef.
2782 * typeprint.c (default_print_typedef): Delete.
2783
2784 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2785
2786 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2787 (ada_language::printstr): New member function.
2788 * c-lang.c (c_language_data): Delete la_printstr initializer.
2789 (cplus_language_data): Likewise.
2790 (asm_language_data): Likewise.
2791 (minimal_language_data): Likewise.
2792 * d-lang.c (d_language_data): Likewise.
2793 * f-lang.c (f_printstr): Rename to f_language::printstr.
2794 (f_language_data): Delete la_printstr initializer.
2795 (f_language::printstr): New member function, implementation from
2796 f_printstr.
2797 * go-lang.c (go_language_data): Delete la_printstr initializer.
2798 * language.c (language_defn::printstr): Define new member
2799 function.
2800 (unk_lang_printstr): Delete.
2801 (unknown_language_data): Delete la_printstr initializer.
2802 (unknown_language::printstr): New member function.
2803 (auto_language_data): Delete la_printstr initializer.
2804 (auto_language::printstr): New member function.
2805 * language.h (language_data): Delete la_printstr field.
2806 (language_defn::printstr): Declare new member function.
2807 (LA_PRINT_STRING): Update call to printstr.
2808 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2809 (m2_language_data): Delete la_printstr initializer.
2810 (m2_language::printstr): New member function, implementation from
2811 m2_printstr.
2812 * objc-lang.c (objc_language_data): Delete la_printstr
2813 initializer.
2814 * opencl-lang.c (opencl_language_data): Likewise.
2815 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2816 (pascal_language_data): Delete la_printstr initializer.
2817 (pascal_language::printstr): New member function, implementation
2818 from pascal_printstr.
2819 * p-lang.h (pascal_printstr): Delete declaration.
2820 * rust-lang.c (rust_printstr): Update header comment.
2821 (rust_language_data): Delete la_printstr initializer.
2822 (rust_language::printstr): New member function.
2823
2824 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2825
2826 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2827 (ada_language::printchar): New member function.
2828 * c-lang.c (c_language_data): Delete la_printchar initializer.
2829 (cplus_language_data): Likewise.
2830 (asm_language_data): Likewise.
2831 (minimal_language_data): Likewise.
2832 * d-lang.c (d_language_data): Likewise.
2833 * f-lang.c (f_printchar): Rename to f_language::printchar.
2834 (f_language_data): Delete la_printchar initializer.
2835 (f_language::printchar): New member function, implementation from
2836 f_printchar.
2837 * go-lang.c (go_language_data): Delete la_printchar initializer.
2838 * language.c (unk_lang_printchar): Delete.
2839 (language_defn::printchar): Define new member function.
2840 (unknown_language_data): Delete la_printchar initializer.
2841 (unknown_language::printchar): New member function.
2842 (auto_language_data): Delete la_printchar initializer.
2843 (auto_language::printchar): New member function.
2844 * language.h (language_data): Delete la_printchar field.
2845 (language_defn::printchar): Declare new member function.
2846 (LA_PRINT_CHAR): Update call to printchar.
2847 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2848 (m2_language::printchar): New member function.
2849 * objc-lang.c (objc_language_data): Delete la_printchar
2850 initializer.
2851 * opencl-lang.c (opencl_language_data): Likewise.
2852 * p-lang.c (pascal_language_data): Delete la_printchar
2853 initializer.
2854 (pascal_language::printchar): New member function.
2855 * rust-lang.c (rust_printchar): Rename to
2856 rust_language::printchar.
2857 (rust_language_data): Delete la_printchar initializer.
2858 (rust_language::printchar): New member function, implementation
2859 from rust_printchar.
2860
2861 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2862
2863 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2864 (ada_language_data): Delete la_emitchar initializer.
2865 (ada_language::emitchar): New member function, implementation from
2866 emit_char.
2867 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2868 (cplus_language_data): Likewise.
2869 (asm_language_data): Likewise.
2870 (minimal_language_data): Likewise.
2871 * d-lang.c (d_language_data): Likewise.
2872 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2873 (f_language_data): Delete la_emitchar initializer.
2874 (f_language::emitchar): New member function, implementation from
2875 f_emit_char.
2876 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2877 * language.c (unk_lang_emit_char): Delete.
2878 (language_defn::emitchar): New member function definition.
2879 (unknown_language_data): Delete la_emitchar initializer.
2880 (unknown_language::emitchar): New member function.
2881 (auto_language_data): Delete la_emitchar initializer.
2882 (auto_language::emitchar): New member function.
2883 * language.h (language_data): Delete la_emitchar field.
2884 (language_defn::emitchar): New member field declaration.
2885 (LA_EMIT_CHAR): Update call to emitchar.
2886 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2887 (m2_language_data): Delete la_emitchar initializer.
2888 (m2_language::emitchar): New member function, implementation from
2889 m2_emit_char.
2890 * objc-lang.c (objc_language_data): Delete la_emitchar
2891 initializer.
2892 * opencl-lang.c (opencl_language_data): Likewise.
2893 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2894 (pascal_language_data): Delete la_emitchar initializer.
2895 (pascal_language::emitchar): New member function, implementation
2896 from pascal_emit_char.
2897 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2898 (rust_language_data): Delete la_emitchar initializer.
2899 (rust_language::emitchar): New member function, implementation
2900 from rust_emitchar.
2901
2902 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2903
2904 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2905 (ada_language_data): Delete la_post_parser initializer.
2906 (ada_language::post_parser): New member function.
2907 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2908 (cplus_language_data): Likewise.
2909 (asm_language_data): Likewise.
2910 (minimal_language_data): Likewise.
2911 * d-lang.c (d_language_data): Likewise.
2912 * f-lang.c (f_language_data): Likewise.
2913 * go-lang.c (go_language_data): Likewise.
2914 * language.c (unknown_language_data): Likewise.
2915 (auto_language_data): Likewise.
2916 * language.h (language_data): Delete la_post_parser field.
2917 (language_defn::post_parser): New member function.
2918 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2919 * objc-lang.c (objc_language_data): Likewise.
2920 * opencl-lang.c (opencl_language_data): Likewise.
2921 * p-lang.c (pascal_language_data): Likewise.
2922 * parse.c (parse_exp_in_context): Update call to post_parser.
2923 (null_post_parser): Delete definition.
2924 * parser-defs.h (null_post_parser): Delete declaration.
2925 * rust-lang.c (rust_language_data): Delete la_post_parser
2926 initializer.
2927
2928 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2929
2930 * ada-lang.c (parse): Rename to ada_language::parser.
2931 (ada_language_data): Delete la_parser initializer.
2932 (ada_language::parser): New member function, implementation from
2933 parse.
2934 * c-lang.c (c_language_data): Delete la_parser initializer.
2935 (cplus_language_data): Likewise.
2936 (asm_language_data): Likewise.
2937 (minimal_language_data): Likewise.
2938 * d-lang.c (d_language_data): Likewise.
2939 (d_language::parser): New member function.
2940 * f-lang.c (f_language_data): Delete la_parser initializer.
2941 (f_language::parser): New member function.
2942 * go-lang.c (go_language_data): Delete la_parser initializer.
2943 (go_language::parser): New member function.
2944 * language.c (unk_lang_parser): Delete.
2945 (language_defn::parser): Define new member function.
2946 (unknown_language_data): Delete la_parser initializer.
2947 (unknown_language::parser): New member function.
2948 (auto_language_data): Delete la_parser initializer.
2949 (auto_language::parser): New member function.
2950 * language.h (language_data): Delete la_parser field.
2951 (language_defn::parser): Declare new member function.
2952 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2953 (m2_language::parser): New member function.
2954 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2955 * opencl-lang.c (opencl_language_data): Likewise.
2956 * p-lang.c (pascal_language_data): Likewise.
2957 (pascal_language::parser): New member function.
2958 * parse.c (parse_exp_in_context): Update call to parser.
2959 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2960 (rust_language::parser): New member function.
2961
2962 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2963
2964 * top.c (print_gdb_configuration): Print --with-python-libdir
2965 configuration value.
2966
2967 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2968
2969 * NEWS: Mention change to the alias command.
2970
2971 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2972
2973 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2974 (alias_command_completer)
2975 (make_alias_options_def_group): New functions.
2976 (alias_opts, alias_option_defs): New struct and array.
2977 (alias_usage_error): Update usage.
2978 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2979 Use option framework.
2980 (_initialize_cli_cmds): Update alias command help.
2981 Update aliases command help.
2982 (show_user):
2983 Add NULL for new default_args lookup_cmd argument.
2984 (valid_command_p): Rename to validate_aliased_command.
2985 Add NULL for new default_args lookup_cmd argument. Verify that the
2986 aliased_command has no default args.
2987 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2988 (lookup_cmd_1, lookup_cmd): New argument default_args.
2989 (add_alias_cmd):
2990 Add NULL for new default_args lookup_cmd argument.
2991 (print_help_for_command): Show default args under the layout
2992 alias some_alias = some_aliased_cmd some_alias_default_arg.
2993 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2994 xfree default_args in destructor.
2995 * cli/cli-script.c (process_next_line, do_define_command):
2996 Add NULL for new default_args lookup_cmd argument.
2997 * command.h: Declare new default_args argument in lookup_cmd
2998 and lookup_cmd_1.
2999 * completer.c (complete_line_internal_1):
3000 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3001 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3002 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3003 Likewise.
3004 * infcmd.c (_initialize_infcmd): Likewise.
3005 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3006 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3007 * python/py-param.c (add_setshow_generic): Likewise.
3008 * remote.c (_initialize_remote): Likewise.
3009 * top.c (execute_command): Prepend default_args if command has some.
3010 (set_verbose):
3011 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3012 * tracepoint.c (validate_actionline, encode_actions_1):
3013 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3014
3015 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3016
3017 * jit.c (jit_read_descriptor): Use bool as the return type.
3018 (jit_breakpoint_re_set_internal): Use bool as the return type.
3019 Invert the return value logic; return true if the jit breakpoint
3020 has been successfully initialized.
3021 (jit_inferior_init): Update the call to
3022 jit_breakpoint_re_set_internal.
3023
3024 2020-06-22 Pedro Alves <palves@redhat.com>
3025
3026 PR gdb/25939
3027 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3028 Use the current inferior instead. Don't return
3029 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3030 wait again.
3031 * sol-thread.c (sol_thread_target::wait): Don't reference
3032 inferior_ptid.
3033 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3034 (sol_update_thread_list_callback): Use the current inferior's pid
3035 instead of inferior_ptid.
3036
3037 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3038
3039 * procfs.c: Cleanup many comments.
3040
3041 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3042 (AFTER_WATCHFLAG): Replace by value.
3043
3044 (MAIN_PROC_NAME_FORMAT): Inline ...
3045 (create_procinfo): ... here.
3046
3047 (procfs_debug_inferior): Remove SYS_exec handling.
3048 (syscall_is_exec): Likewise.
3049 (procfs_set_exec_trap): Likewise.
3050
3051 (syscall_is_lwp_exit): Inline in callers.
3052 (syscall_is_exit): Likewise.
3053 (syscall_is_exec): Likewise.
3054 (syscall_is_lwp_create): Likewise.
3055
3056 (invalidate_cache): Remove #if 0 code.
3057
3058 (make_signal_thread_runnable): Remove.
3059 (procfs_target::resume): Remove #if 0 code.
3060
3061 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3062
3063 PR gdb/25939
3064 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3065 call ...
3066 (procfs_target::create_inferior): ... here.
3067
3068 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3069
3070 * exec.c (validate_exec_file): Ensure the build-id is up to
3071 date by calling reopen_exec_file (that checks file timestamp
3072 to decide to re-read the file).
3073
3074 2020-06-18 Pedro Alves <palves@redhat.com>
3075
3076 PR gdb/25412
3077 * gdbthread.h (delete_thread, delete_thread_silent)
3078 (find_thread_ptid): Update comments.
3079 * thread.c (current_thread_): New global.
3080 (is_current_thread): Move higher, and reimplement.
3081 (inferior_thread): Reimplement.
3082 (set_thread_exited): Use bool. Add assertions.
3083 (add_thread_silent): Simplify thread-reuse handling by always
3084 calling delete_thread.
3085 (delete_thread): Remove intro comment.
3086 (find_thread_ptid): Skip exited threads.
3087 (switch_to_thread_no_regs): Write to current_thread_.
3088 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3089 INFERIOR_PTID. Clear current_thread_.
3090
3091 2020-06-18 Pedro Alves <palves@redhat.com>
3092
3093 * aix-thread.c (pd_update): Use switch_to_thread.
3094
3095 2020-06-18 Pedro Alves <palves@redhat.com>
3096
3097 * ravenscar-thread.c (ravenscar_thread_target): Update.
3098 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3099 (ravenscar_thread_target::add_active_thread): ... this. Don't
3100 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3101 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3102
3103 2020-06-18 Pedro Alves <palves@redhat.com>
3104
3105 * nat/windows-nat.c (current_windows_thread): Remove.
3106 * nat/windows-nat.h (current_windows_thread): Remove.
3107 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3108 Adjust.
3109 (display_selectors): Adjust to fetch the current
3110 windows_thread_info based on inferior_ptid.
3111 (fake_create_process): No longer write to current_windows_thread.
3112 (windows_nat_target::get_windows_debug_event):
3113 Don't set inferior_ptid or current_windows_thread.
3114 (windows_nat_target::wait): Adjust to not rely on
3115 current_windows_thread.
3116 (do_initial_windows_stuff): Now a method of windows_nat_target.
3117 Switch to the last_ptid thread.
3118 (windows_nat_target::attach): Adjust.
3119 (windows_nat_target::detach): Use switch_to_no_thread instead of
3120 writing to inferior_ptid directly.
3121 (windows_nat_target::create_inferior): Adjust.
3122
3123 2020-06-18 Pedro Alves <palves@redhat.com>
3124
3125 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3126
3127 2020-06-18 Pedro Alves <palves@redhat.com>
3128
3129 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3130 after creating it, instead of writing to inferior_ptid. Don't
3131 write to inferior_ptid.
3132
3133 2020-06-18 Pedro Alves <palves@redhat.com>
3134
3135 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3136
3137 2020-06-18 Pedro Alves <palves@redhat.com>
3138
3139 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3140 it, instead of writing to inferior_ptid.
3141
3142 2020-06-18 Pedro Alves <palves@redhat.com>
3143
3144 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3145 to inferior_ptid.
3146
3147 2020-06-18 Pedro Alves <palves@redhat.com>
3148
3149 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3150 instead of writing to inferior_ptid directly.
3151
3152 2020-06-18 Pedro Alves <palves@redhat.com>
3153
3154 * corelow.c (core_target::close): Use switch_to_no_thread instead
3155 of writing to inferior_ptid directly.
3156 (add_to_thread_list, core_target_open): Use switch_to_thread
3157 instead of writing to inferior_ptid directly.
3158
3159 2020-06-18 Pedro Alves <palves@redhat.com>
3160
3161 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3162 inferior_ptid.
3163 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3164 inferior_ptid.
3165 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3166 inferior_ptid directly.
3167 (darwin_nat_target::init_thread_list): Switch to thread, instead
3168 of writing to inferior_ptid.
3169 (darwin_nat_target::attach): Don't write to inferior_ptid.
3170 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3171
3172 2020-06-18 Pedro Alves <palves@redhat.com>
3173
3174 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3175 thread.
3176 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3177 Instead use switch_to_thread.
3178 (gnu_nat_target::detach): Use switch_to_no_thread
3179 instead of writing to inferior_ptid directly. Used passed-in
3180 inferior instead of looking up the inferior by pid.
3181
3182 2020-06-18 Pedro Alves <palves@redhat.com>
3183
3184 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3185 inferior_ptid.
3186
3187 2020-06-18 Pedro Alves <palves@redhat.com>
3188
3189 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3190 inferior_ptid.
3191 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3192 thread.
3193 (nto_procfs_target::detach): Avoid referencing
3194 inferior_ptid. Use switch_to_no_thread instead of writing to
3195 inferior_ptid directly.
3196 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3197 instead of writing to inferior_ptid directly.
3198 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3199 to thread.
3200
3201 2020-06-18 Pedro Alves <palves@redhat.com>
3202
3203 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3204 after creating it, instead of writing to inferior_ptid.
3205 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3206 to inferior_ptid directly.
3207 (gdbsim_target::wait): Don't write to inferior_ptid.
3208
3209 2020-06-18 Pedro Alves <palves@redhat.com>
3210
3211 * remote.c (remote_target::remote_notice_new_inferior): Use
3212 switch_to_thread instead of writing to inferior_ptid directly.
3213 (remote_target::add_current_inferior_and_thread): Use
3214 switch_to_no_thread instead of writing to inferior_ptid directly.
3215 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3216 and switch_to_thread instead of using set_current_inferior or
3217 writing to inferior_ptid directly.
3218
3219 2020-06-18 Pedro Alves <palves@redhat.com>
3220
3221 * tracectf.c (ctf_target_open): Switch to added thread instead of
3222 writing to inferior_ptid directly.
3223 (ctf_target::close): Use switch_to_no_thread instead of writing to
3224 inferior_ptid directly.
3225
3226 2020-06-18 Pedro Alves <palves@redhat.com>
3227
3228 * tracefile-tfile.c (tfile_target_open): Don't write to
3229 inferior_ptid directly, instead switch to added thread.
3230 (tfile_target::close): Use switch_to_no_thread instead of writing
3231 to inferior_ptid directly.
3232
3233 2020-06-18 Pedro Alves <palves@redhat.com>
3234
3235 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3236 (procfs_target::detach): Use switch_to_no_thread
3237 instead of writing to inferior_ptid directly.
3238 (do_attach): Change return type to void. Switch to the added
3239 thread.
3240 (procfs_target::create_inferior): Switch to the added thread.
3241 (procfs_do_thread_registers): Don't write to inferior_ptid.
3242
3243 2020-06-18 Pedro Alves <palves@redhat.com>
3244
3245 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3246 of writing to inferior_ptid.
3247 (scoped_restore_exited_inferior): Delete.
3248 (handle_vfork_child_exec_or_exit): Simplify using
3249 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3250 instead of writing to inferior_ptid.
3251 (THREAD_STOPPED_BY): Delete.
3252 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3253 (thread_stopped_by_hw_breakpoint): Delete.
3254 (save_waitstatus): Use
3255 scoped_restore_current_thread+switch_to_thread, and call
3256 target_stopped_by_watchpoint instead of
3257 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3258 instead of thread_stopped_by_sw_breakpoint, and
3259 target_stopped_by_hw_breakpoint instead of
3260 thread_stopped_by_hw_breakpoint.
3261 (handle_inferior_event)
3262 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3263 inferior_ptid directly, nor
3264 set_current_inferior/set_current_program_space. Use
3265 switch_to_thread / switch_to_inferior_no_thread instead.
3266
3267 2020-06-18 Pedro Alves <palves@redhat.com>
3268
3269 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3270 instead of writing to inferior_ptid.
3271
3272 2020-06-18 Pedro Alves <palves@redhat.com>
3273
3274 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3275 added thread.
3276 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3277 to the added thread.
3278 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3279 instead of writing to inferior_ptid.
3280
3281 2020-06-18 Pedro Alves <palves@redhat.com>
3282
3283 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3284 (register_to_value_test): Mock a program_space too. Heap-allocate
3285 the address space. Don't write to inferior_ptid. Use
3286 switch_to_thread instead.
3287
3288 2020-06-18 Pedro Alves <palves@redhat.com>
3289
3290 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3291 Delete.
3292 (find_signalled_thread()): New, factored out from
3293 linux_make_corefile_notes and adjusted to handle exited threads.
3294 (linux_make_corefile_notes): Adjust to use the new
3295 find_signalled_thread.
3296
3297 2020-06-18 Pedro Alves <palves@redhat.com>
3298
3299 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3300 of saving/restoring inferior_ptid.
3301
3302 2020-06-17 Tom Tromey <tom@tromey.com>
3303
3304 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3305 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3306 declare.
3307 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3308
3309 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3310
3311 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3312 of partial symtabs.
3313
3314 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3315
3316 * regformats/reg-arm.dat: Remove.
3317 * regformats/reg-bfin.dat: Remove.
3318 * regformats/reg-cris.dat: Remove.
3319 * regformats/reg-crisv32.dat: Remove.
3320 * regformats/reg-m32r.dat: Remove.
3321 * regformats/reg-tilegx.dat: Remove.
3322 * regformats/reg-tilegx32.dat: Remove.
3323
3324 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3325
3326 * features/Makefile (WHICH): Remove arm files.
3327 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3328 * regformats/arm/arm-with-neon.dat: Remove.
3329 * regformats/arm/arm-with-vfpv2.dat: Remove.
3330 * regformats/arm/arm-with-vfpv3.dat: Remove.
3331
3332 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3333
3334 * features/Makefile (XMLTOC): Remove rx.xml.
3335
3336 2020-06-17 Pedro Alves <palves@redhat.com>
3337
3338 * gdbthread.h (thread_control_state) <trap_expected> Update
3339 comments.
3340
3341 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3342
3343 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3344 ada_language::lookup_symbol_nonlocal.
3345 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3346 (ada_language::lookup_symbol_nonlocal): New member function,
3347 implementation from ada_lookup_symbol_nonlocal.
3348 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3349 initializer.
3350 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3351 initializer.
3352 (cplus_language::lookup_symbol_nonlocal): New member function.
3353 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3354 (minimal_language_data) Likewise.
3355 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3356 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3357 initializer.
3358 (d_language::lookup_symbol_nonlocal): New member function.
3359 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3360 initializer.
3361 (f_language::lookup_symbol_nonlocal): New member function.
3362 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3363 initializer.
3364 * language.c (unknown_language_data): Likewise.
3365 (auto_language_data): Likewise.
3366 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3367 field.
3368 (language_defn::lookup_symbol_nonlocal): New member function.
3369 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3370 initializer.
3371 * objc-lang.c (objc_language_data): Likewise.
3372 * opencl-lang.c (opencl_language_data): Likewise.
3373 * p-lang.c (pascal_language_data): Likewise.
3374 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3375 rust_language::lookup_symbol_nonlocal.
3376 (rust_language_data): Delete la_lookup_symbol_nonlocal
3377 initializer.
3378 (rust_language::lookup_symbol_nonlocal): New member function,
3379 implementation from rust_lookup_symbol_nonlocal.
3380 * symtab.c (lookup_symbol_aux): Update call to
3381 lookup_symbol_nonlocal.
3382 (basic_lookup_symbol_nonlocal): Rename to...
3383 (language_defn::lookup_symbol_nonlocal): ...this, and update
3384 header comment. Remove language_defn parameter, and replace with
3385 uses of `this'.
3386 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3387
3388 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3389
3390 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3391 initializer.
3392 (ada_language::value_print_inner): New member function.
3393 * c-lang.c (c_language_data): Delete la_value_print_inner
3394 initializer.
3395 (cplus_language_data): Likewise.
3396 (asm_language_data): Likewise.
3397 (minimal_language_data): Likewise.
3398 * d-lang.c (d_language_data): Likewise.
3399 (d_language::value_print_inner): New member function.
3400 * f-lang.c (f_language_data): Delete la_value_print_inner
3401 initializer.
3402 (f_language::value_print_inner): New member function.
3403 * f-lang.h (f_value_print_innner): Rename to...
3404 (f_value_print_inner): ...this (note spelling of 'inner').
3405 * f-valprint.c (f_value_print_innner): Rename to...
3406 (f_value_print_inner): ...this (note spelling of 'inner').
3407 * go-lang.c (go_language_data): Delete la_value_print_inner
3408 initializer.
3409 (go_language::value_print_inner): New member function.
3410 * language.c (language_defn::value_print_inner): Define new member
3411 function.
3412 (unk_lang_value_print_inner): Delete.
3413 (unknown_language_data): Delete la_value_print_inner initializer.
3414 (unknown_language::value_print_inner): New member function.
3415 (auto_language_data): Delete la_value_print_inner initializer.
3416 (auto_language::value_print_inner): New member function.
3417 * language.h (language_data): Delete la_value_print_inner field.
3418 (language_defn::value_print_inner): Delcare new member function.
3419 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3420 initializer.
3421 (m2_language::value_print_inner): New member function.
3422 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3423 initializer.
3424 * opencl-lang.c (opencl_language_data): Likewise.
3425 * p-lang.c (pascal_language_data): Likewise.
3426 (pascal_language::value_print_inner): New member function.
3427 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3428 initializer.
3429 (rust_language::value_print_inner): New member function.
3430 * valprint.c (do_val_print): Update call to value_print_inner.
3431
3432 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3433
3434 * ada-lang.c (ada_language_data): Delete la_value_print
3435 initializer.
3436 (ada_language::value_print): New member function.
3437 * c-lang.c (c_language_data): Delete la_value_print initializer.
3438 (cplus_language_data): Likewise.
3439 (asm_language_data): Likewise.
3440 (minimal_language_data): Likewise.
3441 * d-lang.c (d_language_data): Likewise.
3442 * f-lang.c (f_language_data): Likewise.
3443 * go-lang.c (go_language_data): Likewise.
3444 * language.c (unk_lang_value_print): Delete.
3445 (language_defn::value_print): Define new member function.
3446 (unknown_language_data): Delete la_value_print initializer.
3447 (unknown_language::value_print): New member function.
3448 (auto_language_data): Delete la_value_print initializer.
3449 (auto_language::value_print): New member function.
3450 * language.h (language_data): Delete la_value_print field.
3451 (language_defn::value_print): Declare new member function.
3452 (LA_VALUE_PRINT): Update call to value_print.
3453 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3454 * objc-lang.c (objc_language_data): Likewise.
3455 * opencl-lang.c (opencl_language_data): Likewise.
3456 * p-lang.c (pascal_language_data): Likewise.
3457 (pascal_language::value_print): New member function.
3458 * rust-lang.c (rust_language_data): Delete la_value_print
3459 initializer.
3460
3461 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3462
3463 * ada-lang.c (ada_watch_location_expression): Rename to
3464 ada_language::watch_location_expression.
3465 (ada_language_data): Delete la_watch_location_expression
3466 initializer.
3467 (ada_language::watch_location_expression): New member function,
3468 implementation from ada_watch_location_expression.
3469 * breakpoint.c (watch_command_1): Update call to
3470 watch_location_expression.
3471 * c-lang.c (c_watch_location_expression): Rename to
3472 language_defn::watch_location_expression.
3473 (c_language_data): Delete la_watch_location_expression
3474 initializer.
3475 (cplus_language_data): Likewise.
3476 (asm_language_data): Likewise.
3477 (minimal_language_data): Likewise.
3478 * c-lang.h (c_watch_location_expression): Delete declaration.
3479 * d-lang.c (d_language_data): Delete la_watch_location_expression
3480 initializer.
3481 * f-lang.c (f_language_data): Likewise.
3482 * go-lang.c (go_language_data): Likewise.
3483 * language.c (language_defn::watch_location_expression): Member
3484 function implementation from c_watch_location_expression.
3485 (unknown_language_data): Delete la_watch_location_expression
3486 initializer.
3487 (auto_language_data): Likewise.
3488 * language.h (language_data): Delete la_watch_location_expression
3489 field.
3490 (language_defn::watch_location_expression): Declare new member
3491 function.
3492 * m2-lang.c (m2_language_data): Delete
3493 la_watch_location_expression initializer.
3494 * objc-lang.c (objc_language_data): Likewise.
3495 * opencl-lang.c (opencl_language_data): Likewise.
3496 * p-lang.c (pascal_language_data): Likewise.
3497 * rust-lang.c (rust_watch_location_expression): Rename to
3498 rust_language::watch_location_expression.
3499 (rust_language_data): Delete la_watch_location_expression
3500 initializer.
3501 (rust_language::watch_location_expression): New member function,
3502 implementation from rust_watch_location_expression.
3503
3504 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3505
3506 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3507 ada_language::collect_symbol_completion_matches.
3508 (ada_language_data): Delete la_collect_symbol_completion_matches
3509 initializer.
3510 (ada_language::collect_symbol_completion_matches): New member
3511 function, implementation from
3512 ada_collect_symbol_completion_matches.
3513 * c-lang.c (c_language_data): Delete
3514 la_collect_symbol_completion_matches initializer.
3515 (cplus_language_data): Likewise.
3516 (asm_language_data): Likewise.
3517 (minimal_language_data): Likewise.
3518 * d-lang.c (d_language_data): Likewise.
3519 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3520 f_language::collect_symbol_completion_matches.
3521 (f_language_data): Delete la_collect_symbol_completion_matches
3522 initializer.
3523 (f_language::collect_symbol_completion_matches) New member
3524 function, implementation from f_collect_symbol_completion_matches.
3525 * go-lang.c (go_language_data): Delete
3526 la_collect_symbol_completion_matches initializer.
3527 * language.c (unknown_language_data): Likewise.
3528 (auto_language_data): Likewise.
3529 * language.h (language_data): Delete
3530 la_collect_symbol_completion_matches field.
3531 (language_defn::collect_symbol_completion_matches): New member
3532 function.
3533 * m2-lang.c (m2_language_data): Delete
3534 la_collect_symbol_completion_matches initializer.
3535 * objc-lang.c (objc_language_data): Likewise.
3536 * opencl-lang.c (opencl_language_data): Likewise.
3537 * p-lang.c (pascal_language_data): Likewise.
3538 * rust-lang.c (rust_language_data): Likewise.
3539 * symtab.c (default_collect_symbol_completion_matches): Delete.
3540 (collect_symbol_completion_matches): Update call to
3541 collect_symbol_completion_matches.
3542 (collect_symbol_completion_matches_type): Likewise.
3543 * symtab.h (default_collect_symbol_completion_matches): Delete
3544 declaration.
3545
3546 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3547
3548 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3549 (ada_language_data): Delete la_word_break_characters initializer.
3550 (ada_language::word_break_characters): New member function.
3551 * c-lang.c (c_language_data): Delete la_word_break_characters
3552 initializer.
3553 (cplus_language_data): Likewise.
3554 (asm_language_data): Likewise.
3555 (minimal_language_data): Likewise.
3556 * completer.c: Update global comment.
3557 (advance_to_expression_complete_word_point): Update call to
3558 word_break_characters.
3559 (complete_files_symbols): Likewise.
3560 (complete_line_internal_1): Likewise.
3561 (default_completer_handle_brkchars): Likewise.
3562 (skip_quoted_chars): Likewise.
3563 * d-lang.c (d_language_data): Delete la_word_break_characters
3564 initializer.
3565 * f-lang.c (f_word_break_characters): Delete.
3566 (f_language_data): Delete la_word_break_characters initializer.
3567 (f_language::word_break_characters): New member function.
3568 * go-lang.c (go_language_data): Delete la_word_break_characters
3569 initializer.
3570 * language.c (unknown_language_data): Likewise.
3571 (auto_language_data): Likewise.
3572 * language.h (default_word_break_characters): Move declaration to
3573 earlier in the file.
3574 (language_data): Delete la_word_break_characters field.
3575 (language_defn::word_break_characters): New member function.
3576 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3577 initializer.
3578 * objc-lang.c (objc_language_data): Likewise.
3579 * opencl-lang.c (opencl_language_data): Likewise.
3580 * p-lang.c (pascal_language_data): Likewise.
3581 * rust-lang.c (rust_language_data): Likewise.
3582
3583 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3584
3585 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3586 (ada_language_data): Delete la_get_symbol_name_matcher
3587 initializer.
3588 (language_defn::get_symbol_name_matcher_inner): New member
3589 function.
3590 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3591 initializer.
3592 (cplus_language_data): Likewise.
3593 (cplus_language::get_symbol_name_matcher_inner): New member
3594 function.
3595 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3596 (minimal_language_data): Likewise.
3597 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3598 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3599 initializer.
3600 * dictionary.c (iter_match_first_hashed): Update call to
3601 get_symbol_name_matcher.
3602 (iter_match_next_hashed): Likewise.
3603 (iter_match_next_linear): Likewise.
3604 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3605 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3606 initializer.
3607 (f_language::get_symbol_name_matcher_inner): New member function.
3608 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3609 initializer.
3610 * language.c (default_symbol_name_matcher): Update header comment,
3611 make static.
3612 (language_defn::get_symbol_name_matcher): New definition.
3613 (language_defn::get_symbol_name_matcher_inner): Likewise.
3614 (get_symbol_name_matcher): Delete.
3615 (unknown_language_data): Delete la_get_symbol_name_matcher
3616 initializer.
3617 (auto_language_data): Likewise.
3618 * language.h (language_data): Delete la_get_symbol_name_matcher
3619 field.
3620 (language_defn::get_symbol_name_matcher): New member function.
3621 (language_defn::get_symbol_name_matcher_inner): Likewise.
3622 (default_symbol_name_matcher): Delete declaration.
3623 * linespec.c (find_methods): Update call to
3624 get_symbol_name_matcher.
3625 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3626 initializer.
3627 * minsyms.c (lookup_minimal_symbol): Update call to
3628 get_symbol_name_matcher.
3629 (iterate_over_minimal_symbols): Likewise.
3630 * objc-lang.c (objc_language_data): Delete
3631 la_get_symbol_name_matcher initializer.
3632 * opencl-lang.c (opencl_language_data): Likewise.
3633 * p-lang.c (pascal_language_data): Likewise.
3634 * psymtab.c (psymbol_name_matches): Update call to
3635 get_symbol_name_matcher.
3636 * rust-lang.c (rust_language_data): Delete
3637 la_get_symbol_name_matcher initializer.
3638 * symtab.c (symbol_matches_search_name): Update call to
3639 get_symbol_name_matcher.
3640 (compare_symbol_name): Likewise.
3641
3642 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3643
3644 * ada-lang.c (ada_language_data): Delete la_compute_program
3645 initializer.
3646 * c-lang.c (c_language_data): Likewise.
3647 (c_language::compute_program): New member function.
3648 (cplus_language_data): Delete la_compute_program initializer.
3649 (cplus_language::compute_program): New member function.
3650 (asm_language_data): Delete la_compute_program initializer.
3651 (minimal_language_data): Likewise.
3652 * c-lang.h (c_compute_program): Update comment.
3653 (cplus_compute_program): Likewise.
3654 * compile/compile-c-support.c (c_compute_program): Likewise.
3655 (cplus_compute_program): Likewise.
3656 * compile/compile.c (compile_to_object): Update call to
3657 la_compute_program.
3658 * d-lang.c (d_language_data): Delete la_compute_program
3659 initializer.
3660 * f-lang.c (f_language_data): Likewise.
3661 * go-lang.c (go_language_data): Likewise.
3662 * language.c (unknown_language_data): Likewise.
3663 (auto_language_data): Likewise.
3664 * language.h (language_data): Delete la_compute_program field.
3665 (language_defn::compute_program): New member function.
3666 * m2-lang.c (m2_language_data): Delete la_compute_program
3667 initializer.
3668 * objc-lang.c (objc_language_data): Likewise.
3669 * opencl-lang.c (opencl_language_data): Likewise.
3670 * p-lang.c (pascal_language_data): Likewise.
3671 * rust-lang.c (rust_language_data): Likewise.
3672
3673 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3674
3675 * ada-lang.c (ada_language_data) Delete
3676 la_class_name_from_physname initializer.
3677 * c-lang.c (c_language_data): Likewise.
3678 (cplus_language_data): Likewise.
3679 (cplus_language::class_name_from_physname): New member function.
3680 (asm_language_data): Delete la_class_name_from_physname
3681 initializer.
3682 (minimal_language_data): Likewise.
3683 * d-lang.c (d_language_data): Likewise.
3684 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3685 method on language_defn class.
3686 (guess_full_die_structure_name): Likewise.
3687 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3688 initializer.
3689 * go-lang.c (go_language_data): Likewise.
3690 * language.c (language_class_name_from_physname): Delete.
3691 (unk_lang_class_name): Delete.
3692 (unknown_language_data): Delete la_class_name_from_physname
3693 initializer.
3694 (auto_language_data): Likewise.
3695 * language.h (language_data): Delete la_class_name_from_physname
3696 field.
3697 (language_defn::class_name_from_physname): New function.
3698 (language_class_name_from_physname): Delete declaration.
3699 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3700 initializer.
3701 * objc-lang.c (objc_language_data): Likewise.
3702 * opencl-lang.c (opencl_language_data): Likewise.
3703 * p-lang.c (pascal_language_data): Likewise.
3704 * rust-lang.c (rust_language_data): Likewise.
3705
3706 2020-06-16 Tom Tromey <tom@tromey.com>
3707
3708 * tui/tui-data.h (STATUS_NAME): New macro.
3709 * tui/tui-layout.c (tui_remove_some_windows)
3710 (initialize_known_windows, tui_register_window)
3711 (tui_layout_split::remove_windows, initialize_layouts)
3712 (tui_new_layout_command): Don't use hard-coded window names.
3713
3714 2020-06-16 Tom Tromey <tom@tromey.com>
3715
3716 PR tui/25348:
3717 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3718 tui_initialize_readline. Only run once. Call rl_initialize.
3719 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3720 tui_initialize_readline.
3721 * tui/tui-io.c (tui_setup_io): Call
3722 tui_ensure_readline_initialized.
3723 * tui/tui-interp.c (tui_interp::init): Update.
3724
3725 2020-06-16 Tom Tromey <tom@tromey.com>
3726
3727 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3728 Also preserve the status window.
3729
3730 2020-06-16 Tom Tromey <tom@tromey.com>
3731
3732 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3733 where m_window==nullptr.
3734
3735 2020-06-15 Tom Tromey <tromey@adacore.com>
3736
3737 * windows-nat.c (windows_nat::handle_output_debug_string):
3738 Update.
3739 (windows_nat::handle_ms_vc_exception): Update.
3740 * target.h (target_read_string): Change API.
3741 * target.c (target_read_string): Change API.
3742 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3743 Update.
3744 * solib-frv.c (frv_current_sos): Update.
3745 * solib-dsbt.c (dsbt_current_sos): Update.
3746 * solib-darwin.c (darwin_current_sos): Update.
3747 * linux-thread-db.c (inferior_has_bug): Update.
3748 * expprint.c (print_subexp_standard): Update.
3749 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3750 (ada_exception_message_1): Update.
3751
3752 2020-06-15 Tom Tromey <tromey@adacore.com>
3753
3754 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3755
3756 2020-06-15 Tom Tromey <tromey@adacore.com>
3757
3758 * valprint.c (read_string): Update comment.
3759 * target.c (MIN): Remove.
3760 (target_read_string): Rewrite.
3761
3762 2020-06-15 Tom Tromey <tromey@adacore.com>
3763
3764 * corefile.c (read_memory_string): Remove.
3765 * ada-valprint.c (ada_value_print_ptr): Update.
3766 * ada-lang.h (ada_tag_name): Change return type.
3767 * ada-lang.c (type_from_tag): Update.
3768 (ada_tag_name_from_tsd): Change return type. Use
3769 target_read_string.
3770 (ada_tag_name): Likewise.
3771 * gdbcore.h (read_memory_string): Don't declare.
3772
3773 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3774
3775 * symtab.c (rbreak_command): Ignore Windows drive colon.
3776
3777 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3778
3779 * NEWS: Mention removed GDBserver host support.
3780
3781 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3782
3783 * features/riscv/rebuild-csr-xml.sh: Updated.
3784
3785 2020-06-11 Tom Tromey <tom@tromey.com>
3786
3787 PR gdb/18318:
3788 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3789
3790 2020-06-09 Jonny Grant <jg@jguk.org>
3791 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3792
3793 * main.c (captured_main_1): Don't print new line after help.
3794 (print_gdb_help): add mailing list and IRC channel information
3795 to --help. Add new lines between items in the footer. Remove
3796 quotes around bug url.
3797
3798 2020-06-11 Keith Seitz <keiths@redhat.com>
3799
3800 PR gdb/21356
3801 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3802 Resolve typedefs for type length calculations.
3803
3804 2020-06-10 Tom de Vries <tdevries@suse.de>
3805
3806 PR ada/24713
3807 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3808 (write_psymbols): Enable .gdb_index for ada.
3809 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3810 ada.
3811
3812 2020-06-10 Tom de Vries <tdevries@suse.de>
3813
3814 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3815 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3816 namei" instead of "const char *name" argument.
3817 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3818 dw2_symtab_iter_init.
3819
3820 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3821
3822 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3823 to use type::field and field::type instead.
3824
3825 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3826
3827 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3828 to use field::type instead.
3829
3830 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3831
3832 * gdbtypes.h (struct field) <type, set_type>: New methods.
3833 Rename `type` field to...
3834 <m_type>: ... this. Change references throughout to use type or
3835 set_type methods.
3836 (FIELD_TYPE): Use field::type. Change call sites that modify
3837 the field's type to use field::set_type instead.
3838
3839 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3840
3841 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3842 to use type::index_type instead.
3843
3844 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3845
3846 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3847 methods.
3848 (TYPE_INDEX_TYPE): Use type::index_type.
3849 * gdbtypes.c (create_array_type_with_stride): Likewise.
3850
3851 2020-06-07 Tom Tromey <tom@tromey.com>
3852
3853 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3854 parameter.
3855 (generic_value_print): Update.
3856
3857 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3858
3859 Revert commit 982a38f60b0.
3860 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3861
3862 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3863
3864 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3865 avoid use after free.
3866
3867 2020-06-05 Tom de Vries <tdevries@suse.de>
3868
3869 * NEWS: Fix typos.
3870
3871 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3872
3873 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3874 the per_bfd object.
3875 (dwarf2_read_debug_names): Likewise.
3876 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3877 object when re-using a per_bfd object with an index.
3878
3879 2020-06-03 Tom de Vries <tdevries@suse.de>
3880
3881 PR symtab/26046
3882 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3883 children for C++.
3884 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3885 DW_TAG_subprogram.
3886
3887 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3888
3889 * ada-lang.c (ada_language_data): Delete skip_trampoline
3890 initializer.
3891 * c-lang.c (c_language_data): Likewise.
3892 (cplus_language_data): Likewise.
3893 (cplus_language::skip_trampoline): New member function.
3894 (asm_language_data): Delete skip_trampoline initializer.
3895 (minimal_language_data): Likewise.
3896 * d-lang.c (d_language_data): Likewise.
3897 * f-lang.c (f_language_data): Likewise.
3898 * go-lang.c (go_language_data): Likewise.
3899 * language.c (unk_lang_trampoline): Delete function.
3900 (skip_language_trampoline): Update.
3901 (unknown_language_data): Delete skip_trampoline initializer.
3902 (auto_language_data): Likewise.
3903 * language.h (language_data): Delete skip_trampoline field.
3904 (language_defn::skip_trampoline): New function.
3905 * m2-lang.c (m2_language_data): Delete skip_trampoline
3906 initializer.
3907 * objc-lang.c (objc_skip_trampoline): Delete function, move
3908 implementation to objc_language::skip_trampoline.
3909 (objc_language_data): Delete skip_trampoline initializer.
3910 (objc_language::skip_trampoline): New member function with
3911 implementation from objc_skip_trampoline.
3912 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3913 initializer.
3914 * p-lang.c (pascal_language_data): Likewise.
3915 * rust-lang.c (rust_language_data): Likewise.
3916
3917 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3918
3919 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3920 (ada_language::demangle): New member function.
3921 * c-lang.c (c_language_data): Delete la_demangle initializer.
3922 (cplus_language_data): Delete la_demangle initializer.
3923 (cplus_language::demangle): New member function.
3924 (asm_language_data): Delete la_demangle initializer.
3925 (minimal_language_data): Delete la_demangle initializer.
3926 * d-lang.c (d_language_data): Delete la_demangle initializer.
3927 (d_language::demangle): New member function.
3928 * f-lang.c (f_language_data): Delete la_demangle initializer.
3929 (f_language::demangle): New member function.
3930 * go-lang.c (go_language_data): Delete la_demangle initializer.
3931 (go_language::demangle): New member function.
3932 * language.c (language_demangle): Update.
3933 (unk_lang_demangle): Delete.
3934 (unknown_language_data): Delete la_demangle initializer.
3935 (unknown_language::demangle): New member function.
3936 (auto_language_data): Delete la_demangle initializer.
3937 (auto_language::demangle): New member function.
3938 * language.h (language_data): Delete la_demangle field.
3939 (language_defn::demangle): New function.
3940 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3941 * objc-lang.c (objc_language_data): Delete la_demangle
3942 initializer.
3943 (objc_language::demangle): New member function.
3944 * opencl-lang.c (opencl_language_data): Delete la_demangle
3945 initializer.
3946 * p-lang.c (pascal_language_data): Likewise.
3947 * rust-lang.c (rust_language_data): Likewise.
3948 (rust_language::demangle): New member function.
3949
3950 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3951
3952 * ada-lang.c (ada_language_data): Delete la_print_type
3953 initializer.
3954 (ada_language::print_type): New member function.
3955 * c-lang.c (c_language_data): Delete la_print_type initializer.
3956 (c_language::print_type): New member function.
3957 (cplus_language_data): Delete la_print_type initializer.
3958 (cplus_language::print_type): New member function.
3959 (asm_language_data): Delete la_print_type initializer.
3960 (asm_language::print_type): New member function.
3961 (minimal_language_data): Delete la_print_type initializer.
3962 (minimal_language::print_type): New member function.
3963 * d-lang.c (d_language_data): Delete la_print_type initializer.
3964 (d_language::print_type): New member function.
3965 * f-lang.c (f_language_data): Delete la_print_type initializer.
3966 (f_language::print_type): New member function.
3967 * go-lang.c (go_language_data): Delete la_print_type initializer.
3968 (go_language::print_type): New member function.
3969 * language.c (unk_lang_print_type): Delete.
3970 (unknown_language_data): Delete la_print_type initializer.
3971 (unknown_language::print_type): New member function.
3972 (auto_language_data): Delete la_print_type initializer.
3973 (auto_language::print_type): New member function.
3974 * language.h (language_data): Delete la_print_type field.
3975 (language_defn::print_type): New function.
3976 (LA_PRINT_TYPE): Update.
3977 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3978 (m2_language::print_type): New member function.
3979 * objc-lang.c (objc_language_data): Delete la_print_type
3980 initializer.
3981 (objc_language::print_type): New member function.
3982 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3983 to opencl_language::print_type.
3984 (opencl_language_data): Delete la_print_type initializer.
3985 (opencl_language::print_type): New member function, implementation
3986 from opencl_print_type.
3987 * p-lang.c (pascal_language_data): Delete la_print_type
3988 initializer.
3989 (pascal_language::print_type): New member function.
3990 * rust-lang.c (rust_print_type): Delete, implementation moved to
3991 rust_language::print_type.
3992 (rust_language_data): Delete la_print_type initializer.
3993 (rust_language::print_type): New member function, implementation
3994 from rust_print_type.
3995
3996 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3997
3998 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3999 implementation moves to...
4000 (ada_language::sniff_from_mangled_name): ...here. Update return
4001 type.
4002 (ada_language_data): Delete la_sniff_from_mangled_name
4003 initializer.
4004 * c-lang.c (c_language_data): Likewise.
4005 (cplus_language_data): Likewise.
4006 (cplus_language::sniff_from_mangled_name): New member function,
4007 implementation taken from gdb_sniff_from_mangled_name.
4008 (asm_language_data): Delete la_sniff_from_mangled_name
4009 initializer.
4010 (minimal_language_data): Likewise.
4011 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4012 implementation moves to cplus_language::sniff_from_mangled_name.
4013 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4014 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4015 moves to...
4016 (d_language::sniff_from_mangled_name): ...here.
4017 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4018 * f-lang.c (f_language_data): Likewise.
4019 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4020 moves to...
4021 (go_language::sniff_from_mangled_name): ...here.
4022 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4023 * language.c (language_sniff_from_mangled_name): Delete.
4024 (unknown_language_data): Delete la_sniff_from_mangled_name
4025 initializer.
4026 (auto_language_data): Likewise.
4027 * language.h (language_data): Delete la_sniff_from_mangled_name
4028 field.
4029 (language_defn::sniff_from_mangled_name): New function.
4030 (language_sniff_from_mangled_name): Delete declaration.
4031 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4032 field.
4033 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4034 implementation moves to...
4035 (objc_language::sniff_from_mangled_name): ...here.
4036 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4037 * opencl-lang.c (opencl_language_data): Likewise.
4038 * p-lang.c (pascal_language_data): Likewise.
4039 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4040 implementation moves to...
4041 (rust_language::sniff_from_mangled_name): ...here.
4042 (rust_language_data): Delete la_sniff_from_mangled_name
4043 initializer.
4044 * symtab.c (symbol_find_demangled_name): Call
4045 sniff_from_mangled_name member function.
4046
4047 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4048
4049 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4050 initializer.
4051 * c-lang.c (c_language_data): Likewise.
4052 (cplus_language_data): Likewise.
4053 (cplus_language::search_name_hash): New member function.
4054 (asm_language_data): Delete la_search_name_hash initializer.
4055 (minimal_language_data): Likewise.
4056 * d-lang.c (d_language_data): Likewise.
4057 * dictionary.c (default_search_name_hash): Rename to...
4058 (language_defn::search_name_hash): ...this.
4059 * f-lang.c (f_language_data): Likewise.
4060 (f_language::search_name_hash): New member function.
4061 * go-lang.c (go_language_data): Delete la_search_name_hash
4062 initializer.
4063 * language.c (unknown_language_data): Likewise.
4064 (auto_language_data): Likewise.
4065 * language.h (struct language_data): Delete la_search_name_hash
4066 field.
4067 (language_defn::search_name_hash): Declare new member function.
4068 (default_search_name_hash): Delete declaration.
4069 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4070 initializer.
4071 * objc-lang.c (objc_language_data): Likewise.
4072 * opencl-lang.c (opencl_language_data): Likewise.
4073 * p-lang.c (pascal_language_data): Likewise.
4074 * rust-lang.c (rust_language_data): Likewise.
4075 * symtab.c (search_name_hash): Update call.
4076
4077 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4078
4079 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4080 initializer.
4081 * c-lang.c (class compile_instance): Declare.
4082 (c_language_data): Delete la_get_compile_instance initializer.
4083 (c_language::get_compile_instance): New member function.
4084 (cplus_language_data): Delete la_get_compile_instance initializer.
4085 (cplus_language::get_compile_instance): New member function.
4086 (asm_language_data): Delete la_get_compile_instance initializer.
4087 (minimal_language_data): Likewise.
4088 * c-lang.h (c_get_compile_context): Update comment.
4089 (cplus_get_compile_context): Update comment.
4090 * compile/compile.c (compile_to_object): Update calls, don't rely
4091 on function pointer being NULL.
4092 * d-lang.c (d_language_data): Delete la_get_compile_instance
4093 initializer.
4094 * f-lang.c (f_language_data): Likewise.
4095 * go-lang.c (go_language_data): Likewise.
4096 * language.c (unknown_language_data): Likewise.
4097 (auto_language_data): Likewise.
4098 * language.h (language_data): Delete la_get_compile_instance field.
4099 (language_defn::get_compile_instance): New member function.
4100 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4101 initializer.
4102 * objc-lang.c (objc_language_data): Likewise.
4103 * opencl-lang.c (opencl_language_data): Likewise.
4104 * p-lang.c (pascal_language_data): Likewise.
4105 * rust-lang.c (rust_language_data): Likewise.
4106
4107 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4108
4109 * ada-lang.c (ada_add_all_symbols): Update comment.
4110 (ada_iterate_over_symbols): Delete, move implementation to...
4111 (ada_language::iterate_over_symbols): ...here, a new member
4112 function, rewrite to use range based for loop.
4113 (ada_language_data): Delete la_iterate_over_symbols initializer.
4114 * c-lang.c (c_language_data): Likewise.
4115 (cplus_language_data): Likewise.
4116 (asm_language_data): Likewise.
4117 (minimal_language_data): Likewise.
4118 * d-lang.c (d_language_data): Likewise.
4119 * f-lang.c (f_language_data): Likewise.
4120 * go-lang.c (go_language_data): Likewise.
4121 * language.c (unknown_language_data): Likewise.
4122 (auto_language_data): Likewise.
4123 * language.h (language_data): Delete la_iterate_over_symbols field.
4124 (language_defn::iterate_over_symbols): New member function.
4125 (LA_ITERATE_OVER_SYMBOLS): Update.
4126 * linespec.c (iterate_over_all_matching_symtabs): Update.
4127 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4128 initializer.
4129 * objc-lang.c (objc_language_data): Likewise.
4130 * opencl-lang.c (opencl_language_data): Likewise.
4131 * p-lang.c (pascal_language_data): Likewise.
4132 * rust-lang.c (rust_language_data): Likewise.
4133
4134 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4135
4136 * ada-lang.c (ada_language_data): Delete
4137 la_lookup_transparent_type initializer.
4138 * c-lang.c (c_language_data): Likewise.
4139 (cplus_language_data): Likewise.
4140 (cplus_language::lookup_transparent_type): New member function.
4141 (asm_language_data): Delete la_lookup_transparent_type
4142 initializer.
4143 (minimal_language_data): Likewise.
4144 * d-lang.c (d_language_data): Likewise.
4145 * f-lang.c (f_language_data): Likewise.
4146 * go-lang.c (go_language_data): Likewise.
4147 * language.c (unknown_language_data): Likewise.
4148 (auto_language_data): Likewise.
4149 * language.h (struct language_data): Delete
4150 la_lookup_transparent_type field.
4151 (language_defn::lookup_transparent_type): New member function.
4152 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4153 initializer.
4154 * objc-lang.c (objc_language_data): Likewise.
4155 * opencl-lang.c (opencl_language_data): Likewise.
4156 * p-lang.c (pascal_language_data): Likewise.
4157 * rust-lang.c (rust_language_data): Likewise.
4158 * symtab.c (symbol_matches_domain): Update call.
4159
4160 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4161
4162 * ada-lang.c (ada_language_arch_info): Delete function, move
4163 implementation to...
4164 (ada_language::language_arch_info): ...here, a new member
4165 function.
4166 (ada_language_data): Delete la_language_arch_info.
4167 * c-lang.c (c_language_data): Likewise.
4168 (c_language::language_arch_info): New member function.
4169 (cplus_language_arch_info): Delete function, move
4170 implementation to...
4171 (cplus_language::language_arch_info): ...here, a new member
4172 function.
4173 (cplus_language_data): Delete la_language_arch_info.
4174 (asm_language_data): Likewise.
4175 (asm_language::language_arch_info): New member function.
4176 (minimal_language_data): Delete la_language_arch_info.
4177 (minimal_language::language_arch_info): New member function.
4178 * d-lang.c (d_language_arch_info): Delete function, move
4179 implementation to...
4180 (d_language::language_arch_info): ...here, a new member
4181 function.
4182 (d_language_data): Delete la_language_arch_info.
4183 * f-lang.c (f_language_arch_info): Delete function, move
4184 implementation to...
4185 (f_language::language_arch_info): ...here, a new member
4186 function.
4187 (f_language_data): Delete la_language_arch_info.
4188 * go-lang.c (go_language_arch_info): Delete function, move
4189 implementation to...
4190 (go_language::language_arch_info): ...here, a new member
4191 function.
4192 (go_language_data): Delete la_language_arch_info.
4193 * language.c (unknown_language_data): Likewise.
4194 (unknown_language::language_arch_info): New member function.
4195 (auto_language_data): Delete la_language_arch_info.
4196 (auto_language::language_arch_info): New member function.
4197 (language_gdbarch_post_init): Update call to
4198 la_language_arch_info.
4199 * language.h (language_data): Delete la_language_arch_info
4200 function pointer.
4201 (language_defn::language_arch_info): New function.
4202 * m2-lang.c (m2_language_arch_info): Delete function, move
4203 implementation to...
4204 (m2_language::language_arch_info): ...here, a new member
4205 function.
4206 (m2_language_data): Delete la_language_arch_info.
4207 * objc-lang.c (objc_language_arch_info): Delete function, move
4208 implementation to...
4209 (objc_language::language_arch_info): ...here, a new member
4210 function.
4211 (objc_language_data): Delete la_language_arch_info.
4212 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4213 implementation to...
4214 (opencl_language::language_arch_info): ...here, a new member
4215 function.
4216 (opencl_language_data): Delete la_language_arch_info.
4217 * p-lang.c (pascal_language_arch_info): Delete function, move
4218 implementation to...
4219 (pascal_language::language_arch_info): ...here, a new member
4220 function.
4221 (pascal_language_data): Delete la_language_arch_info.
4222 * rust-lang.c (rust_language_arch_info): Delete function, move
4223 implementation to...
4224 (rust_language::language_arch_info): ...here, a new member
4225 function.
4226 (rust_language_data): Delete la_language_arch_info.
4227
4228 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4229
4230 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4231 initializer.
4232 * c-lang.c (c_language_data): Likewise.
4233 (cplus_language_data): Likewise.
4234 (cplus_language::pass_by_reference_info): New method.
4235 (asm_language_data): Delete la_pass_by_reference initializer.
4236 (minimal_language_data): Likewise.
4237 * cp-abi.c (cp_pass_by_reference): Remove use of
4238 default_pass_by_reference.
4239 * d-lang.c (d_language_data): Likewise.
4240 * f-lang.c (f_language_data): Likewise.
4241 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4242 default_pass_by_reference.
4243 * go-lang.c (go_language_data): Likewise.
4244 * language.c (language_pass_by_reference): Update.
4245 (default_pass_by_reference): Delete.
4246 (unknown_language_data): Delete la_pass_by_reference
4247 initializer.
4248 (auto_language_data): Likewise.
4249 * language.h (struct language_data): Delete la_pass_by_reference
4250 field.
4251 (language_defn::pass_by_reference_info): New member function.
4252 (default_pass_by_reference): Delete declaration.
4253 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4254 initializer.
4255 * objc-lang.c (objc_language_data): Likewise.
4256 * opencl-lang.c (opencl_language_data): Likewise.
4257 * p-lang.c (pascal_language_data): Likewise.
4258 * rust-lang.c (rust_language_data): Likewise.
4259
4260 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4261
4262 * ada-lang.c (ada_read_var_value): Delete function, move
4263 implementation to...
4264 (ada_language::read_var_value): ...here.
4265 (ada_language_data): Delete la_read_var_value initializer.
4266 * c-lang.c (c_language_data): Likewise.
4267 (cplus_language_data): Likewise.
4268 (minimal_language_data): Likewise.
4269 * d-lang.c (d_language_data): Likewise.
4270 * f-lang.c (f_language_data): Likewise.
4271 * findvar.c (default_read_var_value): Rename to...
4272 (language_defn::read_var_value): ...this.
4273 * findvar.c (read_var_value): Update header comment, and change to
4274 call member function instead of function pointer.
4275 * go-lang.c (go_language_data): Likewise.
4276 * language.c (unknown_language_data): Delete la_read_var_value
4277 initializer.
4278 (auto_language_data): Likewise.
4279 * language.h (struct language_data): Delete la_read_var_value
4280 field.
4281 (language_defn::read_var_value): New member function.
4282 (default_read_var_value): Delete declaration.
4283 * m2-lang.c (m2_language_data): Delete la_read_var_value
4284 initializer.
4285 * objc-lang.c (objc_language_data): Likewise.
4286 * opencl-lang.c (opencl_language_data): Likewise.
4287 * p-lang.c (pascal_language_data): Likewise.
4288 * rust-lang.c (rust_language_data): Likewise.
4289 * value.h (default_read_var_value): Delete declaration.
4290
4291 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4292
4293 * ada-lang.c (ada_print_array_index): Delete function, move
4294 implementation to...
4295 (ada_language::print_array_index): ...here.
4296 (ada_language_data): Delete la_print_array_index initializer.
4297 * c-lang.c (c_language_data): Likewise.
4298 (cplus_language_data): Likewise.
4299 (minimal_language_data): Likewise.
4300 * d-lang.c (d_language_data): Likewise.
4301 * f-lang.c (f_language_data): Likewise.
4302 * go-lang.c (go_language_data): Likewise.
4303 * language.c (default_print_array_index): Delete function, move
4304 implementation to...
4305 (language_defn::print_array_index): ...here.
4306 (unknown_language_data): Delete la_print_array_index initializer.
4307 (auto_language_data): Likewise.
4308 * language.h (struct language_data): Delete la_print_array_index
4309 field.
4310 (language_defn::print_array_index): New member function.
4311 (LA_PRINT_ARRAY_INDEX): Update.
4312 (default_print_array_index): Delete declaration.
4313 * m2-lang.c (m2_language_data): Delete la_print_array_index
4314 initializer.
4315 * objc-lang.c (objc_language_data): Likewise.
4316 * opencl-lang.c (opencl_language_data): Likewise.
4317 * p-lang.c (pascal_language_data): Likewise.
4318 * rust-lang.c (rust_language_data): Likewise.
4319
4320 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4321
4322 * gdb/ada-lang.c (ada_language_defn): Convert to...
4323 (ada_language_data): ...this.
4324 (class ada_language): New class.
4325 (ada_language_defn): New static global.
4326 * gdb/c-lang.c (c_language_defn): Convert to...
4327 (c_language_data): ...this.
4328 (class c_language): New class.
4329 (c_language_defn): New static global.
4330 (cplus_language_defn): Convert to...
4331 (cplus_language_data): ...this.
4332 (class cplus_language): New class.
4333 (cplus_language_defn): New static global.
4334 (asm_language_defn): Convert to...
4335 (asm_language_data): ...this.
4336 (class asm_language): New class.
4337 (asm_language_defn): New static global.
4338 (minimal_language_defn): Convert to...
4339 (minimal_language_data): ...this.
4340 (class minimal_language): New class.
4341 (minimal_language_defn): New static global.
4342 * gdb/d-lang.c (d_language_defn): Convert to...
4343 (d_language_data): ...this.
4344 (class d_language): New class.
4345 (d_language_defn): New static global.
4346 * gdb/f-lang.c (f_language_defn): Convert to...
4347 (f_language_data): ...this.
4348 (class f_language): New class.
4349 (f_language_defn): New static global.
4350 * gdb/go-lang.c (go_language_defn): Convert to...
4351 (go_language_data): ...this.
4352 (class go_language): New class.
4353 (go_language_defn): New static global.
4354 * gdb/language.c (unknown_language_defn): Remove declaration.
4355 (current_language): Initialize to nullptr, real initialization is
4356 moved to _initialize_language.
4357 (languages): Delete global.
4358 (language_defn::languages): Define.
4359 (set_language_command): Use language_defn::languages.
4360 (set_language): Likewise.
4361 (range_error): Likewise.
4362 (language_enum): Likewise.
4363 (language_def): Likewise.
4364 (add_set_language_command): Use language_def::languages for the
4365 language list, and language_def to lookup language pointers.
4366 (skip_language_trampoline): Use language_defn::languages.
4367 (unknown_language_defn): Convert to...
4368 (unknown_language_data): ...this.
4369 (class unknown_language): New class.
4370 (unknown_language_defn): New static global.
4371 (auto_language_defn): Convert to...
4372 (auto_language_data): ...this.
4373 (class auto_language): New class.
4374 (auto_language_defn): New static global.
4375 (language_gdbarch_post_init): Use language_defn::languages.
4376 (_initialize_language): Initialize current_language.
4377 * gdb/language.h (struct language_defn): Rename to...
4378 (struct language_data): ...this.
4379 (struct language_defn): New.
4380 (auto_language_defn): Delete.
4381 (unknown_language_defn): Delete.
4382 (minimal_language_defn): Delete.
4383 (ada_language_defn): Delete.
4384 (asm_language_defn): Delete.
4385 (c_language_defn): Delete.
4386 (cplus_language_defn): Delete.
4387 (d_language_defn): Delete.
4388 (f_language_defn): Delete.
4389 (go_language_defn): Delete.
4390 (m2_language_defn): Delete.
4391 (objc_language_defn): Delete.
4392 (opencl_language_defn): Delete.
4393 (pascal_language_defn): Delete.
4394 (rust_language_defn): Delete.
4395 * gdb/m2-lang.c (m2_language_defn): Convert to...
4396 (m2_language_data): ...this.
4397 (class m2_language): New class.
4398 (m2_language_defn): New static global.
4399 * gdb/objc-lang.c (objc_language_defn): Convert to...
4400 (objc_language_data): ...this.
4401 (class objc_language): New class.
4402 (objc_language_defn): New static global.
4403 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4404 (opencl_language_data): ...this.
4405 (class opencl_language): New class.
4406 (opencl_language_defn): New static global.
4407 * gdb/p-lang.c (pascal_language_defn): Convert to...
4408 (pascal_language_data): ...this.
4409 (class pascal_language): New class.
4410 (pascal_language_defn): New static global.
4411 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4412 language pointer, update comment format.
4413 * gdb/rust-lang.c (rust_language_defn): Convert to...
4414 (rust_language_data): ...this.
4415 (class rust_language): New class.
4416 (rust_language_defn): New static global.
4417
4418 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4419
4420 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4421 member variable.
4422 <m_stmt_at_address>: New member variable.
4423 (lnp_state_machine::record_line): Don't record some lines, update
4424 tracking of is_stmt at the same address.
4425 (lnp_state_machine::lnp_state_machine): Initialise new member
4426 variables.
4427
4428 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4429
4430 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4431 "-include gnu-nat-mig.h".
4432 * gnu-nat-mig.h: New file.
4433 * gnu-nat.c: Include "gnu-nat-mig.h".
4434 (exc_server, msg_reply_server, notify_server,
4435 process_reply_server): Remove declarations.
4436
4437 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4438
4439 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4440 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4441 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4442 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4443 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4444 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4445 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4446 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4447 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4448 to gnu_nat_target class.
4449 * gnu-nat.c: Likewise.
4450 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4451 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4452 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4453 object.
4454 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4455 instead of `gnu_target'.
4456
4457 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4458
4459 * i386-gnu-tdep.c: Include "gdbcore.h"
4460 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4461 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4462 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4463 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4464 i386_gnu_sigcontext_addr): New functions
4465 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4466 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4467 tdep.
4468
4469 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4470
4471 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4472 before fork_inferior call. Avoid calling it if target_is_pushed returns
4473 true.
4474
4475 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4476
4477 * gnu-nat.h (gnu_target): New variable declaration.
4478 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4479 gnu_target.
4480 * gnu-nat.c (gnu_target): New variable.
4481 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4482 add_thread_silent, and add_thread calls.
4483 (gnu_nat_target::create_inferior): Pass gnu_target to
4484 add_thread_silent, thread_change_ptid call.
4485 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4486 call.
4487
4488 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4489
4490 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4491 (gnu_nat_target::find_memory_regions): Remove unused
4492 `old_address' variable.
4493
4494 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4495
4496 * gnu-nat.c: Include "gdbarch.h".
4497
4498 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4499
4500 * reply_mig_hack.awk (Error return): Cast function through
4501 void *, to bypass compiler function call check.
4502
4503 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4504
4505 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4506 $(srcdir)/reply_mig_hack.awk.
4507
4508 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4509
4510 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4511
4512 2020-05-30 Jonny Grant <jg@jguk.org>
4513
4514 * configure.ac (ACX_BUGURL): change bug URL to https.
4515
4516 2020-05-30 Pedro Alves <palves@redhat.com>
4517
4518 * cp-support.c (replace_typedefs_template): New.
4519 (replace_typedefs_qualified_name): Handle
4520 DEMANGLE_COMPONENT_TEMPLATE.
4521
4522 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4523
4524 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4525 dwarf2/index-cache.h, dwarf2/index-write.c,
4526 dwarf2/index-write.h, dwarf2/line-header.c,
4527 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4528 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4529 variables and fields from `dwarf2_per_objfile` to just
4530 `per_objfile` throughout.
4531
4532 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4533
4534 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4535 <push_dwarf_reg_entry_value>: Add comment.
4536
4537 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4538 Keith Seitz <keiths@redhat.com>
4539
4540 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4541 instead of PyEval_ReleaseLock.
4542 (class gdbpy_gil): Move to earlier in file.
4543 (finalize_python): Set gdb_python_initialized.
4544 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4545 when not initialized.
4546
4547 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4548
4549 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4550 <push_dwarf_reg_entry_value>: Remove assert. Override
4551 per_objfile with caller_per_objfile.
4552
4553 2020-05-28 Tom de Vries <tdevries@suse.de>
4554
4555 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4556 PR gold/15646 workaround to symbol kind "type".
4557
4558 2020-05-27 Tom Tromey <tromey@adacore.com>
4559
4560 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4561
4562 2020-05-27 Tom Tromey <tromey@adacore.com>
4563
4564 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4565 Use htab_find_with_hash.
4566 <add_abbrev>: Remove "abbrev_number" parameter.
4567 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4568 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4569 (hash_abbrev): Add comment.
4570 (abbrev_table::lookup_abbrev): Move to header file.
4571 (abbrev_table::read): Update.
4572
4573 2020-05-27 Tom Tromey <tromey@adacore.com>
4574
4575 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4576 method.
4577 <canonical_name>: New member.
4578 <raw_name>: Rename from "name".
4579 (partial_die_info): Initialize canonical_name.
4580 (scan_partial_symbols): Check raw_name.
4581 (partial_die_parent_scope, partial_die_full_name)
4582 (add_partial_symbol, add_partial_subprogram)
4583 (add_partial_enumeration, load_partial_dies): Use "name" method.
4584 (partial_die_info::name): New method.
4585 (partial_die_info::read, guess_partial_die_structure_name)
4586 (partial_die_info::fixup): Update.
4587
4588 2020-05-27 Tom Tromey <tromey@adacore.com>
4589
4590 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4591 <get_ref_die_offset>: Inline.
4592 <get_ref_die_offset_complaint>: New method.
4593 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4594 (attribute::get_ref_die_offset_complaint): Rename from
4595 get_ref_die_offset. Just issue complaint.
4596
4597 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4598
4599 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4600
4601 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4602
4603 * exec.c (exec_file_attach): Use errno value of first openp failure.
4604
4605 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4606
4607 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4608 Don't close thread handle.
4609
4610 2020-05-27 Tom Tromey <tom@tromey.com>
4611 Simon Marchi <simon.marchi@efficios.com>
4612
4613 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4614 shared_ptr.
4615 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4616 member.
4617 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4618 dwarf2_per_bfd_objfile_data_key>: New globals.
4619 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4620 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4621 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4622 shared.
4623 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4624 short-circuit when sharing.
4625 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4626 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4627
4628 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4629
4630 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4631 to...
4632 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4633 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4634
4635 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4636
4637 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4638 build_name_components, find_name_components_bounds>:
4639 Add per_objfile parameter.
4640 (struct mapped_index) <symbol_name_at>: Likewise.
4641 (struct mapped_debug_names): Remove constructor.
4642 <dwarf2_per_objfile>: Remove field.
4643 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4644 (mapped_index_base::find_name_components_bounds,
4645 mapped_index_base::build_name_components,
4646 dw2_expand_symtabs_matching_symbol): Likewise.
4647 (class mock_mapped_index) <symbol_name_at>: Likewise.
4648 (check_match): Likewise.
4649 (check_find_bounds_finds): Likewise.
4650 (test_mapped_index_find_name_component_bounds): Update.
4651 (CHECK_MATCH): Update.
4652 (dw2_expand_symtabs_matching): Update.
4653 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4654 per_objfile parameter.
4655 <find_vec_in_debug_names>: Likewise.
4656 <m_per_objfile>: New field.
4657 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4658 parameter.
4659 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4660 (dw2_debug_names_iterator::next): Update.
4661 (dw2_debug_names_lookup_symbol): Update.
4662 (dw2_debug_names_expand_symtabs_for_function): Update.
4663 (dw2_debug_names_map_matching_symbols): Update.
4664 (dw2_debug_names_expand_symtabs_matching): Update.
4665 (dwarf2_read_debug_names): Update.
4666
4667 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4670 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4671 move to dwarf2_per_objfile.
4672 <read_in_chain>: Remove.
4673 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4674 remove_all_cus, age_comp_units>: New methods.
4675 <m_dwarf2_cus>: New member.
4676 (struct dwarf2_per_cu_data) <cu>: Remove.
4677 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4678 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4679 moved to methods of dwarf2_per_objfile.
4680 (dwarf2_clear_marks): Remove.
4681 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4682 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4683 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4684 (dwarf2_per_objfile::remove_all_cus): New.
4685 (class free_cached_comp_units) <~free_cached_comp_units>:
4686 Update.
4687 (load_cu): Update.
4688 (dw2_do_instantiate_symtab): Adjust.
4689 (fill_in_sig_entry_from_dwo_entry): Adjust.
4690 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4691 (cutu_reader::cutu_reader): Likewise.
4692 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4693 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4694 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4695 and dwarf2_per_objfile::age_comp_units.
4696 (load_partial_comp_unit): Update.
4697 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4698 (process_queue): Likewise.
4699 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4700 backlink.
4701 (dwarf2_read_addr_index): Likewise.
4702 (follow_die_offset): Likewise.
4703 (dwarf2_fetch_die_loc_sect_off): Likewise.
4704 (dwarf2_fetch_constant_bytes): Likewise.
4705 (dwarf2_fetch_die_type_sect_off): Likewise.
4706 (follow_die_sig_1): Likewise.
4707 (load_full_type_unit): Likewise.
4708 (read_signatured_type): Likewise.
4709 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4710 (dwarf2_cu::~dwarf2_cu): Remove.
4711 (dwarf2_per_objfile::get_cu): New.
4712 (dwarf2_per_objfile::set_cu): New.
4713 (age_cached_comp_units): Rename to...
4714 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4715 to std::unordered_map.
4716 (free_one_cached_comp_unit): Rename to...
4717 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4718 to std::unordered_map.
4719 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4720 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4721 a dwarf2_per_objfile in data.
4722 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4723 (dwarf2_clear_marks): Remove.
4724
4725 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4726
4727 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4728 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4729 (init_tu_and_read_dwo_dies): Likewise.
4730 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4731 (cutu_reader::cutu_reader): Likewise.
4732 (load_partial_comp_unit): Likewise.
4733 (process_psymtab_comp_unit): Update.
4734 (build_type_psymtabs_1): Update.
4735 (process_skeletonless_type_unit): Update.
4736 (load_full_comp_unit): Update.
4737 (find_partial_die): Update.
4738 (dwarf2_read_addr_index): Update.
4739 (read_signatured_type): Update.
4740
4741 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4742
4743 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4744 m_header_read_in>: New fields.
4745 <get_header>: New method.
4746 * dwarf2/read.c (per_cu_header_read_in): Remove.
4747 (dwarf2_per_cu_data::get_header): New.
4748 (dwarf2_per_cu_data::addr_size): Update.
4749 (dwarf2_per_cu_data::offset_size): Update.
4750 (dwarf2_per_cu_data::ref_addr_size): Update.
4751
4752 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4753
4754 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4755 (dw2_do_instantiate_symtab): Update.
4756 (queue_and_load_all_dwo_tus): Change parameter from
4757 dwarf2_per_cu_data to dwarf2_cu.
4758 (dwarf2_fetch_die_loc_sect_off): Update.
4759 (dwarf2_fetch_constant_bytes): Update.
4760 (dwarf2_fetch_die_type_sect_off): Update.
4761
4762 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4763
4764 * dwarf2/read.c (process_full_comp_unit,
4765 process_full_type_unit): Remove per_cu, per_objfile paramters.
4766 Add dwarf2_cu parameter.
4767 (process_queue): Update.
4768
4769 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4770
4771 * dwarf2/read.c (create_cu_from_index_list): Replace
4772 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4773 (create_cus_from_index_list): Likewise.
4774 (create_cus_from_index): Likewise.
4775 (create_signatured_type_table_from_index): Likewise.
4776 (create_cus_from_debug_names_list): Likewise.
4777 (create_cus_from_debug_names): Likewise.
4778 (dwarf2_read_gdb_index): Update.
4779 (dwarf2_read_debug_names): Update.
4780
4781 2020-05-27 Tom Tromey <tom@tromey.com>
4782 Simon Marchi <simon.marchi@efficios.com>
4783
4784 * dwarf2/read.h (struct dwarf2_per_objfile)
4785 <get_type_for_signatured_type, set_type_for_signatured_type>:
4786 New methods.
4787 <m_type_map>: New member.
4788 (struct signatured_type) <type>: Remove.
4789 * dwarf2/read.c
4790 (dwarf2_per_objfile::get_type_for_signatured_type,
4791 dwarf2_per_objfile::set_type_for_signatured_type): New.
4792 (get_signatured_type): Use new methods.
4793
4794 2020-05-27 Tom Tromey <tom@tromey.com>
4795 Simon Marchi <simon.marchi@efficios.com>
4796
4797 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4798 (struct dwarf2_per_objfile) <type_units>: New member.
4799 <get_type_unit_group_unshareable>: New method.
4800 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4801 num_symtabs, symtabs>: Remove; move to
4802 type_unit_group_unshareable.
4803 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4804 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4805 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4806
4807 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4808
4809 * dwarf2/read.h (struct dwarf2_per_cu_data):
4810 <dwarf2_per_objfile>: Remove.
4811 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4812 dwarf2_per_objfile.
4813 (create_signatured_type_table_from_index): Likewise.
4814 (create_signatured_type_table_from_debug_names): Likewise.
4815 (create_debug_type_hash_table): Likewise.
4816 (fill_in_sig_entry_from_dwo_entry): Likewise.
4817 (create_type_unit_group): Likewise.
4818 (read_comp_units_from_section): Likewise.
4819 (create_cus_hash_table): Likewise.
4820
4821 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4822
4823 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4824 dwarf2_per_cu_data::dwarf2_per_objfile.
4825 (compute_compunit_symtab_includes): Likewise.
4826 (dwarf2_cu::start_symtab): Likewise.
4827
4828 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4829
4830 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4831 parameter.
4832 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4833 (read_namespace_alias): Update.
4834 (lookup_die_type): Update.
4835 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4836 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4837 Update.
4838 (disassemble_dwarf_expression): Update.
4839
4840 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4841
4842 * dwarf2/read.h (struct dwarf2_queue_item): Add
4843 dwarf2_per_objfile parameter, assign new parameter.
4844 <per_objfile>: New field.
4845 * dwarf2/read.c (free_one_cached_comp_unit): Add
4846 dwarf2_per_objfile parameter.
4847 (queue_comp_unit): Likewise.
4848 (dw2_do_instantiate_symtab): Update.
4849 (process_psymtab_comp_unit): Update.
4850 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4851 (process_imported_unit_die): Update.
4852 (queue_and_load_dwo_tu): Update.
4853 (follow_die_offset): Update.
4854 (follow_die_sig_1): Update.
4855
4856 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4857
4858 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4859 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4860 (read_call_site_scope): Assign per_objfile.
4861 (dwarf2_per_cu_data::objfile): Remove.
4862 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4863 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4864 dwarf2_per_objfile parameter.
4865 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4866 dwarf2_per_objfile parameter.
4867 (dwarf_expr_reg_to_entry_parameter): Add output
4868 dwarf2_per_objfile parameter.
4869 (locexpr_get_frame_base): Update.
4870 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4871 <push_dwarf_reg_entry_value>: Update.
4872 <call_site_to_target_addr>: Update.
4873 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4874 parameter.
4875 (value_of_dwarf_reg_entry): Update.
4876 (rw_pieced_value): Update.
4877 (indirect_synthetic_pointer): Update.
4878 (dwarf2_evaluate_property): Update.
4879 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4880 parameter.
4881 (locexpr_read_variable): Update.
4882 (locexpr_get_symbol_read_needs): Update.
4883 (loclist_read_variable): Update.
4884
4885 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4886
4887 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4888 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4889 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4890 parameter.
4891 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4892 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4893 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4894 parameter.
4895 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4896 sect_variable_value): Add dwarf2_per_objfile parameter.
4897 (class dwarf_evaluate_loc_desc) <dwarf_call,
4898 dwarf_variable_value>: Update.
4899 (fetch_const_value_from_synthetic_pointer): Add
4900 dwarf2_per_objfile parameter.
4901 (fetch_const_value_from_synthetic_pointer): Update.
4902 (coerced_pieced_ref): Update.
4903 (class symbol_needs_eval_context) <dwarf_call,
4904 dwarf_variable_value>: Update.
4905 (dwarf2_compile_expr_to_ax): Update.
4906
4907 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4908
4909 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4910 parameter.
4911 (dwarf2_evaluate_loc_desc_full): Update.
4912
4913 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4914
4915 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4916 parameter.
4917 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4918 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4919 dwarf2_per_objfile parameter.
4920 (decode_debug_loc_dwo_addresses): Likewise.
4921 (dwarf2_find_location_expression): Update.
4922 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4923 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4924 parameter.
4925 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4926 parameter.
4927 (locexpr_describe_location_1): Likewise.
4928 (locexpr_describe_location): Update.
4929
4930 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4931
4932 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4933 Remove.
4934 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4935 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4936 (dwarf2_compile_property_to_c): Update.
4937 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4938 use text offset from objfile.
4939 (locexpr_tracepoint_var_ref): Update.
4940 (locexpr_generate_c_location): Update.
4941 (loclist_describe_location): Update.
4942 (loclist_tracepoint_var_ref): Update.
4943 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4944 dwarf2_per_objfile parameter.
4945 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4946 use text offset from objfile.
4947 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4948
4949 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4950
4951 * dwarf2/expr.h (struct dwarf_expr_context)
4952 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4953 <offset>: Remove.
4954 <per_objfile>: New member.
4955 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4956 dwarf2_per_objfile parameter. Don't set offset, set
4957 per_objfile.
4958 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4959 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4960 a dwarf2_per_objfile object instead of an offset.
4961 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4962 constructor.
4963 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4964 to dwarf2_expr_executor constructor. Don't set offset.
4965 (dwarf2_fetch_cfa_info): Update.
4966 (struct dwarf2_frame_cache) <text_offset>: Remove.
4967 <per_objfile>: New field.
4968 (dwarf2_frame_cache): Update.
4969 (dwarf2_frame_prev_register): Update.
4970 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4971 <dwarf_evaluate_loc_desc>: Add constructor.
4972 (dwarf2_evaluate_loc_desc_full): Update.
4973 (dwarf2_locexpr_baton_eval): Update.
4974 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4975 Add constructor.
4976 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4977
4978 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4979
4980 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4981 addr_sized_int_type>: Move to dwarf2_cu.
4982 <int_type>: Move to dwarf2_per_objfile.
4983 (struct dwarf2_per_objfile) <int_type>: Move here.
4984 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4985 addr_sized_int_type>: Move here.
4986 (read_func_scope): Update.
4987 (read_array_type): Update.
4988 (read_tag_string_type): Update.
4989 (attr_to_dynamic_prop): Update.
4990 (dwarf2_per_cu_data::int_type): Rename to...
4991 (dwarf2_per_objfile::int_type): ... this.
4992 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4993 (dwarf2_cu::addr_sized_int_type): ... this.
4994 (read_subrange_type): Update.
4995 (dwarf2_per_cu_data::addr_type): Rename to...
4996 (dwarf2_cu::addr_type): ... this.
4997 (set_die_type): Update.
4998
4999 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5000
5001 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5002 data through per_cu->cu.
5003
5004 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5005
5006 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5007 dwarf2_per_cu_data parameter fo dwarf2_cu.
5008 (lookup_dwo_type_unit): Likewise.
5009 (read_cutu_die_from_dwo): Likewise.
5010 (lookup_dwo_unit): Likewise.
5011 (open_and_init_dwo_file): Likewise.
5012 (lookup_dwo_cutu): Likewise.
5013 (lookup_dwo_comp_unit): Likewise.
5014 (lookup_dwo_type_unit): Likewise.
5015 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5016 (cutu_reader::cutu_reader): Update.
5017
5018 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5019
5020 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5021 parameter.
5022 (process_full_type_unit): Likewise.
5023 (process_queue): Update.
5024
5025 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5026
5027 * dwarf2/read.c (recursively_compute_inclusions): Add
5028 dwarf2_per_objfile parameter.
5029 (compute_compunit_symtab_includes): Likewise.
5030 (process_cu_includes): Update.
5031
5032 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5033
5034 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5035 parameter.
5036 (create_type_unit_group): Update.
5037 (process_psymtab_comp_unit_reader): Update.
5038 (build_type_psymtabs_reader): Update.
5039
5040 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5041
5042 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5043 object through m_this_cu->cu.
5044
5045 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5046
5047 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5048 the info parameter.
5049 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5050
5051 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5052
5053 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5054 per_objfile parameter.
5055 (load_full_type_unit): Add per_objfile parameter.
5056 (read_signatured_type): Likewise.
5057 (load_full_comp_unit): Likewise.
5058 (load_cu): Likewise.
5059 (dw2_do_instantiate_symtab): Likewise.
5060 (dw2_get_file_names): Likewise.
5061 (dw2_map_symtabs_matching_filename): Update.
5062 (dw_expand_symtabs_matching_file_matcher): Update.
5063 (dw2_map_symbol_filenames): Update.
5064 (process_psymtab_comp_unit): Add per_objfile parameter.
5065 (build_type_psymtabs_1): Update.
5066 (process_skeletonless_type_unit): Update.
5067 (dwarf2_build_psymtabs_hard): Update.
5068 (load_partial_comp_unit): Add per_objfile parameter.
5069 (scan_partial_symbols): Update.
5070 (load_full_comp_unit): Add per_objfile parameter.
5071 (process_imported_unit_die): Update.
5072 (create_cus_hash_table): Update.
5073 (find_partial_die): Update.
5074 (dwarf2_read_addr_index): Update.
5075 (follow_die_offset): Update.
5076 (dwarf2_fetch_die_loc_sect_off): Update.
5077 (dwarf2_fetch_constant_bytes): Update.
5078 (dwarf2_fetch_die_type_sect_off): Update.
5079 (follow_die_sig_1): Update.
5080 (load_full_type_unit): Add per_objfile parameter.
5081 (read_signatured_type): Likewise.
5082
5083 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5084
5085 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5086 of objfile_name.
5087
5088 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5089
5090 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5091 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5092 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5093 field.
5094 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5095 (create_cus_from_index): Update.
5096 (dwarf2_read_gdb_index): Update.
5097 (create_cus_from_debug_names): Update.
5098 (dwarf2_read_debug_names): Update.
5099 (get_abbrev_section_for_cu): Update.
5100 (create_all_comp_units): Update.
5101 (read_attribute_value): Update.
5102 (get_debug_line_section): Update.
5103 * dwarf2/index-cache.c (index_cache::store): Update.
5104 * dwarf2/index-write.c (save_gdb_index_command): Update.
5105 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5106
5107 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5108
5109 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5110 member.
5111 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5112 dwarf2_per_cu_data::per_bfd.
5113 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5114 (create_type_unit_group): Likewise.
5115 (queue_comp_unit): Remove reference to
5116 per_cu->dwarf2_per_objfile.
5117 (maybe_queue_comp_unit): Likewise.
5118 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5119 (create_cus_hash_table): Assign new field.
5120
5121 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5122
5123 * dwarf2/read.c: Replace
5124 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5125 dwarf2_cu->per_objfile throughout.
5126
5127 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5128
5129 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5130 parameter, don't use per_cu->dwarf2_per_objfile.
5131 (dw2_instantiate_symtab): Likewise.
5132 (dw2_find_last_source_symtab): Update.
5133 (dw2_map_expand_apply): Update.
5134 (dw2_lookup_symbol): Update.
5135 (dw2_expand_symtabs_for_function): Update.
5136 (dw2_expand_all_symtabs): Update.
5137 (dw2_expand_symtabs_with_fullname): Update.
5138 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5139 don't use per_cu->dwarf2_per_objfile.
5140 (dw2_expand_marked_cus): Update.
5141 (dw2_find_pc_sect_compunit_symtab): Update.
5142 (dw2_debug_names_lookup_symbol): Update.
5143 (dw2_debug_names_expand_symtabs_for_function): Update.
5144 (dw2_debug_names_map_matching_symbols): Update.
5145 (dwarf2_psymtab::expand_psymtab): Update.
5146
5147 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5148
5149 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5150 <per_objfile>: New member.
5151 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5152 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5153 call to dwarf2_cu.
5154 (cutu_reader::cutu_reader): Update.
5155 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5156
5157 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5158
5159 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5160 struct dwarf2_per_objfile.
5161 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5162 dwarf2_per_bfd.
5163 * dwarf2/read.c (set_die_type): Update.
5164 (get_die_type_at_offset): Update.
5165
5166 2020-05-27 Tom Tromey <tom@tromey.com>
5167 Simon Marchi <simon.marchi@efficios.com>
5168
5169 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5170 method.
5171 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5172 get_symtab, set_symtab>: New methods.
5173 <m_symtabs>: New field.
5174 (struct dwarf2_psymtab): Derive from partial_symtab.
5175 <readin_p, get_compunit_symtab>: Declare methods.
5176 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5177 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5178 New methods.
5179 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5180 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5181 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5182 (dw2_symtab_iter_next, dw2_print_stats)
5183 (dw2_expand_symtabs_with_fullname)
5184 (dw2_expand_symtabs_matching_one)
5185 (dw_expand_symtabs_matching_file_matcher)
5186 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5187 (dw2_debug_names_iterator::next)
5188 (dw2_debug_names_map_matching_symbols)
5189 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5190 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5191 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5192 New methods.
5193 (get_compunit_symtab, process_full_comp_unit)
5194 (process_full_type_unit): Update.
5195 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5196
5197 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5198
5199 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5200 then introduce a new dwarf2_per_objfile type.
5201 <read_line_string>: Move to the new dwarf2_per_objfile type.
5202 <objfile>: Likewise.
5203 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5204 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5205 dwarf2_per_objfile->per_bfd.
5206 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5207 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5208 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5209 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5210 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5211 (dwarf2_per_objfile::locate_sections): Rename to...
5212 (dwarf2_per_bfd::locate_sections): ... this.
5213 (dwarf2_per_objfile::get_cutu): Rename to...
5214 (dwarf2_per_bfd::get_cutu): ... this.
5215 (dwarf2_per_objfile::get_cu): Rename to...
5216 (dwarf2_per_bfd::get_cu): ... this.
5217 (dwarf2_per_objfile::get_tu): Rename to...
5218 (dwarf2_per_bfd::get_tu): ... this.
5219 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5220 (dwarf2_per_bfd::allocate_per_cu): ... this.
5221 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5222 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5223 (get_gdb_index_contents_ftype): Change parameter from
5224 dwarf2_per_objfile to dwarf2_per_bfd.
5225 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5226 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5227
5228 2020-05-27 Tom Tromey <tom@tromey.com>
5229 Simon Marchi <simon.marchi@efficios.com>
5230
5231 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5232 (allocate_piece_closure): Set "per_objfile" member.
5233 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5234 (locexpr_describe_location, loclist_describe_location): Use new
5235 member.
5236 * dwarf2/read.c (read_call_site_scope)
5237 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5238 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5239 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5240 handle_data_member_location): Set per_objfile member.
5241 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5242 member.
5243 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5244
5245 2020-05-27 Tom Tromey <tom@tromey.com>
5246
5247 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5248 allocate_signatured_type>: Declare new methods.
5249 <m_num_psymtabs>: New member.
5250 (struct dwarf2_per_cu_data) <index>: New member.
5251 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5252 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5253 (create_cu_from_index_list): Use allocate_per_cu.
5254 (create_signatured_type_table_from_index)
5255 (create_signatured_type_table_from_debug_names)
5256 (create_debug_type_hash_table, add_type_unit)
5257 (read_comp_units_from_section): Use allocate_signatured_type.
5258
5259 2020-05-27 Tom Tromey <tom@tromey.com>
5260
5261 * psymtab.c (partial_map_expand_apply)
5262 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5263 (psym_lookup_global_symbol_language)
5264 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5265 (psym_print_stats, psym_expand_symtabs_for_function)
5266 (psym_map_symbol_filenames, psym_map_matching_symbols)
5267 (psym_expand_symtabs_matching)
5268 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5269 (maintenance_check_psymtabs): Update.
5270 * psympriv.h (struct partial_symtab) <readin_p,
5271 get_compunit_symtab>: Add objfile parameter.
5272 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5273 Likewise.
5274 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5275 get_compunit_symtab>: Likewise.
5276 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5277
5278 2020-05-27 Tom Tromey <tom@tromey.com>
5279
5280 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5281 member.
5282 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5283 (create_cu_from_index_list)
5284 (create_signatured_type_table_from_index)
5285 (create_signatured_type_table_from_debug_names)
5286 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5287 (dwarf2_create_include_psymtab)
5288 (create_debug_type_hash_table, add_type_unit)
5289 (create_type_unit_group, read_comp_units_from_section)
5290 (dwarf2_compute_name, create_cus_hash_table)
5291 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5292 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5293 obstack.
5294 (dw2_get_real_path): Likewise. Change argument to
5295 dwarf2_per_objfile.
5296
5297 2020-05-27 Luis Machado <luis.machado@linaro.org>
5298
5299 PR tdep/26000
5300 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5301 for ldrd (immediate).
5302
5303 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5304
5305 * command.h: Add comment giving the name of class_tui.
5306 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5307 create the fake command for the help for class_tui.
5308
5309 2020-05-26 Tom Tromey <tromey@adacore.com>
5310
5311 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5312 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5313 (val_atr): New function.
5314 (value_val_atr): Use it.
5315 * ada-valprint.c (print_optional_low_bound): Change low bound
5316 handling for enums.
5317 (val_print_packed_array_elements): Don't call discrete_position.
5318 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5319 discrete_position for enum types.
5320 * language.c (default_print_array_index): Change type.
5321 * language.h (struct language_defn) <la_print_array_index>: Add
5322 index_type parameter, change type of index_value.
5323 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5324 (default_print_array_index): Update.
5325 * valprint.c (maybe_print_array_index): Don't call
5326 value_from_longest. Update.
5327 (value_print_array_elements): Don't call discrete_position.
5328
5329 2020-05-26 Tom Tromey <tromey@adacore.com>
5330
5331 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5332 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5333
5334 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5335
5336 PR gdb/13519
5337 * avr-tdep.c (avr_integer_to_address): Return data or code
5338 address accordingly to the second 'type' argument of the
5339 function.
5340
5341 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5342
5343 * infcmd.c, inferior.h: (construct_inferior_arguments):
5344 Moved function from here to gdbsupport/common-inferior.{h,cc}
5345
5346 2020-05-23 Tom Tromey <tom@tromey.com>
5347
5348 Revert commit eca1f90c:
5349 * NEWS: Remove entry for completion styling.
5350 * completer.c (_rl_completion_prefix_display_length): Move
5351 declaration later.
5352 (gdb_fnprint): Revert.
5353 (gdb_display_match_list_1): Likewise.
5354 * cli/cli-style.c (completion_prefix_style)
5355 (completion_difference_style, completion_suffix_style): Remove.
5356 (_initialize_cli_style): Revert.
5357 * cli/cli-style.h (completion_prefix_style)
5358 (completion_difference_style, completion_suffix_style): Don't
5359 declare.
5360
5361 2020-05-24 Pedro Alves <palves@redhat.com>
5362
5363 * symtab.c (completion_list_add_name): Return boolean indication
5364 of whether the symbol matched.
5365 (completion_list_add_symbol): Don't try to remove C++ aliases if
5366 the symbol didn't match in the first place.
5367 * symtab.h (completion_list_add_name): Return bool.
5368
5369 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5370
5371 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5372 type::field.
5373
5374 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5375
5376 GDB 9.2 released.
5377
5378 2020-05-23 Tom Tromey <tom@tromey.com>
5379
5380 * NEWS: Add entry for completion styling.
5381 * completer.c (_rl_completion_prefix_display_length): Move
5382 declaration earlier.
5383 (gdb_fnprint): Use completion_style.
5384 (gdb_display_match_list_1): Likewise.
5385 * cli/cli-style.c (completion_prefix_style)
5386 (completion_difference_style, completion_suffix_style): New
5387 globals.
5388 (_initialize_cli_style): Register new globals.
5389 * cli/cli-style.h (completion_prefix_style)
5390 (completion_difference_style, completion_suffix_style): Declare.
5391
5392 2020-05-23 Pedro Alves <palves@redhat.com>
5393
5394 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5395 (parse_escape): Use ISDIGIT instead of isdigit.
5396 (puts_debug): Use gdb_isprint instead of isprint.
5397 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5398 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5399 ISSPACE instead of isspace.
5400 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5401 instead of isspace.
5402 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5403 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5404 instead of isxdigit and ISDIGIT instead of isdigit.
5405
5406 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5407
5408 * gdbtypes.h (struct type) <field>: New method.
5409 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5410 or type::field.
5411
5412 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5413
5414 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5415 (TYPE_FIELDS): Use type::fields. Change all call sites that
5416 modify the propery to use type::set_fields instead.
5417
5418 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5419
5420 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5421 type::num_fields instead.
5422
5423 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5424
5425 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5426 methods.
5427 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5428 that modify the number of fields to use type::set_num_fields
5429 instead.
5430
5431 2020-05-22 Tom Tromey <tromey@adacore.com>
5432
5433 * compile/compile-object-load.h (munmap_list_free): Don't
5434 declare.
5435
5436 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5437
5438 * annotate.c (annotate_source_line): Update return type, add call
5439 to update current symtab and line.
5440 * annotate.h (annotate_source_line): Update return type, and
5441 extend header comment.
5442 * source.c (info_line_command): Check annotation_level before
5443 calling annotate_source_line.
5444 * stack.c (print_frame_info): If calling annotate_source_line
5445 returns true, then don't print any other source line information.
5446
5447 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5448
5449 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5450
5451 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5452
5453 * coffread.c (patch_type): Remove NULL check before xfree.
5454 * corefile.c (set_gnutarget): Likewise.
5455 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5456 * exec.c (build_section_table): Likewise.
5457 * remote.c (remote_target::pass_signals): Likewise.
5458 * utils.c (n_spaces): Likewise.
5459 * cli/cli-script.c (document_command): Likewise.
5460 * i386-windows-tdep.c (core_process_module_section): Likewise.
5461 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5462
5463 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5464
5465 * symfile.c (reread_symbols): Clear objfile's section_offsets
5466 vector and section indices, re-compute them by calling
5467 sym_offsets.
5468
5469 2020-05-20 Tom Tromey <tromey@adacore.com>
5470
5471 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5472 (desc_one_bound, desc_index_type): Compute field name.
5473
5474 2020-05-20 Tom de Vries <tdevries@suse.de>
5475
5476 PR symtab/25833
5477 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5478
5479 2020-05-20 Alan Modra <amodra@gmail.com>
5480
5481 PR 25993
5482 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5483 bfd_set_filename.
5484 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5485 passed to bfd_set_filename.
5486 * symfile-mem.c (add_vsyscall_page): Likewise for string
5487 passed to symbol_file_add_from_memory.
5488 (symbol_file_add_from_memory): Make name param a const char* and
5489 don't strdup.
5490
5491 2020-05-20 Alan Modra <amodra@gmail.com>
5492
5493 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5494 rather than accessing bfd->filename directly.
5495 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5496 and use bfd_section_name.
5497 * dwarf2/frame.c (decode_frame_entry): Likewise.
5498 * exec.c (exec_set_section_address): Likewise.
5499 * solib-aix.c (solib_aix_bfd_open): Likewise.
5500 * stap-probe.c (get_stap_base_address): Likewise.
5501 * symfile.c (reread_symbols): Likewise.
5502
5503 2020-05-19 Tom Tromey <tromey@adacore.com>
5504
5505 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5506
5507 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5508
5509 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5510
5511 2020-05-19 Pedro Alves <palves@redhat.com>
5512
5513 * NEWS (set exec-file-mismatch): Adjust entry.
5514 * exec.c: Include "build-id.h".
5515 (validate_exec_file): Try to match build IDs instead of filenames.
5516 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5517 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5518 and pass down 'warn_if_slow'.
5519 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5520 gdb_bfd_open_closure to pass it down.
5521 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5522
5523 2020-05-19 Pedro Alves <palves@redhat.com>
5524
5525 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5526 * target.c (target_fileio_open_1): Rename to target_fileio_open
5527 and make extern. Use bool.
5528 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5529 (target_fileio_read_alloc_1): Adjust.
5530 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5531 (target_fileio_open_warn_if_slow): Delete declaration.
5532
5533 2020-05-19 Pedro Alves <palves@redhat.com>
5534
5535 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5536 Adjust all callers.
5537
5538 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5539
5540 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5541 whether disp is negative.
5542
5543 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5544
5545 * symfile.h (struct symfile_segment_data)
5546 <~symfile_segment_data>: Remove.
5547 <segment_info>: Change to std::vector.
5548 * symfile.c (default_symfile_segments): Update.
5549 * elfread.c (elf_symfile_segments): Update.
5550
5551 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5552
5553 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5554 <segments>: New.
5555 <segment_bases, segment_sizes>: Remove.
5556 * symfile.c (default_symfile_segments): Update.
5557 * elfread.c (elf_symfile_segments): Update.
5558 * remote.c (remote_target::get_offsets): Update.
5559 * solib-target.c (solib_target_relocate_section_addresses):
5560 Update.
5561
5562 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5563
5564 * symfile.h (struct symfile_segment_data): Initialize fields.
5565 <~symfile_segment_data>: Add.
5566 (symfile_segment_data_up): New.
5567 (struct sym_fns) <sym_segments>: Return a
5568 symfile_segment_data_up.
5569 (default_symfile_segments): Return a symfile_segment_data_up.
5570 (free_symfile_segment_data): Remove.
5571 (get_symfile_segment_data): Return a symfile_segment_data_up.
5572 * symfile.c (default_symfile_segments): Likewise.
5573 (get_symfile_segment_data): Likewise.
5574 (free_symfile_segment_data): Remove.
5575 (symfile_find_segment_sections): Update.
5576 * elfread.c (elf_symfile_segments): Return a
5577 symfile_segment_data_up.
5578 * remote.c (remote_target::get_offsets): Update.
5579 * solib-target.c (solib_target_relocate_section_addresses):
5580 Update.
5581 * symfile-debug.c (debug_sym_segments): Return a
5582 symfile_segment_data_up.
5583
5584 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5585
5586 PR build/25981
5587 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5588 Hardcode register numbers.
5589
5590 PR build/25981
5591 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5592 procfs_find_LDT_entry): Remove.
5593 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5594 procfs_find_LDT_entry): Remove.
5595 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5596 Remove.
5597
5598 2020-05-17 Pedro Alves <palves@redhat.com>
5599 Andrew Burgess <andrew.burgess@embecosm.com>
5600 Keno Fischer <keno@juliacomputing.com>
5601
5602 PR gdb/25741
5603 * breakpoint.c (build_target_condition_list): Update comments.
5604 (build_target_command_list): Update comments and skip matching
5605 locations.
5606 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5607 a separate function. Simplify "set breakpoint auto-hw off"
5608 handling.
5609 (insert_breakpoints): Update comment.
5610 (tracepoint_locations_match): New parameter. For breakpoints,
5611 compare location types too, if the caller wants to.
5612 (handle_automatic_hardware_breakpoints): New functions.
5613 (bp_location_is_less_than): Also sort by location type and
5614 hardware breakpoint length.
5615 (update_global_location_list): Handle "set breakpoint auto-hw on"
5616 here.
5617 (update_breakpoint_locations): Ask breakpoint_locations_match to
5618 ignore location types.
5619
5620 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5621
5622 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5623 type::name instead.
5624
5625 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5626
5627 * gdbtypes.h (struct type) <name, set_name>: New methods.
5628 (TYPE_CODE): Use type::name. Change all call sites used to set
5629 the name to use type::set_name instead.
5630
5631 2020-05-16 Tom Tromey <tom@tromey.com>
5632
5633 * top.c (quit_force): Update.
5634 * infrun.c (handle_no_resumed): Update.
5635 * top.h (all_uis): New function.
5636 (ALL_UIS): Remove.
5637
5638 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5639
5640 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5641
5642 2020-05-16 Pedro Alves <palves@redhat.com>
5643
5644 * ia64-linux-nat.c
5645 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5646 Declare method.
5647 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5648
5649 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5650
5651 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5652 (sparc64_adi_info): Likewise.
5653
5654 2020-05-15 Tom Tromey <tom@tromey.com>
5655
5656 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5657 block_objfile.
5658 (lookup_objfile_from_block): Remove.
5659 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5660 (lookup_global_symbol): Use block_objfile.
5661 * symtab.h (lookup_objfile_from_block): Don't declare.
5662 * printcmd.c (clear_dangling_display_expressions): Use
5663 block_objfile.
5664 * parse.c (operator_check_standard): Use block_objfile.
5665
5666 2020-05-15 Tom Tromey <tom@tromey.com>
5667
5668 * language.c (language_alloc_type_symbol): Set
5669 SYMBOL_SECTION.
5670 * symtab.c (initialize_objfile_symbol): Remove.
5671 (allocate_symbol): Remove.
5672 (allocate_template_symbol): Remove.
5673 * dwarf2/read.c (fixup_go_packaging): Use "new".
5674 (new_symbol): Use "new".
5675 (read_variable): Don't call initialize_objfile_symbol. Use
5676 "new".
5677 (read_func_scope): Use "new".
5678 * xcoffread.c (process_xcoff_symbol): Don't call
5679 initialize_objfile_symbol.
5680 (SYMBOL_DUP): Remove.
5681 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5682 "new".
5683 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5684 (allocate_template_symbol): Don't declare.
5685 (struct symbol): Add copy constructor. Change defaults.
5686 * jit.c (finalize_symtab): Use "new".
5687 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5688 Use "new".
5689 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5690 (common_block_end): Use "new".
5691 * mdebugread.c (parse_symbol): Use "new".
5692 (new_symbol): Likewise.
5693
5694 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5695
5696 * NEWS: Mention changes to help and apropos.
5697
5698 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5699
5700 * command.h (enum command_class): Improve comments, document
5701 that class_alias is for user-defined aliases, give the class
5702 name for each class, remove unused class_xdb.
5703 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5704 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5705 by a precise class.
5706 * infcmd.c (_initialize_infcmd): Likewise.
5707 * reverse.c (_initialize_reverse): Likewise.
5708 * stack.c (_initialize_stack): Likewise.
5709 * symfile.c (_initialize_symfile): Likewise.
5710 * tracepoint.c (_initialize_tracepoint): Likewise.
5711
5712 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5713
5714 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5715 when their aliased command is traversed.
5716 (help_cmd): Add fput_command_names_styled call to
5717 output command name and aliases when command has an alias.
5718
5719 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5720
5721 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5722 * cli/cli-decode.c (help_cmd_list): Declare as static,
5723 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5724 a command together with the command.
5725 (fput_command_name_styled, fput_command_names_styled): New functions.
5726 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5727 fput_command_name_styled.
5728 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5729 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5730
5731 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5732
5733 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5734 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5735 * command.h (cmd_show_list): Likewise.
5736 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5737 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5738
5739 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5740
5741 * unittests/command-def-selftests.c (traverse_command_structure):
5742 Verify all commands of a list have the same prefix command and
5743 that only the top cmdlist commands have a null prefix.
5744
5745 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5746
5747 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5748 as prefix, not one of its aliases.
5749 (set_cmd_prefix): Remove.
5750 (do_add_cmd): Centralize the setting of the prefix of a command, when
5751 command is defined after its full chain of prefix commands.
5752 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5753 (add_setshow_cmd_full): Likewise.
5754 (update_prefix_field_of_prefixed_commands): New function.
5755 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5756 update_prefix_field_of_prefixed_commands.
5757 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5758 addresses of remote_set_cmdlist and remote_show_cmdlist given
5759 as argument, not the address of an argument.
5760 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5761 * gdb/remote.c (_initialize_remote): Likewise.
5762
5763 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5764
5765 * cli/cli-cmds.c (alias_command): Check for an existing alias
5766 using lookup_cmd_composition, as valid_command_p is too strict
5767 and forbids aliases that are the prefix of an existing alias
5768 or command.
5769 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5770 command is properly recognised as a valid command.
5771
5772 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5773
5774 * unittests/help-doc-selftests.c: Rename to
5775 unittests/command-def-selftests.c
5776 * unittests/command-def-selftests.c (help_doc_tests): Update some
5777 comments.
5778 (command_structure_tests, traverse_command_structure): New namespace
5779 and function.
5780 (command_structure_invariants_tests): New function.
5781 (_initialize_command_def_selftests) Renamed from
5782 _initialize_help_doc_selftests, register command_structure_invariants
5783 selftest.
5784
5785 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5786
5787 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5788 an alias of 'show'.
5789
5790 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5791
5792 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5793 ada_is_fixed_point_type. Update all callers.
5794 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5795 all callers.
5796 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5797 Update all callers.
5798 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5799 print_fixed_point_type. Update all callers.
5800 * ada-valprint.c (ada_value_print_num): Replace call to
5801 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5802
5803 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5804
5805 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5806 processors.
5807 (cpu_supports_bts): Add CV_AMD case.
5808
5809 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5810 Simon Marchi <simon.marchi@efficios.com>
5811
5812 * infrun.c (stop_all_threads): Collect multiple wait events at
5813 each pass.
5814
5815 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5816
5817 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5818 type::code instead.
5819
5820 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5821
5822 * gdbtypes.h (struct type) <code, set_code>: New methods.
5823 (TYPE_CODE): Use type::code. Change all call sites used to set
5824 the code to use type::set_code instead.
5825
5826 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5827 Tom de Vries <tdevries@suse.de>
5828 Pedro Alves <palves@redhat.com>
5829
5830 PR threads/25478
5831 * infrun.c (stop_all_threads): Do NOT ignore
5832 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5833 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5834 received.
5835 (handle_no_resumed): Remove code handling a live inferior with no
5836 threads.
5837 * remote.c (has_single_non_exited_thread): New.
5838 (remote_target::update_thread_list): Do not delete a thread if is
5839 the last thread of the process.
5840 * thread.c (thread_select): Call delete_exited_threads instead of
5841 prune_threads.
5842
5843 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5844
5845 * infrun.c (stop_all_threads): Enable/disable thread events of all
5846 targets. Move a debug message denoting the end of the function
5847 into the SCOPED_EXIT block.
5848
5849 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5850
5851 * process-stratum-target.h: Include <set>.
5852 (all_non_exited_process_targets, switch_to_target_no_thread): New
5853 function declarations.
5854 * process-stratum-target.c (all_non_exited_process_targets)
5855 (switch_to_target_no_thread): New function implementations.
5856
5857 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5858
5859 * infrun.c (handle_inferior_event): Extract out a piece of code
5860 into...
5861 (mark_non_executing_threads): ...this new function.
5862
5863 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5864
5865 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5866 use.
5867
5868 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5869
5870 * regcache.c (regcache_read_pc_protected): New function
5871 implementation that returns 0 if the PC cannot read via
5872 'regcache_read_pc'.
5873 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5874 instead of 'regcache_read_pc'.
5875 (keep_going_pass_signal): Ditto.
5876
5877 2020-05-13 Tom Tromey <tromey@adacore.com>
5878
5879 * ada-lang.c (align_value): Remove.
5880 (ada_template_to_fixed_record_type_1): Use align_up.
5881
5882 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5883
5884 * async-event.c: Update the copyright year.
5885 * async-event.h: Update the copyright year.
5886
5887 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5888
5889 * objfiles.h (is_addr_in_objfile,
5890 shared_objfile_contains_address_p): Return bool.
5891 * objfile.c (is_addr_in_objfile,
5892 shared_objfile_contains_address_p): Return bool.
5893
5894 2020-05-11 Tom Tromey <tromey@adacore.com>
5895
5896 * cli/cli-cmds.c (info_command): Restore.
5897 (_initialize_cli_cmds): Use add_prefix_command for "info".
5898 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5899
5900 2020-05-11 Tom Tromey <tromey@adacore.com>
5901
5902 * ada-lang.c (ada_value_primitive_field): Now public.
5903 * ada-lang.h (ada_value_primitive_field): Declare.
5904 * ada-valprint.c (print_field_values): Use
5905 ada_value_primitive_field for wrapper fields.
5906
5907 2020-05-11 Tom de Vries <tdevries@suse.de>
5908
5909 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5910 MODULE_DOMAIN.
5911
5912 2020-05-11 Tom de Vries <tdevries@suse.de>
5913
5914 PR symtab/25941
5915 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5916 with length 0, if not gdb-produced.
5917 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5918
5919 2020-05-09 Tom de Vries <tdevries@suse.de>
5920
5921 PR gdb/25955
5922 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5923 calculation.
5924
5925 2020-05-09 Tom Tromey <tom@tromey.com>
5926
5927 * top.c (server_command): Now bool.
5928 * top.h (server_command): Now bool.
5929
5930 2020-05-08 Tom Tromey <tromey@adacore.com>
5931
5932 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5933 already being processed.
5934
5935 2020-05-08 Tom Tromey <tom@tromey.com>
5936
5937 * printcmd.c (struct display) <next>: Remove.
5938 <display>: New constructor.
5939 <exp_string>: Now a std::string.
5940 <enabled_p>: Now a bool.
5941 (display_number): Move definition earlier.
5942 (displays): Rename from display_chain. Now a std::vector.
5943 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5944 (display_command): Update.
5945 (do_one_display, disable_display)
5946 (enable_disable_display_command, do_enable_disable_display):
5947 Update.
5948 (free_display): Remove.
5949 (clear_displays): Rewrite.
5950 (delete_display): Update.
5951 (map_display_numbers): Use function_view. Remove "data"
5952 parameter. Update.
5953 (do_delete_display): Remove.
5954 (undisplay_command): Update.
5955 (do_one_display, do_displays, disable_display)
5956 (info_display_command): Update.
5957 (do_enable_disable_display): Remove.
5958 (enable_disable_display_command)
5959 (clear_dangling_display_expressions): Update.
5960
5961 2020-05-08 Tom Tromey <tom@tromey.com>
5962
5963 * symtab.c (set_symbol_cache_size)
5964 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5965 (maintenance_print_symbol_cache_statistics): Update.
5966 * symmisc.c (print_symbol_bcache_statistics)
5967 (print_objfile_statistics, maintenance_print_objfiles)
5968 (maintenance_info_symtabs, maintenance_check_symtabs)
5969 (maintenance_expand_symtabs, maintenance_info_line_tables):
5970 Update.
5971 * symfile-debug.c (set_debug_symfile): Update.
5972 * source.c (forget_cached_source_info): Update.
5973 * python/python.c (gdbpy_progspaces): Update.
5974 * psymtab.c (maintenance_info_psymtabs): Update.
5975 * probe.c (parse_probes): Update.
5976 * linespec.c (iterate_over_all_matching_symtabs)
5977 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5978 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5979 * exec.c (exec_target::close): Update.
5980 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5981 * breakpoint.c (print_one_breakpoint_location)
5982 (create_longjmp_master_breakpoint)
5983 (create_std_terminate_master_breakpoint): Update.
5984 * progspace.c (program_spaces): Now a std::vector.
5985 (maybe_new_address_space): Update.
5986 (add_program_space): Remove.
5987 (program_space::program_space): Update.
5988 (remove_program_space): Update.
5989 (number_of_program_spaces): Remove.
5990 (print_program_space, update_address_spaces): Update.
5991 * progspace.h (program_spaces): Change type.
5992 (ALL_PSPACES): Remove.
5993 (number_of_program_spaces): Don't declare.
5994 (struct program_space) <next>: Remove.
5995
5996 2020-05-08 Tom Tromey <tom@tromey.com>
5997
5998 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5999 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6000 (enable_break): Update.
6001 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6002 (frv_fdpic_find_canonical_descriptor): Update.
6003 (frv_fetch_objfile_link_map): Update.
6004 * progspace.c (program_space::free_all_objfiles): Update.
6005 (program_space::solibs): New method.
6006 * progspace.h (struct program_space) <solibs>: New method.
6007 * solist.h (master_so_list): Don't declare.
6008 (ALL_SO_LIBS): Remove.
6009 * solib.h (so_list_head): Remove.
6010 (update_solib_list): Update comment.
6011 * solib.c (master_so_list): Remove.
6012 (solib_used, update_solib_list, solib_add)
6013 (info_sharedlibrary_command, clear_solib)
6014 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6015
6016 2020-05-08 Tom Tromey <tom@tromey.com>
6017
6018 * extension.c (extension_languages): Now a std::array.
6019 (ALL_EXTENSION_LANGUAGES): Remove.
6020 (get_ext_lang_defn, get_ext_lang_of_file)
6021 (eval_ext_lang_from_control_command): Update.
6022 (finish_ext_lang_initialization)
6023 (auto_load_ext_lang_scripts_for_objfile)
6024 (ext_lang_type_printers::ext_lang_type_printers)
6025 (apply_ext_lang_type_printers)
6026 (ext_lang_type_printers::~ext_lang_type_printers)
6027 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6028 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6029 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6030 (get_matching_xmethod_workers, ext_lang_colorize)
6031 (ext_lang_before_prompt): Update.
6032 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6033
6034 2020-05-08 Tom Tromey <tom@tromey.com>
6035
6036 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6037 overload.
6038 <swap_string, m_string>: Remove.
6039 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6040 Update.
6041 * stabsread.c (define_symbol, read_type): Update.
6042 * linespec.c (find_linespec_symbols): Update.
6043 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6044 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6045 * dbxread.c (read_dbx_symtab): Update.
6046 * cp-support.h (cp_canonicalize_string_full)
6047 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6048 Return unique_xmalloc_ptr.
6049 * cp-support.c (inspect_type): Update.
6050 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6051 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6052 Likewise.
6053 * c-typeprint.c (print_name_maybe_canonical): Update.
6054 * break-catch-throw.c (check_status_exception_catchpoint):
6055 Update.
6056
6057 2020-05-08 Tom de Vries <tdevries@suse.de>
6058
6059 * infrun.c (follow_fork): Copy current_line and current_symtab to
6060 child thread.
6061
6062 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6063
6064 * async-event.c (struct async_signal_handler, struct
6065 async_event_handler): Reformat, remove typedef.
6066
6067 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6068
6069 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6070 access thistype->main_type->dyn_prop_list directly.
6071
6072 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6073
6074 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6075 (remove_dyn_prop): Remove. Update all users to use
6076 type::remove_dyn_prop.
6077 * gdbtypes.c (remove_dyn_prop): Rename to...
6078 (type::remove_dyn_prop): ... this.
6079
6080 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6081
6082 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6083 (add_dyn_prop): Remove. Update all users to use
6084 type::add_dyn_prop.
6085 * gdbtypes.c (add_dyn_prop): Rename to...
6086 (type::add_dyn_prop): ... this.
6087
6088 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6089
6090 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6091 (get_dyn_prop): Remove. Update all users to use
6092 type::dyn_prop.
6093 * gdbtypes.c (get_dyn_prop): Rename to...
6094 (type::dyn_prop): ... this.
6095
6096 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6097
6098 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6099
6100 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6101
6102 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6103 instruction, skip it if it's there.
6104
6105 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6106
6107 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6108
6109 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6110
6111 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6112 * gdbtypes.c (recursive_dump_type): Remove use of
6113 TYPE_INCOMPLETE.
6114
6115 2020-05-03 Tom Tromey <tom@tromey.com>
6116
6117 * breakpoint.c (catch_command, tcatch_command): Remove.
6118 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6119 add_show_prefix_cmd.
6120 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6121 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6122 Remove.
6123 (add_internal_problem_command): Use add_basic_prefix_cmd,
6124 add_show_prefix_cmd.
6125 * mips-tdep.c (set_mipsfpu_command): Remove.
6126 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6127 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6128 (_initialize_index_cache): Use add_basic_prefix_cmd.
6129 * memattr.c (dummy_cmd): Remove.
6130 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6131 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6132 (_initialize_tui_win): Use add_basic_prefix_cmd,
6133 add_show_prefix_cmd.
6134 * cli/cli-logging.c (set_logging_command): Remove.
6135 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6136 add_show_prefix_cmd.
6137 (show_logging_command): Remove.
6138 * target.c (target_command): Remove.
6139 (add_target): Use add_basic_prefix_cmd.
6140
6141 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6142
6143 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6144
6145 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6146
6147 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6148 info_command.
6149
6150 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6151
6152 * nbsd-nat.c (nbsd_enable_proc_events)
6153 (nbsd_nat_target::post_startup_inferior): Add.
6154 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6155 (nbsd_nat_target::update_thread_list): Rewrite.
6156 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6157 "PTRACE_LWP_CREATE".
6158 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6159
6160 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6161
6162 * stack.c (_initialize_stack): Remove duplicated creation
6163 of "frame" command and "f" alias.
6164
6165 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6166
6167 PR gdb/18706
6168 * gdbtypes.c (check_typedef): Calculate size of array of
6169 stubbed type.
6170
6171 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6172
6173 PR gdb/15559
6174 * i386-tdep.c (i386_push_dummy_call): Call
6175 i386_thiscall_push_dummy_call.
6176 (i386_thiscall_push_dummy_call): New function.
6177 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6178 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6179 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6180
6181 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6182
6183 * gdbarch.sh (do_read): Add shellcheck disable directive for
6184 warning SC2162.
6185
6186 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6187
6188 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6189 "referenced but not assigned" warning.
6190
6191 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6192
6193 * gdbarch.sh: Remove code that sets fallbackdefault.
6194
6195 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6196
6197 * gdbarch.sh: Use shell operators && and || instead of
6198 -a and -o.
6199
6200 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6201
6202 * gdbarch.sh: Use $(...) instead of `...`.
6203
6204 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6205
6206 * gdbarch.sh: Use double quotes around variables.
6207
6208 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6209
6210 * gdbarch.sh: Use %s with printf, instead of variables in the
6211 format string.
6212
6213 2020-04-29 Tom Tromey <tromey@adacore.com>
6214
6215 PR ada/25875:
6216 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6217 type fields here.
6218 (read_enumeration_type): Call
6219 update_enumeration_type_from_children later. Update comments.
6220 (process_enumeration_scope): Don't create type fields.
6221
6222 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6223
6224 * nbsd-tdep.c: Include "xml-syscall.h".
6225 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6226
6227 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6228
6229 * nbsd-nat.c: Include "sys/wait.h".
6230 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6231 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6232 (nbsd_nat_target::remove_exec_catchpoint)
6233 (nbsd_nat_target::set_syscall_catchpoint): Add.
6234 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6235 (nbsd_nat_target::insert_exec_catchpoint)
6236 (nbsd_nat_target::remove_exec_catchpoint)
6237 (nbsd_nat_target::set_syscall_catchpoint): Add.
6238 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6239 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6240 `nbsd_get_syscall_number'.
6241
6242 2020-04-29 Tom Tromey <tom@tromey.com>
6243
6244 * stack.c (print_block_frame_labels): Remove.
6245
6246 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6247
6248 PR gdb/17320
6249 * ada-valprint.c (val_print_packed_array_elements): Move array
6250 end bracket to new line.
6251 (ada_val_print_string): Remove extra spaces before first array
6252 element.
6253 * c-valprint.c (c_value_print_array): Likewise.
6254 * m2-valprint.c (m2_print_array_contents): Likewise.
6255 (m2_value_print_inner): Likewise.
6256 * p-valprint.c (pascal_value_print_inner): Likewise.
6257 * valprint.c (generic_val_print_array): Likewise.
6258 (value_print_array_elements): Move first array element and array
6259 end bracket to new line.
6260
6261 2020-04-29 Tom de Vries <tdevries@suse.de>
6262
6263 PR symtab/25889
6264 * linespec.c (find_method): Fix ix calculation.
6265
6266 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6267
6268 * syscalls/update-netbsd.sh: New file.
6269 * syscalls/netbsd.xml: Regenerate.
6270 * data-directory/Makefile.in: Register `netbsd.xml' in
6271 `SYSCALLS_FILES'.
6272
6273 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6274
6275 * syscalls/update-freebsd.sh: Add double quotes.
6276
6277 2020-04-28 Tom Tromey <tom@tromey.com>
6278
6279 * NEWS: Update.
6280 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6281 (cmdpy_init): Allow class_tui.
6282
6283 2020-04-28 Mark Williams <mark@myosotissp.com>
6284
6285 PR gdb/24480
6286 * dwarf2read.c: Add missing assingments to list_in_scope when
6287 start_symtab was already called.
6288
6289 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6290
6291 PR gdb/25881
6292 * dwarf2/read.c (offset_map_type): Use
6293 gdb:hash_enum<sect_offset> as hash function.
6294
6295 2020-04-28 Tom de Vries <tdevries@suse.de>
6296
6297 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6298 with DW_AT_signature.
6299
6300 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6301
6302 * configure.ac: Remove check for fs_base/gs_base in
6303 user_regs_struct.
6304 * configure: Re-generate.
6305 * config.in: Re-generate.
6306 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6307 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6308 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6309
6310 2020-04-27 Luis Machado <luis.machado@linaro.org>
6311
6312 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6313 problematic inline frame unwinding situation.
6314 * frame.c (frame_id_computed_p): New function.
6315 * frame.h (frame_id_computed_p): New prototype.
6316
6317 2020-04-26 Tom Tromey <tom@tromey.com>
6318
6319 * command.h (enum command_class) <class_pseudo>: Remove.
6320
6321 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6322
6323 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6324 and whitespace.
6325
6326 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6327
6328 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6329 `PT_GET_PROCESS_STATE' block.
6330
6331 2020-04-24 Tom Tromey <tom@tromey.com>
6332
6333 * symtab.h (symbol_get_demangled_name): Don't declare.
6334 * symtab.c (symbol_get_demangled_name): Remove.
6335 (general_symbol_info::natural_name)
6336 (general_symbol_info::demangled_name): Update.
6337
6338 2020-04-24 Tom Tromey <tom@tromey.com>
6339
6340 PR rust/25025:
6341 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6342
6343 2020-04-24 Tom Tromey <tom@tromey.com>
6344
6345 PR symtab/12707:
6346 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6347 exists.
6348 (new_symbol): Likewise.
6349 * compile/compile-object-load.c (get_out_value_type): Use
6350 symbol_matches_search_name.
6351
6352 2020-04-24 Tom Tromey <tom@tromey.com>
6353
6354 * dwarf2/read.c (add_partial_symbol): Do not call
6355 compute_and_set_names.
6356
6357 2020-04-24 Tom Tromey <tom@tromey.com>
6358
6359 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6360 overload.
6361
6362 2020-04-24 Tom Tromey <tom@tromey.com>
6363
6364 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6365 (add_psymbol_to_list): New overload. Make old overload call new
6366 one.
6367 * psympriv.h (add_psymbol_to_list): New overload.
6368
6369 2020-04-24 Tom Tromey <tom@tromey.com>
6370
6371 * dwarf2/read.c (partial_die_info::read) <case
6372 DW_AT_linkage_name>: Use value_as_string.
6373 (dwarf2_string_attr): Use value_as_string.
6374 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6375 method.
6376 * dwarf2/attribute.c (attribute::value_as_string): New method.
6377
6378 2020-04-24 Tom Tromey <tom@tromey.com>
6379
6380 * symtab.c (general_symbol_info::natural_name)
6381 (general_symbol_info::demangled_name): Check for language_rust.
6382
6383 2020-04-24 Tom Tromey <tom@tromey.com>
6384
6385 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6386 (dwarf2_physname): ... from here.
6387 (partial_die_info::read): Add Rust "{" hack.
6388
6389 2020-04-24 Tom Tromey <tom@tromey.com>
6390
6391 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6392 method.
6393 (symbol_set_demangled_name): Don't declare.
6394 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6395 symbol_set_demangled_name.
6396 (general_symbol_info::set_language)
6397 (general_symbol_info::compute_and_set_names): Update.
6398 * minsyms.c (minimal_symbol_reader::install): Update.
6399 * dwarf2/read.c (new_symbol): Update.
6400
6401 2020-04-24 Tom Tromey <tromey@adacore.com>
6402
6403 PR python/23662:
6404 * python/py-type.c (convert_field): Handle
6405 FIELD_LOC_KIND_DWARF_BLOCK.
6406 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6407 (typy_get_dynamic): Nw function.
6408 (type_object_getset): Add "dynamic".
6409 * NEWS: Add entry.
6410
6411 2020-04-24 Tom Tromey <tromey@adacore.com>
6412
6413 * ada-typeprint.c (print_choices, print_variant_part)
6414 (print_record_field_types_dynamic): New functions.
6415 (print_record_field_types): Use print_record_field_types_dynamic.
6416
6417 2020-04-24 Tom Tromey <tromey@adacore.com>
6418
6419 * dwarf2/read.c (handle_data_member_location): New overload.
6420 (dwarf2_add_field): Use it.
6421 (decode_locdesc): Add "computed" parameter. Update comment.
6422 * gdbtypes.c (is_dynamic_type_internal): Also look for
6423 FIELD_LOC_KIND_DWARF_BLOCK.
6424 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6425 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6426 virtual base classes.
6427 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6428 FIELD_LOC_KIND_DWARF_BLOCK.
6429
6430 2020-04-24 Tom Tromey <tromey@adacore.com>
6431
6432 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6433 * gdbtypes.c (is_dynamic_type_internal): Check
6434 TYPE_HAS_DYNAMIC_LENGTH.
6435 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6436 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6437 New macros.
6438 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6439 constant.
6440
6441 2020-04-24 Tom Tromey <tromey@adacore.com>
6442
6443 * dwarf2/read.c (struct variant_field): Rewrite.
6444 (struct variant_part_builder): New.
6445 (struct nextfield): Remove "variant" field. Add "offset".
6446 (struct field_info): Add "current_variant_part" and
6447 "variant_parts".
6448 (alloc_discriminant_info): Remove.
6449 (alloc_rust_variant): New function.
6450 (quirk_rust_enum): Update.
6451 (dwarf2_add_field): Set "offset" member. Don't handle
6452 DW_TAG_variant_part.
6453 (offset_map_type): New typedef.
6454 (convert_variant_range, create_one_variant)
6455 (create_one_variant_part, create_variant_parts)
6456 (add_variant_property): New functions.
6457 (dwarf2_attach_fields_to_type): Call add_variant_property.
6458 (read_structure_type): Don't handle DW_TAG_variant_part.
6459 (handle_variant_part, handle_variant): New functions.
6460 (handle_struct_member_die): Use them.
6461 (process_structure_scope): Don't handle variant parts.
6462 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6463 (struct discriminant_info): Remove.
6464 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6465 (struct main_type) <flag_discriminated_union>: Remove.
6466 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6467 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6468 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6469 Update.
6470 * valops.c (value_union_variant): Remove.
6471 * value.h (value_union_variant): Don't declare.
6472
6473 2020-04-24 Tom Tromey <tromey@adacore.com>
6474
6475 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6476 (ada_value_primitive_packed_val): Update.
6477 * ada-valprint.c (ada_value_print_1): Update.
6478 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6479 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6480 just an address. Use evaluate_for_locexpr_baton.
6481 (dwarf2_evaluate_property): Update.
6482 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6483 array_view.
6484 * findvar.c (default_read_var_value): Update.
6485 * gdbtypes.c (compute_variant_fields_inner)
6486 (resolve_dynamic_type_internal): Update.
6487 (resolve_dynamic_type): Change type of valaddr parameter.
6488 * gdbtypes.h (resolve_dynamic_type): Update.
6489 * valarith.c (value_subscripted_rvalue): Update.
6490 * value.c (value_from_contents_and_address): Update.
6491
6492 2020-04-24 Tom Tromey <tromey@adacore.com>
6493
6494 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6495 "push_initial_value" parameter.
6496 (dwarf2_evaluate_property): Likewise.
6497 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6498
6499 2020-04-24 Tom Tromey <tromey@adacore.com>
6500
6501 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6502 (variant::matches, compute_variant_fields_recurse)
6503 (compute_variant_fields_inner, compute_variant_fields): New
6504 functions.
6505 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6506 Use resolved_type after type is made.
6507 (operator==): Add new cases.
6508 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6509 (struct discriminant_range, struct variant, struct variant_part):
6510 New.
6511 (union dynamic_prop_data) <variant_parts, original_type>: New
6512 members.
6513 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6514 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6515 constants.
6516 * value.c (unpack_bits_as_long): Now public.
6517 * value.h (unpack_bits_as_long): Declare.
6518
6519 2020-04-24 Tom Tromey <tromey@adacore.com>
6520
6521 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6522 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6523
6524 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6525
6526 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6527
6528 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6529
6530 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6531 (remove_fork_catchpoint, post_startup_inferior)
6532 (post_attach): Move...
6533 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6534 (remove_fork_catchpoint, post_startup_inferior)
6535 (post_attach): ...here.
6536 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6537 (remove_fork_catchpoint, post_startup_inferior)
6538 (post_attach): Move...
6539 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6540 (remove_fork_catchpoint, post_startup_inferior)
6541 (post_attach): ...here.
6542
6543 2020-04-24 Tom Tromey <tromey@adacore.com>
6544
6545 * nat/windows-nat.h (struct windows_thread_info)
6546 <pc_adjusted>: New member.
6547 * windows-nat.c (windows_fetch_one_register): Check
6548 pc_adjusted.
6549 (windows_nat_target::get_windows_debug_event)
6550 (windows_nat_target::wait): Set pc_adjusted.
6551
6552 2020-04-24 Tom de Vries <tdevries@suse.de>
6553
6554 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6555 Run gdb-add-index inside temp dir.
6556
6557 2020-04-23 Tom Tromey <tromey@adacore.com>
6558
6559 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6560 in loop.
6561
6562 2020-04-23 Luis Machado <luis.machado@linaro.org>
6563
6564 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6565 get_frame_register instead of gdbarch_unwind_pc.
6566
6567 2020-04-23 Tom de Vries <tdevries@suse.de>
6568
6569 * symtab.c (lookup_global_symbol): Prefer def over decl.
6570
6571 2020-04-23 Tom de Vries <tdevries@suse.de>
6572
6573 PR symtab/25807
6574 * block.c (best_symbol, better_symbol): Promote to external.
6575 * block.h (best_symbol, better_symbol): Declare.
6576 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6577 decl.
6578
6579 2020-04-23 Tom Tromey <tromey@adacore.com>
6580
6581 PR ada/25837:
6582 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6583 "const char *", not a "const std::string &".
6584 <name_and_matcher::operator==>: Update.
6585 * unittests/lookup_name_info-selftests.c: Change type of
6586 "result".
6587
6588 2020-04-23 Tom Tromey <tom@tromey.com>
6589
6590 * inferior.h (iterate_over_inferiors): Don't declare.
6591 * inferior.c (iterate_over_inferiors): Remove.
6592 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6593 Remove.
6594 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6595 use iterate_over_inferiors.
6596 (darwin_resume_inferior_it)
6597 (struct resume_inferior_threads_param)
6598 (darwin_resume_inferior_threads_it): Remove.
6599 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6600
6601 2020-04-23 Tom de Vries <tdevries@suse.de>
6602
6603 * blockframe.c (find_pc_partial_function): Use
6604 find_pc_sect_compunit_symtab rather than
6605 objfile->sf->qf->find_pc_sect_compunit_symtab.
6606
6607 2020-04-22 Tom de Vries <tdevries@suse.de>
6608
6609 PR symtab/25764
6610 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6611 in psymtabs.
6612
6613 2020-04-22 Tom de Vries <tdevries@suse.de>
6614
6615 PR symtab/25801
6616 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6617 symtabs.
6618
6619 2020-04-22 Tom de Vries <tdevries@suse.de>
6620
6621 PR symtab/25700
6622 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6623 CU if already created.
6624
6625 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6626
6627 * infrun.c (displaced_step_fixup): Switch to the event_thread
6628 before calling displaced_step_restore, not after.
6629
6630 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6631
6632 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6633 its inferior is not recorded by us.
6634 (record_btrace_target_open): Replace call to
6635 all_non_exited_threads () with call to current_inferior
6636 ()->non_exited_threads ().
6637 (record_btrace_target::stop_recording): Likewise.
6638 (record_btrace_target::close): Likewise.
6639 (record_btrace_target::wait): Likewise.
6640 (record_btrace_target::record_stop_replaying): Likewise.
6641
6642 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6643
6644 * btrace.c (btrace_enable): Throw an error on double enables and
6645 when enabling recording fails.
6646 (btrace_disable): Throw an error if the thread is not recorded.
6647
6648 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6649
6650 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6651 request if we do not have a thread_info.
6652
6653 2020-04-21 Tom de Vries <tdevries@suse.de>
6654
6655 PR gdb/25471
6656 * thread.c
6657 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6658 exception in get_frame_id.
6659
6660 2020-04-20 Tom Tromey <tromey@adacore.com>
6661
6662 * python/python.c (struct gdbpy_event): Mark move constructor as
6663 noexcept.
6664 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6665 constructor as noexcept.
6666 * completer.h (struct completion_result): Mark move constructor as
6667 noexcept.
6668 * completer.c (completion_result::completion_result): Use
6669 initialization style. Don't call reset_match_list.
6670
6671 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6672
6673 * MAINTAINERS (Write After Approval): Add myself.
6674
6675 2020-04-18 Tom Tromey <tom@tromey.com>
6676
6677 * windows-tdep.c (init_w32_command_list)
6678 (w32_prefix_command_valid): Restore.
6679 (_initialize_windows_tdep): Call init_w32_command_list.
6680
6681 2020-04-18 Tom Tromey <tom@tromey.com>
6682
6683 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6684 * value.c (value_fn_field): Update.
6685 * valops.c (find_function_in_inferior)
6686 (value_allocate_space_in_inferior): Update.
6687 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6688 Update.
6689 * tui/tui-source.c (tui_source_window::set_contents): Update.
6690 * symtab.c (lookup_global_or_static_symbol)
6691 (find_function_start_sal_1, skip_prologue_sal)
6692 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6693 * symmisc.c (dump_msymbols, dump_symtab_1)
6694 (maintenance_print_one_line_table): Update.
6695 * symfile.c (init_entry_point_info, section_is_mapped)
6696 (list_overlays_command, simple_read_overlay_table)
6697 (simple_overlay_update_1): Update.
6698 * stap-probe.c (handle_stap_probe): Update.
6699 * stabsread.c (dbx_init_float_type, define_symbol)
6700 (read_one_struct_field, read_enum_type, read_range_type): Update.
6701 * source.c (info_line_command): Update.
6702 * python/python.c (gdbpy_source_objfile_script)
6703 (gdbpy_execute_objfile_script): Update.
6704 * python/py-type.c (save_objfile_types): Update.
6705 * python/py-objfile.c (py_free_objfile): Update.
6706 * python/py-inferior.c (python_new_objfile): Update.
6707 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6708 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6709 (maintenance_check_psymtabs): Update.
6710 * printcmd.c (info_address_command): Update.
6711 * objfiles.h (struct objfile) <arch>: New method, from
6712 get_objfile_arch.
6713 (get_objfile_arch): Don't declare.
6714 * objfiles.c (get_objfile_arch): Remove.
6715 (filter_overlapping_sections): Update.
6716 * minsyms.c (msymbol_is_function): Update.
6717 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6718 (output_nondebug_symbol): Update.
6719 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6720 (mdebug_expand_psymtab): Update.
6721 * machoread.c (macho_add_oso_symfile): Update.
6722 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6723 Update.
6724 * linux-fork.c (checkpoint_command): Update.
6725 * linespec.c (convert_linespec_to_sals): Update.
6726 * jit.c (finalize_symtab): Update.
6727 * infrun.c (insert_exception_resume_from_probe): Update.
6728 * ia64-tdep.c (ia64_find_unwind_table): Update.
6729 * hppa-tdep.c (internalize_unwinds): Update.
6730 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6731 Update.
6732 * gcore.c (call_target_sbrk): Update.
6733 * elfread.c (record_minimal_symbol, elf_symtab_read)
6734 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6735 (elf_gnu_ifunc_resolve_by_got): Update.
6736 * dwarf2/read.c (create_addrmap_from_index)
6737 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6738 (read_debug_names_from_section)
6739 (process_psymtab_comp_unit_reader, add_partial_symbol)
6740 (add_partial_subprogram, process_full_comp_unit)
6741 (read_file_scope, read_func_scope, read_lexical_block_scope)
6742 (read_call_site_scope, dwarf2_ranges_read)
6743 (dwarf2_record_block_ranges, dwarf2_add_field)
6744 (mark_common_block_symbol_computed, read_tag_pointer_type)
6745 (read_tag_string_type, dwarf2_init_float_type)
6746 (dwarf2_init_complex_target_type, read_base_type)
6747 (partial_die_info::read, partial_die_info::read)
6748 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6749 (dwarf2_fetch_die_loc_sect_off): Update.
6750 * dwarf2/loc.c (dwarf2_find_location_expression)
6751 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6752 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6753 (dwarf2_loc_desc_get_symbol_read_needs)
6754 (locexpr_describe_location_piece, locexpr_describe_location_1)
6755 (loclist_describe_location): Update.
6756 * dwarf2/index-write.c (write_debug_names): Update.
6757 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6758 * dtrace-probe.c (dtrace_process_dof): Update.
6759 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6760 (process_one_symbol): Update.
6761 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6762 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6763 (coff_read_enum_type): Update.
6764 * cli/cli-cmds.c (edit_command, list_command): Update.
6765 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6766 * breakpoint.c (create_overlay_event_breakpoint)
6767 (create_longjmp_master_breakpoint)
6768 (create_std_terminate_master_breakpoint)
6769 (create_exception_master_breakpoint, get_sal_arch): Update.
6770 * block.c (block_gdbarch): Update.
6771 * annotate.c (annotate_source_line): Update.
6772
6773 2020-04-17 Tom Tromey <tromey@adacore.com>
6774
6775 * auto-load.c (show_auto_load_cmd): Remove.
6776 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6777 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6778 (maintenance_print_arc_command): Remove.
6779 * tui/tui-win.c (tui_command): Remove.
6780 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6781 * tui/tui-layout.c (tui_layout_command): Remove.
6782 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6783 * python/python.c (user_set_python, user_show_python): Remove.
6784 (_initialize_python): Use add_basic_prefix_cmd,
6785 add_show_prefix_cmd.
6786 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6787 (install_gdb_commands): Use add_basic_prefix_cmd,
6788 add_show_prefix_cmd.
6789 (info_guile_command): Remove.
6790 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6791 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6792 add_show_prefix_cmd.
6793 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6794 Remove do_set and do_show parameters.
6795 * cli/cli-style.c (set_style, show_style): Remove.
6796 (_initialize_cli_style): Use add_basic_prefix_cmd,
6797 add_show_prefix_cmd.
6798 (cli_style_option::add_setshow_commands): Remove do_set and
6799 do_show parameters.
6800 (cli_style_option::add_setshow_commands): Use
6801 add_basic_prefix_cmd, add_show_prefix_cmd.
6802 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6803 (set_style_name): Remove.
6804 * cli/cli-dump.c (dump_command, append_command): Remove.
6805 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6806 (tekhex_dump_command, binary_dump_command)
6807 (binary_append_command): Remove.
6808 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6809 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6810 (init_w32_command_list): Remove; move into ...
6811 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6812 * valprint.c (set_print, show_print, set_print_raw)
6813 (show_print_raw): Remove.
6814 (_initialize_valprint): Use add_basic_prefix_cmd,
6815 add_show_prefix_cmd.
6816 * typeprint.c (set_print_type, show_print_type): Remove.
6817 (_initialize_typeprint): Use add_basic_prefix_cmd,
6818 add_show_prefix_cmd.
6819 * record.c (set_record_command, show_record_command): Remove.
6820 (_initialize_record): Use add_basic_prefix_cmd,
6821 add_show_prefix_cmd.
6822 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6823 add_show_prefix_cmd.
6824 (info_command, show_command, set_debug, show_debug): Remove.
6825 * top.h (set_history, show_history): Don't declare.
6826 * top.c (set_history, show_history): Remove.
6827 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6828 (unset_tdesc_cmd): Remove.
6829 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6830 add_show_prefix_cmd.
6831 * symtab.c (info_module_command): Remove.
6832 (_initialize_symtab): Use add_basic_prefix_cmd.
6833 * symfile.c (overlay_command): Remove.
6834 (_initialize_symfile): Use add_basic_prefix_cmd.
6835 * sparc64-tdep.c (info_adi_command): Remove.
6836 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6837 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6838 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6839 add_show_prefix_cmd.
6840 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6841 (_initialize_serial): Use add_basic_prefix_cmd,
6842 add_show_prefix_cmd.
6843 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6844 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6845 add_show_prefix_cmd.
6846 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6847 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6848 add_show_prefix_cmd.
6849 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6850 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6851 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6852 add_show_prefix_cmd.
6853 * remote.c (remote_command, set_remote_cmd): Remove.
6854 (_initialize_remote): Use add_basic_prefix_cmd.
6855 * record-full.c (set_record_full_command)
6856 (show_record_full_command): Remove.
6857 (_initialize_record_full): Use add_basic_prefix_cmd,
6858 add_show_prefix_cmd.
6859 * record-btrace.c (cmd_set_record_btrace)
6860 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6861 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6862 (cmd_show_record_btrace_pt): Remove.
6863 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6864 add_show_prefix_cmd.
6865 * ravenscar-thread.c (set_ravenscar_command)
6866 (show_ravenscar_command): Remove.
6867 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6868 add_show_prefix_cmd.
6869 * mips-tdep.c (show_mips_command, set_mips_command)
6870 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6871 add_show_prefix_cmd.
6872 * maint.c (maintenance_command, maintenance_info_command)
6873 (maintenance_check_command, maintenance_print_command)
6874 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6875 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6876 add_show_prefix_cmd.
6877 (show_per_command_cmd): Remove.
6878 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6879 Remove.
6880 (maintenance_show_test_settings_cmd): Remove.
6881 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6882 add_show_prefix_cmd.
6883 * maint-test-options.c (maintenance_test_options_command):
6884 Remove.
6885 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6886 * macrocmd.c (macro_command): Remove
6887 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6888 * language.c (set_check, show_check): Remove.
6889 (_initialize_language): Use add_basic_prefix_cmd,
6890 add_show_prefix_cmd.
6891 * infcmd.c (unset_command): Remove.
6892 (_initialize_infcmd): Use add_basic_prefix_cmd.
6893 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6894 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6895 add_show_prefix_cmd.
6896 * go32-nat.c (go32_info_dos_command): Remove.
6897 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6898 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6899 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6900 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6901 (_initialize_frame): Use add_basic_prefix_cmd,
6902 add_show_prefix_cmd.
6903 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6904 (_initialize_dcache): Use add_basic_prefix_cmd,
6905 add_show_prefix_cmd.
6906 * cp-support.c (maint_cplus_command): Remove.
6907 (_initialize_cp_support): Use add_basic_prefix_cmd.
6908 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6909 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6910 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6911 add_basic_prefix_cmd, add_show_prefix_cmd.
6912 * breakpoint.c (save_command): Remove.
6913 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6914 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6915 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6916 add_show_prefix_cmd.
6917 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6918 (set_ada_command, show_ada_command): Remove.
6919 (_initialize_ada_language): Use add_basic_prefix_cmd,
6920 add_show_prefix_cmd.
6921 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6922
6923 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6924
6925 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6926 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6927
6928 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6929
6930 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6931 warning messages.
6932
6933 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6934
6935 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6936 import table is not at beginning of .idata section.
6937
6938 2020-04-16 Pedro Alves <palves@redhat.com>
6939
6940 * inferior.c (delete_inferior): Use delete operator directly
6941 instead of delete_program_space.
6942 * progspace.c (add_program_space): New, factored out from
6943 program_space::program_space.
6944 (remove_program_space): New, factored out from
6945 delete_program_space.
6946 (program_space::program_space): Remove intro comment. Rewrite.
6947 (program_space::~program_space): Remove intro comment. Call
6948 remove_program_space.
6949 (delete_program_space): Delete.
6950 * progspace.h (program_space::program_space): Make explicit. Move
6951 intro comment here, adjusted.
6952 (program_space::~program_space): Move intro comment here,
6953 adjusted.
6954 (delete_program_space): Remove.
6955
6956 2020-04-16 Tom Tromey <tromey@adacore.com>
6957
6958 * windows-nat.c (windows_nat::handle_access_violation): New
6959 function.
6960 * nat/windows-nat.h (handle_access_violation): Declare.
6961 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6962 windows-nat.c. Call handle_access_violation.
6963
6964 2020-04-16 Tom de Vries <tdevries@suse.de>
6965
6966 PR symtab/25791
6967 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6968 CUs without psymtab.
6969
6970 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6971
6972 * python/python.c (do_start_initialization): Don't call
6973 PyEval_InitThreads for Python 3.9 and beyond.
6974
6975 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6976
6977 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6978 thread functions.
6979 (obsd_nat_target::wait): Likewise.
6980
6981 2020-04-15 Tom Tromey <tromey@adacore.com>
6982
6983 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6984 (DEBUG_EXCEPT): Use debug_printf.
6985
6986 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6987
6988 * completer.c (class completion_tracker::completion_hash_entry)
6989 <hash_name>: New member function.
6990 (completion_tracker::discard_completions): New callback to hash a
6991 completion_hash_entry, pass this to htab_create_alloc.
6992
6993 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6994
6995 * windows-nat.c (windows_make_so): Warn rather than stopping with
6996 an error if realpath() fails.
6997
6998 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6999
7000 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7001 (nbsd_nat_target::info_proc): Add do_status.
7002
7003 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7004 Tom de Vries <tdevries@suse.de>
7005
7006 PR symtab/25718
7007 * psympriv.h (struct partial_symtab::read_symtab)
7008 (struct partial_symtab::expand_psymtab)
7009 (struct partial_symtab::read_dependencies): Update comments.
7010 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7011 read_symtab for includer.
7012 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7013 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7014 (struct dwarf2_include_psymtab::m_readin): Remove.
7015 (struct dwarf2_include_psymtab::includer): New member function.
7016 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7017
7018 2020-04-14 Tom de Vries <tdevries@suse.de>
7019
7020 PR symtab/25720
7021 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7022 with NULL symbol_matcher and lookup_name.
7023 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7024 and lookup_name.
7025 * dwarf2/read.c (dw2_expand_symtabs_matching)
7026 (dw2_debug_names_expand_symtabs_matching): Same.
7027 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7028 Make lookup_name a pointer. Update comment.
7029 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7030 lookup_name being a pointer.
7031 * symfile.c (expand_symtabs_matching): Same.
7032 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7033 * linespec.c (iterate_over_all_matching_symtabs): Same.
7034
7035 2020-04-13 Tom Tromey <tom@tromey.com>
7036
7037 * run-on-main-thread.c: Update include.
7038 * unittests/main-thread-selftests.c: Update include.
7039 * tui/tui-win.c: Update include.
7040 * tui/tui-io.c: Update include.
7041 * tui/tui-interp.c: Update include.
7042 * tui/tui-hooks.c: Update include.
7043 * top.h: Update include.
7044 * top.c: Update include.
7045 * ser-base.c: Update include.
7046 * remote.c: Update include.
7047 * remote-notif.c: Update include.
7048 * remote-fileio.c: Update include.
7049 * record-full.c: Update include.
7050 * record-btrace.c: Update include.
7051 * python/python.c: Update include.
7052 * posix-hdep.c: Update include.
7053 * mingw-hdep.c: Update include.
7054 * mi/mi-main.c: Update include.
7055 * mi/mi-interp.c: Update include.
7056 * main.c: Update include.
7057 * linux-nat.c: Update include.
7058 * interps.c: Update include.
7059 * infrun.c: Update include.
7060 * inf-loop.c: Update include.
7061 * event-top.c: Update include.
7062 * event-loop.c: Move to ../gdbsupport/.
7063 * event-loop.h: Move to ../gdbsupport/.
7064 * async-event.h: Update include.
7065 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7066
7067 2020-04-13 Tom Tromey <tom@tromey.com>
7068
7069 * tui/tui-win.c: Include async-event.h.
7070 * remote.c: Include async-event.h.
7071 * remote-notif.c: Include async-event.h.
7072 * record-full.c: Include async-event.h.
7073 * record-btrace.c: Include async-event.h.
7074 * infrun.c: Include async-event.h.
7075 * event-top.c: Include async-event.h.
7076 * event-loop.h: Move some declarations to async-event.h.
7077 * event-loop.c: Don't include ser-event.h or top.h. Move some
7078 code to async-event.c.
7079 * async-event.h: New file.
7080 * async-event.c: New file.
7081 * Makefile.in (COMMON_SFILES): Add async-event.c.
7082 (HFILES_NO_SRCDIR): Add async-event.h.
7083
7084 2020-04-13 Tom Tromey <tom@tromey.com>
7085
7086 * utils.c (flush_streams): New function.
7087 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7088
7089 2020-04-13 Tom Tromey <tom@tromey.com>
7090
7091 * event-loop.c (handle_file_event): Use warning, not
7092 printf_unfiltered.
7093
7094 2020-04-13 Tom Tromey <tom@tromey.com>
7095
7096 * event-loop.c: Include <chrono>.
7097
7098 2020-04-13 Tom Tromey <tom@tromey.com>
7099
7100 * gdb_select.h: Move to ../gdbsupport/.
7101 * event-loop.c: Update include path.
7102 * top.c: Update include path.
7103 * ser-base.c: Update include path.
7104 * ui-file.c: Update include path.
7105 * ser-tcp.c: Update include path.
7106 * guile/scm-ports.c: Update include path.
7107 * posix-hdep.c: Update include path.
7108 * ser-unix.c: Update include path.
7109 * gdb_usleep.c: Update include path.
7110 * mingw-hdep.c: Update include path.
7111 * inflow.c: Update include path.
7112 * infrun.c: Update include path.
7113 * event-top.c: Update include path.
7114
7115 2020-04-13 Tom Tromey <tom@tromey.com>
7116
7117 * configure: Rebuild.
7118 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7119
7120 2020-04-13 Tom Tromey <tom@tromey.com>
7121
7122 * event-loop.h (start_event_loop): Don't declare.
7123 * event-loop.c (start_event_loop): Move...
7124 * main.c (start_event_loop): ...here. Now static.
7125
7126 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7127
7128 * MAINTAINERS: Update my email address.
7129
7130 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7131
7132 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7133 IP_ALL.
7134
7135 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7136
7137 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7138 (nbsd_nat_target::info_proc): Add do_cmdline.
7139
7140 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7141
7142 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7143 (nbsd_nat_target::info_proc): Add do_cwd.
7144
7145 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7146
7147 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7148
7149 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7150
7151 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7152 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7153 (nbsd_nat_target::info_proc): New functions.
7154 * nbsd-nat.c (kinfo_get_vmmap): New function.
7155 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7156 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7157 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7158 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7159 functions.
7160 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7161 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7162 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7163 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7164 (KINFO_VME_FLAG_GROWS_DOWN): New.
7165
7166 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7167
7168 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7169 bit shift.
7170
7171 2020-04-10 Tom Tromey <tromey@adacore.com>
7172
7173 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7174
7175 2020-04-10 Tom Tromey <tromey@adacore.com>
7176
7177 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7178 separate debug files.
7179
7180 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7181
7182 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7183 Move to...
7184 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7185 ... here.
7186 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7187 Check for STATUS_WX86_BREAKPOINT.
7188 (windows_nat_target::wait): Same.
7189
7190 2020-04-10 Tom de Vries <tdevries@suse.de>
7191
7192 PR cli/25808
7193 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7194
7195 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7196
7197 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7198 (Write After Approval): Remove Tom de Vries.
7199
7200 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7201
7202 revert partially:
7203 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7204
7205 * buildsym.c (record_line): Fix undefined behavior and preserve
7206 lines at eof.
7207
7208 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7209
7210 * auxv.h (svr4_auxv_parse): New.
7211 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7212 and generic_auxv_parse.
7213 (svr4_auxv_parse): Add.
7214 * obsd-tdep.c: Include "auxv.h".
7215 (obsd_auxv_parse): Remove.
7216 (obsd_init_abi): Remove comment.
7217 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7218 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7219 * nbsd-tdep.c: Include "auxv.h".
7220 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7221
7222 2020-04-08 Tom Tromey <tromey@adacore.com>
7223
7224 * nat/windows-nat.h (last_wait_event): Don't declare.
7225 (wait_for_debug_event): Update comment.
7226 * nat/windows-nat.c (last_wait_event): Now static.
7227
7228 2020-04-08 Tom Tromey <tromey@adacore.com>
7229
7230 * windows-nat.c (wait_for_debug_event): Move to
7231 nat/windows-nat.c.
7232 * nat/windows-nat.h (wait_for_debug_event): Declare.
7233 * nat/windows-nat.c (wait_for_debug_event): Move from
7234 windows-nat.c. No longer static.
7235
7236 2020-04-08 Tom Tromey <tromey@adacore.com>
7237
7238 * windows-nat.c (get_windows_debug_event): Use
7239 fetch_pending_stop.
7240 * nat/windows-nat.h (fetch_pending_stop): Declare.
7241 * nat/windows-nat.c (fetch_pending_stop): New function.
7242
7243 2020-04-08 Tom Tromey <tromey@adacore.com>
7244
7245 * windows-nat.c (windows_continue): Use matching_pending_stop and
7246 continue_last_debug_event.
7247 * nat/windows-nat.h (matching_pending_stop)
7248 (continue_last_debug_event): Declare.
7249 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7250 (matching_pending_stop, continue_last_debug_event): New
7251 functions.
7252
7253 2020-04-08 Tom Tromey <tromey@adacore.com>
7254
7255 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7256 (handle_exception_result): Move to nat/windows-nat.h.
7257 (DEBUG_EXCEPTION_SIMPLE): Remove.
7258 (windows_nat::handle_ms_vc_exception): New function.
7259 (handle_exception): Move to nat/windows-nat.c.
7260 (get_windows_debug_event): Update.
7261 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7262 nat/windows-nat.c.
7263 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7264 (handle_exception_result): Move from windows-nat.c.
7265 (handle_exception): Declare.
7266 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7267 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7268 windows-nat.c.
7269
7270 2020-04-08 Tom Tromey <tromey@adacore.com>
7271
7272 * windows-nat.c (exception_count, event_count): Remove.
7273 (handle_exception, get_windows_debug_event)
7274 (do_initial_windows_stuff): Update.
7275
7276 2020-04-08 Tom Tromey <tromey@adacore.com>
7277
7278 * windows-nat.c (windows_nat::handle_load_dll)
7279 (windows_nat::handle_unload_dll): Rename. No longer static.
7280 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7281 Declare.
7282
7283 2020-04-08 Tom Tromey <tromey@adacore.com>
7284
7285 * complaints.h (stop_whining): Declare at top-level.
7286 (complaint): Don't declare stop_whining.
7287
7288 2020-04-08 Tom Tromey <tromey@adacore.com>
7289
7290 * windows-nat.c (windows_nat::handle_output_debug_string):
7291 Rename. No longer static.
7292 * nat/windows-nat.h (handle_output_debug_string): Declare.
7293
7294 2020-04-08 Tom Tromey <tromey@adacore.com>
7295
7296 * windows-nat.c (current_process_handle, current_process_id)
7297 (main_thread_id, last_sig, current_event, last_wait_event)
7298 (current_windows_thread, desired_stop_thread_id, pending_stops)
7299 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7300 (display_selectors, fake_create_process)
7301 (get_windows_debug_event): Update.
7302 * nat/windows-nat.h (current_process_handle, current_process_id)
7303 (main_thread_id, last_sig, current_event, last_wait_event)
7304 (current_windows_thread, desired_stop_thread_id, pending_stops)
7305 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7306 * nat/windows-nat.c (current_process_handle, current_process_id)
7307 (main_thread_id, last_sig, current_event, last_wait_event)
7308 (current_windows_thread, desired_stop_thread_id, pending_stops)
7309 (siginfo_er): New globals. Move from windows-nat.c.
7310
7311 2020-04-08 Tom Tromey <tromey@adacore.com>
7312
7313 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7314 (handle_load_dll): Update.
7315 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7316
7317 2020-04-08 Tom Tromey <tromey@adacore.com>
7318
7319 * windows-nat.c (enum thread_disposition_type): Move to
7320 nat/windows-nat.h.
7321 (windows_nat::thread_rec): Rename from thread_rec. No longer
7322 static.
7323 (windows_add_thread, windows_nat_target::fetch_registers)
7324 (windows_nat_target::store_registers, handle_exception)
7325 (windows_nat_target::resume, get_windows_debug_event)
7326 (windows_nat_target::get_tib_address)
7327 (windows_nat_target::thread_name)
7328 (windows_nat_target::thread_alive): Update.
7329 * nat/windows-nat.h (enum thread_disposition_type): Move from
7330 windows-nat.c.
7331 (thread_rec): Declare.
7332
7333 2020-04-08 Tom Tromey <tromey@adacore.com>
7334
7335 * windows-nat.c: Add "using namespace".
7336 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7337 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7338
7339 2020-04-08 Tom Tromey <tromey@adacore.com>
7340
7341 * nat/windows-nat.h (struct windows_thread_info): Declare
7342 destructor.
7343 * nat/windows-nat.c (~windows_thread_info): New.
7344
7345 2020-04-08 Tom Tromey <tromey@adacore.com>
7346
7347 PR gdb/22992
7348 * windows-nat.c (current_event): Update comment.
7349 (last_wait_event, desired_stop_thread_id): New globals.
7350 (struct pending_stop): New.
7351 (pending_stops): New global.
7352 (windows_nat_target) <stopped_by_sw_breakpoint>
7353 <supports_stopped_by_sw_breakpoint>: New methods.
7354 (windows_fetch_one_register): Add assertions. Adjust PC.
7355 (windows_continue): Handle pending stops. Suspend other threads
7356 when stepping. Use last_wait_event
7357 (wait_for_debug_event): New function.
7358 (get_windows_debug_event): Use wait_for_debug_event. Handle
7359 pending stops. Queue spurious stops.
7360 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7361 (windows_nat_target::kill): Use wait_for_debug_event.
7362 * nat/windows-nat.h (struct windows_thread_info)
7363 <stopped_at_software_breakpoint>: New field.
7364 * nat/windows-nat.c (windows_thread_info::resume): Clear
7365 stopped_at_software_breakpoint.
7366
7367 2020-04-08 Tom Tromey <tromey@adacore.com>
7368
7369 * windows-nat.c (enum thread_disposition_type): New.
7370 (thread_rec): Replace "get_context" parameter with "disposition";
7371 change type.
7372 (windows_add_thread, windows_nat_target::fetch_registers)
7373 (windows_nat_target::store_registers, handle_exception)
7374 (windows_nat_target::resume, get_windows_debug_event)
7375 (windows_nat_target::get_tib_address)
7376 (windows_nat_target::thread_name)
7377 (windows_nat_target::thread_alive): Update.
7378
7379 2020-04-08 Tom Tromey <tromey@adacore.com>
7380
7381 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7382 (windows_continue): Use windows_continue::resume.
7383 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7384 resume>: Declare new methods.
7385 * nat/windows-nat.c: New file.
7386 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7387
7388 2020-04-08 Tom Tromey <tromey@adacore.com>
7389
7390 * windows-nat.c (windows_add_thread, windows_delete_thread)
7391 (windows_nat_target::fetch_registers)
7392 (windows_nat_target::store_registers, fake_create_process)
7393 (windows_nat_target::resume, windows_nat_target::resume)
7394 (get_windows_debug_event, windows_nat_target::wait)
7395 (windows_nat_target::pid_to_str)
7396 (windows_nat_target::get_tib_address)
7397 (windows_nat_target::get_ada_task_ptid)
7398 (windows_nat_target::thread_name)
7399 (windows_nat_target::thread_alive): Use lwp, not tid.
7400
7401 2020-04-08 Tom Tromey <tromey@adacore.com>
7402
7403 * windows-nat.c (handle_exception)
7404 (windows_nat_target::thread_name): Update.
7405 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7406 <name>: Now unique_xmalloc_ptr.
7407
7408 2020-04-08 Tom Tromey <tromey@adacore.com>
7409
7410 * windows-nat.c (thread_rec)
7411 (windows_nat_target::fetch_registers): Update.
7412 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7413 Update comment.
7414 <debug_registers_changed, reload_context>: Now bool.
7415
7416 2020-04-08 Tom Tromey <tromey@adacore.com>
7417
7418 * windows-nat.c (windows_add_thread): Use new.
7419 (windows_init_thread_list, windows_delete_thread): Use delete.
7420 (get_windows_debug_event): Update.
7421 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7422 destructor, and initializers.
7423
7424 2020-04-08 Tom Tromey <tromey@adacore.com>
7425
7426 * windows-nat.c (struct windows_thread_info): Remove.
7427 * nat/windows-nat.h: New file.
7428
7429 2020-04-08 Tom Tromey <tromey@adacore.com>
7430
7431 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7432 (thread_rec, windows_add_thread, windows_delete_thread)
7433 (windows_continue): Update.
7434
7435 2020-04-08 Tom Tromey <tromey@adacore.com>
7436
7437 * windows-nat.c (struct windows_thread_info): Remove typedef.
7438 (thread_head): Remove.
7439 (thread_list): New global.
7440 (thread_rec, windows_add_thread, windows_init_thread_list)
7441 (windows_delete_thread, windows_continue): Update.
7442
7443 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7444
7445 * windows-tdep.h (windows_init_abi): Add comment.
7446 (cygwin_init_abi): New declaration.
7447 * windows-tdep.c: Split signal enumeration in two, one for
7448 Windows and one for Cygwin.
7449 (windows_gdb_signal_to_target): Only deal with signal of the
7450 Windows OS ABI.
7451 (cygwin_gdb_signal_to_target): New function.
7452 (windows_init_abi): Rename to windows_init_abi_common, don't set
7453 gdb_signal_to_target gdbarch method. Add new new function with
7454 this name.
7455 (cygwin_init_abi): New function.
7456 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7457 comment. Don't call windows_init_abi.
7458 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7459 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7460 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7461 i386_windows_init_abi_common, don't call windows_init_abi. Add
7462 a new function of this name.
7463 (i386_cygwin_init_abi): New function.
7464 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7465 OS ABI Cygwin.
7466
7467 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7468
7469 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7470 parameter.c.
7471 (dwarf2_read_gdb_index): Update.
7472
7473 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7474
7475 * nbsd-tdep.c: Include "objfiles.h".
7476 (nbsd_skip_solib_resolver): New.
7477 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7478
7479 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7480
7481 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7482 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7483 with DW_LLE_base_addressx are being emitted in DWARFv5.
7484 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7485 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7486 unsigned integer.
7487
7488 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7489
7490 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7491 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7492 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7493 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7494 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7495 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7496 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7497
7498
7499 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7500
7501 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7502 (read_loclist_index): New function definition.
7503 (lookup_loclist_base): New function definition.
7504 (read_loclist_header): New function definition.
7505 (dwarf2_cu): Add loclist_base and loclist_header field.
7506 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7507 (read_full_die_1): Read the value of DW_AT_loclists_base.
7508 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7509 (read_attribute_value): Handle DW_FORM_loclistx.
7510 (skip_one_die): Handle DW_FORM_loclistx.
7511 (loclist_header): New structure declaration.
7512 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7513
7514 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7515
7516 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7517 constructor. Remove `addr` parameter from other constructor and
7518 add `per_cu` parameter.
7519 * dwarf2/read.c (create_partial_symtab): Update.
7520
7521 2020-04-07 Tom de Vries <tdevries@suse.de>
7522
7523 PR symtab/25796
7524 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7525 (partial_die_info::fixup): Inherit has_const_value.
7526
7527 2020-04-07 Tom de Vries <tdevries@suse.de>
7528
7529 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7530 symbols without address.
7531
7532 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7533
7534 * nbsd-nat.h (struct thread_info): Add forward declaration.
7535 (nbsd_nat_target::thread_alive): Add.
7536 (nbsd_nat_target::thread_name): Likewise.
7537 (nbsd_nat_target::update_thread_list): Likewise.
7538 (update_thread_list::post_attach): Likewise.
7539 (post_attach::pid_to_str): Likewise.
7540 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7541 (nbsd_thread_lister): Add.
7542 (nbsd_nat_target::thread_alive): Likewise.
7543 (nbsd_nat_target::thread_name): Likewise.
7544 (nbsd_add_threads): Likewise.
7545 (update_thread_list::post_attach): Likewise.
7546 (nbsd_nat_target::update_thread_list): Likewise.
7547 (post_attach::pid_to_str): Likewise.
7548
7549 2020-04-06 Tom Tromey <tromey@adacore.com>
7550
7551 * ada-valprint.c (print_variant_part): Extract the variant field.
7552 (print_field_values): Use the field as the outer value when
7553 recursing.
7554
7555 2020-04-06 Tom Tromey <tromey@adacore.com>
7556
7557 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7558 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7559 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7560 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7561 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7562
7563 2020-04-06 Tom Tromey <tromey@adacore.com>
7564
7565 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7566 TYPE_CODE_ERROR.
7567
7568 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7569
7570 * nbsd-tdep.c: Include "gdbarch.h".
7571 Define enum with NetBSD signal numbers.
7572 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7573 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7574 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7575 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7576 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7577 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7578 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7579 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7580 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7581 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7582 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7583 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7584
7585 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7586
7587 PR gdb/25325
7588 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7589
7590 2020-04-03 Tom Tromey <tromey@adacore.com>
7591
7592 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7593 Read constant block.
7594
7595 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7596
7597 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7598 (gdb_bfd_get_full_section_contents): New declaration.
7599 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7600 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7601 gdb_bfd_get_full_section_contents.
7602
7603 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7604
7605 * exec.c (build_section_table): Replace internal_error with
7606 gdb_assert.
7607 (section_table_xfer_memory_partial): Likewise.
7608 * mdebugread.c (parse_partial_symbols): Likewise.
7609 * psymtab.c (lookup_partial_symbol): Likewise.
7610 * utils.c (wrap_here): Likewise.
7611
7612 2020-04-02 Tom Tromey <tromey@adacore.com>
7613
7614 * f-lang.c (build_fortran_types): Use arch_type to initialize
7615 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7616
7617 2020-04-02 Tom Tromey <tromey@adacore.com>
7618
7619 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7620 of attributes.
7621
7622 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7623 Bernd Edlinger <bernd.edlinger@hotmail.de>
7624 Tom Tromey <tromey@adacore.com>
7625
7626 * buildsym.c (buildsym_compunit::record_line): Remove
7627 deduplication code.
7628
7629 2020-04-02 Tom de Vries <tdevries@suse.de>
7630
7631 PR ada/24671
7632 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7633
7634 2020-04-02 Tom de Vries <tdevries@suse.de>
7635
7636 * dwarf2/read.c (dwarf2_gdb_index_functions,
7637 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7638 NULL.
7639 * psymtab.c (psym_lookup_global_symbol_language): New function.
7640 (psym_functions): Init psym_lookup_global_symbol_language with
7641 psym_lookup_global_symbol_language.
7642 * symfile-debug.c (debug_sym_quick_functions): Init
7643 lookup_global_symbol_language with NULL.
7644 * symfile.c (set_initial_language): Remove fixme comment.
7645 * symfile.h (struct quick_symbol_functions): Add
7646 lookup_global_symbol_language.
7647 * symtab.c (find_quick_global_symbol_language): New function.
7648 (find_main_name): Use find_quick_global_symbol_language.
7649
7650 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7651
7652 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7653
7654 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7655
7656 * buildsym.c (record_line): Fix undefined behavior and preserve
7657 lines at eof.
7658
7659 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7660
7661 * buildsym.c (record_line): Fix the resizing condition.
7662
7663 2020-04-01 Tom Tromey <tom@tromey.com>
7664
7665 * value.h (value_literal_complex): Add comment.
7666 * valops.c (value_literal_complex): Refer to value.h.
7667
7668 2020-04-01 Tom Tromey <tom@tromey.com>
7669
7670 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7671 (scalar_type): New rule, from typebase.
7672 (typebase): Use scalar_type. Recognize complex types.
7673 (field_name): Handle FLOAT_KEYWORD.
7674 (ident_tokens): Add _Complex and __complex__.
7675
7676 2020-04-01 Tom Tromey <tom@tromey.com>
7677
7678 PR exp/25299:
7679 * valarith.c (promotion_type, complex_binop): New functions.
7680 (scalar_binop): Handle complex numbers. Use promotion_type.
7681 (value_pos, value_neg, value_complement): Handle complex numbers.
7682
7683 2020-04-01 Tom Tromey <tom@tromey.com>
7684
7685 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7686 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7687 (parse_number): Handle complex numbers.
7688
7689 2020-04-01 Tom Tromey <tom@tromey.com>
7690
7691 * c-valprint.c (c_decorations): Change complex suffix to "i".
7692
7693 2020-04-01 Tom Tromey <tom@tromey.com>
7694
7695 * valprint.c (generic_value_print_complex): Use accessors.
7696 * value.h (value_real_part, value_imaginary_part): Declare.
7697 * valops.c (value_real_part, value_imaginary_part): New
7698 functions.
7699 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7700
7701 2020-04-01 Tom Tromey <tom@tromey.com>
7702
7703 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7704 (read_range_type): Update.
7705 * mdebugread.c (basic_type): Update.
7706 * go-lang.c (build_go_types): Use init_complex_type.
7707 * gdbtypes.h (struct main_type) <complex_type>: New member.
7708 (init_complex_type): Update.
7709 (arch_complex_type): Don't declare.
7710 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7711 Make name if none given. Use alloc_type_copy. Look for cached
7712 complex type.
7713 (arch_complex_type): Remove.
7714 (gdbtypes_post_init): Use init_complex_type.
7715 * f-lang.c (build_fortran_types): Use init_complex_type.
7716 * dwarf2/read.c (read_base_type): Update.
7717 * d-lang.c (build_d_types): Use init_complex_type.
7718 * ctfread.c (read_base_type): Update.
7719
7720 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7721
7722 * infrun.c (stop_all_threads): Update assertion, plus when
7723 stopping threads, take into account that we might be trying
7724 to stop an all-stop target.
7725 (stop_waiting): Call 'stop_all_threads' if there exists a
7726 non-stop target.
7727
7728 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7729
7730 * target.h (exists_non_stop_target): New function declaration.
7731 * target.c (exists_non_stop_target): New function.
7732
7733 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7734
7735 PR gdb/24789
7736 * eval.c (is_integral_or_integral_reference): New function.
7737 (evaluate_subexp_standard): Allow integer references in
7738 pointer arithmetic.
7739
7740 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7741
7742 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7743 check for no ptid in the stop reply when the target is non-stop.
7744
7745 2020-04-01 Tom Tromey <tromey@adacore.com>
7746
7747 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7748 "name" parameter to rvalue reference. Initialize m_name_holder.
7749 <lookup_name_info>: New overloads.
7750 <name>: Return gdb::string_view.
7751 <c_str>: New method.
7752 <make_ignore_params>: Update.
7753 <search_name_hash>: Update.
7754 <language_lookup_name>: Return const char *.
7755 <m_name>: Change type.
7756 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7757 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7758 (lookup_name_info::match_any): Update.
7759 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7760 Update.
7761 * minsyms.c (linkage_name_str): Update.
7762 * language.c (default_symbol_name_matcher): Update.
7763 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7764 Update.
7765 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7766 (ada_lookup_name_info::ada_lookup_name_info): Update.
7767 (literal_symbol_name_matcher): Update.
7768
7769 2020-04-01 Tom Tromey <tromey@adacore.com>
7770
7771 * psymtab.c (psymtab_search_name): Remove function.
7772 (psym_lookup_symbol): Create search name and lookup name here.
7773 (lookup_partial_symbol): Remove "name" parameter; add
7774 lookup_name.
7775 (psym_expand_symtabs_for_function): Update.
7776
7777 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7778
7779 PR tui/25597:
7780 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7781
7782 2020-03-31 Tom Tromey <tromey@adacore.com>
7783
7784 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7785 memcpy.
7786
7787 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7788
7789 * features/riscv/32bit-csr.xml: Regenerated.
7790 * features/riscv/64bit-csr.xml: Regenerated.
7791
7792 2020-03-30 Tom Tromey <tromey@adacore.com>
7793
7794 * ada-valprint.c (print_variant_part): Update.
7795 * ada-lang.h (ada_which_variant_applies): Update.
7796 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7797 outer_valaddr parameters; replace with "outer" value parameter.
7798 (to_fixed_variant_branch_type): Update.
7799
7800 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7801
7802 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7803 <list>. Remove inclusion of observable.h.
7804 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7805 (struct arch_lwp_info): New struct.
7806 (class ppc_linux_dreg_interface): New class.
7807 (struct ppc_linux_process_info): New struct.
7808 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7809 <low_new_clone, low_forget_process, low_prepare_to_resume>
7810 <copy_thread_dreg_state, mark_thread_stale>
7811 <mark_debug_registers_changed, register_hw_breakpoint>
7812 <clear_hw_breakpoint, register_wp, clear_wp>
7813 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7814 <num_memory_accesses, get_trigger_type>
7815 <create_watchpoint_request, hwdebug_point_cmp>
7816 <init_arch_lwp_info, get_arch_lwp_info>
7817 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7818 methods.
7819 <struct ptid_hash>: New inner struct.
7820 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7821 members.
7822 (saved_dabr_value, hwdebug_info, max_slots_number)
7823 (struct hw_break_tuple, struct thread_points, ppc_threads)
7824 (have_ptrace_hwdebug_interface)
7825 (hwdebug_find_thread_points_by_tid)
7826 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7827 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7828 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7829 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7830 use m_dreg_interface.
7831 (hwdebug_point_cmp): Change to...
7832 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7833 reference arguments instead of pointers.
7834 (ppc_linux_nat_target::ranged_break_num_registers): Use
7835 m_dreg_interface.
7836 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7837 m_dreg_interface. Call register_hw_breakpoint.
7838 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7839 m_dreg_interface. Call clear_hw_breakpoint.
7840 (get_trigger_type): Change to...
7841 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7842 comment.
7843 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7844 use m_dreg_interface. Call register_hw_breakpoint.
7845 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7846 use m_dreg_interface. Call clear_hw_breakpoint.
7847 (can_use_watchpoint_cond_accel): Change to...
7848 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7849 method. Update comment, use m_dreg_interface and
7850 m_process_info.
7851 (calculate_dvc): Change to...
7852 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7853 m_dreg_interface.
7854 (num_memory_accesses): Change to...
7855 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7856 (check_condition): Change to...
7857 (ppc_linux_nat_target::check_condition): ...this method.
7858 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7859 comment, use m_dreg_interface.
7860 (create_watchpoint_request): Change to...
7861 (ppc_linux_nat_target::create_watchpoint_request): ...this
7862 method. Use m_dreg_interface.
7863 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7864 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7865 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7866 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7867 (ppc_linux_nat_target::low_forget_process)
7868 (ppc_linux_nat_target::low_new_fork)
7869 (ppc_linux_nat_target::low_new_clone)
7870 (ppc_linux_nat_target::low_delete_thread)
7871 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7872 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7873 only call mark_thread_stale.
7874 (ppc_linux_thread_exit): Remove.
7875 (ppc_linux_nat_target::stopped_data_address): Change to...
7876 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7877 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7878 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7879 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7880 comment. Call low_stopped_data_address.
7881 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7882 m_dreg_interface.
7883 (ppc_linux_nat_target::masked_watch_num_registers): Use
7884 m_dreg_interface.
7885 (ppc_linux_nat_target::copy_thread_dreg_state)
7886 (ppc_linux_nat_target::mark_thread_stale)
7887 (ppc_linux_nat_target::mark_debug_registers_changed)
7888 (ppc_linux_nat_target::register_hw_breakpoint)
7889 (ppc_linux_nat_target::clear_hw_breakpoint)
7890 (ppc_linux_nat_target::register_wp)
7891 (ppc_linux_nat_target::clear_wp)
7892 (ppc_linux_nat_target::init_arch_lwp_info)
7893 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7894 (_initialize_ppc_linux_nat): Remove observer callback.
7895
7896 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7897
7898 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7899 (ppc_linux_nat_target::auxv_parse)
7900 (ppc_linux_nat_target::read_description)
7901 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7902 Move up.
7903
7904 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7905
7906 * linux-nat.h (low_new_clone): New method.
7907 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7908
7909 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7910
7911 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7912 (dbx_expand_psymtab): ... this.
7913 (start_psymtab): Update.
7914 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7915 (mdebug_expand_psymtab): ... this.
7916 (parse_partial_symbols): Update.
7917 (new_psymtab): Update.
7918 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7919 (xcoff_expand_psymtab): ... this.
7920 (xcoff_start_psymtab): Update.
7921
7922 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7923
7924 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7925 <expand_dependencies>: ... this.
7926 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7927 (partial_symtab::expand_dependencies): ... this.
7928 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7929 Update.
7930 (dwarf2_psymtab::expand_psymtab): Update.
7931 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7932 * mdebugread.c (psymtab_to_symtab_1): Update.
7933 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7934
7935 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7936
7937 * psympriv.h (discard_psymtab): Remove.
7938 * dbxread.c (dbx_end_psymtab): Update.
7939 * xcoffread.c (xcoff_end_psymtab): Update.
7940
7941 2020-03-28 Tom Tromey <tom@tromey.com>
7942
7943 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7944 comment.
7945
7946 2020-03-28 Tom Tromey <tom@tromey.com>
7947
7948 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7949
7950 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7951
7952 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7953
7954 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7955
7956 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7957
7958 2020-03-26 Tom Tromey <tom@tromey.com>
7959
7960 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7961 (mark_common_block_symbol_computed, read_tag_string_type)
7962 (attr_to_dynamic_prop, read_subrange_type): Update.
7963 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7964 to be methods on struct attribute.
7965 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7966 (read_call_site_scope, partial_die_info::read)
7967 (partial_die_info::read, lookup_die_type, follow_die_ref):
7968 Update.
7969 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7970 from dwarf2_get_ref_die_offset.
7971 (attribute::constant_value): New method, from
7972 dwarf2_get_attr_constant_value.
7973 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7974 Declare method.
7975 <constant_value>: New method.
7976
7977 2020-03-26 Tom Tromey <tom@tromey.com>
7978
7979 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7980 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7981 (dwarf_type_encoding_name): Move to stringify.c.
7982 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7983 * dwarf2/stringify.c: New file.
7984 * dwarf2/stringify.h: New file.
7985
7986 2020-03-26 Tom Tromey <tom@tromey.com>
7987
7988 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7989 Rewrite.
7990
7991 2020-03-26 Tom Tromey <tom@tromey.com>
7992
7993 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7994 methods.
7995 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7996 (lookup_ranges_base): Likewise.
7997 (read_cutu_die_from_dwo, read_full_die_1): Update.
7998
7999 2020-03-26 Tom Tromey <tom@tromey.com>
8000
8001 * dwarf2/read.c (read_import_statement, read_file_scope)
8002 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8003 (read_lexical_block_scope, read_call_site_scope)
8004 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8005 (handle_struct_member_die, process_structure_scope)
8006 (update_enumeration_type_from_children)
8007 (process_enumeration_scope, read_array_type, read_common_block)
8008 (read_namespace, read_module, read_subroutine_type): Update.
8009 (sibling_die): Remove.
8010
8011 2020-03-26 Tom Tromey <tom@tromey.com>
8012
8013 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8014 (build_type_psymtabs_reader, read_structure_type)
8015 (read_enumeration_type, read_full_die_1): Update.
8016 (dwarf2_attr_no_follow): Move to die.h.
8017 * dwarf2/die.h (struct die_info) <attr>: New method.
8018
8019 2020-03-26 Tom Tromey <tom@tromey.com>
8020
8021 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8022 <base_address>: Now an optional.
8023 (dwarf2_find_base_address, dwarf2_rnglists_process)
8024 (dwarf2_ranges_process, fill_in_loclist_baton)
8025 (dwarf2_symbol_mark_computed): Update.
8026
8027 2020-03-26 Tom Tromey <tom@tromey.com>
8028
8029 * dwarf2/read.c (struct die_info): Move to die.h.
8030 * dwarf2/die.h: New file.
8031
8032 2020-03-26 Tom Tromey <tom@tromey.com>
8033
8034 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8035 * dwarf2/read.c
8036 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8037 Move to line-header.c.
8038 (read_checked_initial_length_and_offset, read_formatted_entries):
8039 Likewise.
8040 (dwarf_decode_line_header): Split into two.
8041 * dwarf2/line-header.c
8042 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8043 Move from read.c.
8044 (read_checked_initial_length_and_offset, read_formatted_entries):
8045 Likewise.
8046 (dwarf_decode_line_header): New function, split from read.c.
8047
8048 2020-03-26 Tom Tromey <tom@tromey.com>
8049
8050 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8051 Declare method.
8052 * dwarf2/read.c (read_attribute_value): Update.
8053 (dwarf2_per_objfile::read_line_string): Rename from
8054 read_indirect_line_string.
8055 (read_formatted_entries): Update.
8056
8057 2020-03-26 Tom Tromey <tom@tromey.com>
8058
8059 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8060 variable.
8061
8062 2020-03-26 Tom Tromey <tom@tromey.com>
8063
8064 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8065 const.
8066 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8067 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8068 parameter const.
8069
8070 2020-03-26 Tom Tromey <tom@tromey.com>
8071
8072 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8073 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8074 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8075 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8076
8077 2020-03-26 Tom Tromey <tom@tromey.com>
8078
8079 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8080 file_names_size, file_full_name, file_file_name>: Use const.
8081 <file_name_at, file_names>: Add const overload.
8082 * dwarf2/line-header.c (line_header::file_file_name)
8083 (line_header::file_full_name): Update.
8084
8085 2020-03-26 Tom Tromey <tom@tromey.com>
8086
8087 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8088 (macro_start_file, consume_improper_spaces)
8089 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8090 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8091 (dwarf_decode_macros): Move to macro.c.
8092 * dwarf2/macro.c: New file.
8093 * dwarf2/macro.h: New file.
8094 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8095
8096 2020-03-26 Tom Tromey <tom@tromey.com>
8097
8098 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8099 method.
8100 * dwarf2/section.c: New method. From
8101 read_indirect_string_at_offset_from.
8102 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8103 (read_indirect_string_at_offset_from): Move to section.c.
8104 (read_indirect_string_at_offset): Rewrite.
8105 (read_indirect_line_string_at_offset): Remove.
8106 (read_indirect_string, read_indirect_line_string)
8107 (dwarf_decode_macro_bytes): Update.
8108
8109 2020-03-26 Tom Tromey <tom@tromey.com>
8110
8111 * dwarf2/section.h (struct dwarf2_section_info)
8112 <overload_complaint>: Declare.
8113 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8114 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8115 Rename from dwarf2_section_buffer_overflow_complaint.
8116 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8117 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8118
8119 2020-03-26 Tom Tromey <tom@tromey.com>
8120
8121 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8122 Declare.
8123 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8124 Move from read.c.
8125 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8126 to section.c.
8127
8128 2020-03-26 Tom Tromey <tom@tromey.com>
8129
8130 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8131
8132 2020-03-26 Tom Tromey <tom@tromey.com>
8133
8134 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8135 "builder".
8136 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8137 parameter.
8138 (dwarf_decode_macros): Update.
8139
8140 2020-03-26 Tom Tromey <tom@tromey.com>
8141
8142 * dwarf2/read.c (read_attribute_value): Update.
8143 (read_indirect_string_from_dwz): Move to dwz.c; change into
8144 method.
8145 (dwarf_decode_macro_bytes): Update.
8146 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8147 * dwarf2/dwz.c: New file.
8148 * Makefile.in (COMMON_SFILES): Add dwz.c.
8149
8150 2020-03-26 Tom Tromey <tom@tromey.com>
8151
8152 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8153 * dwarf2/read.c: Add include.
8154 * dwarf2/index-write.c: Add include.
8155 * dwarf2/index-cache.c: Add include.
8156 * dwarf2/dwz.h: New file.
8157
8158 2020-03-25 Tom Tromey <tom@tromey.com>
8159
8160 * compile/compile-object-load.c (get_out_value_type): Mention
8161 correct symbol name in error message.
8162
8163 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8164
8165 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8166
8167 2020-03-25 Tom de Vries <tdevries@suse.de>
8168
8169 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8170 * symmisc.c (dump_symtab_1): Print user and includes fields.
8171 (maintenance_info_symtabs): Same.
8172
8173 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8174
8175 PR gdb/25534
8176 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8177 (riscv_regcache_cooked_write): New function.
8178 (riscv_push_dummy_call): Use new function.
8179 (riscv_return_value): Likewise.
8180
8181 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8182
8183 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8184 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8185 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8186 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8187 * infrun.c (follow_fork): Likewise.
8188 (follow_fork_inferior): Likewise.
8189 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8190 * linux-nat.h (class linux_nat_target): Likewise.
8191 * remote.c (class remote_target) <follow_fork>: Likewise.
8192 (remote_target::follow_fork): Likewise.
8193 * target-delegates.c: Re-generate.
8194 * target.c (default_follow_fork): Likewise.
8195 (target_follow_fork): Likewise.
8196 * target.h (struct target_ops) <follow_fork>: Likewise.
8197 (target_follow_fork): Likewise.
8198
8199 2020-03-24 Tom de Vries <tdevries@suse.de>
8200
8201 * psymtab.c (maintenance_info_psymtabs): Print user field.
8202
8203 2020-03-20 Tom Tromey <tromey@adacore.com>
8204
8205 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8206 const.
8207 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8208 const.
8209
8210 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8211
8212 * ptrace.m4: Don't check for ptrace declaration.
8213 * config.in: Re-generate.
8214 * configure: Re-generate.
8215 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8216 not defined.
8217
8218 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8219
8220 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8221 `PTRACE_TYPE_RET'.
8222 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8223 * sparc-nat.c (gdb_ptrace): Likewise.
8224 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8225
8226 2020-03-20 Tom Tromey <tromey@adacore.com>
8227
8228 * c-exp.y (lex_one_token): Fix assert.
8229
8230 2020-03-20 Tom Tromey <tromey@adacore.com>
8231
8232 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8233 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8234 strncpy call.
8235
8236 2020-03-20 Tom Tromey <tromey@adacore.com>
8237
8238 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8239
8240 2020-03-20 Tom Tromey <tromey@adacore.com>
8241
8242 * ada-valprint.c (print_variant_part): Remove parameters; switch
8243 to value-based API.
8244 (print_field_values): Likewise.
8245 (ada_val_print_struct_union): Likewise.
8246 (ada_value_print_1): Update.
8247
8248 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8249
8250 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8251 nbsd_nat_target instead of inf_ptrace_target.
8252 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8253 nbsd_nat_target.
8254
8255 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8256
8257 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8258 it to the ptrace call.
8259 * (store_registers): Likewise.
8260
8261 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8262
8263 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8264 it to the ptrace call.
8265 * (store_registers): Likewise.
8266
8267 2020-03-19 Luis Machado <luis.machado@linaro.org>
8268
8269 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8270 valid, fetch vg value from ptrace.
8271
8272 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8273 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8274 * inf-ptrace.c: Likewise.
8275 * (gdb_ptrace): Add.
8276 * (inf_ptrace_target::resume): Update.
8277 * (inf_ptrace_target::xfer_partial): Likewise.
8278 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8279 * (inf_ptrace_peek_poke): Update.
8280
8281 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8282
8283 * x86-bsd-nat.c (gdb_ptrace): New.
8284 * (x86bsd_dr_set): Add new argument `ptid'.
8285 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8286 x86bsd_dr_set_addr): Update.
8287
8288 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8289
8290 * remote.c (remote_target::process_stop_reply): Handle events for
8291 all threads differently.
8292
8293 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8294
8295 * completer.c (completion_tracker::remove_completion): Define new
8296 function.
8297 * completer.h (completion_tracker::remove_completion): Declare new
8298 function.
8299 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8300 when adding a C++ function symbol.
8301
8302 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8303
8304 * completer.c (completion_tracker::completion_hash_entry): Define
8305 new class.
8306 (advance_to_filename_complete_word_point): Call
8307 recompute_lowest_common_denominator.
8308 (completion_tracker::completion_tracker): Call discard_completions
8309 to setup the hash table.
8310 (completion_tracker::discard_completions): Allow for being called
8311 from the constructor, pass new equal function, and element deleter
8312 when constructing the hash table. Initialise new class member
8313 variables.
8314 (completion_tracker::maybe_add_completion): Remove use of
8315 m_entries_vec, and store more information into m_entries_hash.
8316 (completion_tracker::recompute_lcd_visitor): New function, most
8317 content taken from...
8318 (completion_tracker::recompute_lowest_common_denominator):
8319 ...here, this now just visits each item in the hash calling the
8320 above visitor.
8321 (completion_tracker::build_completion_result): Remove use of
8322 m_entries_vec, call recompute_lowest_common_denominator.
8323 * completer.h (completion_tracker::have_completions): Remove use
8324 of m_entries_vec.
8325 (completion_tracker::completion_hash_entry): Declare new class.
8326 (completion_tracker::recompute_lowest_common_denominator): Change
8327 function signature.
8328 (completion_tracker::recompute_lcd_visitor): Declare new function.
8329 (completion_tracker::m_entries_vec): Delete.
8330 (completion_tracker::m_entries_hash): Initialize to NULL.
8331 (completion_tracker::m_lowest_common_denominator_valid): New
8332 member variable.
8333 (completion_tracker::m_lowest_common_denominator_max_length): New
8334 member variable.
8335
8336 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8337
8338 * regformats/regdef.h: Put reg in gdb namespace.
8339
8340 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8341
8342 * i386-bsd-nat.c (gdb_ptrace): New.
8343 * (i386bsd_fetch_inferior_registers,
8344 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8345 * (i386bsd_fetch_inferior_registers,
8346 i386bsd_store_inferior_registers) Use gdb_ptrace.
8347
8348 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8349
8350 * amd64-bsd-nat.c (gdb_ptrace): New.
8351 * (amd64bsd_fetch_inferior_registers,
8352 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8353 * (amd64bsd_fetch_inferior_registers,
8354 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8355
8356 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8357
8358 * user-regs.c (user_reg::read): Rename to...
8359 (user_reg::xread): ...this.
8360 * (append_user_reg): Rename argument `read' to `xread'.
8361 * (user_reg_add_builtin): Likewise.
8362 * (user_reg_add): Likewise.
8363 * (value_of_user_reg): Likewise.
8364
8365 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8366
8367 * sparc-nat.c (gdb_ptrace): New.
8368 * sparc-nat.c (sparc_fetch_inferior_registers)
8369 (sparc_store_inferior_registers) Remove obsolete comment.
8370 * sparc-nat.c (sparc_fetch_inferior_registers)
8371 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8372 * sparc-nat.c (sparc_fetch_inferior_registers)
8373 (sparc_store_inferior_registers) Use gdb_ptrace.
8374
8375 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8376
8377 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8378 it to the ptrace call.
8379 * sh-nbsd-nat.c (store_registers): Likewise.
8380
8381 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8382
8383 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8384 nbsd_nat_target instead of inf_ptrace_target.
8385 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8386 nbsd_nat_target.
8387
8388 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8389
8390 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8391
8392 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8393
8394 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8395 <sys/sysctl.h>.
8396 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8397
8398 2020-03-17 Tom de Vries <tdevries@suse.de>
8399
8400 PR gdb/23710
8401 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8402 fields.
8403 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8404 fields.
8405 (process_imported_unit_die): Skip import of c++ CUs.
8406
8407 2020-03-16 Tom Tromey <tom@tromey.com>
8408
8409 * p-valprint.c (pascal_object_print_value): Initialize
8410 base_value.
8411
8412 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8413 Shahab Vahedi <shahab@synopsys.com>
8414
8415 * Makefile.in: Add arch/arc.o
8416 * configure.tgt: Likewise.
8417 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8418 (_initialize_arc_tdep): Don't initialize old target descriptions.
8419 (arc_read_description): New function to cache target descriptions.
8420 * arc-tdep.h (arc_read_description): Add proto type.
8421 * arch/arc.c: New file.
8422 * arch/arc.h: Likewise.
8423 * features/Makefile: Replace old target descriptions with new.
8424 * features/arc-arcompact.c: Remove.
8425 * features/arc-arcompact.xml: Likewise.
8426 * features/arc-v2.c: Likewise
8427 * features/arc-v2.xml: Likewise
8428 * features/arc/aux-arcompact.xml: New file.
8429 * features/arc/aux-v2.xml: Likewise.
8430 * features/arc/core-arcompact.xml: Likewise.
8431 * features/arc/core-v2.xml: Likewise.
8432 * features/arc/aux-arcompact.c: Generate.
8433 * features/arc/aux-v2.c: Likewise.
8434 * features/arc/core-arcompact.c: Likewise.
8435 * features/arc/core-v2.c: Likewise.
8436 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8437
8438 2020-03-16 Tom Tromey <tromey@adacore.com>
8439
8440 PR gdb/25663:
8441 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8442 putting value into bcache.
8443
8444 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8445
8446 PR gdb/21500
8447 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8448 to...
8449 (amd64_windows_init_abi_common): ... this. Don't set size of
8450 long type.
8451 (amd64_windows_init_abi): New function.
8452 (amd64_cygwin_init_abi): New function.
8453 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8454 the Cygwin OS ABI.
8455 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8456 comment.
8457
8458 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8459
8460 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8461 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8462 (pe_import_directory_entry): New struct type.
8463 (is_linked_with_cygwin_dll): New function.
8464 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8465 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8466 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8467
8468 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8469
8470 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8471 i386_cygwin_core_osabi_sniffer.
8472
8473 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8474
8475 * i386-cygwin-tdep.c: Rename to...
8476 * i386-windows-tdep.c: ... this.
8477 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8478 i386-windows-tdep.c.
8479 * configure.tgt: Likewise.
8480
8481 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8482
8483 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8484 * osabi.c (gdb_osabi_names): Add "Windows".
8485 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8486 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8487 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8488 i386_cygwin_osabi_sniffer.
8489 (_initialize_i386_cygwin_tdep): Register OS ABI
8490 GDB_OSABI_WINDOWS for i386.
8491 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8492 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8493 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8494 for x86-64.
8495 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8496 when the target matches '*-*-mingw*'.
8497
8498 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8499
8500 * defs.h (enum gdb_osabi): Move to...
8501 * osabi.h (enum gdb_osabi): ... here.
8502 * gdbarch.sh: Include osabi.h in gdbarch.h.
8503 * gdbarch.h: Re-generate.
8504
8505 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8506
8507 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8508 function.
8509 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8510
8511 2020-03-14 Tom Tromey <tom@tromey.com>
8512
8513 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8514 for C++.
8515 (c_type_print_modifier): Likewise. Add "language" parameter.
8516 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8517 (c_type_print_base_1): Update.
8518 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8519 constants.
8520 * type-stack.c (type_stack::insert): Handle tp_atomic and
8521 tp_restrict.
8522 (type_stack::follow_type_instance_flags): Likewise.
8523 (type_stack::follow_types): Likewise. Merge type-following code.
8524 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8525 (space_identifier, cv_with_space_id)
8526 (const_or_volatile_or_space_identifier_noopt)
8527 (const_or_volatile_or_space_identifier): Remove.
8528 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8529 rules.
8530 (ptr_operator, typebase): Update.
8531 (enum token_flag) <FLAG_C>: New constant.
8532 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8533 "_Atomic".
8534 (lex_one_token): Handle FLAG_C.
8535
8536 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8537
8538 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8539 it to the ptrace call.
8540 * m68k-bsd-nat.c (store_registers): Likewise.
8541
8542 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8543
8544 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8545 gdb_byte *.
8546 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8547 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8548 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8549
8550 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8551
8552 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8553 nbsd_nat_target instead of inf_ptrace_target.
8554 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8555 nbsd_nat_target.
8556
8557 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8558
8559 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8560 register_t.
8561
8562 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8563
8564 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8565 it to the ptrace call.
8566 * alpha-bsd-nat.c (store_registers): Likewise.
8567
8568 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8569
8570 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8571 includes.
8572 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8573 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8574 fill_fpregset): Likewise.
8575
8576 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8577
8578 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8579 nbsd_nat_target instead of inf_ptrace_target.
8580 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8581 nbsd_nat_target.
8582
8583 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8584
8585 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8586 register_t.
8587
8588 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8589
8590 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8591 it to the ptrace call.
8592 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8593 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8594 * arm-nbsd-nat.c (store_register): Likewise.
8595 * arm-nbsd-nat.c (store_regs): Likewise.
8596 * arm-nbsd-nat.c (store_fp_register): Likewise.
8597 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8598
8599 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8600
8601 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8602 nbsd_nat_target instead of inf_ptrace_target.
8603 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8604 nbsd_nat_target.
8605
8606 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8607
8608 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8609 it to the ptrace call.
8610 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8611
8612 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8613
8614 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8615 it to the ptrace call.
8616 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8617
8618 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8619
8620 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8621 gdb_byte *.
8622 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8623
8624 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8625
8626 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8627 instead of inf_ptrace_target.
8628 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8629 nbsd_nat_target.
8630
8631 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8632
8633 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8634 register_t.
8635
8636 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8637
8638 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8639 register_t.
8640
8641 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8642
8643 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8644 register_t.
8645
8646 2020-03-13 Tom Tromey <tom@tromey.com>
8647
8648 * value.h (val_print): Don't declare.
8649 * valprint.h (val_print_array_elements)
8650 (val_print_scalar_formatted, generic_val_print): Don't declare.
8651 * valprint.c (generic_val_print_array): Take a struct value.
8652 (generic_val_print_ptr, generic_val_print_memberptr)
8653 (generic_val_print_bool, generic_val_print_int)
8654 (generic_val_print_char, generic_val_print_complex)
8655 (generic_val_print): Remove.
8656 (generic_value_print): Update.
8657 (do_val_print): Remove unused parameters. Don't call
8658 la_val_print.
8659 (val_print): Remove.
8660 (common_val_print): Update. Don't call value_check_printable.
8661 (val_print_scalar_formatted, val_print_array_elements): Remove.
8662 * rust-lang.c (rust_val_print): Remove.
8663 (rust_language_defn): Update.
8664 * p-valprint.c (pascal_val_print): Remove.
8665 (pascal_value_print_inner): Update.
8666 (pascal_object_print_val_fields, pascal_object_print_val):
8667 Remove.
8668 (pascal_object_print_static_field): Update.
8669 * p-lang.h (pascal_val_print): Don't declare.
8670 * p-lang.c (pascal_language_defn): Update.
8671 * opencl-lang.c (opencl_language_defn): Update.
8672 * objc-lang.c (objc_language_defn): Update.
8673 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8674 * m2-lang.h (m2_val_print): Don't declare.
8675 * m2-lang.c (m2_language_defn): Update.
8676 * language.h (struct language_defn) <la_val_print>: Remove.
8677 * language.c (unk_lang_value_print_inner): Rename. Change
8678 argument types.
8679 (unknown_language_defn, auto_language_defn): Update.
8680 * go-valprint.c (go_val_print): Remove.
8681 * go-lang.h (go_val_print): Don't declare.
8682 * go-lang.c (go_language_defn): Update.
8683 * f-valprint.c (f_val_print): Remove.
8684 * f-lang.h (f_value_print): Don't declare.
8685 * f-lang.c (f_language_defn): Update.
8686 * d-valprint.c (d_val_print): Remove.
8687 * d-lang.h (d_value_print): Don't declare.
8688 * d-lang.c (d_language_defn): Update.
8689 * cp-valprint.c (cp_print_value_fields)
8690 (cp_print_value_fields_rtti, cp_print_value): Remove.
8691 (cp_print_static_field): Update.
8692 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8693 (c_val_print_struct, c_val_print_union, c_val_print_int)
8694 (c_val_print_memberptr, c_val_print): Remove.
8695 * c-lang.h (c_val_print_array, cp_print_value_fields)
8696 (cp_print_value_fields_rtti): Don't declare.
8697 * c-lang.c (c_language_defn, cplus_language_defn)
8698 (asm_language_defn, minimal_language_defn): Update.
8699 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8700 (ada_val_print_enum): Take a struct value.
8701 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8702 (ada_val_print): Remove.
8703 (ada_value_print_1): Update.
8704 (printable_val_type): Remove.
8705 * ada-lang.h (ada_val_print): Don't declare.
8706 * ada-lang.c (ada_language_defn): Update.
8707
8708 2020-03-13 Tom Tromey <tom@tromey.com>
8709
8710 * valprint.c (do_val_print): Update.
8711 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8712 a struct value.
8713 (value_to_value_object_no_release): Declare.
8714 * python/py-value.c (value_to_value_object_no_release): New
8715 function.
8716 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8717 struct value.
8718 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8719 function.
8720 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8721 a struct value.
8722 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8723 Declare.
8724 (gdbscm_apply_val_pretty_printer): Take a struct value.
8725 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8726 value.
8727 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8728 value.
8729 * extension-priv.h (struct extension_language_ops)
8730 <apply_val_pretty_printer>: Take a struct value.
8731 * cp-valprint.c (cp_print_value): Create a struct value.
8732 (cp_print_value): Update.
8733
8734 2020-03-13 Tom Tromey <tom@tromey.com>
8735
8736 * ada-valprint.c (print_field_values): Call common_val_print.
8737
8738 2020-03-13 Tom Tromey <tom@tromey.com>
8739
8740 * ada-valprint.c (val_print_packed_array_elements): Remove
8741 bitoffset and val parameters. Call common_val_print.
8742 (ada_val_print_string): Remove offset, address, and original_value
8743 parameters.
8744 (ada_val_print_array): Update.
8745 (ada_value_print_array): New function.
8746 (ada_value_print_1): Call it.
8747
8748 2020-03-13 Tom Tromey <tom@tromey.com>
8749
8750 * ada-valprint.c (ada_value_print): Use common_val_print.
8751
8752 2020-03-13 Tom Tromey <tom@tromey.com>
8753
8754 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8755
8756 2020-03-13 Tom Tromey <tom@tromey.com>
8757
8758 * ada-valprint.c (ada_value_print_num): New function.
8759 (ada_value_print_1): Use it.
8760
8761 2020-03-13 Tom Tromey <tom@tromey.com>
8762
8763 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8764
8765 2020-03-13 Tom Tromey <tom@tromey.com>
8766
8767 * ada-valprint.c (ada_value_print_ptr): New function.
8768 (ada_value_print_1): Use it.
8769
8770 2020-03-13 Tom Tromey <tom@tromey.com>
8771
8772 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8773 call common_val_print.
8774 (ada_val_print_1): Update.
8775 (ada_value_print_1): New function.
8776 (ada_value_print_inner): Rewrite.
8777
8778 2020-03-13 Tom Tromey <tom@tromey.com>
8779
8780 * cp-valprint.c (cp_print_value_fields): Update.
8781 (cp_print_value): New function.
8782
8783 2020-03-13 Tom Tromey <tom@tromey.com>
8784
8785 * m2-valprint.c (m2_value_print_inner): Use
8786 cp_print_value_fields.
8787 * cp-valprint.c (cp_print_value_fields): New function.
8788 * c-valprint.c (c_value_print_struct): New function.
8789 (c_value_print_inner): Use c_value_print_struct.
8790 * c-lang.h (cp_print_value_fields): Declare.
8791
8792 2020-03-13 Tom Tromey <tom@tromey.com>
8793
8794 * c-valprint.c (c_value_print_array): New function.
8795 (c_value_print_inner): Use it.
8796
8797 2020-03-13 Tom Tromey <tom@tromey.com>
8798
8799 * c-valprint.c (c_value_print_memberptr): New function.
8800 (c_value_print_inner): Use it.
8801
8802 2020-03-13 Tom Tromey <tom@tromey.com>
8803
8804 * c-valprint.c (c_value_print_int): New function.
8805 (c_value_print_inner): Use it.
8806
8807 2020-03-13 Tom Tromey <tom@tromey.com>
8808
8809 * c-valprint.c (c_value_print_ptr): New function.
8810 (c_value_print_inner): Use it.
8811
8812 2020-03-13 Tom Tromey <tom@tromey.com>
8813
8814 * c-valprint.c (c_value_print_inner): Rewrite.
8815
8816 2020-03-13 Tom Tromey <tom@tromey.com>
8817
8818 * valprint.c (generic_value_print_complex): New function.
8819 (generic_value_print): Use it.
8820
8821 2020-03-13 Tom Tromey <tom@tromey.com>
8822
8823 * valprint.c (generic_val_print_float): Don't call
8824 val_print_scalar_formatted.
8825 (generic_val_print, generic_value_print): Update.
8826
8827 2020-03-13 Tom Tromey <tom@tromey.com>
8828
8829 * valprint.c (generic_value_print_char): New function
8830 (generic_value_print): Use it.
8831
8832 2020-03-13 Tom Tromey <tom@tromey.com>
8833
8834 * valprint.c (generic_value_print_int): New function.
8835 (generic_value_print): Use it.
8836
8837 2020-03-13 Tom Tromey <tom@tromey.com>
8838
8839 * valprint.c (generic_value_print_bool): New function.
8840 (generic_value_print): Use it.
8841
8842 2020-03-13 Tom Tromey <tom@tromey.com>
8843
8844 * valprint.c (generic_val_print_func): Simplify.
8845 (generic_val_print, generic_value_print): Update.
8846
8847 2020-03-13 Tom Tromey <tom@tromey.com>
8848
8849 * valprint.c (generic_val_print_flags): Remove.
8850 (generic_val_print, generic_value_print): Update.
8851 (val_print_type_code_flags): Add original_value parameter.
8852
8853 2020-03-13 Tom Tromey <tom@tromey.com>
8854
8855 * valprint.c (generic_val_print): Update.
8856 (generic_value_print): Update.
8857 * valprint.c (generic_val_print_enum): Don't call
8858 val_print_scalar_formatted.
8859
8860 2020-03-13 Tom Tromey <tom@tromey.com>
8861
8862 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8863 * valprint.c (generic_value_print_ptr): New function.
8864
8865 2020-03-13 Tom Tromey <tom@tromey.com>
8866
8867 * valprint.c (generic_value_print): Rewrite.
8868
8869 2020-03-13 Tom Tromey <tom@tromey.com>
8870
8871 * p-valprint.c (pascal_object_print_value_fields)
8872 (pascal_object_print_value): New functions.
8873
8874 2020-03-13 Tom Tromey <tom@tromey.com>
8875
8876 * p-valprint.c (pascal_value_print_inner): Rewrite.
8877
8878 2020-03-13 Tom Tromey <tom@tromey.com>
8879
8880 * f-valprint.c (f_value_print_innner): Rewrite.
8881
8882 2020-03-13 Tom Tromey <tom@tromey.com>
8883
8884 * m2-valprint.c (m2_print_unbounded_array): New overload.
8885 (m2_print_unbounded_array): Update.
8886 (m2_print_array_contents): Take a struct value.
8887 (m2_value_print_inner): Rewrite.
8888
8889 2020-03-13 Tom Tromey <tom@tromey.com>
8890
8891 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8892 (d_value_print_inner): New function.
8893 * d-lang.h (d_value_print_inner): Declare.
8894 * d-lang.c (d_language_defn): Use d_value_print_inner.
8895
8896 2020-03-13 Tom Tromey <tom@tromey.com>
8897
8898 * go-valprint.c (go_value_print_inner): New function.
8899 * go-lang.h (go_value_print_inner): Declare.
8900 * go-lang.c (go_language_defn): Use go_value_print_inner.
8901
8902 2020-03-13 Tom Tromey <tom@tromey.com>
8903
8904 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8905 API.
8906 (rust_val_print): Rewrite.
8907 (rust_value_print_inner): New function, from rust_val_print.
8908 (rust_language_defn): Use rust_value_print_inner.
8909
8910 2020-03-13 Tom Tromey <tom@tromey.com>
8911
8912 * ada-valprint.c (ada_value_print_inner): New function.
8913 * ada-lang.h (ada_value_print_inner): Declare.
8914 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8915
8916 2020-03-13 Tom Tromey <tom@tromey.com>
8917
8918 * f-valprint.c (f_value_print_innner): New function.
8919 * f-lang.h (f_value_print_innner): Declare.
8920 * f-lang.c (f_language_defn): Use f_value_print_innner.
8921
8922 2020-03-13 Tom Tromey <tom@tromey.com>
8923
8924 * p-valprint.c (pascal_value_print_inner): New function.
8925 * p-lang.h (pascal_value_print_inner): Declare.
8926 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8927
8928 2020-03-13 Tom Tromey <tom@tromey.com>
8929
8930 * m2-valprint.c (m2_value_print_inner): New function.
8931 * m2-lang.h (m2_value_print_inner): Declare.
8932 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8933
8934 2020-03-13 Tom Tromey <tom@tromey.com>
8935
8936 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8937 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8938 * c-valprint.c (c_value_print_inner): New function.
8939 * c-lang.h (c_value_print_inner): Declare.
8940 * c-lang.c (c_language_defn, cplus_language_defn)
8941 (asm_language_defn, minimal_language_defn): Use
8942 c_value_print_inner.
8943
8944 2020-03-13 Tom Tromey <tom@tromey.com>
8945
8946 * p-valprint.c (pascal_object_print_value_fields): Now static.
8947 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8948
8949 2020-03-13 Tom Tromey <tom@tromey.com>
8950
8951 * c-valprint.c (c_val_print_array): Simplify.
8952
8953 2020-03-13 Tom Tromey <tom@tromey.com>
8954
8955 * valprint.c (value_print_array_elements): New function.
8956 * valprint.h (value_print_array_elements): Declare.
8957
8958 2020-03-13 Tom Tromey <tom@tromey.com>
8959
8960 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8961 * mips-tdep.c (mips_print_register): Use
8962 value_print_scalar_formatted.
8963
8964 2020-03-13 Tom Tromey <tom@tromey.com>
8965
8966 * valprint.h (value_print_scalar_formatted): Declare.
8967 * valprint.c (value_print_scalar_formatted): New function.
8968
8969 2020-03-13 Tom Tromey <tom@tromey.com>
8970
8971 * valprint.h (generic_value_print): Declare.
8972 * valprint.c (generic_value_print): New function.
8973
8974 2020-03-13 Tom Tromey <tom@tromey.com>
8975
8976 * valprint.c (do_val_print): Call la_value_print_inner, if
8977 available.
8978 * rust-lang.c (rust_language_defn): Update.
8979 * p-lang.c (pascal_language_defn): Update.
8980 * opencl-lang.c (opencl_language_defn): Update.
8981 * objc-lang.c (objc_language_defn): Update.
8982 * m2-lang.c (m2_language_defn): Update.
8983 * language.h (struct language_defn) <la_value_print_inner>: New
8984 member.
8985 * language.c (unknown_language_defn, auto_language_defn): Update.
8986 * go-lang.c (go_language_defn): Update.
8987 * f-lang.c (f_language_defn): Update.
8988 * d-lang.c (d_language_defn): Update.
8989 * c-lang.c (c_language_defn, cplus_language_defn)
8990 (asm_language_defn, minimal_language_defn): Update.
8991 * ada-lang.c (ada_language_defn): Update.
8992
8993 2020-03-13 Tom Tromey <tom@tromey.com>
8994
8995 * c-valprint.c (c_value_print): Use common_val_print.
8996
8997 2020-03-13 Tom Tromey <tom@tromey.com>
8998
8999 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9000
9001 2020-03-13 Tom Tromey <tom@tromey.com>
9002
9003 * f-valprint.c (f77_print_array_1, f_val_print): Use
9004 common_val_print.
9005
9006 2020-03-13 Tom Tromey <tom@tromey.com>
9007
9008 * riscv-tdep.c (riscv_print_one_register_info): Use
9009 common_val_print.
9010
9011 2020-03-13 Tom Tromey <tom@tromey.com>
9012
9013 * mi/mi-main.c (output_register): Use common_val_print.
9014
9015 2020-03-13 Tom Tromey <tom@tromey.com>
9016
9017 * infcmd.c (default_print_one_register_info): Use
9018 common_val_print.
9019
9020 2020-03-13 Tom Tromey <tom@tromey.com>
9021
9022 * valprint.h (common_val_print_checked): Declare.
9023 * valprint.c (common_val_print_checked): New function.
9024 * stack.c (print_frame_arg): Use common_val_print_checked.
9025
9026 2020-03-13 Tom Tromey <tom@tromey.com>
9027
9028 * valprint.c (do_val_print): New function, from val_print.
9029 (val_print): Use do_val_print.
9030 (common_val_print): Use do_val_print.
9031
9032 2020-03-13 Tom Tromey <tom@tromey.com>
9033
9034 * valprint.c (value_print): Use scoped_value_mark.
9035
9036 2020-03-13 Tom de Vries <tdevries@suse.de>
9037
9038 PR symtab/25646
9039 * psymtab.c (partial_symtab::partial_symtab): Don't set
9040 globals_offset and statics_offset. Push element onto
9041 current_global_psymbols and current_static_psymbols stacks.
9042 (concat): New function.
9043 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9044 element from current_global_psymbols and current_static_psymbols
9045 stacks. Concat popped elements to global_psymbols and
9046 static_symbols.
9047 (add_psymbol_to_list): Use current_global_psymbols and
9048 current_static_psymbols stacks.
9049 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9050 current_static_psymbols fields.
9051
9052 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9053
9054 * corelow.c (sniff_core_bfd): Remove.
9055 (class core_target) <m_core_vec>: Remove.
9056 (core_target::core_target): Update.
9057 (core_file_fns): Remove.
9058 (deprecated_add_core_fns): Remove.
9059 (default_core_sniffer): Remove.
9060 (sniff_core_bfd): Remove.
9061 (default_check_format): Remove.
9062 (gdb_check_format): Remove.
9063 (core_target_open): Update.
9064 (core_target::get_core_register_section): Update.
9065 (get_core_registers_cb): Update.
9066 (core_target::fetch_registers): Update.
9067 * gdbcore.h (struct core_fns): Remove.
9068 (deprecated_add_core_fns): Remove.
9069 (default_core_sniffer): Remove.
9070 (default_check_format): Remove.
9071
9072 2020-03-12 Tom Tromey <tom@tromey.com>
9073
9074 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9075 CORE_ADDR.
9076 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9077
9078 2020-03-12 Tom Tromey <tom@tromey.com>
9079
9080 * remote.c (remote_target::download_tracepoint)
9081 (remote_target::enable_tracepoint)
9082 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9083 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9084 sprintf_vma.
9085
9086 2020-03-12 Tom Tromey <tom@tromey.com>
9087
9088 * symfile-mem.c: Update CORE_ADDR size assert.
9089
9090 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9091
9092 * selftest.m4: Move to gdbsupport/.
9093 * acinclude.m4: Update path to selftest.m4.
9094
9095 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9096
9097 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9098 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9099 gdbarch-selfselftests.c and selftest-arch.c.
9100 (SUBDIR_UNITTESTS_OBS): Rename to...
9101 (SELFTESTS_OBS): ... this.
9102 (COMMON_SFILES): Remove disasm-selftests.c and
9103 gdbarch-selftests.c.
9104 * configure.ac: Don't add selftest-arch.{c,o} to
9105 CONFIG_{SRCS,OBS}.
9106 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9107 preprocessor conditions.
9108
9109 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9110
9111 * configure.ac: Don't source bfd/development.sh.
9112 * selftest.m4: Modify comment.
9113 * configure: Re-generate.
9114
9115 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9116
9117 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9118 not "true" or "false".
9119 * configure: Re-generate.
9120
9121 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9122
9123 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9124 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9125 renamed to arm_nbsd_supply_gregset.
9126 (fetch_register): Update to call arm_nbsd_supply_gregset.
9127 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9128 (arm_netbsd_nat_target::fetch_registers): Update.
9129 (fetch_elfcore_registers): Removed.
9130 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9131 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9132 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9133 not require NetBSD system headers.
9134 (arm_nbsd_regset): New struct.
9135 (arm_nbsd_iterate_over_regset_sections): New function.
9136 (arm_netbsd_init_abi_common): Updated to call
9137 set_gdbarch_iterate_over_regset_sections.
9138 * arm-nbsd-tdep.h: New file.
9139
9140 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9141
9142 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9143 recursion.
9144
9145 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9146
9147 * configure: Re-generate.
9148
9149 2020-03-11 Tom Tromey <tromey@adacore.com>
9150
9151 * ada-typeprint.c (print_choices): Fix comment.
9152
9153 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9154
9155 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9156 previous item in the list, when the list has no items.
9157
9158 2020-03-11 Tom de Vries <tdevries@suse.de>
9159
9160 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9161 PROP_LOCLIST handling code.
9162
9163 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9164
9165 * buildsym-legacy.c (record_line): Pass extra parameter to
9166 record_line.
9167 * buildsym.c (buildsym_compunit::record_line): Take an extra
9168 parameter, reduce duplication in the line table, and record the
9169 is_stmt flag in the line table.
9170 * buildsym.h (buildsym_compunit::record_line): Add extra
9171 parameter.
9172 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9173 non-statement lines.
9174 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9175 this to the symtab builder.
9176 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9177 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9178 through to dwarf_record_line_1.
9179 * infrun.c (process_event_stop_test): When stepping, don't stop at
9180 a non-statement instruction, and only refresh the step info when
9181 we land in the middle of a line's range. Also add an extra
9182 comment.
9183 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9184 field.
9185 * record-btrace.c (btrace_find_line_range): Only record lines
9186 marked as is-statement.
9187 * stack.c (frame_show_address): Show the frame address if we are
9188 in a non-statement sal.
9189 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9190 (maintenance_print_one_line_table): Print a header for the is_stmt
9191 column, and include is_stmt information in the output.
9192 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9193 preference to non-statements.
9194 (find_pcs_for_symtab_line): Prefer is-statement entries.
9195 (find_line_common): Likewise.
9196 * symtab.h (struct linetable_entry): Add is_stmt field.
9197 (struct symtab_and_line): Likewise.
9198 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9199 arranging the line table.
9200
9201 2020-03-07 Tom de Vries <tdevries@suse.de>
9202
9203 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9204 DIE.
9205
9206 2020-03-07 Tom Tromey <tom@tromey.com>
9207
9208 * valops.c (value_literal_complex): Remove obsolete comment.
9209 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9210 comment.
9211
9212 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9213
9214 * infrun.h: Forward-declare thread_info.
9215 (set_step_info): Add thread_info parameter, add doc.
9216 * infrun.c (set_step_info): Add thread_info parameter, move doc
9217 to header.
9218 * infrun.c (process_event_stop_test): Pass thread to
9219 set_step_info call.
9220 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9221 set_step_info.
9222 (prepare_one_step): Add thread_info parameter, pass it to
9223 set_step_frame and prepare_one_step (recursive) call.
9224 (step_1): Pass thread to prepare_one_step call.
9225 (step_command_fsm::should_stop): Pass thread to
9226 prepare_one_step.
9227 (until_next_fsm): Pass thread to set_step_frame call.
9228 (finish_command): Pass thread to set_step_info call.
9229
9230 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9231
9232 * windows-tdep.c (windows_solib_create_inferior_hook):
9233 Check if inferior is running.
9234
9235 2020-03-06 Tom de Vries <tdevries@suse.de>
9236
9237 * NEWS: Fix "the the".
9238 * ctfread.c: Same.
9239
9240 2020-03-06 Tom de Vries <tdevries@suse.de>
9241
9242 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9243
9244 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9245
9246 * .dir-locals.el: Add a comment referencing the other copies of
9247 this file.
9248
9249 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9250
9251 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9252 psargs.
9253
9254 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9255
9256 * .gitattributes: New file.
9257
9258 2020-03-04 Tom Tromey <tom@tromey.com>
9259
9260 * symmisc.c (print_symbol_bcache_statistics)
9261 (print_objfile_statistics): Update.
9262 * symfile.c (allocate_symtab): Use intern.
9263 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9264 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9265 macro_cache>: Remove.
9266 <string_cache>: New member.
9267 (struct objfile) <intern>: New methods.
9268 * elfread.c (elf_symtab_read): Use intern.
9269 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9270 (dwarf2_compute_name, dwarf2_physname)
9271 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9272 names.
9273 (guess_partial_die_structure_name): Update.
9274 (partial_die_info::fixup): Intern name.
9275 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9276 name.
9277 (dwarf2_name): Intern name. Update.
9278 * buildsym.c (buildsym_compunit::get_macro_table): Use
9279 string_cache.
9280
9281 2020-03-04 Tom Tromey <tom@tromey.com>
9282
9283 * jit.c (bfd_open_from_target_memory): Make "target" const.
9284 * corefile.c (gnutarget): Now const.
9285 * gdbcore.h (gnutarget): Now const.
9286
9287 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9288
9289 * NEWS: Mention support for WOW64 processes.
9290 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9291 (amd64_windows_segment_register_p): Remove static.
9292 (_initialize_amd64_windows_nat): Update.
9293 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9294 * i386-windows-nat.c (context_offset): Update.
9295 (i386_mappings): Rename and remove static.
9296 (i386_windows_segment_register_p): Remove static.
9297 (_initialize_i386_windows_nat): Update.
9298 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9299 (STATUS_WX86_SINGLE_STEP): New macro.
9300 (EnumProcessModulesEx): New macro.
9301 (Wow64SuspendThread): New macro.
9302 (Wow64GetThreadContext): New macro.
9303 (Wow64SetThreadContext): New macro.
9304 (Wow64GetThreadSelectorEntry): New macro.
9305 (windows_set_context_register_offsets): Add static.
9306 (windows_set_segment_register_p): Likewise.
9307 (windows_add_thread): Adapt for WOW64 processes.
9308 (windows_fetch_one_register): Likewise.
9309 (windows_nat_target::fetch_registers): Likewise.
9310 (windows_store_one_register): Likewise.
9311 (display_selector): Likewise.
9312 (display_selectors): Likewise.
9313 (handle_exception): Likewise.
9314 (windows_continue): Likewise.
9315 (windows_nat_target::resume): Likewise.
9316 (windows_add_all_dlls): Likewise.
9317 (do_initial_windows_stuff): Likewise.
9318 (windows_nat_target::attach): Likewise.
9319 (windows_get_exec_module_filename): Likewise.
9320 (windows_nat_target::create_inferior): Likewise.
9321 (windows_xfer_siginfo): Likewise.
9322 (_initialize_loadable): Initialize Wow64SuspendThread,
9323 Wow64GetThreadContext, Wow64SetThreadContext,
9324 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9325 * windows-nat.h (windows_set_context_register_offsets):
9326 Remove declaration.
9327 (windows_set_segment_register_p): Likewise.
9328 (i386_windows_segment_register_p): Add declaration.
9329 (amd64_windows_segment_register_p): Likewise.
9330
9331 2020-03-04 Luis Machado <luis.machado@linaro.org>
9332
9333 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9334 in "info registers" for AArch64/ARM.
9335
9336 The change caused "info registers" to not print GPR's.
9337
9338 gdb/ChangeLog:
9339
9340 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9341
9342 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9343 when reg->group is empty and reggroup is not.
9344
9345 2020-03-03 Tom Tromey <tromey@adacore.com>
9346
9347 * dwarf2/frame.c (struct dwarf2_frame_cache)
9348 <checked_tailcall_bottom, entry_cfa_sp_offset,
9349 entry_cfa_sp_offset_p>: Remove members.
9350 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9351 (dwarf2_frame_prev_register): Don't call
9352 dwarf2_tailcall_sniffer_first.
9353 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9354 * frame-unwind.c (add_unwinder): New fuction.
9355 (frame_unwind_init): Use it. Add tailcall unwinder.
9356
9357 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9358 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9359
9360 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9361 value should be printed as true.
9362
9363 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9364
9365 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9366 (windows_init_abi): Set and use windows_so_ops.
9367
9368 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9369
9370 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9371 when verifying if dealing with a convenience variable.
9372
9373 2020-03-03 Luis Machado <luis.machado@linaro.org>
9374
9375 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9376
9377 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9378
9379 * infrun.c (gdbarch_supports_displaced_stepping): New.
9380 (use_displaced_stepping): Break up conditions in smaller pieces.
9381 Use gdbarch_supports_displaced_stepping.
9382 (displaced_step_prepare_throw): Use
9383 gdbarch_supports_displaced_stepping.
9384
9385 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9386
9387 * NEWS: Mention new behaviour of the history filename.
9388 * top.c (write_history_p): Add comment.
9389 (show_write_history_p): Add header comment, give a different
9390 message when history writing is on, but the history filename is
9391 empty.
9392 (history_filename): Add comment.
9393 (history_filename_empty): New function.
9394 (show_history_filename): Add header comment, give a different
9395 message when the filename is empty.
9396 (init_history): Compare history_filename against nullptr, and only
9397 read history if the filename is not empty.
9398 (set_history_filename): Add header comment, and only make
9399 non-empty filenames absolute.
9400 (init_main): Make the filename argument to 'set history filename'
9401 optional.
9402
9403 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9404
9405 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9406 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9407 (fetch_fp_register): Update.
9408 (fetch_fp_regs): Update.
9409 (store_fp_register): Update.
9410 (store_fp_regs): Update.
9411 (arm_netbsd_nat_target::read_description): New function.
9412 (fetch_elfcore_registers): Update.
9413
9414 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9415
9416 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9417 general_thread if the stop reply is missing a thread-id.
9418 (remote_target::process_stop_reply): Use the first non-exited
9419 thread if the target didn't pass a thread-id.
9420 * infrun.c (do_target_wait): Move call to
9421 switch_to_inferior_no_thread to ....
9422 (do_target_wait_1): ... here.
9423
9424 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9425
9426 * debuginfod-support.c: Include defs.h first.
9427
9428 2020-02-28 Tom de Vries <tdevries@suse.de>
9429
9430 * symfile.c (set_initial_language): Use default language for lookup.
9431
9432 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9433
9434 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9435 reader variable, pass `this` to read_cutu_die_from_dwo.
9436
9437 2020-02-27 Aaron Merey <amerey@redhat.com>
9438
9439 * source.c (open_source_file): Check for nullptr when computing
9440 srcpath.
9441
9442 2020-02-27 Tom Tromey <tromey@adacore.com>
9443
9444 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9445 member.
9446 (dwarf2_add_field): Don't update nfields.
9447 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9448
9449 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9450
9451 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9452 abs.
9453
9454 2020-02-26 Tom Tromey <tom@tromey.com>
9455
9456 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9457 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9458 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9459 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9460 per_cu_data.
9461
9462 2020-02-26 Tom Tromey <tom@tromey.com>
9463
9464 * dwarf2/index-write.c (psym_index_map): Change type.
9465 (add_address_entry_worker, write_one_signatured_type)
9466 (recursively_count_psymbols, recursively_write_psymbols)
9467 (class debug_names, psyms_seen_size, write_gdbindex)
9468 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9469
9470 2020-02-26 Aaron Merey <amerey@redhat.com>
9471
9472 * Makefile.in: Handle optional debuginfod support.
9473 * NEWS: Update.
9474 * README: Add --with-debuginfod summary.
9475 * config.in: Regenerate.
9476 * configure: Regenerate.
9477 * configure.ac: Handle optional debuginfod support.
9478 * debuginfod-support.c: debuginfod helper functions.
9479 * debuginfod-support.h: Ditto.
9480 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9481 summary.
9482 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9483 when a dwz file cannot be found.
9484 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9485 debuginfo file cannot be found.
9486 * source.c (open_source_file): Query debuginfod servers when a
9487 source file cannot be found.
9488 * top.c (print_gdb_configuration): Include
9489 --{with,without}-debuginfod in the output.
9490
9491 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9492
9493 * thread.c (thr_try_catch_cmd): Print thread name.
9494
9495 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9496
9497 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9498 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9499 dwarf2_fetch_die_type_sect_off): Move to...
9500 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9501 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9502 dwarf2_fetch_die_type_sect_off): ... here.
9503 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9504 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9505 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9506
9507 2020-02-26 Tom de Vries <tdevries@suse.de>
9508
9509 PR gdb/25603
9510 * symfile.c (set_initial_language): Exit-early if
9511 language_mode == language_mode_manual.
9512
9513 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9514
9515 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9516 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9517 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9518
9519 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9520
9521 * gdbtypes.c (create_array_type_with_stride): Handle negative
9522 array strides.
9523 * valarith.c (value_subscripted_rvalue): Likewise.
9524
9525 2020-02-25 Luis Machado <luis.machado@linaro.org>
9526
9527 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9528
9529 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9530
9531 * loc.h (dwarf2_get_die_type): Move to...
9532 * read.h (dwarf2_get_die_type): ... here.
9533 * read.c (dwarf2_get_die_type): Move doc to header.
9534
9535 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9536
9537 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9538 'gnulib/Makefile.in' to the list.
9539
9540 2020-02-24 Tom Tromey <tom@tromey.com>
9541
9542 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9543 Remove.
9544 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9545 XOBNEWVEC.
9546
9547 2020-02-24 Tom Tromey <tom@tromey.com>
9548
9549 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9550 New method.
9551 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9552 (dw2_do_instantiate_symtab, dw2_get_file_names)
9553 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9554
9555 2020-02-24 Tom Tromey <tom@tromey.com>
9556
9557 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9558 make_scoped_restore.
9559 (dwarf2_psymtab::read_symtab): Don't clear
9560 reading_partial_symbols.
9561
9562 2020-02-24 Tom de Vries <tdevries@suse.de>
9563
9564 PR gdb/25592
9565 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9566
9567 2020-02-24 Tom de Vries <tdevries@suse.de>
9568
9569 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9570 commands layout next/prev/regs.
9571
9572 2020-02-22 Tom Tromey <tom@tromey.com>
9573
9574 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9575 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9576
9577 2020-02-22 Tom Tromey <tom@tromey.com>
9578
9579 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9580
9581 2020-02-22 Tom Tromey <tom@tromey.com>
9582
9583 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9584 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9585 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9586 * tui/tui.c (_initialize_tui): Add usage text.
9587
9588 2020-02-22 Tom Tromey <tom@tromey.com>
9589
9590 * tui/tui-win.c (tui_set_focus_command)
9591 (tui_set_win_height_command): Use error_no_arg.
9592 (_initialize_tui_win): Update help text.
9593 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9594
9595 2020-02-22 Tom Tromey <tom@tromey.com>
9596
9597 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9598 * tui/tui-disasm.h (struct tui_disasm_window)
9599 <display_start_addr>: Declare.
9600 * tui/tui-source.h (struct tui_source_window)
9601 <display_start_addr>: Declare.
9602 * tui/tui-winsource.h (struct tui_source_window_base)
9603 <show_source_line, display_start_addr>: New methods.
9604 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9605 Rename and move to protected section.
9606 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9607 (tui_source_window_base::do_erase_source_content): Update.
9608 (tui_source_window_base::show_source_line): Now a method.
9609 (tui_source_window_base::show_source_content)
9610 (tui_source_window_base::tui_source_window_base)
9611 (tui_source_window_base::rerender)
9612 (tui_source_window_base::refill)
9613 (tui_source_window_base::do_scroll_horizontal)
9614 (tui_source_window_base::set_is_exec_point_at)
9615 (tui_source_window_base::update_breakpoint_info)
9616 (tui_source_window_base::update_exec_info): Update.
9617 * tui/tui-source.c (tui_source_window::set_contents)
9618 (tui_source_window::showing_source_p)
9619 (tui_source_window::do_scroll_vertical)
9620 (tui_source_window::location_matches_p)
9621 (tui_source_window::line_is_displayed): Update.
9622 (tui_source_window::display_start_addr): New method.
9623 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9624 (tui_disasm_window::do_scroll_vertical)
9625 (tui_disasm_window::location_matches_p): Update.
9626 (tui_disasm_window::display_start_addr): New method.
9627
9628 2020-02-22 Tom Tromey <tom@tromey.com>
9629
9630 * NEWS: Add entry for gdb.register_window_type.
9631 * tui/tui-layout.h (window_factory): New typedef.
9632 (tui_register_window): Declare.
9633 * tui/tui-layout.c (saved_tui_windows): New global.
9634 (tui_apply_current_layout): Use it.
9635 (tui_register_window): New function.
9636 * python/python.c (do_start_initialization): Call
9637 gdbpy_initialize_tui.
9638 (python_GdbMethods): Add "register_window_type" function.
9639 * python/python-internal.h (gdbpy_register_tui_window)
9640 (gdbpy_initialize_tui): Declare.
9641 * python/py-tui.c: New file.
9642 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9643
9644 2020-02-22 Tom Tromey <tom@tromey.com>
9645
9646 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9647
9648 2020-02-22 Tom Tromey <tom@tromey.com>
9649
9650 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9651 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9652 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9653 (tui_set_win_focus_to): Move from tui-win.c.
9654
9655 2020-02-22 Tom Tromey <tom@tromey.com>
9656
9657 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9658 functions.
9659 (known_window_types): New global.
9660 (tui_get_window_by_name): Reimplement.
9661 (initialize_known_windows): New function.
9662 (validate_window_name): Rewrite.
9663 (_initialize_tui_layout): Call initialize_known_windows.
9664
9665 2020-02-22 Tom Tromey <tom@tromey.com>
9666
9667 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9668 Remove constants.
9669 * tui/tui-winsource.h (struct tui_source_window_base)
9670 <tui_source_window_base>: Remove parameter.
9671 * tui/tui-winsource.c
9672 (tui_source_window_base::tui_source_window_base): Remove
9673 parameter.
9674 (tui_source_window_base::refill): Update.
9675 * tui/tui-stack.h (struct tui_locator_window)
9676 <tui_locator_window>: Update.
9677 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9678 Default the constructor.
9679 * tui/tui-regs.h (struct tui_data_item_window)
9680 <tui_data_item_window>: Default the constructor.
9681 (struct tui_data_window) <tui_data_window>: Likewise.
9682 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9683 Default the constructor.
9684 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9685 Default the constructor.
9686 <type>: Remove.
9687 (struct tui_win_info) <tui_win_info>: Default the constructor.
9688 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9689 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9690 Default the constructor.
9691
9692 2020-02-22 Tom Tromey <tom@tromey.com>
9693
9694 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9695 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9696 * tui/tui-win.c (tui_resize_all): Don't call
9697 tui_delete_invisible_windows.
9698 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9699 done.
9700 (tui_set_layout): Update.
9701 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9702 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9703 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9704
9705 2020-02-22 Tom Tromey <tom@tromey.com>
9706
9707 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9708 correctly.
9709
9710 2020-02-22 Tom Tromey <tom@tromey.com>
9711
9712 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9713
9714 2020-02-22 Tom Tromey <tom@tromey.com>
9715
9716 * tui/tui-winsource.h (struct tui_source_window_iterator)
9717 <inner_iterator>: New etytypedef.
9718 <tui_source_window_iterator>: Take "end" parameter.
9719 <tui_source_window_iterator>: Take iterator.
9720 <operator*, advance>: Update.
9721 <m_iter>: Change type.
9722 <m_end>: New field.
9723 (struct tui_source_windows) <begin, end>: Update.
9724 * tui/tui-layout.c (tui_windows): New global.
9725 (tui_apply_current_layout): Clear tui_windows.
9726 (tui_layout_window::apply): Update tui_windows.
9727 * tui/tui-data.h (tui_windows): Declare.
9728 (all_tui_windows): Now inline function.
9729 (class tui_window_iterator, struct all_tui_windows): Remove.
9730
9731 2020-02-22 Tom Tromey <tom@tromey.com>
9732
9733 PR tui/17850:
9734 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9735 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9736 "height" argument.
9737 (class tui_layout_window) <get_sizes>: Likewise.
9738 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9739 argument.
9740 <get_sizes>: Add "height" argument.
9741 <m_vertical>: New field.
9742 * tui/tui-layout.c (tui_layout_split::clone): Update.
9743 (tui_layout_split::get_sizes): Add "height" argument.
9744 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9745 (tui_new_layout_command): Parse "-horizontal".
9746 (_initialize_tui_layout): Update help string.
9747 (tui_layout_split::specification): Add "-horizontal" when needed.
9748 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9749 argument.
9750 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9751 New methods.
9752
9753 2020-02-22 Tom Tromey <tom@tromey.com>
9754
9755 * tui/tui-layout.h (enum tui_adjust_result): New.
9756 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9757 (class tui_layout_window) <adjust_size>: Return
9758 tui_adjust_result. Rewrite.
9759 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9760 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9761
9762 2020-02-22 Tom Tromey <tom@tromey.com>
9763
9764 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9765 parameter and return types.
9766 (class tui_layout_base) <specification>: Add "depth".
9767 (class tui_layout_window) <specification>: Add "depth".
9768 (class tui_layout_split) <specification>: Add "depth".
9769 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9770 and return types.
9771 (tui_new_layout_command): Parse sub-layouts.
9772 (_initialize_tui_layout): Update help string.
9773 (tui_layout_window::specification): Add "depth".
9774 (add_layout_command): Update.
9775
9776 2020-02-22 Tom Tromey <tom@tromey.com>
9777
9778 * NEWS: Add "tui new-layout" item.
9779 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9780 Add new-layout command to help text.
9781 (validate_window_name): New function.
9782 (tui_new_layout_command): New function.
9783 (_initialize_tui_layout): Register "new-layout".
9784 (tui_layout_window::specification): New method.
9785 (tui_layout_window::specification): New method.
9786 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9787 method.
9788 (class tui_layout_window) <specification>: New method.
9789 (class tui_layout_split) <specification>: New method.
9790
9791 2020-02-22 Tom Tromey <tom@tromey.com>
9792
9793 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9794 * tui/tui-win.c (window_name_completer): Update comment.
9795 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9796 Declare method.
9797 (class tui_layout_window) <replace_window>: Likewise.
9798 (class tui_layout_split) <replace_window>: Likewise.
9799 (tui_set_layout): Don't declare.
9800 (tui_set_initial_layout): Declare function.
9801 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9802 (asm_regs_layout): New globals.
9803 (tui_current_layout, show_layout): Remove.
9804 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9805 (find_layout, tui_apply_layout): New function.
9806 (layout_completer): Remove.
9807 (tui_next_layout): Reimplement.
9808 (tui_next_layout_command): New function.
9809 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9810 (tui_regs_layout): Reimplement.
9811 (tui_regs_layout_command): New function.
9812 (extract_display_start_addr): Rewrite.
9813 (next_layout, prev_layout): Remove.
9814 (tui_layout_window::replace_window): New method.
9815 (tui_layout_split::replace_window): New method.
9816 (destroy_layout): New function.
9817 (layout_list): New global.
9818 (add_layout_command): New function.
9819 (initialize_layouts): Update.
9820 (tui_layout_command): New function.
9821 (_initialize_tui_layout): Install "layout" commands.
9822 * tui/tui-data.h (enum tui_layout_type): Remove.
9823 (tui_current_layout): Don't declare.
9824
9825 2020-02-22 Tom Tromey <tom@tromey.com>
9826
9827 * tui/tui-regs.c (tui_reg_layout): Remove.
9828 (tui_reg_command): Use tui_regs_layout.
9829 * tui/tui-layout.h (tui_reg_command): Declare.
9830 * tui/tui-layout.c (tui_reg_command): New function.
9831
9832 2020-02-22 Tom Tromey <tom@tromey.com>
9833
9834 * tui/tui.c (tui_rl_delete_other_windows): Call
9835 tui_remove_some_windows.
9836 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9837 Declare method.
9838 (class tui_layout_window) <remove_windows>: New method.
9839 (class tui_layout_split) <remove_windows>: Declare.
9840 (tui_remove_some_windows): Declare.
9841 * tui/tui-layout.c (tui_remove_some_windows): New function.
9842 (tui_layout_split::remove_windows): New method.
9843
9844 2020-02-22 Tom Tromey <tom@tromey.com>
9845
9846 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9847 * tui/tui-layout.h (tui_next_layout): Declare.
9848 * tui/tui-layout.c (tui_next_layout): New function.
9849
9850 2020-02-22 Tom Tromey <tom@tromey.com>
9851
9852 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9853 correct coordinates.
9854
9855 2020-02-22 Tom Tromey <tom@tromey.com>
9856
9857 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9858 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9859 DATA_WIN case.
9860
9861 2020-02-22 Tom Tromey <tom@tromey.com>
9862
9863 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9864 TUI_DISASM_WIN, not tui_win_list.
9865
9866 2020-02-22 Tom Tromey <tom@tromey.com>
9867
9868 * valprint.c (generic_val_print_enum_1)
9869 (val_print_type_code_flags): Style member names.
9870 * rust-lang.c (val_print_struct, rust_print_enum)
9871 (rust_print_struct_def, rust_internal_print_type): Style member
9872 names.
9873 * p-valprint.c (pascal_object_print_value_fields): Style member
9874 names. Only call fprintf_symbol_filtered for static members.
9875 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9876 * f-valprint.c (f_val_print): Style member names.
9877 * f-typeprint.c (f_type_print_base): Style member names.
9878 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9879 call fprintf_symbol_filtered for static members.
9880 (cp_print_class_member): Style member names.
9881 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9882 member names.
9883 * ada-valprint.c (ada_print_scalar): Style enum names.
9884 (ada_val_print_enum): Likewise.
9885 * ada-typeprint.c (print_enum_type): Style enum names.
9886
9887 2020-02-21 Tom Tromey <tom@tromey.com>
9888
9889 * psympriv.h (struct partial_symtab): Update comment.
9890
9891 2020-02-21 Tom Tromey <tromey@adacore.com>
9892
9893 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9894 type is CORE_ADDR.
9895
9896 2020-02-21 Tom de Vries <tdevries@suse.de>
9897
9898 PR gdb/25534
9899 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9900 if dependencies[i]->user != NULL.
9901
9902 2020-02-21 Ali Tamur <tamur@google.com>
9903
9904 * dwarf2/read.c (dwarf2_name): Add null check.
9905
9906 2020-02-20 Tom Tromey <tom@tromey.com>
9907
9908 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9909 ">=", in binary search.
9910 (dwarf2_find_containing_comp_unit): New overload.
9911 (run_test): New self-test.
9912 (_initialize_dwarf2_read): Register new test.
9913
9914 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9915
9916 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9917 * riscv-tdep.h: Likewise.
9918 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9919 rv32-only CSR.
9920 * features/riscv/64bit-csr.xml: Regenerated.
9921
9922 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9923 Tom Tromey <tom@tromey.com>
9924
9925 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9926 of 'fputc_unfiltered'.
9927 (putchar_unfiltered): Call 'fputc_unfiltered'.
9928 (fputc_unfiltered): Call 'fputs_unfiltered'.
9929
9930 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9931
9932 * config.in: Regenerate.
9933 * configure: Regenerate.
9934 * configure.ac: Add --with-python-libdir option.
9935 * main.c: Use WITH_PYTHON_LIBDIR.
9936
9937 2020-02-19 Tom Tromey <tom@tromey.com>
9938
9939 * symtab.c (general_symbol_info::compute_and_set_names): Use
9940 obstack_strndup. Simplify call to symbol_set_demangled_name.
9941
9942 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9943
9944 * dwarf2/read.c (allocate_signatured_type_table,
9945 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9946 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9947 Remove objfile parameter, update all callers.
9948
9949 2020-02-19 Doug Evans <dje@google.com>
9950
9951 PR rust/25535
9952 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9953 rust_enum_variant calculation.
9954
9955 2020-02-19 Tom Tromey <tromey@adacore.com>
9956
9957 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9958
9959 2020-02-19 Tom Tromey <tromey@adacore.com>
9960
9961 * ada-lang.c (cache_symbol): Use obstack_strdup.
9962
9963 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9964
9965 * configure: Regenerate.
9966
9967 2020-02-19 Tom Tromey <tromey@adacore.com>
9968
9969 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9970 NULL check.
9971
9972 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9973
9974 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9975
9976 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9977
9978 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9979 if GDBSERVER is not defined.
9980 (riscv_tdesc_cache): Likewise, also store const target_desc.
9981 (STATIC_IN_GDB): Define.
9982 (riscv_create_target_description): Update declaration with
9983 STATIC_IN_GDB.
9984 (riscv_lookup_target_description): New function, only define if
9985 GDBSERVER is not defined.
9986 * arch/riscv.h (riscv_create_target_description): Declare only
9987 when GDBSERVER is defined.
9988 (riscv_lookup_target_description): New declaration when GDBSERVER
9989 is not defined.
9990 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9991 (riscv_linux_read_features): ...this, and return
9992 riscv_gdbarch_features instead of target_desc.
9993 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9994 (riscv_linux_read_description): Rename to...
9995 (riscv_linux_read_features): ...this.
9996 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9997 Update to use riscv_gdbarch_features and
9998 riscv_lookup_target_description.
9999 * riscv-tdep.c (riscv_find_default_target_description): Use
10000 riscv_lookup_target_description instead of
10001 riscv_create_target_description.
10002
10003 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10004
10005 * valprint.c (generic_val_print_enum_1): When printing a flag
10006 enum with value 0 and there is no enumerator with value 0, print
10007 just "0" instead of "(unknown: 0x0)".
10008
10009 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10010
10011 * valprint.c (generic_val_print_enum_1): Print unknown part of
10012 flag enum in hex.
10013
10014 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10015
10016 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10017 flag enums to contain duplicate enumerators.
10018 * valprint.c (generic_val_print_enum_1): Update comment.
10019
10020 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10021
10022 * dwarf2/read.c: Include "count-one-bits.h".
10023 (update_enumeration_type_from_children): If an enumerator has
10024 multiple bits set, don't treat the enumeration as a "flag enum".
10025 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10026 of flag enums have 0 or 1 bit set.
10027
10028 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10029
10030 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10031 conversion.
10032 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10033 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10034 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10035 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10036 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10037
10038 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10039
10040 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10041
10042 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10043
10044 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10045 displaced_step_closure_up.
10046 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10047 (struct displaced_step_closure_up):
10048 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10049 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10050 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10051 Likewise.
10052 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10053 * gdbarch.c, gdbarch.h: Re-generate.
10054 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10055 displaced_step_closure_up.
10056 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10057 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10058 * infrun.h (displaced_step_closure_up): New type alias.
10059 (struct displaced_step_inferior_state) <step_closure>: Change
10060 type to displaced_step_closure_up.
10061 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10062 displaced_step_closure_up.
10063 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10064
10065 2020-02-14 Tom Tromey <tom@tromey.com>
10066
10067 * minidebug.c (gnu_debug_key): New global.
10068 (find_separate_debug_file_in_section): Use it.
10069
10070 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10071
10072 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10073 std::unique_ptr.
10074 * gdbarch.c: Re-generate.
10075 * gdbarch.h: Re-generate.
10076 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10077 change.
10078 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10079 type to std::unique_ptr.
10080 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10081 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10082 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10083 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10084 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10085 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10086 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10087 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10088 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10089
10090 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10091
10092 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10093 std::unique_ptr.
10094 (displaced_step_clear): Rename to...
10095 (displaced_step_reset): ... this. Just call displaced->reset ().
10096 (displaced_step_clear_cleanup): Rename to...
10097 (displaced_step_reset_cleanup): ... this.
10098 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10099 (displaced_step_fixup): Likewise.
10100 (resume_1): Likewise.
10101 (handle_inferior_event): Restore child's memory before calling
10102 displaced_step_fixup on the parent.
10103 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10104 to std::unique_ptr.
10105 <step_closure>: Change type to std::unique_ptr.
10106
10107 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10108
10109 * arm-tdep.c: Include count-one-bits.h.
10110 (cleanup_block_store_pc): Use count_one_bits.
10111 (cleanup_block_load_pc): Use count_one_bits.
10112 (arm_copy_block_xfer): Use count_one_bits.
10113 (thumb2_copy_block_xfer): Use count_one_bits.
10114 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10115 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10116 (thumb_get_next_pcs_raw): Use count_one_bits.
10117 (arm_get_next_pcs_raw): Use count_one_bits_l.
10118 * arch/arm.c (bitcount): Remove.
10119 * arch/arm.h (bitcount): Remove.
10120
10121 2020-02-14 Tom Tromey <tromey@adacore.com>
10122
10123 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10124 Update.
10125 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10126 * dwarf2/loc.c (call_site_find_chain_1): Return
10127 unique_xmalloc_ptr.
10128 (call_site_find_chain): Likewise.
10129
10130 2020-02-14 Richard Biener <rguenther@suse.de>
10131
10132 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10133 on expression with division operators.
10134
10135 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10136
10137 * MAINTAINERS (Write After Approval): Adding myself.
10138
10139 2020-02-12 Tom Tromey <tom@tromey.com>
10140
10141 * event-loop.c (event_data, gdb_event, event_handler_func):
10142 Remove.
10143
10144 2020-02-12 Tom Tromey <tom@tromey.com>
10145
10146 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10147 (dwarf2_frame_objfile_data): Add comment.
10148 (find_comp_unit, set_comp_unit): New functions.
10149 (dwarf2_frame_find_fde): Use find_comp_unit.
10150 (dwarf2_build_frame_info): Use set_comp_unit.
10151
10152 2020-02-12 Tom Tromey <tom@tromey.com>
10153
10154 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10155 (comp_unit): Don't initialize objfile.
10156 (execute_cfa_program): Add text_offset parameter.
10157 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10158 (dwarf2_frame_cache): Update.
10159 (dwarf2_build_frame_info): Don't set "objfile" member.
10160
10161 2020-02-12 Tom Tromey <tom@tromey.com>
10162
10163 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10164 (decode_frame_entry): Likewise.
10165 (dwarf2_build_frame_info): Update.
10166
10167 2020-02-12 Tom Tromey <tom@tromey.com>
10168
10169 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10170 (decode_frame_entry_1): Use the comp_unit obstack.
10171
10172 2020-02-12 Tom Tromey <tom@tromey.com>
10173
10174 * dwarf2/frame.c (struct comp_unit): Add initializers and
10175 constructor.
10176 (dwarf2_frame_objfile_data): Store a comp_unit.
10177 (dwarf2_frame_find_fde): Update.
10178 (dwarf2_build_frame_info): Use "new".
10179
10180 2020-02-12 Tom Tromey <tom@tromey.com>
10181
10182 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10183 (dwarf2_fde_table): Typedef for std::vector.
10184 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10185 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10186 (decode_frame_entry): Update.
10187 (dwarf2_build_frame_info): Use "new".
10188
10189 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10190
10191 * arm-tdep.c (arm_gdbarch_init): Update.
10192 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10193 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10194 have_neon, is_m>: Change to bool.
10195
10196 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10197
10198 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10199
10200 2020-02-12 Tom Tromey <tom@tromey.com>
10201
10202 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10203
10204 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10205
10206 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10207 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10208
10209 2020-02-11 Tom Tromey <tom@tromey.com>
10210
10211 * psymtab.h: Update comment.
10212
10213 2020-02-11 Tom Tromey <tom@tromey.com>
10214
10215 * gdb_obstack.h (struct auto_obstack): Use
10216 DISABLE_COPY_AND_ASSIGN.
10217
10218 2020-02-11 Tom Tromey <tom@tromey.com>
10219
10220 * dwarf2/frame.h (struct objfile): Don't forward declare.
10221
10222 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10223
10224 * cris-tdep.c (cris_supply_gregset): Change signature to match
10225 what struct regset expects.
10226 (cris_regset): New struct.
10227 (fetch_core_registers): Remove.
10228 (cris_iterate_over_regset_sections): New function.
10229 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10230 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10231
10232 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10233
10234 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10235 registers.
10236
10237 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10238
10239 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10240
10241 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10242
10243 * configure: Re-generate.
10244
10245 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10246
10247 * configure: Re-generate.
10248
10249 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10250
10251 * acinclude: Update warning.m4 path.
10252 * warning.m4: Move to gdbsupport.
10253
10254 2020-02-11 Tom Tromey <tromey@adacore.com>
10255
10256 * remote.c (remote_console_output): Update.
10257 * printcmd.c (printf_command): Update.
10258 * event-loop.c (gdb_wait_for_event): Update.
10259 * linux-nat.c (sigchld_handler): Update.
10260 * remote-sim.c (gdb_os_write_stdout): Update.
10261 (gdb_os_flush_stdout): Update.
10262 (gdb_os_flush_stderr): Update.
10263 (gdb_os_write_stderr): Update.
10264 * exceptions.c (print_exception): Update.
10265 * remote-fileio.c (remote_fileio_func_read): Update.
10266 (remote_fileio_func_write): Update.
10267 * tui/tui.c (tui_enable): Update.
10268 * tui/tui-interp.c (tui_interp::init): Update.
10269 * utils.c (init_page_info): Update.
10270 (putchar_unfiltered, fputc_unfiltered): Update.
10271 (gdb_flush): Update.
10272 (emit_style_escape): Update.
10273 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10274 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10275 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10276 (stderr_file::write): Update.
10277 (stderr_file::puts): Update.
10278 * ui-file.h (ui_file_isatty, ui_file_write)
10279 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10280 (ui_file_puts): Don't declare.
10281
10282 2020-02-10 Tom de Vries <tdevries@suse.de>
10283
10284 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10285 sentinel to char *.
10286
10287 2020-02-09 Tom de Vries <tdevries@suse.de>
10288
10289 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10290 filename if it matches "<artificial>".
10291
10292 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10293
10294 * windows-tdep.c (struct enum_value_name): New struct.
10295 (create_enum): New function.
10296 (windows_get_siginfo_type): Create and use enum types.
10297
10298 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10299
10300 * NEWS: Mention $_siginfo support for Windows.
10301 * windows-nat.c (handle_exception): Set siginfo_er.
10302 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10303 (windows_xfer_siginfo): New function.
10304 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10305 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10306 (init_windows_gdbarch_data): New function.
10307 (get_windows_gdbarch_data): New function.
10308 (windows_get_siginfo_type): New function.
10309 (windows_init_abi): Register windows_get_siginfo_type.
10310 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10311
10312 2020-02-08 Tom Tromey <tom@tromey.com>
10313
10314 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10315 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10316 <keep>: Declare method.
10317 <m_keep>: Remove member.
10318 <~cutu_reader>: Remove.
10319 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10320 (cutu_reader::cutu_reader): Update.
10321 (cutu_reader::keep): Rename from ~cutu_reader.
10322 (process_psymtab_comp_unit, build_type_psymtabs_1)
10323 (process_skeletonless_type_unit, load_partial_comp_unit)
10324 (load_full_comp_unit, dwarf2_read_addr_index)
10325 (read_signatured_type): Update.
10326
10327 2020-02-08 Tom Tromey <tom@tromey.com>
10328
10329 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10330 "want_partial_unit" parameter.
10331 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10332 Inline check for DW_TAG_partial_unit.
10333 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10334
10335 2020-02-08 Tom Tromey <tom@tromey.com>
10336
10337 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10338 read.c.
10339 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10340 read.c.
10341
10342 2020-02-08 Tom Tromey <tom@tromey.com>
10343
10344 * dwarf2/read.c (read_address): Move to comp-unit.c.
10345 (dwarf2_rnglists_process, dwarf2_ranges_process)
10346 (read_attribute_value, dwarf_decode_lines_1)
10347 (var_decode_location, decode_locdesc): Update.
10348 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10349 read.c. Remove "cu" parameter.
10350 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10351 method.
10352
10353 2020-02-08 Tom Tromey <tom@tromey.com>
10354
10355 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10356 (read_indirect_line_string): Update.
10357 * dwarf2/comp-unit.c (read_offset): Remove.
10358 (read_comp_unit_head): Update.
10359 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10360 method.
10361 (read_offset): Don't declare.
10362
10363 2020-02-08 Tom Tromey <tom@tromey.com>
10364
10365 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10366 * dwarf2/read.c (struct comp_unit_head): Move to
10367 dwarf2/comp-unit.h.
10368 (enum class rcuh_kind): Move to comp-unit.h.
10369 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10370 (read_comp_unit_head, error_check_comp_unit_head)
10371 (read_and_check_comp_unit_head): Move to comp-unit.c.
10372 (read_offset, dwarf_unit_type_name): Likewise.
10373 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10374 (cutu_reader::cutu_reader, read_call_site_scope)
10375 (find_partial_die, follow_die_offset): Update.
10376 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10377
10378 2020-02-08 Tom Tromey <tom@tromey.com>
10379
10380 * dwarf2/read.c (read_offset_1): Move to leb.c.
10381 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10382 (dwarf_decode_macro_bytes): Update.
10383 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10384 * dwarf2/leb.h (read_offset): Declare.
10385
10386 2020-02-08 Tom Tromey <tom@tromey.com>
10387
10388 * dwarf2/read.c (dwarf2_section_size): Remove.
10389 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10390 Update.
10391 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10392
10393 2020-02-08 Tom Tromey <tom@tromey.com>
10394
10395 * dwarf2/read.c (read_initial_length): Move to leb.c.
10396 * dwarf2/leb.h (read_initial_length): Declare.
10397 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10398 handle_nonstd parameter.
10399 * dwarf2/frame.c (read_initial_length): Remove.
10400 (decode_frame_entry_1): Update.
10401
10402 2020-02-08 Tom Tromey <tom@tromey.com>
10403
10404 * dwarf2/loc.c (dwarf2_find_location_expression)
10405 (dwarf_evaluate_loc_desc::get_tls_address)
10406 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10407 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10408 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10409 (dwarf2_compile_property_to_c)
10410 (dwarf2_loc_desc_get_symbol_read_needs)
10411 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10412 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10413 (loclist_describe_location, loclist_tracepoint_var_ref)
10414 (loclist_generate_c_location): Update.
10415 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10416 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10417 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10418 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10419 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10420 (dwarf2_per_cu_data::addr_size)
10421 (dwarf2_per_cu_data::ref_addr_size)
10422 (dwarf2_per_cu_data::text_offset)
10423 (dwarf2_per_cu_data::addr_type): Now methods.
10424 (per_cu_header_read_in): Make per_cu "const".
10425 (dwarf2_version): Remove.
10426 (dwarf2_per_cu_data::int_type): Now a method.
10427 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10428 (set_die_type, read_array_type, read_subrange_index_type)
10429 (read_tag_string_type, read_subrange_type): Update.
10430 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10431 offset_size, ref_addr_size, text_offset, addr_type, version,
10432 objfile, int_type, addr_sized_int_type>: Declare methods.
10433
10434 2020-02-08 Tom Tromey <tom@tromey.com>
10435
10436 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10437 Move earlier.
10438
10439 2020-02-08 Tom Tromey <tom@tromey.com>
10440
10441 * dwarf2/read.h (dwarf_line_debug): Declare.
10442 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10443 * dwarf2/read.c: Move line_header code to new files.
10444 (dwarf_line_debug): No longer static.
10445 * dwarf2/line-header.c: New file.
10446 * dwarf2/line-header.h: New file.
10447
10448 2020-02-08 Tom Tromey <tom@tromey.com>
10449
10450 * dwarf2/read.c (struct line_header) <file_full_name,
10451 file_file_name>: Return unique_xmalloc_ptr.
10452 (line_header::file_file_name): Update.
10453 (line_header::file_full_name): Update.
10454 (dw2_get_file_names_reader): Update.
10455 (macro_start_file): Update.
10456
10457 2020-02-08 Tom Tromey <tom@tromey.com>
10458
10459 * dwarf2/read.c (struct line_header) <file_full_name,
10460 file_file_name>: Declare methods.
10461 (dw2_get_file_names_reader): Update.
10462 (file_file_name): Now a method.
10463 (file_full_name): Likewise.
10464 (macro_start_file): Update.
10465
10466 2020-02-08 Tom Tromey <tom@tromey.com>
10467
10468 * dwarf2/read.c (dwarf_always_disassemble)
10469 (show_dwarf_always_disassemble): Move to loc.c.
10470 (_initialize_dwarf2_read): Move "always-disassemble" registration
10471 to loc.c.
10472 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10473 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10474 static.
10475 (show_dwarf_always_disassemble): Move from read.c.
10476 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10477
10478 2020-02-08 Tom Tromey <tom@tromey.com>
10479
10480 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10481 (create_quick_file_names_table): Return htab_up.
10482 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10483 Update.
10484 * dwarf2/read.h (struct dwarf2_per_objfile)
10485 <quick_file_names_table>: Now htab_up.
10486
10487 2020-02-08 Tom Tromey <tom@tromey.com>
10488
10489 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10490
10491 2020-02-08 Tom Tromey <tom@tromey.com>
10492
10493 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10494 Rewrite.
10495 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10496 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10497 (abbrev_table::abbrev_table): No longer inline.
10498 (ABBREV_HASH_SIZE): Remove.
10499 (abbrev_table::m_abbrevs): Now an htab_up.
10500
10501 2020-02-08 Tom Tromey <tom@tromey.com>
10502
10503 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10504 (cutu_reader): Update.
10505 (build_type_psymtabs_1): Update.
10506 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10507 (abbrev_table::alloc_abbrev): Update.
10508 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10509 (abbrev_table::read): New static method, renamed from
10510 abbrev_table_read_table.
10511 (abbrev_table::alloc_abbrev)
10512 (abbrev_table::add_abbrev): Now private.
10513 (abbrev_table::abbrev_table): Now private.
10514 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10515
10516 2020-02-08 Tom Tromey <tom@tromey.com>
10517
10518 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10519 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10520 htab_up.
10521
10522 2020-02-08 Tom Tromey <tom@tromey.com>
10523
10524 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10525 htab_up.
10526 (lookup_dwo_unit_in_dwp): Update.
10527 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10528 on obstack.
10529
10530 2020-02-08 Tom Tromey <tom@tromey.com>
10531
10532 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10533 obstack.
10534
10535 2020-02-08 Tom Tromey <tom@tromey.com>
10536
10537 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10538 line_header_hash.
10539 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10540 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10541 Change type to htab_up.
10542
10543 2020-02-08 Tom Tromey <tom@tromey.com>
10544
10545 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10546 htab_up. Don't allocate on obstack.
10547 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10548 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10549 Change type to htab_up.
10550
10551 2020-02-08 Tom Tromey <tom@tromey.com>
10552
10553 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10554 Change type to htab_up.
10555 * dwarf2/read.c (create_signatured_type_table_from_index)
10556 (create_signatured_type_table_from_debug_names)
10557 (create_all_type_units, add_type_unit)
10558 (lookup_dwo_signatured_type, lookup_signatured_type)
10559 (process_skeletonless_type_unit): Update.
10560 (create_debug_type_hash_table, create_debug_types_hash_table):
10561 Change type of types_htab.
10562 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10563 htab_up. Don't allocate on obstack.
10564 (create_cus_hash_table): Change type of cus_htab parameter.
10565 (struct dwo_file) <cus, tus>: Now htab_up.
10566 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10567 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10568 (queue_and_load_all_dwo_tus): Update.
10569 * dwarf2/index-write.c (write_gdbindex): Update.
10570 (write_debug_names): Update.
10571
10572 2020-02-08 Tom Tromey <tom@tromey.com>
10573
10574 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10575 dwarf2/read.c. Remove "next" member. Add constructor ntad
10576 destructor.
10577 (struct dwarf2_per_objfile) <queue>: New member.
10578 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10579 dwarf2/read.h.
10580 (dwarf2_queue, dwarf2_queue_tail): Remove.
10581 (class dwarf2_queue_guard): Add parameter to constructor. Use
10582 DISABLE_COPY_AND_ASSIGN.
10583 <m_per_objfile>: New member.
10584 <~dwarf2_queue_guard>: Rewrite.
10585 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10586 Update.
10587 (~dwarf2_queue_item): New.
10588
10589 2020-02-08 Tom Tromey <tom@tromey.com>
10590
10591 * dwarf2/read.c (struct die_info) <has_children>: New member.
10592 (dw2_get_file_names_reader): Remove has_children.
10593 (dw2_get_file_names): Update.
10594 (read_cutu_die_from_dwo): Remove has_children.
10595 (cutu_reader::init_tu_and_read_dwo_dies)
10596 (cutu_reader::cutu_reader): Update.
10597 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10598 Remove has_children.
10599 (build_type_psymtabs_1, process_skeletonless_type_unit)
10600 (load_partial_comp_unit, load_full_comp_unit): Update.
10601 (create_dwo_cu_reader): Remove has_children.
10602 (create_cus_hash_table, read_die_and_children): Update.
10603 (read_full_die_1,read_full_die): Remove has_children.
10604 (read_signatured_type): Update.
10605 (class cutu_reader) <has_children>: Remove.
10606
10607 2020-02-08 Tom Tromey <tom@tromey.com>
10608
10609 * dwarf2/expr.c: Rename from dwarf2expr.c.
10610 * dwarf2/expr.h: Rename from dwarf2expr.h.
10611 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10612 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10613 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10614 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10615 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10616 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10617 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10618 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10619 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10620 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10621 * dwarf2/loc.c: Rename from dwarf2loc.c.
10622 * dwarf2/loc.h: Rename from dwarf2loc.h.
10623 * dwarf2/read.c: Rename from dwarf2read.c.
10624 * dwarf2/read.h: Rename from dwarf2read.h.
10625 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10626 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10627 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10628 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10629 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10630 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10631 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10632 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10633 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10634 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10635 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10636 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10637 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10638 Update.
10639 * Makefile.in (COMMON_SFILES): Update.
10640 (HFILES_NO_SRCDIR): Update.
10641
10642 2020-02-08 Tom Tromey <tom@tromey.com>
10643
10644 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10645 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10646
10647 2020-02-08 Tom Tromey <tom@tromey.com>
10648
10649 * dwarf2read.h (struct die_info): Don't declare.
10650
10651 2020-02-08 Tom Tromey <tom@tromey.com>
10652
10653 * dwarf2read.h (die_info_ptr): Remove typedef.
10654
10655 2020-02-08 Tom Tromey <tom@tromey.com>
10656
10657 * dwarf2read.c (read_call_site_scope)
10658 (handle_data_member_location, dwarf2_add_member_fn)
10659 (mark_common_block_symbol_computed, read_common_block)
10660 (attr_to_dynamic_prop, partial_die_info::read)
10661 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10662 (dwarf2_symbol_mark_computed, set_die_type): Update.
10663 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10664 method.
10665 (attr_form_is_block): Don't declare.
10666 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10667
10668 2020-02-08 Tom Tromey <tom@tromey.com>
10669
10670 * dwarf2read.c (dwarf2_find_base_address, )
10671 (read_call_site_scope, rust_containing_type)
10672 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10673 (handle_data_member_location, dwarf2_add_member_fn)
10674 (get_alignment, read_structure_type, process_structure_scope)
10675 (mark_common_block_symbol_computed, read_common_block)
10676 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10677 (partial_die_info::read, read_attribute_value, new_symbol)
10678 (lookup_die_type, dwarf2_get_ref_die_offset)
10679 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10680 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10681 (dwarf2_symbol_mark_computed): Update.
10682 * dwarf2/attribute.h (struct attribute) <value_as_address,
10683 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10684 methods.
10685 (value_as_address, attr_form_is_section_offset)
10686 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10687 * dwarf2/attribute.c (attribute::value_as_address)
10688 (attribute::form_is_section_offset, attribute::form_is_constant)
10689 (attribute::form_is_ref): Now methods.
10690
10691 2020-02-08 Tom Tromey <tom@tromey.com>
10692
10693 * dwarf2read.c (struct attribute, DW_STRING)
10694 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10695 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10696 (attr_form_is_block, attr_form_is_section_offset)
10697 (attr_form_is_constant, attr_form_is_ref): Move.
10698 * dwarf2/attribute.h: New file.
10699 * dwarf2/attribute.c: New file, from dwarf2read.c.
10700 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10701
10702 2020-02-08 Tom Tromey <tom@tromey.com>
10703
10704 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10705 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10706 Move.
10707 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10708 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10709 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10710 abbrev.c.
10711 * dwarf2/abbrev.h: New file.
10712 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10713 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10714
10715 2020-02-08 Tom Tromey <tom@tromey.com>
10716
10717 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10718 (dwarf2_section_size, dwarf2_get_section_info)
10719 (create_signatured_type_table_from_debug_names)
10720 (create_addrmap_from_aranges, read_debug_names_from_section)
10721 (get_gdb_index_contents_from_section, read_comp_unit_head)
10722 (error_check_comp_unit_head, read_abbrev_offset)
10723 (create_debug_type_hash_table, init_cu_die_reader)
10724 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10725 (read_comp_units_from_section, create_cus_hash_table)
10726 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10727 (create_dwp_v2_section, dwarf2_rnglists_process)
10728 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10729 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10730 (read_indirect_string_from_dwz, read_addr_index_1)
10731 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10732 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10733 (fill_in_loclist_baton): Update.
10734 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10735 get_containing_section, get_bfd_owner, get_bfd_section,
10736 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10737 (dwarf2_read_section, get_section_name, get_section_file_name)
10738 (get_containing_section, get_section_bfd_owner)
10739 (get_section_bfd_section, get_section_name, get_section_file_name)
10740 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10741 declare.
10742 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10743 (dwarf2_section_info::get_bfd_owner)
10744 (dwarf2_section_info::get_bfd_section)
10745 (dwarf2_section_info::get_name)
10746 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10747 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10748 (dwarf2_section_info::read): Now methods.
10749 * dwarf-index-write.c (class debug_names): Update.
10750
10751 2020-02-08 Tom Tromey <tom@tromey.com>
10752
10753 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10754 Move to dwarf2/section.h.
10755 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10756 (get_section_bfd_section, get_section_name)
10757 (get_section_file_name, get_section_id, get_section_flags)
10758 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10759 dwarf2/section.c.
10760 * dwarf2/section.h: New file.
10761 * dwarf2/section.c: New file, from dwarf2read.c.
10762 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10763
10764 2020-02-08 Tom Tromey <tom@tromey.com>
10765
10766 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10767 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10768 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10769 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10770 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10771 * dwarf2/leb.h: New file, from dwarf2read.c.
10772 * dwarf2/leb.c: New file, from dwarf2read.c.
10773 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10774 Remove.
10775 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10776 (COMMON_SFILES): Add dwarf2/leb.c.
10777
10778 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10779
10780 GDB 9.1 released.
10781
10782 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10783
10784 PR gdb/25190:
10785 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10786 * gdb/remote.c (remote_console_output): Update.
10787 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10788 (ui_file_puts): ...this.
10789 * gdb/ui-file.h (ui_file_puts): Add declaration.
10790 * gdb/utils.c (emit_style_escape): Update.
10791 (flush_wrap_buffer): Update.
10792 (fputs_maybe_filtered): Update.
10793 (fputs_unfiltered): Add function.
10794
10795 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10796
10797 * gdb/event-loop.c (gdb_wait_for_event): Update.
10798 * gdb/printcmd.c (printf_command): Update.
10799 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10800 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10801 (gdb_os_flush_stderr): Update.
10802 * gdb/remote.c (remote_console_output): Update.
10803 * gdb/ui-file.c (gdb_flush): Rename to...
10804 (ui_file_flush): ...this.
10805 (stderr_file::write): Update.
10806 (stderr_file::puts): Update.
10807 * gdb/ui-file.h (gdb_flush): Rename to...
10808 (ui_file_flush): ...this.
10809 * gdb/utils.c (gdb_flush): Add function.
10810 * gdb/utils.h (gdb_flush): Add declaration.
10811
10812 2020-02-07 Tom Tromey <tromey@adacore.com>
10813
10814 PR breakpoints/24915:
10815 * source.c (find_and_open_source): Do not check basenames_may_differ.
10816
10817 2020-02-07 Tom Tromey <tom@tromey.com>
10818
10819 * README: Update gdbserver documentation.
10820 * gdbserver: Move to top level.
10821 * configure.tgt (build_gdbserver): Remove.
10822 * configure.ac: Remove --enable-gdbserver.
10823 * configure: Rebuild.
10824 * Makefile.in (distclean): Don't mention gdbserver.
10825
10826 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10827
10828 * source-cache.c (source_cache::ensure): Surround
10829 get_plain_source_lines with a try/catch.
10830 (source_cache::get_line_charpos): Get rid of try/catch
10831 and only check for the return value of "ensure".
10832 * tui/tui-source.c (tui_source_window::set_contents):
10833 Simplify "nlines" calculation.
10834
10835 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10836
10837 * MAINTAINERS (Write After Approval): Add myself.
10838
10839 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10840
10841 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10842 function call.
10843
10844 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10845
10846 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10847
10848 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10849
10850 * nat/riscv-linux-tdesc.h: New file.
10851 * nat/riscv-linux-tdesc.c: New file, taking code from...
10852 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10853 ... here.
10854 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10855 NATDEPFILES.
10856
10857 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10858
10859 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10860 we don't set the fake simulator ptid to the null_ptid.
10861
10862 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10863
10864 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10865 * gdbthread.h (class thread_info) <resumed>: Likewise.
10866 * infrun.c (resume_1): Likewise.
10867 (proceed): Likewise.
10868 (infrun_thread_stop_requested): Likewise.
10869 (stop_all_threads): Likewise.
10870 (handle_inferior_event): Likewise.
10871 (restart_threads): Likewise.
10872 (finish_step_over): Likewise.
10873 (keep_going_stepped_thread): Likewise.
10874 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10875 (linux_handle_extended_wait): Likewise.
10876 * record-btrace.c (get_thread_current_frame_id): Likewise.
10877 * record-full.c (record_full_wait_1): Likewise.
10878 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10879 * target.c (target_resume): Likewise.
10880 * thread.c (set_running_thread): Likewise.
10881
10882 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10883
10884 * f-valprint.c (f77_print_array_1): Changed datatype of index
10885 variable to LONGEST from int to enable it to contain bound
10886 values correctly.
10887
10888 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10889
10890 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10891 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10892 offsets according to FLEN determined.
10893 (riscv_linux_nat_target::read_description): Determine FLEN
10894 dynamically.
10895 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10896 according to FLEN determined.
10897 (riscv_linux_nat_target::store_registers): Likewise.
10898
10899 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10900
10901 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10902 when reg->group is empty and reggroup is not.
10903
10904 2020-01-31 Tom Tromey <tromey@adacore.com>
10905
10906 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10907 Call beneath target's mourn_inferior after unpushing.
10908
10909 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10910
10911 PR tui/9765
10912 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10913 have enough lines to fill the screen, still return the lowest
10914 address we found.
10915
10916 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10917
10918 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10919 '-', '<', and '>' commands.
10920
10921 2020-01-29 Pedro Alves <palves@redhat.com>
10922 Sergio Durigan Junior <sergiodj@redhat.com>
10923
10924 * infcmd.c (construct_inferior_arguments): Assert that
10925 'argc' is greater than 0.
10926
10927 2020-01-29 Luis Machado <luis.machado@linaro.org>
10928
10929 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10930 (BRK_INSN_MASK): Define to 0xd4200000.
10931 (aarch64_program_breakpoint_here_p): New function.
10932 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10933 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10934 breakpoint.c.
10935 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10936 breakpoint.h
10937 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10938 call gdbarch_program_breakpoint_here_p.
10939 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10940 default_program_breakpoint_here_p, changed return type to bool and
10941 simplified.
10942 * breakpoint.h (program_breakpoint_here): Moved prototype to
10943 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10944 return type to bool.
10945 * gdbarch.c: Regenerate.
10946 * gdbarch.h: Regenerate.
10947 * gdbarch.sh (program_breakpoint_here_p): New method.
10948 * infrun.c (handle_signal_stop): Call
10949 gdbarch_program_breakpoint_here_p.
10950
10951 2020-01-26 Tom Tromey <tom@tromey.com>
10952
10953 * ctfread.c (struct ctf_fp_info): Reindent.
10954 (_initialize_ctfread): Remove.
10955
10956 2020-01-26 Tom Tromey <tom@tromey.com>
10957
10958 * psymtab.c (partial_map_expand_apply)
10959 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10960 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10961 (psym_print_stats, psym_expand_symtabs_for_function)
10962 (psym_map_symbol_filenames, psym_map_matching_symbols)
10963 (psym_expand_symtabs_matching)
10964 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10965 (maintenance_check_psymtabs): Use new methods.
10966 * psympriv.h (struct partial_symtab) <readin_p,
10967 get_compunit_symtab>: New methods.
10968 <readin, compunit_symtab>: Remove members.
10969 (struct standard_psymtab): New.
10970 (struct legacy_psymtab): Derive from standard_psymtab.
10971 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10972 standard_psymtab.
10973 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10974
10975 2020-01-26 Tom Tromey <tom@tromey.com>
10976
10977 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10978 read_dependencies. Add assert.
10979 * psymtab.c (partial_symtab::read_dependencies): New method.
10980 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10981 method.
10982 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10983 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10984 read_dependencies.
10985 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10986 Add assert.
10987
10988 2020-01-26 Tom Tromey <tom@tromey.com>
10989
10990 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10991 Call expand_psymtab.
10992 (xcoff_read_symtab): Call expand_psymtab.
10993 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10994 legacy_expand_psymtab.
10995 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10996 method.
10997 (struct legacy_psymtab) <expand_psymtab>: Implement.
10998 <legacy_expand_psymtab>: New member.
10999 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11000 (parse_partial_symbols): Set legacy_expand_psymtab.
11001 (psymtab_to_symtab_1): Change argument order. Call
11002 expand_psymtab.
11003 (new_psymtab): Set legacy_expand_psymtab.
11004 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11005 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11006 expand_psymtab.
11007 (dwarf2_psymtab::expand_psymtab): Rename from
11008 psymtab_to_symtab_1. Call expand_psymtab.
11009 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11010 (dbx_end_psymtab): Likewise.
11011 (dbx_psymtab_to_symtab_1): Change argument order. Call
11012 expand_psymtab.
11013 (dbx_read_symtab): Call expand_psymtab.
11014 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11015 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11016 (ctf_psymtab::read_symtab): Call expand_psymtab.
11017
11018 2020-01-26 Tom Tromey <tom@tromey.com>
11019
11020 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11021 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11022 messages.
11023 * mdebugread.c (mdebug_read_symtab): Remove prints.
11024 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11025 assert.
11026 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11027
11028 2020-01-26 Tom Tromey <tom@tromey.com>
11029
11030 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11031 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11032 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11033 legacy_symtab.
11034 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11035 * psymtab.c (psymtab_to_symtab): Call method.
11036 (dump_psymtab): Update.
11037 * psympriv.h (struct partial_symtab): Add virtual destructor.
11038 <read_symtab>: New method.
11039 (struct legacy_symtab): New.
11040 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11041 (struct pst_map) <pst>: Now a legacy_psymtab.
11042 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11043 (new_psymtab): Use legacy_psymtab.
11044 * dwarf2read.h (struct dwarf2_psymtab): New.
11045 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11046 * dwarf2read.c (dwarf2_create_include_psymtab)
11047 (dwarf2_build_include_psymtabs, create_type_unit_group)
11048 (create_partial_symtab, process_psymtab_comp_unit_reader)
11049 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11050 (set_partial_user): Use dwarf2_psymtab.
11051 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11052 (psymtab_to_symtab_1, process_full_comp_unit)
11053 (process_full_type_unit, dwarf2_ranges_read)
11054 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11055 (dwarf_decode_lines): Use dwarf2_psymtab.
11056 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11057 (add_address_entry_worker, write_one_signatured_type)
11058 (recursively_count_psymbols, recursively_write_psymbols)
11059 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11060 (write_debug_names): Likewise.
11061 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11062 <pst>: Now a legacy_psymtab.
11063 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11064 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11065 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11066 * ctfread.c (struct ctf_psymtab): New.
11067 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11068 ctf_psymtab.
11069 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11070 (create_partial_symtab): Return a ctf_psymtab.
11071 (scan_partial_symbols): Update.
11072
11073 2020-01-26 Tom Tromey <tom@tromey.com>
11074
11075 * xcoffread.c (xcoff_start_psymtab): Use new.
11076 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11077 renamed from start_psymtab_common.
11078 * psympriv.h (struct partial_symtab): Add new constructor.
11079 (start_psymtab_common): Don't declare.
11080 * mdebugread.c (parse_partial_symbols): Use new.
11081 * dwarf2read.c (create_partial_symtab): Use new.
11082 * dbxread.c (start_psymtab): Use new.
11083 * ctfread.c (create_partial_symtab): Use new.
11084
11085 2020-01-26 Tom Tromey <tom@tromey.com>
11086
11087 * xcoffread.c (xcoff_end_psymtab): Use new.
11088 * psymtab.c (start_psymtab_common): Use new.
11089 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11090 Update.
11091 * psympriv.h (struct partial_symtab): Add parameters to
11092 constructor. Don't inline.
11093 (allocate_psymtab): Don't declare.
11094 * mdebugread.c (new_psymtab): Use new.
11095 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11096 * dbxread.c (dbx_end_psymtab): Use new.
11097
11098 2020-01-26 Tom Tromey <tom@tromey.com>
11099
11100 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11101 allocate_psymtab. Update documentation.
11102 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11103 allocate_psymtab. Do not use new.
11104 (allocate_psymtab): Use new. Update.
11105
11106 2020-01-26 Tom Tromey <tom@tromey.com>
11107
11108 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11109 * psymtab.c (psym_print_stats): Update.
11110 * psympriv.h (struct partial_symtab) <readin,
11111 psymtabs_addrmap_supported, anonymous>: Now bool.
11112 * mdebugread.c (psymtab_to_symtab_1): Update.
11113 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11114 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11115 (process_full_comp_unit, process_full_type_unit): Update.
11116 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11117 * ctfread.c (psymtab_to_symtab): Update.
11118
11119 2020-01-26 Tom Tromey <tom@tromey.com>
11120
11121 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11122 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11123 * psymtab.c (psymtab_storage): Delete psymtabs.
11124 (psymtab_storage::allocate_psymtab): Use new.
11125 (psymtab_storage::discard_psymtab): Use delete.
11126 * psympriv.h (struct partial_symtab): Add constructor and
11127 initializers.
11128
11129 2020-01-26 Tom Tromey <tom@tromey.com>
11130
11131 * machoread.c: Do not include psympriv.h.
11132
11133 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11134
11135 * NEWS: Mention the new option and the set/show commands.
11136
11137 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11138
11139 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11140 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11141 (validate_exec_file): New variables, enums, functions.
11142 (exec_file_locate_attach, print_section_info): Style the filenames.
11143 (_initialize_exec): Install show_exec_file_mismatch_command and
11144 set_exec_file_mismatch_command.
11145 * gdbcore.h (validate_exec_file): Declare.
11146 * infcmd.c (attach_command): Call validate_exec_file.
11147 * remote.c ( remote_target::remote_add_inferior): Likewise.
11148
11149 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11150
11151 * frame.c (find_frame_sal): Move call to get_next_frame into more
11152 inner scope.
11153 * inline-frame.c (inilne_state) <inline_state>: Update argument
11154 types.
11155 (inilne_state) <skipped_symbol>: Rename to...
11156 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11157 (skip_inline_frames): Build vector of skipped symbols and use this
11158 to reate the inline_state.
11159 (inline_skipped_symbol): Add a comment and some assertions, fetch
11160 skipped symbol from the list.
11161
11162 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11163
11164 * buildsym.c (lte_is_less_than): Delete.
11165 (buildsym_compunit::end_symtab_with_blockvector): Create local
11166 lambda function to sort line table entries, and use
11167 std::stable_sort instead of std::sort.
11168 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11169 markers when looking for a previous line.
11170
11171 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11172
11173 * dwarf2read.c (lnp_state_machine::record_line): Include
11174 end_sequence parameter in debug print out. Record the line if we
11175 are at an end_sequence marker even if it's not the start of a
11176 statement.
11177 * symmisc.c (maintenance_print_one_line_table): Print end of
11178 sequence markers with 'END' not '0'.
11179
11180 2020-01-24 Pedro Alves <palves@redhat.com>
11181
11182 PR gdb/25410
11183 * thread.c (scoped_restore_current_thread::restore): Use
11184 switch_to_inferior_no_thread.
11185 * exec.c: Include "progspace-and-thread.h".
11186 (add_target_sections, remove_target_sections):
11187 scoped_restore_current_pspace_and_thread instead of
11188 scoped_restore_current_thread.
11189 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11190 and aspace to the inferior before calling clone_program_space.
11191 Remove stale comment.
11192
11193 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11194
11195 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11196 (arm_netbsd_nat_target::fetch_registers): ...this.
11197 (arm_nbsd_nat_target::store_registers): Rename to...
11198 (arm_netbsd_nat_target::store_registers): ...this.
11199
11200 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11201
11202 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11203 register_t.
11204
11205 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11206
11207 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11208 Update comment.
11209 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11210 Likewise.
11211 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11212 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11213 the correct replacement (iterate_over_regset_sections).
11214 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11215 Update comment.
11216
11217 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11218
11219 PR gdb/23718
11220 * gdb/python/python.c (execute_gdb_command): Call
11221 async_enable_stdin in catch block.
11222
11223 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11224
11225 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11226 SWITCH_THRU_ALL_UIS.
11227
11228 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11229
11230 PR tui/9765
11231 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11232 comment, add extra parameter, and update to store previous symbol
11233 when appropriate.
11234 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11235 add extra parameter.
11236 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11237 remove unneeded parameter, add try/catch around gdb_print_insn,
11238 rewrite to add items to asm_lines vector.
11239 (tui_find_backward_disassembly_start_address): New function.
11240 (tui_find_disassembly_address): Updated throughout.
11241 (tui_disasm_window::set_contents): Update for changes to
11242 tui_disassemble.
11243 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11244 number of lines to scroll.
11245
11246 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11247
11248 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11249 (SECT_OFF_DATA): Likewise.
11250 (SECT_OFF_RODATA): Likewise.
11251 (SECT_OFF_TEXT): Likewise.
11252 (SECT_OFF_BSS): Likewise.
11253 (struct objfile) <text_section_offset, data_section_offset>: New
11254 methods.
11255 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11256 objfile::text_section_offset.
11257 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11258 * coffread.c (coff_symtab_read): Likewise.
11259 (enter_linenos): Likewise.
11260 (process_coff_symbol): Likewise.
11261 * ctfread.c (get_objfile_text_range): Likewise.
11262 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11263 Use objfile::data_section_offset.
11264 * dwarf2-frame.c (execute_cfa_program): Use
11265 objfile::text_section_offset.
11266 (dwarf2_frame_find_fde): Likewise.
11267 * dwarf2read.c (create_addrmap_from_index): Likewise.
11268 (create_addrmap_from_aranges): Likewise.
11269 (dw2_find_pc_sect_compunit_symtab): Likewise.
11270 (process_psymtab_comp_unit_reader): Likewise.
11271 (add_partial_symbol): Likewise.
11272 (add_partial_subprogram): Likewise.
11273 (process_full_comp_unit): Likewise.
11274 (read_file_scope): Likewise.
11275 (read_func_scope): Likewise.
11276 (read_lexical_block_scope): Likewise.
11277 (read_call_site_scope): Likewise.
11278 (dwarf2_rnglists_process): Likewise.
11279 (dwarf2_ranges_process): Likewise.
11280 (dwarf2_ranges_read): Likewise.
11281 (dwarf_decode_lines_1): Likewise.
11282 (new_symbol): Likewise.
11283 (dwarf2_fetch_die_loc_sect_off): Likewise.
11284 (dwarf2_per_cu_text_offset): Likewise.
11285 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11286 * hppa-tdep.c (read_unwind_info): Likewise.
11287 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11288 * psympriv.h (struct partial_symtab): Likewise.
11289 * psymtab.c (find_pc_sect_psymtab): Likewise.
11290 * solib-svr4.c (enable_break): Likewise.
11291 * stap-probe.c (relocate_address): Use
11292 objfile::data_section_offset.
11293 * xcoffread.c (enter_line_range): Use
11294 objfile::text_section_offset.
11295 (read_xcoff_symtab): Likewise.
11296
11297 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11298
11299 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11300 declaration to narrower scopes.
11301
11302 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11303
11304 * darwin-nat.h (struct darwin_exception_msg, enum
11305 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11306 Move up.
11307 (class darwin_nat_target) <wait_1, check_new_threads,
11308 decode_exception_message, decode_message, stop_inferior,
11309 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11310 * darwin-nat.c (darwin_check_new_threads): Rename to...
11311 (darwin_nat_target::check_new_threads): ... this.
11312 (darwin_suspend_inferior_it): Remove.
11313 (darwin_decode_exception_message): Rename to...
11314 (darwin_nat_target::decode_exception_message): ... this.
11315 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11316 (darwin_decode_message): Rename to...
11317 (darwin_nat_target::decode_message): ... this.
11318 (cancel_breakpoint): Rename to...
11319 (darwin_nat_target::cancel_breakpoint): ... this.
11320 (darwin_wait): Rename to...
11321 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11322 instead of iterate_over_inferiors.
11323 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11324 (darwin_stop_inferior): Rename to...
11325 (darwin_nat_target::stop_inferior): ... this.
11326 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11327 (darwin_init_thread_list): Rename to...
11328 (darwin_nat_target::init_thread_list): ... this.
11329 (darwin_ptrace_him): Rename to...
11330 (darwin_nat_target::ptrace_him): ... this.
11331 (darwin_nat_target::create_inferior): Pass lambda function to
11332 fork_inferior.
11333 (darwin_nat_target::detach): Call stop_inferior instead of
11334 darwin_stop_inferior.
11335 * fork-inferior.h (fork_inferior): Change init_trace_fun
11336 parameter to gdb::function_view.
11337 * fork-inferior.c (fork_inferior): Likewise.
11338
11339 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11340
11341 * i386-cygwin-tdep.c (core_process_module_section): Update.
11342 * windows-nat.c (struct lm_info_windows): Add text_offset.
11343 (windows_xfer_shared_libraries): Update.
11344 * windows-tdep.c (windows_xfer_shared_library):
11345 Add text_offset_cached argument.
11346 * windows-tdep.h (windows_xfer_shared_library): Update.
11347
11348 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11349
11350 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11351
11352 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11353
11354 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11355 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11356 replace with range-based for.
11357 (gdbsim_interrupt_inferior): Remove.
11358 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11359 with a range-based for. Inline code from
11360 gdbsim_interrupt_inferior.
11361
11362 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11363
11364 * infrun.c (proceed): Fix indentation.
11365
11366 2020-01-21 Tom Tromey <tromey@adacore.com>
11367
11368 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11369 * python/python.c (python_extension_ops): Update.
11370 (gdbpy_colorize): New function.
11371 * python/lib/gdb/__init__.py (colorize): New function.
11372 * extension.h (ext_lang_colorize): Declare.
11373 * extension.c (ext_lang_colorize): New function.
11374 * extension-priv.h (struct extension_language_ops) <colorize>: New
11375 member.
11376 * cli/cli-style.c (_initialize_cli_style): Update help text.
11377
11378 2020-01-21 Luis Machado <luis.machado@linaro.org>
11379
11380 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11381 <cond>: Change type to bool.
11382 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11383 (aarch64_displaced_step_cb): Likewise.
11384 (aarch64_displaced_step_tb): Likewise.
11385
11386 2020-01-21 Luis Machado <luis.machado@linaro.org>
11387
11388 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11389 output.
11390
11391 2020-01-21 Luis Machado <luis.machado@linaro.org>
11392
11393 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11394 <pc_adjust>: Adjust the documentation.
11395 (aarch64_displaced_step_fixup): Check if PC really moved before
11396 adjusting it.
11397
11398 2020-01-19 Tom Tromey <tom@tromey.com>
11399
11400 * disasm.c (~gdb_disassembler): New destructor.
11401 (gdb_buffered_insn_length): Call disassemble_free_target.
11402 * disasm.h (class gdb_disassembler): Declare destructor. Use
11403 DISABLE_COPY_AND_ASSIGN.
11404
11405 2020-01-19 Tom Tromey <tom@tromey.com>
11406
11407 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11408 (die_reader_func_ftype): Remove.
11409 (cutu_reader): New class.
11410 (dw2_get_file_names_reader): Remove "data" parameter.
11411 (dw2_get_file_names): Use cutu_reader.
11412 (create_debug_type_hash_table): Update.
11413 (read_cutu_die_from_dwo): Update comment.
11414 (lookup_dwo_unit): Add dwo_name parameter.
11415 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11416 die_reader_func_ftype and data parameters.
11417 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11418 Remove die_reader_func_ftype and data parameters.
11419 (~cutu_reader): New; from init_cutu_and_read_dies.
11420 (cutu_reader::cutu_reader): Rename from
11421 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11422 and data parameters.
11423 (init_cutu_and_read_dies_simple): Remove.
11424 (struct process_psymtab_comp_unit_data): Remove.
11425 (process_psymtab_comp_unit_reader): Remove data parameter; add
11426 want_partial_unit and pretend_language parameters.
11427 (process_psymtab_comp_unit): Use cutu_reader.
11428 (build_type_psymtabs_reader): Remove data parameter.
11429 (build_type_psymtabs_1): Use cutu_reader.
11430 (process_skeletonless_type_unit): Likewise.
11431 (load_partial_comp_unit_reader): Remove.
11432 (load_partial_comp_unit): Use cutu_reader.
11433 (load_full_comp_unit_reader): Remove.
11434 (load_full_comp_unit): Use cutu_reader.
11435 (struct create_dwo_cu_data): Remove.
11436 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11437 dwo_unit parameters.
11438 (create_cus_hash_table): Use cutu_reader.
11439 (struct dwarf2_read_addr_index_data): Remove.
11440 (dwarf2_read_addr_index_reader): Remove.
11441 (dwarf2_read_addr_index): Use cutu_reader.
11442 (read_signatured_type_reader): Remove.
11443 (read_signatured_type): Use cutu_reader.
11444
11445 2020-01-19 Tom Tromey <tom@tromey.com>
11446
11447 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11448 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11449 (tui_wrefresh): Declare.
11450 * tui/tui-wingeneral.c (suppress_output): New global.
11451 (tui_suppress_output, ~tui_suppress_output): New constructor and
11452 destructor.
11453 (tui_wrefresh): New function.
11454 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11455 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11456 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11457 method.
11458 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11459 tui_wrefresh.
11460 (tui_data_window::no_refresh): New method.
11461 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11462 (tui_reg_command): Use tui_suppress_output
11463 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11464 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11465 method.
11466 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11467
11468 2020-01-19 Tom Tromey <tom@tromey.com>
11469
11470 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11471 Handle case where symtab is null.
11472
11473 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11474
11475 * linux-fork.c (one_fork_p): Simplify.
11476
11477 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11478
11479 * top.c (struct qt_args): Remove.
11480 (kill_or_detach): Change return type to void, replace `void *`
11481 parameter with a proper one.
11482 (print_inferior_quit_action): Likewise.
11483 (quit_confirm): Use range-based for loop to iterate over inferiors.
11484 (quit_force): Likewise.
11485
11486 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11487
11488 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11489 `void *` parameter with proper parameters.
11490 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11491 (print_one_inferior): Change return type to void, replace `void *`
11492 parameter with proper parameters.
11493 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11494 inferiors.
11495 (get_other_inferior): Remove.
11496 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11497 inferiors.
11498
11499 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11500
11501 * mi/mi-interp.c (report_initial_inferior): Remove.
11502 (mi_interp::init): Use range-based for to iterate over inferiors.
11503
11504 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11505
11506 * python/py-inferior.c (build_inferior_list): Remove.
11507 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11508
11509 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11510
11511 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11512 (btrace_stitch_trace): Likewise.
11513 * charset.c (intermediate_encoding): Likewise (vaild).
11514 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11515 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11516 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11517
11518 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11519
11520 * windows-tdep.c (windows_get_tlb_type):
11521 Add rtl_user_process_parameters type.
11522
11523 2020-01-16 Pedro Alves <palves@redhat.com>
11524 Norbert Lange <nolange79@gmail.com>
11525
11526 PR build/24805
11527 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11528 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11529 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11530 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11531 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11532 (ps_plog): Redeclare exported functions with default visibility.
11533
11534 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11535
11536 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11537 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11538
11539 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11540
11541 * infcmd.c (post_create_inferior): Use get_thread_regcache
11542 instead of get_current_regcache.
11543
11544 2020-01-14 Tom Tromey <tom@tromey.com>
11545
11546 PR symtab/12535:
11547 * python/python.c (gdbpy_decode_line): Treat empty string the same
11548 as no argument.
11549
11550 2020-01-14 Tom Tromey <tom@tromey.com>
11551
11552 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11553
11554 2020-01-14 Tom Tromey <tom@tromey.com>
11555
11556 * nat/linux-btrace.c: Don't include <config.h>.
11557 * nat/linux-ptrace.c: Don't include <config.h>.
11558 * nat/x86-linux-dregs.c: Don't include <config.h>.
11559
11560 2020-01-14 Tom Tromey <tom@tromey.com>
11561
11562 * configure: Rebuild.
11563 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11564
11565 2020-01-14 Tom Tromey <tom@tromey.com>
11566
11567 * nat/x86-linux-dregs.c: Include configh.h.
11568 * nat/linux-ptrace.c: Include configh.h.
11569 * nat/linux-btrace.c: Include configh.h.
11570 * defs.h: Include config.h, bfd.h.
11571 * configure.ac: Don't source common.host.
11572 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11573 * configure: Rebuild.
11574 * acinclude.m4: Update path.
11575 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11576 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11577 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11578 (CLIBS): Add LIBSUPPORT.
11579 (CDEPS): Likewise.
11580 (COMMON_SFILES): Remove gdbsupport files.
11581 (HFILES_NO_SRCDIR): Likewise.
11582 (stamp-version): Update path to create-version.sh.
11583 (ALLDEPFILES): Remove gdbsupport files.
11584
11585 2020-01-14 Tom Tromey <tom@tromey.com>
11586
11587 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11588 USE_WIN32API when needed.
11589 * configure.ac (USE_WIN32API): Don't define.
11590 (WIN32LIBS): Use WIN32APILIBS.
11591 * configure: Rebuild.
11592
11593 2020-01-14 Tom Tromey <tom@tromey.com>
11594
11595 * configure: Rebuild.
11596 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11597
11598 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11599
11600 * skip.c (skip_function_command): Make skip w/o arguments use the
11601 name of the inlined function if pc is inside any inlined function.
11602
11603 2020-01-14 Luis Machado <luis.machado@linaro.org>
11604
11605 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11606 * infrun.c (resume_1): Likewise.
11607 (handle_inferior_event): Remove stale comment.
11608 * linux-nat.c (linux_nat_target::resume): Update comments.
11609 (save_stop_reason): Likewise.
11610 (linux_nat_filter_event): Likewise.
11611 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11612
11613 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11614
11615 * elfread.c (record_minimal_symbol): Set section index to 0 for
11616 non-allocatable sections.
11617
11618
11619 2020-01-13 Ali Tamur <tamur@google.com>
11620
11621 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11622 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11623 to gdb::optional. Update comments.
11624 (dwo_file): Update comments.
11625 (read_attribute): Update API to take an additional out parameter,
11626 need_reprocess. This is used to mark attributes that need other
11627 attributes (e.g. str_offsets_base) for correct computation which may not
11628 have been read yet.
11629 (read_attribute_reprocess): New function declaration.
11630 (read_addr_index): Likewise.
11631 (read_dwo_str_index): Likewise.
11632 (read_stub_str_index): Likewise.
11633 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11634 (lookup_addr_base): New function definition.
11635 (lookup_ranges_base): Likewise.
11636 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11637 lookup_ranges_base.
11638 (init_cutu_and_read_dies): Update comments.
11639 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11640 unit. This is used to inherit parent's str_offsets_base and addr_base.
11641 Update comments.
11642 (init_cutu_and_read_dies_simple): Reflect API changes.
11643 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11644 (create_cus_hash_table): Change API to take parent compile unit.
11645 Reflect API changes.
11646 (open_and_init_dwo_file): Reflect API changes.
11647 (dwarf2_get_pc_bounds): Update comments.
11648 (dwarf2_record_block_ranges): Likewise.
11649 (read_full_die_1): Change implementation to reprocess attributes that
11650 need str_offsets_base and addr_base.
11651 (partial_die_info::read): Likewise.
11652 (read_attribute_reprocess): New function definition.
11653 (read_attribute_value): Change API to take an additional out parameter,
11654 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11655 when a non-dwo compile unit has index based attributes.
11656 (read_attribute): Reflect API changes.
11657 (read_addr_index_1): Reflect API changes. Update comments.
11658 (dwarf2_read_addr_index_data): Reflect API changes.
11659 (dwarf2_read_addr_index): Likewise.
11660 (read_str_index): Change API and implementation. This becomes a helper
11661 to be used by the new string index related methods. Update error
11662 message and comments.
11663 (read_dwo_str_index): New function definition.
11664 (read_stub_str_index): Likewise.
11665 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11666 * symfile.h (dwarf2_debug_sections): Likewise.
11667 * xcoffread.c (dwarf2_debug_sections): Likewise.
11668
11669 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11670
11671 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11672 core_reg_sect type to gdb_byte *.
11673 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11674 * cris-tdep.c (fetch_core_registers): Likewise.
11675 * corelow.c (core_target::get_core_register_section): Change
11676 type of `contents` to gdb::byte_vector.
11677
11678 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11679
11680 * tui/tui-wingeneral.c (box_win): Position the title in the center
11681 of the border.
11682
11683 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11684
11685 * corelow.c (core_target::get_core_register_section): Use
11686 std::vector instead of alloca.
11687
11688 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11689
11690 * warning.m4: Add -Wmissing-declarations to build_warnings.
11691 * configure: Re-generate.
11692
11693 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11694
11695 * python/python.c (init__gdb_module): Add declaration.
11696
11697 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11698
11699 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11700 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11701 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11702 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11703 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11704 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11705 * ada-exp.y (_initialize_ada_exp): Add declaration.
11706 * ada-lang.c (_initialize_ada_language): Add declaration.
11707 * ada-tasks.c (_initialize_tasks): Add declaration.
11708 * agent.c (_initialize_agent): Add declaration.
11709 * aix-thread.c (_initialize_aix_thread): Add declaration.
11710 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11711 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11712 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11713 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11714 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11715 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11716 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11717 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11718 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11719 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11720 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11721 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11722 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11723 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11724 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11725 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11726 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11727 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11728 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11729 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11730 * annotate.c (_initialize_annotate): Add declaration.
11731 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11732 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11733 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11734 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11735 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11736 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11737 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11738 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11739 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11740 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11741 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11742 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11743 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11744 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11745 * auto-load.c (_initialize_auto_load): Add declaration.
11746 * auxv.c (_initialize_auxv): Add declaration.
11747 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11748 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11749 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11750 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11751 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11752 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11753 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11754 * breakpoint.c (_initialize_breakpoint): Add declaration.
11755 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11756 * btrace.c (_initialize_btrace): Add declaration.
11757 * charset.c (_initialize_charset): Add declaration.
11758 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11759 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11760 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11761 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11762 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11763 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11764 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11765 * coffread.c (_initialize_coffread): Add declaration.
11766 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11767 * compile/compile.c (_initialize_compile): Add declaration.
11768 * complaints.c (_initialize_complaints): Add declaration.
11769 * completer.c (_initialize_completer): Add declaration.
11770 * copying.c (_initialize_copying): Add declaration.
11771 * corefile.c (_initialize_core): Add declaration.
11772 * corelow.c (_initialize_corelow): Add declaration.
11773 * cp-abi.c (_initialize_cp_abi): Add declaration.
11774 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11775 * cp-support.c (_initialize_cp_support): Add declaration.
11776 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11777 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11778 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11779 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11780 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11781 * ctfread.c (_initialize_ctfread): Add declaration.
11782 * d-lang.c (_initialize_d_language): Add declaration.
11783 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11784 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11785 * dbxread.c (_initialize_dbxread): Add declaration.
11786 * dcache.c (_initialize_dcache): Add declaration.
11787 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11788 * disasm.c (_initialize_disasm): Add declaration.
11789 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11790 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11791 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11792 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11793 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11794 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11795 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11796 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11797 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11798 * elfread.c (_initialize_elfread): Add declaration.
11799 * exec.c (_initialize_exec): Add declaration.
11800 * extension.c (_initialize_extension): Add declaration.
11801 * f-lang.c (_initialize_f_language): Add declaration.
11802 * f-valprint.c (_initialize_f_valprint): Add declaration.
11803 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11804 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11805 * filesystem.c (_initialize_filesystem): Add declaration.
11806 * findcmd.c (_initialize_mem_search): Add declaration.
11807 * findvar.c (_initialize_findvar): Add declaration.
11808 * fork-child.c (_initialize_fork_child): Add declaration.
11809 * frame-base.c (_initialize_frame_base): Add declaration.
11810 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11811 * frame.c (_initialize_frame): Add declaration.
11812 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11813 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11814 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11815 * gcore.c (_initialize_gcore): Add declaration.
11816 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11817 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11818 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11819 * gdbarch.c (_initialize_gdbarch): Add declaration.
11820 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11821 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11822 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11823 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11824 * go-lang.c (_initialize_go_language): Add declaration.
11825 * go32-nat.c (_initialize_go32_nat): Add declaration.
11826 * guile/guile.c (_initialize_guile): Add declaration.
11827 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11828 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11829 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11830 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11831 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11832 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11833 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11834 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11835 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11836 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11837 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11838 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11839 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11840 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11841 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11842 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11843 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11844 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11845 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11846 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11847 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11848 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11849 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11850 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11851 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11852 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11853 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11854 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11855 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11856 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11857 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11858 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11859 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11860 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11861 * infcall.c (_initialize_infcall): Add declaration.
11862 * infcmd.c (_initialize_infcmd): Add declaration.
11863 * inflow.c (_initialize_inflow): Add declaration.
11864 * infrun.c (_initialize_infrun): Add declaration.
11865 * interps.c (_initialize_interpreter): Add declaration.
11866 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11867 * jit.c (_initialize_jit): Add declaration.
11868 * language.c (_initialize_language): Add declaration.
11869 * linux-fork.c (_initialize_linux_fork): Add declaration.
11870 * linux-nat.c (_initialize_linux_nat): Add declaration.
11871 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11872 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11873 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11874 * m2-lang.c (_initialize_m2_language): Add declaration.
11875 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11876 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11877 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11878 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11879 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11880 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11881 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11882 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11883 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11884 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11885 * machoread.c (_initialize_machoread): Add declaration.
11886 * macrocmd.c (_initialize_macrocmd): Add declaration.
11887 * macroscope.c (_initialize_macroscope): Add declaration.
11888 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11889 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11890 * maint.c (_initialize_maint_cmds): Add declaration.
11891 * mdebugread.c (_initialize_mdebugread): Add declaration.
11892 * memattr.c (_initialize_mem): Add declaration.
11893 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11894 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11895 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11896 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11897 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11898 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11899 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11900 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11901 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11902 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11903 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11904 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11905 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11906 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11907 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11908 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11909 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11910 * mipsread.c (_initialize_mipsread): Add declaration.
11911 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11912 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11913 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11914 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11915 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11916 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11917 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11918 * nto-procfs.c (_initialize_procfs): Add declaration.
11919 * objc-lang.c (_initialize_objc_language): Add declaration.
11920 * observable.c (_initialize_observer): Add declaration.
11921 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11922 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11923 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11924 * osabi.c (_initialize_gdb_osabi): Add declaration.
11925 * osdata.c (_initialize_osdata): Add declaration.
11926 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11927 * parse.c (_initialize_parse): Add declaration.
11928 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11929 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11930 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11931 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11932 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11933 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11934 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11935 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11936 * printcmd.c (_initialize_printcmd): Add declaration.
11937 * probe.c (_initialize_probe): Add declaration.
11938 * proc-api.c (_initialize_proc_api): Add declaration.
11939 * proc-events.c (_initialize_proc_events): Add declaration.
11940 * proc-service.c (_initialize_proc_service): Add declaration.
11941 * procfs.c (_initialize_procfs): Add declaration.
11942 * producer.c (_initialize_producer): Add declaration.
11943 * psymtab.c (_initialize_psymtab): Add declaration.
11944 * python/python.c (_initialize_python): Add declaration.
11945 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11946 * record-btrace.c (_initialize_record_btrace): Add declaration.
11947 * record-full.c (_initialize_record_full): Add declaration.
11948 * record.c (_initialize_record): Add declaration.
11949 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11950 * regcache.c (_initialize_regcache): Add declaration.
11951 * reggroups.c (_initialize_reggroup): Add declaration.
11952 * remote-notif.c (_initialize_notif): Add declaration.
11953 * remote-sim.c (_initialize_remote_sim): Add declaration.
11954 * remote.c (_initialize_remote): Add declaration.
11955 * reverse.c (_initialize_reverse): Add declaration.
11956 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11957 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11958 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11959 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11960 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11961 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11962 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11963 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11964 Add declaration.
11965 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11966 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11967 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11968 * rust-exp.y (_initialize_rust_exp): Add declaration.
11969 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11970 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11971 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11972 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11973 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11974 * score-tdep.c (_initialize_score_tdep): Add declaration.
11975 * ser-go32.c (_initialize_ser_dos): Add declaration.
11976 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11977 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11978 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11979 * ser-uds.c (_initialize_ser_socket): Add declaration.
11980 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11981 * serial.c (_initialize_serial): Add declaration.
11982 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11983 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11984 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11985 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11986 * skip.c (_initialize_step_skip): Add declaration.
11987 * sol-thread.c (_initialize_sol_thread): Add declaration.
11988 * solib-aix.c (_initialize_solib_aix): Add declaration.
11989 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11990 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11991 * solib-frv.c (_initialize_frv_solib): Add declaration.
11992 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11993 * solib-target.c (_initialize_solib_target): Add declaration.
11994 * solib.c (_initialize_solib): Add declaration.
11995 * source-cache.c (_initialize_source_cache): Add declaration.
11996 * source.c (_initialize_source): Add declaration.
11997 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11998 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11999 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12000 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12001 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12002 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12003 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12004 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12005 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12006 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12007 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12008 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12009 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12010 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12011 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12012 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12013 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12014 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12015 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12016 * stabsread.c (_initialize_stabsread): Add declaration.
12017 * stack.c (_initialize_stack): Add declaration.
12018 * stap-probe.c (_initialize_stap_probe): Add declaration.
12019 * std-regs.c (_initialize_frame_reg): Add declaration.
12020 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12021 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12022 * symfile.c (_initialize_symfile): Add declaration.
12023 * symmisc.c (_initialize_symmisc): Add declaration.
12024 * symtab.c (_initialize_symtab): Add declaration.
12025 * target.c (_initialize_target): Add declaration.
12026 * target-connection.c (_initialize_target_connection): Add
12027 declaration.
12028 * target-dcache.c (_initialize_target_dcache): Add declaration.
12029 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12030 * thread.c (_initialize_thread): Add declaration.
12031 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12032 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12033 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12034 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12035 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12036 * tracectf.c (_initialize_ctf): Add declaration.
12037 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12038 * tracefile.c (_initialize_tracefile): Add declaration.
12039 * tracepoint.c (_initialize_tracepoint): Add declaration.
12040 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12041 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12042 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12043 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12044 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12045 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12046 * tui/tui.c (_initialize_tui): Add declaration.
12047 * typeprint.c (_initialize_typeprint): Add declaration.
12048 * ui-style.c (_initialize_ui_style): Add declaration.
12049 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12050 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12051 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12052 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12053 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12054 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12055 * unittests/filtered_iterator-selftests.c
12056 (_initialize_filtered_iterator_selftests): Add declaration.
12057 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12058 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12059 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12060 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12061 * unittests/main-thread-selftests.c
12062 (_initialize_main_thread_selftests): Add declaration.
12063 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12064 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12065 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12066 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12067 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12068 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12069 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12070 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12071 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12072 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12073 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12074 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12075 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12076 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12077 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12078 declaration.
12079 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12080 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12081 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12082 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12083 * user-regs.c (_initialize_user_regs): Add declaration.
12084 * utils.c (_initialize_utils): Add declaration.
12085 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12086 * valops.c (_initialize_valops): Add declaration.
12087 * valprint.c (_initialize_valprint): Add declaration.
12088 * value.c (_initialize_values): Add declaration.
12089 * varobj.c (_initialize_varobj): Add declaration.
12090 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12091 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12092 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12093 * windows-nat.c (_initialize_windows_nat): Add declaration.
12094 (_initialize_check_for_gdb_ini): Add declaration.
12095 (_initialize_loadable): Add declaration.
12096 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12097 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12098 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12099 * xcoffread.c (_initialize_xcoffread): Add declaration.
12100 * xml-support.c (_initialize_xml_support): Add declaration.
12101 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12102 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12103 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12104 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12105
12106 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12107
12108 * regformats/regdat.sh: Generate declaration for init function.
12109
12110 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12111
12112 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12113 up.
12114 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12115 close_one_inferior>: New methods.
12116 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12117 pass down target to find_inferior_pid.
12118 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12119 Pass down target to find_inferior_ptid.
12120 (gdbsim_target::create_inferior): Pass down target to
12121 add_thread_silent.
12122 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12123 target down to find_inferior_ptid and switch_to_thread.
12124 (gdbsim_target::close): Update to call close_one_inferior.
12125 (struct resume_data): Remove.
12126 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12127 directly, rather than through a void pointer.
12128 (gdbsim_target::resume): Update to call resume_one_inferior.
12129
12130 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12131
12132 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12133
12134 2020-01-12 Pedro Alves <palves@redhat.com>
12135
12136 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12137 directly for the current inferior instead of
12138 discard_all_inferiors.
12139 (discard_all_inferiors): Delete.
12140
12141 2020-01-11 Tom Tromey <tom@tromey.com>
12142
12143 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12144 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12145 deprecated_safe_get_selected_frame.
12146
12147 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12148
12149 * inferior.c (print_inferior): Switch inferior before printing it.
12150
12151 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12152 Pedro Alves <palves@redhat.com>
12153
12154 * progspace-and-thread.c (switch_to_program_space_and_thread):
12155 Assert there's an inferior for PSPACE. Use
12156 switch_to_inferior_no_thread to switch the inferior too.
12157 * progspace.c (program_space::~program_space): Call
12158 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12159 (program_space::free_all_objfiles): Don't call clear_symtab_users
12160 here.
12161 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12162
12163 2020-01-10 Pedro Alves <palves@redhat.com>
12164
12165 * NEWS: Mention multi-target debugging, "info connections", and
12166 "add-inferior -no-connection".
12167
12168 2020-01-10 Pedro Alves <palves@redhat.com>
12169
12170 * infrun.c: Include "target-connection.h".
12171 (check_multi_target_resumption): New.
12172 (proceed): Call it.
12173 * target-connection.c (make_target_connection_string): Make
12174 extern.
12175 * target-connection.h (make_target_connection_string): Declare.
12176
12177 2020-01-10 Pedro Alves <palves@redhat.com>
12178
12179 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12180 * inferior.c (uiout_field_connection): New function.
12181 (print_inferior): Add new "connection-id" column.
12182 (add_inferior_command): Show connection number/string of added
12183 inferior.
12184 * process-stratum-target.h
12185 (process_stratum_target::connection_string): New virtual method.
12186 (process_stratum_target::connection_number): New field.
12187 * remote.c (remote_target::connection_string): New override.
12188 * target-connection.c: New file.
12189 * target-connection.h: New file.
12190 * target.c (decref_target): Remove process_stratum targets from
12191 the connection list.
12192 (target_stack::push): Add process_stratum targets to the
12193 connection list.
12194
12195 2020-01-10 Pedro Alves <palves@redhat.com>
12196
12197 Revert:
12198 2016-04-12 Pedro Alves <palves@redhat.com>
12199 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12200 Remove references to name.
12201 * serial.h (struct serial) <name>: Delete.
12202
12203 2020-01-10 Pedro Alves <palves@redhat.com>
12204
12205 * gdbarch-selftests.c (register_to_value_test): Remove "target
12206 already pushed" check.
12207
12208 2020-01-10 Pedro Alves <palves@redhat.com>
12209 John Baldwin <jhb@FreeBSD.org>
12210
12211 * aarch64-linux-nat.c
12212 (aarch64_linux_nat_target::thread_architecture): Adjust.
12213 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12214 (task_command_1): Likewise.
12215 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12216 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12217 (aix_thread_target::store_registers)
12218 (aix_thread_target::thread_alive): Adjust.
12219 * amd64-fbsd-tdep.c: Include "inferior.h".
12220 (amd64fbsd_get_thread_local_address): Pass down target.
12221 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12222 thread's gdbarch instead of target_gdbarch.
12223 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12224 get_last_target_status.
12225 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12226 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12227 inferiors.
12228 (update_inserted_breakpoint_locations): Skip if inferiors with no
12229 execution.
12230 (update_global_location_list): When handling moribund locations,
12231 find representative inferior for location's pspace, and use thread
12232 count of its process_stratum target.
12233 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12234 * bsd-uthread.c (bsd_uthread_target::wait): Use
12235 as_process_stratum_target and adjust thread_change_ptid and
12236 add_thread calls.
12237 (bsd_uthread_target::update_thread_list): Use
12238 as_process_stratum_target and adjust find_thread_ptid,
12239 thread_change_ptid and add_thread calls.
12240 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12241 find_thread_ptid call.
12242 * corelow.c (add_to_thread_list): Adjust add_thread call.
12243 (core_target_open): Adjust add_thread_silent and thread_count
12244 calls.
12245 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12246 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12247 * event-top.c (async_disconnect): Pop targets from all inferiors.
12248 * exec.c (add_target_sections): Push exec target on all inferiors
12249 sharing the program space.
12250 (remove_target_sections): Remove the exec target from all
12251 inferiors sharing the program space.
12252 (exec_on_vfork): New.
12253 * exec.h (exec_on_vfork): Declare.
12254 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12255 Pass it down.
12256 (fbsd_nat_target::update_thread_list): Adjust.
12257 (fbsd_nat_target::resume): Adjust.
12258 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12259 down.
12260 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12261 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12262 get_thread_arch_regcache call.
12263 * fork-child.c (gdb_startup_inferior): Pass target down to
12264 startup_inferior and set_executing.
12265 * gdbthread.h (struct process_stratum_target): Forward declare.
12266 (add_thread, add_thread_silent, add_thread_with_info)
12267 (in_thread_list): Add process_stratum_target parameter.
12268 (find_thread_ptid(inferior*, ptid_t)): New overload.
12269 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12270 parameter.
12271 (all_threads()): Delete overload.
12272 (all_threads, all_non_exited_threads): Add process_stratum_target
12273 parameter.
12274 (all_threads_safe): Use brace initialization.
12275 (thread_count): Add process_stratum_target parameter.
12276 (set_resumed, set_running, set_stop_requested, set_executing)
12277 (threads_are_executing, finish_thread_state): Add
12278 process_stratum_target parameter.
12279 (switch_to_thread): Use is_current_thread.
12280 * i386-fbsd-tdep.c: Include "inferior.h".
12281 (i386fbsd_get_thread_local_address): Pass down target.
12282 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12283 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12284 have_inferiors check.
12285 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12286 (inf_ptrace_target::attach): Adjust.
12287 * infcall.c (run_inferior_call): Adjust.
12288 * infcmd.c (run_command_1): Pass target to
12289 scoped_finish_thread_state.
12290 (proceed_thread_callback): Skip inferiors with no execution.
12291 (continue_command): Rename 'all_threads' local to avoid hiding
12292 'all_threads' function. Adjust get_last_target_status call.
12293 (prepare_one_step): Adjust set_running call.
12294 (signal_command): Use user_visible_resume_target. Compare thread
12295 pointers instead of inferior_ptid.
12296 (info_program_command): Adjust to pass down target.
12297 (attach_command): Mark target's 'thread_executing' flag.
12298 (stop_current_target_threads_ns): New, factored out from ...
12299 (interrupt_target_1): ... this. Switch inferior before making
12300 target calls.
12301 * inferior-iter.h
12302 (struct all_inferiors_iterator, struct all_inferiors_range)
12303 (struct all_inferiors_safe_range)
12304 (struct all_non_exited_inferiors_range): Filter on
12305 process_stratum_target too. Remove explicit.
12306 * inferior.c (inferior::inferior): Push dummy target on target
12307 stack.
12308 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12309 Add process_stratum_target parameter, and pass it down.
12310 (have_live_inferiors): Adjust.
12311 (switch_to_inferior_and_push_target): New.
12312 (add_inferior_command, clone_inferior_command): Handle
12313 "-no-connection" parameter. Use
12314 switch_to_inferior_and_push_target.
12315 (_initialize_inferior): Mention "-no-connection" option in
12316 the help of "add-inferior" and "clone-inferior" commands.
12317 * inferior.h: Include "process-stratum-target.h".
12318 (interrupt_target_1): Use bool.
12319 (struct inferior) <push_target, unpush_target, target_is_pushed,
12320 find_target_beneath, top_target, process_target, target_at,
12321 m_stack>: New.
12322 (discard_all_inferiors): Delete.
12323 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12324 (all_inferiors, all_non_exited_inferiors): Add
12325 process_stratum_target parameter.
12326 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12327 (target_last_proc_target): New global.
12328 (follow_fork_inferior): Push target on new inferior. Pass target
12329 to add_thread_silent. Call exec_on_vfork. Handle target's
12330 reference count.
12331 (follow_fork): Adjust get_last_target_status call. Also consider
12332 target.
12333 (follow_exec): Push target on new inferior.
12334 (struct execution_control_state) <target>: New field.
12335 (user_visible_resume_target): New.
12336 (do_target_resume): Call target_async.
12337 (resume_1): Set target's threads_executing flag. Consider resume
12338 target.
12339 (commit_resume_all_targets): New.
12340 (proceed): Also consider resume target. Skip threads of inferiors
12341 with no execution. Commit resumtion in all targets.
12342 (start_remote): Pass current inferior to wait_for_inferior.
12343 (infrun_thread_stop_requested): Consider target as well. Pass
12344 thread_info pointer to clear_inline_frame_state instead of ptid.
12345 (infrun_thread_thread_exit): Consider target as well.
12346 (random_pending_event_thread): New inferior parameter. Use it.
12347 (do_target_wait): Rename to ...
12348 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12349 down.
12350 (threads_are_resumed_pending_p, do_target_wait): New.
12351 (prepare_for_detach): Adjust calls.
12352 (wait_for_inferior): New inferior parameter. Handle it. Use
12353 do_target_wait_1 instead of do_target_wait.
12354 (fetch_inferior_event): Adjust. Switch to representative
12355 inferior. Pass target down.
12356 (set_last_target_status): Add process_stratum_target parameter.
12357 Save target in global.
12358 (get_last_target_status): Add process_stratum_target parameter and
12359 handle it.
12360 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12361 (context_switch): Check inferior_ptid == null_ptid before calling
12362 inferior_thread().
12363 (get_inferior_stop_soon): Pass down target.
12364 (wait_one): Rename to ...
12365 (poll_one_curr_target): ... this.
12366 (struct wait_one_event): New.
12367 (wait_one): New.
12368 (stop_all_threads): Adjust.
12369 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12370 event's target.
12371 (switch_back_to_stepped_thread): Also consider target.
12372 (print_stop_event): Update.
12373 (normal_stop): Update. Also consider the resume target.
12374 * infrun.h (wait_for_inferior): Remove declaration.
12375 (user_visible_resume_target): New declaration.
12376 (get_last_target_status, set_last_target_status): New
12377 process_stratum_target parameter.
12378 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12379 process_stratum_target parameter, and use it.
12380 (clear_inline_frame_state (thread_info*)): New.
12381 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12382 process_stratum_target parameter.
12383 (clear_inline_frame_state (thread_info*)): Declare.
12384 * linux-fork.c (delete_checkpoint_command): Pass target down to
12385 find_thread_ptid.
12386 (checkpoint_command): Adjust.
12387 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12388 instead of just tweaking inferior_ptid.
12389 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12390 (exit_lwp): Pass target down to find_thread_ptid.
12391 (attach_proc_task_lwp_callback): Pass target down to
12392 add_thread/set_running/set_executing.
12393 (linux_nat_target::attach): Pass target down to
12394 thread_change_ptid.
12395 (get_detach_signal): Pass target down to find_thread_ptid.
12396 Consider last target status's target.
12397 (linux_resume_one_lwp_throw, resume_lwp)
12398 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12399 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12400 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12401 (linux_nat_target::async_wait_fd): New.
12402 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12403 target down.
12404 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12405 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12406 * linux-thread-db.c (struct thread_db_info::process_target): New
12407 field.
12408 (add_thread_db_info): Save target.
12409 (get_thread_db_info): New process_stratum_target parameter. Also
12410 match target.
12411 (delete_thread_db_info): New process_stratum_target parameter.
12412 Also match target.
12413 (thread_from_lwp): Adjust to pass down target.
12414 (thread_db_notice_clone): Pass down target.
12415 (check_thread_db_callback): Pass down target.
12416 (try_thread_db_load_1): Always push the thread_db target.
12417 (try_thread_db_load, record_thread): Pass target down.
12418 (thread_db_target::detach): Pass target down. Always unpush the
12419 thread_db target.
12420 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12421 target down. Always unpush the thread_db target.
12422 (find_new_threads_callback, thread_db_find_new_threads_2)
12423 (thread_db_target::update_thread_list): Pass target down.
12424 (thread_db_target::pid_to_str): Pass current inferior down.
12425 (thread_db_target::get_thread_local_address): Pass target down.
12426 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12427 target down.
12428 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12429 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12430 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12431 (procfs_init_inferior): Rename to ...
12432 (procfs_target::procfs_init_inferior): ... this and adjust.
12433 (procfs_target::create_inferior, procfs_notice_thread)
12434 (procfs_do_thread_registers): Adjust.
12435 * ppc-fbsd-tdep.c: Include "inferior.h".
12436 (ppcfbsd_get_thread_local_address): Pass down target.
12437 * proc-service.c (ps_xfer_memory): Switch current inferior and
12438 program space as well.
12439 (get_ps_regcache): Pass target down.
12440 * process-stratum-target.c
12441 (process_stratum_target::thread_address_space)
12442 (process_stratum_target::thread_architecture): Pass target down.
12443 * process-stratum-target.h
12444 (process_stratum_target::threads_executing): New field.
12445 (as_process_stratum_target): New.
12446 * ravenscar-thread.c
12447 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12448 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12449 down.
12450 * record-btrace.c (record_btrace_target::info_record): Adjust.
12451 (record_btrace_target::record_method)
12452 (record_btrace_target::record_is_replaying)
12453 (record_btrace_target::fetch_registers)
12454 (get_thread_current_frame_id, record_btrace_target::resume)
12455 (record_btrace_target::wait, record_btrace_target::stop): Pass
12456 target down.
12457 * record-full.c (record_full_wait_1): Switch to event thread.
12458 Pass target down.
12459 * regcache.c (regcache::regcache)
12460 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12461 process_stratum_target parameter and handle it.
12462 (current_thread_target): New global.
12463 (get_thread_regcache): Add process_stratum_target parameter and
12464 handle it. Switch inferior before calling target method.
12465 (get_thread_regcache): Pass target down.
12466 (get_thread_regcache_for_ptid): Pass target down.
12467 (registers_changed_ptid): Add process_stratum_target parameter and
12468 handle it.
12469 (registers_changed_thread, registers_changed): Pass target down.
12470 (test_get_thread_arch_aspace_regcache): New.
12471 (current_regcache_test): Define a couple local test_target_ops
12472 instances and use them for testing.
12473 (readwrite_regcache): Pass process_stratum_target parameter.
12474 (cooked_read_test, cooked_write_test): Pass mock_target down.
12475 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12476 (get_thread_arch_aspace_regcache): Add process_stratum_target
12477 parameter.
12478 (regcache::target): New method.
12479 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12480 (regcache::registers_changed_ptid): Add process_stratum_target
12481 parameter.
12482 (regcache::m_target): New field.
12483 (registers_changed_ptid): Add process_stratum_target parameter.
12484 * remote.c (remote_state::supports_vCont_probed): New field.
12485 (remote_target::async_wait_fd): New method.
12486 (remote_unpush_and_throw): Add remote_target parameter.
12487 (get_current_remote_target): Adjust.
12488 (remote_target::remote_add_inferior): Push target.
12489 (remote_target::remote_add_thread)
12490 (remote_target::remote_notice_new_inferior)
12491 (get_remote_thread_info): Pass target down.
12492 (remote_target::update_thread_list): Skip threads of inferiors
12493 bound to other targets. (remote_target::close): Don't discard
12494 inferiors. (remote_target::add_current_inferior_and_thread)
12495 (remote_target::process_initial_stop_replies)
12496 (remote_target::start_remote)
12497 (remote_target::remote_serial_quit_handler): Pass down target.
12498 (remote_target::remote_unpush_target): New remote_target
12499 parameter. Unpush the target from all inferiors.
12500 (remote_target::remote_unpush_and_throw): New remote_target
12501 parameter. Pass it down.
12502 (remote_target::open_1): Check whether the current inferior has
12503 execution instead of checking whether any inferior is live. Pass
12504 target down.
12505 (remote_target::remote_detach_1): Pass down target. Use
12506 remote_unpush_target.
12507 (extended_remote_target::attach): Pass down target.
12508 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12509 (remote_target::append_resumption): Pass down target.
12510 (remote_target::append_pending_thread_resumptions)
12511 (remote_target::remote_resume_with_hc, remote_target::resume)
12512 (remote_target::commit_resume): Pass down target.
12513 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12514 (remote_target::interrupt_query)
12515 (remote_target::remove_new_fork_children)
12516 (remote_target::check_pending_events_prevent_wildcard_vcont)
12517 (remote_target::remote_parse_stop_reply)
12518 (remote_target::process_stop_reply): Pass down target.
12519 (first_remote_resumed_thread): New remote_target parameter. Pass
12520 it down.
12521 (remote_target::wait_as): Pass down target.
12522 (unpush_and_perror): New remote_target parameter. Pass it down.
12523 (remote_target::readchar, remote_target::remote_serial_write)
12524 (remote_target::getpkt_or_notif_sane_1)
12525 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12526 down target.
12527 (remote_target::mourn_inferior): Pass down target. Use
12528 remote_unpush_target.
12529 (remote_target::core_of_thread)
12530 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12531 (remote_target::pid_to_exec_file)
12532 (remote_target::thread_handle_to_thread_info): Pass down target.
12533 (remote_target::async_wait_fd): New.
12534 * riscv-fbsd-tdep.c: Include "inferior.h".
12535 (riscv_fbsd_get_thread_local_address): Pass down target.
12536 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12537 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12538 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12539 Adjust.
12540 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12541 * solib-svr4.c (enable_break): Pass down target.
12542 * spu-multiarch.c (parse_spufs_run): Pass down target.
12543 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12544 * target-delegates.c: Regenerate.
12545 * target.c (g_target_stack): Delete.
12546 (current_top_target): Return the current inferior's top target.
12547 (target_has_execution_1): Refer to the passed-in inferior's top
12548 target.
12549 (target_supports_terminal_ours): Check whether the initial
12550 inferior was already created.
12551 (decref_target): New.
12552 (target_stack::push): Incref/decref the target.
12553 (push_target, push_target, unpush_target): Adjust.
12554 (target_stack::unpush): Defref target.
12555 (target_is_pushed): Return bool. Adjust to refer to the current
12556 inferior's target stack.
12557 (dispose_inferior): Delete, and inline parts ...
12558 (target_preopen): ... here. Only dispose of the current inferior.
12559 (target_detach): Hold strong target reference while detaching.
12560 Pass target down.
12561 (target_thread_name): Add assertion.
12562 (target_resume): Pass down target.
12563 (target_ops::beneath, find_target_at): Adjust to refer to the
12564 current inferior's target stack.
12565 (get_dummy_target): New.
12566 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12567 has a thread running.
12568 (initialize_targets): Rename to ...
12569 (_initialize_target): ... this.
12570 * target.h: Include "gdbsupport/refcounted-object.h".
12571 (struct target_ops): Inherit refcounted_object.
12572 (target_ops::shortname, target_ops::longname): Make const.
12573 (target_ops::async_wait_fd): New method.
12574 (decref_target): Declare.
12575 (struct target_ops_ref_policy): New.
12576 (target_ops_ref): New typedef.
12577 (get_dummy_target): Declare function.
12578 (target_is_pushed): Return bool.
12579 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12580 (all_matching_threads_iterator::all_matching_threads_iterator):
12581 Handle filter target.
12582 * thread-iter.h (struct all_matching_threads_iterator, struct
12583 all_matching_threads_range, class all_non_exited_threads_range):
12584 Filter by target too. Remove explicit.
12585 * thread.c (threads_executing): Delete.
12586 (inferior_thread): Pass down current inferior.
12587 (clear_thread_inferior_resources): Pass down thread pointer
12588 instead of ptid_t.
12589 (add_thread_silent, add_thread_with_info, add_thread): Add
12590 process_stratum_target parameter. Use it for thread and inferior
12591 searches.
12592 (is_current_thread): New.
12593 (thread_info::deletable): Use it.
12594 (find_thread_ptid, thread_count, in_thread_list)
12595 (thread_change_ptid, set_resumed, set_running): New
12596 process_stratum_target parameter. Pass it down.
12597 (set_executing): New process_stratum_target parameter. Pass it
12598 down. Adjust reference to 'threads_executing'.
12599 (threads_are_executing): New process_stratum_target parameter.
12600 Adjust reference to 'threads_executing'.
12601 (set_stop_requested, finish_thread_state): New
12602 process_stratum_target parameter. Pass it down.
12603 (switch_to_thread): Also match inferior.
12604 (switch_to_thread): New process_stratum_target parameter. Pass it
12605 down.
12606 (update_threads_executing): Reimplement.
12607 * top.c (quit_force): Pop targets from all inferior.
12608 (gdb_init): Don't call initialize_targets.
12609 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12610 Declare.
12611 (windows_add_thread, windows_delete_thread): Adjust.
12612 (get_windows_debug_event): Rename to ...
12613 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12614 * tracefile-tfile.c (tfile_target_open): Pass down target.
12615 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12616 Forward declare.
12617 (switch_to_thread): Add process_stratum_target parameter.
12618 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12619 parameter. Use it.
12620 (mi_on_resume): Pass target down.
12621 * nat/fork-inferior.c (startup_inferior): Add
12622 process_stratum_target parameter. Pass it down.
12623 * nat/fork-inferior.h (startup_inferior): Add
12624 process_stratum_target parameter.
12625 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12626
12627 2020-01-10 Pedro Alves <palves@redhat.com>
12628
12629 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12630 directly. Instead find the first thread in the thread list and
12631 use switch_to_thread.
12632
12633 2020-01-10 Pedro Alves <palves@redhat.com>
12634
12635 * remote.c (remote_target::remote_add_inferior): Don't bind a
12636 process to the current inferior if the current inferior is already
12637 bound to a process.
12638
12639 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12640 Pedro Alves <palves@redhat.com>
12641
12642 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12643 If no process is specified, return null_ptid instead of
12644 inferior_ptid.
12645 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12646 TARGET_WAITKIND_SIGNALLED with no pid.
12647
12648 2020-01-10 Pedro Alves <palves@redhat.com>
12649
12650 * remote.c (first_remote_resumed_thread): New.
12651 (remote_target::wait_as): Use it as default event_ptid instead of
12652 inferior_ptid.
12653
12654 2020-01-10 Pedro Alves <palves@redhat.com>
12655
12656 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12657
12658 2020-01-10 Pedro Alves <palves@redhat.com>
12659
12660 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12661 not -1.
12662
12663 2020-01-10 Pedro Alves <palves@redhat.com>
12664
12665 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12666 ptid to get_last_target_status.
12667 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12668 ptid to get_last_target_status.
12669 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12670 get_last_target_status.
12671 (info_program_command): Don't pass a target_waitstatus to
12672 get_last_target_status.
12673 * infrun.c (init_wait_for_inferior): Use
12674 nullify_last_target_wait_ptid.
12675 (get_last_target_status): Handle nullptr arguments.
12676 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12677 (print_stop_event): Don't pass a ptid to get_last_target_status.
12678 (normal_stop): Don't pass a ptid to get_last_target_status.
12679 * infrun.h (get_last_target_status, set_last_target_status): Move
12680 comments here and update.
12681 (nullify_last_target_wait_ptid): Declare.
12682 * linux-fork.c (fork_load_infrun_state): Remove local extern
12683 declaration of nullify_last_target_wait_ptid.
12684 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12685 to get_last_target_status.
12686
12687 2020-01-10 Pedro Alves <palves@redhat.com>
12688
12689 * gdbthread.h (scoped_restore_current_thread)
12690 <dont_restore, restore, m_dont_restore>: Declare.
12691 * thread.c (thread_alive): Add assertion. Return bool.
12692 (switch_to_thread_if_alive): New.
12693 (prune_threads): Switch inferior/thread.
12694 (print_thread_info_1): Switch thread before calling target methods.
12695 (scoped_restore_current_thread::restore): New, factored out from
12696 ...
12697 (scoped_restore_current_thread::~scoped_restore_current_thread):
12698 ... this.
12699 (scoped_restore_current_thread::scoped_restore_current_thread):
12700 Add assertion.
12701 (thread_apply_all_command, thread_select): Use
12702 switch_to_thread_if_alive.
12703 * infrun.c (proceed, restart_threads, handle_signal_stop)
12704 (switch_back_to_stepped_thread): Switch current thread before
12705 calling target methods.
12706
12707 2020-01-10 Pedro Alves <palves@redhat.com>
12708
12709 * inferior.c (switch_to_inferior_no_thread): New function,
12710 factored out from ...
12711 (inferior_command): ... here.
12712 * inferior.h (switch_to_inferior_no_thread): Declare.
12713 * mi/mi-main.c (run_one_inferior): Use
12714 switch_to_inferior_no_thread.
12715
12716 2020-01-10 Pedro Alves <palves@redhat.com>
12717
12718 * infcmd.c (kill_command): Remove dead code.
12719
12720 2020-01-10 Pedro Alves <palves@redhat.com>
12721
12722 * remote.c (remote_target::mourn_inferior): No longer check
12723 whether the target is running.
12724
12725 2020-01-10 Pedro Alves <palves@redhat.com>
12726
12727 * corelow.c (core_target::has_execution): Change parameter type to
12728 inferior pointer.
12729 * inferior.c (number_of_live_inferiors): Use
12730 inferior::has_execution instead of target_has_execution_1.
12731 * inferior.h (inferior::has_execution): New.
12732 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12733 inferior::has_execution instead of target_has_execution_1.
12734 * process-stratum-target.c
12735 (process_stratum_target::has_execution): Change parameter type to
12736 inferior pointer. Check the inferior's PID instead of
12737 inferior_ptid.
12738 * process-stratum-target.h
12739 (process_stratum_target::has_execution): Change parameter type to
12740 inferior pointer.
12741 * record-full.c (record_full_core_target::has_execution): Change
12742 parameter type to inferior pointer.
12743 * target.c (target_has_execution_1): Change parameter type to
12744 inferior pointer.
12745 (target_has_execution_current): Adjust.
12746 * target.h (target_ops::has_execution): Change parameter type to
12747 inferior pointer.
12748 (target_has_execution_1): Change parameter type to inferior
12749 pointer. Change return type to bool.
12750 * tracefile.h (tracefile_target::has_execution): Change parameter
12751 type to inferior pointer.
12752
12753 2020-01-10 Pedro Alves <palves@redhat.com>
12754
12755 * exceptions.c (print_flush): Remove current_top_target() check.
12756
12757 2020-01-10 Pedro Alves <palves@redhat.com>
12758
12759 * remote.c (show_remote_exec_file): Show the current inferior's
12760 exec-file instead of the command variable's value.
12761
12762 2020-01-10 Pedro Alves <palves@redhat.com>
12763
12764 * record-full.c (record_full_resume_ptid): New global.
12765 (record_full_target::resume): Set it.
12766 (record_full_wait_1): Use record_full_resume_ptid instead of
12767 inferior_ptid.
12768
12769 2020-01-10 Pedro Alves <palves@redhat.com>
12770
12771 * gdbthread.h (scoped_restore_current_thread)
12772 <dont_restore, restore, m_dont_restore>: Declare.
12773 * thread.c (thread_alive): Add assertion. Return bool.
12774 (switch_to_thread_if_alive): New.
12775 (prune_threads): Switch inferior/thread.
12776 (print_thread_info_1): Switch thread before calling target methods.
12777 (scoped_restore_current_thread::restore): New, factored out from
12778 ...
12779 (scoped_restore_current_thread::~scoped_restore_current_thread):
12780 ... this.
12781 (scoped_restore_current_thread::scoped_restore_current_thread):
12782 Add assertion.
12783 (thread_apply_all_command, thread_select): Use
12784 switch_to_thread_if_alive.
12785
12786 2020-01-10 George Barrett <bob@bob131.so>
12787
12788 * stap-probe.c (stap_modify_semaphore): Don't check for null
12789 semaphores.
12790 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12791 for null semaphores.
12792
12793 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12794
12795 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12796 all source windows, and maintain horizontal scroll status while
12797 doing so.
12798
12799 2020-01-09 Tom Tromey <tom@tromey.com>
12800
12801 PR tui/18932:
12802 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12803 update_source_window, not print_source_lines.
12804
12805 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12806
12807 * tui/tui.c (tui_enable): Register tui hooks after calling
12808 tui_display_main.
12809
12810 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12811
12812 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12813
12814 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12815
12816 * thread.c (print_thread_info_1): Fix indentation.
12817
12818 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12819
12820 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12821 unique_xmalloc_ptr outside the if to always free the demangled name.
12822
12823 2020-01-08 Tom Tromey <tromey@adacore.com>
12824
12825 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12826 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12827 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12828 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12829 Remove.
12830 (section_offsets): New typedef.
12831 * symtab.c (fixup_section, get_msymbol_address): Update.
12832 * symmisc.c (dump_msymbols): Update.
12833 * symfile.h (relative_addr_info_to_section_offsets)
12834 (symfile_map_offsets_to_segments): Update.
12835 * symfile.c (build_section_addr_info_from_objfile)
12836 (init_objfile_sect_indices): Update.
12837 (struct place_section_arg): Change type of "offsets".
12838 (place_section): Update.
12839 (relative_addr_info_to_section_offsets): Change type of
12840 "section_offsets". Remove "num_sections" parameter.
12841 (default_symfile_offsets, syms_from_objfile_1)
12842 (set_objfile_default_section_offset): Update.
12843 (reread_symbols): No need to preserve section offsets by hand.
12844 (symfile_map_offsets_to_segments): Change type of "offsets".
12845 * stap-probe.c (relocate_address): Update.
12846 * stabsread.h (process_one_symbol): Update.
12847 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12848 (solib_target_relocate_section_addresses): Update.
12849 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12850 Update.
12851 * solib-frv.c (frv_relocate_main_executable): Update.
12852 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12853 * solib-aix.c (solib_aix_get_section_offsets): Change return
12854 type.
12855 (solib_aix_solib_create_inferior_hook): Update.
12856 * remote.c (remote_target::get_offsets): Update.
12857 * psymtab.c (find_pc_sect_psymtab): Update.
12858 * psympriv.h (struct partial_symbol) <address, text_low,
12859 text_high>: Update.
12860 * objfiles.h (obj_section_offset): Update.
12861 (struct objfile) <section_offsets>: Change type.
12862 <num_sections>: Remove.
12863 (objfile_relocate): Update.
12864 * objfiles.c (entry_point_address_query): Update
12865 (relocate_one_symbol): Change type of "section_offsets".
12866 (objfile_relocate1, objfile_relocate1): Change type of
12867 "new_offsets".
12868 (objfile_rebase1): Update.
12869 * mipsread.c (mipscoff_symfile_read): Update.
12870 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12871 parameter.
12872 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12873 (parse_external, psymtab_to_symtab_1): Update.
12874 * machoread.c (macho_symfile_offsets): Update.
12875 * ia64-tdep.c (ia64_find_unwind_table): Update.
12876 * hppa-tdep.c (read_unwind_info): Update.
12877 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12878 * dwarf2read.c (create_addrmap_from_index)
12879 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12880 (process_psymtab_comp_unit_reader, add_partial_symbol)
12881 (add_partial_subprogram, process_full_comp_unit)
12882 (read_file_scope, read_func_scope, read_lexical_block_scope)
12883 (read_call_site_scope, dwarf2_rnglists_process)
12884 (dwarf2_ranges_process, dwarf2_ranges_read)
12885 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12886 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12887 Update.
12888 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12889 Update.
12890 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12891 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12892 (process_one_symbol): Change type of "section_offsets".
12893 * ctfread.c (get_objfile_text_range): Update.
12894 * coffread.c (coff_symtab_read, enter_linenos)
12895 (process_coff_symbol): Update.
12896 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12897 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12898
12899 2020-01-08 Tom Tromey <tromey@adacore.com>
12900
12901 * dwarf2read.c (parse_macro_definition): Use std::string.
12902 (parse_macro_definition): Likewise.
12903
12904 2020-01-08 Tom Tromey <tromey@adacore.com>
12905
12906 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12907 (ATTR_ALLOC_CHUNK): Remove.
12908
12909 2020-01-08 Tom Tromey <tromey@adacore.com>
12910
12911 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12912
12913 2020-01-08 Tom Tromey <tromey@adacore.com>
12914
12915 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12916 (dwarf2_compute_name, open_dwo_file): Likewise.
12917 (process_enumeration_scope): Use std::vector.
12918 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12919 (partial_die_info::fixup, dwarf2_start_subfile)
12920 (guess_full_die_structure_name, dwarf2_name): Likewise.
12921 (determine_prefix): Update.
12922 (guess_full_die_structure_name): Make return type const.
12923 (partial_die_full_name): Return unique_xmalloc_ptr.
12924 (DW_FIELD_ALLOC_CHUNK): Remove.
12925
12926 2020-01-07 Tom Tromey <tromey@adacore.com>
12927
12928 PR build/24937:
12929 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12930
12931 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12932
12933 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12934
12935 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12936
12937 * stack.c (print_frame_info): Move disassemble_next_line code
12938 inside source_print block.
12939
12940 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12941
12942 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12943 gdb/signals.h, as we are now using native signal symbols.
12944
12945 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12946
12947 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12948 overflow by an early check of content vs threshold.
12949 * tui/tui-source.c (tui_source_window::line_is_displayed):
12950 Likewise.
12951
12952 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12953
12954 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12955
12956 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12957
12958 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12959 export table if no section contains it's RVA.
12960
12961 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12962
12963 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12964
12965 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12966
12967 * source.c (print_source_lines_base): Set last_line_listed.
12968
12969 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12970
12971 * tui/tui-disasm.c: Remove trailing spaces.
12972
12973 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12974 Pedro Alves <palves@redhat.com>
12975
12976 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12977 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12978 (windows_gdb_signal_to_target): New function, uses the above
12979 enumeration to convert GDB internal signal codes to equivalent
12980 Windows codes.
12981 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12982 * windows-nat.c: Include "gdb_wait.h".
12983 (get_windows_debug_event): Extract the fatal exception from the
12984 exit status and convert to the equivalent Posix signal number.
12985 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12986 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12987 * gdbsupport/gdb_wait.c: New file, implements
12988 windows_status_to_termsig.
12989 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12990 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12991
12992 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12993
12994 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12995 show_layout.
12996
12997 2020-01-05 Luis Machado <luis.machado@linaro.org>
12998
12999 * aarch64-linux-nat.c
13000 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13001 and bfd_mach_aarch64.
13002
13003 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13004
13005 * ui-file.c (stdio_file::can_emit_style_escape)
13006 (tee_file::can_emit_style_escape): Ensure style is used also on
13007 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13008 to gdb_stdout.
13009 * main.c (set_gdb_data_directory): Use file style to output the
13010 warning that the given pathname is not a directory.
13011 * top.c (show_history_filename, gdb_safe_append_history)
13012 (show_gdb_datadir): Use file style.
13013
13014 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13015
13016 * solib-target.c (struct lm_info_target):
13017 Change offsets to be a unique_xmalloc_ptr.
13018 (solib_target_relocate_section_addresses): Update.
13019
13020 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13021
13022 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13023
13024 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13025
13026 * MAINTAINERS (Write After Approval): Add myself.
13027
13028 2020-01-02 Luis Machado <luis.machado@linaro.org>
13029
13030 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13031 Cell BE architecture.
13032 * target.h (struct target_ops) <thread_architecture>: Likewise.
13033
13034 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13035
13036 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13037
13038 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13039
13040 * MAINTAINERS (Write After Approval): Add myself.
13041
13042 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13043
13044 * gdbarch.sh: Update copyright year range of generated files.
13045
13046 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13047
13048 Update copyright year range in all GDB files.
13049
13050 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13051
13052 * copyright.py: Convert to Python 3.
13053
13054 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13055
13056 * copyright.py: Adapt after move of gnulib directory from gdb
13057 directory to toplevel directory.
13058
13059 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13060
13061 * copyright.py (main): Exit if run from the wrong directory.
13062
13063 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13064
13065 * top.c (print_gdb_version): Change copyright year to 2020.
13066
13067 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13068
13069 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13070
13071 For older changes see ChangeLog-2019.
13072 \f
13073 Local Variables:
13074 mode: change-log
13075 left-margin: 8
13076 fill-column: 74
13077 version-control: never
13078 coding: utf-8
13079 End: