Remove TYPE_CODE_INT case from f_value_print_inner
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-15 Tom Tromey <tom@tromey.com>
2
3 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4 Remove.
5
6 2020-09-15 Tom Tromey <tom@tromey.com>
7
8 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
9 and TYPE_CODE_METHODPTR cases.
10 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
11 (c_value_print_inner): Update.
12 * valprint.c (generic_value_print_memberptr): New function, from
13 c_value_print_memberptr.
14 (generic_value_print): Use it. Call cplus_print_method_ptr.
15
16 2020-09-15 Tom Tromey <tromey@adacore.com>
17
18 * python/python-internal.h (PyInt_FromLong): Remove define.
19 * python/py-value.c (convert_value_from_python): Use
20 gdb_py_object_from_longest.
21 * python/py-type.c (typy_get_code): Use
22 gdb_py_object_from_longest.
23 * python/py-symtab.c (salpy_get_line): Use
24 gdb_py_object_from_longest.
25 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
26 gdb_py_object_from_longest.
27 * python/py-record.c (recpy_gap_reason_code): Use
28 gdb_py_object_from_longest.
29 * python/py-record-btrace.c (recpy_bt_insn_size)
30 (recpy_bt_func_level, btpy_list_count): Use
31 gdb_py_object_from_longest.
32 * python/py-infthread.c (gdbpy_create_ptid_object): Use
33 gdb_py_object_from_longest. Fix error handling.
34 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
35 gdb_py_object_from_longest.
36 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
37 gdb_py_object_from_longest.
38 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
39 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
40 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
41
42 2020-09-15 Tom Tromey <tromey@adacore.com>
43
44 * python/python.c (gdbpy_parameter_value): Use
45 gdb_py_object_from_ulongest.
46
47 2020-09-15 Tom Tromey <tromey@adacore.com>
48
49 * python/py-infevents.c (create_register_changed_event_object):
50 Use gdb_py_object_from_longest.
51 * python/py-exitedevent.c (create_exited_event_object): Use
52 gdb_py_object_from_longest.
53
54 2020-09-15 Tom Tromey <tromey@adacore.com>
55
56 * python/python.c (gdbpy_parameter_value): Use
57 gdb_py_object_from_longest.
58 * python/py-type.c (convert_field, typy_range): Use
59 gdb_py_object_from_longest.
60 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
61 gdb_py_object_from_longest.
62 * python/py-lazy-string.c (stpy_get_length): Use
63 gdb_py_object_from_longest.
64 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
65 gdb_py_object_from_longest.
66 * python/py-infevents.c (create_memory_changed_event_object): Use
67 gdb_py_object_from_longest.
68 * python/py-inferior.c (infpy_get_num): Use
69 gdb_py_object_from_longest.
70 (infpy_get_pid): Likewise.
71
72 2020-09-15 Tom Tromey <tromey@adacore.com>
73
74 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
75 defines.
76 * python/py-value.c (valpy_long): Use
77 gdb_py_object_from_ulongest.
78 * python/py-symtab.c (salpy_get_pc): Use
79 gdb_py_object_from_ulongest.
80 (salpy_get_last): Likewise.
81 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
82 gdb_py_object_from_ulongest.
83 * python/py-lazy-string.c (stpy_get_address): Use
84 gdb_py_object_from_ulongest.
85 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
86 * python/py-arch.c (archpy_disassemble): Use
87 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
88 error handling.
89
90 2020-09-15 Tom Tromey <tromey@adacore.com>
91
92 * python/python-internal.h (gdb_py_long_from_longest): Remove
93 defines.
94 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
95 * python/py-type.c (convert_field, typy_get_sizeof): Use
96 gdb_py_object_from_longest.
97 * python/py-record-btrace.c (btpy_list_index): Use
98 gdb_py_object_from_longest.
99
100 2020-09-15 Tom Tromey <tromey@adacore.com>
101
102 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
103 * python/py-record.c (recpy_element_number): Use
104 gdb_py_object_from_longest.
105 (recpy_gap_number): Likewise.
106
107 2020-09-15 Tom Tromey <tromey@adacore.com>
108
109 * top.c (ui::ui): Update.
110 (highest_ui_num): Remove.
111 * top.h (struct ui) <num>: Remove.
112
113 2020-09-15 Tom Tromey <tromey@adacore.com>
114
115 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
116 * ui-style.c (ansi_regex_text): Now array.
117 * rust-exp.y (number_regex_text): Now array.
118 * linespec.c (linespec_quote_characters): Now array.
119 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
120 Now arrays.
121
122 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
123
124 * debuginfod-support.c (debuginfod_client_deleter): New.
125 (debuginfod_client_up): New.
126 (debuginfod_init): Return debuginfod_client_up.
127 (debuginfod_source_query): Adjust.
128 (debuginfod_debuginfo_query): Adjust.
129
130 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
131
132 * debuginfod-support.c (debuginfod_source_query): Use
133 make_unique_xstrdup.
134
135 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
136
137 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
138 with `type::instance_flags`.
139
140 2020-09-14 Michael Mullin <masmullin@gmail.com>
141
142 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
143 Remove baton parameter.
144
145 2020-09-14 Pedro Alves <pedro@palves.net>
146
147 * Makefile.in (SELFTESTS_SRCS): Add
148 unittests/enum-flags-selftests.c.
149 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
150 btrace_function_flags instead of enum btrace_function_flag.
151 * compile/compile-c-types.c (convert_qualified): Use
152 enum_flags::raw.
153 * compile/compile-cplus-symbols.c (convert_one_symbol)
154 (convert_symbol_bmsym):
155 * compile/compile-cplus-types.c (compile_cplus_convert_method)
156 (compile_cplus_convert_struct_or_union_methods)
157 (compile_cplus_instance::convert_qualified_base):
158 * go-exp.y (parse_string_or_char): Add cast to int.
159 * unittests/enum-flags-selftests.c: New file.
160 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
161 type to btrace_thread_flags from btrace_thread_flag.
162 (record_btrace_cancel_resume, record_btrace_step_thread): Change
163 local's type to btrace_thread_flags from btrace_thread_flag. Add
164 cast in DEBUG call.
165
166 2020-09-14 Pedro Alves <pedro@palves.net>
167
168 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
169 * gdbtypes.c (address_space_name_to_int): Rename to ...
170 (address_space_name_to_type_instance_flags): ... this.
171 (address_space_int_to_name): Rename to ...
172 (address_space_type_instance_flags_to_name): ... this.
173 * gdbtypes.h (address_space_name_to_int): Rename to ...
174 (address_space_name_to_type_instance_flags): ... this.
175 (address_space_int_to_name): Rename to ...
176 (address_space_type_instance_flags_to_name): ... this.
177 * type-stack.c (type_stack::insert): Adjust to rename.
178 * type-stack.h (type_stack::insert): Likewise.
179
180 2020-09-14 Pedro Alves <pedro@palves.net>
181 Andrew Burgess <andrew.burgess@embecosm.com>
182
183 * avr-tdep.c (avr_address_class_type_flags): Return
184 type_instance_flags.
185 (avr_address_class_type_flags_to_name): Take a
186 type_instance_flags.
187 (avr_address_class_name_to_type_flags): Return bool and take a
188 type_instance_flags.
189 * d-lang.c (build_d_types): Use type::set_instance_flags.
190 * ft32-tdep.c (ft32_address_class_type_flags): Return
191 type_instance_flags.
192 (ft32_address_class_type_flags_to_name): Take a
193 type_instance_flags.
194 (ft32_address_class_name_to_type_flags): Return bool and take a
195 type_instance_flags.
196 (ft32_gdbarch_init): Use type::set_instance_flags.
197 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
198 * gdbarch.h, gdbarch.c: Regenerate.
199 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
200 (address_class_name_to_type_flags): Use type_instance_flags and
201 bool.
202 * gdbtypes.c (address_space_name_to_int)
203 (address_space_int_to_name, make_qualified_type): Use
204 type_instance_flags.
205 (make_qualified_type): Use type_instance_flags and
206 type::set_instance_flags.
207 (make_type_with_address_space, make_cv_type, make_vector_type)
208 (check_typedef): Use type_instance_flags.
209 (recursive_dump_type): Cast type_instance_flags to unsigned for
210 printing.
211 (copy_type_recursive): Use type::set_instance_flags.
212 (gdbtypes_post_init): Use type::set_instance_flags.
213 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
214 <m_instance_flags>: ... this.
215 <instance_flags, set_instance_flags>: New methods.
216 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
217 (SET_TYPE_INSTANCE_FLAGS): New.
218 (address_space_name_to_int, address_space_int_to_name)
219 (make_type_with_address_space): Pass flags using
220 type_instance_flags instead of int.
221 * stabsread.c (cleanup_undefined_types_noname): Use
222 type::set_instance_flags.
223 * s390-tdep.c (s390_address_class_type_flags): Return
224 type_instance_flags.
225 (s390_address_class_type_flags_to_name): Take a
226 type_instance_flags.
227 (s390_address_class_name_to_type_flags): Return bool and take a
228 type_instance_flags.
229 * type-stack.c (type_stack::follow_types): Use
230 type_instance_flags.
231 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
232
233 2020-09-14 Tom Tromey <tromey@adacore.com>
234
235 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
236 * x86-tdep.c (x86_is_thunk_register_name)
237 (x86_in_indirect_branch_thunk): Update.
238 * sparc64-tdep.c (sparc64_fpu_register_names)
239 (sparc64_cp0_register_names, sparc64_register_names)
240 (sparc64_pseudo_register_names): Now const.
241 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
242 cp0_registers_num>: Now const.
243 * sparc-tdep.c (sparc_core_register_names)
244 (sparc32_fpu_register_names, sparc32_cp0_register_names)
245 (sparc32_pseudo_register_names): Now const.
246 (validate_tdesc_registers): Update.
247 * rust-lang.c (rust_extensions): Now const.
248 * p-lang.c (p_extensions): Now const.
249 * objc-lang.c (objc_extensions): Now const.
250 * nto-tdep.c (nto_thread_state_str): Now const.
251 * moxie-tdep.c (moxie_register_names): Now const.
252 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
253 Now const.
254 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
255 (mips_linux_reg_names): Now const.
256 (mips_gdbarch_init): Update.
257 * microblaze-tdep.c (microblaze_register_names): Now const.
258 * m68k-tdep.c (m68k_register_names): Now const.
259 * m32r-tdep.c (m32r_register_names): Now const.
260 * ia64-tdep.c (ia64_register_names): Now const.
261 * i386-tdep.h (struct gdbarch_tdep) <register_names,
262 ymmh_register_names, ymm16h_regnum, mpx_register_names,
263 k_register_names, zmmh_register_names, xmm_avx512_register_names,
264 ymm_avx512_register_names, pkeys_register_names>: Now const.
265 * i386-tdep.c (i386_register_names, i386_zmm_names)
266 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
267 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
268 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
269 * f-lang.c (f_extensions): Now const.
270 * d-lang.c (d_extensions): Now const.
271 * csky-tdep.c (csky_register_names): Now const.
272 * charset.c (default_charset_names, charset_enum): Now const.
273 (_initialize_charset): Update.
274 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
275 const.
276 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
277 (bsd_uthread_solib_loaded): Update.
278 (bsd_uthread_state): Now const.
279 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
280 (amd64_ymm_avx512_names, amd64_ymmh_names)
281 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
282 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
283 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
284 (amd64_dword_names): Now const.
285 * agent.c (can_use_agent_enum): Now const.
286 * ada-tasks.c (task_states, long_task_states): Now const.
287 * ada-lang.c (known_runtime_file_name_patterns)
288 (known_auxiliary_function_name_patterns, attribute_names)
289 (standard_exc, ada_extensions): Now const.
290
291 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
292
293 * bcache.h (struct bcache) <bcache>: Remove constructor.
294 <m_hash_function, m_compare_function>: Remove.
295 <~bcache>: Make virtual.
296 <compare>: Remove static method, introduce virtual method.
297 <default_hash>: Remove.
298 <hash>: New virtual method.
299 * bcache.c (bcache::expand_hash_table): Update.
300 (bcache::insert): Update.
301 (bcache::hash): New.
302 (bcache::compare): Update comment and parameter names.
303 * gdbtypes.c (types_deeply_equal): Update.
304 * psymtab.h (struct psymbol_bcache): New struct.
305 (class psymtab_storage) <psymtab_storage>: Make default.
306 <psymbol_cache>: Change type to psymbol_bcache.
307 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
308 (psymbol_hash): Change to...
309 (psymbol_bcache::hash): ... this.
310 (psymbol_compare): Change to...
311 (psymbol_bcache::compare): ... this.
312
313 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
314
315 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
316 checking for initial lwp.
317
318 2020-09-14 Tom Tromey <tromey@adacore.com>
319
320 * m68k-tdep.c (m68k_extract_return_value): Use
321 pointer_result_regnum.
322 (m68k_store_return_value): Likewise.
323 (m68k_reg_struct_return_p): Handle vectors and arrays.
324 (m68k_return_value): Handle arrays.
325 (m68k_svr4_return_value): Fix single-element aggregate handling.
326 Handle long double. Adjust for embedded ABI.
327 (m68k_svr4_init_abi): Set pointer_result_regnum.
328 (m68k_embedded_init_abi): New function.
329 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
330 (m68k_osabi_sniffer): New function.
331 (_initialize_m68k_tdep): Register osabi sniffer.
332 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
333 member.
334
335 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
336
337 * xml-support.c (xml_fetch_content_from_file): Replace xfree
338 with gdb::unique_xmalloc_ptr<char>.
339
340 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
341
342 * xml-support.h (xml_fetch_another): Change type to be a
343 function_view.
344 (xml_process_xincludes): Remove baton parameter.
345 (xml_fetch_content_from_file): Change baton parameter to
346 dirname.
347 * xml-support.c (struct xinclude_parsing_data)
348 <xinclude_parsing_data>: Remove baton parameter.
349 <fetcher_baton>: Remove.
350 (xinclude_start_include): Adjust.
351 (xml_process_xincludes): Adjust.
352 (xml_fetch_content_from_file): Replace baton parameter with
353 dirname.
354 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
355 (xml_init_syscalls_info): Use a lambda.
356 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
357 (file_read_description_xml): Use a lambda.
358 (fetch_available_features_from_target): Change baton parameter
359 to target_ops.
360 (target_read_description_xml): Use a lambda.
361 (target_fetch_description_xml): Use a lambda.
362 (string_read_description_xml): Update.
363
364 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
365
366 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
367 uses with type::endianity_is_not_default.
368
369 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
370
371 * gdbtypes.h (struct type) <endianity_is_not_default,
372 set_endianity_is_not_default>: New methods.
373 (TYPE_ENDIANITY_NOT_DEFAULT): Use
374 type::endianity_is_not_default, change all write call sites to
375 use type::set_endianity_is_not_default.
376
377 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
378
379 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
380 uses with type::is_fixed_instance.
381
382 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
383
384 * gdbtypes.h (struct type) <is_fixed_instance,
385 set_is_fixed_instance>: New methods.
386 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
387 write call sites to use type::set_is_fixed_instance.
388
389 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
390
391 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
392 uses with type::is_gnu_ifunc.
393
394 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
395
396 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
397 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
398 use type::set_is_gnu_ifunc.
399
400 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
401
402 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
403 uses with type::stub_is_supported.
404
405 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
406
407 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
408 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
409 use type::set_stub_is_supported.
410
411 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
412
413 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
414 uses with type::is_vector.
415
416 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
417
418 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
419 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
420 use type::set_is_vector.
421
422 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
423
424 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
425 uses with type::has_varargs.
426
427 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
428
429 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
430 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
431 use type::set_has_varargs.
432
433 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
434
435 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
436 uses with type::is_prototyped.
437
438 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
439
440 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
441 New methods.
442 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
443 call sites to use type::set_is_prototyped.
444
445 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
446
447 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
448 uses with type::target_is_stub.
449
450 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
451
452 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
453 New methods.
454 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
455 sites to use type::set_target_is_stub.
456
457 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
458
459 * gdbtypes.h (TYPE_STUB): Remove, replace all
460 uses with type::is_stub.
461
462 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
463
464 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
465 (TYPE_STUB): Use type::is_stub, change all write call sites to
466 use type::set_is_stub.
467
468 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
469
470 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
471 type::has_no_signedness.
472
473 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
474
475 * gdbtypes.h (struct type) <has_no_signedness,
476 set_has_no_signedness>: New methods.
477 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
478 call sites to use type::set_has_no_signedness.
479
480 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
481
482 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
483 type::is_unsigned.
484
485 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
486
487 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
488 methods.
489 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
490 sites to use type::set_is_unsigned.
491
492 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
493 Adam Renquinha <arenquinha@cimeq.qc.ca>
494
495 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
496 pointer and stack frame offset when unwinding.
497
498 2020-09-13 Pedro Alves <pedro@palves.net>
499
500 * NEWS: Document "-break-insert --qualified".
501 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
502
503 2020-09-13 Pedro Alves <pedro@palves.net>
504
505 * linespec.c (classify_mtype, compare_msyms): Delete.
506 (search_minsyms_for_name): Remove classification logic. Instead
507 filter out trampoline symbols if we also found an external
508 function of the same name.
509
510 2020-09-13 Joel Brobecker <brobecker@adacore.com>
511
512 * NEWS: Create a new section for the next release branch.
513 Rename the section of the current branch, now that it has
514 been cut.
515
516 2020-09-13 Joel Brobecker <brobecker@adacore.com>
517
518 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
519 * version.in: Bump version to 11.0.50.DATE-git.
520
521 2020-09-12 Joel Brobecker <brobecker@adacore.com>
522
523 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
524
525 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
526 Felix Willgerodt <Felix.Willgerodt@intel.com>
527
528 * gdbarch.sh: Added bfloat16 type.
529 * gdbarch.c: Regenerated.
530 * gdbarch.h: Regenerated.
531 * gdbtypes.c (floatformats_bfloat16): New struct.
532 (gdbtypes_post_init): Add builtin_bfloat16.
533 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
534 (floatformats_bfloat16): New struct.
535 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
536 (i386_ymm_type): Add field "v16_bfloat16"
537 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
538 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
539 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
540 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
541 * features/i386/64bit-avx512.xml: Add bfloat16 type.
542 * features/i386/64bit-avx512.c: Regenerated.
543 * features/i386/64bit-sse.xml: Add bfloat16 type.
544 * features/i386/64bit-sse.c: Regenerated.
545
546 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
547
548 * i386-tdep.c (i386_zmm_type): Fix field names.
549 (i386_ymm_type): Fix field names.
550
551 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
552
553 * breakpoint.c: Fix typo in the help message of the
554 "set breakpoint condition-evaluation" command.
555
556 2020-09-10 Kamil Rytarowski <n54@gmx.com>
557
558 * nbsd-nat.c: Include "nat/netbsd-nat.h".
559 * (nbsd_nat_target::pid_to_exec_file)
560 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
561 (nbsd_nat_target::post_startup_inferior)
562 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
563 (nbsd_add_threads): Switch local code to common gdb/nat functions.
564 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
565 * (nbsd_thread_lister): Remove.
566
567 2020-09-10 Kamil Rytarowski <n54@gmx.com>
568
569 * fork-inferior.c (startup_inferior): Avoid double free.
570
571 2020-09-10 Kamil Rytarowski <n54@gmx.com>
572
573 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
574 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
575
576 2020-09-10 Kamil Rytarowski <n54@gmx.com>
577
578 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
579 * netbsd-nat.c: Include <sys/ptrace.h>.
580 * (netbsd_nat::enable_proc_events): Add.
581
582 2020-09-10 Kamil Rytarowski <n54@gmx.com>
583
584 * netbsd-nat.h: Include "gdbsupport/function-view.h".
585 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
586 (netbsd_nat::for_each_thread): Add.
587 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
588 "gdbsupport/common-debug.h".
589 * (netbsd_nat::netbsd_thread_lister)
590 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
591 (netbsd_nat::for_each_thread): Add.
592
593 2020-09-10 Kamil Rytarowski <n54@gmx.com>
594
595 * netbsd-nat.h: Include <unistd.h>.
596 * (netbsd_nat::pid_to_exec_file): Add.
597 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
598 * (netbsd_nat::pid_to_exec_file) Add.
599
600 2020-09-10 Kamil Rytarowski <n54@gmx.com>
601
602 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
603
604 2020-09-10 Kamil Rytarowski <n54@gmx.com>
605
606 * netbsd-nat.h: New file.
607 * netbsd-nat.c: Likewise.
608
609 2020-09-09 Tom Tromey <tromey@adacore.com>
610
611 * ada-lang.c (remove_extra_symbols): Do not increment when
612 removing an element
613
614 2020-09-08 Tom Tromey <tromey@adacore.com>
615
616 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
617
618 2020-09-08 Tom Tromey <tromey@adacore.com>
619
620 PR win32/25302:
621 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
622 (gdb_bfd_init_data): New function.
623 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
624
625 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
626
627 * infrun.c (fetch_inferior_event): Use
628 `switch_to_target_no_thread` to switch the target.
629
630 2020-09-06 Tom Tromey <tom@tromey.com>
631
632 * symfile.h (dwarf2_free_objfile): Don't declare.
633
634 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
635
636 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
637 to match 16 byte real/complex type generated by Flang compiler.
638
639 2020-09-03 Tom de Vries <tdevries@suse.de>
640
641 PR breakpoint/26546
642 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
643 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
644
645 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
646
647 * maint.c (index_digits): New function.
648 (struct maint_print_section_data): Remove.
649 (print_bfd_section_info): Remove print_data parameter, add arg
650 and index_digits.
651 (print_objfile_section_info): Likewise.
652 (print_bfd_section_info_maybe_relocated): Likewise (plus
653 objfile).
654 (maintenance_info_sections): Adjust calls.
655
656 2020-09-02 Tom Tromey <tromey@adacore.com>
657
658 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
659 for null pointers.
660 (ada_varobj_adjust_for_child_access): Special-case null pointers.
661
662 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
663
664 * bcache.h (struct bcache) <insert>: Change type of `added` to
665 pointer to bool.
666 * bcache.c (bcache::insert): Likewise.
667 * gdbtypes.c (check_types_worklist): Adjust.
668 * psymtab.c (add_psymbol_to_bcache): Adjust.
669
670 2020-08-31 Kevin Buettner <kevinb@redhat.com>
671
672 * corelow.c (unordered_set): Include.
673 (class core_target): Add field 'm_core_unavailable_mappings'.
674 (core_target::build_file_mappings): Print only one warning
675 per inaccessible file. Add unavailable/broken mappings
676 to m_core_unavailable_mappings.
677 (core_target::xfer_partial): Call...
678 (core_target::xfer_memory_via_mappings): New method.
679
680 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
681
682 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
683 type to bool.
684
685 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
686
687 * dwarf2/read.c (struct field_info): Fix indentation.
688
689 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
690
691 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
692 ordering in comment.
693 * frame.c (frame_id_eq): Fix indentation.
694
695 2020-08-31 Scott Linder <scott@scottlinder.com>
696 Simon Marchi <simon.marchi@efficios.com>
697
698 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
699 inline frame ids in outer frame.
700
701 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
702
703 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
704 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
705 (outer_frame_id): Use FID_STACK_OUTER instead of
706 FID_STACK_INVALID.
707 (frame_id_p): Don't check for outer_frame_id.
708
709 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
710
711 * frame-unwind.c (frame_unwind_got_optimized): Don't set
712 regnum/frame in value. Call allocate_value_lazy.
713 * frame.c (frame_unwind_register_value): Use
714 val_print_not_saved.
715
716 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
717
718 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
719
720 2020-08-29 Pedro Alves <pedro@palves.net>
721
722 * progspace.c (print_program_space): Use all_inferiors. Switch to
723 the inferior before calling target_pid_to_str.
724
725 2020-08-28 Tom Tromey <tom@tromey.com>
726
727 * xcoffread.c (xcoff_end_psymtab): Update comment.
728 * dbxread.c (dbx_end_psymtab): Update comment.
729
730 2020-08-28 Tom de Vries <tdevries@suse.de>
731
732 PR breakpoint/26544
733 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
734 event_location.
735 (create_breakpoint): Same.
736 (base_breakpoint_decode_location): Same.
737 (bkpt_create_sals_from_location): Same.
738 (bkpt_decode_location): Same.
739 (bkpt_probe_create_sals_from_location): Same.
740 (bkpt_probe_decode_location): Same.
741 (tracepoint_create_sals_from_location): Same.
742 (tracepoint_decode_location): Same.
743 (tracepoint_probe_decode_location): Same.
744 (strace_marker_create_sals_from_location): Same.
745 (strace_marker_decode_location): Same.
746 (create_sals_from_location_default): Same.
747 (decode_location_default): Same.
748 * breakpoint.h (struct breakpoint_ops): Same.
749 (create_breakpoint): Same.
750 * linespec.h (decode_line_full): Same.
751 * linespec.c (decode_line_full): Same. Throw error if
752 result.size () == 0.
753
754 2020-08-27 Pedro Alves <pedro@palves.net>
755
756 PR gdb/26524
757 * breakpoint.c (until_break_fsm) <location_breakpoint,
758 caller_breakpoint>: Delete fields.
759 <breakpoints>: New field.
760 <until_break_fsm>: Adjust to save a breakpoint vector instead of
761 two individual breakpoints.
762 (until_break_fsm::should_stop): Loop over breakpoints in the
763 breakpoint vector.
764 (until_break_fsm::clean_up): Adjust to clear the breakpoints
765 vector.
766 (until_break_command): Handle location expanding into multiple
767 sals.
768
769 2020-08-27 Pedro Alves <pedro@palves.net>
770
771 PR gdb/26523
772 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
773 bp_until breakpoints user-specified locations. Update intro
774 comment.
775
776 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
777
778 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
779 gdb_bfd_sections): New.
780 * maint.c (print_bfd_section_info): Change param type to
781 maint_print_section_data.
782 (print_objfile_section_info): Likewise.
783 (print_bfd_section_info_maybe_relocated): Likewise.
784 (maintenance_info_sections): Use gdb_bfd_sections.
785
786 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
787
788 * MAINTAINERS: Add ARC target and maintainer.
789
790 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
791
792 * configure.tgt: ARC support for GNU/Linux.
793 * Makefile.in (ALL_TARGET_OBJS): Likewise.
794 * arc-linux-tdep.c: New file.
795 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
796 * arc-tdep.c (arc_write_pc): Use it.
797
798 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
799
800 * arc-tdep.c (arc_check_for_hardware_loop): New.
801 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
802
803 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
804
805 * arc-tdep.h: Include "gdbarch.h".
806
807 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
808
809 * arch/arc.h
810 (arc_gdbarch_features): New class to stir the selection of target XML.
811 (arc_create_target_description): Use FEATURES to choose XML target.
812 (arc_lookup_target_description): Use arc_create_target_description
813 to create _new_ target descriptions or return the already created
814 ones if the FEATURES is the same.
815 * arch/arc.c: Implementation of prototypes described above.
816 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
817 (arc_gdbarch_features_init): Initialize the FEATURES struct.
818 * arc-tdep.c (*_feature_name): Make feature names consistent.
819 (arc_register_feature): A new struct to hold information about
820 registers of a particular target/feature.
821 (arc_check_tdesc_feature): Check if XML provides registers in
822 compliance with ARC_REGISTER_FEATURE structs.
823 (arc_update_acc_reg_names): Add aliases for r58 and r59.
824 (determine_*_reg_feature_set): Which feature name to look for.
825 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
826 (mach_type_to_arc_isa): Convert from a set of binutils machine types
827 to expected ISA enums to be used in arc_gdbarch_features structs.
828 * features/Makefile (FEATURE_XMLFILES): Add new files.
829 * gdb/features/arc/v1-aux.c: New file.
830 * gdb/features/arc/v1-aux.xml: Likewise.
831 * gdb/features/arc/v1-core.c: Likewise.
832 * gdb/features/arc/v1-core.xml: Likewise.
833 * gdb/features/arc/v2-aux.c: Likewise.
834 * gdb/features/arc/v2-aux.xml: Likewise.
835 * gdb/features/arc/v2-core.c: Likewise.
836 * gdb/features/arc/v2-core.xml: Likewise.
837 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
838
839 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
840 Andrew Burgess <andrew.burgess@embecosm.com>
841
842 PR m2/26372
843 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
844 an assert. Remove single element array indexing pattern as the
845 MULTI_SUBSCRIPT support will handle this case too.
846
847 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
848
849 * value.h (valprint_check_validity): Move declaration from
850 here...
851 * valprint.h (valprint_check_validity): ... to here.
852
853 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
854
855 * debug.h: New file.
856 * debug.c (debug_prefixed_vprintf): New function.
857 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
858 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
859
860 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
861
862 * infrun.h (infrun_debug_printf_1): New function declaration.
863 (infrun_debug_printf): New macro.
864 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
865 throughout.
866 (infrun_debug_printf): New function.
867 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
868 (handle_jit_event): Likewise.
869
870 2020-08-21 Mark Wielaard <mark@klomp.org>
871
872 * ada-lex.l: Extend register warnings diagnostics comment for g++.
873
874 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
875
876 * frame.c (enum class frame_id_status): New.
877 (struct frame_info) <this_id::p>: Change type to frame_id_status.
878 (fprintf_frame): Update.
879 (compute_frame_id): Set frame id status to "computing" on entry.
880 Set it back to "not_computed" on failure and to "computed" on
881 success.
882 (get_frame_id): Assert the frame id is not being computed.
883 (create_sentinel_frame): Use frame_id_status::COMPUTED.
884 (create_new_frame): Likewise.
885 (frame_cleanup_after_sniffer): Update assert.
886
887 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
888
889 * regcache.c (pid_ptid_regcache_map): New type.
890 (target_ptid_regcache_map): Remove.
891 (target_pid_ptid_regcache_map): New type.
892 (regcaches): Change type to target_pid_ptid_regcache_map.
893 (get_thread_arch_aspace_regcache): Update.
894 (regcache_thread_ptid_changed): Update, handle pid-like ptid
895 case.
896 (regcaches_size): Update.
897 (regcache_count): Update.
898 (registers_changed_ptid_target_pid_test): New.
899 (_initialize_regcache): Register new test.
900
901 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
902
903 * regcache.c (regcache_count): New.
904 (struct regcache_test_data): New.
905 (regcache_test_data_up): New.
906 (populate_regcaches_for_test): New.
907 (regcaches_test): Remove.
908 (get_thread_arch_aspace_regcache_test): New.
909 (registers_changed_ptid_all_test): New.
910 (registers_changed_ptid_target_test): New.
911 (registers_changed_ptid_target_ptid_test): New.
912 (regcache_thread_ptid_changed): Remove regcache_count lambda.
913 (_initialize_regcache): Register new tests.
914
915 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
916
917 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
918 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
919 gdbarch and aspace parameter. Use current inferior's aspace.
920 Validate regcache's arch value.
921 (regcaches_test): Update.
922
923 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
924
925 * regcache.c (regcaches_test): Call registers_changed.
926
927 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
928
929 * infrun.c (process_event_stop_test): Fix typo "breapoint".
930
931 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
932
933 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
934 to find the end of prologue for flang compiled binaries.
935 * arm-tdep.c (arm_skip_prologue): Likewise.
936 * i386-tdep.c (i386_skip_prologue): Likewise.
937 * producer.c (producer_is_llvm): New function.
938 (producer_parsing_tests): Added new tests for clang/flang.
939 * producer.h (producer_is_llvm): New declaration.
940
941 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
942
943 * linux-nat.c (linux_nat_debug_printf): New function.
944 (linux_nat_debug_printf_1): New macro. Use throughout the file.
945
946 2020-08-18 Aaron Merey <amerey@redhat.com>
947
948 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
949 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
950 (CLIBS): Add DEBUGINFOD_LIBS.
951
952 2020-08-17 Sergei Trofimovich <siarheit@google.com>
953
954 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
955 'gdbarch_num_regs'.
956
957 2020-08-17 Tom Tromey <tromey@adacore.com>
958
959 * ada-varobj.c (ada_varobj_decode_var): Handle case where
960 ada_get_decoded_value returns NULL.
961
962 2020-08-17 Tom Tromey <tromey@adacore.com>
963
964 * python/py-inferior.c (infpy_search_memory): Use
965 gdb_py_object_from_ulongest.
966 * python/py-infevents.c (create_inferior_call_event_object)
967 (create_memory_changed_event_object): Use
968 gdb_py_object_from_ulongest.
969 * python/py-linetable.c (ltpy_entry_get_pc): Use
970 gdb_py_object_from_ulongest.
971
972 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
973
974 * loc.c (class symbol_needs_eval_context): Fix indentation.
975
976 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
977
978 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
979 bool.
980
981 2020-08-17 Tom de Vries <tdevries@suse.de>
982
983 PR gdb/26393
984 * gdbtypes.c (dump_dynamic_prop): New function.
985 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
986
987 2020-08-15 Tom de Vries <tdevries@suse.de>
988
989 PR backtrace/26390
990 * stack.c (print_frame_args): Temporarily set the selected
991 frame to FRAME while printing the frame's arguments.
992
993 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
994
995 PR breakpoints/26385
996 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
997 Always clear watchpoint with PTRACE_SET_DEBUGREG.
998
999 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1000
1001 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1002 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1003 and >= to check return value instead of == -1 and != -1.
1004
1005 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1006
1007 * utils.h (class gdb_argv) <as_array_view>: New method.
1008 * utils.c (gdb_argv_as_array_view_test): New.
1009 (_initialize_utils): Register selftest.
1010 * maint.c (maintenance_selftest): Use the new method.
1011
1012 2020-08-13 Kamil Rytarowski <n54@gmx.com>
1013
1014 * target.h (supports_dumpcore, dumpcore): New
1015 function declarations.
1016 * target.c (supports_dumpcore, dumpcore): New
1017 functions.
1018 * target-delegates.c: Rebuild.
1019 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1020 and target_dumpcore ().
1021
1022 2020-08-13 Aaron Merey <amerey@redhat.com>
1023
1024 * debuginfod-support.c: Replace global variables with user_data.
1025
1026 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1027
1028 * maint.c (maintenance_selftest): Split args and pass array_view
1029 to run_tests.
1030
1031 2020-08-12 Luis Machado <luis.machado@linaro.org>
1032
1033 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1034 type's length.
1035 Use %s and pulongest to print the length.
1036
1037 2020-08-12 Pedro Alves <palves@redhat.com>
1038
1039 * NEWS: Move "Multi-target debugging support" item to the
1040 "Changes since GDB 9" section.
1041
1042 2020-08-12 Pedro Alves <palves@redhat.com>
1043
1044 PR gdb/26336
1045 * progspace.c (program_space::remove_objfile): Invalidate the
1046 frame cache.
1047
1048 2020-08-11 Tom de Vries <tdevries@suse.de>
1049
1050 * MAINTAINERS: Mark ms1 as deleted.
1051
1052 2020-08-10 Luis Machado <luis.machado@linaro.org>
1053
1054 PR gdb/26310
1055
1056 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1057 act accordingly.
1058 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1059 movz/str/stur/stp skipping behavior.
1060
1061 2020-08-10 Luis Machado <luis.machado@linaro.org>
1062
1063 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1064 struct user_sve_header instead of struct sve_context.
1065
1066 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1067
1068 * read.h (dwarf2_fetch_die_loc_sect_off,
1069 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1070 `void *` parameter with function_view.
1071 * read.c (dwarf2_fetch_die_loc_sect_off,
1072 dwarf2_fetch_die_loc_cu_off): Likewise.
1073 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1074 (per_cu_dwarf_call): Adjust.
1075 (get_frame_address_in_block_wrapper): Remove.
1076 (indirect_synthetic_pointer): Adjust.
1077 (get_ax_pc): Remove.
1078 (dwarf2_compile_expr_to_ax): Adjust.
1079
1080 2020-08-08 Tom de Vries <tdevries@suse.de>
1081
1082 PR build/26344
1083 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1084 constructor.
1085 * regcache.c (get_thread_arch_aspace_regcache): Same.
1086
1087 2020-08-07 Tom Tromey <tromey@adacore.com>
1088
1089 * ravenscar-thread.c
1090 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1091 New method.
1092 (ravenscar_thread_target::wait): Check
1093 runtime_initialized.
1094 (ravenscar_thread_target::prepare_to_store)
1095 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1096 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1097 (ravenscar_thread_target::stopped_by_watchpoint)
1098 (ravenscar_thread_target::stopped_data_address)
1099 (ravenscar_thread_target::core_of_thread): Use
1100 scoped_restore_current_thread and
1101 set_base_thread_from_ravenscar_task.
1102
1103 2020-08-07 Tom Tromey <tromey@adacore.com>
1104
1105 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1106
1107 2020-08-07 Tom Tromey <tromey@adacore.com>
1108
1109 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1110 update_inferior_ptid before update_thread_list.
1111 (temporarily_change_regcache_ptid): New class.
1112 (ravenscar_thread_target::fetch_registers)
1113 (ravenscar_thread_target::store_registers)
1114 (ravenscar_thread_target::prepare_to_store): Use base thread when
1115 forwarding operation.
1116
1117 2020-08-07 Tom Tromey <tromey@adacore.com>
1118
1119 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1120 "is_pid" case.
1121
1122 2020-08-07 Tom Tromey <tromey@adacore.com>
1123
1124 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1125 New methods.
1126 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1127 first.
1128 (ravenscar_thread_target::add_thread): Rename from
1129 ravenscar_add_thread.
1130 (ravenscar_thread_target::update_thread_list): Use a lambda.
1131 (ravenscar_thread_target::xfer_partial): New method.
1132
1133 2020-08-07 Tom Tromey <tromey@adacore.com>
1134
1135 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1136 gdb::function_view.
1137 (iterate_over_live_ada_tasks): Change type of argument.
1138 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1139 of argument.
1140
1141 2020-08-07 Tom Tromey <tromey@adacore.com>
1142
1143 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1144 Remove.
1145 (ravenscar_thread_target::extra_thread_info): Remove.
1146 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1147 defer to target beneath for non-Ravenscar threads.
1148
1149 2020-08-07 Tom Tromey <tromey@adacore.com>
1150
1151 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1152 get_base_thread_from_ravenscar_task>: Now methods.
1153 <m_cpu_map>: New member.
1154 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1155 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1156 (ravenscar_thread_target::task_is_currently_active): Update.
1157 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1158 Now a method.
1159 (ravenscar_thread_target::add_active_thread): Put initial thread
1160 into the m_cpu_map.
1161
1162 2020-08-07 Tom Tromey <tromey@adacore.com>
1163
1164 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1165 event_ptid.
1166
1167 2020-08-07 Tom Tromey <tromey@adacore.com>
1168
1169 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1170 runtime_initialized.
1171
1172 2020-08-07 Tom Tromey <tromey@adacore.com>
1173
1174 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1175 add_active_thread.
1176 (ravenscar_thread_target::add_active_thread): Now public.
1177 (ravenscar_inferior_created): Call add_active_thread after pushing
1178 the target.
1179
1180 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1181
1182 * regcache.c (ptid_regcache_map): New type.
1183 (target_ptid_regcache_map): New type.
1184 (regcaches): Change type to target_ptid_regcache_map.
1185 (get_thread_arch_aspace_regcache): Update to regcaches' new
1186 type.
1187 (regcache_thread_ptid_changed): Likewise.
1188 (registers_changed_ptid): Likewise.
1189 (regcaches_size): Likewise.
1190 (regcaches_test): Update.
1191 (regcache_thread_ptid_changed): Update.
1192 * regcache.h (regcache_up): New type.
1193 * gdbsupport/ptid.h (hash_ptid): New struct.
1194
1195 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1196
1197 * observable.h (thread_ptid_changed): Add parameter
1198 `process_stratum_target *`.
1199 * infrun.c (infrun_thread_ptid_changed): Add parameter
1200 `process_stratum_target *` and use it.
1201 (selftests): New namespace.
1202 (infrun_thread_ptid_changed): New function.
1203 (_initialize_infrun): Register selftest.
1204 * regcache.c (regcache_thread_ptid_changed): Add parameter
1205 `process_stratum_target *` and use it.
1206 (regcache_thread_ptid_changed): New function.
1207 (_initialize_regcache): Register selftest.
1208 * thread.c (thread_change_ptid): Pass target to
1209 thread_ptid_changed observable.
1210
1211 2020-08-06 Caroline Tice <cmtice@google.com>
1212
1213 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1214 (struct dwp_sections): Update field comments. Add loclists and
1215 rnglists fields.
1216 (struct virtual_v2_dwo_sections): Rename struct to
1217 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1218 size & offset fields for loclists and rnglists.
1219 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1220 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1221 skipping dummy type units.
1222 (create_dwp_hash_table): Update the large comment above the function to
1223 discuss Version 5 DWP files as well, with references. Update all the
1224 version checks in the function to check for version 5 as well. Add new
1225 section at the end to create dwp hash table for version 5.
1226 (create_dwp_v2_section): Rename function to
1227 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1228 Add V5 to error message text.
1229 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1230 into calls to create_dwp_v2_or_v5_section.
1231 (create_dwo_unit_in_dwp_v5): New function.
1232 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1233 check for version2; add else clause to handle version 5.
1234 (open_and_init_dwo_file): Add code to check dwarf version & only call
1235 create_debug_types_hash_table (with sections.types) if version is not 5;
1236 else call create_debug_type_hash_table, with sections.info.
1237 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1238 version 5.
1239 (dwarf2_locate_v5_dwp_sections): New function.
1240 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1241 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1242
1243 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1244
1245 * regcache.h (class regcache): Remove friend
1246 registers_changed_ptid.
1247 <regcache_thread_ptid_changed>: Remove.
1248 <regcaches>: Remove.
1249 * regcache.c (regcache::regcaches): Rename to...
1250 (regcaches): ... this. Make static.
1251 (get_thread_arch_aspace_regcache): Update.
1252 (regcache::regcache_thread_ptid_changed): Rename to...
1253 (regcache_thread_ptid_changed): ... this. Update.
1254 (class regcache_access): Remove.
1255 (regcaches_test): Update.
1256 (_initialize_regcache): Update.
1257 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1258 <forward_list>.
1259
1260 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1261
1262 * regcache.h (class regcache) <current_regcache>: Rename to...
1263 <regcaches>: ... this. Move doc here.
1264 * regcache.c (regcache::current_regcache) Rename to...
1265 (regcache::regcaches): ... this. Move doc to header.
1266 (get_thread_arch_aspace_regcache): Update.
1267 (regcache::regcache_thread_ptid_changed): Update.
1268 (registers_changed_ptid): Update.
1269 (class regcache_access) <current_regcache_size>: Rename to...
1270 <regcaches_size>: ... this.
1271 (current_regcache_test): Rename to...
1272 (regcaches_test): ... this.
1273 (_initialize_regcache): Update.
1274
1275 2020-08-06 Victor Collod <vcollod@nvidia.com>
1276
1277 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1278
1279 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1280
1281 * corelow.c (core_target::build_file_mappings): Don't output
1282 null pathname in warning.
1283
1284 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1285
1286 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1287 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1288 gdb.dwarf2/dw2-single-line-discriminators.exp,
1289 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1290
1291 2020-08-05 Tom Tromey <tromey@adacore.com>
1292
1293 PR rust/26197:
1294 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1295 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1296 Fix off-by-one and type size errors in ordinary case.
1297
1298 2020-08-05 Tom de Vries <tdevries@suse.de>
1299
1300 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1301 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1302
1303 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1304
1305 * frame.h (frame_id_p): Return bool.
1306 (frame_id_artificial_p): Return bool.
1307 (frame_id_eq): Return bool.
1308 (has_stack_frames): Return bool.
1309 (get_selected_frame): Fix typo in comment.
1310 (get_frame_pc_if_available): Return bool.
1311 (get_frame_address_in_block_if_available): Return bool.
1312 (get_frame_func_if_available): Return bool.
1313 (read_frame_register_unsigned): Return bool.
1314 (get_frame_register_bytes): Return bool.
1315 (safe_frame_unwind_memory): Return bool.
1316 (deprecated_frame_register_read): Return bool.
1317 (frame_unwinder_is): Return bool.
1318 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1319 bool.
1320 <this_id::p>: Likewise.
1321 <prev_p>: Likewise.
1322 (frame_stash_add): Return bool.
1323 (get_frame_id): Use bool.
1324 (frame_id_build_special) Use bool.
1325 (frame_id_build_unavailable_stack): Use bool.
1326 (frame_id_build): Use bool.
1327 (frame_id_p): Return bool, use true/false instead of 1/0.
1328 (frame_id_artificial_p): Likewise.
1329 (frame_id_eq): Likewise.
1330 (frame_id_inner): Likewise.
1331 (get_frame_func_if_available): Likewise.
1332 (read_frame_register_unsigned): Likewise.
1333 (deprecated_frame_register_read): Likewise.
1334 (get_frame_register_bytes): Likewise.
1335 (has_stack_frames): Likewise.
1336 (inside_main_func): Likewise.
1337 (inside_entry_func): Likewise.
1338 (get_frame_pc_if_available): Likewise.
1339 (get_frame_address_in_block_if_available): Likewise.
1340 (frame_unwinder_is): Likewise.
1341 (safe_frame_unwind_memory): Likewise.
1342 (frame_unwind_arch): Likewise.
1343
1344 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1345
1346 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1347 type to cached_copy_status.
1348 (fprintf_frame): Adjust.
1349 (get_frame_func_if_available): Adjust.
1350 (frame_cleanup_after_sniffer): Adjust.
1351
1352 2020-08-04 Mark Wielaard <mark@klomp.org>
1353
1354 * MAINTAINERS (Write After Approval): Update email address.
1355
1356 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1357
1358 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1359 dynamic_prop::const_val.
1360
1361 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1362
1363 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1364 dynamic_prop::kind.
1365
1366 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1367
1368 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1369
1370 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1371
1372 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1373
1374 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1375 Jose E. Marchesi <jose.marchesi@oracle.com>
1376
1377 * configure.tgt: Add entry for bpf-*-*.
1378 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1379 (ALLDEPFILES): Add bpf-tdep.c.
1380 * bpf-tdep.c: New file.
1381 * MAINTAINERS: Add bpf target and maintainer.
1382 * NEWS: Mention the support for the new target.
1383
1384 2020-08-04 Tom de Vries <tdevries@suse.de>
1385
1386 PR symtab/23270
1387 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1388 Error.
1389
1390 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1391
1392 * syscalls/freebsd.xml: Regenerate.
1393
1394 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1395
1396 * syscalls/update-freebsd.sh: Fix usage and year range.
1397
1398 2020-08-03 Tom de Vries <tdevries@suse.de>
1399
1400 PR symtab/26333
1401 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1402 DW_LNE_lo_user/DW_LNE_hi_user range.
1403
1404 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1405
1406 PR ada/26318
1407 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1408 kind.
1409
1410 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1411
1412 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1413
1414 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1415
1416 * breakpoint.c (set_breakpoint_condition): Update the condition
1417 expressions after checking that the input condition string parses
1418 successfully and does not contain junk at the end.
1419
1420 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1421
1422 * breakpoint.c (set_breakpoint_condition): Update the
1423 condition string after parsing the new condition successfully.
1424
1425 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1426
1427 * proc-api.c (_STRUCTURED_PROC): Don't define.
1428 * proc-events.c: Likewise.
1429 * proc-flags.c: Likewise.
1430 * proc-why.c: Likewise.
1431 * procfs.c: Likewise.
1432
1433 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1434 * configure, config.in: Regenerate.
1435
1436 2020-07-30 Tom de Vries <tdevries@suse.de>
1437
1438 PR build/26320
1439 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1440 m_red/m_green/m_blue in a union.
1441
1442 2020-07-29 Tom de Vries <tdevries@suse.de>
1443
1444 PR tdep/26280
1445 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1446
1447 2020-07-28 Tom Tromey <tromey@adacore.com>
1448
1449 PR symtab/26270:
1450 * symtab.h (find_pc_partial_function_sym): Declare.
1451 * cli/cli-cmds.c (disassemble_command): Use
1452 find_pc_partial_function_sym. Check asm_demangle.
1453 * blockframe.c (cache_pc_function_sym): New global.
1454 (cache_pc_function_name): Remove.
1455 (clear_pc_function_cache): Update.
1456 (find_pc_partial_function_sym): New function, from
1457 find_pc_partial_function.
1458 (find_pc_partial_function): Rewrite using
1459 find_pc_partial_function_sym.
1460
1461 2020-07-28 Tom Tromey <tromey@adacore.com>
1462
1463 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1464 help. Add usage.
1465
1466 2020-07-28 Tom Tromey <tromey@adacore.com>
1467
1468 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1469 <DW_OP_GNU_variable_value>: Cast to address type.
1470
1471 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1472
1473 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1474 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1475 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1476 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1477 (nbsd_get_siginfo_type): New.
1478 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1479 (_initialize_nbsd_tdep): New.
1480
1481 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1482
1483 PR binutils/26301
1484 * configure: Regenerated.
1485
1486 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1487
1488 PR binutils/26301
1489 * configure: Regenerated.
1490
1491 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1492
1493 * python/py-frame.c: Remove 'user-regs.h' include.
1494 (frapy_read_register): Rewrite to make use of
1495 gdbpy_parse_register_id.
1496 * python/py-registers.c (gdbpy_parse_register_id): New function,
1497 moved here from python/py-unwind.c. Updated the return type, and
1498 also accepts register descriptor objects.
1499 * python/py-unwind.c: Remove 'user-regs.h' include.
1500 (pyuw_parse_register_id): Moved to python/py-registers.c.
1501 (unwind_infopy_add_saved_register): Update to use
1502 gdbpy_parse_register_id.
1503 (pending_framepy_read_register): Likewise.
1504 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1505
1506 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1507
1508 * python/py-registers.c: Add 'user-regs.h' include.
1509 (register_descriptor_iter_find): New function.
1510 (register_descriptor_iterator_object_methods): New static global
1511 methods array.
1512 (register_descriptor_iterator_object_type): Add pointer to methods
1513 array.
1514
1515 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1516
1517 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1518 for all architectures on FreeBSD 11.3 and later.
1519
1520 2020-07-27 Tom Tromey <tromey@adacore.com>
1521
1522 * gcore.h (load_corefile): Don't declare.
1523
1524 2020-07-27 Tom de Vries <tdevries@suse.de>
1525
1526 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1527 * config.in: Regenerate.
1528 * configure: Regenerate.
1529
1530 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1531
1532 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1533 ws2tcpip.h. When checking whether socklen_t type is defined, use
1534 ws2tcpip.h if it is available and sys/socket.h isn't.
1535 * configure: Regenerate.
1536 * config.in: Regenerate.
1537
1538 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1539
1540 PR fortran/23051
1541 PR fortran/26139
1542 * valops.c (value_ind): Pass address to
1543 readjust_indirect_value_type.
1544 * value.c (readjust_indirect_value_type): Make parameter
1545 non-const, and add extra address parameter. Resolve original type
1546 before using it.
1547 * value.h (readjust_indirect_value_type): Update function
1548 signature and comment.
1549
1550 2020-07-25 Tom de Vries <tdevries@suse.de>
1551
1552 PR symtab/26243
1553 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1554 entries.
1555
1556 2020-07-24 Aaron Merey <amerey@redhat.com>
1557
1558 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1559 * configure: Rebuild.
1560
1561 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1562
1563 PR corefiles/26294
1564 * corelow.c (_initialize_corelow): Add period to help text
1565 for "maintenance print core-file-backed-mappings".
1566
1567 2020-07-23 Pedro Alves <pedro@palves.net>
1568
1569 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1570 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1571 meanwhile.
1572 * frame.c (frame_cache_generation, get_frame_cache_generation):
1573 New.
1574 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1575 (get_prev_frame_if_no_cycle): On exception, don't touch
1576 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1577 * frame.h (get_frame_cache_generation): Declare.
1578
1579 2020-07-23 Tom de Vries <tdevries@suse.de>
1580
1581 PR tui/26282
1582 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1583 New default constructor.
1584
1585 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1586
1587 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1588 exclude non-statement entries.
1589
1590 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1591
1592 * NEWS (New commands): Mention new command
1593 "maintenance print core-file-backed-mappings".
1594
1595 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1596
1597 * corelow.c (gdbcmd.h): Include.
1598 (core_target::info_proc_mappings): New method.
1599 (get_current_core_target): New function.
1600 (maintenance_print_core_file_backed_mappings): New function.
1601 (_initialize_corelow): Add core-file-backed-mappings to
1602 "maint print" commands.
1603
1604 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1605
1606 * linux-tdep.c (dump_note_entry_p): New function.
1607 (linux_dump_mapping_p_ftype): New typedef.
1608 (linux_find_memory_regions_full): Add new parameter,
1609 should_dump_mapping_p.
1610 (linux_find_memory_regions): Adjust call to
1611 linux_find_memory_regions_full.
1612 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1613 call to linux_find_memory_regions_full.
1614
1615 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1616
1617 * corelow.c (solist.h, unordered_map): Include.
1618 (class core_target): Add field m_core_file_mappings and
1619 method build_file_mappings.
1620 (core_target::core_target): Call build_file_mappings.
1621 (core_target::~core_target): Free memory associated with
1622 m_core_file_mappings.
1623 (core_target::build_file_mappings): New method.
1624 (core_target::xfer_partial): Use m_core_file_mappings
1625 for memory transfers.
1626 * linux-tdep.c (linux_read_core_file_mappings): New
1627 function.
1628 (linux_core_info_proc_mappings): Rewrite to use
1629 linux_read_core_file_mappings.
1630 (linux_init_abi): Register linux_read_core_file_mappings.
1631
1632 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1633
1634 * arch-utils.c (default_read_core_file_mappings): New function.
1635 * arch-utils.c (default_read_core_file_mappings): Declare.
1636 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1637 * gdbarch.h, gdbarch.c: Regenerate.
1638
1639 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1640
1641 PR corefiles/25631
1642 * corelow.c (core_target:xfer_partial): Revise
1643 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1644 case after first checking the stratum beneath the core
1645 target.
1646 (has_all_memory): Return true.
1647 * target.c (raw_memory_xfer_partial): Revise comment
1648 regarding use of has_all_memory.
1649
1650 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1651
1652 * exec.h (section_table_xfer_memory): Revise declaration,
1653 replacing section name parameter with an optional callback
1654 predicate.
1655 * exec.c (section_table_xfer_memory): Likewise.
1656 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1657 of section_table_xfer_memory.
1658
1659 2020-07-22 Tom Tromey <tromey@adacore.com>
1660
1661 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1662 lookup_symbol_search_name.
1663
1664 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1665
1666 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1667 redundant local variable.
1668 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1669 reference, not pointer, update code accordingly.
1670
1671 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1672 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1673
1674 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1675 * jit.c (jit_breakpoint_re_set_internal): Use the
1676 `skip_jit_symbol_lookup` field.
1677
1678 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1679 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1680
1681 * jit.c (jit_read_descriptor): Define the descriptor address once,
1682 use twice.
1683 (jit_breakpoint_deleted): Move the declaration of the loop variable
1684 `iter` into the loop header.
1685 (jit_breakpoint_re_set_internal): Move the declaration of the local
1686 variable `objf_data` to the first point of definition.
1687 (jit_event_handler): Move the declaration of local variables
1688 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1689 Rename `objf` to `jited`.
1690
1691 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1692
1693 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1694 Remove.
1695 * jit.c (get_jiter_objfile_data): Update.
1696
1697 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1698 Simon Marchi <simon.marchi@polymtl.ca>
1699
1700 * jit.c (struct jit_program_space_data): Remove.
1701 (jit_program_space_key): Remove.
1702 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1703 stuff.
1704 (get_jit_program_space_data): Remove.
1705 (jit_breakpoint_deleted): Iterate on all of the program space's
1706 objfiles.
1707 (jit_inferior_init): Likewise.
1708 (jit_breakpoint_re_set_internal): Likewise. Also change return
1709 type to void.
1710 (jit_breakpoint_re_set): Pass current_program_space to
1711 jit_breakpoint_re_set_internal.
1712
1713 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1714
1715 * jit.h (struct jiter_objfile_data) <cached_code_address,
1716 jit_breakpoint>: Move to here from ...
1717 * jit.c (jit_program_space_data): ... here.
1718 (jiter_objfile_data::~jiter_objfile_data): Update.
1719 (jit_breakpoint_deleted): Update.
1720 (jit_breakpoint_re_set_internal): Update.
1721
1722 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1723
1724 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1725 checks.
1726 (jit_read_descriptor): Remove NULL check.
1727 (jit_event_handler): Add an assertion.
1728
1729 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1730
1731 * jit.h (struct jit_objfile_data): Split into...
1732 (struct jiter_objfile_data): ... this ...
1733 (struct jited_objfile_data): ... and this.
1734 * objfiles.h (struct objfile) <jit_data>: Remove.
1735 <jiter_data, jited_data>: New fields.
1736 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1737 (jiter_objfile_data::~jiter_objfile_data): ... this.
1738 (get_jit_objfile_data): Rename to ...
1739 (get_jiter_objfile_data): ... this.
1740 (add_objfile_entry): Update.
1741 (jit_read_descriptor): Use get_jiter_objfile_data.
1742 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1743 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1744 (jit_inferior_exit_hook): Use objfile's jited_data field.
1745
1746 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1747
1748 * jit.h: Forward-declare `struct minimal_symbol`.
1749 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1750 constructor, destructor, and an objfile* field.
1751 * jit.c (jit_objfile_data): Remove.
1752 (struct jit_objfile_data): Migrate from here to jit.h.
1753 (jit_objfile_data::~jit_objfile_data): New destructor
1754 implementation with code moved from free_objfile_data.
1755 (free_objfile_data): Delete.
1756 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1757 (jit_find_objf_with_entry_addr): Ditto.
1758 (jit_inferior_exit_hook): Ditto.
1759 (_initialize_jit): Remove the call to
1760 register_objfile_data_with_cleanup.
1761 * objfiles.h (struct objfile) <jit_data>: New field.
1762
1763 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1764
1765 * jit.h: Forward-declare `struct objfile`.
1766 (jit_event_handler): Add a second parameter, the JITer objfile.
1767 * jit.c (jit_read_descriptor): Change the signature to take the
1768 JITer objfile as an argument instead of the jit_program_space_data.
1769 (jit_inferior_init): Update the call to jit_read_descriptor.
1770 (jit_event_handler): Use the new JITer objfile argument when calling
1771 jit_read_descriptor.
1772 * breakpoint.c (handle_jit_event): Update the call to
1773 jit_event_handler to pass the JITer objfile.
1774
1775 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1776
1777 * gdbarch.c: Regenerate.
1778 * gdbarch.h: Regenerate.
1779 * gdbarch.sh (handle_segmentation_fault): Remove method.
1780 * infrun.c (handle_segmentation_fault): Remove.
1781 (print_signal_received_reason): Remove call to
1782 handle_segmentation_fault.
1783
1784 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1785
1786 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1787 Rename to sparc64_linux_report_signal_info and add siggnal
1788 argument.
1789 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1790 instead of sparc64_linux_handle_segmentation_fault.
1791
1792 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1793
1794 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1795 i386_linux_report_signal_info instead of
1796 i386_linux_handle_segmentation_fault.
1797 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1798 to i386_linux_report_signal_info and add siggnal argument.
1799 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1800 of i386_linux_handle_segmentation_fault.
1801 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1802 to i386_linux_report_signal_info and add siggnal argument.
1803
1804 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1805
1806 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1807 hook if present.
1808
1809 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1810
1811 * gdbarch.c: Regenerate.
1812 * gdbarch.h: Regenerate.
1813 * gdbarch.sh (report_signal_info): New method.
1814 * infrun.c (print_signal_received_reason): Invoke gdbarch
1815 report_signal_info hook if present.
1816
1817 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1818
1819 * python/py-registers.c : Add 'unordered_map' include.
1820 (gdbpy_new_reggroup): Renamed to...
1821 (gdbpy_get_reggroup): ...this. Update to only create register
1822 group descriptors when needed.
1823 (gdbpy_reggroup_iter_next): Update.
1824
1825 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1826
1827 * python/py-registers.c (gdbpy_register_object_data): New static
1828 global.
1829 (gdbpy_register_object_data_init): New function.
1830 (gdbpy_new_register_descriptor): Renamed to...
1831 (gdbpy_get_register_descriptor): ...this, and update to reuse
1832 existing register descriptors where possible.
1833 (gdbpy_register_descriptor_iter_next): Update.
1834 (gdbpy_initialize_registers): Register new gdbarch data.
1835
1836 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1837
1838 * linux-nat.c (stopped_pids): Make static.
1839
1840 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1841
1842 PR ada/26235
1843 * gdbtypes.c (ada_discrete_type_low_bound,
1844 ada_discrete_type_high_bound): Handle undefined bounds.
1845
1846 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1847
1848 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1849 declaration.
1850 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1851 function.
1852
1853 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1854
1855 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1856 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1857 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1858 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1859 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1860 method.
1861
1862 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1863
1864 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1865 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1866 which are deprecated in Guile 3.0.
1867 * configure.ac (try_guile_versions): Add "guile-3.0".
1868 * configure (try_guile_versions): Regenerate.
1869 * NEWS: Update entry.
1870
1871 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1872 Doug Evans <dje@google.com>
1873
1874 PR gdb/21104
1875 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1876 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1877 USING_GUILE_BEFORE_2_2.
1878 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1879 Change type to 'scm_t_port_type *'.
1880 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1881 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1882 parameter and honor it. Update callers.
1883 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1884 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1885 functions.
1886 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1887 USING_GUILE_BEFORE_2_2.
1888 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1889 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1890 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1891 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1892 and 'SCM_PORT_TYPE'.
1893 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1894 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1895 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1896 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1897 [!USING_GUILE_BEFORE_2_2]: New functions.
1898 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1899 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1900 'gdbscm_memory_port_read'.
1901 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1902 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1903 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1904 function.
1905 (ioscm_init_memory_port): Remove.
1906 (ioscm_init_memory_port_stream): New function
1907 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1908 function.
1909 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1910 Return scm_from_uint (0).
1911 (gdbscm_set_memory_port_read_buffer_size_x)
1912 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1913 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1914 Return scm_from_uint (0).
1915 (gdbscm_set_memory_port_write_buffer_size_x)
1916 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1917 * configure.ac (try_guile_versions): Add "guile-2.2".
1918 * configure: Regenerate.
1919 * NEWS: Add entry.
1920
1921 2020-07-18 Tom Tromey <tom@tromey.com>
1922
1923 * linux-nat.c (linux_multi_process): Remove.
1924 (linux_nat_target::supports_multi_process): Return true.
1925
1926 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1927
1928 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1929 (riscv_lookup_target_description): Return pointer out of
1930 unique_ptr.
1931 * target-descriptions.c (allocate_target_description): Add
1932 comment.
1933 (target_desc_deleter::operator()): Likewise.
1934 * target-descriptions.h (struct target_desc_deleter): Moved to
1935 gdbsupport/tdesc.h.
1936 (target_desc_up): Likewise.
1937
1938 2020-07-17 Tom Tromey <tromey@adacore.com>
1939
1940 * linux-nat.c (linux_nat_target::supports_non_stop)
1941 (linux_nat_target::always_non_stop_p): Use "true".
1942 (linux_nat_target::supports_disable_randomization): Use "true" and
1943 "false".
1944
1945 2020-07-16 Caroline Tice <cmtice@google.com>
1946
1947 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1948 (RNGLIST_HEADER_SIZE64): New constant definition.
1949 (struct dwop_section_names): Add rnglists_dwo.
1950 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1951 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1952 (struct dwo_sections): Add rnglists field.
1953 (read_attribut_reprocess): Add tag parameter.
1954 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1955 (cu_debug_rnglists_section): New function (decl & definition).
1956 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1957 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1958 die whose range is being checked; get rnglist section from
1959 cu_debug_rnglists_section, to get from either objfile or dwo file as
1960 appropriate. Add cases for DW_RLE_base_addressx,
1961 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1962 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1963 test inside if-condition and updating complaint message.
1964 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1965 dwarf2_rnglists_process.
1966 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1967 dwarf2_ranges_process.
1968 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1969 need_ranges_base and update comment appropriately. Also pass die tag
1970 to dwarf2_ranges_read.
1971 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1972 need_ranges_base and update comment appropriately. Also pass die tag
1973 to dwarf2_ranges_process.
1974 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1975 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1976 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1977 need_ranges_base and update comment appropriately. Also pass die tag
1978 to read_attribute_reprocess and dwarf2_ranges_read.
1979 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1980 and update function comment appropriately.
1981 (read_loclist_index): Call read_loclists_rnglists_header instead of
1982 read_loclist_header.
1983 (read_rnglist_index): New function.
1984 (read_attribute_reprocess): Add tag parameter. Add code for
1985 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1986 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1987
1988 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1989
1990 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1991 being resolved.
1992
1993 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1994
1995 * arch-utils.c (show_architecture): Update formatting of messages.
1996
1997 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1998
1999 * gdbtypes.h (struct type) <bounds>: Handle array and string
2000 types.
2001 * ada-lang.c (assign_aggregate): Use type::bounds on
2002 array/string type.
2003 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2004 * c-varobj.c (c_number_of_children): Likewise.
2005 (c_describe_child): Likewise.
2006 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2007 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2008 (f_type_print_base): Likewise.
2009 * f-valprint.c (f77_array_offset_tbl): Likewise.
2010 (f77_get_upperbound): Likewise.
2011 (f77_print_array_1): Likewise.
2012 * guile/scm-type.c (gdbscm_type_range): Likewise.
2013 * m2-typeprint.c (m2_array): Likewise.
2014 (m2_is_long_set_of_type): Likewise.
2015 * m2-valprint.c (get_long_set_bounds): Likewise.
2016 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2017 * python/py-type.c (typy_range): Likewise.
2018 * rust-lang.c (rust_internal_print_type): Likewise.
2019 * type-stack.c (type_stack::follow_types): Likewise.
2020 * valarith.c (value_subscripted_rvalue): Likewise.
2021 * valops.c (value_cast): Likewise.
2022
2023 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2024
2025 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2026 callers to use the equivalent accessor methods.
2027
2028 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2029
2030 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2031 (struct type) <bit_stride>: New method.
2032 (TYPE_BIT_STRIDE): Remove.
2033 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2034
2035 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2036
2037 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2038 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2039 callers to use the equivalent accessor methods instead.
2040
2041 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2042
2043 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2044 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2045 callers to use the equivalent accessor methods instead.
2046
2047 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2048
2049 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2050 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2051 to use dynamic_prop::kind.
2052
2053 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2054
2055 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2056 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2057 to get the bound property's kind and check against
2058 PROP_UNDEFINED.
2059
2060 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2061
2062 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2063 all callers to use type::range_bounds followed by
2064 dynamic_prop::{low,high}.
2065
2066 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2067
2068 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2069 const_val, set_const_val, baton, set_locexpr, set_loclist,
2070 set_addr_offset, variant_parts, set_variant_parts,
2071 original_type, set_original_type>: New methods.
2072 <kind>: Rename to...
2073 <m_kind>: ... this. Update all users to use the new methods
2074 instead.
2075 <data>: Rename to...
2076 <m_data>: ... this. Update all users to use the new methods
2077 instead.
2078
2079 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2080
2081 * gdbtypes.c (get_discrete_bounds): Return failure if
2082 the range type's bounds are not both defined and constant
2083 values.
2084 (get_array_bounds): Update comment. Remove undefined bound check.
2085
2086 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2087
2088 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2089 the type::bounds method directly.
2090
2091 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2092
2093 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2094 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2095 are used to set the range type's bounds to use set_bounds.
2096
2097 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2098
2099 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2100
2101 2020-07-10 Pedro Alves <pedro@palves.net>
2102
2103 * gdbthread.h (inferior_ref): Define.
2104 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2105 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2106 * thread.c
2107 (scoped_restore_current_thread::restore):
2108 Adjust to gdb::ref_ptr.
2109 (scoped_restore_current_thread::~scoped_restore_current_thread):
2110 Remove manual decref handling.
2111 (scoped_restore_current_thread::scoped_restore_current_thread):
2112 Adjust to use
2113 inferior_ref::new_reference/thread_info_ref::new_reference.
2114 Incref the thread before calling get_frame_id instead of after.
2115 Let TARGET_CLOSE_ERROR propagate.
2116
2117 2020-07-10 Pedro Alves <pedro@palves.net>
2118
2119 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2120 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2121 NOT_AVAILABLE_ERROR.
2122 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2123 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2124
2125 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2126 Pedro Alves <pedro@palves.net>
2127
2128 PR gdb/26199
2129 * infrun.c (threads_are_resumed_pending_p): Delete.
2130 (do_target_wait): Remove threads_are_executing and
2131 threads_are_resumed_pending_p checks from the inferior_matches
2132 lambda. Update comments.
2133
2134 2020-07-10 Pedro Alves <pedro@palves.net>
2135
2136 PR gdb/26199
2137 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2138 executing threads.
2139
2140 2020-07-10 Pedro Alves <pedro@palves.net>
2141
2142 PR gdb/26199
2143 * infrun.c (handle_no_resumed): Handle multiple targets.
2144
2145 2020-07-10 Pedro Alves <pedro@palves.net>
2146
2147 PR gdb/26199
2148 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2149 target_is_async_p.
2150
2151 2020-07-10 Pedro Alves <pedro@palves.net>
2152
2153 PR gdb/26199
2154 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2155 threads, not all threads.
2156
2157 2020-07-10 Pedro Alves <pedro@palves.net>
2158
2159 PR gdb/26199
2160 * remote.c (remote_target::open_1): Pass remote target pointer as
2161 data to create_async_event_handler.
2162 (remote_async_inferior_event_handler): Mark async event handler
2163 before returning if the remote target still has either pending
2164 events or unacknowledged notifications.
2165
2166 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2167
2168 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2169 declaration.
2170 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2171 function.
2172
2173 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2174
2175 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2176 inferior_ptid.
2177
2178 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2179
2180 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2181 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2182 AT_FREEBSD_PS_STRINGS.
2183
2184 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2185
2186 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2187 of debugfile path on Windows.
2188
2189 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2190
2191 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2192 argument to 'data'.
2193
2194 2020-07-08 Tom Tromey <tromey@adacore.com>
2195
2196 * ada-lang.c (ada_exception_message_1): Use read_memory.
2197
2198 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2199
2200 PR python/22748
2201 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2202 special handling for inline frames.
2203 * findvar.c (value_of_register_lazy): Skip inline frames when
2204 creating lazy register values.
2205 * frame.c (frame_id_computed_p): Delete definition.
2206 * frame.h (frame_id_computed_p): Delete declaration.
2207
2208 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2209
2210 * NEWS: Mention additions to Python API.
2211 * python/py-arch.c (archpy_register_groups): New function.
2212 (arch_object_methods): Add 'register_groups' method.
2213 * python/py-registers.c (reggroup_iterator_object): New struct.
2214 (reggroup_object): New struct.
2215 (gdbpy_new_reggroup): New function.
2216 (gdbpy_reggroup_to_string): New function.
2217 (gdbpy_reggroup_name): New function.
2218 (gdbpy_reggroup_iter): New function.
2219 (gdbpy_reggroup_iter_next): New function.
2220 (gdbpy_new_reggroup_iterator): New function
2221 (gdbpy_initialize_registers): Register new types.
2222 (reggroup_iterator_object_type): Define new Python type.
2223 (gdbpy_reggroup_getset): New static global.
2224 (reggroup_object_type): Define new Python type.
2225 * python/python-internal.h
2226
2227 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2228
2229 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2230 * python/py-arch.c (archpy_registers): New function.
2231 (arch_object_methods): Add 'registers' method.
2232 * python/py-registers.c: New file.
2233 * python/python-internal.h
2234 (gdbpy_new_register_descriptor_iterator): Declare.
2235 (gdbpy_initialize_registers): Declare.
2236 * python/python.c (do_start_initialization): Call
2237 gdbpy_initialize_registers.
2238 * NEWS: Mention additions to the Python API.
2239
2240 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2241
2242 * NEWS: Mention new Python API method.
2243 * python/py-unwind.c (pending_framepy_architecture): New function.
2244 (pending_frame_object_methods): Add architecture method.
2245
2246 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2247
2248 * gdbarch.c: Regenerate.
2249 * gdbarch.h: Regenerate.
2250 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2251 (gdbarch_data): Use internal_error for the case where
2252 deprecated_set_gdbarch_data was originally needed.
2253 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2254 and use passed in obstack.
2255 (libunwind_frame_set_descr): Should no longer get back NULL from
2256 gdbarch_data.
2257 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2258 type.
2259 * user-regs.c (user_regs_init): Update parameters, and use passed
2260 in obstack.
2261 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2262 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2263
2264 2020-07-06 Tom de Vries <tdevries@suse.de>
2265
2266 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2267 End-Of-Sequence in lte_is_less_than.
2268 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2269 "gdb: Don't reorder line table entries too much when sorting".
2270
2271 2020-07-06 Tom de Vries <tdevries@suse.de>
2272
2273 PR tui/26205
2274 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2275
2276 2020-07-05 Tom de Vries <tdevries@suse.de>
2277
2278 PR build/26187
2279 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2280 std::uncaught_exceptions instead of deprecated
2281 std::uncaught_exception.
2282
2283 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2284
2285 * macroexp.h (macro_stringify): Return
2286 gdb::unique_xmalloc_ptr<char>.
2287 * macroexp.c (macro_stringify): Likewise.
2288 * macrotab.c (fixup_definition): Update.
2289
2290 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2291
2292 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2293 (lex_one_token): Update.
2294 * macroexp.c (struct macro_buffer) <release>: Return
2295 gdb::unique_xmalloc_ptr<char>.
2296 (macro_stringify): Update.
2297 (macro_expand): Update.
2298 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2299 * macroexp.h (macro_expand_next): Likewise.
2300
2301 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2302
2303 * macroexp.h (macro_lookup_ftype): Remove.
2304 (macro_expand, macro_expand_once, macro_expand_next): Remove
2305 lookup function parameters, add scope parameter.
2306 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2307 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2308 * macroscope.h (standard_macro_lookup): Change parameter type
2309 to macro_scope.
2310 * macroscope.c (standard_macro_lookup): Likewise.
2311 * c-exp.y (lex_one_token): Update.
2312 * macrocmd.c (macro_expand_command): Likewise.
2313 (macro_expand_once_command): Likewise.
2314
2315 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2316
2317 * inf-loop.c (inferior_event_handler): Remove client_data param.
2318 * inf-loop.h (inferior_event_handler): Likewise.
2319 * infcmd.c (step_1): Adjust.
2320 * infrun.c (proceed): Adjust.
2321 (fetch_inferior_event): Remove client_data param.
2322 (infrun_async_inferior_event_handler): Adjust.
2323 * infrun.h (fetch_inferior_event): Remove `void *` param.
2324 * linux-nat.c (handle_target_event): Adjust.
2325 * record-btrace.c (record_btrace_handle_async_inferior_event):
2326 Adjust.
2327 * record-full.c (record_full_async_inferior_event_handler):
2328 Adjust.
2329 * remote.c (remote_async_inferior_event_handler): Adjust.
2330
2331 2020-07-01 Tom Tromey <tom@tromey.com>
2332
2333 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2334 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2335
2336 2020-07-01 Tom Tromey <tom@tromey.com>
2337
2338 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2339 tui_gen_win_info.
2340 (tui_win_info::make_window): Merge with
2341 tui_gen_win_info::make_window.
2342 (tui_win_info::make_visible): Move from tui_gen_win_info.
2343 * tui/tui-win.c (tui_win_info::max_width): Move from
2344 tui_gen_win_info.
2345 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2346 type.
2347 <window_factory>: Likewise.
2348 * tui/tui-layout.c (tui_win_info::resize): Move from
2349 tui_gen_win_info.
2350 (make_standard_window): Change return type.
2351 (get_locator_window, tui_get_window_by_name): Likewise.
2352 (tui_layout_window::apply): Remove a cast.
2353 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2354 (struct tui_win_info): Merge with tui_gen_win_info.
2355 (struct tui_gen_win_info): Remove.
2356
2357 2020-07-01 Tom Tromey <tom@tromey.com>
2358
2359 * tui/tui-stack.h (struct tui_locator_window): Derive from
2360 tui_win_info.
2361 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2362 <can_box>: New method.
2363
2364 2020-07-01 Tom Tromey <tom@tromey.com>
2365
2366 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2367
2368 2020-07-01 Tom Tromey <tom@tromey.com>
2369
2370 * tui/tui-regs.c (tui_data_window::display_registers_from)
2371 (tui_data_window::display_registers_from)
2372 (tui_data_window::first_data_item_displayed)
2373 (tui_data_window::delete_data_content_windows): Update.
2374 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2375 Remove.
2376 (tui_data_window::check_register_values): Update.
2377 (tui_data_item_window::rerender): Add parameters. Update.
2378 (tui_data_item_window::refresh_window): Remove.
2379 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2380 virtual.
2381 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2382 tui_gen_win_info.
2383 <refresh_window, max_height, min_height>: Remove.
2384 <rerender>: Add parameters.
2385 <x, y, visible>: New members.
2386 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2387 <m_item_width>: New member.
2388
2389 2020-07-01 Tom Tromey <tom@tromey.com>
2390
2391 * tui/tui-regs.c (tui_data_window::show_register_group)
2392 (tui_data_window::check_register_values): Update.
2393 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2394 from item_no.
2395
2396 2020-07-01 Tom Tromey <tom@tromey.com>
2397
2398 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2399 useless "if".
2400
2401 2020-07-01 Tom Tromey <tom@tromey.com>
2402
2403 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2404 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2405
2406 2020-07-01 Tom Tromey <tom@tromey.com>
2407
2408 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2409 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2410 (struct tui_line_or_address): Move from tui-data.h.
2411 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2412 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2413 (tui_cmd_window, tui_source_window_base, tui_source_window)
2414 (tui_disasm_window): Don't declare.
2415 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2416 to tui-winsource.h.
2417 (SINGLE_KEY): Move to tui-stack.c.
2418
2419 2020-07-01 Tom Tromey <tom@tromey.com>
2420
2421 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2422 std::string.
2423 * tui/tui-regs.c (class tab_expansion_file): New.
2424 (tab_expansion_file::write): New method.
2425 (tui_register_format): Change return type. Use
2426 tab_expansion_file.
2427 (tui_get_register, tui_data_window::display_registers_from)
2428 (tui_data_item_window::rerender): Update.
2429 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2430 * tui/tui-io.c (tui_expand_tabs): Remove.
2431
2432 2020-07-01 Tom Tromey <tom@tromey.com>
2433
2434 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2435
2436 2020-07-01 Fangrui Song <maskray@google.com>
2437
2438 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2439
2440 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2441
2442 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2443 forms for DW_AT_associated and DW_AT_allocated attributes,
2444 which is already checked in function attr_to_dynamic_prop.
2445
2446 2020-06-30 Tom Tromey <tromey@adacore.com>
2447
2448 * dwarf2/read.c (quirk_rust_enum): Correctly call
2449 alloc_rust_variant for default-less enum.
2450
2451 2020-06-30 Tom Tromey <tromey@adacore.com>
2452
2453 PR build/26183:
2454 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2455 gdb::to_string.
2456
2457 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2458
2459 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2460 * gdbarch.h: Re-generate.
2461
2462 2020-06-28 Tom Tromey <tom@tromey.com>
2463
2464 * command.h (cmd_types): Remove.
2465 (cmd_type): Don't declare.
2466 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2467 typedef.
2468 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2469 * cli/cli-decode.c (cmd_type): Remove.
2470
2471 2020-06-27 Pedro Alves <palves@redhat.com>
2472
2473 * fork-child.c (prefork_hook): Adjust.
2474 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2475 Delete.
2476 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2477 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2478 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2479 Remove declarations.
2480 (struct inferior) <set_tty, tty>: New methods.
2481 (struct inferior) <terminal>: Rename to ...
2482 (struct inferior) <m_terminal>: ... this and make private.
2483 * main.c (captured_main_1): Adjust.
2484 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2485 (mi_cmd_inferior_tty_show): Adjust.
2486 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2487 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2488
2489 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2490
2491 * configure.ac: Add --enable-libctf: handle --disable-static
2492 properly.
2493 * acinclude.m4: sinclude ../config/enable.m4.
2494 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2495 (LIBCTF): Substitute in.
2496 (CTF_DEPS): New, likewise.
2497 (CLIBS): libctf needs symbols from libbfd: move earlier.
2498 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2499 flags.
2500 * ctfread.c: Surround in ENABLE_LIBCTF.
2501 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2502 * configure: Regenerate.
2503 * config.in: Likewise.
2504
2505 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2506
2507 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2508
2509 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2510
2511 * inferior.h (struct inferior) <terminal>: Change type to
2512 gdb::unique_xmalloc_ptr<char>.
2513 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2514 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2515 field, adjust to unique pointer.
2516 (get_inferior_io_terminal): Adjust to unique pointer.
2517
2518 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2519
2520 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2521 registers, not just the known core set of registers.
2522
2523 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2524
2525 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2526 fflags, frm, and fcsr registers.
2527 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2528 restore groups.
2529 (riscv_tdesc_unknown_reg): New function.
2530 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2531 tdesc_use_registers.
2532 * riscv-tdep.h (struct gdbarch_tdep): Add
2533 unknown_csrs_first_regnum, unknown_csrs_count,
2534 duplicate_fflags_regnum, duplicate_frm_regnum, and
2535 duplicate_fcsr_regnum fields.
2536
2537 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2538
2539 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2540 callback, use the callback (when not null) to help number unknown
2541 registers.
2542 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2543 (tdesc_use_registers): Add extra parameter to declaration.
2544
2545 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2546
2547 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2548 in the file.
2549 (class riscv_pending_register_alias): Likewise.
2550 (riscv_register_feature::register_info): Change 'required_p' field
2551 to 'required', and change its type. Add 'check' member function.
2552 (riscv_register_feature::register_info::check): Define new member
2553 function.
2554 (riscv_xreg_feature): Change initialisation of 'required' field.
2555 (riscv_freg_feature): Likewise.
2556 (riscv_virtual_feature): Likewise.
2557 (riscv_csr_feature): Likewise.
2558 (riscv_check_tdesc_feature): Take extra parameter, the csr
2559 tdesc_feature, rewrite the function to use the new
2560 riscv_register_feature::register_info::check function.
2561 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2562
2563 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2564
2565 * features/Makefile: Remove all references to the deleted files
2566 below.
2567 * features/riscv/32bit-csr.c: Deleted.
2568 * features/riscv/32bit-csr.xml: Deleted.
2569 * features/riscv/64bit-csr.c: Deleted.
2570 * features/riscv/64bit-csr.xml: Deleted.
2571 * features/riscv/rebuild-csr-xml.sh: Deleted.
2572
2573 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2574
2575 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2576 whitespace error for declaration of names member variable.
2577 (struct riscv_register_feature): Add new prefer_first_name member
2578 variable, and fix whitespace error in declaration of registers.
2579 (riscv_xreg_feature): Initialize prefer_first_name field.
2580 (riscv_freg_feature): Likewise.
2581 (riscv_virtual_feature): Likewise.
2582 (riscv_csr_feature): Likewise.
2583 (riscv_register_name): Expand on comments. Remove register name
2584 modifications for CSR and virtual registers.
2585
2586 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2587
2588 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2589 errors.
2590
2591 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2592
2593 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2594 riscv-opc.h.
2595 (class riscv_pending_register_alias): New class.
2596 (riscv_check_tdesc_feature): Take vector of pending aliases and
2597 populate it as appropriate.
2598 (riscv_setup_register_aliases): Delete.
2599 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2600 to riscv_check_tdesc_feature in all cases. Use the vector to
2601 create the register aliases.
2602
2603 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2604
2605 * sol2-tdep.c (sol2_static_transform_name): Remove.
2606 (sol2_init_abi): Don't register it.
2607 * gdbarch.sh (static_transform_name): Remove.
2608 * gdbarch.c, gdbarch.h: Regenerate.
2609
2610 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2611 gdbarch_static_transform_name.
2612 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2613 * stabsread.c (define_symbol) <'X'>: Remove.
2614 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2615 handling.
2616 <'V'>: Likewise.
2617 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2618 <'S'>: Remove call to gdbarch_static_transform_name.
2619
2620 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2621
2622 * procfs.c (procfs_pre_trace): New function.
2623 (procfs_target::create_inferior): Pass it to fork_inferior.
2624
2625 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2626
2627 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2628 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2629 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2630 sol2-tdep.o, sparc-sol2-tdep.o.
2631 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2632 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2633 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2634 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2635
2636 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2637
2638 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2639 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2640 Call sol2_init_abi.
2641 Remove calls to set_gdbarch_skip_solib_resolver,
2642 set_gdbarch_core_pid_to_str.
2643 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2644 (i386_sol2_static_transform_name): Remove.
2645 (i386_sol2_init_abi): Call sol2_init_abi.
2646 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2647 set_gdbarch_static_transform_name,
2648 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2649 Use sol2_sigtramp_p.
2650 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2651 (sol2_sigtramp_p): New function.
2652 (sol2_static_transform_name): New function.
2653 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2654 (sol2_init_abi): New function.
2655 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2656 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2657 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2658 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2659 (sparc_sol2_static_transform_name): Remove.
2660 (sparc32_sol2_init_abi): Call sol2_init_abi.
2661 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2662 set_gdbarch_static_transform_name,
2663 set_gdbarch_skip_solib_resolver,
2664 set_gdbarch_core_pid_to_str.
2665 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2666 (sparc_sol2_static_transform_name): Remove
2667 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2668 call sol2_sigtramp_p.
2669 (sparc64_sol2_init_abi): Call sol2_init_abi.
2670 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2671 set_gdbarch_static_transform_name,
2672 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2673
2674 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2675
2676 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2677 * exec.c (validate_exec_file): If from_tty, set both
2678 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2679 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2680 and from_tty, unconditionally ask a confirmation.
2681
2682 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2683
2684 * target-descriptions.c (tdesc_architecture_name): Protect against
2685 NULL pointer dereference.
2686 (maint_print_xml_tdesc_cmd): New function.
2687 (_initialize_target_descriptions): Register new 'maint print
2688 xml-tdesc' command and give it the filename completer.
2689 * NEWS: Mention new 'maint print xml-tdesc' command.
2690
2691 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2692
2693 * target-descriptions.c (class tdesc_compatible_info): New class.
2694 (struct target_desc): Change type of compatible vector.
2695 (tdesc_compatible_p): Update for change in type of
2696 target_desc::compatible.
2697 (tdesc_compatible_info_list): New function.
2698 (tdesc_compatible_info_arch_name): New function.
2699 (tdesc_add_compatible): Update for change in type of
2700 target_desc::compatible.
2701 (print_c_tdesc::visit_pre): Likewise.
2702
2703 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2704
2705 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2706 whitespace to underscore.
2707 (maint_print_c_tdesc_cmd): Use fake filename for target
2708 descriptions that came from the target.
2709 (_initialize_target_descriptions): Add filename command completion
2710 for 'maint print c-tdesc'.
2711
2712 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2713
2714 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2715 lines.
2716
2717 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2718
2719 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2720 lines.
2721 (dwarf2_find_location_expression): Likewise.
2722 (call_site_parameter_matches): Likewise.
2723 (dwarf2_compile_expr_to_ax): Likewise.
2724 (disassemble_dwarf_expression): Likewise.
2725 (loclist_describe_location): Likewise.
2726
2727 2020-06-23 Pedro Alves <palves@redhat.com>
2728
2729 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2730 progspace-and-thread.h. Include scoped-mock-context.h instead.
2731 (register_to_value_test): Use scoped_mock_context.
2732 * regcache.c: Include "scoped-mock-context.h".
2733 (cooked_read_test): Don't error out if a target is already pushed.
2734 Use scoped_mock_context. Adjust.
2735 * scoped-mock-context.h: New file.
2736
2737 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2738
2739 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2740 initializer.
2741 (ada_language::is_string_type_p): New member function.
2742 * c-lang.c (c_language_data): Delete la_is_string_type_p
2743 initializer.
2744 (cplus_language_data): Likewise.
2745 (asm_language_data): Likewise.
2746 (minimal_language_data): Likewise.
2747 * d-lang.c (d_language_data): Likewise.
2748 * f-lang.c (f_is_string_type_p): Delete function, implementation
2749 moved to f_language::is_string_type_p.
2750 (f_language_data): Delete la_is_string_type_p initializer.
2751 (f_language::is_string_type_p): New member function,
2752 implementation from f_is_string_type_p.
2753 * go-lang.c (go_is_string_type_p): Delete function, implementation
2754 moved to go_language::is_string_type_p.
2755 (go_language_data): Delete la_is_string_type_p initializer.
2756 (go_language::is_string_type_p): New member function,
2757 implementation from go_is_string_type_p.
2758 * language.c (language_defn::is_string_type_p): Define new member
2759 function.
2760 (default_is_string_type_p): Make static, add comment copied from
2761 header file.
2762 (unknown_language_data): Delete la_is_string_type_p initializer.
2763 (unknown_language::is_string_type_p): New member function.
2764 (auto_language_data): Delete la_is_string_type_p initializer.
2765 (auto_language::is_string_type_p): New member function.
2766 * language.h (language_data): Delete la_is_string_type_p field.
2767 (language_defn::is_string_type_p): Declare new function.
2768 (default_is_string_type_p): Delete desclaration, move comment to
2769 definition.
2770 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2771 moved to m2_language::is_string_type_p.
2772 (m2_language_data): Delete la_is_string_type_p initializer.
2773 (m2_language::is_string_type_p): New member function,
2774 implementation from m2_is_string_type_p.
2775 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2776 initializer.
2777 * opencl-lang.c (opencl_language_data): Likewise.
2778 * p-lang.c (pascal_is_string_type_p): Delete function,
2779 implementation moved to pascal_language::is_string_type_p.
2780 (pascal_language_data): Delete la_is_string_type_p initializer.
2781 (pascal_language::is_string_type_p): New member function,
2782 implementation from pascal_is_string_type_p.
2783 * rust-lang.c (rust_is_string_type_p): Delete function,
2784 implementation moved to rust_language::is_string_type_p.
2785 (rust_language_data): Delete la_is_string_type_p initializer.
2786 (rust_language::is_string_type_p): New member function,
2787 implementation from rust_is_string_type_p.
2788 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2789 is_string_type_p.
2790
2791 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2792
2793 * ada-lang.c (ada_language_data): Delete la_print_typedef
2794 initializer.
2795 (ada_language::print_typedef): New member function.
2796 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2797 (cplus_language_data): Likewise.
2798 (asm_language_data): Likewise.
2799 (minimal_language_data): Likewise.
2800 * d-lang.c (d_language_data): Likewise.
2801 * f-lang.c (f_language_data): Likewise.
2802 (f_language::print_typedef): New member function.
2803 * go-lang.c (go_language_data): Delete la_print_typedef
2804 initializer.
2805 * language.c (language_defn::print_typedef): Define member
2806 function.
2807 (unknown_language_data): Delete la_print_typedef initializer.
2808 (unknown_language::print_typedef): New member function.
2809 (auto_language_data): Delete la_print_typedef initializer.
2810 (auto_language::print_typedef): New member function.
2811 * language.h (language_data): Delete la_print_typedef field.
2812 (language_defn::print_typedef): Declare new member function.
2813 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2814 (default_print_typedef): Delete declaration.
2815 * m2-lang.c (m2_language_data): Delete la_print_typedef
2816 initializer.
2817 (m2_language::print_typedef): New member function.
2818 * objc-lang.c (objc_language_data): Delete la_print_typedef
2819 initializer.
2820 * opencl-lang.c (opencl_language_data): Likewise.
2821 * p-lang.c (pascal_language_data): Likewise.
2822 (pascal_language::print_typedef): New member function.
2823 * rust-lang.c (rust_print_typedef): Delete function,
2824 implementation moved to rust_language::print_typedef.
2825 (rust_language): Delete la_print_typedef initializer.
2826 (rust_language::print_typedef): New member function,
2827 implementation from rust_print_typedef.
2828 * typeprint.c (default_print_typedef): Delete.
2829
2830 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2831
2832 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2833 (ada_language::printstr): New member function.
2834 * c-lang.c (c_language_data): Delete la_printstr initializer.
2835 (cplus_language_data): Likewise.
2836 (asm_language_data): Likewise.
2837 (minimal_language_data): Likewise.
2838 * d-lang.c (d_language_data): Likewise.
2839 * f-lang.c (f_printstr): Rename to f_language::printstr.
2840 (f_language_data): Delete la_printstr initializer.
2841 (f_language::printstr): New member function, implementation from
2842 f_printstr.
2843 * go-lang.c (go_language_data): Delete la_printstr initializer.
2844 * language.c (language_defn::printstr): Define new member
2845 function.
2846 (unk_lang_printstr): Delete.
2847 (unknown_language_data): Delete la_printstr initializer.
2848 (unknown_language::printstr): New member function.
2849 (auto_language_data): Delete la_printstr initializer.
2850 (auto_language::printstr): New member function.
2851 * language.h (language_data): Delete la_printstr field.
2852 (language_defn::printstr): Declare new member function.
2853 (LA_PRINT_STRING): Update call to printstr.
2854 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2855 (m2_language_data): Delete la_printstr initializer.
2856 (m2_language::printstr): New member function, implementation from
2857 m2_printstr.
2858 * objc-lang.c (objc_language_data): Delete la_printstr
2859 initializer.
2860 * opencl-lang.c (opencl_language_data): Likewise.
2861 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2862 (pascal_language_data): Delete la_printstr initializer.
2863 (pascal_language::printstr): New member function, implementation
2864 from pascal_printstr.
2865 * p-lang.h (pascal_printstr): Delete declaration.
2866 * rust-lang.c (rust_printstr): Update header comment.
2867 (rust_language_data): Delete la_printstr initializer.
2868 (rust_language::printstr): New member function.
2869
2870 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2871
2872 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2873 (ada_language::printchar): New member function.
2874 * c-lang.c (c_language_data): Delete la_printchar initializer.
2875 (cplus_language_data): Likewise.
2876 (asm_language_data): Likewise.
2877 (minimal_language_data): Likewise.
2878 * d-lang.c (d_language_data): Likewise.
2879 * f-lang.c (f_printchar): Rename to f_language::printchar.
2880 (f_language_data): Delete la_printchar initializer.
2881 (f_language::printchar): New member function, implementation from
2882 f_printchar.
2883 * go-lang.c (go_language_data): Delete la_printchar initializer.
2884 * language.c (unk_lang_printchar): Delete.
2885 (language_defn::printchar): Define new member function.
2886 (unknown_language_data): Delete la_printchar initializer.
2887 (unknown_language::printchar): New member function.
2888 (auto_language_data): Delete la_printchar initializer.
2889 (auto_language::printchar): New member function.
2890 * language.h (language_data): Delete la_printchar field.
2891 (language_defn::printchar): Declare new member function.
2892 (LA_PRINT_CHAR): Update call to printchar.
2893 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2894 (m2_language::printchar): New member function.
2895 * objc-lang.c (objc_language_data): Delete la_printchar
2896 initializer.
2897 * opencl-lang.c (opencl_language_data): Likewise.
2898 * p-lang.c (pascal_language_data): Delete la_printchar
2899 initializer.
2900 (pascal_language::printchar): New member function.
2901 * rust-lang.c (rust_printchar): Rename to
2902 rust_language::printchar.
2903 (rust_language_data): Delete la_printchar initializer.
2904 (rust_language::printchar): New member function, implementation
2905 from rust_printchar.
2906
2907 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2908
2909 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2910 (ada_language_data): Delete la_emitchar initializer.
2911 (ada_language::emitchar): New member function, implementation from
2912 emit_char.
2913 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2914 (cplus_language_data): Likewise.
2915 (asm_language_data): Likewise.
2916 (minimal_language_data): Likewise.
2917 * d-lang.c (d_language_data): Likewise.
2918 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2919 (f_language_data): Delete la_emitchar initializer.
2920 (f_language::emitchar): New member function, implementation from
2921 f_emit_char.
2922 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2923 * language.c (unk_lang_emit_char): Delete.
2924 (language_defn::emitchar): New member function definition.
2925 (unknown_language_data): Delete la_emitchar initializer.
2926 (unknown_language::emitchar): New member function.
2927 (auto_language_data): Delete la_emitchar initializer.
2928 (auto_language::emitchar): New member function.
2929 * language.h (language_data): Delete la_emitchar field.
2930 (language_defn::emitchar): New member field declaration.
2931 (LA_EMIT_CHAR): Update call to emitchar.
2932 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2933 (m2_language_data): Delete la_emitchar initializer.
2934 (m2_language::emitchar): New member function, implementation from
2935 m2_emit_char.
2936 * objc-lang.c (objc_language_data): Delete la_emitchar
2937 initializer.
2938 * opencl-lang.c (opencl_language_data): Likewise.
2939 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2940 (pascal_language_data): Delete la_emitchar initializer.
2941 (pascal_language::emitchar): New member function, implementation
2942 from pascal_emit_char.
2943 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2944 (rust_language_data): Delete la_emitchar initializer.
2945 (rust_language::emitchar): New member function, implementation
2946 from rust_emitchar.
2947
2948 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2949
2950 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2951 (ada_language_data): Delete la_post_parser initializer.
2952 (ada_language::post_parser): New member function.
2953 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2954 (cplus_language_data): Likewise.
2955 (asm_language_data): Likewise.
2956 (minimal_language_data): Likewise.
2957 * d-lang.c (d_language_data): Likewise.
2958 * f-lang.c (f_language_data): Likewise.
2959 * go-lang.c (go_language_data): Likewise.
2960 * language.c (unknown_language_data): Likewise.
2961 (auto_language_data): Likewise.
2962 * language.h (language_data): Delete la_post_parser field.
2963 (language_defn::post_parser): New member function.
2964 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2965 * objc-lang.c (objc_language_data): Likewise.
2966 * opencl-lang.c (opencl_language_data): Likewise.
2967 * p-lang.c (pascal_language_data): Likewise.
2968 * parse.c (parse_exp_in_context): Update call to post_parser.
2969 (null_post_parser): Delete definition.
2970 * parser-defs.h (null_post_parser): Delete declaration.
2971 * rust-lang.c (rust_language_data): Delete la_post_parser
2972 initializer.
2973
2974 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2975
2976 * ada-lang.c (parse): Rename to ada_language::parser.
2977 (ada_language_data): Delete la_parser initializer.
2978 (ada_language::parser): New member function, implementation from
2979 parse.
2980 * c-lang.c (c_language_data): Delete la_parser initializer.
2981 (cplus_language_data): Likewise.
2982 (asm_language_data): Likewise.
2983 (minimal_language_data): Likewise.
2984 * d-lang.c (d_language_data): Likewise.
2985 (d_language::parser): New member function.
2986 * f-lang.c (f_language_data): Delete la_parser initializer.
2987 (f_language::parser): New member function.
2988 * go-lang.c (go_language_data): Delete la_parser initializer.
2989 (go_language::parser): New member function.
2990 * language.c (unk_lang_parser): Delete.
2991 (language_defn::parser): Define new member function.
2992 (unknown_language_data): Delete la_parser initializer.
2993 (unknown_language::parser): New member function.
2994 (auto_language_data): Delete la_parser initializer.
2995 (auto_language::parser): New member function.
2996 * language.h (language_data): Delete la_parser field.
2997 (language_defn::parser): Declare new member function.
2998 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2999 (m2_language::parser): New member function.
3000 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3001 * opencl-lang.c (opencl_language_data): Likewise.
3002 * p-lang.c (pascal_language_data): Likewise.
3003 (pascal_language::parser): New member function.
3004 * parse.c (parse_exp_in_context): Update call to parser.
3005 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3006 (rust_language::parser): New member function.
3007
3008 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3009
3010 * top.c (print_gdb_configuration): Print --with-python-libdir
3011 configuration value.
3012
3013 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3014
3015 * NEWS: Mention change to the alias command.
3016
3017 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3018
3019 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3020 (alias_command_completer)
3021 (make_alias_options_def_group): New functions.
3022 (alias_opts, alias_option_defs): New struct and array.
3023 (alias_usage_error): Update usage.
3024 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3025 Use option framework.
3026 (_initialize_cli_cmds): Update alias command help.
3027 Update aliases command help.
3028 (show_user):
3029 Add NULL for new default_args lookup_cmd argument.
3030 (valid_command_p): Rename to validate_aliased_command.
3031 Add NULL for new default_args lookup_cmd argument. Verify that the
3032 aliased_command has no default args.
3033 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3034 (lookup_cmd_1, lookup_cmd): New argument default_args.
3035 (add_alias_cmd):
3036 Add NULL for new default_args lookup_cmd argument.
3037 (print_help_for_command): Show default args under the layout
3038 alias some_alias = some_aliased_cmd some_alias_default_arg.
3039 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3040 xfree default_args in destructor.
3041 * cli/cli-script.c (process_next_line, do_define_command):
3042 Add NULL for new default_args lookup_cmd argument.
3043 * command.h: Declare new default_args argument in lookup_cmd
3044 and lookup_cmd_1.
3045 * completer.c (complete_line_internal_1):
3046 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3047 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3048 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3049 Likewise.
3050 * infcmd.c (_initialize_infcmd): Likewise.
3051 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3052 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3053 * python/py-param.c (add_setshow_generic): Likewise.
3054 * remote.c (_initialize_remote): Likewise.
3055 * top.c (execute_command): Prepend default_args if command has some.
3056 (set_verbose):
3057 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3058 * tracepoint.c (validate_actionline, encode_actions_1):
3059 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3060
3061 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3062
3063 * jit.c (jit_read_descriptor): Use bool as the return type.
3064 (jit_breakpoint_re_set_internal): Use bool as the return type.
3065 Invert the return value logic; return true if the jit breakpoint
3066 has been successfully initialized.
3067 (jit_inferior_init): Update the call to
3068 jit_breakpoint_re_set_internal.
3069
3070 2020-06-22 Pedro Alves <palves@redhat.com>
3071
3072 PR gdb/25939
3073 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3074 Use the current inferior instead. Don't return
3075 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3076 wait again.
3077 * sol-thread.c (sol_thread_target::wait): Don't reference
3078 inferior_ptid.
3079 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3080 (sol_update_thread_list_callback): Use the current inferior's pid
3081 instead of inferior_ptid.
3082
3083 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3084
3085 * procfs.c: Cleanup many comments.
3086
3087 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3088 (AFTER_WATCHFLAG): Replace by value.
3089
3090 (MAIN_PROC_NAME_FORMAT): Inline ...
3091 (create_procinfo): ... here.
3092
3093 (procfs_debug_inferior): Remove SYS_exec handling.
3094 (syscall_is_exec): Likewise.
3095 (procfs_set_exec_trap): Likewise.
3096
3097 (syscall_is_lwp_exit): Inline in callers.
3098 (syscall_is_exit): Likewise.
3099 (syscall_is_exec): Likewise.
3100 (syscall_is_lwp_create): Likewise.
3101
3102 (invalidate_cache): Remove #if 0 code.
3103
3104 (make_signal_thread_runnable): Remove.
3105 (procfs_target::resume): Remove #if 0 code.
3106
3107 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3108
3109 PR gdb/25939
3110 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3111 call ...
3112 (procfs_target::create_inferior): ... here.
3113
3114 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3115
3116 * exec.c (validate_exec_file): Ensure the build-id is up to
3117 date by calling reopen_exec_file (that checks file timestamp
3118 to decide to re-read the file).
3119
3120 2020-06-18 Pedro Alves <palves@redhat.com>
3121
3122 PR gdb/25412
3123 * gdbthread.h (delete_thread, delete_thread_silent)
3124 (find_thread_ptid): Update comments.
3125 * thread.c (current_thread_): New global.
3126 (is_current_thread): Move higher, and reimplement.
3127 (inferior_thread): Reimplement.
3128 (set_thread_exited): Use bool. Add assertions.
3129 (add_thread_silent): Simplify thread-reuse handling by always
3130 calling delete_thread.
3131 (delete_thread): Remove intro comment.
3132 (find_thread_ptid): Skip exited threads.
3133 (switch_to_thread_no_regs): Write to current_thread_.
3134 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3135 INFERIOR_PTID. Clear current_thread_.
3136
3137 2020-06-18 Pedro Alves <palves@redhat.com>
3138
3139 * aix-thread.c (pd_update): Use switch_to_thread.
3140
3141 2020-06-18 Pedro Alves <palves@redhat.com>
3142
3143 * ravenscar-thread.c (ravenscar_thread_target): Update.
3144 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3145 (ravenscar_thread_target::add_active_thread): ... this. Don't
3146 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3147 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3148
3149 2020-06-18 Pedro Alves <palves@redhat.com>
3150
3151 * nat/windows-nat.c (current_windows_thread): Remove.
3152 * nat/windows-nat.h (current_windows_thread): Remove.
3153 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3154 Adjust.
3155 (display_selectors): Adjust to fetch the current
3156 windows_thread_info based on inferior_ptid.
3157 (fake_create_process): No longer write to current_windows_thread.
3158 (windows_nat_target::get_windows_debug_event):
3159 Don't set inferior_ptid or current_windows_thread.
3160 (windows_nat_target::wait): Adjust to not rely on
3161 current_windows_thread.
3162 (do_initial_windows_stuff): Now a method of windows_nat_target.
3163 Switch to the last_ptid thread.
3164 (windows_nat_target::attach): Adjust.
3165 (windows_nat_target::detach): Use switch_to_no_thread instead of
3166 writing to inferior_ptid directly.
3167 (windows_nat_target::create_inferior): Adjust.
3168
3169 2020-06-18 Pedro Alves <palves@redhat.com>
3170
3171 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3172
3173 2020-06-18 Pedro Alves <palves@redhat.com>
3174
3175 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3176 after creating it, instead of writing to inferior_ptid. Don't
3177 write to inferior_ptid.
3178
3179 2020-06-18 Pedro Alves <palves@redhat.com>
3180
3181 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3182
3183 2020-06-18 Pedro Alves <palves@redhat.com>
3184
3185 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3186 it, instead of writing to inferior_ptid.
3187
3188 2020-06-18 Pedro Alves <palves@redhat.com>
3189
3190 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3191 to inferior_ptid.
3192
3193 2020-06-18 Pedro Alves <palves@redhat.com>
3194
3195 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3196 instead of writing to inferior_ptid directly.
3197
3198 2020-06-18 Pedro Alves <palves@redhat.com>
3199
3200 * corelow.c (core_target::close): Use switch_to_no_thread instead
3201 of writing to inferior_ptid directly.
3202 (add_to_thread_list, core_target_open): Use switch_to_thread
3203 instead of writing to inferior_ptid directly.
3204
3205 2020-06-18 Pedro Alves <palves@redhat.com>
3206
3207 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3208 inferior_ptid.
3209 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3210 inferior_ptid.
3211 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3212 inferior_ptid directly.
3213 (darwin_nat_target::init_thread_list): Switch to thread, instead
3214 of writing to inferior_ptid.
3215 (darwin_nat_target::attach): Don't write to inferior_ptid.
3216 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3217
3218 2020-06-18 Pedro Alves <palves@redhat.com>
3219
3220 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3221 thread.
3222 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3223 Instead use switch_to_thread.
3224 (gnu_nat_target::detach): Use switch_to_no_thread
3225 instead of writing to inferior_ptid directly. Used passed-in
3226 inferior instead of looking up the inferior by pid.
3227
3228 2020-06-18 Pedro Alves <palves@redhat.com>
3229
3230 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3231 inferior_ptid.
3232
3233 2020-06-18 Pedro Alves <palves@redhat.com>
3234
3235 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3236 inferior_ptid.
3237 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3238 thread.
3239 (nto_procfs_target::detach): Avoid referencing
3240 inferior_ptid. Use switch_to_no_thread instead of writing to
3241 inferior_ptid directly.
3242 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3243 instead of writing to inferior_ptid directly.
3244 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3245 to thread.
3246
3247 2020-06-18 Pedro Alves <palves@redhat.com>
3248
3249 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3250 after creating it, instead of writing to inferior_ptid.
3251 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3252 to inferior_ptid directly.
3253 (gdbsim_target::wait): Don't write to inferior_ptid.
3254
3255 2020-06-18 Pedro Alves <palves@redhat.com>
3256
3257 * remote.c (remote_target::remote_notice_new_inferior): Use
3258 switch_to_thread instead of writing to inferior_ptid directly.
3259 (remote_target::add_current_inferior_and_thread): Use
3260 switch_to_no_thread instead of writing to inferior_ptid directly.
3261 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3262 and switch_to_thread instead of using set_current_inferior or
3263 writing to inferior_ptid directly.
3264
3265 2020-06-18 Pedro Alves <palves@redhat.com>
3266
3267 * tracectf.c (ctf_target_open): Switch to added thread instead of
3268 writing to inferior_ptid directly.
3269 (ctf_target::close): Use switch_to_no_thread instead of writing to
3270 inferior_ptid directly.
3271
3272 2020-06-18 Pedro Alves <palves@redhat.com>
3273
3274 * tracefile-tfile.c (tfile_target_open): Don't write to
3275 inferior_ptid directly, instead switch to added thread.
3276 (tfile_target::close): Use switch_to_no_thread instead of writing
3277 to inferior_ptid directly.
3278
3279 2020-06-18 Pedro Alves <palves@redhat.com>
3280
3281 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3282 (procfs_target::detach): Use switch_to_no_thread
3283 instead of writing to inferior_ptid directly.
3284 (do_attach): Change return type to void. Switch to the added
3285 thread.
3286 (procfs_target::create_inferior): Switch to the added thread.
3287 (procfs_do_thread_registers): Don't write to inferior_ptid.
3288
3289 2020-06-18 Pedro Alves <palves@redhat.com>
3290
3291 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3292 of writing to inferior_ptid.
3293 (scoped_restore_exited_inferior): Delete.
3294 (handle_vfork_child_exec_or_exit): Simplify using
3295 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3296 instead of writing to inferior_ptid.
3297 (THREAD_STOPPED_BY): Delete.
3298 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3299 (thread_stopped_by_hw_breakpoint): Delete.
3300 (save_waitstatus): Use
3301 scoped_restore_current_thread+switch_to_thread, and call
3302 target_stopped_by_watchpoint instead of
3303 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3304 instead of thread_stopped_by_sw_breakpoint, and
3305 target_stopped_by_hw_breakpoint instead of
3306 thread_stopped_by_hw_breakpoint.
3307 (handle_inferior_event)
3308 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3309 inferior_ptid directly, nor
3310 set_current_inferior/set_current_program_space. Use
3311 switch_to_thread / switch_to_inferior_no_thread instead.
3312
3313 2020-06-18 Pedro Alves <palves@redhat.com>
3314
3315 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3316 instead of writing to inferior_ptid.
3317
3318 2020-06-18 Pedro Alves <palves@redhat.com>
3319
3320 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3321 added thread.
3322 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3323 to the added thread.
3324 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3325 instead of writing to inferior_ptid.
3326
3327 2020-06-18 Pedro Alves <palves@redhat.com>
3328
3329 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3330 (register_to_value_test): Mock a program_space too. Heap-allocate
3331 the address space. Don't write to inferior_ptid. Use
3332 switch_to_thread instead.
3333
3334 2020-06-18 Pedro Alves <palves@redhat.com>
3335
3336 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3337 Delete.
3338 (find_signalled_thread()): New, factored out from
3339 linux_make_corefile_notes and adjusted to handle exited threads.
3340 (linux_make_corefile_notes): Adjust to use the new
3341 find_signalled_thread.
3342
3343 2020-06-18 Pedro Alves <palves@redhat.com>
3344
3345 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3346 of saving/restoring inferior_ptid.
3347
3348 2020-06-17 Tom Tromey <tom@tromey.com>
3349
3350 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3351 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3352 declare.
3353 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3354
3355 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3356
3357 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3358 of partial symtabs.
3359
3360 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3361
3362 * regformats/reg-arm.dat: Remove.
3363 * regformats/reg-bfin.dat: Remove.
3364 * regformats/reg-cris.dat: Remove.
3365 * regformats/reg-crisv32.dat: Remove.
3366 * regformats/reg-m32r.dat: Remove.
3367 * regformats/reg-tilegx.dat: Remove.
3368 * regformats/reg-tilegx32.dat: Remove.
3369
3370 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3371
3372 * features/Makefile (WHICH): Remove arm files.
3373 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3374 * regformats/arm/arm-with-neon.dat: Remove.
3375 * regformats/arm/arm-with-vfpv2.dat: Remove.
3376 * regformats/arm/arm-with-vfpv3.dat: Remove.
3377
3378 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3379
3380 * features/Makefile (XMLTOC): Remove rx.xml.
3381
3382 2020-06-17 Pedro Alves <palves@redhat.com>
3383
3384 * gdbthread.h (thread_control_state) <trap_expected> Update
3385 comments.
3386
3387 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3388
3389 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3390 ada_language::lookup_symbol_nonlocal.
3391 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3392 (ada_language::lookup_symbol_nonlocal): New member function,
3393 implementation from ada_lookup_symbol_nonlocal.
3394 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3395 initializer.
3396 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3397 initializer.
3398 (cplus_language::lookup_symbol_nonlocal): New member function.
3399 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3400 (minimal_language_data) Likewise.
3401 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3402 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3403 initializer.
3404 (d_language::lookup_symbol_nonlocal): New member function.
3405 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3406 initializer.
3407 (f_language::lookup_symbol_nonlocal): New member function.
3408 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3409 initializer.
3410 * language.c (unknown_language_data): Likewise.
3411 (auto_language_data): Likewise.
3412 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3413 field.
3414 (language_defn::lookup_symbol_nonlocal): New member function.
3415 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3416 initializer.
3417 * objc-lang.c (objc_language_data): Likewise.
3418 * opencl-lang.c (opencl_language_data): Likewise.
3419 * p-lang.c (pascal_language_data): Likewise.
3420 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3421 rust_language::lookup_symbol_nonlocal.
3422 (rust_language_data): Delete la_lookup_symbol_nonlocal
3423 initializer.
3424 (rust_language::lookup_symbol_nonlocal): New member function,
3425 implementation from rust_lookup_symbol_nonlocal.
3426 * symtab.c (lookup_symbol_aux): Update call to
3427 lookup_symbol_nonlocal.
3428 (basic_lookup_symbol_nonlocal): Rename to...
3429 (language_defn::lookup_symbol_nonlocal): ...this, and update
3430 header comment. Remove language_defn parameter, and replace with
3431 uses of `this'.
3432 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3433
3434 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3435
3436 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3437 initializer.
3438 (ada_language::value_print_inner): New member function.
3439 * c-lang.c (c_language_data): Delete la_value_print_inner
3440 initializer.
3441 (cplus_language_data): Likewise.
3442 (asm_language_data): Likewise.
3443 (minimal_language_data): Likewise.
3444 * d-lang.c (d_language_data): Likewise.
3445 (d_language::value_print_inner): New member function.
3446 * f-lang.c (f_language_data): Delete la_value_print_inner
3447 initializer.
3448 (f_language::value_print_inner): New member function.
3449 * f-lang.h (f_value_print_innner): Rename to...
3450 (f_value_print_inner): ...this (note spelling of 'inner').
3451 * f-valprint.c (f_value_print_innner): Rename to...
3452 (f_value_print_inner): ...this (note spelling of 'inner').
3453 * go-lang.c (go_language_data): Delete la_value_print_inner
3454 initializer.
3455 (go_language::value_print_inner): New member function.
3456 * language.c (language_defn::value_print_inner): Define new member
3457 function.
3458 (unk_lang_value_print_inner): Delete.
3459 (unknown_language_data): Delete la_value_print_inner initializer.
3460 (unknown_language::value_print_inner): New member function.
3461 (auto_language_data): Delete la_value_print_inner initializer.
3462 (auto_language::value_print_inner): New member function.
3463 * language.h (language_data): Delete la_value_print_inner field.
3464 (language_defn::value_print_inner): Delcare new member function.
3465 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3466 initializer.
3467 (m2_language::value_print_inner): New member function.
3468 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3469 initializer.
3470 * opencl-lang.c (opencl_language_data): Likewise.
3471 * p-lang.c (pascal_language_data): Likewise.
3472 (pascal_language::value_print_inner): New member function.
3473 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3474 initializer.
3475 (rust_language::value_print_inner): New member function.
3476 * valprint.c (do_val_print): Update call to value_print_inner.
3477
3478 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3479
3480 * ada-lang.c (ada_language_data): Delete la_value_print
3481 initializer.
3482 (ada_language::value_print): New member function.
3483 * c-lang.c (c_language_data): Delete la_value_print initializer.
3484 (cplus_language_data): Likewise.
3485 (asm_language_data): Likewise.
3486 (minimal_language_data): Likewise.
3487 * d-lang.c (d_language_data): Likewise.
3488 * f-lang.c (f_language_data): Likewise.
3489 * go-lang.c (go_language_data): Likewise.
3490 * language.c (unk_lang_value_print): Delete.
3491 (language_defn::value_print): Define new member function.
3492 (unknown_language_data): Delete la_value_print initializer.
3493 (unknown_language::value_print): New member function.
3494 (auto_language_data): Delete la_value_print initializer.
3495 (auto_language::value_print): New member function.
3496 * language.h (language_data): Delete la_value_print field.
3497 (language_defn::value_print): Declare new member function.
3498 (LA_VALUE_PRINT): Update call to value_print.
3499 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3500 * objc-lang.c (objc_language_data): Likewise.
3501 * opencl-lang.c (opencl_language_data): Likewise.
3502 * p-lang.c (pascal_language_data): Likewise.
3503 (pascal_language::value_print): New member function.
3504 * rust-lang.c (rust_language_data): Delete la_value_print
3505 initializer.
3506
3507 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3508
3509 * ada-lang.c (ada_watch_location_expression): Rename to
3510 ada_language::watch_location_expression.
3511 (ada_language_data): Delete la_watch_location_expression
3512 initializer.
3513 (ada_language::watch_location_expression): New member function,
3514 implementation from ada_watch_location_expression.
3515 * breakpoint.c (watch_command_1): Update call to
3516 watch_location_expression.
3517 * c-lang.c (c_watch_location_expression): Rename to
3518 language_defn::watch_location_expression.
3519 (c_language_data): Delete la_watch_location_expression
3520 initializer.
3521 (cplus_language_data): Likewise.
3522 (asm_language_data): Likewise.
3523 (minimal_language_data): Likewise.
3524 * c-lang.h (c_watch_location_expression): Delete declaration.
3525 * d-lang.c (d_language_data): Delete la_watch_location_expression
3526 initializer.
3527 * f-lang.c (f_language_data): Likewise.
3528 * go-lang.c (go_language_data): Likewise.
3529 * language.c (language_defn::watch_location_expression): Member
3530 function implementation from c_watch_location_expression.
3531 (unknown_language_data): Delete la_watch_location_expression
3532 initializer.
3533 (auto_language_data): Likewise.
3534 * language.h (language_data): Delete la_watch_location_expression
3535 field.
3536 (language_defn::watch_location_expression): Declare new member
3537 function.
3538 * m2-lang.c (m2_language_data): Delete
3539 la_watch_location_expression initializer.
3540 * objc-lang.c (objc_language_data): Likewise.
3541 * opencl-lang.c (opencl_language_data): Likewise.
3542 * p-lang.c (pascal_language_data): Likewise.
3543 * rust-lang.c (rust_watch_location_expression): Rename to
3544 rust_language::watch_location_expression.
3545 (rust_language_data): Delete la_watch_location_expression
3546 initializer.
3547 (rust_language::watch_location_expression): New member function,
3548 implementation from rust_watch_location_expression.
3549
3550 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3551
3552 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3553 ada_language::collect_symbol_completion_matches.
3554 (ada_language_data): Delete la_collect_symbol_completion_matches
3555 initializer.
3556 (ada_language::collect_symbol_completion_matches): New member
3557 function, implementation from
3558 ada_collect_symbol_completion_matches.
3559 * c-lang.c (c_language_data): Delete
3560 la_collect_symbol_completion_matches initializer.
3561 (cplus_language_data): Likewise.
3562 (asm_language_data): Likewise.
3563 (minimal_language_data): Likewise.
3564 * d-lang.c (d_language_data): Likewise.
3565 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3566 f_language::collect_symbol_completion_matches.
3567 (f_language_data): Delete la_collect_symbol_completion_matches
3568 initializer.
3569 (f_language::collect_symbol_completion_matches) New member
3570 function, implementation from f_collect_symbol_completion_matches.
3571 * go-lang.c (go_language_data): Delete
3572 la_collect_symbol_completion_matches initializer.
3573 * language.c (unknown_language_data): Likewise.
3574 (auto_language_data): Likewise.
3575 * language.h (language_data): Delete
3576 la_collect_symbol_completion_matches field.
3577 (language_defn::collect_symbol_completion_matches): New member
3578 function.
3579 * m2-lang.c (m2_language_data): Delete
3580 la_collect_symbol_completion_matches initializer.
3581 * objc-lang.c (objc_language_data): Likewise.
3582 * opencl-lang.c (opencl_language_data): Likewise.
3583 * p-lang.c (pascal_language_data): Likewise.
3584 * rust-lang.c (rust_language_data): Likewise.
3585 * symtab.c (default_collect_symbol_completion_matches): Delete.
3586 (collect_symbol_completion_matches): Update call to
3587 collect_symbol_completion_matches.
3588 (collect_symbol_completion_matches_type): Likewise.
3589 * symtab.h (default_collect_symbol_completion_matches): Delete
3590 declaration.
3591
3592 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3593
3594 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3595 (ada_language_data): Delete la_word_break_characters initializer.
3596 (ada_language::word_break_characters): New member function.
3597 * c-lang.c (c_language_data): Delete la_word_break_characters
3598 initializer.
3599 (cplus_language_data): Likewise.
3600 (asm_language_data): Likewise.
3601 (minimal_language_data): Likewise.
3602 * completer.c: Update global comment.
3603 (advance_to_expression_complete_word_point): Update call to
3604 word_break_characters.
3605 (complete_files_symbols): Likewise.
3606 (complete_line_internal_1): Likewise.
3607 (default_completer_handle_brkchars): Likewise.
3608 (skip_quoted_chars): Likewise.
3609 * d-lang.c (d_language_data): Delete la_word_break_characters
3610 initializer.
3611 * f-lang.c (f_word_break_characters): Delete.
3612 (f_language_data): Delete la_word_break_characters initializer.
3613 (f_language::word_break_characters): New member function.
3614 * go-lang.c (go_language_data): Delete la_word_break_characters
3615 initializer.
3616 * language.c (unknown_language_data): Likewise.
3617 (auto_language_data): Likewise.
3618 * language.h (default_word_break_characters): Move declaration to
3619 earlier in the file.
3620 (language_data): Delete la_word_break_characters field.
3621 (language_defn::word_break_characters): New member function.
3622 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3623 initializer.
3624 * objc-lang.c (objc_language_data): Likewise.
3625 * opencl-lang.c (opencl_language_data): Likewise.
3626 * p-lang.c (pascal_language_data): Likewise.
3627 * rust-lang.c (rust_language_data): Likewise.
3628
3629 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3630
3631 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3632 (ada_language_data): Delete la_get_symbol_name_matcher
3633 initializer.
3634 (language_defn::get_symbol_name_matcher_inner): New member
3635 function.
3636 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3637 initializer.
3638 (cplus_language_data): Likewise.
3639 (cplus_language::get_symbol_name_matcher_inner): New member
3640 function.
3641 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3642 (minimal_language_data): Likewise.
3643 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3644 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3645 initializer.
3646 * dictionary.c (iter_match_first_hashed): Update call to
3647 get_symbol_name_matcher.
3648 (iter_match_next_hashed): Likewise.
3649 (iter_match_next_linear): Likewise.
3650 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3651 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3652 initializer.
3653 (f_language::get_symbol_name_matcher_inner): New member function.
3654 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3655 initializer.
3656 * language.c (default_symbol_name_matcher): Update header comment,
3657 make static.
3658 (language_defn::get_symbol_name_matcher): New definition.
3659 (language_defn::get_symbol_name_matcher_inner): Likewise.
3660 (get_symbol_name_matcher): Delete.
3661 (unknown_language_data): Delete la_get_symbol_name_matcher
3662 initializer.
3663 (auto_language_data): Likewise.
3664 * language.h (language_data): Delete la_get_symbol_name_matcher
3665 field.
3666 (language_defn::get_symbol_name_matcher): New member function.
3667 (language_defn::get_symbol_name_matcher_inner): Likewise.
3668 (default_symbol_name_matcher): Delete declaration.
3669 * linespec.c (find_methods): Update call to
3670 get_symbol_name_matcher.
3671 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3672 initializer.
3673 * minsyms.c (lookup_minimal_symbol): Update call to
3674 get_symbol_name_matcher.
3675 (iterate_over_minimal_symbols): Likewise.
3676 * objc-lang.c (objc_language_data): Delete
3677 la_get_symbol_name_matcher initializer.
3678 * opencl-lang.c (opencl_language_data): Likewise.
3679 * p-lang.c (pascal_language_data): Likewise.
3680 * psymtab.c (psymbol_name_matches): Update call to
3681 get_symbol_name_matcher.
3682 * rust-lang.c (rust_language_data): Delete
3683 la_get_symbol_name_matcher initializer.
3684 * symtab.c (symbol_matches_search_name): Update call to
3685 get_symbol_name_matcher.
3686 (compare_symbol_name): Likewise.
3687
3688 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3689
3690 * ada-lang.c (ada_language_data): Delete la_compute_program
3691 initializer.
3692 * c-lang.c (c_language_data): Likewise.
3693 (c_language::compute_program): New member function.
3694 (cplus_language_data): Delete la_compute_program initializer.
3695 (cplus_language::compute_program): New member function.
3696 (asm_language_data): Delete la_compute_program initializer.
3697 (minimal_language_data): Likewise.
3698 * c-lang.h (c_compute_program): Update comment.
3699 (cplus_compute_program): Likewise.
3700 * compile/compile-c-support.c (c_compute_program): Likewise.
3701 (cplus_compute_program): Likewise.
3702 * compile/compile.c (compile_to_object): Update call to
3703 la_compute_program.
3704 * d-lang.c (d_language_data): Delete la_compute_program
3705 initializer.
3706 * f-lang.c (f_language_data): Likewise.
3707 * go-lang.c (go_language_data): Likewise.
3708 * language.c (unknown_language_data): Likewise.
3709 (auto_language_data): Likewise.
3710 * language.h (language_data): Delete la_compute_program field.
3711 (language_defn::compute_program): New member function.
3712 * m2-lang.c (m2_language_data): Delete la_compute_program
3713 initializer.
3714 * objc-lang.c (objc_language_data): Likewise.
3715 * opencl-lang.c (opencl_language_data): Likewise.
3716 * p-lang.c (pascal_language_data): Likewise.
3717 * rust-lang.c (rust_language_data): Likewise.
3718
3719 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3720
3721 * ada-lang.c (ada_language_data) Delete
3722 la_class_name_from_physname initializer.
3723 * c-lang.c (c_language_data): Likewise.
3724 (cplus_language_data): Likewise.
3725 (cplus_language::class_name_from_physname): New member function.
3726 (asm_language_data): Delete la_class_name_from_physname
3727 initializer.
3728 (minimal_language_data): Likewise.
3729 * d-lang.c (d_language_data): Likewise.
3730 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3731 method on language_defn class.
3732 (guess_full_die_structure_name): Likewise.
3733 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3734 initializer.
3735 * go-lang.c (go_language_data): Likewise.
3736 * language.c (language_class_name_from_physname): Delete.
3737 (unk_lang_class_name): Delete.
3738 (unknown_language_data): Delete la_class_name_from_physname
3739 initializer.
3740 (auto_language_data): Likewise.
3741 * language.h (language_data): Delete la_class_name_from_physname
3742 field.
3743 (language_defn::class_name_from_physname): New function.
3744 (language_class_name_from_physname): Delete declaration.
3745 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3746 initializer.
3747 * objc-lang.c (objc_language_data): Likewise.
3748 * opencl-lang.c (opencl_language_data): Likewise.
3749 * p-lang.c (pascal_language_data): Likewise.
3750 * rust-lang.c (rust_language_data): Likewise.
3751
3752 2020-06-16 Tom Tromey <tom@tromey.com>
3753
3754 * tui/tui-data.h (STATUS_NAME): New macro.
3755 * tui/tui-layout.c (tui_remove_some_windows)
3756 (initialize_known_windows, tui_register_window)
3757 (tui_layout_split::remove_windows, initialize_layouts)
3758 (tui_new_layout_command): Don't use hard-coded window names.
3759
3760 2020-06-16 Tom Tromey <tom@tromey.com>
3761
3762 PR tui/25348:
3763 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3764 tui_initialize_readline. Only run once. Call rl_initialize.
3765 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3766 tui_initialize_readline.
3767 * tui/tui-io.c (tui_setup_io): Call
3768 tui_ensure_readline_initialized.
3769 * tui/tui-interp.c (tui_interp::init): Update.
3770
3771 2020-06-16 Tom Tromey <tom@tromey.com>
3772
3773 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3774 Also preserve the status window.
3775
3776 2020-06-16 Tom Tromey <tom@tromey.com>
3777
3778 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3779 where m_window==nullptr.
3780
3781 2020-06-15 Tom Tromey <tromey@adacore.com>
3782
3783 * windows-nat.c (windows_nat::handle_output_debug_string):
3784 Update.
3785 (windows_nat::handle_ms_vc_exception): Update.
3786 * target.h (target_read_string): Change API.
3787 * target.c (target_read_string): Change API.
3788 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3789 Update.
3790 * solib-frv.c (frv_current_sos): Update.
3791 * solib-dsbt.c (dsbt_current_sos): Update.
3792 * solib-darwin.c (darwin_current_sos): Update.
3793 * linux-thread-db.c (inferior_has_bug): Update.
3794 * expprint.c (print_subexp_standard): Update.
3795 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3796 (ada_exception_message_1): Update.
3797
3798 2020-06-15 Tom Tromey <tromey@adacore.com>
3799
3800 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3801
3802 2020-06-15 Tom Tromey <tromey@adacore.com>
3803
3804 * valprint.c (read_string): Update comment.
3805 * target.c (MIN): Remove.
3806 (target_read_string): Rewrite.
3807
3808 2020-06-15 Tom Tromey <tromey@adacore.com>
3809
3810 * corefile.c (read_memory_string): Remove.
3811 * ada-valprint.c (ada_value_print_ptr): Update.
3812 * ada-lang.h (ada_tag_name): Change return type.
3813 * ada-lang.c (type_from_tag): Update.
3814 (ada_tag_name_from_tsd): Change return type. Use
3815 target_read_string.
3816 (ada_tag_name): Likewise.
3817 * gdbcore.h (read_memory_string): Don't declare.
3818
3819 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3820
3821 * symtab.c (rbreak_command): Ignore Windows drive colon.
3822
3823 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3824
3825 * NEWS: Mention removed GDBserver host support.
3826
3827 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3828
3829 * features/riscv/rebuild-csr-xml.sh: Updated.
3830
3831 2020-06-11 Tom Tromey <tom@tromey.com>
3832
3833 PR gdb/18318:
3834 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3835
3836 2020-06-09 Jonny Grant <jg@jguk.org>
3837 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3838
3839 * main.c (captured_main_1): Don't print new line after help.
3840 (print_gdb_help): add mailing list and IRC channel information
3841 to --help. Add new lines between items in the footer. Remove
3842 quotes around bug url.
3843
3844 2020-06-11 Keith Seitz <keiths@redhat.com>
3845
3846 PR gdb/21356
3847 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3848 Resolve typedefs for type length calculations.
3849
3850 2020-06-10 Tom de Vries <tdevries@suse.de>
3851
3852 PR ada/24713
3853 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3854 (write_psymbols): Enable .gdb_index for ada.
3855 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3856 ada.
3857
3858 2020-06-10 Tom de Vries <tdevries@suse.de>
3859
3860 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3861 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3862 namei" instead of "const char *name" argument.
3863 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3864 dw2_symtab_iter_init.
3865
3866 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3867
3868 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3869 to use type::field and field::type instead.
3870
3871 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3872
3873 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3874 to use field::type instead.
3875
3876 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3877
3878 * gdbtypes.h (struct field) <type, set_type>: New methods.
3879 Rename `type` field to...
3880 <m_type>: ... this. Change references throughout to use type or
3881 set_type methods.
3882 (FIELD_TYPE): Use field::type. Change call sites that modify
3883 the field's type to use field::set_type instead.
3884
3885 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3886
3887 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3888 to use type::index_type instead.
3889
3890 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3891
3892 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3893 methods.
3894 (TYPE_INDEX_TYPE): Use type::index_type.
3895 * gdbtypes.c (create_array_type_with_stride): Likewise.
3896
3897 2020-06-07 Tom Tromey <tom@tromey.com>
3898
3899 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3900 parameter.
3901 (generic_value_print): Update.
3902
3903 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3904
3905 Revert commit 982a38f60b0.
3906 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3907
3908 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3909
3910 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3911 avoid use after free.
3912
3913 2020-06-05 Tom de Vries <tdevries@suse.de>
3914
3915 * NEWS: Fix typos.
3916
3917 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3918
3919 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3920 the per_bfd object.
3921 (dwarf2_read_debug_names): Likewise.
3922 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3923 object when re-using a per_bfd object with an index.
3924
3925 2020-06-03 Tom de Vries <tdevries@suse.de>
3926
3927 PR symtab/26046
3928 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3929 children for C++.
3930 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3931 DW_TAG_subprogram.
3932
3933 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3934
3935 * ada-lang.c (ada_language_data): Delete skip_trampoline
3936 initializer.
3937 * c-lang.c (c_language_data): Likewise.
3938 (cplus_language_data): Likewise.
3939 (cplus_language::skip_trampoline): New member function.
3940 (asm_language_data): Delete skip_trampoline initializer.
3941 (minimal_language_data): Likewise.
3942 * d-lang.c (d_language_data): Likewise.
3943 * f-lang.c (f_language_data): Likewise.
3944 * go-lang.c (go_language_data): Likewise.
3945 * language.c (unk_lang_trampoline): Delete function.
3946 (skip_language_trampoline): Update.
3947 (unknown_language_data): Delete skip_trampoline initializer.
3948 (auto_language_data): Likewise.
3949 * language.h (language_data): Delete skip_trampoline field.
3950 (language_defn::skip_trampoline): New function.
3951 * m2-lang.c (m2_language_data): Delete skip_trampoline
3952 initializer.
3953 * objc-lang.c (objc_skip_trampoline): Delete function, move
3954 implementation to objc_language::skip_trampoline.
3955 (objc_language_data): Delete skip_trampoline initializer.
3956 (objc_language::skip_trampoline): New member function with
3957 implementation from objc_skip_trampoline.
3958 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3959 initializer.
3960 * p-lang.c (pascal_language_data): Likewise.
3961 * rust-lang.c (rust_language_data): Likewise.
3962
3963 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3964
3965 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3966 (ada_language::demangle): New member function.
3967 * c-lang.c (c_language_data): Delete la_demangle initializer.
3968 (cplus_language_data): Delete la_demangle initializer.
3969 (cplus_language::demangle): New member function.
3970 (asm_language_data): Delete la_demangle initializer.
3971 (minimal_language_data): Delete la_demangle initializer.
3972 * d-lang.c (d_language_data): Delete la_demangle initializer.
3973 (d_language::demangle): New member function.
3974 * f-lang.c (f_language_data): Delete la_demangle initializer.
3975 (f_language::demangle): New member function.
3976 * go-lang.c (go_language_data): Delete la_demangle initializer.
3977 (go_language::demangle): New member function.
3978 * language.c (language_demangle): Update.
3979 (unk_lang_demangle): Delete.
3980 (unknown_language_data): Delete la_demangle initializer.
3981 (unknown_language::demangle): New member function.
3982 (auto_language_data): Delete la_demangle initializer.
3983 (auto_language::demangle): New member function.
3984 * language.h (language_data): Delete la_demangle field.
3985 (language_defn::demangle): New function.
3986 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3987 * objc-lang.c (objc_language_data): Delete la_demangle
3988 initializer.
3989 (objc_language::demangle): New member function.
3990 * opencl-lang.c (opencl_language_data): Delete la_demangle
3991 initializer.
3992 * p-lang.c (pascal_language_data): Likewise.
3993 * rust-lang.c (rust_language_data): Likewise.
3994 (rust_language::demangle): New member function.
3995
3996 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3997
3998 * ada-lang.c (ada_language_data): Delete la_print_type
3999 initializer.
4000 (ada_language::print_type): New member function.
4001 * c-lang.c (c_language_data): Delete la_print_type initializer.
4002 (c_language::print_type): New member function.
4003 (cplus_language_data): Delete la_print_type initializer.
4004 (cplus_language::print_type): New member function.
4005 (asm_language_data): Delete la_print_type initializer.
4006 (asm_language::print_type): New member function.
4007 (minimal_language_data): Delete la_print_type initializer.
4008 (minimal_language::print_type): New member function.
4009 * d-lang.c (d_language_data): Delete la_print_type initializer.
4010 (d_language::print_type): New member function.
4011 * f-lang.c (f_language_data): Delete la_print_type initializer.
4012 (f_language::print_type): New member function.
4013 * go-lang.c (go_language_data): Delete la_print_type initializer.
4014 (go_language::print_type): New member function.
4015 * language.c (unk_lang_print_type): Delete.
4016 (unknown_language_data): Delete la_print_type initializer.
4017 (unknown_language::print_type): New member function.
4018 (auto_language_data): Delete la_print_type initializer.
4019 (auto_language::print_type): New member function.
4020 * language.h (language_data): Delete la_print_type field.
4021 (language_defn::print_type): New function.
4022 (LA_PRINT_TYPE): Update.
4023 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4024 (m2_language::print_type): New member function.
4025 * objc-lang.c (objc_language_data): Delete la_print_type
4026 initializer.
4027 (objc_language::print_type): New member function.
4028 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4029 to opencl_language::print_type.
4030 (opencl_language_data): Delete la_print_type initializer.
4031 (opencl_language::print_type): New member function, implementation
4032 from opencl_print_type.
4033 * p-lang.c (pascal_language_data): Delete la_print_type
4034 initializer.
4035 (pascal_language::print_type): New member function.
4036 * rust-lang.c (rust_print_type): Delete, implementation moved to
4037 rust_language::print_type.
4038 (rust_language_data): Delete la_print_type initializer.
4039 (rust_language::print_type): New member function, implementation
4040 from rust_print_type.
4041
4042 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4043
4044 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4045 implementation moves to...
4046 (ada_language::sniff_from_mangled_name): ...here. Update return
4047 type.
4048 (ada_language_data): Delete la_sniff_from_mangled_name
4049 initializer.
4050 * c-lang.c (c_language_data): Likewise.
4051 (cplus_language_data): Likewise.
4052 (cplus_language::sniff_from_mangled_name): New member function,
4053 implementation taken from gdb_sniff_from_mangled_name.
4054 (asm_language_data): Delete la_sniff_from_mangled_name
4055 initializer.
4056 (minimal_language_data): Likewise.
4057 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4058 implementation moves to cplus_language::sniff_from_mangled_name.
4059 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4060 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4061 moves to...
4062 (d_language::sniff_from_mangled_name): ...here.
4063 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4064 * f-lang.c (f_language_data): Likewise.
4065 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4066 moves to...
4067 (go_language::sniff_from_mangled_name): ...here.
4068 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4069 * language.c (language_sniff_from_mangled_name): Delete.
4070 (unknown_language_data): Delete la_sniff_from_mangled_name
4071 initializer.
4072 (auto_language_data): Likewise.
4073 * language.h (language_data): Delete la_sniff_from_mangled_name
4074 field.
4075 (language_defn::sniff_from_mangled_name): New function.
4076 (language_sniff_from_mangled_name): Delete declaration.
4077 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4078 field.
4079 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4080 implementation moves to...
4081 (objc_language::sniff_from_mangled_name): ...here.
4082 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4083 * opencl-lang.c (opencl_language_data): Likewise.
4084 * p-lang.c (pascal_language_data): Likewise.
4085 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4086 implementation moves to...
4087 (rust_language::sniff_from_mangled_name): ...here.
4088 (rust_language_data): Delete la_sniff_from_mangled_name
4089 initializer.
4090 * symtab.c (symbol_find_demangled_name): Call
4091 sniff_from_mangled_name member function.
4092
4093 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4094
4095 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4096 initializer.
4097 * c-lang.c (c_language_data): Likewise.
4098 (cplus_language_data): Likewise.
4099 (cplus_language::search_name_hash): New member function.
4100 (asm_language_data): Delete la_search_name_hash initializer.
4101 (minimal_language_data): Likewise.
4102 * d-lang.c (d_language_data): Likewise.
4103 * dictionary.c (default_search_name_hash): Rename to...
4104 (language_defn::search_name_hash): ...this.
4105 * f-lang.c (f_language_data): Likewise.
4106 (f_language::search_name_hash): New member function.
4107 * go-lang.c (go_language_data): Delete la_search_name_hash
4108 initializer.
4109 * language.c (unknown_language_data): Likewise.
4110 (auto_language_data): Likewise.
4111 * language.h (struct language_data): Delete la_search_name_hash
4112 field.
4113 (language_defn::search_name_hash): Declare new member function.
4114 (default_search_name_hash): Delete declaration.
4115 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4116 initializer.
4117 * objc-lang.c (objc_language_data): Likewise.
4118 * opencl-lang.c (opencl_language_data): Likewise.
4119 * p-lang.c (pascal_language_data): Likewise.
4120 * rust-lang.c (rust_language_data): Likewise.
4121 * symtab.c (search_name_hash): Update call.
4122
4123 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4124
4125 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4126 initializer.
4127 * c-lang.c (class compile_instance): Declare.
4128 (c_language_data): Delete la_get_compile_instance initializer.
4129 (c_language::get_compile_instance): New member function.
4130 (cplus_language_data): Delete la_get_compile_instance initializer.
4131 (cplus_language::get_compile_instance): New member function.
4132 (asm_language_data): Delete la_get_compile_instance initializer.
4133 (minimal_language_data): Likewise.
4134 * c-lang.h (c_get_compile_context): Update comment.
4135 (cplus_get_compile_context): Update comment.
4136 * compile/compile.c (compile_to_object): Update calls, don't rely
4137 on function pointer being NULL.
4138 * d-lang.c (d_language_data): Delete la_get_compile_instance
4139 initializer.
4140 * f-lang.c (f_language_data): Likewise.
4141 * go-lang.c (go_language_data): Likewise.
4142 * language.c (unknown_language_data): Likewise.
4143 (auto_language_data): Likewise.
4144 * language.h (language_data): Delete la_get_compile_instance field.
4145 (language_defn::get_compile_instance): New member function.
4146 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4147 initializer.
4148 * objc-lang.c (objc_language_data): Likewise.
4149 * opencl-lang.c (opencl_language_data): Likewise.
4150 * p-lang.c (pascal_language_data): Likewise.
4151 * rust-lang.c (rust_language_data): Likewise.
4152
4153 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4154
4155 * ada-lang.c (ada_add_all_symbols): Update comment.
4156 (ada_iterate_over_symbols): Delete, move implementation to...
4157 (ada_language::iterate_over_symbols): ...here, a new member
4158 function, rewrite to use range based for loop.
4159 (ada_language_data): Delete la_iterate_over_symbols initializer.
4160 * c-lang.c (c_language_data): Likewise.
4161 (cplus_language_data): Likewise.
4162 (asm_language_data): Likewise.
4163 (minimal_language_data): Likewise.
4164 * d-lang.c (d_language_data): Likewise.
4165 * f-lang.c (f_language_data): Likewise.
4166 * go-lang.c (go_language_data): Likewise.
4167 * language.c (unknown_language_data): Likewise.
4168 (auto_language_data): Likewise.
4169 * language.h (language_data): Delete la_iterate_over_symbols field.
4170 (language_defn::iterate_over_symbols): New member function.
4171 (LA_ITERATE_OVER_SYMBOLS): Update.
4172 * linespec.c (iterate_over_all_matching_symtabs): Update.
4173 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4174 initializer.
4175 * objc-lang.c (objc_language_data): Likewise.
4176 * opencl-lang.c (opencl_language_data): Likewise.
4177 * p-lang.c (pascal_language_data): Likewise.
4178 * rust-lang.c (rust_language_data): Likewise.
4179
4180 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4181
4182 * ada-lang.c (ada_language_data): Delete
4183 la_lookup_transparent_type initializer.
4184 * c-lang.c (c_language_data): Likewise.
4185 (cplus_language_data): Likewise.
4186 (cplus_language::lookup_transparent_type): New member function.
4187 (asm_language_data): Delete la_lookup_transparent_type
4188 initializer.
4189 (minimal_language_data): Likewise.
4190 * d-lang.c (d_language_data): Likewise.
4191 * f-lang.c (f_language_data): Likewise.
4192 * go-lang.c (go_language_data): Likewise.
4193 * language.c (unknown_language_data): Likewise.
4194 (auto_language_data): Likewise.
4195 * language.h (struct language_data): Delete
4196 la_lookup_transparent_type field.
4197 (language_defn::lookup_transparent_type): New member function.
4198 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4199 initializer.
4200 * objc-lang.c (objc_language_data): Likewise.
4201 * opencl-lang.c (opencl_language_data): Likewise.
4202 * p-lang.c (pascal_language_data): Likewise.
4203 * rust-lang.c (rust_language_data): Likewise.
4204 * symtab.c (symbol_matches_domain): Update call.
4205
4206 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4207
4208 * ada-lang.c (ada_language_arch_info): Delete function, move
4209 implementation to...
4210 (ada_language::language_arch_info): ...here, a new member
4211 function.
4212 (ada_language_data): Delete la_language_arch_info.
4213 * c-lang.c (c_language_data): Likewise.
4214 (c_language::language_arch_info): New member function.
4215 (cplus_language_arch_info): Delete function, move
4216 implementation to...
4217 (cplus_language::language_arch_info): ...here, a new member
4218 function.
4219 (cplus_language_data): Delete la_language_arch_info.
4220 (asm_language_data): Likewise.
4221 (asm_language::language_arch_info): New member function.
4222 (minimal_language_data): Delete la_language_arch_info.
4223 (minimal_language::language_arch_info): New member function.
4224 * d-lang.c (d_language_arch_info): Delete function, move
4225 implementation to...
4226 (d_language::language_arch_info): ...here, a new member
4227 function.
4228 (d_language_data): Delete la_language_arch_info.
4229 * f-lang.c (f_language_arch_info): Delete function, move
4230 implementation to...
4231 (f_language::language_arch_info): ...here, a new member
4232 function.
4233 (f_language_data): Delete la_language_arch_info.
4234 * go-lang.c (go_language_arch_info): Delete function, move
4235 implementation to...
4236 (go_language::language_arch_info): ...here, a new member
4237 function.
4238 (go_language_data): Delete la_language_arch_info.
4239 * language.c (unknown_language_data): Likewise.
4240 (unknown_language::language_arch_info): New member function.
4241 (auto_language_data): Delete la_language_arch_info.
4242 (auto_language::language_arch_info): New member function.
4243 (language_gdbarch_post_init): Update call to
4244 la_language_arch_info.
4245 * language.h (language_data): Delete la_language_arch_info
4246 function pointer.
4247 (language_defn::language_arch_info): New function.
4248 * m2-lang.c (m2_language_arch_info): Delete function, move
4249 implementation to...
4250 (m2_language::language_arch_info): ...here, a new member
4251 function.
4252 (m2_language_data): Delete la_language_arch_info.
4253 * objc-lang.c (objc_language_arch_info): Delete function, move
4254 implementation to...
4255 (objc_language::language_arch_info): ...here, a new member
4256 function.
4257 (objc_language_data): Delete la_language_arch_info.
4258 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4259 implementation to...
4260 (opencl_language::language_arch_info): ...here, a new member
4261 function.
4262 (opencl_language_data): Delete la_language_arch_info.
4263 * p-lang.c (pascal_language_arch_info): Delete function, move
4264 implementation to...
4265 (pascal_language::language_arch_info): ...here, a new member
4266 function.
4267 (pascal_language_data): Delete la_language_arch_info.
4268 * rust-lang.c (rust_language_arch_info): Delete function, move
4269 implementation to...
4270 (rust_language::language_arch_info): ...here, a new member
4271 function.
4272 (rust_language_data): Delete la_language_arch_info.
4273
4274 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4275
4276 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4277 initializer.
4278 * c-lang.c (c_language_data): Likewise.
4279 (cplus_language_data): Likewise.
4280 (cplus_language::pass_by_reference_info): New method.
4281 (asm_language_data): Delete la_pass_by_reference initializer.
4282 (minimal_language_data): Likewise.
4283 * cp-abi.c (cp_pass_by_reference): Remove use of
4284 default_pass_by_reference.
4285 * d-lang.c (d_language_data): Likewise.
4286 * f-lang.c (f_language_data): Likewise.
4287 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4288 default_pass_by_reference.
4289 * go-lang.c (go_language_data): Likewise.
4290 * language.c (language_pass_by_reference): Update.
4291 (default_pass_by_reference): Delete.
4292 (unknown_language_data): Delete la_pass_by_reference
4293 initializer.
4294 (auto_language_data): Likewise.
4295 * language.h (struct language_data): Delete la_pass_by_reference
4296 field.
4297 (language_defn::pass_by_reference_info): New member function.
4298 (default_pass_by_reference): Delete declaration.
4299 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4300 initializer.
4301 * objc-lang.c (objc_language_data): Likewise.
4302 * opencl-lang.c (opencl_language_data): Likewise.
4303 * p-lang.c (pascal_language_data): Likewise.
4304 * rust-lang.c (rust_language_data): Likewise.
4305
4306 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4307
4308 * ada-lang.c (ada_read_var_value): Delete function, move
4309 implementation to...
4310 (ada_language::read_var_value): ...here.
4311 (ada_language_data): Delete la_read_var_value initializer.
4312 * c-lang.c (c_language_data): Likewise.
4313 (cplus_language_data): Likewise.
4314 (minimal_language_data): Likewise.
4315 * d-lang.c (d_language_data): Likewise.
4316 * f-lang.c (f_language_data): Likewise.
4317 * findvar.c (default_read_var_value): Rename to...
4318 (language_defn::read_var_value): ...this.
4319 * findvar.c (read_var_value): Update header comment, and change to
4320 call member function instead of function pointer.
4321 * go-lang.c (go_language_data): Likewise.
4322 * language.c (unknown_language_data): Delete la_read_var_value
4323 initializer.
4324 (auto_language_data): Likewise.
4325 * language.h (struct language_data): Delete la_read_var_value
4326 field.
4327 (language_defn::read_var_value): New member function.
4328 (default_read_var_value): Delete declaration.
4329 * m2-lang.c (m2_language_data): Delete la_read_var_value
4330 initializer.
4331 * objc-lang.c (objc_language_data): Likewise.
4332 * opencl-lang.c (opencl_language_data): Likewise.
4333 * p-lang.c (pascal_language_data): Likewise.
4334 * rust-lang.c (rust_language_data): Likewise.
4335 * value.h (default_read_var_value): Delete declaration.
4336
4337 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4338
4339 * ada-lang.c (ada_print_array_index): Delete function, move
4340 implementation to...
4341 (ada_language::print_array_index): ...here.
4342 (ada_language_data): Delete la_print_array_index initializer.
4343 * c-lang.c (c_language_data): Likewise.
4344 (cplus_language_data): Likewise.
4345 (minimal_language_data): Likewise.
4346 * d-lang.c (d_language_data): Likewise.
4347 * f-lang.c (f_language_data): Likewise.
4348 * go-lang.c (go_language_data): Likewise.
4349 * language.c (default_print_array_index): Delete function, move
4350 implementation to...
4351 (language_defn::print_array_index): ...here.
4352 (unknown_language_data): Delete la_print_array_index initializer.
4353 (auto_language_data): Likewise.
4354 * language.h (struct language_data): Delete la_print_array_index
4355 field.
4356 (language_defn::print_array_index): New member function.
4357 (LA_PRINT_ARRAY_INDEX): Update.
4358 (default_print_array_index): Delete declaration.
4359 * m2-lang.c (m2_language_data): Delete la_print_array_index
4360 initializer.
4361 * objc-lang.c (objc_language_data): Likewise.
4362 * opencl-lang.c (opencl_language_data): Likewise.
4363 * p-lang.c (pascal_language_data): Likewise.
4364 * rust-lang.c (rust_language_data): Likewise.
4365
4366 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4367
4368 * gdb/ada-lang.c (ada_language_defn): Convert to...
4369 (ada_language_data): ...this.
4370 (class ada_language): New class.
4371 (ada_language_defn): New static global.
4372 * gdb/c-lang.c (c_language_defn): Convert to...
4373 (c_language_data): ...this.
4374 (class c_language): New class.
4375 (c_language_defn): New static global.
4376 (cplus_language_defn): Convert to...
4377 (cplus_language_data): ...this.
4378 (class cplus_language): New class.
4379 (cplus_language_defn): New static global.
4380 (asm_language_defn): Convert to...
4381 (asm_language_data): ...this.
4382 (class asm_language): New class.
4383 (asm_language_defn): New static global.
4384 (minimal_language_defn): Convert to...
4385 (minimal_language_data): ...this.
4386 (class minimal_language): New class.
4387 (minimal_language_defn): New static global.
4388 * gdb/d-lang.c (d_language_defn): Convert to...
4389 (d_language_data): ...this.
4390 (class d_language): New class.
4391 (d_language_defn): New static global.
4392 * gdb/f-lang.c (f_language_defn): Convert to...
4393 (f_language_data): ...this.
4394 (class f_language): New class.
4395 (f_language_defn): New static global.
4396 * gdb/go-lang.c (go_language_defn): Convert to...
4397 (go_language_data): ...this.
4398 (class go_language): New class.
4399 (go_language_defn): New static global.
4400 * gdb/language.c (unknown_language_defn): Remove declaration.
4401 (current_language): Initialize to nullptr, real initialization is
4402 moved to _initialize_language.
4403 (languages): Delete global.
4404 (language_defn::languages): Define.
4405 (set_language_command): Use language_defn::languages.
4406 (set_language): Likewise.
4407 (range_error): Likewise.
4408 (language_enum): Likewise.
4409 (language_def): Likewise.
4410 (add_set_language_command): Use language_def::languages for the
4411 language list, and language_def to lookup language pointers.
4412 (skip_language_trampoline): Use language_defn::languages.
4413 (unknown_language_defn): Convert to...
4414 (unknown_language_data): ...this.
4415 (class unknown_language): New class.
4416 (unknown_language_defn): New static global.
4417 (auto_language_defn): Convert to...
4418 (auto_language_data): ...this.
4419 (class auto_language): New class.
4420 (auto_language_defn): New static global.
4421 (language_gdbarch_post_init): Use language_defn::languages.
4422 (_initialize_language): Initialize current_language.
4423 * gdb/language.h (struct language_defn): Rename to...
4424 (struct language_data): ...this.
4425 (struct language_defn): New.
4426 (auto_language_defn): Delete.
4427 (unknown_language_defn): Delete.
4428 (minimal_language_defn): Delete.
4429 (ada_language_defn): Delete.
4430 (asm_language_defn): Delete.
4431 (c_language_defn): Delete.
4432 (cplus_language_defn): Delete.
4433 (d_language_defn): Delete.
4434 (f_language_defn): Delete.
4435 (go_language_defn): Delete.
4436 (m2_language_defn): Delete.
4437 (objc_language_defn): Delete.
4438 (opencl_language_defn): Delete.
4439 (pascal_language_defn): Delete.
4440 (rust_language_defn): Delete.
4441 * gdb/m2-lang.c (m2_language_defn): Convert to...
4442 (m2_language_data): ...this.
4443 (class m2_language): New class.
4444 (m2_language_defn): New static global.
4445 * gdb/objc-lang.c (objc_language_defn): Convert to...
4446 (objc_language_data): ...this.
4447 (class objc_language): New class.
4448 (objc_language_defn): New static global.
4449 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4450 (opencl_language_data): ...this.
4451 (class opencl_language): New class.
4452 (opencl_language_defn): New static global.
4453 * gdb/p-lang.c (pascal_language_defn): Convert to...
4454 (pascal_language_data): ...this.
4455 (class pascal_language): New class.
4456 (pascal_language_defn): New static global.
4457 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4458 language pointer, update comment format.
4459 * gdb/rust-lang.c (rust_language_defn): Convert to...
4460 (rust_language_data): ...this.
4461 (class rust_language): New class.
4462 (rust_language_defn): New static global.
4463
4464 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4465
4466 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4467 member variable.
4468 <m_stmt_at_address>: New member variable.
4469 (lnp_state_machine::record_line): Don't record some lines, update
4470 tracking of is_stmt at the same address.
4471 (lnp_state_machine::lnp_state_machine): Initialise new member
4472 variables.
4473
4474 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4475
4476 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4477 "-include gnu-nat-mig.h".
4478 * gnu-nat-mig.h: New file.
4479 * gnu-nat.c: Include "gnu-nat-mig.h".
4480 (exc_server, msg_reply_server, notify_server,
4481 process_reply_server): Remove declarations.
4482
4483 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4484
4485 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4486 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4487 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4488 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4489 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4490 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4491 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4492 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4493 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4494 to gnu_nat_target class.
4495 * gnu-nat.c: Likewise.
4496 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4497 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4498 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4499 object.
4500 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4501 instead of `gnu_target'.
4502
4503 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4504
4505 * i386-gnu-tdep.c: Include "gdbcore.h"
4506 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4507 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4508 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4509 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4510 i386_gnu_sigcontext_addr): New functions
4511 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4512 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4513 tdep.
4514
4515 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4516
4517 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4518 before fork_inferior call. Avoid calling it if target_is_pushed returns
4519 true.
4520
4521 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4522
4523 * gnu-nat.h (gnu_target): New variable declaration.
4524 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4525 gnu_target.
4526 * gnu-nat.c (gnu_target): New variable.
4527 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4528 add_thread_silent, and add_thread calls.
4529 (gnu_nat_target::create_inferior): Pass gnu_target to
4530 add_thread_silent, thread_change_ptid call.
4531 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4532 call.
4533
4534 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4535
4536 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4537 (gnu_nat_target::find_memory_regions): Remove unused
4538 `old_address' variable.
4539
4540 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4541
4542 * gnu-nat.c: Include "gdbarch.h".
4543
4544 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4545
4546 * reply_mig_hack.awk (Error return): Cast function through
4547 void *, to bypass compiler function call check.
4548
4549 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4550
4551 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4552 $(srcdir)/reply_mig_hack.awk.
4553
4554 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4555
4556 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4557
4558 2020-05-30 Jonny Grant <jg@jguk.org>
4559
4560 * configure.ac (ACX_BUGURL): change bug URL to https.
4561
4562 2020-05-30 Pedro Alves <palves@redhat.com>
4563
4564 * cp-support.c (replace_typedefs_template): New.
4565 (replace_typedefs_qualified_name): Handle
4566 DEMANGLE_COMPONENT_TEMPLATE.
4567
4568 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4569
4570 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4571 dwarf2/index-cache.h, dwarf2/index-write.c,
4572 dwarf2/index-write.h, dwarf2/line-header.c,
4573 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4574 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4575 variables and fields from `dwarf2_per_objfile` to just
4576 `per_objfile` throughout.
4577
4578 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4579
4580 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4581 <push_dwarf_reg_entry_value>: Add comment.
4582
4583 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4584 Keith Seitz <keiths@redhat.com>
4585
4586 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4587 instead of PyEval_ReleaseLock.
4588 (class gdbpy_gil): Move to earlier in file.
4589 (finalize_python): Set gdb_python_initialized.
4590 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4591 when not initialized.
4592
4593 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4594
4595 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4596 <push_dwarf_reg_entry_value>: Remove assert. Override
4597 per_objfile with caller_per_objfile.
4598
4599 2020-05-28 Tom de Vries <tdevries@suse.de>
4600
4601 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4602 PR gold/15646 workaround to symbol kind "type".
4603
4604 2020-05-27 Tom Tromey <tromey@adacore.com>
4605
4606 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4607
4608 2020-05-27 Tom Tromey <tromey@adacore.com>
4609
4610 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4611 Use htab_find_with_hash.
4612 <add_abbrev>: Remove "abbrev_number" parameter.
4613 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4614 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4615 (hash_abbrev): Add comment.
4616 (abbrev_table::lookup_abbrev): Move to header file.
4617 (abbrev_table::read): Update.
4618
4619 2020-05-27 Tom Tromey <tromey@adacore.com>
4620
4621 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4622 method.
4623 <canonical_name>: New member.
4624 <raw_name>: Rename from "name".
4625 (partial_die_info): Initialize canonical_name.
4626 (scan_partial_symbols): Check raw_name.
4627 (partial_die_parent_scope, partial_die_full_name)
4628 (add_partial_symbol, add_partial_subprogram)
4629 (add_partial_enumeration, load_partial_dies): Use "name" method.
4630 (partial_die_info::name): New method.
4631 (partial_die_info::read, guess_partial_die_structure_name)
4632 (partial_die_info::fixup): Update.
4633
4634 2020-05-27 Tom Tromey <tromey@adacore.com>
4635
4636 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4637 <get_ref_die_offset>: Inline.
4638 <get_ref_die_offset_complaint>: New method.
4639 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4640 (attribute::get_ref_die_offset_complaint): Rename from
4641 get_ref_die_offset. Just issue complaint.
4642
4643 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4644
4645 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4646
4647 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4648
4649 * exec.c (exec_file_attach): Use errno value of first openp failure.
4650
4651 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4652
4653 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4654 Don't close thread handle.
4655
4656 2020-05-27 Tom Tromey <tom@tromey.com>
4657 Simon Marchi <simon.marchi@efficios.com>
4658
4659 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4660 shared_ptr.
4661 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4662 member.
4663 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4664 dwarf2_per_bfd_objfile_data_key>: New globals.
4665 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4666 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4667 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4668 shared.
4669 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4670 short-circuit when sharing.
4671 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4672 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4673
4674 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4675
4676 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4677 to...
4678 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4679 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4680
4681 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4682
4683 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4684 build_name_components, find_name_components_bounds>:
4685 Add per_objfile parameter.
4686 (struct mapped_index) <symbol_name_at>: Likewise.
4687 (struct mapped_debug_names): Remove constructor.
4688 <dwarf2_per_objfile>: Remove field.
4689 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4690 (mapped_index_base::find_name_components_bounds,
4691 mapped_index_base::build_name_components,
4692 dw2_expand_symtabs_matching_symbol): Likewise.
4693 (class mock_mapped_index) <symbol_name_at>: Likewise.
4694 (check_match): Likewise.
4695 (check_find_bounds_finds): Likewise.
4696 (test_mapped_index_find_name_component_bounds): Update.
4697 (CHECK_MATCH): Update.
4698 (dw2_expand_symtabs_matching): Update.
4699 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4700 per_objfile parameter.
4701 <find_vec_in_debug_names>: Likewise.
4702 <m_per_objfile>: New field.
4703 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4704 parameter.
4705 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4706 (dw2_debug_names_iterator::next): Update.
4707 (dw2_debug_names_lookup_symbol): Update.
4708 (dw2_debug_names_expand_symtabs_for_function): Update.
4709 (dw2_debug_names_map_matching_symbols): Update.
4710 (dw2_debug_names_expand_symtabs_matching): Update.
4711 (dwarf2_read_debug_names): Update.
4712
4713 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4714
4715 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4716 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4717 move to dwarf2_per_objfile.
4718 <read_in_chain>: Remove.
4719 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4720 remove_all_cus, age_comp_units>: New methods.
4721 <m_dwarf2_cus>: New member.
4722 (struct dwarf2_per_cu_data) <cu>: Remove.
4723 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4724 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4725 moved to methods of dwarf2_per_objfile.
4726 (dwarf2_clear_marks): Remove.
4727 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4728 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4729 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4730 (dwarf2_per_objfile::remove_all_cus): New.
4731 (class free_cached_comp_units) <~free_cached_comp_units>:
4732 Update.
4733 (load_cu): Update.
4734 (dw2_do_instantiate_symtab): Adjust.
4735 (fill_in_sig_entry_from_dwo_entry): Adjust.
4736 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4737 (cutu_reader::cutu_reader): Likewise.
4738 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4739 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4740 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4741 and dwarf2_per_objfile::age_comp_units.
4742 (load_partial_comp_unit): Update.
4743 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4744 (process_queue): Likewise.
4745 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4746 backlink.
4747 (dwarf2_read_addr_index): Likewise.
4748 (follow_die_offset): Likewise.
4749 (dwarf2_fetch_die_loc_sect_off): Likewise.
4750 (dwarf2_fetch_constant_bytes): Likewise.
4751 (dwarf2_fetch_die_type_sect_off): Likewise.
4752 (follow_die_sig_1): Likewise.
4753 (load_full_type_unit): Likewise.
4754 (read_signatured_type): Likewise.
4755 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4756 (dwarf2_cu::~dwarf2_cu): Remove.
4757 (dwarf2_per_objfile::get_cu): New.
4758 (dwarf2_per_objfile::set_cu): New.
4759 (age_cached_comp_units): Rename to...
4760 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4761 to std::unordered_map.
4762 (free_one_cached_comp_unit): Rename to...
4763 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4764 to std::unordered_map.
4765 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4766 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4767 a dwarf2_per_objfile in data.
4768 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4769 (dwarf2_clear_marks): Remove.
4770
4771 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4772
4773 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4774 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4775 (init_tu_and_read_dwo_dies): Likewise.
4776 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4777 (cutu_reader::cutu_reader): Likewise.
4778 (load_partial_comp_unit): Likewise.
4779 (process_psymtab_comp_unit): Update.
4780 (build_type_psymtabs_1): Update.
4781 (process_skeletonless_type_unit): Update.
4782 (load_full_comp_unit): Update.
4783 (find_partial_die): Update.
4784 (dwarf2_read_addr_index): Update.
4785 (read_signatured_type): Update.
4786
4787 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4788
4789 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4790 m_header_read_in>: New fields.
4791 <get_header>: New method.
4792 * dwarf2/read.c (per_cu_header_read_in): Remove.
4793 (dwarf2_per_cu_data::get_header): New.
4794 (dwarf2_per_cu_data::addr_size): Update.
4795 (dwarf2_per_cu_data::offset_size): Update.
4796 (dwarf2_per_cu_data::ref_addr_size): Update.
4797
4798 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4799
4800 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4801 (dw2_do_instantiate_symtab): Update.
4802 (queue_and_load_all_dwo_tus): Change parameter from
4803 dwarf2_per_cu_data to dwarf2_cu.
4804 (dwarf2_fetch_die_loc_sect_off): Update.
4805 (dwarf2_fetch_constant_bytes): Update.
4806 (dwarf2_fetch_die_type_sect_off): Update.
4807
4808 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4809
4810 * dwarf2/read.c (process_full_comp_unit,
4811 process_full_type_unit): Remove per_cu, per_objfile paramters.
4812 Add dwarf2_cu parameter.
4813 (process_queue): Update.
4814
4815 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4816
4817 * dwarf2/read.c (create_cu_from_index_list): Replace
4818 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4819 (create_cus_from_index_list): Likewise.
4820 (create_cus_from_index): Likewise.
4821 (create_signatured_type_table_from_index): Likewise.
4822 (create_cus_from_debug_names_list): Likewise.
4823 (create_cus_from_debug_names): Likewise.
4824 (dwarf2_read_gdb_index): Update.
4825 (dwarf2_read_debug_names): Update.
4826
4827 2020-05-27 Tom Tromey <tom@tromey.com>
4828 Simon Marchi <simon.marchi@efficios.com>
4829
4830 * dwarf2/read.h (struct dwarf2_per_objfile)
4831 <get_type_for_signatured_type, set_type_for_signatured_type>:
4832 New methods.
4833 <m_type_map>: New member.
4834 (struct signatured_type) <type>: Remove.
4835 * dwarf2/read.c
4836 (dwarf2_per_objfile::get_type_for_signatured_type,
4837 dwarf2_per_objfile::set_type_for_signatured_type): New.
4838 (get_signatured_type): Use new methods.
4839
4840 2020-05-27 Tom Tromey <tom@tromey.com>
4841 Simon Marchi <simon.marchi@efficios.com>
4842
4843 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4844 (struct dwarf2_per_objfile) <type_units>: New member.
4845 <get_type_unit_group_unshareable>: New method.
4846 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4847 num_symtabs, symtabs>: Remove; move to
4848 type_unit_group_unshareable.
4849 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4850 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4851 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4852
4853 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4854
4855 * dwarf2/read.h (struct dwarf2_per_cu_data):
4856 <dwarf2_per_objfile>: Remove.
4857 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4858 dwarf2_per_objfile.
4859 (create_signatured_type_table_from_index): Likewise.
4860 (create_signatured_type_table_from_debug_names): Likewise.
4861 (create_debug_type_hash_table): Likewise.
4862 (fill_in_sig_entry_from_dwo_entry): Likewise.
4863 (create_type_unit_group): Likewise.
4864 (read_comp_units_from_section): Likewise.
4865 (create_cus_hash_table): Likewise.
4866
4867 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4868
4869 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4870 dwarf2_per_cu_data::dwarf2_per_objfile.
4871 (compute_compunit_symtab_includes): Likewise.
4872 (dwarf2_cu::start_symtab): Likewise.
4873
4874 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4875
4876 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4877 parameter.
4878 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4879 (read_namespace_alias): Update.
4880 (lookup_die_type): Update.
4881 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4882 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4883 Update.
4884 (disassemble_dwarf_expression): Update.
4885
4886 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * dwarf2/read.h (struct dwarf2_queue_item): Add
4889 dwarf2_per_objfile parameter, assign new parameter.
4890 <per_objfile>: New field.
4891 * dwarf2/read.c (free_one_cached_comp_unit): Add
4892 dwarf2_per_objfile parameter.
4893 (queue_comp_unit): Likewise.
4894 (dw2_do_instantiate_symtab): Update.
4895 (process_psymtab_comp_unit): Update.
4896 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4897 (process_imported_unit_die): Update.
4898 (queue_and_load_dwo_tu): Update.
4899 (follow_die_offset): Update.
4900 (follow_die_sig_1): Update.
4901
4902 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4903
4904 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4905 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4906 (read_call_site_scope): Assign per_objfile.
4907 (dwarf2_per_cu_data::objfile): Remove.
4908 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4909 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4910 dwarf2_per_objfile parameter.
4911 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4912 dwarf2_per_objfile parameter.
4913 (dwarf_expr_reg_to_entry_parameter): Add output
4914 dwarf2_per_objfile parameter.
4915 (locexpr_get_frame_base): Update.
4916 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4917 <push_dwarf_reg_entry_value>: Update.
4918 <call_site_to_target_addr>: Update.
4919 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4920 parameter.
4921 (value_of_dwarf_reg_entry): Update.
4922 (rw_pieced_value): Update.
4923 (indirect_synthetic_pointer): Update.
4924 (dwarf2_evaluate_property): Update.
4925 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4926 parameter.
4927 (locexpr_read_variable): Update.
4928 (locexpr_get_symbol_read_needs): Update.
4929 (loclist_read_variable): Update.
4930
4931 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4932
4933 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4934 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4935 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4936 parameter.
4937 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4938 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4939 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4940 parameter.
4941 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4942 sect_variable_value): Add dwarf2_per_objfile parameter.
4943 (class dwarf_evaluate_loc_desc) <dwarf_call,
4944 dwarf_variable_value>: Update.
4945 (fetch_const_value_from_synthetic_pointer): Add
4946 dwarf2_per_objfile parameter.
4947 (fetch_const_value_from_synthetic_pointer): Update.
4948 (coerced_pieced_ref): Update.
4949 (class symbol_needs_eval_context) <dwarf_call,
4950 dwarf_variable_value>: Update.
4951 (dwarf2_compile_expr_to_ax): Update.
4952
4953 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4954
4955 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4956 parameter.
4957 (dwarf2_evaluate_loc_desc_full): Update.
4958
4959 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4960
4961 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4962 parameter.
4963 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4964 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4965 dwarf2_per_objfile parameter.
4966 (decode_debug_loc_dwo_addresses): Likewise.
4967 (dwarf2_find_location_expression): Update.
4968 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4969 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4970 parameter.
4971 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4972 parameter.
4973 (locexpr_describe_location_1): Likewise.
4974 (locexpr_describe_location): Update.
4975
4976 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4977
4978 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4979 Remove.
4980 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4981 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4982 (dwarf2_compile_property_to_c): Update.
4983 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4984 use text offset from objfile.
4985 (locexpr_tracepoint_var_ref): Update.
4986 (locexpr_generate_c_location): Update.
4987 (loclist_describe_location): Update.
4988 (loclist_tracepoint_var_ref): Update.
4989 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4990 dwarf2_per_objfile parameter.
4991 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4992 use text offset from objfile.
4993 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4994
4995 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4996
4997 * dwarf2/expr.h (struct dwarf_expr_context)
4998 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4999 <offset>: Remove.
5000 <per_objfile>: New member.
5001 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5002 dwarf2_per_objfile parameter. Don't set offset, set
5003 per_objfile.
5004 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5005 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5006 a dwarf2_per_objfile object instead of an offset.
5007 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5008 constructor.
5009 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5010 to dwarf2_expr_executor constructor. Don't set offset.
5011 (dwarf2_fetch_cfa_info): Update.
5012 (struct dwarf2_frame_cache) <text_offset>: Remove.
5013 <per_objfile>: New field.
5014 (dwarf2_frame_cache): Update.
5015 (dwarf2_frame_prev_register): Update.
5016 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5017 <dwarf_evaluate_loc_desc>: Add constructor.
5018 (dwarf2_evaluate_loc_desc_full): Update.
5019 (dwarf2_locexpr_baton_eval): Update.
5020 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5021 Add constructor.
5022 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5023
5024 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5025
5026 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5027 addr_sized_int_type>: Move to dwarf2_cu.
5028 <int_type>: Move to dwarf2_per_objfile.
5029 (struct dwarf2_per_objfile) <int_type>: Move here.
5030 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5031 addr_sized_int_type>: Move here.
5032 (read_func_scope): Update.
5033 (read_array_type): Update.
5034 (read_tag_string_type): Update.
5035 (attr_to_dynamic_prop): Update.
5036 (dwarf2_per_cu_data::int_type): Rename to...
5037 (dwarf2_per_objfile::int_type): ... this.
5038 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5039 (dwarf2_cu::addr_sized_int_type): ... this.
5040 (read_subrange_type): Update.
5041 (dwarf2_per_cu_data::addr_type): Rename to...
5042 (dwarf2_cu::addr_type): ... this.
5043 (set_die_type): Update.
5044
5045 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5046
5047 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5048 data through per_cu->cu.
5049
5050 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5051
5052 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5053 dwarf2_per_cu_data parameter fo dwarf2_cu.
5054 (lookup_dwo_type_unit): Likewise.
5055 (read_cutu_die_from_dwo): Likewise.
5056 (lookup_dwo_unit): Likewise.
5057 (open_and_init_dwo_file): Likewise.
5058 (lookup_dwo_cutu): Likewise.
5059 (lookup_dwo_comp_unit): Likewise.
5060 (lookup_dwo_type_unit): Likewise.
5061 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5062 (cutu_reader::cutu_reader): Update.
5063
5064 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5065
5066 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5067 parameter.
5068 (process_full_type_unit): Likewise.
5069 (process_queue): Update.
5070
5071 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5072
5073 * dwarf2/read.c (recursively_compute_inclusions): Add
5074 dwarf2_per_objfile parameter.
5075 (compute_compunit_symtab_includes): Likewise.
5076 (process_cu_includes): Update.
5077
5078 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5079
5080 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5081 parameter.
5082 (create_type_unit_group): Update.
5083 (process_psymtab_comp_unit_reader): Update.
5084 (build_type_psymtabs_reader): Update.
5085
5086 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5087
5088 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5089 object through m_this_cu->cu.
5090
5091 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5092
5093 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5094 the info parameter.
5095 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5096
5097 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5098
5099 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5100 per_objfile parameter.
5101 (load_full_type_unit): Add per_objfile parameter.
5102 (read_signatured_type): Likewise.
5103 (load_full_comp_unit): Likewise.
5104 (load_cu): Likewise.
5105 (dw2_do_instantiate_symtab): Likewise.
5106 (dw2_get_file_names): Likewise.
5107 (dw2_map_symtabs_matching_filename): Update.
5108 (dw_expand_symtabs_matching_file_matcher): Update.
5109 (dw2_map_symbol_filenames): Update.
5110 (process_psymtab_comp_unit): Add per_objfile parameter.
5111 (build_type_psymtabs_1): Update.
5112 (process_skeletonless_type_unit): Update.
5113 (dwarf2_build_psymtabs_hard): Update.
5114 (load_partial_comp_unit): Add per_objfile parameter.
5115 (scan_partial_symbols): Update.
5116 (load_full_comp_unit): Add per_objfile parameter.
5117 (process_imported_unit_die): Update.
5118 (create_cus_hash_table): Update.
5119 (find_partial_die): Update.
5120 (dwarf2_read_addr_index): Update.
5121 (follow_die_offset): Update.
5122 (dwarf2_fetch_die_loc_sect_off): Update.
5123 (dwarf2_fetch_constant_bytes): Update.
5124 (dwarf2_fetch_die_type_sect_off): Update.
5125 (follow_die_sig_1): Update.
5126 (load_full_type_unit): Add per_objfile parameter.
5127 (read_signatured_type): Likewise.
5128
5129 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5130
5131 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5132 of objfile_name.
5133
5134 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5135
5136 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5137 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5138 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5139 field.
5140 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5141 (create_cus_from_index): Update.
5142 (dwarf2_read_gdb_index): Update.
5143 (create_cus_from_debug_names): Update.
5144 (dwarf2_read_debug_names): Update.
5145 (get_abbrev_section_for_cu): Update.
5146 (create_all_comp_units): Update.
5147 (read_attribute_value): Update.
5148 (get_debug_line_section): Update.
5149 * dwarf2/index-cache.c (index_cache::store): Update.
5150 * dwarf2/index-write.c (save_gdb_index_command): Update.
5151 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5152
5153 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5154
5155 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5156 member.
5157 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5158 dwarf2_per_cu_data::per_bfd.
5159 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5160 (create_type_unit_group): Likewise.
5161 (queue_comp_unit): Remove reference to
5162 per_cu->dwarf2_per_objfile.
5163 (maybe_queue_comp_unit): Likewise.
5164 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5165 (create_cus_hash_table): Assign new field.
5166
5167 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5168
5169 * dwarf2/read.c: Replace
5170 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5171 dwarf2_cu->per_objfile throughout.
5172
5173 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5174
5175 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5176 parameter, don't use per_cu->dwarf2_per_objfile.
5177 (dw2_instantiate_symtab): Likewise.
5178 (dw2_find_last_source_symtab): Update.
5179 (dw2_map_expand_apply): Update.
5180 (dw2_lookup_symbol): Update.
5181 (dw2_expand_symtabs_for_function): Update.
5182 (dw2_expand_all_symtabs): Update.
5183 (dw2_expand_symtabs_with_fullname): Update.
5184 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5185 don't use per_cu->dwarf2_per_objfile.
5186 (dw2_expand_marked_cus): Update.
5187 (dw2_find_pc_sect_compunit_symtab): Update.
5188 (dw2_debug_names_lookup_symbol): Update.
5189 (dw2_debug_names_expand_symtabs_for_function): Update.
5190 (dw2_debug_names_map_matching_symbols): Update.
5191 (dwarf2_psymtab::expand_psymtab): Update.
5192
5193 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5194
5195 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5196 <per_objfile>: New member.
5197 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5198 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5199 call to dwarf2_cu.
5200 (cutu_reader::cutu_reader): Update.
5201 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5202
5203 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5204
5205 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5206 struct dwarf2_per_objfile.
5207 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5208 dwarf2_per_bfd.
5209 * dwarf2/read.c (set_die_type): Update.
5210 (get_die_type_at_offset): Update.
5211
5212 2020-05-27 Tom Tromey <tom@tromey.com>
5213 Simon Marchi <simon.marchi@efficios.com>
5214
5215 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5216 method.
5217 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5218 get_symtab, set_symtab>: New methods.
5219 <m_symtabs>: New field.
5220 (struct dwarf2_psymtab): Derive from partial_symtab.
5221 <readin_p, get_compunit_symtab>: Declare methods.
5222 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5223 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5224 New methods.
5225 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5226 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5227 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5228 (dw2_symtab_iter_next, dw2_print_stats)
5229 (dw2_expand_symtabs_with_fullname)
5230 (dw2_expand_symtabs_matching_one)
5231 (dw_expand_symtabs_matching_file_matcher)
5232 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5233 (dw2_debug_names_iterator::next)
5234 (dw2_debug_names_map_matching_symbols)
5235 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5236 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5237 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5238 New methods.
5239 (get_compunit_symtab, process_full_comp_unit)
5240 (process_full_type_unit): Update.
5241 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5242
5243 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5244
5245 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5246 then introduce a new dwarf2_per_objfile type.
5247 <read_line_string>: Move to the new dwarf2_per_objfile type.
5248 <objfile>: Likewise.
5249 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5250 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5251 dwarf2_per_objfile->per_bfd.
5252 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5253 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5254 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5255 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5256 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5257 (dwarf2_per_objfile::locate_sections): Rename to...
5258 (dwarf2_per_bfd::locate_sections): ... this.
5259 (dwarf2_per_objfile::get_cutu): Rename to...
5260 (dwarf2_per_bfd::get_cutu): ... this.
5261 (dwarf2_per_objfile::get_cu): Rename to...
5262 (dwarf2_per_bfd::get_cu): ... this.
5263 (dwarf2_per_objfile::get_tu): Rename to...
5264 (dwarf2_per_bfd::get_tu): ... this.
5265 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5266 (dwarf2_per_bfd::allocate_per_cu): ... this.
5267 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5268 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5269 (get_gdb_index_contents_ftype): Change parameter from
5270 dwarf2_per_objfile to dwarf2_per_bfd.
5271 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5272 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5273
5274 2020-05-27 Tom Tromey <tom@tromey.com>
5275 Simon Marchi <simon.marchi@efficios.com>
5276
5277 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5278 (allocate_piece_closure): Set "per_objfile" member.
5279 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5280 (locexpr_describe_location, loclist_describe_location): Use new
5281 member.
5282 * dwarf2/read.c (read_call_site_scope)
5283 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5284 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5285 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5286 handle_data_member_location): Set per_objfile member.
5287 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5288 member.
5289 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5290
5291 2020-05-27 Tom Tromey <tom@tromey.com>
5292
5293 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5294 allocate_signatured_type>: Declare new methods.
5295 <m_num_psymtabs>: New member.
5296 (struct dwarf2_per_cu_data) <index>: New member.
5297 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5298 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5299 (create_cu_from_index_list): Use allocate_per_cu.
5300 (create_signatured_type_table_from_index)
5301 (create_signatured_type_table_from_debug_names)
5302 (create_debug_type_hash_table, add_type_unit)
5303 (read_comp_units_from_section): Use allocate_signatured_type.
5304
5305 2020-05-27 Tom Tromey <tom@tromey.com>
5306
5307 * psymtab.c (partial_map_expand_apply)
5308 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5309 (psym_lookup_global_symbol_language)
5310 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5311 (psym_print_stats, psym_expand_symtabs_for_function)
5312 (psym_map_symbol_filenames, psym_map_matching_symbols)
5313 (psym_expand_symtabs_matching)
5314 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5315 (maintenance_check_psymtabs): Update.
5316 * psympriv.h (struct partial_symtab) <readin_p,
5317 get_compunit_symtab>: Add objfile parameter.
5318 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5319 Likewise.
5320 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5321 get_compunit_symtab>: Likewise.
5322 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5323
5324 2020-05-27 Tom Tromey <tom@tromey.com>
5325
5326 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5327 member.
5328 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5329 (create_cu_from_index_list)
5330 (create_signatured_type_table_from_index)
5331 (create_signatured_type_table_from_debug_names)
5332 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5333 (dwarf2_create_include_psymtab)
5334 (create_debug_type_hash_table, add_type_unit)
5335 (create_type_unit_group, read_comp_units_from_section)
5336 (dwarf2_compute_name, create_cus_hash_table)
5337 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5338 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5339 obstack.
5340 (dw2_get_real_path): Likewise. Change argument to
5341 dwarf2_per_objfile.
5342
5343 2020-05-27 Luis Machado <luis.machado@linaro.org>
5344
5345 PR tdep/26000
5346 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5347 for ldrd (immediate).
5348
5349 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5350
5351 * command.h: Add comment giving the name of class_tui.
5352 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5353 create the fake command for the help for class_tui.
5354
5355 2020-05-26 Tom Tromey <tromey@adacore.com>
5356
5357 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5358 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5359 (val_atr): New function.
5360 (value_val_atr): Use it.
5361 * ada-valprint.c (print_optional_low_bound): Change low bound
5362 handling for enums.
5363 (val_print_packed_array_elements): Don't call discrete_position.
5364 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5365 discrete_position for enum types.
5366 * language.c (default_print_array_index): Change type.
5367 * language.h (struct language_defn) <la_print_array_index>: Add
5368 index_type parameter, change type of index_value.
5369 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5370 (default_print_array_index): Update.
5371 * valprint.c (maybe_print_array_index): Don't call
5372 value_from_longest. Update.
5373 (value_print_array_elements): Don't call discrete_position.
5374
5375 2020-05-26 Tom Tromey <tromey@adacore.com>
5376
5377 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5378 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5379
5380 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5381
5382 PR gdb/13519
5383 * avr-tdep.c (avr_integer_to_address): Return data or code
5384 address accordingly to the second 'type' argument of the
5385 function.
5386
5387 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5388
5389 * infcmd.c, inferior.h: (construct_inferior_arguments):
5390 Moved function from here to gdbsupport/common-inferior.{h,cc}
5391
5392 2020-05-23 Tom Tromey <tom@tromey.com>
5393
5394 Revert commit eca1f90c:
5395 * NEWS: Remove entry for completion styling.
5396 * completer.c (_rl_completion_prefix_display_length): Move
5397 declaration later.
5398 (gdb_fnprint): Revert.
5399 (gdb_display_match_list_1): Likewise.
5400 * cli/cli-style.c (completion_prefix_style)
5401 (completion_difference_style, completion_suffix_style): Remove.
5402 (_initialize_cli_style): Revert.
5403 * cli/cli-style.h (completion_prefix_style)
5404 (completion_difference_style, completion_suffix_style): Don't
5405 declare.
5406
5407 2020-05-24 Pedro Alves <palves@redhat.com>
5408
5409 * symtab.c (completion_list_add_name): Return boolean indication
5410 of whether the symbol matched.
5411 (completion_list_add_symbol): Don't try to remove C++ aliases if
5412 the symbol didn't match in the first place.
5413 * symtab.h (completion_list_add_name): Return bool.
5414
5415 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5416
5417 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5418 type::field.
5419
5420 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5421
5422 GDB 9.2 released.
5423
5424 2020-05-23 Tom Tromey <tom@tromey.com>
5425
5426 * NEWS: Add entry for completion styling.
5427 * completer.c (_rl_completion_prefix_display_length): Move
5428 declaration earlier.
5429 (gdb_fnprint): Use completion_style.
5430 (gdb_display_match_list_1): Likewise.
5431 * cli/cli-style.c (completion_prefix_style)
5432 (completion_difference_style, completion_suffix_style): New
5433 globals.
5434 (_initialize_cli_style): Register new globals.
5435 * cli/cli-style.h (completion_prefix_style)
5436 (completion_difference_style, completion_suffix_style): Declare.
5437
5438 2020-05-23 Pedro Alves <palves@redhat.com>
5439
5440 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5441 (parse_escape): Use ISDIGIT instead of isdigit.
5442 (puts_debug): Use gdb_isprint instead of isprint.
5443 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5444 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5445 ISSPACE instead of isspace.
5446 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5447 instead of isspace.
5448 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5449 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5450 instead of isxdigit and ISDIGIT instead of isdigit.
5451
5452 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5453
5454 * gdbtypes.h (struct type) <field>: New method.
5455 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5456 or type::field.
5457
5458 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5459
5460 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5461 (TYPE_FIELDS): Use type::fields. Change all call sites that
5462 modify the propery to use type::set_fields instead.
5463
5464 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5465
5466 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5467 type::num_fields instead.
5468
5469 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5470
5471 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5472 methods.
5473 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5474 that modify the number of fields to use type::set_num_fields
5475 instead.
5476
5477 2020-05-22 Tom Tromey <tromey@adacore.com>
5478
5479 * compile/compile-object-load.h (munmap_list_free): Don't
5480 declare.
5481
5482 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5483
5484 * annotate.c (annotate_source_line): Update return type, add call
5485 to update current symtab and line.
5486 * annotate.h (annotate_source_line): Update return type, and
5487 extend header comment.
5488 * source.c (info_line_command): Check annotation_level before
5489 calling annotate_source_line.
5490 * stack.c (print_frame_info): If calling annotate_source_line
5491 returns true, then don't print any other source line information.
5492
5493 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5494
5495 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5496
5497 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5498
5499 * coffread.c (patch_type): Remove NULL check before xfree.
5500 * corefile.c (set_gnutarget): Likewise.
5501 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5502 * exec.c (build_section_table): Likewise.
5503 * remote.c (remote_target::pass_signals): Likewise.
5504 * utils.c (n_spaces): Likewise.
5505 * cli/cli-script.c (document_command): Likewise.
5506 * i386-windows-tdep.c (core_process_module_section): Likewise.
5507 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5508
5509 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5510
5511 * symfile.c (reread_symbols): Clear objfile's section_offsets
5512 vector and section indices, re-compute them by calling
5513 sym_offsets.
5514
5515 2020-05-20 Tom Tromey <tromey@adacore.com>
5516
5517 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5518 (desc_one_bound, desc_index_type): Compute field name.
5519
5520 2020-05-20 Tom de Vries <tdevries@suse.de>
5521
5522 PR symtab/25833
5523 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5524
5525 2020-05-20 Alan Modra <amodra@gmail.com>
5526
5527 PR 25993
5528 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5529 bfd_set_filename.
5530 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5531 passed to bfd_set_filename.
5532 * symfile-mem.c (add_vsyscall_page): Likewise for string
5533 passed to symbol_file_add_from_memory.
5534 (symbol_file_add_from_memory): Make name param a const char* and
5535 don't strdup.
5536
5537 2020-05-20 Alan Modra <amodra@gmail.com>
5538
5539 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5540 rather than accessing bfd->filename directly.
5541 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5542 and use bfd_section_name.
5543 * dwarf2/frame.c (decode_frame_entry): Likewise.
5544 * exec.c (exec_set_section_address): Likewise.
5545 * solib-aix.c (solib_aix_bfd_open): Likewise.
5546 * stap-probe.c (get_stap_base_address): Likewise.
5547 * symfile.c (reread_symbols): Likewise.
5548
5549 2020-05-19 Tom Tromey <tromey@adacore.com>
5550
5551 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5552
5553 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5554
5555 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5556
5557 2020-05-19 Pedro Alves <palves@redhat.com>
5558
5559 * NEWS (set exec-file-mismatch): Adjust entry.
5560 * exec.c: Include "build-id.h".
5561 (validate_exec_file): Try to match build IDs instead of filenames.
5562 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5563 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5564 and pass down 'warn_if_slow'.
5565 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5566 gdb_bfd_open_closure to pass it down.
5567 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5568
5569 2020-05-19 Pedro Alves <palves@redhat.com>
5570
5571 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5572 * target.c (target_fileio_open_1): Rename to target_fileio_open
5573 and make extern. Use bool.
5574 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5575 (target_fileio_read_alloc_1): Adjust.
5576 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5577 (target_fileio_open_warn_if_slow): Delete declaration.
5578
5579 2020-05-19 Pedro Alves <palves@redhat.com>
5580
5581 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5582 Adjust all callers.
5583
5584 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5585
5586 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5587 whether disp is negative.
5588
5589 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5590
5591 * symfile.h (struct symfile_segment_data)
5592 <~symfile_segment_data>: Remove.
5593 <segment_info>: Change to std::vector.
5594 * symfile.c (default_symfile_segments): Update.
5595 * elfread.c (elf_symfile_segments): Update.
5596
5597 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5598
5599 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5600 <segments>: New.
5601 <segment_bases, segment_sizes>: Remove.
5602 * symfile.c (default_symfile_segments): Update.
5603 * elfread.c (elf_symfile_segments): Update.
5604 * remote.c (remote_target::get_offsets): Update.
5605 * solib-target.c (solib_target_relocate_section_addresses):
5606 Update.
5607
5608 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5609
5610 * symfile.h (struct symfile_segment_data): Initialize fields.
5611 <~symfile_segment_data>: Add.
5612 (symfile_segment_data_up): New.
5613 (struct sym_fns) <sym_segments>: Return a
5614 symfile_segment_data_up.
5615 (default_symfile_segments): Return a symfile_segment_data_up.
5616 (free_symfile_segment_data): Remove.
5617 (get_symfile_segment_data): Return a symfile_segment_data_up.
5618 * symfile.c (default_symfile_segments): Likewise.
5619 (get_symfile_segment_data): Likewise.
5620 (free_symfile_segment_data): Remove.
5621 (symfile_find_segment_sections): Update.
5622 * elfread.c (elf_symfile_segments): Return a
5623 symfile_segment_data_up.
5624 * remote.c (remote_target::get_offsets): Update.
5625 * solib-target.c (solib_target_relocate_section_addresses):
5626 Update.
5627 * symfile-debug.c (debug_sym_segments): Return a
5628 symfile_segment_data_up.
5629
5630 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5631
5632 PR build/25981
5633 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5634 Hardcode register numbers.
5635
5636 PR build/25981
5637 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5638 procfs_find_LDT_entry): Remove.
5639 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5640 procfs_find_LDT_entry): Remove.
5641 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5642 Remove.
5643
5644 2020-05-17 Pedro Alves <palves@redhat.com>
5645 Andrew Burgess <andrew.burgess@embecosm.com>
5646 Keno Fischer <keno@juliacomputing.com>
5647
5648 PR gdb/25741
5649 * breakpoint.c (build_target_condition_list): Update comments.
5650 (build_target_command_list): Update comments and skip matching
5651 locations.
5652 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5653 a separate function. Simplify "set breakpoint auto-hw off"
5654 handling.
5655 (insert_breakpoints): Update comment.
5656 (tracepoint_locations_match): New parameter. For breakpoints,
5657 compare location types too, if the caller wants to.
5658 (handle_automatic_hardware_breakpoints): New functions.
5659 (bp_location_is_less_than): Also sort by location type and
5660 hardware breakpoint length.
5661 (update_global_location_list): Handle "set breakpoint auto-hw on"
5662 here.
5663 (update_breakpoint_locations): Ask breakpoint_locations_match to
5664 ignore location types.
5665
5666 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5667
5668 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5669 type::name instead.
5670
5671 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5672
5673 * gdbtypes.h (struct type) <name, set_name>: New methods.
5674 (TYPE_CODE): Use type::name. Change all call sites used to set
5675 the name to use type::set_name instead.
5676
5677 2020-05-16 Tom Tromey <tom@tromey.com>
5678
5679 * top.c (quit_force): Update.
5680 * infrun.c (handle_no_resumed): Update.
5681 * top.h (all_uis): New function.
5682 (ALL_UIS): Remove.
5683
5684 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5685
5686 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5687
5688 2020-05-16 Pedro Alves <palves@redhat.com>
5689
5690 * ia64-linux-nat.c
5691 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5692 Declare method.
5693 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5694
5695 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5696
5697 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5698 (sparc64_adi_info): Likewise.
5699
5700 2020-05-15 Tom Tromey <tom@tromey.com>
5701
5702 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5703 block_objfile.
5704 (lookup_objfile_from_block): Remove.
5705 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5706 (lookup_global_symbol): Use block_objfile.
5707 * symtab.h (lookup_objfile_from_block): Don't declare.
5708 * printcmd.c (clear_dangling_display_expressions): Use
5709 block_objfile.
5710 * parse.c (operator_check_standard): Use block_objfile.
5711
5712 2020-05-15 Tom Tromey <tom@tromey.com>
5713
5714 * language.c (language_alloc_type_symbol): Set
5715 SYMBOL_SECTION.
5716 * symtab.c (initialize_objfile_symbol): Remove.
5717 (allocate_symbol): Remove.
5718 (allocate_template_symbol): Remove.
5719 * dwarf2/read.c (fixup_go_packaging): Use "new".
5720 (new_symbol): Use "new".
5721 (read_variable): Don't call initialize_objfile_symbol. Use
5722 "new".
5723 (read_func_scope): Use "new".
5724 * xcoffread.c (process_xcoff_symbol): Don't call
5725 initialize_objfile_symbol.
5726 (SYMBOL_DUP): Remove.
5727 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5728 "new".
5729 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5730 (allocate_template_symbol): Don't declare.
5731 (struct symbol): Add copy constructor. Change defaults.
5732 * jit.c (finalize_symtab): Use "new".
5733 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5734 Use "new".
5735 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5736 (common_block_end): Use "new".
5737 * mdebugread.c (parse_symbol): Use "new".
5738 (new_symbol): Likewise.
5739
5740 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5741
5742 * NEWS: Mention changes to help and apropos.
5743
5744 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5745
5746 * command.h (enum command_class): Improve comments, document
5747 that class_alias is for user-defined aliases, give the class
5748 name for each class, remove unused class_xdb.
5749 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5750 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5751 by a precise class.
5752 * infcmd.c (_initialize_infcmd): Likewise.
5753 * reverse.c (_initialize_reverse): Likewise.
5754 * stack.c (_initialize_stack): Likewise.
5755 * symfile.c (_initialize_symfile): Likewise.
5756 * tracepoint.c (_initialize_tracepoint): Likewise.
5757
5758 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5759
5760 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5761 when their aliased command is traversed.
5762 (help_cmd): Add fput_command_names_styled call to
5763 output command name and aliases when command has an alias.
5764
5765 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5766
5767 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5768 * cli/cli-decode.c (help_cmd_list): Declare as static,
5769 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5770 a command together with the command.
5771 (fput_command_name_styled, fput_command_names_styled): New functions.
5772 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5773 fput_command_name_styled.
5774 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5775 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5776
5777 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5778
5779 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5780 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5781 * command.h (cmd_show_list): Likewise.
5782 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5783 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5784
5785 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5786
5787 * unittests/command-def-selftests.c (traverse_command_structure):
5788 Verify all commands of a list have the same prefix command and
5789 that only the top cmdlist commands have a null prefix.
5790
5791 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5792
5793 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5794 as prefix, not one of its aliases.
5795 (set_cmd_prefix): Remove.
5796 (do_add_cmd): Centralize the setting of the prefix of a command, when
5797 command is defined after its full chain of prefix commands.
5798 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5799 (add_setshow_cmd_full): Likewise.
5800 (update_prefix_field_of_prefixed_commands): New function.
5801 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5802 update_prefix_field_of_prefixed_commands.
5803 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5804 addresses of remote_set_cmdlist and remote_show_cmdlist given
5805 as argument, not the address of an argument.
5806 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5807 * gdb/remote.c (_initialize_remote): Likewise.
5808
5809 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5810
5811 * cli/cli-cmds.c (alias_command): Check for an existing alias
5812 using lookup_cmd_composition, as valid_command_p is too strict
5813 and forbids aliases that are the prefix of an existing alias
5814 or command.
5815 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5816 command is properly recognised as a valid command.
5817
5818 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5819
5820 * unittests/help-doc-selftests.c: Rename to
5821 unittests/command-def-selftests.c
5822 * unittests/command-def-selftests.c (help_doc_tests): Update some
5823 comments.
5824 (command_structure_tests, traverse_command_structure): New namespace
5825 and function.
5826 (command_structure_invariants_tests): New function.
5827 (_initialize_command_def_selftests) Renamed from
5828 _initialize_help_doc_selftests, register command_structure_invariants
5829 selftest.
5830
5831 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5832
5833 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5834 an alias of 'show'.
5835
5836 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5837
5838 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5839 ada_is_fixed_point_type. Update all callers.
5840 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5841 all callers.
5842 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5843 Update all callers.
5844 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5845 print_fixed_point_type. Update all callers.
5846 * ada-valprint.c (ada_value_print_num): Replace call to
5847 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5848
5849 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5850
5851 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5852 processors.
5853 (cpu_supports_bts): Add CV_AMD case.
5854
5855 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5856 Simon Marchi <simon.marchi@efficios.com>
5857
5858 * infrun.c (stop_all_threads): Collect multiple wait events at
5859 each pass.
5860
5861 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5862
5863 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5864 type::code instead.
5865
5866 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5867
5868 * gdbtypes.h (struct type) <code, set_code>: New methods.
5869 (TYPE_CODE): Use type::code. Change all call sites used to set
5870 the code to use type::set_code instead.
5871
5872 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5873 Tom de Vries <tdevries@suse.de>
5874 Pedro Alves <palves@redhat.com>
5875
5876 PR threads/25478
5877 * infrun.c (stop_all_threads): Do NOT ignore
5878 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5879 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5880 received.
5881 (handle_no_resumed): Remove code handling a live inferior with no
5882 threads.
5883 * remote.c (has_single_non_exited_thread): New.
5884 (remote_target::update_thread_list): Do not delete a thread if is
5885 the last thread of the process.
5886 * thread.c (thread_select): Call delete_exited_threads instead of
5887 prune_threads.
5888
5889 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5890
5891 * infrun.c (stop_all_threads): Enable/disable thread events of all
5892 targets. Move a debug message denoting the end of the function
5893 into the SCOPED_EXIT block.
5894
5895 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5896
5897 * process-stratum-target.h: Include <set>.
5898 (all_non_exited_process_targets, switch_to_target_no_thread): New
5899 function declarations.
5900 * process-stratum-target.c (all_non_exited_process_targets)
5901 (switch_to_target_no_thread): New function implementations.
5902
5903 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5904
5905 * infrun.c (handle_inferior_event): Extract out a piece of code
5906 into...
5907 (mark_non_executing_threads): ...this new function.
5908
5909 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5910
5911 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5912 use.
5913
5914 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5915
5916 * regcache.c (regcache_read_pc_protected): New function
5917 implementation that returns 0 if the PC cannot read via
5918 'regcache_read_pc'.
5919 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5920 instead of 'regcache_read_pc'.
5921 (keep_going_pass_signal): Ditto.
5922
5923 2020-05-13 Tom Tromey <tromey@adacore.com>
5924
5925 * ada-lang.c (align_value): Remove.
5926 (ada_template_to_fixed_record_type_1): Use align_up.
5927
5928 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5929
5930 * async-event.c: Update the copyright year.
5931 * async-event.h: Update the copyright year.
5932
5933 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5934
5935 * objfiles.h (is_addr_in_objfile,
5936 shared_objfile_contains_address_p): Return bool.
5937 * objfile.c (is_addr_in_objfile,
5938 shared_objfile_contains_address_p): Return bool.
5939
5940 2020-05-11 Tom Tromey <tromey@adacore.com>
5941
5942 * cli/cli-cmds.c (info_command): Restore.
5943 (_initialize_cli_cmds): Use add_prefix_command for "info".
5944 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5945
5946 2020-05-11 Tom Tromey <tromey@adacore.com>
5947
5948 * ada-lang.c (ada_value_primitive_field): Now public.
5949 * ada-lang.h (ada_value_primitive_field): Declare.
5950 * ada-valprint.c (print_field_values): Use
5951 ada_value_primitive_field for wrapper fields.
5952
5953 2020-05-11 Tom de Vries <tdevries@suse.de>
5954
5955 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5956 MODULE_DOMAIN.
5957
5958 2020-05-11 Tom de Vries <tdevries@suse.de>
5959
5960 PR symtab/25941
5961 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5962 with length 0, if not gdb-produced.
5963 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5964
5965 2020-05-09 Tom de Vries <tdevries@suse.de>
5966
5967 PR gdb/25955
5968 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5969 calculation.
5970
5971 2020-05-09 Tom Tromey <tom@tromey.com>
5972
5973 * top.c (server_command): Now bool.
5974 * top.h (server_command): Now bool.
5975
5976 2020-05-08 Tom Tromey <tromey@adacore.com>
5977
5978 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5979 already being processed.
5980
5981 2020-05-08 Tom Tromey <tom@tromey.com>
5982
5983 * printcmd.c (struct display) <next>: Remove.
5984 <display>: New constructor.
5985 <exp_string>: Now a std::string.
5986 <enabled_p>: Now a bool.
5987 (display_number): Move definition earlier.
5988 (displays): Rename from display_chain. Now a std::vector.
5989 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5990 (display_command): Update.
5991 (do_one_display, disable_display)
5992 (enable_disable_display_command, do_enable_disable_display):
5993 Update.
5994 (free_display): Remove.
5995 (clear_displays): Rewrite.
5996 (delete_display): Update.
5997 (map_display_numbers): Use function_view. Remove "data"
5998 parameter. Update.
5999 (do_delete_display): Remove.
6000 (undisplay_command): Update.
6001 (do_one_display, do_displays, disable_display)
6002 (info_display_command): Update.
6003 (do_enable_disable_display): Remove.
6004 (enable_disable_display_command)
6005 (clear_dangling_display_expressions): Update.
6006
6007 2020-05-08 Tom Tromey <tom@tromey.com>
6008
6009 * symtab.c (set_symbol_cache_size)
6010 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6011 (maintenance_print_symbol_cache_statistics): Update.
6012 * symmisc.c (print_symbol_bcache_statistics)
6013 (print_objfile_statistics, maintenance_print_objfiles)
6014 (maintenance_info_symtabs, maintenance_check_symtabs)
6015 (maintenance_expand_symtabs, maintenance_info_line_tables):
6016 Update.
6017 * symfile-debug.c (set_debug_symfile): Update.
6018 * source.c (forget_cached_source_info): Update.
6019 * python/python.c (gdbpy_progspaces): Update.
6020 * psymtab.c (maintenance_info_psymtabs): Update.
6021 * probe.c (parse_probes): Update.
6022 * linespec.c (iterate_over_all_matching_symtabs)
6023 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6024 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6025 * exec.c (exec_target::close): Update.
6026 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6027 * breakpoint.c (print_one_breakpoint_location)
6028 (create_longjmp_master_breakpoint)
6029 (create_std_terminate_master_breakpoint): Update.
6030 * progspace.c (program_spaces): Now a std::vector.
6031 (maybe_new_address_space): Update.
6032 (add_program_space): Remove.
6033 (program_space::program_space): Update.
6034 (remove_program_space): Update.
6035 (number_of_program_spaces): Remove.
6036 (print_program_space, update_address_spaces): Update.
6037 * progspace.h (program_spaces): Change type.
6038 (ALL_PSPACES): Remove.
6039 (number_of_program_spaces): Don't declare.
6040 (struct program_space) <next>: Remove.
6041
6042 2020-05-08 Tom Tromey <tom@tromey.com>
6043
6044 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6045 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6046 (enable_break): Update.
6047 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6048 (frv_fdpic_find_canonical_descriptor): Update.
6049 (frv_fetch_objfile_link_map): Update.
6050 * progspace.c (program_space::free_all_objfiles): Update.
6051 (program_space::solibs): New method.
6052 * progspace.h (struct program_space) <solibs>: New method.
6053 * solist.h (master_so_list): Don't declare.
6054 (ALL_SO_LIBS): Remove.
6055 * solib.h (so_list_head): Remove.
6056 (update_solib_list): Update comment.
6057 * solib.c (master_so_list): Remove.
6058 (solib_used, update_solib_list, solib_add)
6059 (info_sharedlibrary_command, clear_solib)
6060 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6061
6062 2020-05-08 Tom Tromey <tom@tromey.com>
6063
6064 * extension.c (extension_languages): Now a std::array.
6065 (ALL_EXTENSION_LANGUAGES): Remove.
6066 (get_ext_lang_defn, get_ext_lang_of_file)
6067 (eval_ext_lang_from_control_command): Update.
6068 (finish_ext_lang_initialization)
6069 (auto_load_ext_lang_scripts_for_objfile)
6070 (ext_lang_type_printers::ext_lang_type_printers)
6071 (apply_ext_lang_type_printers)
6072 (ext_lang_type_printers::~ext_lang_type_printers)
6073 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6074 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6075 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6076 (get_matching_xmethod_workers, ext_lang_colorize)
6077 (ext_lang_before_prompt): Update.
6078 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6079
6080 2020-05-08 Tom Tromey <tom@tromey.com>
6081
6082 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6083 overload.
6084 <swap_string, m_string>: Remove.
6085 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6086 Update.
6087 * stabsread.c (define_symbol, read_type): Update.
6088 * linespec.c (find_linespec_symbols): Update.
6089 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6090 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6091 * dbxread.c (read_dbx_symtab): Update.
6092 * cp-support.h (cp_canonicalize_string_full)
6093 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6094 Return unique_xmalloc_ptr.
6095 * cp-support.c (inspect_type): Update.
6096 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6097 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6098 Likewise.
6099 * c-typeprint.c (print_name_maybe_canonical): Update.
6100 * break-catch-throw.c (check_status_exception_catchpoint):
6101 Update.
6102
6103 2020-05-08 Tom de Vries <tdevries@suse.de>
6104
6105 * infrun.c (follow_fork): Copy current_line and current_symtab to
6106 child thread.
6107
6108 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6109
6110 * async-event.c (struct async_signal_handler, struct
6111 async_event_handler): Reformat, remove typedef.
6112
6113 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6114
6115 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6116 access thistype->main_type->dyn_prop_list directly.
6117
6118 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6119
6120 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6121 (remove_dyn_prop): Remove. Update all users to use
6122 type::remove_dyn_prop.
6123 * gdbtypes.c (remove_dyn_prop): Rename to...
6124 (type::remove_dyn_prop): ... this.
6125
6126 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6127
6128 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6129 (add_dyn_prop): Remove. Update all users to use
6130 type::add_dyn_prop.
6131 * gdbtypes.c (add_dyn_prop): Rename to...
6132 (type::add_dyn_prop): ... this.
6133
6134 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6135
6136 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6137 (get_dyn_prop): Remove. Update all users to use
6138 type::dyn_prop.
6139 * gdbtypes.c (get_dyn_prop): Rename to...
6140 (type::dyn_prop): ... this.
6141
6142 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6143
6144 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6145
6146 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6147
6148 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6149 instruction, skip it if it's there.
6150
6151 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6152
6153 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6154
6155 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6156
6157 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6158 * gdbtypes.c (recursive_dump_type): Remove use of
6159 TYPE_INCOMPLETE.
6160
6161 2020-05-03 Tom Tromey <tom@tromey.com>
6162
6163 * breakpoint.c (catch_command, tcatch_command): Remove.
6164 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6165 add_show_prefix_cmd.
6166 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6167 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6168 Remove.
6169 (add_internal_problem_command): Use add_basic_prefix_cmd,
6170 add_show_prefix_cmd.
6171 * mips-tdep.c (set_mipsfpu_command): Remove.
6172 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6173 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6174 (_initialize_index_cache): Use add_basic_prefix_cmd.
6175 * memattr.c (dummy_cmd): Remove.
6176 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6177 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6178 (_initialize_tui_win): Use add_basic_prefix_cmd,
6179 add_show_prefix_cmd.
6180 * cli/cli-logging.c (set_logging_command): Remove.
6181 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6182 add_show_prefix_cmd.
6183 (show_logging_command): Remove.
6184 * target.c (target_command): Remove.
6185 (add_target): Use add_basic_prefix_cmd.
6186
6187 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6188
6189 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6190
6191 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6192
6193 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6194 info_command.
6195
6196 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6197
6198 * nbsd-nat.c (nbsd_enable_proc_events)
6199 (nbsd_nat_target::post_startup_inferior): Add.
6200 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6201 (nbsd_nat_target::update_thread_list): Rewrite.
6202 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6203 "PTRACE_LWP_CREATE".
6204 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6205
6206 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6207
6208 * stack.c (_initialize_stack): Remove duplicated creation
6209 of "frame" command and "f" alias.
6210
6211 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6212
6213 PR gdb/18706
6214 * gdbtypes.c (check_typedef): Calculate size of array of
6215 stubbed type.
6216
6217 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6218
6219 PR gdb/15559
6220 * i386-tdep.c (i386_push_dummy_call): Call
6221 i386_thiscall_push_dummy_call.
6222 (i386_thiscall_push_dummy_call): New function.
6223 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6224 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6225 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6226
6227 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6228
6229 * gdbarch.sh (do_read): Add shellcheck disable directive for
6230 warning SC2162.
6231
6232 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6233
6234 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6235 "referenced but not assigned" warning.
6236
6237 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6238
6239 * gdbarch.sh: Remove code that sets fallbackdefault.
6240
6241 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6242
6243 * gdbarch.sh: Use shell operators && and || instead of
6244 -a and -o.
6245
6246 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6247
6248 * gdbarch.sh: Use $(...) instead of `...`.
6249
6250 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6251
6252 * gdbarch.sh: Use double quotes around variables.
6253
6254 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6255
6256 * gdbarch.sh: Use %s with printf, instead of variables in the
6257 format string.
6258
6259 2020-04-29 Tom Tromey <tromey@adacore.com>
6260
6261 PR ada/25875:
6262 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6263 type fields here.
6264 (read_enumeration_type): Call
6265 update_enumeration_type_from_children later. Update comments.
6266 (process_enumeration_scope): Don't create type fields.
6267
6268 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6269
6270 * nbsd-tdep.c: Include "xml-syscall.h".
6271 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6272
6273 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6274
6275 * nbsd-nat.c: Include "sys/wait.h".
6276 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6277 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6278 (nbsd_nat_target::remove_exec_catchpoint)
6279 (nbsd_nat_target::set_syscall_catchpoint): Add.
6280 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6281 (nbsd_nat_target::insert_exec_catchpoint)
6282 (nbsd_nat_target::remove_exec_catchpoint)
6283 (nbsd_nat_target::set_syscall_catchpoint): Add.
6284 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6285 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6286 `nbsd_get_syscall_number'.
6287
6288 2020-04-29 Tom Tromey <tom@tromey.com>
6289
6290 * stack.c (print_block_frame_labels): Remove.
6291
6292 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6293
6294 PR gdb/17320
6295 * ada-valprint.c (val_print_packed_array_elements): Move array
6296 end bracket to new line.
6297 (ada_val_print_string): Remove extra spaces before first array
6298 element.
6299 * c-valprint.c (c_value_print_array): Likewise.
6300 * m2-valprint.c (m2_print_array_contents): Likewise.
6301 (m2_value_print_inner): Likewise.
6302 * p-valprint.c (pascal_value_print_inner): Likewise.
6303 * valprint.c (generic_val_print_array): Likewise.
6304 (value_print_array_elements): Move first array element and array
6305 end bracket to new line.
6306
6307 2020-04-29 Tom de Vries <tdevries@suse.de>
6308
6309 PR symtab/25889
6310 * linespec.c (find_method): Fix ix calculation.
6311
6312 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6313
6314 * syscalls/update-netbsd.sh: New file.
6315 * syscalls/netbsd.xml: Regenerate.
6316 * data-directory/Makefile.in: Register `netbsd.xml' in
6317 `SYSCALLS_FILES'.
6318
6319 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6320
6321 * syscalls/update-freebsd.sh: Add double quotes.
6322
6323 2020-04-28 Tom Tromey <tom@tromey.com>
6324
6325 * NEWS: Update.
6326 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6327 (cmdpy_init): Allow class_tui.
6328
6329 2020-04-28 Mark Williams <mark@myosotissp.com>
6330
6331 PR gdb/24480
6332 * dwarf2read.c: Add missing assingments to list_in_scope when
6333 start_symtab was already called.
6334
6335 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6336
6337 PR gdb/25881
6338 * dwarf2/read.c (offset_map_type): Use
6339 gdb:hash_enum<sect_offset> as hash function.
6340
6341 2020-04-28 Tom de Vries <tdevries@suse.de>
6342
6343 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6344 with DW_AT_signature.
6345
6346 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6347
6348 * configure.ac: Remove check for fs_base/gs_base in
6349 user_regs_struct.
6350 * configure: Re-generate.
6351 * config.in: Re-generate.
6352 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6353 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6354 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6355
6356 2020-04-27 Luis Machado <luis.machado@linaro.org>
6357
6358 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6359 problematic inline frame unwinding situation.
6360 * frame.c (frame_id_computed_p): New function.
6361 * frame.h (frame_id_computed_p): New prototype.
6362
6363 2020-04-26 Tom Tromey <tom@tromey.com>
6364
6365 * command.h (enum command_class) <class_pseudo>: Remove.
6366
6367 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6368
6369 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6370 and whitespace.
6371
6372 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6373
6374 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6375 `PT_GET_PROCESS_STATE' block.
6376
6377 2020-04-24 Tom Tromey <tom@tromey.com>
6378
6379 * symtab.h (symbol_get_demangled_name): Don't declare.
6380 * symtab.c (symbol_get_demangled_name): Remove.
6381 (general_symbol_info::natural_name)
6382 (general_symbol_info::demangled_name): Update.
6383
6384 2020-04-24 Tom Tromey <tom@tromey.com>
6385
6386 PR rust/25025:
6387 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6388
6389 2020-04-24 Tom Tromey <tom@tromey.com>
6390
6391 PR symtab/12707:
6392 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6393 exists.
6394 (new_symbol): Likewise.
6395 * compile/compile-object-load.c (get_out_value_type): Use
6396 symbol_matches_search_name.
6397
6398 2020-04-24 Tom Tromey <tom@tromey.com>
6399
6400 * dwarf2/read.c (add_partial_symbol): Do not call
6401 compute_and_set_names.
6402
6403 2020-04-24 Tom Tromey <tom@tromey.com>
6404
6405 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6406 overload.
6407
6408 2020-04-24 Tom Tromey <tom@tromey.com>
6409
6410 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6411 (add_psymbol_to_list): New overload. Make old overload call new
6412 one.
6413 * psympriv.h (add_psymbol_to_list): New overload.
6414
6415 2020-04-24 Tom Tromey <tom@tromey.com>
6416
6417 * dwarf2/read.c (partial_die_info::read) <case
6418 DW_AT_linkage_name>: Use value_as_string.
6419 (dwarf2_string_attr): Use value_as_string.
6420 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6421 method.
6422 * dwarf2/attribute.c (attribute::value_as_string): New method.
6423
6424 2020-04-24 Tom Tromey <tom@tromey.com>
6425
6426 * symtab.c (general_symbol_info::natural_name)
6427 (general_symbol_info::demangled_name): Check for language_rust.
6428
6429 2020-04-24 Tom Tromey <tom@tromey.com>
6430
6431 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6432 (dwarf2_physname): ... from here.
6433 (partial_die_info::read): Add Rust "{" hack.
6434
6435 2020-04-24 Tom Tromey <tom@tromey.com>
6436
6437 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6438 method.
6439 (symbol_set_demangled_name): Don't declare.
6440 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6441 symbol_set_demangled_name.
6442 (general_symbol_info::set_language)
6443 (general_symbol_info::compute_and_set_names): Update.
6444 * minsyms.c (minimal_symbol_reader::install): Update.
6445 * dwarf2/read.c (new_symbol): Update.
6446
6447 2020-04-24 Tom Tromey <tromey@adacore.com>
6448
6449 PR python/23662:
6450 * python/py-type.c (convert_field): Handle
6451 FIELD_LOC_KIND_DWARF_BLOCK.
6452 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6453 (typy_get_dynamic): Nw function.
6454 (type_object_getset): Add "dynamic".
6455 * NEWS: Add entry.
6456
6457 2020-04-24 Tom Tromey <tromey@adacore.com>
6458
6459 * ada-typeprint.c (print_choices, print_variant_part)
6460 (print_record_field_types_dynamic): New functions.
6461 (print_record_field_types): Use print_record_field_types_dynamic.
6462
6463 2020-04-24 Tom Tromey <tromey@adacore.com>
6464
6465 * dwarf2/read.c (handle_data_member_location): New overload.
6466 (dwarf2_add_field): Use it.
6467 (decode_locdesc): Add "computed" parameter. Update comment.
6468 * gdbtypes.c (is_dynamic_type_internal): Also look for
6469 FIELD_LOC_KIND_DWARF_BLOCK.
6470 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6471 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6472 virtual base classes.
6473 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6474 FIELD_LOC_KIND_DWARF_BLOCK.
6475
6476 2020-04-24 Tom Tromey <tromey@adacore.com>
6477
6478 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6479 * gdbtypes.c (is_dynamic_type_internal): Check
6480 TYPE_HAS_DYNAMIC_LENGTH.
6481 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6482 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6483 New macros.
6484 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6485 constant.
6486
6487 2020-04-24 Tom Tromey <tromey@adacore.com>
6488
6489 * dwarf2/read.c (struct variant_field): Rewrite.
6490 (struct variant_part_builder): New.
6491 (struct nextfield): Remove "variant" field. Add "offset".
6492 (struct field_info): Add "current_variant_part" and
6493 "variant_parts".
6494 (alloc_discriminant_info): Remove.
6495 (alloc_rust_variant): New function.
6496 (quirk_rust_enum): Update.
6497 (dwarf2_add_field): Set "offset" member. Don't handle
6498 DW_TAG_variant_part.
6499 (offset_map_type): New typedef.
6500 (convert_variant_range, create_one_variant)
6501 (create_one_variant_part, create_variant_parts)
6502 (add_variant_property): New functions.
6503 (dwarf2_attach_fields_to_type): Call add_variant_property.
6504 (read_structure_type): Don't handle DW_TAG_variant_part.
6505 (handle_variant_part, handle_variant): New functions.
6506 (handle_struct_member_die): Use them.
6507 (process_structure_scope): Don't handle variant parts.
6508 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6509 (struct discriminant_info): Remove.
6510 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6511 (struct main_type) <flag_discriminated_union>: Remove.
6512 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6513 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6514 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6515 Update.
6516 * valops.c (value_union_variant): Remove.
6517 * value.h (value_union_variant): Don't declare.
6518
6519 2020-04-24 Tom Tromey <tromey@adacore.com>
6520
6521 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6522 (ada_value_primitive_packed_val): Update.
6523 * ada-valprint.c (ada_value_print_1): Update.
6524 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6525 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6526 just an address. Use evaluate_for_locexpr_baton.
6527 (dwarf2_evaluate_property): Update.
6528 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6529 array_view.
6530 * findvar.c (default_read_var_value): Update.
6531 * gdbtypes.c (compute_variant_fields_inner)
6532 (resolve_dynamic_type_internal): Update.
6533 (resolve_dynamic_type): Change type of valaddr parameter.
6534 * gdbtypes.h (resolve_dynamic_type): Update.
6535 * valarith.c (value_subscripted_rvalue): Update.
6536 * value.c (value_from_contents_and_address): Update.
6537
6538 2020-04-24 Tom Tromey <tromey@adacore.com>
6539
6540 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6541 "push_initial_value" parameter.
6542 (dwarf2_evaluate_property): Likewise.
6543 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6544
6545 2020-04-24 Tom Tromey <tromey@adacore.com>
6546
6547 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6548 (variant::matches, compute_variant_fields_recurse)
6549 (compute_variant_fields_inner, compute_variant_fields): New
6550 functions.
6551 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6552 Use resolved_type after type is made.
6553 (operator==): Add new cases.
6554 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6555 (struct discriminant_range, struct variant, struct variant_part):
6556 New.
6557 (union dynamic_prop_data) <variant_parts, original_type>: New
6558 members.
6559 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6560 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6561 constants.
6562 * value.c (unpack_bits_as_long): Now public.
6563 * value.h (unpack_bits_as_long): Declare.
6564
6565 2020-04-24 Tom Tromey <tromey@adacore.com>
6566
6567 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6568 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6569
6570 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6571
6572 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6573
6574 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6575
6576 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6577 (remove_fork_catchpoint, post_startup_inferior)
6578 (post_attach): Move...
6579 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6580 (remove_fork_catchpoint, post_startup_inferior)
6581 (post_attach): ...here.
6582 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6583 (remove_fork_catchpoint, post_startup_inferior)
6584 (post_attach): Move...
6585 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6586 (remove_fork_catchpoint, post_startup_inferior)
6587 (post_attach): ...here.
6588
6589 2020-04-24 Tom Tromey <tromey@adacore.com>
6590
6591 * nat/windows-nat.h (struct windows_thread_info)
6592 <pc_adjusted>: New member.
6593 * windows-nat.c (windows_fetch_one_register): Check
6594 pc_adjusted.
6595 (windows_nat_target::get_windows_debug_event)
6596 (windows_nat_target::wait): Set pc_adjusted.
6597
6598 2020-04-24 Tom de Vries <tdevries@suse.de>
6599
6600 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6601 Run gdb-add-index inside temp dir.
6602
6603 2020-04-23 Tom Tromey <tromey@adacore.com>
6604
6605 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6606 in loop.
6607
6608 2020-04-23 Luis Machado <luis.machado@linaro.org>
6609
6610 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6611 get_frame_register instead of gdbarch_unwind_pc.
6612
6613 2020-04-23 Tom de Vries <tdevries@suse.de>
6614
6615 * symtab.c (lookup_global_symbol): Prefer def over decl.
6616
6617 2020-04-23 Tom de Vries <tdevries@suse.de>
6618
6619 PR symtab/25807
6620 * block.c (best_symbol, better_symbol): Promote to external.
6621 * block.h (best_symbol, better_symbol): Declare.
6622 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6623 decl.
6624
6625 2020-04-23 Tom Tromey <tromey@adacore.com>
6626
6627 PR ada/25837:
6628 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6629 "const char *", not a "const std::string &".
6630 <name_and_matcher::operator==>: Update.
6631 * unittests/lookup_name_info-selftests.c: Change type of
6632 "result".
6633
6634 2020-04-23 Tom Tromey <tom@tromey.com>
6635
6636 * inferior.h (iterate_over_inferiors): Don't declare.
6637 * inferior.c (iterate_over_inferiors): Remove.
6638 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6639 Remove.
6640 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6641 use iterate_over_inferiors.
6642 (darwin_resume_inferior_it)
6643 (struct resume_inferior_threads_param)
6644 (darwin_resume_inferior_threads_it): Remove.
6645 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6646
6647 2020-04-23 Tom de Vries <tdevries@suse.de>
6648
6649 * blockframe.c (find_pc_partial_function): Use
6650 find_pc_sect_compunit_symtab rather than
6651 objfile->sf->qf->find_pc_sect_compunit_symtab.
6652
6653 2020-04-22 Tom de Vries <tdevries@suse.de>
6654
6655 PR symtab/25764
6656 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6657 in psymtabs.
6658
6659 2020-04-22 Tom de Vries <tdevries@suse.de>
6660
6661 PR symtab/25801
6662 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6663 symtabs.
6664
6665 2020-04-22 Tom de Vries <tdevries@suse.de>
6666
6667 PR symtab/25700
6668 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6669 CU if already created.
6670
6671 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6672
6673 * infrun.c (displaced_step_fixup): Switch to the event_thread
6674 before calling displaced_step_restore, not after.
6675
6676 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6677
6678 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6679 its inferior is not recorded by us.
6680 (record_btrace_target_open): Replace call to
6681 all_non_exited_threads () with call to current_inferior
6682 ()->non_exited_threads ().
6683 (record_btrace_target::stop_recording): Likewise.
6684 (record_btrace_target::close): Likewise.
6685 (record_btrace_target::wait): Likewise.
6686 (record_btrace_target::record_stop_replaying): Likewise.
6687
6688 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6689
6690 * btrace.c (btrace_enable): Throw an error on double enables and
6691 when enabling recording fails.
6692 (btrace_disable): Throw an error if the thread is not recorded.
6693
6694 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6695
6696 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6697 request if we do not have a thread_info.
6698
6699 2020-04-21 Tom de Vries <tdevries@suse.de>
6700
6701 PR gdb/25471
6702 * thread.c
6703 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6704 exception in get_frame_id.
6705
6706 2020-04-20 Tom Tromey <tromey@adacore.com>
6707
6708 * python/python.c (struct gdbpy_event): Mark move constructor as
6709 noexcept.
6710 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6711 constructor as noexcept.
6712 * completer.h (struct completion_result): Mark move constructor as
6713 noexcept.
6714 * completer.c (completion_result::completion_result): Use
6715 initialization style. Don't call reset_match_list.
6716
6717 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6718
6719 * MAINTAINERS (Write After Approval): Add myself.
6720
6721 2020-04-18 Tom Tromey <tom@tromey.com>
6722
6723 * windows-tdep.c (init_w32_command_list)
6724 (w32_prefix_command_valid): Restore.
6725 (_initialize_windows_tdep): Call init_w32_command_list.
6726
6727 2020-04-18 Tom Tromey <tom@tromey.com>
6728
6729 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6730 * value.c (value_fn_field): Update.
6731 * valops.c (find_function_in_inferior)
6732 (value_allocate_space_in_inferior): Update.
6733 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6734 Update.
6735 * tui/tui-source.c (tui_source_window::set_contents): Update.
6736 * symtab.c (lookup_global_or_static_symbol)
6737 (find_function_start_sal_1, skip_prologue_sal)
6738 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6739 * symmisc.c (dump_msymbols, dump_symtab_1)
6740 (maintenance_print_one_line_table): Update.
6741 * symfile.c (init_entry_point_info, section_is_mapped)
6742 (list_overlays_command, simple_read_overlay_table)
6743 (simple_overlay_update_1): Update.
6744 * stap-probe.c (handle_stap_probe): Update.
6745 * stabsread.c (dbx_init_float_type, define_symbol)
6746 (read_one_struct_field, read_enum_type, read_range_type): Update.
6747 * source.c (info_line_command): Update.
6748 * python/python.c (gdbpy_source_objfile_script)
6749 (gdbpy_execute_objfile_script): Update.
6750 * python/py-type.c (save_objfile_types): Update.
6751 * python/py-objfile.c (py_free_objfile): Update.
6752 * python/py-inferior.c (python_new_objfile): Update.
6753 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6754 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6755 (maintenance_check_psymtabs): Update.
6756 * printcmd.c (info_address_command): Update.
6757 * objfiles.h (struct objfile) <arch>: New method, from
6758 get_objfile_arch.
6759 (get_objfile_arch): Don't declare.
6760 * objfiles.c (get_objfile_arch): Remove.
6761 (filter_overlapping_sections): Update.
6762 * minsyms.c (msymbol_is_function): Update.
6763 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6764 (output_nondebug_symbol): Update.
6765 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6766 (mdebug_expand_psymtab): Update.
6767 * machoread.c (macho_add_oso_symfile): Update.
6768 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6769 Update.
6770 * linux-fork.c (checkpoint_command): Update.
6771 * linespec.c (convert_linespec_to_sals): Update.
6772 * jit.c (finalize_symtab): Update.
6773 * infrun.c (insert_exception_resume_from_probe): Update.
6774 * ia64-tdep.c (ia64_find_unwind_table): Update.
6775 * hppa-tdep.c (internalize_unwinds): Update.
6776 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6777 Update.
6778 * gcore.c (call_target_sbrk): Update.
6779 * elfread.c (record_minimal_symbol, elf_symtab_read)
6780 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6781 (elf_gnu_ifunc_resolve_by_got): Update.
6782 * dwarf2/read.c (create_addrmap_from_index)
6783 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6784 (read_debug_names_from_section)
6785 (process_psymtab_comp_unit_reader, add_partial_symbol)
6786 (add_partial_subprogram, process_full_comp_unit)
6787 (read_file_scope, read_func_scope, read_lexical_block_scope)
6788 (read_call_site_scope, dwarf2_ranges_read)
6789 (dwarf2_record_block_ranges, dwarf2_add_field)
6790 (mark_common_block_symbol_computed, read_tag_pointer_type)
6791 (read_tag_string_type, dwarf2_init_float_type)
6792 (dwarf2_init_complex_target_type, read_base_type)
6793 (partial_die_info::read, partial_die_info::read)
6794 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6795 (dwarf2_fetch_die_loc_sect_off): Update.
6796 * dwarf2/loc.c (dwarf2_find_location_expression)
6797 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6798 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6799 (dwarf2_loc_desc_get_symbol_read_needs)
6800 (locexpr_describe_location_piece, locexpr_describe_location_1)
6801 (loclist_describe_location): Update.
6802 * dwarf2/index-write.c (write_debug_names): Update.
6803 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6804 * dtrace-probe.c (dtrace_process_dof): Update.
6805 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6806 (process_one_symbol): Update.
6807 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6808 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6809 (coff_read_enum_type): Update.
6810 * cli/cli-cmds.c (edit_command, list_command): Update.
6811 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6812 * breakpoint.c (create_overlay_event_breakpoint)
6813 (create_longjmp_master_breakpoint)
6814 (create_std_terminate_master_breakpoint)
6815 (create_exception_master_breakpoint, get_sal_arch): Update.
6816 * block.c (block_gdbarch): Update.
6817 * annotate.c (annotate_source_line): Update.
6818
6819 2020-04-17 Tom Tromey <tromey@adacore.com>
6820
6821 * auto-load.c (show_auto_load_cmd): Remove.
6822 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6823 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6824 (maintenance_print_arc_command): Remove.
6825 * tui/tui-win.c (tui_command): Remove.
6826 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6827 * tui/tui-layout.c (tui_layout_command): Remove.
6828 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6829 * python/python.c (user_set_python, user_show_python): Remove.
6830 (_initialize_python): Use add_basic_prefix_cmd,
6831 add_show_prefix_cmd.
6832 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6833 (install_gdb_commands): Use add_basic_prefix_cmd,
6834 add_show_prefix_cmd.
6835 (info_guile_command): Remove.
6836 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6837 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6838 add_show_prefix_cmd.
6839 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6840 Remove do_set and do_show parameters.
6841 * cli/cli-style.c (set_style, show_style): Remove.
6842 (_initialize_cli_style): Use add_basic_prefix_cmd,
6843 add_show_prefix_cmd.
6844 (cli_style_option::add_setshow_commands): Remove do_set and
6845 do_show parameters.
6846 (cli_style_option::add_setshow_commands): Use
6847 add_basic_prefix_cmd, add_show_prefix_cmd.
6848 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6849 (set_style_name): Remove.
6850 * cli/cli-dump.c (dump_command, append_command): Remove.
6851 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6852 (tekhex_dump_command, binary_dump_command)
6853 (binary_append_command): Remove.
6854 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6855 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6856 (init_w32_command_list): Remove; move into ...
6857 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6858 * valprint.c (set_print, show_print, set_print_raw)
6859 (show_print_raw): Remove.
6860 (_initialize_valprint): Use add_basic_prefix_cmd,
6861 add_show_prefix_cmd.
6862 * typeprint.c (set_print_type, show_print_type): Remove.
6863 (_initialize_typeprint): Use add_basic_prefix_cmd,
6864 add_show_prefix_cmd.
6865 * record.c (set_record_command, show_record_command): Remove.
6866 (_initialize_record): Use add_basic_prefix_cmd,
6867 add_show_prefix_cmd.
6868 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6869 add_show_prefix_cmd.
6870 (info_command, show_command, set_debug, show_debug): Remove.
6871 * top.h (set_history, show_history): Don't declare.
6872 * top.c (set_history, show_history): Remove.
6873 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6874 (unset_tdesc_cmd): Remove.
6875 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6876 add_show_prefix_cmd.
6877 * symtab.c (info_module_command): Remove.
6878 (_initialize_symtab): Use add_basic_prefix_cmd.
6879 * symfile.c (overlay_command): Remove.
6880 (_initialize_symfile): Use add_basic_prefix_cmd.
6881 * sparc64-tdep.c (info_adi_command): Remove.
6882 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6883 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6884 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6885 add_show_prefix_cmd.
6886 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6887 (_initialize_serial): Use add_basic_prefix_cmd,
6888 add_show_prefix_cmd.
6889 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6890 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6891 add_show_prefix_cmd.
6892 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6893 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6894 add_show_prefix_cmd.
6895 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6896 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6897 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6898 add_show_prefix_cmd.
6899 * remote.c (remote_command, set_remote_cmd): Remove.
6900 (_initialize_remote): Use add_basic_prefix_cmd.
6901 * record-full.c (set_record_full_command)
6902 (show_record_full_command): Remove.
6903 (_initialize_record_full): Use add_basic_prefix_cmd,
6904 add_show_prefix_cmd.
6905 * record-btrace.c (cmd_set_record_btrace)
6906 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6907 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6908 (cmd_show_record_btrace_pt): Remove.
6909 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6910 add_show_prefix_cmd.
6911 * ravenscar-thread.c (set_ravenscar_command)
6912 (show_ravenscar_command): Remove.
6913 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6914 add_show_prefix_cmd.
6915 * mips-tdep.c (show_mips_command, set_mips_command)
6916 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6917 add_show_prefix_cmd.
6918 * maint.c (maintenance_command, maintenance_info_command)
6919 (maintenance_check_command, maintenance_print_command)
6920 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6921 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6922 add_show_prefix_cmd.
6923 (show_per_command_cmd): Remove.
6924 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6925 Remove.
6926 (maintenance_show_test_settings_cmd): Remove.
6927 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6928 add_show_prefix_cmd.
6929 * maint-test-options.c (maintenance_test_options_command):
6930 Remove.
6931 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6932 * macrocmd.c (macro_command): Remove
6933 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6934 * language.c (set_check, show_check): Remove.
6935 (_initialize_language): Use add_basic_prefix_cmd,
6936 add_show_prefix_cmd.
6937 * infcmd.c (unset_command): Remove.
6938 (_initialize_infcmd): Use add_basic_prefix_cmd.
6939 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6940 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6941 add_show_prefix_cmd.
6942 * go32-nat.c (go32_info_dos_command): Remove.
6943 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6944 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6945 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6946 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6947 (_initialize_frame): Use add_basic_prefix_cmd,
6948 add_show_prefix_cmd.
6949 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6950 (_initialize_dcache): Use add_basic_prefix_cmd,
6951 add_show_prefix_cmd.
6952 * cp-support.c (maint_cplus_command): Remove.
6953 (_initialize_cp_support): Use add_basic_prefix_cmd.
6954 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6955 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6956 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6957 add_basic_prefix_cmd, add_show_prefix_cmd.
6958 * breakpoint.c (save_command): Remove.
6959 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6960 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6961 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6962 add_show_prefix_cmd.
6963 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6964 (set_ada_command, show_ada_command): Remove.
6965 (_initialize_ada_language): Use add_basic_prefix_cmd,
6966 add_show_prefix_cmd.
6967 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6968
6969 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6970
6971 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6972 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6973
6974 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6975
6976 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6977 warning messages.
6978
6979 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6980
6981 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6982 import table is not at beginning of .idata section.
6983
6984 2020-04-16 Pedro Alves <palves@redhat.com>
6985
6986 * inferior.c (delete_inferior): Use delete operator directly
6987 instead of delete_program_space.
6988 * progspace.c (add_program_space): New, factored out from
6989 program_space::program_space.
6990 (remove_program_space): New, factored out from
6991 delete_program_space.
6992 (program_space::program_space): Remove intro comment. Rewrite.
6993 (program_space::~program_space): Remove intro comment. Call
6994 remove_program_space.
6995 (delete_program_space): Delete.
6996 * progspace.h (program_space::program_space): Make explicit. Move
6997 intro comment here, adjusted.
6998 (program_space::~program_space): Move intro comment here,
6999 adjusted.
7000 (delete_program_space): Remove.
7001
7002 2020-04-16 Tom Tromey <tromey@adacore.com>
7003
7004 * windows-nat.c (windows_nat::handle_access_violation): New
7005 function.
7006 * nat/windows-nat.h (handle_access_violation): Declare.
7007 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7008 windows-nat.c. Call handle_access_violation.
7009
7010 2020-04-16 Tom de Vries <tdevries@suse.de>
7011
7012 PR symtab/25791
7013 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7014 CUs without psymtab.
7015
7016 2020-04-16 Kevin Buettner <kevinb@redhat.com>
7017
7018 * python/python.c (do_start_initialization): Don't call
7019 PyEval_InitThreads for Python 3.9 and beyond.
7020
7021 2020-04-15 Kamil Rytarowski <n54@gmx.com>
7022
7023 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7024 thread functions.
7025 (obsd_nat_target::wait): Likewise.
7026
7027 2020-04-15 Tom Tromey <tromey@adacore.com>
7028
7029 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7030 (DEBUG_EXCEPT): Use debug_printf.
7031
7032 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7033
7034 * completer.c (class completion_tracker::completion_hash_entry)
7035 <hash_name>: New member function.
7036 (completion_tracker::discard_completions): New callback to hash a
7037 completion_hash_entry, pass this to htab_create_alloc.
7038
7039 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7040
7041 * windows-nat.c (windows_make_so): Warn rather than stopping with
7042 an error if realpath() fails.
7043
7044 2020-04-14 Kamil Rytarowski <n54@gmx.com>
7045
7046 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7047 (nbsd_nat_target::info_proc): Add do_status.
7048
7049 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7050 Tom de Vries <tdevries@suse.de>
7051
7052 PR symtab/25718
7053 * psympriv.h (struct partial_symtab::read_symtab)
7054 (struct partial_symtab::expand_psymtab)
7055 (struct partial_symtab::read_dependencies): Update comments.
7056 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7057 read_symtab for includer.
7058 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7059 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7060 (struct dwarf2_include_psymtab::m_readin): Remove.
7061 (struct dwarf2_include_psymtab::includer): New member function.
7062 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7063
7064 2020-04-14 Tom de Vries <tdevries@suse.de>
7065
7066 PR symtab/25720
7067 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7068 with NULL symbol_matcher and lookup_name.
7069 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7070 and lookup_name.
7071 * dwarf2/read.c (dw2_expand_symtabs_matching)
7072 (dw2_debug_names_expand_symtabs_matching): Same.
7073 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7074 Make lookup_name a pointer. Update comment.
7075 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7076 lookup_name being a pointer.
7077 * symfile.c (expand_symtabs_matching): Same.
7078 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7079 * linespec.c (iterate_over_all_matching_symtabs): Same.
7080
7081 2020-04-13 Tom Tromey <tom@tromey.com>
7082
7083 * run-on-main-thread.c: Update include.
7084 * unittests/main-thread-selftests.c: Update include.
7085 * tui/tui-win.c: Update include.
7086 * tui/tui-io.c: Update include.
7087 * tui/tui-interp.c: Update include.
7088 * tui/tui-hooks.c: Update include.
7089 * top.h: Update include.
7090 * top.c: Update include.
7091 * ser-base.c: Update include.
7092 * remote.c: Update include.
7093 * remote-notif.c: Update include.
7094 * remote-fileio.c: Update include.
7095 * record-full.c: Update include.
7096 * record-btrace.c: Update include.
7097 * python/python.c: Update include.
7098 * posix-hdep.c: Update include.
7099 * mingw-hdep.c: Update include.
7100 * mi/mi-main.c: Update include.
7101 * mi/mi-interp.c: Update include.
7102 * main.c: Update include.
7103 * linux-nat.c: Update include.
7104 * interps.c: Update include.
7105 * infrun.c: Update include.
7106 * inf-loop.c: Update include.
7107 * event-top.c: Update include.
7108 * event-loop.c: Move to ../gdbsupport/.
7109 * event-loop.h: Move to ../gdbsupport/.
7110 * async-event.h: Update include.
7111 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7112
7113 2020-04-13 Tom Tromey <tom@tromey.com>
7114
7115 * tui/tui-win.c: Include async-event.h.
7116 * remote.c: Include async-event.h.
7117 * remote-notif.c: Include async-event.h.
7118 * record-full.c: Include async-event.h.
7119 * record-btrace.c: Include async-event.h.
7120 * infrun.c: Include async-event.h.
7121 * event-top.c: Include async-event.h.
7122 * event-loop.h: Move some declarations to async-event.h.
7123 * event-loop.c: Don't include ser-event.h or top.h. Move some
7124 code to async-event.c.
7125 * async-event.h: New file.
7126 * async-event.c: New file.
7127 * Makefile.in (COMMON_SFILES): Add async-event.c.
7128 (HFILES_NO_SRCDIR): Add async-event.h.
7129
7130 2020-04-13 Tom Tromey <tom@tromey.com>
7131
7132 * utils.c (flush_streams): New function.
7133 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7134
7135 2020-04-13 Tom Tromey <tom@tromey.com>
7136
7137 * event-loop.c (handle_file_event): Use warning, not
7138 printf_unfiltered.
7139
7140 2020-04-13 Tom Tromey <tom@tromey.com>
7141
7142 * event-loop.c: Include <chrono>.
7143
7144 2020-04-13 Tom Tromey <tom@tromey.com>
7145
7146 * gdb_select.h: Move to ../gdbsupport/.
7147 * event-loop.c: Update include path.
7148 * top.c: Update include path.
7149 * ser-base.c: Update include path.
7150 * ui-file.c: Update include path.
7151 * ser-tcp.c: Update include path.
7152 * guile/scm-ports.c: Update include path.
7153 * posix-hdep.c: Update include path.
7154 * ser-unix.c: Update include path.
7155 * gdb_usleep.c: Update include path.
7156 * mingw-hdep.c: Update include path.
7157 * inflow.c: Update include path.
7158 * infrun.c: Update include path.
7159 * event-top.c: Update include path.
7160
7161 2020-04-13 Tom Tromey <tom@tromey.com>
7162
7163 * configure: Rebuild.
7164 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7165
7166 2020-04-13 Tom Tromey <tom@tromey.com>
7167
7168 * event-loop.h (start_event_loop): Don't declare.
7169 * event-loop.c (start_event_loop): Move...
7170 * main.c (start_event_loop): ...here. Now static.
7171
7172 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7173
7174 * MAINTAINERS: Update my email address.
7175
7176 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7177
7178 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7179 IP_ALL.
7180
7181 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7182
7183 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7184 (nbsd_nat_target::info_proc): Add do_cmdline.
7185
7186 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7187
7188 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7189 (nbsd_nat_target::info_proc): Add do_cwd.
7190
7191 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7192
7193 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7194
7195 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7196
7197 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7198 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7199 (nbsd_nat_target::info_proc): New functions.
7200 * nbsd-nat.c (kinfo_get_vmmap): New function.
7201 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7202 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7203 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7204 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7205 functions.
7206 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7207 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7208 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7209 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7210 (KINFO_VME_FLAG_GROWS_DOWN): New.
7211
7212 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7213
7214 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7215 bit shift.
7216
7217 2020-04-10 Tom Tromey <tromey@adacore.com>
7218
7219 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7220
7221 2020-04-10 Tom Tromey <tromey@adacore.com>
7222
7223 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7224 separate debug files.
7225
7226 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7227
7228 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7229 Move to...
7230 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7231 ... here.
7232 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7233 Check for STATUS_WX86_BREAKPOINT.
7234 (windows_nat_target::wait): Same.
7235
7236 2020-04-10 Tom de Vries <tdevries@suse.de>
7237
7238 PR cli/25808
7239 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7240
7241 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7242
7243 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7244 (Write After Approval): Remove Tom de Vries.
7245
7246 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7247
7248 revert partially:
7249 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7250
7251 * buildsym.c (record_line): Fix undefined behavior and preserve
7252 lines at eof.
7253
7254 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7255
7256 * auxv.h (svr4_auxv_parse): New.
7257 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7258 and generic_auxv_parse.
7259 (svr4_auxv_parse): Add.
7260 * obsd-tdep.c: Include "auxv.h".
7261 (obsd_auxv_parse): Remove.
7262 (obsd_init_abi): Remove comment.
7263 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7264 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7265 * nbsd-tdep.c: Include "auxv.h".
7266 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7267
7268 2020-04-08 Tom Tromey <tromey@adacore.com>
7269
7270 * nat/windows-nat.h (last_wait_event): Don't declare.
7271 (wait_for_debug_event): Update comment.
7272 * nat/windows-nat.c (last_wait_event): Now static.
7273
7274 2020-04-08 Tom Tromey <tromey@adacore.com>
7275
7276 * windows-nat.c (wait_for_debug_event): Move to
7277 nat/windows-nat.c.
7278 * nat/windows-nat.h (wait_for_debug_event): Declare.
7279 * nat/windows-nat.c (wait_for_debug_event): Move from
7280 windows-nat.c. No longer static.
7281
7282 2020-04-08 Tom Tromey <tromey@adacore.com>
7283
7284 * windows-nat.c (get_windows_debug_event): Use
7285 fetch_pending_stop.
7286 * nat/windows-nat.h (fetch_pending_stop): Declare.
7287 * nat/windows-nat.c (fetch_pending_stop): New function.
7288
7289 2020-04-08 Tom Tromey <tromey@adacore.com>
7290
7291 * windows-nat.c (windows_continue): Use matching_pending_stop and
7292 continue_last_debug_event.
7293 * nat/windows-nat.h (matching_pending_stop)
7294 (continue_last_debug_event): Declare.
7295 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7296 (matching_pending_stop, continue_last_debug_event): New
7297 functions.
7298
7299 2020-04-08 Tom Tromey <tromey@adacore.com>
7300
7301 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7302 (handle_exception_result): Move to nat/windows-nat.h.
7303 (DEBUG_EXCEPTION_SIMPLE): Remove.
7304 (windows_nat::handle_ms_vc_exception): New function.
7305 (handle_exception): Move to nat/windows-nat.c.
7306 (get_windows_debug_event): Update.
7307 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7308 nat/windows-nat.c.
7309 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7310 (handle_exception_result): Move from windows-nat.c.
7311 (handle_exception): Declare.
7312 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7313 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7314 windows-nat.c.
7315
7316 2020-04-08 Tom Tromey <tromey@adacore.com>
7317
7318 * windows-nat.c (exception_count, event_count): Remove.
7319 (handle_exception, get_windows_debug_event)
7320 (do_initial_windows_stuff): Update.
7321
7322 2020-04-08 Tom Tromey <tromey@adacore.com>
7323
7324 * windows-nat.c (windows_nat::handle_load_dll)
7325 (windows_nat::handle_unload_dll): Rename. No longer static.
7326 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7327 Declare.
7328
7329 2020-04-08 Tom Tromey <tromey@adacore.com>
7330
7331 * complaints.h (stop_whining): Declare at top-level.
7332 (complaint): Don't declare stop_whining.
7333
7334 2020-04-08 Tom Tromey <tromey@adacore.com>
7335
7336 * windows-nat.c (windows_nat::handle_output_debug_string):
7337 Rename. No longer static.
7338 * nat/windows-nat.h (handle_output_debug_string): Declare.
7339
7340 2020-04-08 Tom Tromey <tromey@adacore.com>
7341
7342 * windows-nat.c (current_process_handle, current_process_id)
7343 (main_thread_id, last_sig, current_event, last_wait_event)
7344 (current_windows_thread, desired_stop_thread_id, pending_stops)
7345 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7346 (display_selectors, fake_create_process)
7347 (get_windows_debug_event): Update.
7348 * nat/windows-nat.h (current_process_handle, current_process_id)
7349 (main_thread_id, last_sig, current_event, last_wait_event)
7350 (current_windows_thread, desired_stop_thread_id, pending_stops)
7351 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7352 * nat/windows-nat.c (current_process_handle, current_process_id)
7353 (main_thread_id, last_sig, current_event, last_wait_event)
7354 (current_windows_thread, desired_stop_thread_id, pending_stops)
7355 (siginfo_er): New globals. Move from windows-nat.c.
7356
7357 2020-04-08 Tom Tromey <tromey@adacore.com>
7358
7359 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7360 (handle_load_dll): Update.
7361 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7362
7363 2020-04-08 Tom Tromey <tromey@adacore.com>
7364
7365 * windows-nat.c (enum thread_disposition_type): Move to
7366 nat/windows-nat.h.
7367 (windows_nat::thread_rec): Rename from thread_rec. No longer
7368 static.
7369 (windows_add_thread, windows_nat_target::fetch_registers)
7370 (windows_nat_target::store_registers, handle_exception)
7371 (windows_nat_target::resume, get_windows_debug_event)
7372 (windows_nat_target::get_tib_address)
7373 (windows_nat_target::thread_name)
7374 (windows_nat_target::thread_alive): Update.
7375 * nat/windows-nat.h (enum thread_disposition_type): Move from
7376 windows-nat.c.
7377 (thread_rec): Declare.
7378
7379 2020-04-08 Tom Tromey <tromey@adacore.com>
7380
7381 * windows-nat.c: Add "using namespace".
7382 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7383 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7384
7385 2020-04-08 Tom Tromey <tromey@adacore.com>
7386
7387 * nat/windows-nat.h (struct windows_thread_info): Declare
7388 destructor.
7389 * nat/windows-nat.c (~windows_thread_info): New.
7390
7391 2020-04-08 Tom Tromey <tromey@adacore.com>
7392
7393 PR gdb/22992
7394 * windows-nat.c (current_event): Update comment.
7395 (last_wait_event, desired_stop_thread_id): New globals.
7396 (struct pending_stop): New.
7397 (pending_stops): New global.
7398 (windows_nat_target) <stopped_by_sw_breakpoint>
7399 <supports_stopped_by_sw_breakpoint>: New methods.
7400 (windows_fetch_one_register): Add assertions. Adjust PC.
7401 (windows_continue): Handle pending stops. Suspend other threads
7402 when stepping. Use last_wait_event
7403 (wait_for_debug_event): New function.
7404 (get_windows_debug_event): Use wait_for_debug_event. Handle
7405 pending stops. Queue spurious stops.
7406 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7407 (windows_nat_target::kill): Use wait_for_debug_event.
7408 * nat/windows-nat.h (struct windows_thread_info)
7409 <stopped_at_software_breakpoint>: New field.
7410 * nat/windows-nat.c (windows_thread_info::resume): Clear
7411 stopped_at_software_breakpoint.
7412
7413 2020-04-08 Tom Tromey <tromey@adacore.com>
7414
7415 * windows-nat.c (enum thread_disposition_type): New.
7416 (thread_rec): Replace "get_context" parameter with "disposition";
7417 change type.
7418 (windows_add_thread, windows_nat_target::fetch_registers)
7419 (windows_nat_target::store_registers, handle_exception)
7420 (windows_nat_target::resume, get_windows_debug_event)
7421 (windows_nat_target::get_tib_address)
7422 (windows_nat_target::thread_name)
7423 (windows_nat_target::thread_alive): Update.
7424
7425 2020-04-08 Tom Tromey <tromey@adacore.com>
7426
7427 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7428 (windows_continue): Use windows_continue::resume.
7429 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7430 resume>: Declare new methods.
7431 * nat/windows-nat.c: New file.
7432 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7433
7434 2020-04-08 Tom Tromey <tromey@adacore.com>
7435
7436 * windows-nat.c (windows_add_thread, windows_delete_thread)
7437 (windows_nat_target::fetch_registers)
7438 (windows_nat_target::store_registers, fake_create_process)
7439 (windows_nat_target::resume, windows_nat_target::resume)
7440 (get_windows_debug_event, windows_nat_target::wait)
7441 (windows_nat_target::pid_to_str)
7442 (windows_nat_target::get_tib_address)
7443 (windows_nat_target::get_ada_task_ptid)
7444 (windows_nat_target::thread_name)
7445 (windows_nat_target::thread_alive): Use lwp, not tid.
7446
7447 2020-04-08 Tom Tromey <tromey@adacore.com>
7448
7449 * windows-nat.c (handle_exception)
7450 (windows_nat_target::thread_name): Update.
7451 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7452 <name>: Now unique_xmalloc_ptr.
7453
7454 2020-04-08 Tom Tromey <tromey@adacore.com>
7455
7456 * windows-nat.c (thread_rec)
7457 (windows_nat_target::fetch_registers): Update.
7458 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7459 Update comment.
7460 <debug_registers_changed, reload_context>: Now bool.
7461
7462 2020-04-08 Tom Tromey <tromey@adacore.com>
7463
7464 * windows-nat.c (windows_add_thread): Use new.
7465 (windows_init_thread_list, windows_delete_thread): Use delete.
7466 (get_windows_debug_event): Update.
7467 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7468 destructor, and initializers.
7469
7470 2020-04-08 Tom Tromey <tromey@adacore.com>
7471
7472 * windows-nat.c (struct windows_thread_info): Remove.
7473 * nat/windows-nat.h: New file.
7474
7475 2020-04-08 Tom Tromey <tromey@adacore.com>
7476
7477 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7478 (thread_rec, windows_add_thread, windows_delete_thread)
7479 (windows_continue): Update.
7480
7481 2020-04-08 Tom Tromey <tromey@adacore.com>
7482
7483 * windows-nat.c (struct windows_thread_info): Remove typedef.
7484 (thread_head): Remove.
7485 (thread_list): New global.
7486 (thread_rec, windows_add_thread, windows_init_thread_list)
7487 (windows_delete_thread, windows_continue): Update.
7488
7489 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7490
7491 * windows-tdep.h (windows_init_abi): Add comment.
7492 (cygwin_init_abi): New declaration.
7493 * windows-tdep.c: Split signal enumeration in two, one for
7494 Windows and one for Cygwin.
7495 (windows_gdb_signal_to_target): Only deal with signal of the
7496 Windows OS ABI.
7497 (cygwin_gdb_signal_to_target): New function.
7498 (windows_init_abi): Rename to windows_init_abi_common, don't set
7499 gdb_signal_to_target gdbarch method. Add new new function with
7500 this name.
7501 (cygwin_init_abi): New function.
7502 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7503 comment. Don't call windows_init_abi.
7504 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7505 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7506 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7507 i386_windows_init_abi_common, don't call windows_init_abi. Add
7508 a new function of this name.
7509 (i386_cygwin_init_abi): New function.
7510 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7511 OS ABI Cygwin.
7512
7513 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7514
7515 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7516 parameter.c.
7517 (dwarf2_read_gdb_index): Update.
7518
7519 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7520
7521 * nbsd-tdep.c: Include "objfiles.h".
7522 (nbsd_skip_solib_resolver): New.
7523 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7524
7525 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7526
7527 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7528 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7529 with DW_LLE_base_addressx are being emitted in DWARFv5.
7530 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7531 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7532 unsigned integer.
7533
7534 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7535
7536 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7537 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7538 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7539 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7540 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7541 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7542 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7543
7544
7545 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7546
7547 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7548 (read_loclist_index): New function definition.
7549 (lookup_loclist_base): New function definition.
7550 (read_loclist_header): New function definition.
7551 (dwarf2_cu): Add loclist_base and loclist_header field.
7552 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7553 (read_full_die_1): Read the value of DW_AT_loclists_base.
7554 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7555 (read_attribute_value): Handle DW_FORM_loclistx.
7556 (skip_one_die): Handle DW_FORM_loclistx.
7557 (loclist_header): New structure declaration.
7558 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7559
7560 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7561
7562 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7563 constructor. Remove `addr` parameter from other constructor and
7564 add `per_cu` parameter.
7565 * dwarf2/read.c (create_partial_symtab): Update.
7566
7567 2020-04-07 Tom de Vries <tdevries@suse.de>
7568
7569 PR symtab/25796
7570 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7571 (partial_die_info::fixup): Inherit has_const_value.
7572
7573 2020-04-07 Tom de Vries <tdevries@suse.de>
7574
7575 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7576 symbols without address.
7577
7578 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7579
7580 * nbsd-nat.h (struct thread_info): Add forward declaration.
7581 (nbsd_nat_target::thread_alive): Add.
7582 (nbsd_nat_target::thread_name): Likewise.
7583 (nbsd_nat_target::update_thread_list): Likewise.
7584 (update_thread_list::post_attach): Likewise.
7585 (post_attach::pid_to_str): Likewise.
7586 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7587 (nbsd_thread_lister): Add.
7588 (nbsd_nat_target::thread_alive): Likewise.
7589 (nbsd_nat_target::thread_name): Likewise.
7590 (nbsd_add_threads): Likewise.
7591 (update_thread_list::post_attach): Likewise.
7592 (nbsd_nat_target::update_thread_list): Likewise.
7593 (post_attach::pid_to_str): Likewise.
7594
7595 2020-04-06 Tom Tromey <tromey@adacore.com>
7596
7597 * ada-valprint.c (print_variant_part): Extract the variant field.
7598 (print_field_values): Use the field as the outer value when
7599 recursing.
7600
7601 2020-04-06 Tom Tromey <tromey@adacore.com>
7602
7603 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7604 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7605 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7606 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7607 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7608
7609 2020-04-06 Tom Tromey <tromey@adacore.com>
7610
7611 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7612 TYPE_CODE_ERROR.
7613
7614 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7615
7616 * nbsd-tdep.c: Include "gdbarch.h".
7617 Define enum with NetBSD signal numbers.
7618 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7619 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7620 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7621 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7622 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7623 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7624 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7625 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7626 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7627 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7628 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7629 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7630
7631 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7632
7633 PR gdb/25325
7634 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7635
7636 2020-04-03 Tom Tromey <tromey@adacore.com>
7637
7638 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7639 Read constant block.
7640
7641 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7642
7643 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7644 (gdb_bfd_get_full_section_contents): New declaration.
7645 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7646 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7647 gdb_bfd_get_full_section_contents.
7648
7649 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7650
7651 * exec.c (build_section_table): Replace internal_error with
7652 gdb_assert.
7653 (section_table_xfer_memory_partial): Likewise.
7654 * mdebugread.c (parse_partial_symbols): Likewise.
7655 * psymtab.c (lookup_partial_symbol): Likewise.
7656 * utils.c (wrap_here): Likewise.
7657
7658 2020-04-02 Tom Tromey <tromey@adacore.com>
7659
7660 * f-lang.c (build_fortran_types): Use arch_type to initialize
7661 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7662
7663 2020-04-02 Tom Tromey <tromey@adacore.com>
7664
7665 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7666 of attributes.
7667
7668 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7669 Bernd Edlinger <bernd.edlinger@hotmail.de>
7670 Tom Tromey <tromey@adacore.com>
7671
7672 * buildsym.c (buildsym_compunit::record_line): Remove
7673 deduplication code.
7674
7675 2020-04-02 Tom de Vries <tdevries@suse.de>
7676
7677 PR ada/24671
7678 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7679
7680 2020-04-02 Tom de Vries <tdevries@suse.de>
7681
7682 * dwarf2/read.c (dwarf2_gdb_index_functions,
7683 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7684 NULL.
7685 * psymtab.c (psym_lookup_global_symbol_language): New function.
7686 (psym_functions): Init psym_lookup_global_symbol_language with
7687 psym_lookup_global_symbol_language.
7688 * symfile-debug.c (debug_sym_quick_functions): Init
7689 lookup_global_symbol_language with NULL.
7690 * symfile.c (set_initial_language): Remove fixme comment.
7691 * symfile.h (struct quick_symbol_functions): Add
7692 lookup_global_symbol_language.
7693 * symtab.c (find_quick_global_symbol_language): New function.
7694 (find_main_name): Use find_quick_global_symbol_language.
7695
7696 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7697
7698 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7699
7700 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7701
7702 * buildsym.c (record_line): Fix undefined behavior and preserve
7703 lines at eof.
7704
7705 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7706
7707 * buildsym.c (record_line): Fix the resizing condition.
7708
7709 2020-04-01 Tom Tromey <tom@tromey.com>
7710
7711 * value.h (value_literal_complex): Add comment.
7712 * valops.c (value_literal_complex): Refer to value.h.
7713
7714 2020-04-01 Tom Tromey <tom@tromey.com>
7715
7716 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7717 (scalar_type): New rule, from typebase.
7718 (typebase): Use scalar_type. Recognize complex types.
7719 (field_name): Handle FLOAT_KEYWORD.
7720 (ident_tokens): Add _Complex and __complex__.
7721
7722 2020-04-01 Tom Tromey <tom@tromey.com>
7723
7724 PR exp/25299:
7725 * valarith.c (promotion_type, complex_binop): New functions.
7726 (scalar_binop): Handle complex numbers. Use promotion_type.
7727 (value_pos, value_neg, value_complement): Handle complex numbers.
7728
7729 2020-04-01 Tom Tromey <tom@tromey.com>
7730
7731 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7732 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7733 (parse_number): Handle complex numbers.
7734
7735 2020-04-01 Tom Tromey <tom@tromey.com>
7736
7737 * c-valprint.c (c_decorations): Change complex suffix to "i".
7738
7739 2020-04-01 Tom Tromey <tom@tromey.com>
7740
7741 * valprint.c (generic_value_print_complex): Use accessors.
7742 * value.h (value_real_part, value_imaginary_part): Declare.
7743 * valops.c (value_real_part, value_imaginary_part): New
7744 functions.
7745 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7746
7747 2020-04-01 Tom Tromey <tom@tromey.com>
7748
7749 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7750 (read_range_type): Update.
7751 * mdebugread.c (basic_type): Update.
7752 * go-lang.c (build_go_types): Use init_complex_type.
7753 * gdbtypes.h (struct main_type) <complex_type>: New member.
7754 (init_complex_type): Update.
7755 (arch_complex_type): Don't declare.
7756 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7757 Make name if none given. Use alloc_type_copy. Look for cached
7758 complex type.
7759 (arch_complex_type): Remove.
7760 (gdbtypes_post_init): Use init_complex_type.
7761 * f-lang.c (build_fortran_types): Use init_complex_type.
7762 * dwarf2/read.c (read_base_type): Update.
7763 * d-lang.c (build_d_types): Use init_complex_type.
7764 * ctfread.c (read_base_type): Update.
7765
7766 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7767
7768 * infrun.c (stop_all_threads): Update assertion, plus when
7769 stopping threads, take into account that we might be trying
7770 to stop an all-stop target.
7771 (stop_waiting): Call 'stop_all_threads' if there exists a
7772 non-stop target.
7773
7774 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7775
7776 * target.h (exists_non_stop_target): New function declaration.
7777 * target.c (exists_non_stop_target): New function.
7778
7779 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7780
7781 PR gdb/24789
7782 * eval.c (is_integral_or_integral_reference): New function.
7783 (evaluate_subexp_standard): Allow integer references in
7784 pointer arithmetic.
7785
7786 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7787
7788 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7789 check for no ptid in the stop reply when the target is non-stop.
7790
7791 2020-04-01 Tom Tromey <tromey@adacore.com>
7792
7793 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7794 "name" parameter to rvalue reference. Initialize m_name_holder.
7795 <lookup_name_info>: New overloads.
7796 <name>: Return gdb::string_view.
7797 <c_str>: New method.
7798 <make_ignore_params>: Update.
7799 <search_name_hash>: Update.
7800 <language_lookup_name>: Return const char *.
7801 <m_name>: Change type.
7802 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7803 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7804 (lookup_name_info::match_any): Update.
7805 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7806 Update.
7807 * minsyms.c (linkage_name_str): Update.
7808 * language.c (default_symbol_name_matcher): Update.
7809 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7810 Update.
7811 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7812 (ada_lookup_name_info::ada_lookup_name_info): Update.
7813 (literal_symbol_name_matcher): Update.
7814
7815 2020-04-01 Tom Tromey <tromey@adacore.com>
7816
7817 * psymtab.c (psymtab_search_name): Remove function.
7818 (psym_lookup_symbol): Create search name and lookup name here.
7819 (lookup_partial_symbol): Remove "name" parameter; add
7820 lookup_name.
7821 (psym_expand_symtabs_for_function): Update.
7822
7823 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7824
7825 PR tui/25597:
7826 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7827
7828 2020-03-31 Tom Tromey <tromey@adacore.com>
7829
7830 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7831 memcpy.
7832
7833 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7834
7835 * features/riscv/32bit-csr.xml: Regenerated.
7836 * features/riscv/64bit-csr.xml: Regenerated.
7837
7838 2020-03-30 Tom Tromey <tromey@adacore.com>
7839
7840 * ada-valprint.c (print_variant_part): Update.
7841 * ada-lang.h (ada_which_variant_applies): Update.
7842 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7843 outer_valaddr parameters; replace with "outer" value parameter.
7844 (to_fixed_variant_branch_type): Update.
7845
7846 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7847
7848 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7849 <list>. Remove inclusion of observable.h.
7850 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7851 (struct arch_lwp_info): New struct.
7852 (class ppc_linux_dreg_interface): New class.
7853 (struct ppc_linux_process_info): New struct.
7854 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7855 <low_new_clone, low_forget_process, low_prepare_to_resume>
7856 <copy_thread_dreg_state, mark_thread_stale>
7857 <mark_debug_registers_changed, register_hw_breakpoint>
7858 <clear_hw_breakpoint, register_wp, clear_wp>
7859 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7860 <num_memory_accesses, get_trigger_type>
7861 <create_watchpoint_request, hwdebug_point_cmp>
7862 <init_arch_lwp_info, get_arch_lwp_info>
7863 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7864 methods.
7865 <struct ptid_hash>: New inner struct.
7866 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7867 members.
7868 (saved_dabr_value, hwdebug_info, max_slots_number)
7869 (struct hw_break_tuple, struct thread_points, ppc_threads)
7870 (have_ptrace_hwdebug_interface)
7871 (hwdebug_find_thread_points_by_tid)
7872 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7873 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7874 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7875 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7876 use m_dreg_interface.
7877 (hwdebug_point_cmp): Change to...
7878 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7879 reference arguments instead of pointers.
7880 (ppc_linux_nat_target::ranged_break_num_registers): Use
7881 m_dreg_interface.
7882 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7883 m_dreg_interface. Call register_hw_breakpoint.
7884 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7885 m_dreg_interface. Call clear_hw_breakpoint.
7886 (get_trigger_type): Change to...
7887 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7888 comment.
7889 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7890 use m_dreg_interface. Call register_hw_breakpoint.
7891 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7892 use m_dreg_interface. Call clear_hw_breakpoint.
7893 (can_use_watchpoint_cond_accel): Change to...
7894 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7895 method. Update comment, use m_dreg_interface and
7896 m_process_info.
7897 (calculate_dvc): Change to...
7898 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7899 m_dreg_interface.
7900 (num_memory_accesses): Change to...
7901 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7902 (check_condition): Change to...
7903 (ppc_linux_nat_target::check_condition): ...this method.
7904 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7905 comment, use m_dreg_interface.
7906 (create_watchpoint_request): Change to...
7907 (ppc_linux_nat_target::create_watchpoint_request): ...this
7908 method. Use m_dreg_interface.
7909 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7910 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7911 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7912 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7913 (ppc_linux_nat_target::low_forget_process)
7914 (ppc_linux_nat_target::low_new_fork)
7915 (ppc_linux_nat_target::low_new_clone)
7916 (ppc_linux_nat_target::low_delete_thread)
7917 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7918 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7919 only call mark_thread_stale.
7920 (ppc_linux_thread_exit): Remove.
7921 (ppc_linux_nat_target::stopped_data_address): Change to...
7922 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7923 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7924 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7925 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7926 comment. Call low_stopped_data_address.
7927 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7928 m_dreg_interface.
7929 (ppc_linux_nat_target::masked_watch_num_registers): Use
7930 m_dreg_interface.
7931 (ppc_linux_nat_target::copy_thread_dreg_state)
7932 (ppc_linux_nat_target::mark_thread_stale)
7933 (ppc_linux_nat_target::mark_debug_registers_changed)
7934 (ppc_linux_nat_target::register_hw_breakpoint)
7935 (ppc_linux_nat_target::clear_hw_breakpoint)
7936 (ppc_linux_nat_target::register_wp)
7937 (ppc_linux_nat_target::clear_wp)
7938 (ppc_linux_nat_target::init_arch_lwp_info)
7939 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7940 (_initialize_ppc_linux_nat): Remove observer callback.
7941
7942 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7943
7944 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7945 (ppc_linux_nat_target::auxv_parse)
7946 (ppc_linux_nat_target::read_description)
7947 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7948 Move up.
7949
7950 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7951
7952 * linux-nat.h (low_new_clone): New method.
7953 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7954
7955 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7956
7957 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7958 (dbx_expand_psymtab): ... this.
7959 (start_psymtab): Update.
7960 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7961 (mdebug_expand_psymtab): ... this.
7962 (parse_partial_symbols): Update.
7963 (new_psymtab): Update.
7964 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7965 (xcoff_expand_psymtab): ... this.
7966 (xcoff_start_psymtab): Update.
7967
7968 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7969
7970 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7971 <expand_dependencies>: ... this.
7972 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7973 (partial_symtab::expand_dependencies): ... this.
7974 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7975 Update.
7976 (dwarf2_psymtab::expand_psymtab): Update.
7977 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7978 * mdebugread.c (psymtab_to_symtab_1): Update.
7979 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7980
7981 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7982
7983 * psympriv.h (discard_psymtab): Remove.
7984 * dbxread.c (dbx_end_psymtab): Update.
7985 * xcoffread.c (xcoff_end_psymtab): Update.
7986
7987 2020-03-28 Tom Tromey <tom@tromey.com>
7988
7989 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7990 comment.
7991
7992 2020-03-28 Tom Tromey <tom@tromey.com>
7993
7994 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7995
7996 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7997
7998 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7999
8000 2020-03-26 John Baldwin <jhb@FreeBSD.org>
8001
8002 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8003
8004 2020-03-26 Tom Tromey <tom@tromey.com>
8005
8006 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8007 (mark_common_block_symbol_computed, read_tag_string_type)
8008 (attr_to_dynamic_prop, read_subrange_type): Update.
8009 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8010 to be methods on struct attribute.
8011 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8012 (read_call_site_scope, partial_die_info::read)
8013 (partial_die_info::read, lookup_die_type, follow_die_ref):
8014 Update.
8015 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8016 from dwarf2_get_ref_die_offset.
8017 (attribute::constant_value): New method, from
8018 dwarf2_get_attr_constant_value.
8019 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8020 Declare method.
8021 <constant_value>: New method.
8022
8023 2020-03-26 Tom Tromey <tom@tromey.com>
8024
8025 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8026 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8027 (dwarf_type_encoding_name): Move to stringify.c.
8028 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8029 * dwarf2/stringify.c: New file.
8030 * dwarf2/stringify.h: New file.
8031
8032 2020-03-26 Tom Tromey <tom@tromey.com>
8033
8034 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8035 Rewrite.
8036
8037 2020-03-26 Tom Tromey <tom@tromey.com>
8038
8039 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8040 methods.
8041 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8042 (lookup_ranges_base): Likewise.
8043 (read_cutu_die_from_dwo, read_full_die_1): Update.
8044
8045 2020-03-26 Tom Tromey <tom@tromey.com>
8046
8047 * dwarf2/read.c (read_import_statement, read_file_scope)
8048 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8049 (read_lexical_block_scope, read_call_site_scope)
8050 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8051 (handle_struct_member_die, process_structure_scope)
8052 (update_enumeration_type_from_children)
8053 (process_enumeration_scope, read_array_type, read_common_block)
8054 (read_namespace, read_module, read_subroutine_type): Update.
8055 (sibling_die): Remove.
8056
8057 2020-03-26 Tom Tromey <tom@tromey.com>
8058
8059 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8060 (build_type_psymtabs_reader, read_structure_type)
8061 (read_enumeration_type, read_full_die_1): Update.
8062 (dwarf2_attr_no_follow): Move to die.h.
8063 * dwarf2/die.h (struct die_info) <attr>: New method.
8064
8065 2020-03-26 Tom Tromey <tom@tromey.com>
8066
8067 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8068 <base_address>: Now an optional.
8069 (dwarf2_find_base_address, dwarf2_rnglists_process)
8070 (dwarf2_ranges_process, fill_in_loclist_baton)
8071 (dwarf2_symbol_mark_computed): Update.
8072
8073 2020-03-26 Tom Tromey <tom@tromey.com>
8074
8075 * dwarf2/read.c (struct die_info): Move to die.h.
8076 * dwarf2/die.h: New file.
8077
8078 2020-03-26 Tom Tromey <tom@tromey.com>
8079
8080 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8081 * dwarf2/read.c
8082 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8083 Move to line-header.c.
8084 (read_checked_initial_length_and_offset, read_formatted_entries):
8085 Likewise.
8086 (dwarf_decode_line_header): Split into two.
8087 * dwarf2/line-header.c
8088 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8089 Move from read.c.
8090 (read_checked_initial_length_and_offset, read_formatted_entries):
8091 Likewise.
8092 (dwarf_decode_line_header): New function, split from read.c.
8093
8094 2020-03-26 Tom Tromey <tom@tromey.com>
8095
8096 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8097 Declare method.
8098 * dwarf2/read.c (read_attribute_value): Update.
8099 (dwarf2_per_objfile::read_line_string): Rename from
8100 read_indirect_line_string.
8101 (read_formatted_entries): Update.
8102
8103 2020-03-26 Tom Tromey <tom@tromey.com>
8104
8105 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8106 variable.
8107
8108 2020-03-26 Tom Tromey <tom@tromey.com>
8109
8110 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8111 const.
8112 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8113 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8114 parameter const.
8115
8116 2020-03-26 Tom Tromey <tom@tromey.com>
8117
8118 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8119 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8120 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8121 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8122
8123 2020-03-26 Tom Tromey <tom@tromey.com>
8124
8125 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8126 file_names_size, file_full_name, file_file_name>: Use const.
8127 <file_name_at, file_names>: Add const overload.
8128 * dwarf2/line-header.c (line_header::file_file_name)
8129 (line_header::file_full_name): Update.
8130
8131 2020-03-26 Tom Tromey <tom@tromey.com>
8132
8133 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8134 (macro_start_file, consume_improper_spaces)
8135 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8136 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8137 (dwarf_decode_macros): Move to macro.c.
8138 * dwarf2/macro.c: New file.
8139 * dwarf2/macro.h: New file.
8140 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8141
8142 2020-03-26 Tom Tromey <tom@tromey.com>
8143
8144 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8145 method.
8146 * dwarf2/section.c: New method. From
8147 read_indirect_string_at_offset_from.
8148 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8149 (read_indirect_string_at_offset_from): Move to section.c.
8150 (read_indirect_string_at_offset): Rewrite.
8151 (read_indirect_line_string_at_offset): Remove.
8152 (read_indirect_string, read_indirect_line_string)
8153 (dwarf_decode_macro_bytes): Update.
8154
8155 2020-03-26 Tom Tromey <tom@tromey.com>
8156
8157 * dwarf2/section.h (struct dwarf2_section_info)
8158 <overload_complaint>: Declare.
8159 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8160 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8161 Rename from dwarf2_section_buffer_overflow_complaint.
8162 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8163 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8164
8165 2020-03-26 Tom Tromey <tom@tromey.com>
8166
8167 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8168 Declare.
8169 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8170 Move from read.c.
8171 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8172 to section.c.
8173
8174 2020-03-26 Tom Tromey <tom@tromey.com>
8175
8176 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8177
8178 2020-03-26 Tom Tromey <tom@tromey.com>
8179
8180 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8181 "builder".
8182 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8183 parameter.
8184 (dwarf_decode_macros): Update.
8185
8186 2020-03-26 Tom Tromey <tom@tromey.com>
8187
8188 * dwarf2/read.c (read_attribute_value): Update.
8189 (read_indirect_string_from_dwz): Move to dwz.c; change into
8190 method.
8191 (dwarf_decode_macro_bytes): Update.
8192 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8193 * dwarf2/dwz.c: New file.
8194 * Makefile.in (COMMON_SFILES): Add dwz.c.
8195
8196 2020-03-26 Tom Tromey <tom@tromey.com>
8197
8198 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8199 * dwarf2/read.c: Add include.
8200 * dwarf2/index-write.c: Add include.
8201 * dwarf2/index-cache.c: Add include.
8202 * dwarf2/dwz.h: New file.
8203
8204 2020-03-25 Tom Tromey <tom@tromey.com>
8205
8206 * compile/compile-object-load.c (get_out_value_type): Mention
8207 correct symbol name in error message.
8208
8209 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8210
8211 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8212
8213 2020-03-25 Tom de Vries <tdevries@suse.de>
8214
8215 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8216 * symmisc.c (dump_symtab_1): Print user and includes fields.
8217 (maintenance_info_symtabs): Same.
8218
8219 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8220
8221 PR gdb/25534
8222 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8223 (riscv_regcache_cooked_write): New function.
8224 (riscv_push_dummy_call): Use new function.
8225 (riscv_return_value): Likewise.
8226
8227 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8228
8229 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8230 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8231 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8232 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8233 * infrun.c (follow_fork): Likewise.
8234 (follow_fork_inferior): Likewise.
8235 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8236 * linux-nat.h (class linux_nat_target): Likewise.
8237 * remote.c (class remote_target) <follow_fork>: Likewise.
8238 (remote_target::follow_fork): Likewise.
8239 * target-delegates.c: Re-generate.
8240 * target.c (default_follow_fork): Likewise.
8241 (target_follow_fork): Likewise.
8242 * target.h (struct target_ops) <follow_fork>: Likewise.
8243 (target_follow_fork): Likewise.
8244
8245 2020-03-24 Tom de Vries <tdevries@suse.de>
8246
8247 * psymtab.c (maintenance_info_psymtabs): Print user field.
8248
8249 2020-03-20 Tom Tromey <tromey@adacore.com>
8250
8251 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8252 const.
8253 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8254 const.
8255
8256 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8257
8258 * ptrace.m4: Don't check for ptrace declaration.
8259 * config.in: Re-generate.
8260 * configure: Re-generate.
8261 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8262 not defined.
8263
8264 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8265
8266 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8267 `PTRACE_TYPE_RET'.
8268 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8269 * sparc-nat.c (gdb_ptrace): Likewise.
8270 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8271
8272 2020-03-20 Tom Tromey <tromey@adacore.com>
8273
8274 * c-exp.y (lex_one_token): Fix assert.
8275
8276 2020-03-20 Tom Tromey <tromey@adacore.com>
8277
8278 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8279 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8280 strncpy call.
8281
8282 2020-03-20 Tom Tromey <tromey@adacore.com>
8283
8284 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8285
8286 2020-03-20 Tom Tromey <tromey@adacore.com>
8287
8288 * ada-valprint.c (print_variant_part): Remove parameters; switch
8289 to value-based API.
8290 (print_field_values): Likewise.
8291 (ada_val_print_struct_union): Likewise.
8292 (ada_value_print_1): Update.
8293
8294 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8295
8296 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8297 nbsd_nat_target instead of inf_ptrace_target.
8298 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8299 nbsd_nat_target.
8300
8301 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8302
8303 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8304 it to the ptrace call.
8305 * (store_registers): Likewise.
8306
8307 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8308
8309 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8310 it to the ptrace call.
8311 * (store_registers): Likewise.
8312
8313 2020-03-19 Luis Machado <luis.machado@linaro.org>
8314
8315 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8316 valid, fetch vg value from ptrace.
8317
8318 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8319 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8320 * inf-ptrace.c: Likewise.
8321 * (gdb_ptrace): Add.
8322 * (inf_ptrace_target::resume): Update.
8323 * (inf_ptrace_target::xfer_partial): Likewise.
8324 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8325 * (inf_ptrace_peek_poke): Update.
8326
8327 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8328
8329 * x86-bsd-nat.c (gdb_ptrace): New.
8330 * (x86bsd_dr_set): Add new argument `ptid'.
8331 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8332 x86bsd_dr_set_addr): Update.
8333
8334 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8335
8336 * remote.c (remote_target::process_stop_reply): Handle events for
8337 all threads differently.
8338
8339 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8340
8341 * completer.c (completion_tracker::remove_completion): Define new
8342 function.
8343 * completer.h (completion_tracker::remove_completion): Declare new
8344 function.
8345 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8346 when adding a C++ function symbol.
8347
8348 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8349
8350 * completer.c (completion_tracker::completion_hash_entry): Define
8351 new class.
8352 (advance_to_filename_complete_word_point): Call
8353 recompute_lowest_common_denominator.
8354 (completion_tracker::completion_tracker): Call discard_completions
8355 to setup the hash table.
8356 (completion_tracker::discard_completions): Allow for being called
8357 from the constructor, pass new equal function, and element deleter
8358 when constructing the hash table. Initialise new class member
8359 variables.
8360 (completion_tracker::maybe_add_completion): Remove use of
8361 m_entries_vec, and store more information into m_entries_hash.
8362 (completion_tracker::recompute_lcd_visitor): New function, most
8363 content taken from...
8364 (completion_tracker::recompute_lowest_common_denominator):
8365 ...here, this now just visits each item in the hash calling the
8366 above visitor.
8367 (completion_tracker::build_completion_result): Remove use of
8368 m_entries_vec, call recompute_lowest_common_denominator.
8369 * completer.h (completion_tracker::have_completions): Remove use
8370 of m_entries_vec.
8371 (completion_tracker::completion_hash_entry): Declare new class.
8372 (completion_tracker::recompute_lowest_common_denominator): Change
8373 function signature.
8374 (completion_tracker::recompute_lcd_visitor): Declare new function.
8375 (completion_tracker::m_entries_vec): Delete.
8376 (completion_tracker::m_entries_hash): Initialize to NULL.
8377 (completion_tracker::m_lowest_common_denominator_valid): New
8378 member variable.
8379 (completion_tracker::m_lowest_common_denominator_max_length): New
8380 member variable.
8381
8382 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8383
8384 * regformats/regdef.h: Put reg in gdb namespace.
8385
8386 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8387
8388 * i386-bsd-nat.c (gdb_ptrace): New.
8389 * (i386bsd_fetch_inferior_registers,
8390 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8391 * (i386bsd_fetch_inferior_registers,
8392 i386bsd_store_inferior_registers) Use gdb_ptrace.
8393
8394 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8395
8396 * amd64-bsd-nat.c (gdb_ptrace): New.
8397 * (amd64bsd_fetch_inferior_registers,
8398 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8399 * (amd64bsd_fetch_inferior_registers,
8400 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8401
8402 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8403
8404 * user-regs.c (user_reg::read): Rename to...
8405 (user_reg::xread): ...this.
8406 * (append_user_reg): Rename argument `read' to `xread'.
8407 * (user_reg_add_builtin): Likewise.
8408 * (user_reg_add): Likewise.
8409 * (value_of_user_reg): Likewise.
8410
8411 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8412
8413 * sparc-nat.c (gdb_ptrace): New.
8414 * sparc-nat.c (sparc_fetch_inferior_registers)
8415 (sparc_store_inferior_registers) Remove obsolete comment.
8416 * sparc-nat.c (sparc_fetch_inferior_registers)
8417 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8418 * sparc-nat.c (sparc_fetch_inferior_registers)
8419 (sparc_store_inferior_registers) Use gdb_ptrace.
8420
8421 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8422
8423 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8424 it to the ptrace call.
8425 * sh-nbsd-nat.c (store_registers): Likewise.
8426
8427 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8428
8429 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8430 nbsd_nat_target instead of inf_ptrace_target.
8431 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8432 nbsd_nat_target.
8433
8434 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8435
8436 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8437
8438 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8439
8440 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8441 <sys/sysctl.h>.
8442 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8443
8444 2020-03-17 Tom de Vries <tdevries@suse.de>
8445
8446 PR gdb/23710
8447 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8448 fields.
8449 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8450 fields.
8451 (process_imported_unit_die): Skip import of c++ CUs.
8452
8453 2020-03-16 Tom Tromey <tom@tromey.com>
8454
8455 * p-valprint.c (pascal_object_print_value): Initialize
8456 base_value.
8457
8458 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8459 Shahab Vahedi <shahab@synopsys.com>
8460
8461 * Makefile.in: Add arch/arc.o
8462 * configure.tgt: Likewise.
8463 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8464 (_initialize_arc_tdep): Don't initialize old target descriptions.
8465 (arc_read_description): New function to cache target descriptions.
8466 * arc-tdep.h (arc_read_description): Add proto type.
8467 * arch/arc.c: New file.
8468 * arch/arc.h: Likewise.
8469 * features/Makefile: Replace old target descriptions with new.
8470 * features/arc-arcompact.c: Remove.
8471 * features/arc-arcompact.xml: Likewise.
8472 * features/arc-v2.c: Likewise
8473 * features/arc-v2.xml: Likewise
8474 * features/arc/aux-arcompact.xml: New file.
8475 * features/arc/aux-v2.xml: Likewise.
8476 * features/arc/core-arcompact.xml: Likewise.
8477 * features/arc/core-v2.xml: Likewise.
8478 * features/arc/aux-arcompact.c: Generate.
8479 * features/arc/aux-v2.c: Likewise.
8480 * features/arc/core-arcompact.c: Likewise.
8481 * features/arc/core-v2.c: Likewise.
8482 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8483
8484 2020-03-16 Tom Tromey <tromey@adacore.com>
8485
8486 PR gdb/25663:
8487 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8488 putting value into bcache.
8489
8490 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8491
8492 PR gdb/21500
8493 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8494 to...
8495 (amd64_windows_init_abi_common): ... this. Don't set size of
8496 long type.
8497 (amd64_windows_init_abi): New function.
8498 (amd64_cygwin_init_abi): New function.
8499 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8500 the Cygwin OS ABI.
8501 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8502 comment.
8503
8504 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8505
8506 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8507 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8508 (pe_import_directory_entry): New struct type.
8509 (is_linked_with_cygwin_dll): New function.
8510 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8511 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8512 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8513
8514 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8515
8516 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8517 i386_cygwin_core_osabi_sniffer.
8518
8519 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8520
8521 * i386-cygwin-tdep.c: Rename to...
8522 * i386-windows-tdep.c: ... this.
8523 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8524 i386-windows-tdep.c.
8525 * configure.tgt: Likewise.
8526
8527 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8528
8529 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8530 * osabi.c (gdb_osabi_names): Add "Windows".
8531 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8532 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8533 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8534 i386_cygwin_osabi_sniffer.
8535 (_initialize_i386_cygwin_tdep): Register OS ABI
8536 GDB_OSABI_WINDOWS for i386.
8537 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8538 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8539 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8540 for x86-64.
8541 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8542 when the target matches '*-*-mingw*'.
8543
8544 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8545
8546 * defs.h (enum gdb_osabi): Move to...
8547 * osabi.h (enum gdb_osabi): ... here.
8548 * gdbarch.sh: Include osabi.h in gdbarch.h.
8549 * gdbarch.h: Re-generate.
8550
8551 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8552
8553 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8554 function.
8555 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8556
8557 2020-03-14 Tom Tromey <tom@tromey.com>
8558
8559 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8560 for C++.
8561 (c_type_print_modifier): Likewise. Add "language" parameter.
8562 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8563 (c_type_print_base_1): Update.
8564 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8565 constants.
8566 * type-stack.c (type_stack::insert): Handle tp_atomic and
8567 tp_restrict.
8568 (type_stack::follow_type_instance_flags): Likewise.
8569 (type_stack::follow_types): Likewise. Merge type-following code.
8570 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8571 (space_identifier, cv_with_space_id)
8572 (const_or_volatile_or_space_identifier_noopt)
8573 (const_or_volatile_or_space_identifier): Remove.
8574 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8575 rules.
8576 (ptr_operator, typebase): Update.
8577 (enum token_flag) <FLAG_C>: New constant.
8578 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8579 "_Atomic".
8580 (lex_one_token): Handle FLAG_C.
8581
8582 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8583
8584 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8585 it to the ptrace call.
8586 * m68k-bsd-nat.c (store_registers): Likewise.
8587
8588 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8589
8590 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8591 gdb_byte *.
8592 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8593 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8594 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8595
8596 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8597
8598 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8599 nbsd_nat_target instead of inf_ptrace_target.
8600 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8601 nbsd_nat_target.
8602
8603 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8604
8605 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8606 register_t.
8607
8608 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8609
8610 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8611 it to the ptrace call.
8612 * alpha-bsd-nat.c (store_registers): Likewise.
8613
8614 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8615
8616 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8617 includes.
8618 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8619 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8620 fill_fpregset): Likewise.
8621
8622 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8623
8624 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8625 nbsd_nat_target instead of inf_ptrace_target.
8626 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8627 nbsd_nat_target.
8628
8629 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8630
8631 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8632 register_t.
8633
8634 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8635
8636 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8637 it to the ptrace call.
8638 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8639 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8640 * arm-nbsd-nat.c (store_register): Likewise.
8641 * arm-nbsd-nat.c (store_regs): Likewise.
8642 * arm-nbsd-nat.c (store_fp_register): Likewise.
8643 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8644
8645 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8646
8647 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8648 nbsd_nat_target instead of inf_ptrace_target.
8649 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8650 nbsd_nat_target.
8651
8652 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8653
8654 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8655 it to the ptrace call.
8656 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8657
8658 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8659
8660 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8661 it to the ptrace call.
8662 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8663
8664 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8665
8666 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8667 gdb_byte *.
8668 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8669
8670 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8671
8672 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8673 instead of inf_ptrace_target.
8674 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8675 nbsd_nat_target.
8676
8677 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8678
8679 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8680 register_t.
8681
8682 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8683
8684 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8685 register_t.
8686
8687 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8688
8689 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8690 register_t.
8691
8692 2020-03-13 Tom Tromey <tom@tromey.com>
8693
8694 * value.h (val_print): Don't declare.
8695 * valprint.h (val_print_array_elements)
8696 (val_print_scalar_formatted, generic_val_print): Don't declare.
8697 * valprint.c (generic_val_print_array): Take a struct value.
8698 (generic_val_print_ptr, generic_val_print_memberptr)
8699 (generic_val_print_bool, generic_val_print_int)
8700 (generic_val_print_char, generic_val_print_complex)
8701 (generic_val_print): Remove.
8702 (generic_value_print): Update.
8703 (do_val_print): Remove unused parameters. Don't call
8704 la_val_print.
8705 (val_print): Remove.
8706 (common_val_print): Update. Don't call value_check_printable.
8707 (val_print_scalar_formatted, val_print_array_elements): Remove.
8708 * rust-lang.c (rust_val_print): Remove.
8709 (rust_language_defn): Update.
8710 * p-valprint.c (pascal_val_print): Remove.
8711 (pascal_value_print_inner): Update.
8712 (pascal_object_print_val_fields, pascal_object_print_val):
8713 Remove.
8714 (pascal_object_print_static_field): Update.
8715 * p-lang.h (pascal_val_print): Don't declare.
8716 * p-lang.c (pascal_language_defn): Update.
8717 * opencl-lang.c (opencl_language_defn): Update.
8718 * objc-lang.c (objc_language_defn): Update.
8719 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8720 * m2-lang.h (m2_val_print): Don't declare.
8721 * m2-lang.c (m2_language_defn): Update.
8722 * language.h (struct language_defn) <la_val_print>: Remove.
8723 * language.c (unk_lang_value_print_inner): Rename. Change
8724 argument types.
8725 (unknown_language_defn, auto_language_defn): Update.
8726 * go-valprint.c (go_val_print): Remove.
8727 * go-lang.h (go_val_print): Don't declare.
8728 * go-lang.c (go_language_defn): Update.
8729 * f-valprint.c (f_val_print): Remove.
8730 * f-lang.h (f_value_print): Don't declare.
8731 * f-lang.c (f_language_defn): Update.
8732 * d-valprint.c (d_val_print): Remove.
8733 * d-lang.h (d_value_print): Don't declare.
8734 * d-lang.c (d_language_defn): Update.
8735 * cp-valprint.c (cp_print_value_fields)
8736 (cp_print_value_fields_rtti, cp_print_value): Remove.
8737 (cp_print_static_field): Update.
8738 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8739 (c_val_print_struct, c_val_print_union, c_val_print_int)
8740 (c_val_print_memberptr, c_val_print): Remove.
8741 * c-lang.h (c_val_print_array, cp_print_value_fields)
8742 (cp_print_value_fields_rtti): Don't declare.
8743 * c-lang.c (c_language_defn, cplus_language_defn)
8744 (asm_language_defn, minimal_language_defn): Update.
8745 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8746 (ada_val_print_enum): Take a struct value.
8747 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8748 (ada_val_print): Remove.
8749 (ada_value_print_1): Update.
8750 (printable_val_type): Remove.
8751 * ada-lang.h (ada_val_print): Don't declare.
8752 * ada-lang.c (ada_language_defn): Update.
8753
8754 2020-03-13 Tom Tromey <tom@tromey.com>
8755
8756 * valprint.c (do_val_print): Update.
8757 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8758 a struct value.
8759 (value_to_value_object_no_release): Declare.
8760 * python/py-value.c (value_to_value_object_no_release): New
8761 function.
8762 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8763 struct value.
8764 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8765 function.
8766 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8767 a struct value.
8768 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8769 Declare.
8770 (gdbscm_apply_val_pretty_printer): Take a struct value.
8771 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8772 value.
8773 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8774 value.
8775 * extension-priv.h (struct extension_language_ops)
8776 <apply_val_pretty_printer>: Take a struct value.
8777 * cp-valprint.c (cp_print_value): Create a struct value.
8778 (cp_print_value): Update.
8779
8780 2020-03-13 Tom Tromey <tom@tromey.com>
8781
8782 * ada-valprint.c (print_field_values): Call common_val_print.
8783
8784 2020-03-13 Tom Tromey <tom@tromey.com>
8785
8786 * ada-valprint.c (val_print_packed_array_elements): Remove
8787 bitoffset and val parameters. Call common_val_print.
8788 (ada_val_print_string): Remove offset, address, and original_value
8789 parameters.
8790 (ada_val_print_array): Update.
8791 (ada_value_print_array): New function.
8792 (ada_value_print_1): Call it.
8793
8794 2020-03-13 Tom Tromey <tom@tromey.com>
8795
8796 * ada-valprint.c (ada_value_print): Use common_val_print.
8797
8798 2020-03-13 Tom Tromey <tom@tromey.com>
8799
8800 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8801
8802 2020-03-13 Tom Tromey <tom@tromey.com>
8803
8804 * ada-valprint.c (ada_value_print_num): New function.
8805 (ada_value_print_1): Use it.
8806
8807 2020-03-13 Tom Tromey <tom@tromey.com>
8808
8809 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8810
8811 2020-03-13 Tom Tromey <tom@tromey.com>
8812
8813 * ada-valprint.c (ada_value_print_ptr): New function.
8814 (ada_value_print_1): Use it.
8815
8816 2020-03-13 Tom Tromey <tom@tromey.com>
8817
8818 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8819 call common_val_print.
8820 (ada_val_print_1): Update.
8821 (ada_value_print_1): New function.
8822 (ada_value_print_inner): Rewrite.
8823
8824 2020-03-13 Tom Tromey <tom@tromey.com>
8825
8826 * cp-valprint.c (cp_print_value_fields): Update.
8827 (cp_print_value): New function.
8828
8829 2020-03-13 Tom Tromey <tom@tromey.com>
8830
8831 * m2-valprint.c (m2_value_print_inner): Use
8832 cp_print_value_fields.
8833 * cp-valprint.c (cp_print_value_fields): New function.
8834 * c-valprint.c (c_value_print_struct): New function.
8835 (c_value_print_inner): Use c_value_print_struct.
8836 * c-lang.h (cp_print_value_fields): Declare.
8837
8838 2020-03-13 Tom Tromey <tom@tromey.com>
8839
8840 * c-valprint.c (c_value_print_array): New function.
8841 (c_value_print_inner): Use it.
8842
8843 2020-03-13 Tom Tromey <tom@tromey.com>
8844
8845 * c-valprint.c (c_value_print_memberptr): New function.
8846 (c_value_print_inner): Use it.
8847
8848 2020-03-13 Tom Tromey <tom@tromey.com>
8849
8850 * c-valprint.c (c_value_print_int): New function.
8851 (c_value_print_inner): Use it.
8852
8853 2020-03-13 Tom Tromey <tom@tromey.com>
8854
8855 * c-valprint.c (c_value_print_ptr): New function.
8856 (c_value_print_inner): Use it.
8857
8858 2020-03-13 Tom Tromey <tom@tromey.com>
8859
8860 * c-valprint.c (c_value_print_inner): Rewrite.
8861
8862 2020-03-13 Tom Tromey <tom@tromey.com>
8863
8864 * valprint.c (generic_value_print_complex): New function.
8865 (generic_value_print): Use it.
8866
8867 2020-03-13 Tom Tromey <tom@tromey.com>
8868
8869 * valprint.c (generic_val_print_float): Don't call
8870 val_print_scalar_formatted.
8871 (generic_val_print, generic_value_print): Update.
8872
8873 2020-03-13 Tom Tromey <tom@tromey.com>
8874
8875 * valprint.c (generic_value_print_char): New function
8876 (generic_value_print): Use it.
8877
8878 2020-03-13 Tom Tromey <tom@tromey.com>
8879
8880 * valprint.c (generic_value_print_int): New function.
8881 (generic_value_print): Use it.
8882
8883 2020-03-13 Tom Tromey <tom@tromey.com>
8884
8885 * valprint.c (generic_value_print_bool): New function.
8886 (generic_value_print): Use it.
8887
8888 2020-03-13 Tom Tromey <tom@tromey.com>
8889
8890 * valprint.c (generic_val_print_func): Simplify.
8891 (generic_val_print, generic_value_print): Update.
8892
8893 2020-03-13 Tom Tromey <tom@tromey.com>
8894
8895 * valprint.c (generic_val_print_flags): Remove.
8896 (generic_val_print, generic_value_print): Update.
8897 (val_print_type_code_flags): Add original_value parameter.
8898
8899 2020-03-13 Tom Tromey <tom@tromey.com>
8900
8901 * valprint.c (generic_val_print): Update.
8902 (generic_value_print): Update.
8903 * valprint.c (generic_val_print_enum): Don't call
8904 val_print_scalar_formatted.
8905
8906 2020-03-13 Tom Tromey <tom@tromey.com>
8907
8908 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8909 * valprint.c (generic_value_print_ptr): New function.
8910
8911 2020-03-13 Tom Tromey <tom@tromey.com>
8912
8913 * valprint.c (generic_value_print): Rewrite.
8914
8915 2020-03-13 Tom Tromey <tom@tromey.com>
8916
8917 * p-valprint.c (pascal_object_print_value_fields)
8918 (pascal_object_print_value): New functions.
8919
8920 2020-03-13 Tom Tromey <tom@tromey.com>
8921
8922 * p-valprint.c (pascal_value_print_inner): Rewrite.
8923
8924 2020-03-13 Tom Tromey <tom@tromey.com>
8925
8926 * f-valprint.c (f_value_print_innner): Rewrite.
8927
8928 2020-03-13 Tom Tromey <tom@tromey.com>
8929
8930 * m2-valprint.c (m2_print_unbounded_array): New overload.
8931 (m2_print_unbounded_array): Update.
8932 (m2_print_array_contents): Take a struct value.
8933 (m2_value_print_inner): Rewrite.
8934
8935 2020-03-13 Tom Tromey <tom@tromey.com>
8936
8937 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8938 (d_value_print_inner): New function.
8939 * d-lang.h (d_value_print_inner): Declare.
8940 * d-lang.c (d_language_defn): Use d_value_print_inner.
8941
8942 2020-03-13 Tom Tromey <tom@tromey.com>
8943
8944 * go-valprint.c (go_value_print_inner): New function.
8945 * go-lang.h (go_value_print_inner): Declare.
8946 * go-lang.c (go_language_defn): Use go_value_print_inner.
8947
8948 2020-03-13 Tom Tromey <tom@tromey.com>
8949
8950 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8951 API.
8952 (rust_val_print): Rewrite.
8953 (rust_value_print_inner): New function, from rust_val_print.
8954 (rust_language_defn): Use rust_value_print_inner.
8955
8956 2020-03-13 Tom Tromey <tom@tromey.com>
8957
8958 * ada-valprint.c (ada_value_print_inner): New function.
8959 * ada-lang.h (ada_value_print_inner): Declare.
8960 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8961
8962 2020-03-13 Tom Tromey <tom@tromey.com>
8963
8964 * f-valprint.c (f_value_print_innner): New function.
8965 * f-lang.h (f_value_print_innner): Declare.
8966 * f-lang.c (f_language_defn): Use f_value_print_innner.
8967
8968 2020-03-13 Tom Tromey <tom@tromey.com>
8969
8970 * p-valprint.c (pascal_value_print_inner): New function.
8971 * p-lang.h (pascal_value_print_inner): Declare.
8972 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8973
8974 2020-03-13 Tom Tromey <tom@tromey.com>
8975
8976 * m2-valprint.c (m2_value_print_inner): New function.
8977 * m2-lang.h (m2_value_print_inner): Declare.
8978 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8979
8980 2020-03-13 Tom Tromey <tom@tromey.com>
8981
8982 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8983 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8984 * c-valprint.c (c_value_print_inner): New function.
8985 * c-lang.h (c_value_print_inner): Declare.
8986 * c-lang.c (c_language_defn, cplus_language_defn)
8987 (asm_language_defn, minimal_language_defn): Use
8988 c_value_print_inner.
8989
8990 2020-03-13 Tom Tromey <tom@tromey.com>
8991
8992 * p-valprint.c (pascal_object_print_value_fields): Now static.
8993 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8994
8995 2020-03-13 Tom Tromey <tom@tromey.com>
8996
8997 * c-valprint.c (c_val_print_array): Simplify.
8998
8999 2020-03-13 Tom Tromey <tom@tromey.com>
9000
9001 * valprint.c (value_print_array_elements): New function.
9002 * valprint.h (value_print_array_elements): Declare.
9003
9004 2020-03-13 Tom Tromey <tom@tromey.com>
9005
9006 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9007 * mips-tdep.c (mips_print_register): Use
9008 value_print_scalar_formatted.
9009
9010 2020-03-13 Tom Tromey <tom@tromey.com>
9011
9012 * valprint.h (value_print_scalar_formatted): Declare.
9013 * valprint.c (value_print_scalar_formatted): New function.
9014
9015 2020-03-13 Tom Tromey <tom@tromey.com>
9016
9017 * valprint.h (generic_value_print): Declare.
9018 * valprint.c (generic_value_print): New function.
9019
9020 2020-03-13 Tom Tromey <tom@tromey.com>
9021
9022 * valprint.c (do_val_print): Call la_value_print_inner, if
9023 available.
9024 * rust-lang.c (rust_language_defn): Update.
9025 * p-lang.c (pascal_language_defn): Update.
9026 * opencl-lang.c (opencl_language_defn): Update.
9027 * objc-lang.c (objc_language_defn): Update.
9028 * m2-lang.c (m2_language_defn): Update.
9029 * language.h (struct language_defn) <la_value_print_inner>: New
9030 member.
9031 * language.c (unknown_language_defn, auto_language_defn): Update.
9032 * go-lang.c (go_language_defn): Update.
9033 * f-lang.c (f_language_defn): Update.
9034 * d-lang.c (d_language_defn): Update.
9035 * c-lang.c (c_language_defn, cplus_language_defn)
9036 (asm_language_defn, minimal_language_defn): Update.
9037 * ada-lang.c (ada_language_defn): Update.
9038
9039 2020-03-13 Tom Tromey <tom@tromey.com>
9040
9041 * c-valprint.c (c_value_print): Use common_val_print.
9042
9043 2020-03-13 Tom Tromey <tom@tromey.com>
9044
9045 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9046
9047 2020-03-13 Tom Tromey <tom@tromey.com>
9048
9049 * f-valprint.c (f77_print_array_1, f_val_print): Use
9050 common_val_print.
9051
9052 2020-03-13 Tom Tromey <tom@tromey.com>
9053
9054 * riscv-tdep.c (riscv_print_one_register_info): Use
9055 common_val_print.
9056
9057 2020-03-13 Tom Tromey <tom@tromey.com>
9058
9059 * mi/mi-main.c (output_register): Use common_val_print.
9060
9061 2020-03-13 Tom Tromey <tom@tromey.com>
9062
9063 * infcmd.c (default_print_one_register_info): Use
9064 common_val_print.
9065
9066 2020-03-13 Tom Tromey <tom@tromey.com>
9067
9068 * valprint.h (common_val_print_checked): Declare.
9069 * valprint.c (common_val_print_checked): New function.
9070 * stack.c (print_frame_arg): Use common_val_print_checked.
9071
9072 2020-03-13 Tom Tromey <tom@tromey.com>
9073
9074 * valprint.c (do_val_print): New function, from val_print.
9075 (val_print): Use do_val_print.
9076 (common_val_print): Use do_val_print.
9077
9078 2020-03-13 Tom Tromey <tom@tromey.com>
9079
9080 * valprint.c (value_print): Use scoped_value_mark.
9081
9082 2020-03-13 Tom de Vries <tdevries@suse.de>
9083
9084 PR symtab/25646
9085 * psymtab.c (partial_symtab::partial_symtab): Don't set
9086 globals_offset and statics_offset. Push element onto
9087 current_global_psymbols and current_static_psymbols stacks.
9088 (concat): New function.
9089 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9090 element from current_global_psymbols and current_static_psymbols
9091 stacks. Concat popped elements to global_psymbols and
9092 static_symbols.
9093 (add_psymbol_to_list): Use current_global_psymbols and
9094 current_static_psymbols stacks.
9095 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9096 current_static_psymbols fields.
9097
9098 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9099
9100 * corelow.c (sniff_core_bfd): Remove.
9101 (class core_target) <m_core_vec>: Remove.
9102 (core_target::core_target): Update.
9103 (core_file_fns): Remove.
9104 (deprecated_add_core_fns): Remove.
9105 (default_core_sniffer): Remove.
9106 (sniff_core_bfd): Remove.
9107 (default_check_format): Remove.
9108 (gdb_check_format): Remove.
9109 (core_target_open): Update.
9110 (core_target::get_core_register_section): Update.
9111 (get_core_registers_cb): Update.
9112 (core_target::fetch_registers): Update.
9113 * gdbcore.h (struct core_fns): Remove.
9114 (deprecated_add_core_fns): Remove.
9115 (default_core_sniffer): Remove.
9116 (default_check_format): Remove.
9117
9118 2020-03-12 Tom Tromey <tom@tromey.com>
9119
9120 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9121 CORE_ADDR.
9122 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9123
9124 2020-03-12 Tom Tromey <tom@tromey.com>
9125
9126 * remote.c (remote_target::download_tracepoint)
9127 (remote_target::enable_tracepoint)
9128 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9129 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9130 sprintf_vma.
9131
9132 2020-03-12 Tom Tromey <tom@tromey.com>
9133
9134 * symfile-mem.c: Update CORE_ADDR size assert.
9135
9136 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9137
9138 * selftest.m4: Move to gdbsupport/.
9139 * acinclude.m4: Update path to selftest.m4.
9140
9141 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9142
9143 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9144 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9145 gdbarch-selfselftests.c and selftest-arch.c.
9146 (SUBDIR_UNITTESTS_OBS): Rename to...
9147 (SELFTESTS_OBS): ... this.
9148 (COMMON_SFILES): Remove disasm-selftests.c and
9149 gdbarch-selftests.c.
9150 * configure.ac: Don't add selftest-arch.{c,o} to
9151 CONFIG_{SRCS,OBS}.
9152 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9153 preprocessor conditions.
9154
9155 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * configure.ac: Don't source bfd/development.sh.
9158 * selftest.m4: Modify comment.
9159 * configure: Re-generate.
9160
9161 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9162
9163 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9164 not "true" or "false".
9165 * configure: Re-generate.
9166
9167 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9168
9169 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9170 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9171 renamed to arm_nbsd_supply_gregset.
9172 (fetch_register): Update to call arm_nbsd_supply_gregset.
9173 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9174 (arm_netbsd_nat_target::fetch_registers): Update.
9175 (fetch_elfcore_registers): Removed.
9176 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9177 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9178 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9179 not require NetBSD system headers.
9180 (arm_nbsd_regset): New struct.
9181 (arm_nbsd_iterate_over_regset_sections): New function.
9182 (arm_netbsd_init_abi_common): Updated to call
9183 set_gdbarch_iterate_over_regset_sections.
9184 * arm-nbsd-tdep.h: New file.
9185
9186 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9187
9188 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9189 recursion.
9190
9191 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9192
9193 * configure: Re-generate.
9194
9195 2020-03-11 Tom Tromey <tromey@adacore.com>
9196
9197 * ada-typeprint.c (print_choices): Fix comment.
9198
9199 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9200
9201 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9202 previous item in the list, when the list has no items.
9203
9204 2020-03-11 Tom de Vries <tdevries@suse.de>
9205
9206 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9207 PROP_LOCLIST handling code.
9208
9209 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9210
9211 * buildsym-legacy.c (record_line): Pass extra parameter to
9212 record_line.
9213 * buildsym.c (buildsym_compunit::record_line): Take an extra
9214 parameter, reduce duplication in the line table, and record the
9215 is_stmt flag in the line table.
9216 * buildsym.h (buildsym_compunit::record_line): Add extra
9217 parameter.
9218 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9219 non-statement lines.
9220 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9221 this to the symtab builder.
9222 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9223 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9224 through to dwarf_record_line_1.
9225 * infrun.c (process_event_stop_test): When stepping, don't stop at
9226 a non-statement instruction, and only refresh the step info when
9227 we land in the middle of a line's range. Also add an extra
9228 comment.
9229 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9230 field.
9231 * record-btrace.c (btrace_find_line_range): Only record lines
9232 marked as is-statement.
9233 * stack.c (frame_show_address): Show the frame address if we are
9234 in a non-statement sal.
9235 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9236 (maintenance_print_one_line_table): Print a header for the is_stmt
9237 column, and include is_stmt information in the output.
9238 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9239 preference to non-statements.
9240 (find_pcs_for_symtab_line): Prefer is-statement entries.
9241 (find_line_common): Likewise.
9242 * symtab.h (struct linetable_entry): Add is_stmt field.
9243 (struct symtab_and_line): Likewise.
9244 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9245 arranging the line table.
9246
9247 2020-03-07 Tom de Vries <tdevries@suse.de>
9248
9249 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9250 DIE.
9251
9252 2020-03-07 Tom Tromey <tom@tromey.com>
9253
9254 * valops.c (value_literal_complex): Remove obsolete comment.
9255 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9256 comment.
9257
9258 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9259
9260 * infrun.h: Forward-declare thread_info.
9261 (set_step_info): Add thread_info parameter, add doc.
9262 * infrun.c (set_step_info): Add thread_info parameter, move doc
9263 to header.
9264 * infrun.c (process_event_stop_test): Pass thread to
9265 set_step_info call.
9266 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9267 set_step_info.
9268 (prepare_one_step): Add thread_info parameter, pass it to
9269 set_step_frame and prepare_one_step (recursive) call.
9270 (step_1): Pass thread to prepare_one_step call.
9271 (step_command_fsm::should_stop): Pass thread to
9272 prepare_one_step.
9273 (until_next_fsm): Pass thread to set_step_frame call.
9274 (finish_command): Pass thread to set_step_info call.
9275
9276 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9277
9278 * windows-tdep.c (windows_solib_create_inferior_hook):
9279 Check if inferior is running.
9280
9281 2020-03-06 Tom de Vries <tdevries@suse.de>
9282
9283 * NEWS: Fix "the the".
9284 * ctfread.c: Same.
9285
9286 2020-03-06 Tom de Vries <tdevries@suse.de>
9287
9288 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9289
9290 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9291
9292 * .dir-locals.el: Add a comment referencing the other copies of
9293 this file.
9294
9295 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9296
9297 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9298 psargs.
9299
9300 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9301
9302 * .gitattributes: New file.
9303
9304 2020-03-04 Tom Tromey <tom@tromey.com>
9305
9306 * symmisc.c (print_symbol_bcache_statistics)
9307 (print_objfile_statistics): Update.
9308 * symfile.c (allocate_symtab): Use intern.
9309 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9310 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9311 macro_cache>: Remove.
9312 <string_cache>: New member.
9313 (struct objfile) <intern>: New methods.
9314 * elfread.c (elf_symtab_read): Use intern.
9315 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9316 (dwarf2_compute_name, dwarf2_physname)
9317 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9318 names.
9319 (guess_partial_die_structure_name): Update.
9320 (partial_die_info::fixup): Intern name.
9321 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9322 name.
9323 (dwarf2_name): Intern name. Update.
9324 * buildsym.c (buildsym_compunit::get_macro_table): Use
9325 string_cache.
9326
9327 2020-03-04 Tom Tromey <tom@tromey.com>
9328
9329 * jit.c (bfd_open_from_target_memory): Make "target" const.
9330 * corefile.c (gnutarget): Now const.
9331 * gdbcore.h (gnutarget): Now const.
9332
9333 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9334
9335 * NEWS: Mention support for WOW64 processes.
9336 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9337 (amd64_windows_segment_register_p): Remove static.
9338 (_initialize_amd64_windows_nat): Update.
9339 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9340 * i386-windows-nat.c (context_offset): Update.
9341 (i386_mappings): Rename and remove static.
9342 (i386_windows_segment_register_p): Remove static.
9343 (_initialize_i386_windows_nat): Update.
9344 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9345 (STATUS_WX86_SINGLE_STEP): New macro.
9346 (EnumProcessModulesEx): New macro.
9347 (Wow64SuspendThread): New macro.
9348 (Wow64GetThreadContext): New macro.
9349 (Wow64SetThreadContext): New macro.
9350 (Wow64GetThreadSelectorEntry): New macro.
9351 (windows_set_context_register_offsets): Add static.
9352 (windows_set_segment_register_p): Likewise.
9353 (windows_add_thread): Adapt for WOW64 processes.
9354 (windows_fetch_one_register): Likewise.
9355 (windows_nat_target::fetch_registers): Likewise.
9356 (windows_store_one_register): Likewise.
9357 (display_selector): Likewise.
9358 (display_selectors): Likewise.
9359 (handle_exception): Likewise.
9360 (windows_continue): Likewise.
9361 (windows_nat_target::resume): Likewise.
9362 (windows_add_all_dlls): Likewise.
9363 (do_initial_windows_stuff): Likewise.
9364 (windows_nat_target::attach): Likewise.
9365 (windows_get_exec_module_filename): Likewise.
9366 (windows_nat_target::create_inferior): Likewise.
9367 (windows_xfer_siginfo): Likewise.
9368 (_initialize_loadable): Initialize Wow64SuspendThread,
9369 Wow64GetThreadContext, Wow64SetThreadContext,
9370 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9371 * windows-nat.h (windows_set_context_register_offsets):
9372 Remove declaration.
9373 (windows_set_segment_register_p): Likewise.
9374 (i386_windows_segment_register_p): Add declaration.
9375 (amd64_windows_segment_register_p): Likewise.
9376
9377 2020-03-04 Luis Machado <luis.machado@linaro.org>
9378
9379 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9380 in "info registers" for AArch64/ARM.
9381
9382 The change caused "info registers" to not print GPR's.
9383
9384 gdb/ChangeLog:
9385
9386 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9387
9388 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9389 when reg->group is empty and reggroup is not.
9390
9391 2020-03-03 Tom Tromey <tromey@adacore.com>
9392
9393 * dwarf2/frame.c (struct dwarf2_frame_cache)
9394 <checked_tailcall_bottom, entry_cfa_sp_offset,
9395 entry_cfa_sp_offset_p>: Remove members.
9396 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9397 (dwarf2_frame_prev_register): Don't call
9398 dwarf2_tailcall_sniffer_first.
9399 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9400 * frame-unwind.c (add_unwinder): New fuction.
9401 (frame_unwind_init): Use it. Add tailcall unwinder.
9402
9403 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9404 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9405
9406 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9407 value should be printed as true.
9408
9409 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9410
9411 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9412 (windows_init_abi): Set and use windows_so_ops.
9413
9414 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9415
9416 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9417 when verifying if dealing with a convenience variable.
9418
9419 2020-03-03 Luis Machado <luis.machado@linaro.org>
9420
9421 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9422
9423 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9424
9425 * infrun.c (gdbarch_supports_displaced_stepping): New.
9426 (use_displaced_stepping): Break up conditions in smaller pieces.
9427 Use gdbarch_supports_displaced_stepping.
9428 (displaced_step_prepare_throw): Use
9429 gdbarch_supports_displaced_stepping.
9430
9431 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9432
9433 * NEWS: Mention new behaviour of the history filename.
9434 * top.c (write_history_p): Add comment.
9435 (show_write_history_p): Add header comment, give a different
9436 message when history writing is on, but the history filename is
9437 empty.
9438 (history_filename): Add comment.
9439 (history_filename_empty): New function.
9440 (show_history_filename): Add header comment, give a different
9441 message when the filename is empty.
9442 (init_history): Compare history_filename against nullptr, and only
9443 read history if the filename is not empty.
9444 (set_history_filename): Add header comment, and only make
9445 non-empty filenames absolute.
9446 (init_main): Make the filename argument to 'set history filename'
9447 optional.
9448
9449 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9450
9451 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9452 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9453 (fetch_fp_register): Update.
9454 (fetch_fp_regs): Update.
9455 (store_fp_register): Update.
9456 (store_fp_regs): Update.
9457 (arm_netbsd_nat_target::read_description): New function.
9458 (fetch_elfcore_registers): Update.
9459
9460 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9461
9462 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9463 general_thread if the stop reply is missing a thread-id.
9464 (remote_target::process_stop_reply): Use the first non-exited
9465 thread if the target didn't pass a thread-id.
9466 * infrun.c (do_target_wait): Move call to
9467 switch_to_inferior_no_thread to ....
9468 (do_target_wait_1): ... here.
9469
9470 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9471
9472 * debuginfod-support.c: Include defs.h first.
9473
9474 2020-02-28 Tom de Vries <tdevries@suse.de>
9475
9476 * symfile.c (set_initial_language): Use default language for lookup.
9477
9478 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9479
9480 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9481 reader variable, pass `this` to read_cutu_die_from_dwo.
9482
9483 2020-02-27 Aaron Merey <amerey@redhat.com>
9484
9485 * source.c (open_source_file): Check for nullptr when computing
9486 srcpath.
9487
9488 2020-02-27 Tom Tromey <tromey@adacore.com>
9489
9490 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9491 member.
9492 (dwarf2_add_field): Don't update nfields.
9493 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9494
9495 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9496
9497 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9498 abs.
9499
9500 2020-02-26 Tom Tromey <tom@tromey.com>
9501
9502 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9503 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9504 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9505 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9506 per_cu_data.
9507
9508 2020-02-26 Tom Tromey <tom@tromey.com>
9509
9510 * dwarf2/index-write.c (psym_index_map): Change type.
9511 (add_address_entry_worker, write_one_signatured_type)
9512 (recursively_count_psymbols, recursively_write_psymbols)
9513 (class debug_names, psyms_seen_size, write_gdbindex)
9514 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9515
9516 2020-02-26 Aaron Merey <amerey@redhat.com>
9517
9518 * Makefile.in: Handle optional debuginfod support.
9519 * NEWS: Update.
9520 * README: Add --with-debuginfod summary.
9521 * config.in: Regenerate.
9522 * configure: Regenerate.
9523 * configure.ac: Handle optional debuginfod support.
9524 * debuginfod-support.c: debuginfod helper functions.
9525 * debuginfod-support.h: Ditto.
9526 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9527 summary.
9528 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9529 when a dwz file cannot be found.
9530 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9531 debuginfo file cannot be found.
9532 * source.c (open_source_file): Query debuginfod servers when a
9533 source file cannot be found.
9534 * top.c (print_gdb_configuration): Include
9535 --{with,without}-debuginfod in the output.
9536
9537 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9538
9539 * thread.c (thr_try_catch_cmd): Print thread name.
9540
9541 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9542
9543 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9544 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9545 dwarf2_fetch_die_type_sect_off): Move to...
9546 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9547 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9548 dwarf2_fetch_die_type_sect_off): ... here.
9549 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9550 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9551 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9552
9553 2020-02-26 Tom de Vries <tdevries@suse.de>
9554
9555 PR gdb/25603
9556 * symfile.c (set_initial_language): Exit-early if
9557 language_mode == language_mode_manual.
9558
9559 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9560
9561 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9562 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9563 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9564
9565 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9566
9567 * gdbtypes.c (create_array_type_with_stride): Handle negative
9568 array strides.
9569 * valarith.c (value_subscripted_rvalue): Likewise.
9570
9571 2020-02-25 Luis Machado <luis.machado@linaro.org>
9572
9573 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9574
9575 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9576
9577 * loc.h (dwarf2_get_die_type): Move to...
9578 * read.h (dwarf2_get_die_type): ... here.
9579 * read.c (dwarf2_get_die_type): Move doc to header.
9580
9581 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9582
9583 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9584 'gnulib/Makefile.in' to the list.
9585
9586 2020-02-24 Tom Tromey <tom@tromey.com>
9587
9588 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9589 Remove.
9590 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9591 XOBNEWVEC.
9592
9593 2020-02-24 Tom Tromey <tom@tromey.com>
9594
9595 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9596 New method.
9597 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9598 (dw2_do_instantiate_symtab, dw2_get_file_names)
9599 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9600
9601 2020-02-24 Tom Tromey <tom@tromey.com>
9602
9603 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9604 make_scoped_restore.
9605 (dwarf2_psymtab::read_symtab): Don't clear
9606 reading_partial_symbols.
9607
9608 2020-02-24 Tom de Vries <tdevries@suse.de>
9609
9610 PR gdb/25592
9611 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9612
9613 2020-02-24 Tom de Vries <tdevries@suse.de>
9614
9615 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9616 commands layout next/prev/regs.
9617
9618 2020-02-22 Tom Tromey <tom@tromey.com>
9619
9620 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9621 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9622
9623 2020-02-22 Tom Tromey <tom@tromey.com>
9624
9625 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9626
9627 2020-02-22 Tom Tromey <tom@tromey.com>
9628
9629 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9630 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9631 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9632 * tui/tui.c (_initialize_tui): Add usage text.
9633
9634 2020-02-22 Tom Tromey <tom@tromey.com>
9635
9636 * tui/tui-win.c (tui_set_focus_command)
9637 (tui_set_win_height_command): Use error_no_arg.
9638 (_initialize_tui_win): Update help text.
9639 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9640
9641 2020-02-22 Tom Tromey <tom@tromey.com>
9642
9643 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9644 * tui/tui-disasm.h (struct tui_disasm_window)
9645 <display_start_addr>: Declare.
9646 * tui/tui-source.h (struct tui_source_window)
9647 <display_start_addr>: Declare.
9648 * tui/tui-winsource.h (struct tui_source_window_base)
9649 <show_source_line, display_start_addr>: New methods.
9650 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9651 Rename and move to protected section.
9652 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9653 (tui_source_window_base::do_erase_source_content): Update.
9654 (tui_source_window_base::show_source_line): Now a method.
9655 (tui_source_window_base::show_source_content)
9656 (tui_source_window_base::tui_source_window_base)
9657 (tui_source_window_base::rerender)
9658 (tui_source_window_base::refill)
9659 (tui_source_window_base::do_scroll_horizontal)
9660 (tui_source_window_base::set_is_exec_point_at)
9661 (tui_source_window_base::update_breakpoint_info)
9662 (tui_source_window_base::update_exec_info): Update.
9663 * tui/tui-source.c (tui_source_window::set_contents)
9664 (tui_source_window::showing_source_p)
9665 (tui_source_window::do_scroll_vertical)
9666 (tui_source_window::location_matches_p)
9667 (tui_source_window::line_is_displayed): Update.
9668 (tui_source_window::display_start_addr): New method.
9669 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9670 (tui_disasm_window::do_scroll_vertical)
9671 (tui_disasm_window::location_matches_p): Update.
9672 (tui_disasm_window::display_start_addr): New method.
9673
9674 2020-02-22 Tom Tromey <tom@tromey.com>
9675
9676 * NEWS: Add entry for gdb.register_window_type.
9677 * tui/tui-layout.h (window_factory): New typedef.
9678 (tui_register_window): Declare.
9679 * tui/tui-layout.c (saved_tui_windows): New global.
9680 (tui_apply_current_layout): Use it.
9681 (tui_register_window): New function.
9682 * python/python.c (do_start_initialization): Call
9683 gdbpy_initialize_tui.
9684 (python_GdbMethods): Add "register_window_type" function.
9685 * python/python-internal.h (gdbpy_register_tui_window)
9686 (gdbpy_initialize_tui): Declare.
9687 * python/py-tui.c: New file.
9688 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9689
9690 2020-02-22 Tom Tromey <tom@tromey.com>
9691
9692 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9693
9694 2020-02-22 Tom Tromey <tom@tromey.com>
9695
9696 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9697 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9698 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9699 (tui_set_win_focus_to): Move from tui-win.c.
9700
9701 2020-02-22 Tom Tromey <tom@tromey.com>
9702
9703 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9704 functions.
9705 (known_window_types): New global.
9706 (tui_get_window_by_name): Reimplement.
9707 (initialize_known_windows): New function.
9708 (validate_window_name): Rewrite.
9709 (_initialize_tui_layout): Call initialize_known_windows.
9710
9711 2020-02-22 Tom Tromey <tom@tromey.com>
9712
9713 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9714 Remove constants.
9715 * tui/tui-winsource.h (struct tui_source_window_base)
9716 <tui_source_window_base>: Remove parameter.
9717 * tui/tui-winsource.c
9718 (tui_source_window_base::tui_source_window_base): Remove
9719 parameter.
9720 (tui_source_window_base::refill): Update.
9721 * tui/tui-stack.h (struct tui_locator_window)
9722 <tui_locator_window>: Update.
9723 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9724 Default the constructor.
9725 * tui/tui-regs.h (struct tui_data_item_window)
9726 <tui_data_item_window>: Default the constructor.
9727 (struct tui_data_window) <tui_data_window>: Likewise.
9728 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9729 Default the constructor.
9730 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9731 Default the constructor.
9732 <type>: Remove.
9733 (struct tui_win_info) <tui_win_info>: Default the constructor.
9734 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9735 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9736 Default the constructor.
9737
9738 2020-02-22 Tom Tromey <tom@tromey.com>
9739
9740 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9741 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9742 * tui/tui-win.c (tui_resize_all): Don't call
9743 tui_delete_invisible_windows.
9744 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9745 done.
9746 (tui_set_layout): Update.
9747 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9748 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9749 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9750
9751 2020-02-22 Tom Tromey <tom@tromey.com>
9752
9753 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9754 correctly.
9755
9756 2020-02-22 Tom Tromey <tom@tromey.com>
9757
9758 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9759
9760 2020-02-22 Tom Tromey <tom@tromey.com>
9761
9762 * tui/tui-winsource.h (struct tui_source_window_iterator)
9763 <inner_iterator>: New etytypedef.
9764 <tui_source_window_iterator>: Take "end" parameter.
9765 <tui_source_window_iterator>: Take iterator.
9766 <operator*, advance>: Update.
9767 <m_iter>: Change type.
9768 <m_end>: New field.
9769 (struct tui_source_windows) <begin, end>: Update.
9770 * tui/tui-layout.c (tui_windows): New global.
9771 (tui_apply_current_layout): Clear tui_windows.
9772 (tui_layout_window::apply): Update tui_windows.
9773 * tui/tui-data.h (tui_windows): Declare.
9774 (all_tui_windows): Now inline function.
9775 (class tui_window_iterator, struct all_tui_windows): Remove.
9776
9777 2020-02-22 Tom Tromey <tom@tromey.com>
9778
9779 PR tui/17850:
9780 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9781 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9782 "height" argument.
9783 (class tui_layout_window) <get_sizes>: Likewise.
9784 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9785 argument.
9786 <get_sizes>: Add "height" argument.
9787 <m_vertical>: New field.
9788 * tui/tui-layout.c (tui_layout_split::clone): Update.
9789 (tui_layout_split::get_sizes): Add "height" argument.
9790 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9791 (tui_new_layout_command): Parse "-horizontal".
9792 (_initialize_tui_layout): Update help string.
9793 (tui_layout_split::specification): Add "-horizontal" when needed.
9794 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9795 argument.
9796 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9797 New methods.
9798
9799 2020-02-22 Tom Tromey <tom@tromey.com>
9800
9801 * tui/tui-layout.h (enum tui_adjust_result): New.
9802 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9803 (class tui_layout_window) <adjust_size>: Return
9804 tui_adjust_result. Rewrite.
9805 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9806 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9807
9808 2020-02-22 Tom Tromey <tom@tromey.com>
9809
9810 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9811 parameter and return types.
9812 (class tui_layout_base) <specification>: Add "depth".
9813 (class tui_layout_window) <specification>: Add "depth".
9814 (class tui_layout_split) <specification>: Add "depth".
9815 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9816 and return types.
9817 (tui_new_layout_command): Parse sub-layouts.
9818 (_initialize_tui_layout): Update help string.
9819 (tui_layout_window::specification): Add "depth".
9820 (add_layout_command): Update.
9821
9822 2020-02-22 Tom Tromey <tom@tromey.com>
9823
9824 * NEWS: Add "tui new-layout" item.
9825 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9826 Add new-layout command to help text.
9827 (validate_window_name): New function.
9828 (tui_new_layout_command): New function.
9829 (_initialize_tui_layout): Register "new-layout".
9830 (tui_layout_window::specification): New method.
9831 (tui_layout_window::specification): New method.
9832 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9833 method.
9834 (class tui_layout_window) <specification>: New method.
9835 (class tui_layout_split) <specification>: New method.
9836
9837 2020-02-22 Tom Tromey <tom@tromey.com>
9838
9839 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9840 * tui/tui-win.c (window_name_completer): Update comment.
9841 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9842 Declare method.
9843 (class tui_layout_window) <replace_window>: Likewise.
9844 (class tui_layout_split) <replace_window>: Likewise.
9845 (tui_set_layout): Don't declare.
9846 (tui_set_initial_layout): Declare function.
9847 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9848 (asm_regs_layout): New globals.
9849 (tui_current_layout, show_layout): Remove.
9850 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9851 (find_layout, tui_apply_layout): New function.
9852 (layout_completer): Remove.
9853 (tui_next_layout): Reimplement.
9854 (tui_next_layout_command): New function.
9855 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9856 (tui_regs_layout): Reimplement.
9857 (tui_regs_layout_command): New function.
9858 (extract_display_start_addr): Rewrite.
9859 (next_layout, prev_layout): Remove.
9860 (tui_layout_window::replace_window): New method.
9861 (tui_layout_split::replace_window): New method.
9862 (destroy_layout): New function.
9863 (layout_list): New global.
9864 (add_layout_command): New function.
9865 (initialize_layouts): Update.
9866 (tui_layout_command): New function.
9867 (_initialize_tui_layout): Install "layout" commands.
9868 * tui/tui-data.h (enum tui_layout_type): Remove.
9869 (tui_current_layout): Don't declare.
9870
9871 2020-02-22 Tom Tromey <tom@tromey.com>
9872
9873 * tui/tui-regs.c (tui_reg_layout): Remove.
9874 (tui_reg_command): Use tui_regs_layout.
9875 * tui/tui-layout.h (tui_reg_command): Declare.
9876 * tui/tui-layout.c (tui_reg_command): New function.
9877
9878 2020-02-22 Tom Tromey <tom@tromey.com>
9879
9880 * tui/tui.c (tui_rl_delete_other_windows): Call
9881 tui_remove_some_windows.
9882 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9883 Declare method.
9884 (class tui_layout_window) <remove_windows>: New method.
9885 (class tui_layout_split) <remove_windows>: Declare.
9886 (tui_remove_some_windows): Declare.
9887 * tui/tui-layout.c (tui_remove_some_windows): New function.
9888 (tui_layout_split::remove_windows): New method.
9889
9890 2020-02-22 Tom Tromey <tom@tromey.com>
9891
9892 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9893 * tui/tui-layout.h (tui_next_layout): Declare.
9894 * tui/tui-layout.c (tui_next_layout): New function.
9895
9896 2020-02-22 Tom Tromey <tom@tromey.com>
9897
9898 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9899 correct coordinates.
9900
9901 2020-02-22 Tom Tromey <tom@tromey.com>
9902
9903 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9904 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9905 DATA_WIN case.
9906
9907 2020-02-22 Tom Tromey <tom@tromey.com>
9908
9909 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9910 TUI_DISASM_WIN, not tui_win_list.
9911
9912 2020-02-22 Tom Tromey <tom@tromey.com>
9913
9914 * valprint.c (generic_val_print_enum_1)
9915 (val_print_type_code_flags): Style member names.
9916 * rust-lang.c (val_print_struct, rust_print_enum)
9917 (rust_print_struct_def, rust_internal_print_type): Style member
9918 names.
9919 * p-valprint.c (pascal_object_print_value_fields): Style member
9920 names. Only call fprintf_symbol_filtered for static members.
9921 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9922 * f-valprint.c (f_val_print): Style member names.
9923 * f-typeprint.c (f_type_print_base): Style member names.
9924 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9925 call fprintf_symbol_filtered for static members.
9926 (cp_print_class_member): Style member names.
9927 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9928 member names.
9929 * ada-valprint.c (ada_print_scalar): Style enum names.
9930 (ada_val_print_enum): Likewise.
9931 * ada-typeprint.c (print_enum_type): Style enum names.
9932
9933 2020-02-21 Tom Tromey <tom@tromey.com>
9934
9935 * psympriv.h (struct partial_symtab): Update comment.
9936
9937 2020-02-21 Tom Tromey <tromey@adacore.com>
9938
9939 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9940 type is CORE_ADDR.
9941
9942 2020-02-21 Tom de Vries <tdevries@suse.de>
9943
9944 PR gdb/25534
9945 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9946 if dependencies[i]->user != NULL.
9947
9948 2020-02-21 Ali Tamur <tamur@google.com>
9949
9950 * dwarf2/read.c (dwarf2_name): Add null check.
9951
9952 2020-02-20 Tom Tromey <tom@tromey.com>
9953
9954 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9955 ">=", in binary search.
9956 (dwarf2_find_containing_comp_unit): New overload.
9957 (run_test): New self-test.
9958 (_initialize_dwarf2_read): Register new test.
9959
9960 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9961
9962 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9963 * riscv-tdep.h: Likewise.
9964 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9965 rv32-only CSR.
9966 * features/riscv/64bit-csr.xml: Regenerated.
9967
9968 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9969 Tom Tromey <tom@tromey.com>
9970
9971 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9972 of 'fputc_unfiltered'.
9973 (putchar_unfiltered): Call 'fputc_unfiltered'.
9974 (fputc_unfiltered): Call 'fputs_unfiltered'.
9975
9976 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9977
9978 * config.in: Regenerate.
9979 * configure: Regenerate.
9980 * configure.ac: Add --with-python-libdir option.
9981 * main.c: Use WITH_PYTHON_LIBDIR.
9982
9983 2020-02-19 Tom Tromey <tom@tromey.com>
9984
9985 * symtab.c (general_symbol_info::compute_and_set_names): Use
9986 obstack_strndup. Simplify call to symbol_set_demangled_name.
9987
9988 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9989
9990 * dwarf2/read.c (allocate_signatured_type_table,
9991 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9992 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9993 Remove objfile parameter, update all callers.
9994
9995 2020-02-19 Doug Evans <dje@google.com>
9996
9997 PR rust/25535
9998 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9999 rust_enum_variant calculation.
10000
10001 2020-02-19 Tom Tromey <tromey@adacore.com>
10002
10003 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10004
10005 2020-02-19 Tom Tromey <tromey@adacore.com>
10006
10007 * ada-lang.c (cache_symbol): Use obstack_strdup.
10008
10009 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10010
10011 * configure: Regenerate.
10012
10013 2020-02-19 Tom Tromey <tromey@adacore.com>
10014
10015 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10016 NULL check.
10017
10018 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
10019
10020 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10021
10022 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10023
10024 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10025 if GDBSERVER is not defined.
10026 (riscv_tdesc_cache): Likewise, also store const target_desc.
10027 (STATIC_IN_GDB): Define.
10028 (riscv_create_target_description): Update declaration with
10029 STATIC_IN_GDB.
10030 (riscv_lookup_target_description): New function, only define if
10031 GDBSERVER is not defined.
10032 * arch/riscv.h (riscv_create_target_description): Declare only
10033 when GDBSERVER is defined.
10034 (riscv_lookup_target_description): New declaration when GDBSERVER
10035 is not defined.
10036 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10037 (riscv_linux_read_features): ...this, and return
10038 riscv_gdbarch_features instead of target_desc.
10039 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10040 (riscv_linux_read_description): Rename to...
10041 (riscv_linux_read_features): ...this.
10042 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10043 Update to use riscv_gdbarch_features and
10044 riscv_lookup_target_description.
10045 * riscv-tdep.c (riscv_find_default_target_description): Use
10046 riscv_lookup_target_description instead of
10047 riscv_create_target_description.
10048
10049 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10050
10051 * valprint.c (generic_val_print_enum_1): When printing a flag
10052 enum with value 0 and there is no enumerator with value 0, print
10053 just "0" instead of "(unknown: 0x0)".
10054
10055 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10056
10057 * valprint.c (generic_val_print_enum_1): Print unknown part of
10058 flag enum in hex.
10059
10060 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10061
10062 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10063 flag enums to contain duplicate enumerators.
10064 * valprint.c (generic_val_print_enum_1): Update comment.
10065
10066 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10067
10068 * dwarf2/read.c: Include "count-one-bits.h".
10069 (update_enumeration_type_from_children): If an enumerator has
10070 multiple bits set, don't treat the enumeration as a "flag enum".
10071 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10072 of flag enums have 0 or 1 bit set.
10073
10074 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10075
10076 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10077 conversion.
10078 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10079 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10080 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10081 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10082 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10083
10084 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
10085
10086 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10087
10088 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10089
10090 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10091 displaced_step_closure_up.
10092 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10093 (struct displaced_step_closure_up):
10094 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10095 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10096 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10097 Likewise.
10098 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10099 * gdbarch.c, gdbarch.h: Re-generate.
10100 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10101 displaced_step_closure_up.
10102 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10103 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10104 * infrun.h (displaced_step_closure_up): New type alias.
10105 (struct displaced_step_inferior_state) <step_closure>: Change
10106 type to displaced_step_closure_up.
10107 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10108 displaced_step_closure_up.
10109 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10110
10111 2020-02-14 Tom Tromey <tom@tromey.com>
10112
10113 * minidebug.c (gnu_debug_key): New global.
10114 (find_separate_debug_file_in_section): Use it.
10115
10116 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10117
10118 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10119 std::unique_ptr.
10120 * gdbarch.c: Re-generate.
10121 * gdbarch.h: Re-generate.
10122 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10123 change.
10124 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10125 type to std::unique_ptr.
10126 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10127 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10128 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10129 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10130 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10131 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10132 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10133 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10134 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10135
10136 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10137
10138 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10139 std::unique_ptr.
10140 (displaced_step_clear): Rename to...
10141 (displaced_step_reset): ... this. Just call displaced->reset ().
10142 (displaced_step_clear_cleanup): Rename to...
10143 (displaced_step_reset_cleanup): ... this.
10144 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10145 (displaced_step_fixup): Likewise.
10146 (resume_1): Likewise.
10147 (handle_inferior_event): Restore child's memory before calling
10148 displaced_step_fixup on the parent.
10149 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10150 to std::unique_ptr.
10151 <step_closure>: Change type to std::unique_ptr.
10152
10153 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10154
10155 * arm-tdep.c: Include count-one-bits.h.
10156 (cleanup_block_store_pc): Use count_one_bits.
10157 (cleanup_block_load_pc): Use count_one_bits.
10158 (arm_copy_block_xfer): Use count_one_bits.
10159 (thumb2_copy_block_xfer): Use count_one_bits.
10160 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10161 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10162 (thumb_get_next_pcs_raw): Use count_one_bits.
10163 (arm_get_next_pcs_raw): Use count_one_bits_l.
10164 * arch/arm.c (bitcount): Remove.
10165 * arch/arm.h (bitcount): Remove.
10166
10167 2020-02-14 Tom Tromey <tromey@adacore.com>
10168
10169 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10170 Update.
10171 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10172 * dwarf2/loc.c (call_site_find_chain_1): Return
10173 unique_xmalloc_ptr.
10174 (call_site_find_chain): Likewise.
10175
10176 2020-02-14 Richard Biener <rguenther@suse.de>
10177
10178 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10179 on expression with division operators.
10180
10181 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10182
10183 * MAINTAINERS (Write After Approval): Adding myself.
10184
10185 2020-02-12 Tom Tromey <tom@tromey.com>
10186
10187 * event-loop.c (event_data, gdb_event, event_handler_func):
10188 Remove.
10189
10190 2020-02-12 Tom Tromey <tom@tromey.com>
10191
10192 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10193 (dwarf2_frame_objfile_data): Add comment.
10194 (find_comp_unit, set_comp_unit): New functions.
10195 (dwarf2_frame_find_fde): Use find_comp_unit.
10196 (dwarf2_build_frame_info): Use set_comp_unit.
10197
10198 2020-02-12 Tom Tromey <tom@tromey.com>
10199
10200 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10201 (comp_unit): Don't initialize objfile.
10202 (execute_cfa_program): Add text_offset parameter.
10203 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10204 (dwarf2_frame_cache): Update.
10205 (dwarf2_build_frame_info): Don't set "objfile" member.
10206
10207 2020-02-12 Tom Tromey <tom@tromey.com>
10208
10209 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10210 (decode_frame_entry): Likewise.
10211 (dwarf2_build_frame_info): Update.
10212
10213 2020-02-12 Tom Tromey <tom@tromey.com>
10214
10215 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10216 (decode_frame_entry_1): Use the comp_unit obstack.
10217
10218 2020-02-12 Tom Tromey <tom@tromey.com>
10219
10220 * dwarf2/frame.c (struct comp_unit): Add initializers and
10221 constructor.
10222 (dwarf2_frame_objfile_data): Store a comp_unit.
10223 (dwarf2_frame_find_fde): Update.
10224 (dwarf2_build_frame_info): Use "new".
10225
10226 2020-02-12 Tom Tromey <tom@tromey.com>
10227
10228 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10229 (dwarf2_fde_table): Typedef for std::vector.
10230 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10231 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10232 (decode_frame_entry): Update.
10233 (dwarf2_build_frame_info): Use "new".
10234
10235 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10236
10237 * arm-tdep.c (arm_gdbarch_init): Update.
10238 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10239 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10240 have_neon, is_m>: Change to bool.
10241
10242 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10243
10244 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10245
10246 2020-02-12 Tom Tromey <tom@tromey.com>
10247
10248 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10249
10250 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10251
10252 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10253 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10254
10255 2020-02-11 Tom Tromey <tom@tromey.com>
10256
10257 * psymtab.h: Update comment.
10258
10259 2020-02-11 Tom Tromey <tom@tromey.com>
10260
10261 * gdb_obstack.h (struct auto_obstack): Use
10262 DISABLE_COPY_AND_ASSIGN.
10263
10264 2020-02-11 Tom Tromey <tom@tromey.com>
10265
10266 * dwarf2/frame.h (struct objfile): Don't forward declare.
10267
10268 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10269
10270 * cris-tdep.c (cris_supply_gregset): Change signature to match
10271 what struct regset expects.
10272 (cris_regset): New struct.
10273 (fetch_core_registers): Remove.
10274 (cris_iterate_over_regset_sections): New function.
10275 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10276 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10277
10278 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10279
10280 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10281 registers.
10282
10283 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10284
10285 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10286
10287 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10288
10289 * configure: Re-generate.
10290
10291 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10292
10293 * configure: Re-generate.
10294
10295 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10296
10297 * acinclude: Update warning.m4 path.
10298 * warning.m4: Move to gdbsupport.
10299
10300 2020-02-11 Tom Tromey <tromey@adacore.com>
10301
10302 * remote.c (remote_console_output): Update.
10303 * printcmd.c (printf_command): Update.
10304 * event-loop.c (gdb_wait_for_event): Update.
10305 * linux-nat.c (sigchld_handler): Update.
10306 * remote-sim.c (gdb_os_write_stdout): Update.
10307 (gdb_os_flush_stdout): Update.
10308 (gdb_os_flush_stderr): Update.
10309 (gdb_os_write_stderr): Update.
10310 * exceptions.c (print_exception): Update.
10311 * remote-fileio.c (remote_fileio_func_read): Update.
10312 (remote_fileio_func_write): Update.
10313 * tui/tui.c (tui_enable): Update.
10314 * tui/tui-interp.c (tui_interp::init): Update.
10315 * utils.c (init_page_info): Update.
10316 (putchar_unfiltered, fputc_unfiltered): Update.
10317 (gdb_flush): Update.
10318 (emit_style_escape): Update.
10319 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10320 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10321 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10322 (stderr_file::write): Update.
10323 (stderr_file::puts): Update.
10324 * ui-file.h (ui_file_isatty, ui_file_write)
10325 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10326 (ui_file_puts): Don't declare.
10327
10328 2020-02-10 Tom de Vries <tdevries@suse.de>
10329
10330 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10331 sentinel to char *.
10332
10333 2020-02-09 Tom de Vries <tdevries@suse.de>
10334
10335 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10336 filename if it matches "<artificial>".
10337
10338 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10339
10340 * windows-tdep.c (struct enum_value_name): New struct.
10341 (create_enum): New function.
10342 (windows_get_siginfo_type): Create and use enum types.
10343
10344 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10345
10346 * NEWS: Mention $_siginfo support for Windows.
10347 * windows-nat.c (handle_exception): Set siginfo_er.
10348 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10349 (windows_xfer_siginfo): New function.
10350 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10351 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10352 (init_windows_gdbarch_data): New function.
10353 (get_windows_gdbarch_data): New function.
10354 (windows_get_siginfo_type): New function.
10355 (windows_init_abi): Register windows_get_siginfo_type.
10356 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10357
10358 2020-02-08 Tom Tromey <tom@tromey.com>
10359
10360 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10361 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10362 <keep>: Declare method.
10363 <m_keep>: Remove member.
10364 <~cutu_reader>: Remove.
10365 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10366 (cutu_reader::cutu_reader): Update.
10367 (cutu_reader::keep): Rename from ~cutu_reader.
10368 (process_psymtab_comp_unit, build_type_psymtabs_1)
10369 (process_skeletonless_type_unit, load_partial_comp_unit)
10370 (load_full_comp_unit, dwarf2_read_addr_index)
10371 (read_signatured_type): Update.
10372
10373 2020-02-08 Tom Tromey <tom@tromey.com>
10374
10375 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10376 "want_partial_unit" parameter.
10377 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10378 Inline check for DW_TAG_partial_unit.
10379 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10380
10381 2020-02-08 Tom Tromey <tom@tromey.com>
10382
10383 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10384 read.c.
10385 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10386 read.c.
10387
10388 2020-02-08 Tom Tromey <tom@tromey.com>
10389
10390 * dwarf2/read.c (read_address): Move to comp-unit.c.
10391 (dwarf2_rnglists_process, dwarf2_ranges_process)
10392 (read_attribute_value, dwarf_decode_lines_1)
10393 (var_decode_location, decode_locdesc): Update.
10394 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10395 read.c. Remove "cu" parameter.
10396 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10397 method.
10398
10399 2020-02-08 Tom Tromey <tom@tromey.com>
10400
10401 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10402 (read_indirect_line_string): Update.
10403 * dwarf2/comp-unit.c (read_offset): Remove.
10404 (read_comp_unit_head): Update.
10405 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10406 method.
10407 (read_offset): Don't declare.
10408
10409 2020-02-08 Tom Tromey <tom@tromey.com>
10410
10411 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10412 * dwarf2/read.c (struct comp_unit_head): Move to
10413 dwarf2/comp-unit.h.
10414 (enum class rcuh_kind): Move to comp-unit.h.
10415 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10416 (read_comp_unit_head, error_check_comp_unit_head)
10417 (read_and_check_comp_unit_head): Move to comp-unit.c.
10418 (read_offset, dwarf_unit_type_name): Likewise.
10419 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10420 (cutu_reader::cutu_reader, read_call_site_scope)
10421 (find_partial_die, follow_die_offset): Update.
10422 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10423
10424 2020-02-08 Tom Tromey <tom@tromey.com>
10425
10426 * dwarf2/read.c (read_offset_1): Move to leb.c.
10427 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10428 (dwarf_decode_macro_bytes): Update.
10429 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10430 * dwarf2/leb.h (read_offset): Declare.
10431
10432 2020-02-08 Tom Tromey <tom@tromey.com>
10433
10434 * dwarf2/read.c (dwarf2_section_size): Remove.
10435 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10436 Update.
10437 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10438
10439 2020-02-08 Tom Tromey <tom@tromey.com>
10440
10441 * dwarf2/read.c (read_initial_length): Move to leb.c.
10442 * dwarf2/leb.h (read_initial_length): Declare.
10443 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10444 handle_nonstd parameter.
10445 * dwarf2/frame.c (read_initial_length): Remove.
10446 (decode_frame_entry_1): Update.
10447
10448 2020-02-08 Tom Tromey <tom@tromey.com>
10449
10450 * dwarf2/loc.c (dwarf2_find_location_expression)
10451 (dwarf_evaluate_loc_desc::get_tls_address)
10452 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10453 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10454 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10455 (dwarf2_compile_property_to_c)
10456 (dwarf2_loc_desc_get_symbol_read_needs)
10457 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10458 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10459 (loclist_describe_location, loclist_tracepoint_var_ref)
10460 (loclist_generate_c_location): Update.
10461 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10462 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10463 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10464 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10465 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10466 (dwarf2_per_cu_data::addr_size)
10467 (dwarf2_per_cu_data::ref_addr_size)
10468 (dwarf2_per_cu_data::text_offset)
10469 (dwarf2_per_cu_data::addr_type): Now methods.
10470 (per_cu_header_read_in): Make per_cu "const".
10471 (dwarf2_version): Remove.
10472 (dwarf2_per_cu_data::int_type): Now a method.
10473 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10474 (set_die_type, read_array_type, read_subrange_index_type)
10475 (read_tag_string_type, read_subrange_type): Update.
10476 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10477 offset_size, ref_addr_size, text_offset, addr_type, version,
10478 objfile, int_type, addr_sized_int_type>: Declare methods.
10479
10480 2020-02-08 Tom Tromey <tom@tromey.com>
10481
10482 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10483 Move earlier.
10484
10485 2020-02-08 Tom Tromey <tom@tromey.com>
10486
10487 * dwarf2/read.h (dwarf_line_debug): Declare.
10488 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10489 * dwarf2/read.c: Move line_header code to new files.
10490 (dwarf_line_debug): No longer static.
10491 * dwarf2/line-header.c: New file.
10492 * dwarf2/line-header.h: New file.
10493
10494 2020-02-08 Tom Tromey <tom@tromey.com>
10495
10496 * dwarf2/read.c (struct line_header) <file_full_name,
10497 file_file_name>: Return unique_xmalloc_ptr.
10498 (line_header::file_file_name): Update.
10499 (line_header::file_full_name): Update.
10500 (dw2_get_file_names_reader): Update.
10501 (macro_start_file): Update.
10502
10503 2020-02-08 Tom Tromey <tom@tromey.com>
10504
10505 * dwarf2/read.c (struct line_header) <file_full_name,
10506 file_file_name>: Declare methods.
10507 (dw2_get_file_names_reader): Update.
10508 (file_file_name): Now a method.
10509 (file_full_name): Likewise.
10510 (macro_start_file): Update.
10511
10512 2020-02-08 Tom Tromey <tom@tromey.com>
10513
10514 * dwarf2/read.c (dwarf_always_disassemble)
10515 (show_dwarf_always_disassemble): Move to loc.c.
10516 (_initialize_dwarf2_read): Move "always-disassemble" registration
10517 to loc.c.
10518 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10519 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10520 static.
10521 (show_dwarf_always_disassemble): Move from read.c.
10522 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10523
10524 2020-02-08 Tom Tromey <tom@tromey.com>
10525
10526 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10527 (create_quick_file_names_table): Return htab_up.
10528 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10529 Update.
10530 * dwarf2/read.h (struct dwarf2_per_objfile)
10531 <quick_file_names_table>: Now htab_up.
10532
10533 2020-02-08 Tom Tromey <tom@tromey.com>
10534
10535 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10536
10537 2020-02-08 Tom Tromey <tom@tromey.com>
10538
10539 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10540 Rewrite.
10541 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10542 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10543 (abbrev_table::abbrev_table): No longer inline.
10544 (ABBREV_HASH_SIZE): Remove.
10545 (abbrev_table::m_abbrevs): Now an htab_up.
10546
10547 2020-02-08 Tom Tromey <tom@tromey.com>
10548
10549 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10550 (cutu_reader): Update.
10551 (build_type_psymtabs_1): Update.
10552 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10553 (abbrev_table::alloc_abbrev): Update.
10554 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10555 (abbrev_table::read): New static method, renamed from
10556 abbrev_table_read_table.
10557 (abbrev_table::alloc_abbrev)
10558 (abbrev_table::add_abbrev): Now private.
10559 (abbrev_table::abbrev_table): Now private.
10560 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10561
10562 2020-02-08 Tom Tromey <tom@tromey.com>
10563
10564 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10565 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10566 htab_up.
10567
10568 2020-02-08 Tom Tromey <tom@tromey.com>
10569
10570 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10571 htab_up.
10572 (lookup_dwo_unit_in_dwp): Update.
10573 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10574 on obstack.
10575
10576 2020-02-08 Tom Tromey <tom@tromey.com>
10577
10578 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10579 obstack.
10580
10581 2020-02-08 Tom Tromey <tom@tromey.com>
10582
10583 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10584 line_header_hash.
10585 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10586 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10587 Change type to htab_up.
10588
10589 2020-02-08 Tom Tromey <tom@tromey.com>
10590
10591 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10592 htab_up. Don't allocate on obstack.
10593 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10594 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10595 Change type to htab_up.
10596
10597 2020-02-08 Tom Tromey <tom@tromey.com>
10598
10599 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10600 Change type to htab_up.
10601 * dwarf2/read.c (create_signatured_type_table_from_index)
10602 (create_signatured_type_table_from_debug_names)
10603 (create_all_type_units, add_type_unit)
10604 (lookup_dwo_signatured_type, lookup_signatured_type)
10605 (process_skeletonless_type_unit): Update.
10606 (create_debug_type_hash_table, create_debug_types_hash_table):
10607 Change type of types_htab.
10608 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10609 htab_up. Don't allocate on obstack.
10610 (create_cus_hash_table): Change type of cus_htab parameter.
10611 (struct dwo_file) <cus, tus>: Now htab_up.
10612 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10613 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10614 (queue_and_load_all_dwo_tus): Update.
10615 * dwarf2/index-write.c (write_gdbindex): Update.
10616 (write_debug_names): Update.
10617
10618 2020-02-08 Tom Tromey <tom@tromey.com>
10619
10620 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10621 dwarf2/read.c. Remove "next" member. Add constructor ntad
10622 destructor.
10623 (struct dwarf2_per_objfile) <queue>: New member.
10624 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10625 dwarf2/read.h.
10626 (dwarf2_queue, dwarf2_queue_tail): Remove.
10627 (class dwarf2_queue_guard): Add parameter to constructor. Use
10628 DISABLE_COPY_AND_ASSIGN.
10629 <m_per_objfile>: New member.
10630 <~dwarf2_queue_guard>: Rewrite.
10631 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10632 Update.
10633 (~dwarf2_queue_item): New.
10634
10635 2020-02-08 Tom Tromey <tom@tromey.com>
10636
10637 * dwarf2/read.c (struct die_info) <has_children>: New member.
10638 (dw2_get_file_names_reader): Remove has_children.
10639 (dw2_get_file_names): Update.
10640 (read_cutu_die_from_dwo): Remove has_children.
10641 (cutu_reader::init_tu_and_read_dwo_dies)
10642 (cutu_reader::cutu_reader): Update.
10643 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10644 Remove has_children.
10645 (build_type_psymtabs_1, process_skeletonless_type_unit)
10646 (load_partial_comp_unit, load_full_comp_unit): Update.
10647 (create_dwo_cu_reader): Remove has_children.
10648 (create_cus_hash_table, read_die_and_children): Update.
10649 (read_full_die_1,read_full_die): Remove has_children.
10650 (read_signatured_type): Update.
10651 (class cutu_reader) <has_children>: Remove.
10652
10653 2020-02-08 Tom Tromey <tom@tromey.com>
10654
10655 * dwarf2/expr.c: Rename from dwarf2expr.c.
10656 * dwarf2/expr.h: Rename from dwarf2expr.h.
10657 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10658 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10659 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10660 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10661 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10662 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10663 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10664 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10665 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10666 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10667 * dwarf2/loc.c: Rename from dwarf2loc.c.
10668 * dwarf2/loc.h: Rename from dwarf2loc.h.
10669 * dwarf2/read.c: Rename from dwarf2read.c.
10670 * dwarf2/read.h: Rename from dwarf2read.h.
10671 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10672 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10673 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10674 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10675 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10676 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10677 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10678 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10679 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10680 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10681 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10682 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10683 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10684 Update.
10685 * Makefile.in (COMMON_SFILES): Update.
10686 (HFILES_NO_SRCDIR): Update.
10687
10688 2020-02-08 Tom Tromey <tom@tromey.com>
10689
10690 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10691 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10692
10693 2020-02-08 Tom Tromey <tom@tromey.com>
10694
10695 * dwarf2read.h (struct die_info): Don't declare.
10696
10697 2020-02-08 Tom Tromey <tom@tromey.com>
10698
10699 * dwarf2read.h (die_info_ptr): Remove typedef.
10700
10701 2020-02-08 Tom Tromey <tom@tromey.com>
10702
10703 * dwarf2read.c (read_call_site_scope)
10704 (handle_data_member_location, dwarf2_add_member_fn)
10705 (mark_common_block_symbol_computed, read_common_block)
10706 (attr_to_dynamic_prop, partial_die_info::read)
10707 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10708 (dwarf2_symbol_mark_computed, set_die_type): Update.
10709 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10710 method.
10711 (attr_form_is_block): Don't declare.
10712 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10713
10714 2020-02-08 Tom Tromey <tom@tromey.com>
10715
10716 * dwarf2read.c (dwarf2_find_base_address, )
10717 (read_call_site_scope, rust_containing_type)
10718 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10719 (handle_data_member_location, dwarf2_add_member_fn)
10720 (get_alignment, read_structure_type, process_structure_scope)
10721 (mark_common_block_symbol_computed, read_common_block)
10722 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10723 (partial_die_info::read, read_attribute_value, new_symbol)
10724 (lookup_die_type, dwarf2_get_ref_die_offset)
10725 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10726 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10727 (dwarf2_symbol_mark_computed): Update.
10728 * dwarf2/attribute.h (struct attribute) <value_as_address,
10729 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10730 methods.
10731 (value_as_address, attr_form_is_section_offset)
10732 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10733 * dwarf2/attribute.c (attribute::value_as_address)
10734 (attribute::form_is_section_offset, attribute::form_is_constant)
10735 (attribute::form_is_ref): Now methods.
10736
10737 2020-02-08 Tom Tromey <tom@tromey.com>
10738
10739 * dwarf2read.c (struct attribute, DW_STRING)
10740 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10741 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10742 (attr_form_is_block, attr_form_is_section_offset)
10743 (attr_form_is_constant, attr_form_is_ref): Move.
10744 * dwarf2/attribute.h: New file.
10745 * dwarf2/attribute.c: New file, from dwarf2read.c.
10746 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10747
10748 2020-02-08 Tom Tromey <tom@tromey.com>
10749
10750 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10751 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10752 Move.
10753 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10754 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10755 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10756 abbrev.c.
10757 * dwarf2/abbrev.h: New file.
10758 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10759 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10760
10761 2020-02-08 Tom Tromey <tom@tromey.com>
10762
10763 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10764 (dwarf2_section_size, dwarf2_get_section_info)
10765 (create_signatured_type_table_from_debug_names)
10766 (create_addrmap_from_aranges, read_debug_names_from_section)
10767 (get_gdb_index_contents_from_section, read_comp_unit_head)
10768 (error_check_comp_unit_head, read_abbrev_offset)
10769 (create_debug_type_hash_table, init_cu_die_reader)
10770 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10771 (read_comp_units_from_section, create_cus_hash_table)
10772 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10773 (create_dwp_v2_section, dwarf2_rnglists_process)
10774 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10775 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10776 (read_indirect_string_from_dwz, read_addr_index_1)
10777 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10778 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10779 (fill_in_loclist_baton): Update.
10780 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10781 get_containing_section, get_bfd_owner, get_bfd_section,
10782 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10783 (dwarf2_read_section, get_section_name, get_section_file_name)
10784 (get_containing_section, get_section_bfd_owner)
10785 (get_section_bfd_section, get_section_name, get_section_file_name)
10786 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10787 declare.
10788 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10789 (dwarf2_section_info::get_bfd_owner)
10790 (dwarf2_section_info::get_bfd_section)
10791 (dwarf2_section_info::get_name)
10792 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10793 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10794 (dwarf2_section_info::read): Now methods.
10795 * dwarf-index-write.c (class debug_names): Update.
10796
10797 2020-02-08 Tom Tromey <tom@tromey.com>
10798
10799 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10800 Move to dwarf2/section.h.
10801 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10802 (get_section_bfd_section, get_section_name)
10803 (get_section_file_name, get_section_id, get_section_flags)
10804 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10805 dwarf2/section.c.
10806 * dwarf2/section.h: New file.
10807 * dwarf2/section.c: New file, from dwarf2read.c.
10808 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10809
10810 2020-02-08 Tom Tromey <tom@tromey.com>
10811
10812 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10813 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10814 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10815 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10816 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10817 * dwarf2/leb.h: New file, from dwarf2read.c.
10818 * dwarf2/leb.c: New file, from dwarf2read.c.
10819 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10820 Remove.
10821 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10822 (COMMON_SFILES): Add dwarf2/leb.c.
10823
10824 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10825
10826 GDB 9.1 released.
10827
10828 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10829
10830 PR gdb/25190:
10831 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10832 * gdb/remote.c (remote_console_output): Update.
10833 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10834 (ui_file_puts): ...this.
10835 * gdb/ui-file.h (ui_file_puts): Add declaration.
10836 * gdb/utils.c (emit_style_escape): Update.
10837 (flush_wrap_buffer): Update.
10838 (fputs_maybe_filtered): Update.
10839 (fputs_unfiltered): Add function.
10840
10841 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10842
10843 * gdb/event-loop.c (gdb_wait_for_event): Update.
10844 * gdb/printcmd.c (printf_command): Update.
10845 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10846 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10847 (gdb_os_flush_stderr): Update.
10848 * gdb/remote.c (remote_console_output): Update.
10849 * gdb/ui-file.c (gdb_flush): Rename to...
10850 (ui_file_flush): ...this.
10851 (stderr_file::write): Update.
10852 (stderr_file::puts): Update.
10853 * gdb/ui-file.h (gdb_flush): Rename to...
10854 (ui_file_flush): ...this.
10855 * gdb/utils.c (gdb_flush): Add function.
10856 * gdb/utils.h (gdb_flush): Add declaration.
10857
10858 2020-02-07 Tom Tromey <tromey@adacore.com>
10859
10860 PR breakpoints/24915:
10861 * source.c (find_and_open_source): Do not check basenames_may_differ.
10862
10863 2020-02-07 Tom Tromey <tom@tromey.com>
10864
10865 * README: Update gdbserver documentation.
10866 * gdbserver: Move to top level.
10867 * configure.tgt (build_gdbserver): Remove.
10868 * configure.ac: Remove --enable-gdbserver.
10869 * configure: Rebuild.
10870 * Makefile.in (distclean): Don't mention gdbserver.
10871
10872 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10873
10874 * source-cache.c (source_cache::ensure): Surround
10875 get_plain_source_lines with a try/catch.
10876 (source_cache::get_line_charpos): Get rid of try/catch
10877 and only check for the return value of "ensure".
10878 * tui/tui-source.c (tui_source_window::set_contents):
10879 Simplify "nlines" calculation.
10880
10881 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10882
10883 * MAINTAINERS (Write After Approval): Add myself.
10884
10885 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10886
10887 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10888 function call.
10889
10890 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10891
10892 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10893
10894 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10895
10896 * nat/riscv-linux-tdesc.h: New file.
10897 * nat/riscv-linux-tdesc.c: New file, taking code from...
10898 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10899 ... here.
10900 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10901 NATDEPFILES.
10902
10903 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10904
10905 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10906 we don't set the fake simulator ptid to the null_ptid.
10907
10908 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10909
10910 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10911 * gdbthread.h (class thread_info) <resumed>: Likewise.
10912 * infrun.c (resume_1): Likewise.
10913 (proceed): Likewise.
10914 (infrun_thread_stop_requested): Likewise.
10915 (stop_all_threads): Likewise.
10916 (handle_inferior_event): Likewise.
10917 (restart_threads): Likewise.
10918 (finish_step_over): Likewise.
10919 (keep_going_stepped_thread): Likewise.
10920 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10921 (linux_handle_extended_wait): Likewise.
10922 * record-btrace.c (get_thread_current_frame_id): Likewise.
10923 * record-full.c (record_full_wait_1): Likewise.
10924 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10925 * target.c (target_resume): Likewise.
10926 * thread.c (set_running_thread): Likewise.
10927
10928 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10929
10930 * f-valprint.c (f77_print_array_1): Changed datatype of index
10931 variable to LONGEST from int to enable it to contain bound
10932 values correctly.
10933
10934 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10935
10936 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10937 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10938 offsets according to FLEN determined.
10939 (riscv_linux_nat_target::read_description): Determine FLEN
10940 dynamically.
10941 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10942 according to FLEN determined.
10943 (riscv_linux_nat_target::store_registers): Likewise.
10944
10945 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10946
10947 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10948 when reg->group is empty and reggroup is not.
10949
10950 2020-01-31 Tom Tromey <tromey@adacore.com>
10951
10952 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10953 Call beneath target's mourn_inferior after unpushing.
10954
10955 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10956
10957 PR tui/9765
10958 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10959 have enough lines to fill the screen, still return the lowest
10960 address we found.
10961
10962 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10963
10964 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10965 '-', '<', and '>' commands.
10966
10967 2020-01-29 Pedro Alves <palves@redhat.com>
10968 Sergio Durigan Junior <sergiodj@redhat.com>
10969
10970 * infcmd.c (construct_inferior_arguments): Assert that
10971 'argc' is greater than 0.
10972
10973 2020-01-29 Luis Machado <luis.machado@linaro.org>
10974
10975 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10976 (BRK_INSN_MASK): Define to 0xd4200000.
10977 (aarch64_program_breakpoint_here_p): New function.
10978 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10979 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10980 breakpoint.c.
10981 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10982 breakpoint.h
10983 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10984 call gdbarch_program_breakpoint_here_p.
10985 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10986 default_program_breakpoint_here_p, changed return type to bool and
10987 simplified.
10988 * breakpoint.h (program_breakpoint_here): Moved prototype to
10989 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10990 return type to bool.
10991 * gdbarch.c: Regenerate.
10992 * gdbarch.h: Regenerate.
10993 * gdbarch.sh (program_breakpoint_here_p): New method.
10994 * infrun.c (handle_signal_stop): Call
10995 gdbarch_program_breakpoint_here_p.
10996
10997 2020-01-26 Tom Tromey <tom@tromey.com>
10998
10999 * ctfread.c (struct ctf_fp_info): Reindent.
11000 (_initialize_ctfread): Remove.
11001
11002 2020-01-26 Tom Tromey <tom@tromey.com>
11003
11004 * psymtab.c (partial_map_expand_apply)
11005 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11006 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11007 (psym_print_stats, psym_expand_symtabs_for_function)
11008 (psym_map_symbol_filenames, psym_map_matching_symbols)
11009 (psym_expand_symtabs_matching)
11010 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11011 (maintenance_check_psymtabs): Use new methods.
11012 * psympriv.h (struct partial_symtab) <readin_p,
11013 get_compunit_symtab>: New methods.
11014 <readin, compunit_symtab>: Remove members.
11015 (struct standard_psymtab): New.
11016 (struct legacy_psymtab): Derive from standard_psymtab.
11017 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11018 standard_psymtab.
11019 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11020
11021 2020-01-26 Tom Tromey <tom@tromey.com>
11022
11023 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11024 read_dependencies. Add assert.
11025 * psymtab.c (partial_symtab::read_dependencies): New method.
11026 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11027 method.
11028 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11029 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11030 read_dependencies.
11031 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11032 Add assert.
11033
11034 2020-01-26 Tom Tromey <tom@tromey.com>
11035
11036 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11037 Call expand_psymtab.
11038 (xcoff_read_symtab): Call expand_psymtab.
11039 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11040 legacy_expand_psymtab.
11041 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11042 method.
11043 (struct legacy_psymtab) <expand_psymtab>: Implement.
11044 <legacy_expand_psymtab>: New member.
11045 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11046 (parse_partial_symbols): Set legacy_expand_psymtab.
11047 (psymtab_to_symtab_1): Change argument order. Call
11048 expand_psymtab.
11049 (new_psymtab): Set legacy_expand_psymtab.
11050 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11051 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11052 expand_psymtab.
11053 (dwarf2_psymtab::expand_psymtab): Rename from
11054 psymtab_to_symtab_1. Call expand_psymtab.
11055 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11056 (dbx_end_psymtab): Likewise.
11057 (dbx_psymtab_to_symtab_1): Change argument order. Call
11058 expand_psymtab.
11059 (dbx_read_symtab): Call expand_psymtab.
11060 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11061 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11062 (ctf_psymtab::read_symtab): Call expand_psymtab.
11063
11064 2020-01-26 Tom Tromey <tom@tromey.com>
11065
11066 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11067 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11068 messages.
11069 * mdebugread.c (mdebug_read_symtab): Remove prints.
11070 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11071 assert.
11072 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11073
11074 2020-01-26 Tom Tromey <tom@tromey.com>
11075
11076 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11077 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11078 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11079 legacy_symtab.
11080 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11081 * psymtab.c (psymtab_to_symtab): Call method.
11082 (dump_psymtab): Update.
11083 * psympriv.h (struct partial_symtab): Add virtual destructor.
11084 <read_symtab>: New method.
11085 (struct legacy_symtab): New.
11086 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11087 (struct pst_map) <pst>: Now a legacy_psymtab.
11088 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11089 (new_psymtab): Use legacy_psymtab.
11090 * dwarf2read.h (struct dwarf2_psymtab): New.
11091 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11092 * dwarf2read.c (dwarf2_create_include_psymtab)
11093 (dwarf2_build_include_psymtabs, create_type_unit_group)
11094 (create_partial_symtab, process_psymtab_comp_unit_reader)
11095 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11096 (set_partial_user): Use dwarf2_psymtab.
11097 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11098 (psymtab_to_symtab_1, process_full_comp_unit)
11099 (process_full_type_unit, dwarf2_ranges_read)
11100 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11101 (dwarf_decode_lines): Use dwarf2_psymtab.
11102 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11103 (add_address_entry_worker, write_one_signatured_type)
11104 (recursively_count_psymbols, recursively_write_psymbols)
11105 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11106 (write_debug_names): Likewise.
11107 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11108 <pst>: Now a legacy_psymtab.
11109 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11110 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11111 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11112 * ctfread.c (struct ctf_psymtab): New.
11113 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11114 ctf_psymtab.
11115 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11116 (create_partial_symtab): Return a ctf_psymtab.
11117 (scan_partial_symbols): Update.
11118
11119 2020-01-26 Tom Tromey <tom@tromey.com>
11120
11121 * xcoffread.c (xcoff_start_psymtab): Use new.
11122 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11123 renamed from start_psymtab_common.
11124 * psympriv.h (struct partial_symtab): Add new constructor.
11125 (start_psymtab_common): Don't declare.
11126 * mdebugread.c (parse_partial_symbols): Use new.
11127 * dwarf2read.c (create_partial_symtab): Use new.
11128 * dbxread.c (start_psymtab): Use new.
11129 * ctfread.c (create_partial_symtab): Use new.
11130
11131 2020-01-26 Tom Tromey <tom@tromey.com>
11132
11133 * xcoffread.c (xcoff_end_psymtab): Use new.
11134 * psymtab.c (start_psymtab_common): Use new.
11135 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11136 Update.
11137 * psympriv.h (struct partial_symtab): Add parameters to
11138 constructor. Don't inline.
11139 (allocate_psymtab): Don't declare.
11140 * mdebugread.c (new_psymtab): Use new.
11141 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11142 * dbxread.c (dbx_end_psymtab): Use new.
11143
11144 2020-01-26 Tom Tromey <tom@tromey.com>
11145
11146 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11147 allocate_psymtab. Update documentation.
11148 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11149 allocate_psymtab. Do not use new.
11150 (allocate_psymtab): Use new. Update.
11151
11152 2020-01-26 Tom Tromey <tom@tromey.com>
11153
11154 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11155 * psymtab.c (psym_print_stats): Update.
11156 * psympriv.h (struct partial_symtab) <readin,
11157 psymtabs_addrmap_supported, anonymous>: Now bool.
11158 * mdebugread.c (psymtab_to_symtab_1): Update.
11159 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11160 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11161 (process_full_comp_unit, process_full_type_unit): Update.
11162 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11163 * ctfread.c (psymtab_to_symtab): Update.
11164
11165 2020-01-26 Tom Tromey <tom@tromey.com>
11166
11167 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11168 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11169 * psymtab.c (psymtab_storage): Delete psymtabs.
11170 (psymtab_storage::allocate_psymtab): Use new.
11171 (psymtab_storage::discard_psymtab): Use delete.
11172 * psympriv.h (struct partial_symtab): Add constructor and
11173 initializers.
11174
11175 2020-01-26 Tom Tromey <tom@tromey.com>
11176
11177 * machoread.c: Do not include psympriv.h.
11178
11179 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11180
11181 * NEWS: Mention the new option and the set/show commands.
11182
11183 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11184
11185 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11186 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11187 (validate_exec_file): New variables, enums, functions.
11188 (exec_file_locate_attach, print_section_info): Style the filenames.
11189 (_initialize_exec): Install show_exec_file_mismatch_command and
11190 set_exec_file_mismatch_command.
11191 * gdbcore.h (validate_exec_file): Declare.
11192 * infcmd.c (attach_command): Call validate_exec_file.
11193 * remote.c ( remote_target::remote_add_inferior): Likewise.
11194
11195 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11196
11197 * frame.c (find_frame_sal): Move call to get_next_frame into more
11198 inner scope.
11199 * inline-frame.c (inilne_state) <inline_state>: Update argument
11200 types.
11201 (inilne_state) <skipped_symbol>: Rename to...
11202 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11203 (skip_inline_frames): Build vector of skipped symbols and use this
11204 to reate the inline_state.
11205 (inline_skipped_symbol): Add a comment and some assertions, fetch
11206 skipped symbol from the list.
11207
11208 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11209
11210 * buildsym.c (lte_is_less_than): Delete.
11211 (buildsym_compunit::end_symtab_with_blockvector): Create local
11212 lambda function to sort line table entries, and use
11213 std::stable_sort instead of std::sort.
11214 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11215 markers when looking for a previous line.
11216
11217 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11218
11219 * dwarf2read.c (lnp_state_machine::record_line): Include
11220 end_sequence parameter in debug print out. Record the line if we
11221 are at an end_sequence marker even if it's not the start of a
11222 statement.
11223 * symmisc.c (maintenance_print_one_line_table): Print end of
11224 sequence markers with 'END' not '0'.
11225
11226 2020-01-24 Pedro Alves <palves@redhat.com>
11227
11228 PR gdb/25410
11229 * thread.c (scoped_restore_current_thread::restore): Use
11230 switch_to_inferior_no_thread.
11231 * exec.c: Include "progspace-and-thread.h".
11232 (add_target_sections, remove_target_sections):
11233 scoped_restore_current_pspace_and_thread instead of
11234 scoped_restore_current_thread.
11235 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11236 and aspace to the inferior before calling clone_program_space.
11237 Remove stale comment.
11238
11239 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11240
11241 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11242 (arm_netbsd_nat_target::fetch_registers): ...this.
11243 (arm_nbsd_nat_target::store_registers): Rename to...
11244 (arm_netbsd_nat_target::store_registers): ...this.
11245
11246 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11247
11248 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11249 register_t.
11250
11251 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11252
11253 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11254 Update comment.
11255 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11256 Likewise.
11257 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11258 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11259 the correct replacement (iterate_over_regset_sections).
11260 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11261 Update comment.
11262
11263 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11264
11265 PR gdb/23718
11266 * gdb/python/python.c (execute_gdb_command): Call
11267 async_enable_stdin in catch block.
11268
11269 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11270
11271 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11272 SWITCH_THRU_ALL_UIS.
11273
11274 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11275
11276 PR tui/9765
11277 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11278 comment, add extra parameter, and update to store previous symbol
11279 when appropriate.
11280 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11281 add extra parameter.
11282 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11283 remove unneeded parameter, add try/catch around gdb_print_insn,
11284 rewrite to add items to asm_lines vector.
11285 (tui_find_backward_disassembly_start_address): New function.
11286 (tui_find_disassembly_address): Updated throughout.
11287 (tui_disasm_window::set_contents): Update for changes to
11288 tui_disassemble.
11289 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11290 number of lines to scroll.
11291
11292 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11293
11294 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11295 (SECT_OFF_DATA): Likewise.
11296 (SECT_OFF_RODATA): Likewise.
11297 (SECT_OFF_TEXT): Likewise.
11298 (SECT_OFF_BSS): Likewise.
11299 (struct objfile) <text_section_offset, data_section_offset>: New
11300 methods.
11301 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11302 objfile::text_section_offset.
11303 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11304 * coffread.c (coff_symtab_read): Likewise.
11305 (enter_linenos): Likewise.
11306 (process_coff_symbol): Likewise.
11307 * ctfread.c (get_objfile_text_range): Likewise.
11308 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11309 Use objfile::data_section_offset.
11310 * dwarf2-frame.c (execute_cfa_program): Use
11311 objfile::text_section_offset.
11312 (dwarf2_frame_find_fde): Likewise.
11313 * dwarf2read.c (create_addrmap_from_index): Likewise.
11314 (create_addrmap_from_aranges): Likewise.
11315 (dw2_find_pc_sect_compunit_symtab): Likewise.
11316 (process_psymtab_comp_unit_reader): Likewise.
11317 (add_partial_symbol): Likewise.
11318 (add_partial_subprogram): Likewise.
11319 (process_full_comp_unit): Likewise.
11320 (read_file_scope): Likewise.
11321 (read_func_scope): Likewise.
11322 (read_lexical_block_scope): Likewise.
11323 (read_call_site_scope): Likewise.
11324 (dwarf2_rnglists_process): Likewise.
11325 (dwarf2_ranges_process): Likewise.
11326 (dwarf2_ranges_read): Likewise.
11327 (dwarf_decode_lines_1): Likewise.
11328 (new_symbol): Likewise.
11329 (dwarf2_fetch_die_loc_sect_off): Likewise.
11330 (dwarf2_per_cu_text_offset): Likewise.
11331 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11332 * hppa-tdep.c (read_unwind_info): Likewise.
11333 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11334 * psympriv.h (struct partial_symtab): Likewise.
11335 * psymtab.c (find_pc_sect_psymtab): Likewise.
11336 * solib-svr4.c (enable_break): Likewise.
11337 * stap-probe.c (relocate_address): Use
11338 objfile::data_section_offset.
11339 * xcoffread.c (enter_line_range): Use
11340 objfile::text_section_offset.
11341 (read_xcoff_symtab): Likewise.
11342
11343 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11344
11345 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11346 declaration to narrower scopes.
11347
11348 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11349
11350 * darwin-nat.h (struct darwin_exception_msg, enum
11351 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11352 Move up.
11353 (class darwin_nat_target) <wait_1, check_new_threads,
11354 decode_exception_message, decode_message, stop_inferior,
11355 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11356 * darwin-nat.c (darwin_check_new_threads): Rename to...
11357 (darwin_nat_target::check_new_threads): ... this.
11358 (darwin_suspend_inferior_it): Remove.
11359 (darwin_decode_exception_message): Rename to...
11360 (darwin_nat_target::decode_exception_message): ... this.
11361 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11362 (darwin_decode_message): Rename to...
11363 (darwin_nat_target::decode_message): ... this.
11364 (cancel_breakpoint): Rename to...
11365 (darwin_nat_target::cancel_breakpoint): ... this.
11366 (darwin_wait): Rename to...
11367 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11368 instead of iterate_over_inferiors.
11369 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11370 (darwin_stop_inferior): Rename to...
11371 (darwin_nat_target::stop_inferior): ... this.
11372 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11373 (darwin_init_thread_list): Rename to...
11374 (darwin_nat_target::init_thread_list): ... this.
11375 (darwin_ptrace_him): Rename to...
11376 (darwin_nat_target::ptrace_him): ... this.
11377 (darwin_nat_target::create_inferior): Pass lambda function to
11378 fork_inferior.
11379 (darwin_nat_target::detach): Call stop_inferior instead of
11380 darwin_stop_inferior.
11381 * fork-inferior.h (fork_inferior): Change init_trace_fun
11382 parameter to gdb::function_view.
11383 * fork-inferior.c (fork_inferior): Likewise.
11384
11385 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11386
11387 * i386-cygwin-tdep.c (core_process_module_section): Update.
11388 * windows-nat.c (struct lm_info_windows): Add text_offset.
11389 (windows_xfer_shared_libraries): Update.
11390 * windows-tdep.c (windows_xfer_shared_library):
11391 Add text_offset_cached argument.
11392 * windows-tdep.h (windows_xfer_shared_library): Update.
11393
11394 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11395
11396 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11397
11398 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11399
11400 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11401 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11402 replace with range-based for.
11403 (gdbsim_interrupt_inferior): Remove.
11404 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11405 with a range-based for. Inline code from
11406 gdbsim_interrupt_inferior.
11407
11408 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11409
11410 * infrun.c (proceed): Fix indentation.
11411
11412 2020-01-21 Tom Tromey <tromey@adacore.com>
11413
11414 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11415 * python/python.c (python_extension_ops): Update.
11416 (gdbpy_colorize): New function.
11417 * python/lib/gdb/__init__.py (colorize): New function.
11418 * extension.h (ext_lang_colorize): Declare.
11419 * extension.c (ext_lang_colorize): New function.
11420 * extension-priv.h (struct extension_language_ops) <colorize>: New
11421 member.
11422 * cli/cli-style.c (_initialize_cli_style): Update help text.
11423
11424 2020-01-21 Luis Machado <luis.machado@linaro.org>
11425
11426 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11427 <cond>: Change type to bool.
11428 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11429 (aarch64_displaced_step_cb): Likewise.
11430 (aarch64_displaced_step_tb): Likewise.
11431
11432 2020-01-21 Luis Machado <luis.machado@linaro.org>
11433
11434 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11435 output.
11436
11437 2020-01-21 Luis Machado <luis.machado@linaro.org>
11438
11439 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11440 <pc_adjust>: Adjust the documentation.
11441 (aarch64_displaced_step_fixup): Check if PC really moved before
11442 adjusting it.
11443
11444 2020-01-19 Tom Tromey <tom@tromey.com>
11445
11446 * disasm.c (~gdb_disassembler): New destructor.
11447 (gdb_buffered_insn_length): Call disassemble_free_target.
11448 * disasm.h (class gdb_disassembler): Declare destructor. Use
11449 DISABLE_COPY_AND_ASSIGN.
11450
11451 2020-01-19 Tom Tromey <tom@tromey.com>
11452
11453 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11454 (die_reader_func_ftype): Remove.
11455 (cutu_reader): New class.
11456 (dw2_get_file_names_reader): Remove "data" parameter.
11457 (dw2_get_file_names): Use cutu_reader.
11458 (create_debug_type_hash_table): Update.
11459 (read_cutu_die_from_dwo): Update comment.
11460 (lookup_dwo_unit): Add dwo_name parameter.
11461 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11462 die_reader_func_ftype and data parameters.
11463 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11464 Remove die_reader_func_ftype and data parameters.
11465 (~cutu_reader): New; from init_cutu_and_read_dies.
11466 (cutu_reader::cutu_reader): Rename from
11467 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11468 and data parameters.
11469 (init_cutu_and_read_dies_simple): Remove.
11470 (struct process_psymtab_comp_unit_data): Remove.
11471 (process_psymtab_comp_unit_reader): Remove data parameter; add
11472 want_partial_unit and pretend_language parameters.
11473 (process_psymtab_comp_unit): Use cutu_reader.
11474 (build_type_psymtabs_reader): Remove data parameter.
11475 (build_type_psymtabs_1): Use cutu_reader.
11476 (process_skeletonless_type_unit): Likewise.
11477 (load_partial_comp_unit_reader): Remove.
11478 (load_partial_comp_unit): Use cutu_reader.
11479 (load_full_comp_unit_reader): Remove.
11480 (load_full_comp_unit): Use cutu_reader.
11481 (struct create_dwo_cu_data): Remove.
11482 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11483 dwo_unit parameters.
11484 (create_cus_hash_table): Use cutu_reader.
11485 (struct dwarf2_read_addr_index_data): Remove.
11486 (dwarf2_read_addr_index_reader): Remove.
11487 (dwarf2_read_addr_index): Use cutu_reader.
11488 (read_signatured_type_reader): Remove.
11489 (read_signatured_type): Use cutu_reader.
11490
11491 2020-01-19 Tom Tromey <tom@tromey.com>
11492
11493 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11494 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11495 (tui_wrefresh): Declare.
11496 * tui/tui-wingeneral.c (suppress_output): New global.
11497 (tui_suppress_output, ~tui_suppress_output): New constructor and
11498 destructor.
11499 (tui_wrefresh): New function.
11500 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11501 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11502 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11503 method.
11504 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11505 tui_wrefresh.
11506 (tui_data_window::no_refresh): New method.
11507 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11508 (tui_reg_command): Use tui_suppress_output
11509 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11510 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11511 method.
11512 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11513
11514 2020-01-19 Tom Tromey <tom@tromey.com>
11515
11516 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11517 Handle case where symtab is null.
11518
11519 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11520
11521 * linux-fork.c (one_fork_p): Simplify.
11522
11523 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11524
11525 * top.c (struct qt_args): Remove.
11526 (kill_or_detach): Change return type to void, replace `void *`
11527 parameter with a proper one.
11528 (print_inferior_quit_action): Likewise.
11529 (quit_confirm): Use range-based for loop to iterate over inferiors.
11530 (quit_force): Likewise.
11531
11532 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11533
11534 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11535 `void *` parameter with proper parameters.
11536 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11537 (print_one_inferior): Change return type to void, replace `void *`
11538 parameter with proper parameters.
11539 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11540 inferiors.
11541 (get_other_inferior): Remove.
11542 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11543 inferiors.
11544
11545 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11546
11547 * mi/mi-interp.c (report_initial_inferior): Remove.
11548 (mi_interp::init): Use range-based for to iterate over inferiors.
11549
11550 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11551
11552 * python/py-inferior.c (build_inferior_list): Remove.
11553 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11554
11555 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11556
11557 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11558 (btrace_stitch_trace): Likewise.
11559 * charset.c (intermediate_encoding): Likewise (vaild).
11560 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11561 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11562 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11563
11564 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11565
11566 * windows-tdep.c (windows_get_tlb_type):
11567 Add rtl_user_process_parameters type.
11568
11569 2020-01-16 Pedro Alves <palves@redhat.com>
11570 Norbert Lange <nolange79@gmail.com>
11571
11572 PR build/24805
11573 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11574 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11575 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11576 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11577 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11578 (ps_plog): Redeclare exported functions with default visibility.
11579
11580 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11581
11582 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11583 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11584
11585 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11586
11587 * infcmd.c (post_create_inferior): Use get_thread_regcache
11588 instead of get_current_regcache.
11589
11590 2020-01-14 Tom Tromey <tom@tromey.com>
11591
11592 PR symtab/12535:
11593 * python/python.c (gdbpy_decode_line): Treat empty string the same
11594 as no argument.
11595
11596 2020-01-14 Tom Tromey <tom@tromey.com>
11597
11598 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11599
11600 2020-01-14 Tom Tromey <tom@tromey.com>
11601
11602 * nat/linux-btrace.c: Don't include <config.h>.
11603 * nat/linux-ptrace.c: Don't include <config.h>.
11604 * nat/x86-linux-dregs.c: Don't include <config.h>.
11605
11606 2020-01-14 Tom Tromey <tom@tromey.com>
11607
11608 * configure: Rebuild.
11609 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11610
11611 2020-01-14 Tom Tromey <tom@tromey.com>
11612
11613 * nat/x86-linux-dregs.c: Include configh.h.
11614 * nat/linux-ptrace.c: Include configh.h.
11615 * nat/linux-btrace.c: Include configh.h.
11616 * defs.h: Include config.h, bfd.h.
11617 * configure.ac: Don't source common.host.
11618 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11619 * configure: Rebuild.
11620 * acinclude.m4: Update path.
11621 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11622 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11623 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11624 (CLIBS): Add LIBSUPPORT.
11625 (CDEPS): Likewise.
11626 (COMMON_SFILES): Remove gdbsupport files.
11627 (HFILES_NO_SRCDIR): Likewise.
11628 (stamp-version): Update path to create-version.sh.
11629 (ALLDEPFILES): Remove gdbsupport files.
11630
11631 2020-01-14 Tom Tromey <tom@tromey.com>
11632
11633 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11634 USE_WIN32API when needed.
11635 * configure.ac (USE_WIN32API): Don't define.
11636 (WIN32LIBS): Use WIN32APILIBS.
11637 * configure: Rebuild.
11638
11639 2020-01-14 Tom Tromey <tom@tromey.com>
11640
11641 * configure: Rebuild.
11642 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11643
11644 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11645
11646 * skip.c (skip_function_command): Make skip w/o arguments use the
11647 name of the inlined function if pc is inside any inlined function.
11648
11649 2020-01-14 Luis Machado <luis.machado@linaro.org>
11650
11651 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11652 * infrun.c (resume_1): Likewise.
11653 (handle_inferior_event): Remove stale comment.
11654 * linux-nat.c (linux_nat_target::resume): Update comments.
11655 (save_stop_reason): Likewise.
11656 (linux_nat_filter_event): Likewise.
11657 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11658
11659 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11660
11661 * elfread.c (record_minimal_symbol): Set section index to 0 for
11662 non-allocatable sections.
11663
11664
11665 2020-01-13 Ali Tamur <tamur@google.com>
11666
11667 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11668 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11669 to gdb::optional. Update comments.
11670 (dwo_file): Update comments.
11671 (read_attribute): Update API to take an additional out parameter,
11672 need_reprocess. This is used to mark attributes that need other
11673 attributes (e.g. str_offsets_base) for correct computation which may not
11674 have been read yet.
11675 (read_attribute_reprocess): New function declaration.
11676 (read_addr_index): Likewise.
11677 (read_dwo_str_index): Likewise.
11678 (read_stub_str_index): Likewise.
11679 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11680 (lookup_addr_base): New function definition.
11681 (lookup_ranges_base): Likewise.
11682 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11683 lookup_ranges_base.
11684 (init_cutu_and_read_dies): Update comments.
11685 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11686 unit. This is used to inherit parent's str_offsets_base and addr_base.
11687 Update comments.
11688 (init_cutu_and_read_dies_simple): Reflect API changes.
11689 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11690 (create_cus_hash_table): Change API to take parent compile unit.
11691 Reflect API changes.
11692 (open_and_init_dwo_file): Reflect API changes.
11693 (dwarf2_get_pc_bounds): Update comments.
11694 (dwarf2_record_block_ranges): Likewise.
11695 (read_full_die_1): Change implementation to reprocess attributes that
11696 need str_offsets_base and addr_base.
11697 (partial_die_info::read): Likewise.
11698 (read_attribute_reprocess): New function definition.
11699 (read_attribute_value): Change API to take an additional out parameter,
11700 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11701 when a non-dwo compile unit has index based attributes.
11702 (read_attribute): Reflect API changes.
11703 (read_addr_index_1): Reflect API changes. Update comments.
11704 (dwarf2_read_addr_index_data): Reflect API changes.
11705 (dwarf2_read_addr_index): Likewise.
11706 (read_str_index): Change API and implementation. This becomes a helper
11707 to be used by the new string index related methods. Update error
11708 message and comments.
11709 (read_dwo_str_index): New function definition.
11710 (read_stub_str_index): Likewise.
11711 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11712 * symfile.h (dwarf2_debug_sections): Likewise.
11713 * xcoffread.c (dwarf2_debug_sections): Likewise.
11714
11715 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11716
11717 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11718 core_reg_sect type to gdb_byte *.
11719 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11720 * cris-tdep.c (fetch_core_registers): Likewise.
11721 * corelow.c (core_target::get_core_register_section): Change
11722 type of `contents` to gdb::byte_vector.
11723
11724 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11725
11726 * tui/tui-wingeneral.c (box_win): Position the title in the center
11727 of the border.
11728
11729 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11730
11731 * corelow.c (core_target::get_core_register_section): Use
11732 std::vector instead of alloca.
11733
11734 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11735
11736 * warning.m4: Add -Wmissing-declarations to build_warnings.
11737 * configure: Re-generate.
11738
11739 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11740
11741 * python/python.c (init__gdb_module): Add declaration.
11742
11743 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11744
11745 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11746 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11747 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11748 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11749 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11750 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11751 * ada-exp.y (_initialize_ada_exp): Add declaration.
11752 * ada-lang.c (_initialize_ada_language): Add declaration.
11753 * ada-tasks.c (_initialize_tasks): Add declaration.
11754 * agent.c (_initialize_agent): Add declaration.
11755 * aix-thread.c (_initialize_aix_thread): Add declaration.
11756 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11757 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11758 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11759 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11760 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11761 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11762 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11763 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11764 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11765 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11766 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11767 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11768 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11769 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11770 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11771 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11772 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11773 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11774 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11775 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11776 * annotate.c (_initialize_annotate): Add declaration.
11777 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11778 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11779 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11780 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11781 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11782 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11783 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11784 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11785 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11786 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11787 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11788 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11789 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11790 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11791 * auto-load.c (_initialize_auto_load): Add declaration.
11792 * auxv.c (_initialize_auxv): Add declaration.
11793 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11794 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11795 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11796 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11797 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11798 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11799 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11800 * breakpoint.c (_initialize_breakpoint): Add declaration.
11801 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11802 * btrace.c (_initialize_btrace): Add declaration.
11803 * charset.c (_initialize_charset): Add declaration.
11804 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11805 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11806 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11807 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11808 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11809 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11810 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11811 * coffread.c (_initialize_coffread): Add declaration.
11812 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11813 * compile/compile.c (_initialize_compile): Add declaration.
11814 * complaints.c (_initialize_complaints): Add declaration.
11815 * completer.c (_initialize_completer): Add declaration.
11816 * copying.c (_initialize_copying): Add declaration.
11817 * corefile.c (_initialize_core): Add declaration.
11818 * corelow.c (_initialize_corelow): Add declaration.
11819 * cp-abi.c (_initialize_cp_abi): Add declaration.
11820 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11821 * cp-support.c (_initialize_cp_support): Add declaration.
11822 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11823 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11824 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11825 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11826 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11827 * ctfread.c (_initialize_ctfread): Add declaration.
11828 * d-lang.c (_initialize_d_language): Add declaration.
11829 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11830 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11831 * dbxread.c (_initialize_dbxread): Add declaration.
11832 * dcache.c (_initialize_dcache): Add declaration.
11833 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11834 * disasm.c (_initialize_disasm): Add declaration.
11835 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11836 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11837 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11838 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11839 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11840 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11841 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11842 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11843 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11844 * elfread.c (_initialize_elfread): Add declaration.
11845 * exec.c (_initialize_exec): Add declaration.
11846 * extension.c (_initialize_extension): Add declaration.
11847 * f-lang.c (_initialize_f_language): Add declaration.
11848 * f-valprint.c (_initialize_f_valprint): Add declaration.
11849 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11850 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11851 * filesystem.c (_initialize_filesystem): Add declaration.
11852 * findcmd.c (_initialize_mem_search): Add declaration.
11853 * findvar.c (_initialize_findvar): Add declaration.
11854 * fork-child.c (_initialize_fork_child): Add declaration.
11855 * frame-base.c (_initialize_frame_base): Add declaration.
11856 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11857 * frame.c (_initialize_frame): Add declaration.
11858 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11859 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11860 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11861 * gcore.c (_initialize_gcore): Add declaration.
11862 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11863 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11864 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11865 * gdbarch.c (_initialize_gdbarch): Add declaration.
11866 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11867 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11868 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11869 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11870 * go-lang.c (_initialize_go_language): Add declaration.
11871 * go32-nat.c (_initialize_go32_nat): Add declaration.
11872 * guile/guile.c (_initialize_guile): Add declaration.
11873 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11874 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11875 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11876 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11877 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11878 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11879 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11880 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11881 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11882 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11883 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11884 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11885 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11886 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11887 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11888 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11889 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11890 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11891 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11892 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11893 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11894 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11895 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11896 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11897 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11898 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11899 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11900 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11901 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11902 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11903 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11904 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11905 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11906 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11907 * infcall.c (_initialize_infcall): Add declaration.
11908 * infcmd.c (_initialize_infcmd): Add declaration.
11909 * inflow.c (_initialize_inflow): Add declaration.
11910 * infrun.c (_initialize_infrun): Add declaration.
11911 * interps.c (_initialize_interpreter): Add declaration.
11912 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11913 * jit.c (_initialize_jit): Add declaration.
11914 * language.c (_initialize_language): Add declaration.
11915 * linux-fork.c (_initialize_linux_fork): Add declaration.
11916 * linux-nat.c (_initialize_linux_nat): Add declaration.
11917 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11918 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11919 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11920 * m2-lang.c (_initialize_m2_language): Add declaration.
11921 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11922 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11923 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11924 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11925 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11926 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11927 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11928 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11929 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11930 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11931 * machoread.c (_initialize_machoread): Add declaration.
11932 * macrocmd.c (_initialize_macrocmd): Add declaration.
11933 * macroscope.c (_initialize_macroscope): Add declaration.
11934 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11935 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11936 * maint.c (_initialize_maint_cmds): Add declaration.
11937 * mdebugread.c (_initialize_mdebugread): Add declaration.
11938 * memattr.c (_initialize_mem): Add declaration.
11939 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11940 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11941 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11942 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11943 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11944 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11945 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11946 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11947 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11948 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11949 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11950 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11951 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11952 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11953 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11954 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11955 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11956 * mipsread.c (_initialize_mipsread): Add declaration.
11957 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11958 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11959 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11960 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11961 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11962 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11963 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11964 * nto-procfs.c (_initialize_procfs): Add declaration.
11965 * objc-lang.c (_initialize_objc_language): Add declaration.
11966 * observable.c (_initialize_observer): Add declaration.
11967 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11968 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11969 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11970 * osabi.c (_initialize_gdb_osabi): Add declaration.
11971 * osdata.c (_initialize_osdata): Add declaration.
11972 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11973 * parse.c (_initialize_parse): Add declaration.
11974 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11975 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11976 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11977 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11978 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11979 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11980 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11981 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11982 * printcmd.c (_initialize_printcmd): Add declaration.
11983 * probe.c (_initialize_probe): Add declaration.
11984 * proc-api.c (_initialize_proc_api): Add declaration.
11985 * proc-events.c (_initialize_proc_events): Add declaration.
11986 * proc-service.c (_initialize_proc_service): Add declaration.
11987 * procfs.c (_initialize_procfs): Add declaration.
11988 * producer.c (_initialize_producer): Add declaration.
11989 * psymtab.c (_initialize_psymtab): Add declaration.
11990 * python/python.c (_initialize_python): Add declaration.
11991 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11992 * record-btrace.c (_initialize_record_btrace): Add declaration.
11993 * record-full.c (_initialize_record_full): Add declaration.
11994 * record.c (_initialize_record): Add declaration.
11995 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11996 * regcache.c (_initialize_regcache): Add declaration.
11997 * reggroups.c (_initialize_reggroup): Add declaration.
11998 * remote-notif.c (_initialize_notif): Add declaration.
11999 * remote-sim.c (_initialize_remote_sim): Add declaration.
12000 * remote.c (_initialize_remote): Add declaration.
12001 * reverse.c (_initialize_reverse): Add declaration.
12002 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12003 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12004 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12005 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12006 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12007 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12008 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12009 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12010 Add declaration.
12011 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12012 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12013 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12014 * rust-exp.y (_initialize_rust_exp): Add declaration.
12015 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12016 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12017 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12018 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12019 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12020 * score-tdep.c (_initialize_score_tdep): Add declaration.
12021 * ser-go32.c (_initialize_ser_dos): Add declaration.
12022 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12023 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12024 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12025 * ser-uds.c (_initialize_ser_socket): Add declaration.
12026 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12027 * serial.c (_initialize_serial): Add declaration.
12028 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12029 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12030 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12031 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12032 * skip.c (_initialize_step_skip): Add declaration.
12033 * sol-thread.c (_initialize_sol_thread): Add declaration.
12034 * solib-aix.c (_initialize_solib_aix): Add declaration.
12035 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12036 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12037 * solib-frv.c (_initialize_frv_solib): Add declaration.
12038 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12039 * solib-target.c (_initialize_solib_target): Add declaration.
12040 * solib.c (_initialize_solib): Add declaration.
12041 * source-cache.c (_initialize_source_cache): Add declaration.
12042 * source.c (_initialize_source): Add declaration.
12043 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12044 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12045 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12046 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12047 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12048 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12049 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12050 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12051 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12052 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12053 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12054 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12055 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12056 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12057 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12058 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12059 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12060 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12061 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12062 * stabsread.c (_initialize_stabsread): Add declaration.
12063 * stack.c (_initialize_stack): Add declaration.
12064 * stap-probe.c (_initialize_stap_probe): Add declaration.
12065 * std-regs.c (_initialize_frame_reg): Add declaration.
12066 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12067 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12068 * symfile.c (_initialize_symfile): Add declaration.
12069 * symmisc.c (_initialize_symmisc): Add declaration.
12070 * symtab.c (_initialize_symtab): Add declaration.
12071 * target.c (_initialize_target): Add declaration.
12072 * target-connection.c (_initialize_target_connection): Add
12073 declaration.
12074 * target-dcache.c (_initialize_target_dcache): Add declaration.
12075 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12076 * thread.c (_initialize_thread): Add declaration.
12077 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12078 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12079 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12080 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12081 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12082 * tracectf.c (_initialize_ctf): Add declaration.
12083 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12084 * tracefile.c (_initialize_tracefile): Add declaration.
12085 * tracepoint.c (_initialize_tracepoint): Add declaration.
12086 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12087 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12088 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12089 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12090 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12091 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12092 * tui/tui.c (_initialize_tui): Add declaration.
12093 * typeprint.c (_initialize_typeprint): Add declaration.
12094 * ui-style.c (_initialize_ui_style): Add declaration.
12095 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12096 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12097 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12098 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12099 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12100 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12101 * unittests/filtered_iterator-selftests.c
12102 (_initialize_filtered_iterator_selftests): Add declaration.
12103 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12104 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12105 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12106 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12107 * unittests/main-thread-selftests.c
12108 (_initialize_main_thread_selftests): Add declaration.
12109 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12110 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12111 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12112 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12113 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12114 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12115 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12116 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12117 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12118 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12119 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12120 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12121 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12122 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12123 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12124 declaration.
12125 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12126 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12127 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12128 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12129 * user-regs.c (_initialize_user_regs): Add declaration.
12130 * utils.c (_initialize_utils): Add declaration.
12131 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12132 * valops.c (_initialize_valops): Add declaration.
12133 * valprint.c (_initialize_valprint): Add declaration.
12134 * value.c (_initialize_values): Add declaration.
12135 * varobj.c (_initialize_varobj): Add declaration.
12136 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12137 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12138 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12139 * windows-nat.c (_initialize_windows_nat): Add declaration.
12140 (_initialize_check_for_gdb_ini): Add declaration.
12141 (_initialize_loadable): Add declaration.
12142 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12143 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12144 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12145 * xcoffread.c (_initialize_xcoffread): Add declaration.
12146 * xml-support.c (_initialize_xml_support): Add declaration.
12147 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12148 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12149 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12150 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12151
12152 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12153
12154 * regformats/regdat.sh: Generate declaration for init function.
12155
12156 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12157
12158 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12159 up.
12160 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12161 close_one_inferior>: New methods.
12162 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12163 pass down target to find_inferior_pid.
12164 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12165 Pass down target to find_inferior_ptid.
12166 (gdbsim_target::create_inferior): Pass down target to
12167 add_thread_silent.
12168 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12169 target down to find_inferior_ptid and switch_to_thread.
12170 (gdbsim_target::close): Update to call close_one_inferior.
12171 (struct resume_data): Remove.
12172 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12173 directly, rather than through a void pointer.
12174 (gdbsim_target::resume): Update to call resume_one_inferior.
12175
12176 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12177
12178 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12179
12180 2020-01-12 Pedro Alves <palves@redhat.com>
12181
12182 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12183 directly for the current inferior instead of
12184 discard_all_inferiors.
12185 (discard_all_inferiors): Delete.
12186
12187 2020-01-11 Tom Tromey <tom@tromey.com>
12188
12189 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12190 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12191 deprecated_safe_get_selected_frame.
12192
12193 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12194
12195 * inferior.c (print_inferior): Switch inferior before printing it.
12196
12197 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12198 Pedro Alves <palves@redhat.com>
12199
12200 * progspace-and-thread.c (switch_to_program_space_and_thread):
12201 Assert there's an inferior for PSPACE. Use
12202 switch_to_inferior_no_thread to switch the inferior too.
12203 * progspace.c (program_space::~program_space): Call
12204 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12205 (program_space::free_all_objfiles): Don't call clear_symtab_users
12206 here.
12207 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12208
12209 2020-01-10 Pedro Alves <palves@redhat.com>
12210
12211 * NEWS: Mention multi-target debugging, "info connections", and
12212 "add-inferior -no-connection".
12213
12214 2020-01-10 Pedro Alves <palves@redhat.com>
12215
12216 * infrun.c: Include "target-connection.h".
12217 (check_multi_target_resumption): New.
12218 (proceed): Call it.
12219 * target-connection.c (make_target_connection_string): Make
12220 extern.
12221 * target-connection.h (make_target_connection_string): Declare.
12222
12223 2020-01-10 Pedro Alves <palves@redhat.com>
12224
12225 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12226 * inferior.c (uiout_field_connection): New function.
12227 (print_inferior): Add new "connection-id" column.
12228 (add_inferior_command): Show connection number/string of added
12229 inferior.
12230 * process-stratum-target.h
12231 (process_stratum_target::connection_string): New virtual method.
12232 (process_stratum_target::connection_number): New field.
12233 * remote.c (remote_target::connection_string): New override.
12234 * target-connection.c: New file.
12235 * target-connection.h: New file.
12236 * target.c (decref_target): Remove process_stratum targets from
12237 the connection list.
12238 (target_stack::push): Add process_stratum targets to the
12239 connection list.
12240
12241 2020-01-10 Pedro Alves <palves@redhat.com>
12242
12243 Revert:
12244 2016-04-12 Pedro Alves <palves@redhat.com>
12245 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12246 Remove references to name.
12247 * serial.h (struct serial) <name>: Delete.
12248
12249 2020-01-10 Pedro Alves <palves@redhat.com>
12250
12251 * gdbarch-selftests.c (register_to_value_test): Remove "target
12252 already pushed" check.
12253
12254 2020-01-10 Pedro Alves <palves@redhat.com>
12255 John Baldwin <jhb@FreeBSD.org>
12256
12257 * aarch64-linux-nat.c
12258 (aarch64_linux_nat_target::thread_architecture): Adjust.
12259 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12260 (task_command_1): Likewise.
12261 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12262 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12263 (aix_thread_target::store_registers)
12264 (aix_thread_target::thread_alive): Adjust.
12265 * amd64-fbsd-tdep.c: Include "inferior.h".
12266 (amd64fbsd_get_thread_local_address): Pass down target.
12267 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12268 thread's gdbarch instead of target_gdbarch.
12269 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12270 get_last_target_status.
12271 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12272 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12273 inferiors.
12274 (update_inserted_breakpoint_locations): Skip if inferiors with no
12275 execution.
12276 (update_global_location_list): When handling moribund locations,
12277 find representative inferior for location's pspace, and use thread
12278 count of its process_stratum target.
12279 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12280 * bsd-uthread.c (bsd_uthread_target::wait): Use
12281 as_process_stratum_target and adjust thread_change_ptid and
12282 add_thread calls.
12283 (bsd_uthread_target::update_thread_list): Use
12284 as_process_stratum_target and adjust find_thread_ptid,
12285 thread_change_ptid and add_thread calls.
12286 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12287 find_thread_ptid call.
12288 * corelow.c (add_to_thread_list): Adjust add_thread call.
12289 (core_target_open): Adjust add_thread_silent and thread_count
12290 calls.
12291 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12292 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12293 * event-top.c (async_disconnect): Pop targets from all inferiors.
12294 * exec.c (add_target_sections): Push exec target on all inferiors
12295 sharing the program space.
12296 (remove_target_sections): Remove the exec target from all
12297 inferiors sharing the program space.
12298 (exec_on_vfork): New.
12299 * exec.h (exec_on_vfork): Declare.
12300 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12301 Pass it down.
12302 (fbsd_nat_target::update_thread_list): Adjust.
12303 (fbsd_nat_target::resume): Adjust.
12304 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12305 down.
12306 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12307 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12308 get_thread_arch_regcache call.
12309 * fork-child.c (gdb_startup_inferior): Pass target down to
12310 startup_inferior and set_executing.
12311 * gdbthread.h (struct process_stratum_target): Forward declare.
12312 (add_thread, add_thread_silent, add_thread_with_info)
12313 (in_thread_list): Add process_stratum_target parameter.
12314 (find_thread_ptid(inferior*, ptid_t)): New overload.
12315 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12316 parameter.
12317 (all_threads()): Delete overload.
12318 (all_threads, all_non_exited_threads): Add process_stratum_target
12319 parameter.
12320 (all_threads_safe): Use brace initialization.
12321 (thread_count): Add process_stratum_target parameter.
12322 (set_resumed, set_running, set_stop_requested, set_executing)
12323 (threads_are_executing, finish_thread_state): Add
12324 process_stratum_target parameter.
12325 (switch_to_thread): Use is_current_thread.
12326 * i386-fbsd-tdep.c: Include "inferior.h".
12327 (i386fbsd_get_thread_local_address): Pass down target.
12328 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12329 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12330 have_inferiors check.
12331 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12332 (inf_ptrace_target::attach): Adjust.
12333 * infcall.c (run_inferior_call): Adjust.
12334 * infcmd.c (run_command_1): Pass target to
12335 scoped_finish_thread_state.
12336 (proceed_thread_callback): Skip inferiors with no execution.
12337 (continue_command): Rename 'all_threads' local to avoid hiding
12338 'all_threads' function. Adjust get_last_target_status call.
12339 (prepare_one_step): Adjust set_running call.
12340 (signal_command): Use user_visible_resume_target. Compare thread
12341 pointers instead of inferior_ptid.
12342 (info_program_command): Adjust to pass down target.
12343 (attach_command): Mark target's 'thread_executing' flag.
12344 (stop_current_target_threads_ns): New, factored out from ...
12345 (interrupt_target_1): ... this. Switch inferior before making
12346 target calls.
12347 * inferior-iter.h
12348 (struct all_inferiors_iterator, struct all_inferiors_range)
12349 (struct all_inferiors_safe_range)
12350 (struct all_non_exited_inferiors_range): Filter on
12351 process_stratum_target too. Remove explicit.
12352 * inferior.c (inferior::inferior): Push dummy target on target
12353 stack.
12354 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12355 Add process_stratum_target parameter, and pass it down.
12356 (have_live_inferiors): Adjust.
12357 (switch_to_inferior_and_push_target): New.
12358 (add_inferior_command, clone_inferior_command): Handle
12359 "-no-connection" parameter. Use
12360 switch_to_inferior_and_push_target.
12361 (_initialize_inferior): Mention "-no-connection" option in
12362 the help of "add-inferior" and "clone-inferior" commands.
12363 * inferior.h: Include "process-stratum-target.h".
12364 (interrupt_target_1): Use bool.
12365 (struct inferior) <push_target, unpush_target, target_is_pushed,
12366 find_target_beneath, top_target, process_target, target_at,
12367 m_stack>: New.
12368 (discard_all_inferiors): Delete.
12369 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12370 (all_inferiors, all_non_exited_inferiors): Add
12371 process_stratum_target parameter.
12372 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12373 (target_last_proc_target): New global.
12374 (follow_fork_inferior): Push target on new inferior. Pass target
12375 to add_thread_silent. Call exec_on_vfork. Handle target's
12376 reference count.
12377 (follow_fork): Adjust get_last_target_status call. Also consider
12378 target.
12379 (follow_exec): Push target on new inferior.
12380 (struct execution_control_state) <target>: New field.
12381 (user_visible_resume_target): New.
12382 (do_target_resume): Call target_async.
12383 (resume_1): Set target's threads_executing flag. Consider resume
12384 target.
12385 (commit_resume_all_targets): New.
12386 (proceed): Also consider resume target. Skip threads of inferiors
12387 with no execution. Commit resumtion in all targets.
12388 (start_remote): Pass current inferior to wait_for_inferior.
12389 (infrun_thread_stop_requested): Consider target as well. Pass
12390 thread_info pointer to clear_inline_frame_state instead of ptid.
12391 (infrun_thread_thread_exit): Consider target as well.
12392 (random_pending_event_thread): New inferior parameter. Use it.
12393 (do_target_wait): Rename to ...
12394 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12395 down.
12396 (threads_are_resumed_pending_p, do_target_wait): New.
12397 (prepare_for_detach): Adjust calls.
12398 (wait_for_inferior): New inferior parameter. Handle it. Use
12399 do_target_wait_1 instead of do_target_wait.
12400 (fetch_inferior_event): Adjust. Switch to representative
12401 inferior. Pass target down.
12402 (set_last_target_status): Add process_stratum_target parameter.
12403 Save target in global.
12404 (get_last_target_status): Add process_stratum_target parameter and
12405 handle it.
12406 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12407 (context_switch): Check inferior_ptid == null_ptid before calling
12408 inferior_thread().
12409 (get_inferior_stop_soon): Pass down target.
12410 (wait_one): Rename to ...
12411 (poll_one_curr_target): ... this.
12412 (struct wait_one_event): New.
12413 (wait_one): New.
12414 (stop_all_threads): Adjust.
12415 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12416 event's target.
12417 (switch_back_to_stepped_thread): Also consider target.
12418 (print_stop_event): Update.
12419 (normal_stop): Update. Also consider the resume target.
12420 * infrun.h (wait_for_inferior): Remove declaration.
12421 (user_visible_resume_target): New declaration.
12422 (get_last_target_status, set_last_target_status): New
12423 process_stratum_target parameter.
12424 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12425 process_stratum_target parameter, and use it.
12426 (clear_inline_frame_state (thread_info*)): New.
12427 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12428 process_stratum_target parameter.
12429 (clear_inline_frame_state (thread_info*)): Declare.
12430 * linux-fork.c (delete_checkpoint_command): Pass target down to
12431 find_thread_ptid.
12432 (checkpoint_command): Adjust.
12433 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12434 instead of just tweaking inferior_ptid.
12435 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12436 (exit_lwp): Pass target down to find_thread_ptid.
12437 (attach_proc_task_lwp_callback): Pass target down to
12438 add_thread/set_running/set_executing.
12439 (linux_nat_target::attach): Pass target down to
12440 thread_change_ptid.
12441 (get_detach_signal): Pass target down to find_thread_ptid.
12442 Consider last target status's target.
12443 (linux_resume_one_lwp_throw, resume_lwp)
12444 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12445 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12446 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12447 (linux_nat_target::async_wait_fd): New.
12448 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12449 target down.
12450 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12451 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12452 * linux-thread-db.c (struct thread_db_info::process_target): New
12453 field.
12454 (add_thread_db_info): Save target.
12455 (get_thread_db_info): New process_stratum_target parameter. Also
12456 match target.
12457 (delete_thread_db_info): New process_stratum_target parameter.
12458 Also match target.
12459 (thread_from_lwp): Adjust to pass down target.
12460 (thread_db_notice_clone): Pass down target.
12461 (check_thread_db_callback): Pass down target.
12462 (try_thread_db_load_1): Always push the thread_db target.
12463 (try_thread_db_load, record_thread): Pass target down.
12464 (thread_db_target::detach): Pass target down. Always unpush the
12465 thread_db target.
12466 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12467 target down. Always unpush the thread_db target.
12468 (find_new_threads_callback, thread_db_find_new_threads_2)
12469 (thread_db_target::update_thread_list): Pass target down.
12470 (thread_db_target::pid_to_str): Pass current inferior down.
12471 (thread_db_target::get_thread_local_address): Pass target down.
12472 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12473 target down.
12474 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12475 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12476 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12477 (procfs_init_inferior): Rename to ...
12478 (procfs_target::procfs_init_inferior): ... this and adjust.
12479 (procfs_target::create_inferior, procfs_notice_thread)
12480 (procfs_do_thread_registers): Adjust.
12481 * ppc-fbsd-tdep.c: Include "inferior.h".
12482 (ppcfbsd_get_thread_local_address): Pass down target.
12483 * proc-service.c (ps_xfer_memory): Switch current inferior and
12484 program space as well.
12485 (get_ps_regcache): Pass target down.
12486 * process-stratum-target.c
12487 (process_stratum_target::thread_address_space)
12488 (process_stratum_target::thread_architecture): Pass target down.
12489 * process-stratum-target.h
12490 (process_stratum_target::threads_executing): New field.
12491 (as_process_stratum_target): New.
12492 * ravenscar-thread.c
12493 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12494 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12495 down.
12496 * record-btrace.c (record_btrace_target::info_record): Adjust.
12497 (record_btrace_target::record_method)
12498 (record_btrace_target::record_is_replaying)
12499 (record_btrace_target::fetch_registers)
12500 (get_thread_current_frame_id, record_btrace_target::resume)
12501 (record_btrace_target::wait, record_btrace_target::stop): Pass
12502 target down.
12503 * record-full.c (record_full_wait_1): Switch to event thread.
12504 Pass target down.
12505 * regcache.c (regcache::regcache)
12506 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12507 process_stratum_target parameter and handle it.
12508 (current_thread_target): New global.
12509 (get_thread_regcache): Add process_stratum_target parameter and
12510 handle it. Switch inferior before calling target method.
12511 (get_thread_regcache): Pass target down.
12512 (get_thread_regcache_for_ptid): Pass target down.
12513 (registers_changed_ptid): Add process_stratum_target parameter and
12514 handle it.
12515 (registers_changed_thread, registers_changed): Pass target down.
12516 (test_get_thread_arch_aspace_regcache): New.
12517 (current_regcache_test): Define a couple local test_target_ops
12518 instances and use them for testing.
12519 (readwrite_regcache): Pass process_stratum_target parameter.
12520 (cooked_read_test, cooked_write_test): Pass mock_target down.
12521 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12522 (get_thread_arch_aspace_regcache): Add process_stratum_target
12523 parameter.
12524 (regcache::target): New method.
12525 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12526 (regcache::registers_changed_ptid): Add process_stratum_target
12527 parameter.
12528 (regcache::m_target): New field.
12529 (registers_changed_ptid): Add process_stratum_target parameter.
12530 * remote.c (remote_state::supports_vCont_probed): New field.
12531 (remote_target::async_wait_fd): New method.
12532 (remote_unpush_and_throw): Add remote_target parameter.
12533 (get_current_remote_target): Adjust.
12534 (remote_target::remote_add_inferior): Push target.
12535 (remote_target::remote_add_thread)
12536 (remote_target::remote_notice_new_inferior)
12537 (get_remote_thread_info): Pass target down.
12538 (remote_target::update_thread_list): Skip threads of inferiors
12539 bound to other targets. (remote_target::close): Don't discard
12540 inferiors. (remote_target::add_current_inferior_and_thread)
12541 (remote_target::process_initial_stop_replies)
12542 (remote_target::start_remote)
12543 (remote_target::remote_serial_quit_handler): Pass down target.
12544 (remote_target::remote_unpush_target): New remote_target
12545 parameter. Unpush the target from all inferiors.
12546 (remote_target::remote_unpush_and_throw): New remote_target
12547 parameter. Pass it down.
12548 (remote_target::open_1): Check whether the current inferior has
12549 execution instead of checking whether any inferior is live. Pass
12550 target down.
12551 (remote_target::remote_detach_1): Pass down target. Use
12552 remote_unpush_target.
12553 (extended_remote_target::attach): Pass down target.
12554 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12555 (remote_target::append_resumption): Pass down target.
12556 (remote_target::append_pending_thread_resumptions)
12557 (remote_target::remote_resume_with_hc, remote_target::resume)
12558 (remote_target::commit_resume): Pass down target.
12559 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12560 (remote_target::interrupt_query)
12561 (remote_target::remove_new_fork_children)
12562 (remote_target::check_pending_events_prevent_wildcard_vcont)
12563 (remote_target::remote_parse_stop_reply)
12564 (remote_target::process_stop_reply): Pass down target.
12565 (first_remote_resumed_thread): New remote_target parameter. Pass
12566 it down.
12567 (remote_target::wait_as): Pass down target.
12568 (unpush_and_perror): New remote_target parameter. Pass it down.
12569 (remote_target::readchar, remote_target::remote_serial_write)
12570 (remote_target::getpkt_or_notif_sane_1)
12571 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12572 down target.
12573 (remote_target::mourn_inferior): Pass down target. Use
12574 remote_unpush_target.
12575 (remote_target::core_of_thread)
12576 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12577 (remote_target::pid_to_exec_file)
12578 (remote_target::thread_handle_to_thread_info): Pass down target.
12579 (remote_target::async_wait_fd): New.
12580 * riscv-fbsd-tdep.c: Include "inferior.h".
12581 (riscv_fbsd_get_thread_local_address): Pass down target.
12582 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12583 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12584 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12585 Adjust.
12586 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12587 * solib-svr4.c (enable_break): Pass down target.
12588 * spu-multiarch.c (parse_spufs_run): Pass down target.
12589 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12590 * target-delegates.c: Regenerate.
12591 * target.c (g_target_stack): Delete.
12592 (current_top_target): Return the current inferior's top target.
12593 (target_has_execution_1): Refer to the passed-in inferior's top
12594 target.
12595 (target_supports_terminal_ours): Check whether the initial
12596 inferior was already created.
12597 (decref_target): New.
12598 (target_stack::push): Incref/decref the target.
12599 (push_target, push_target, unpush_target): Adjust.
12600 (target_stack::unpush): Defref target.
12601 (target_is_pushed): Return bool. Adjust to refer to the current
12602 inferior's target stack.
12603 (dispose_inferior): Delete, and inline parts ...
12604 (target_preopen): ... here. Only dispose of the current inferior.
12605 (target_detach): Hold strong target reference while detaching.
12606 Pass target down.
12607 (target_thread_name): Add assertion.
12608 (target_resume): Pass down target.
12609 (target_ops::beneath, find_target_at): Adjust to refer to the
12610 current inferior's target stack.
12611 (get_dummy_target): New.
12612 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12613 has a thread running.
12614 (initialize_targets): Rename to ...
12615 (_initialize_target): ... this.
12616 * target.h: Include "gdbsupport/refcounted-object.h".
12617 (struct target_ops): Inherit refcounted_object.
12618 (target_ops::shortname, target_ops::longname): Make const.
12619 (target_ops::async_wait_fd): New method.
12620 (decref_target): Declare.
12621 (struct target_ops_ref_policy): New.
12622 (target_ops_ref): New typedef.
12623 (get_dummy_target): Declare function.
12624 (target_is_pushed): Return bool.
12625 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12626 (all_matching_threads_iterator::all_matching_threads_iterator):
12627 Handle filter target.
12628 * thread-iter.h (struct all_matching_threads_iterator, struct
12629 all_matching_threads_range, class all_non_exited_threads_range):
12630 Filter by target too. Remove explicit.
12631 * thread.c (threads_executing): Delete.
12632 (inferior_thread): Pass down current inferior.
12633 (clear_thread_inferior_resources): Pass down thread pointer
12634 instead of ptid_t.
12635 (add_thread_silent, add_thread_with_info, add_thread): Add
12636 process_stratum_target parameter. Use it for thread and inferior
12637 searches.
12638 (is_current_thread): New.
12639 (thread_info::deletable): Use it.
12640 (find_thread_ptid, thread_count, in_thread_list)
12641 (thread_change_ptid, set_resumed, set_running): New
12642 process_stratum_target parameter. Pass it down.
12643 (set_executing): New process_stratum_target parameter. Pass it
12644 down. Adjust reference to 'threads_executing'.
12645 (threads_are_executing): New process_stratum_target parameter.
12646 Adjust reference to 'threads_executing'.
12647 (set_stop_requested, finish_thread_state): New
12648 process_stratum_target parameter. Pass it down.
12649 (switch_to_thread): Also match inferior.
12650 (switch_to_thread): New process_stratum_target parameter. Pass it
12651 down.
12652 (update_threads_executing): Reimplement.
12653 * top.c (quit_force): Pop targets from all inferior.
12654 (gdb_init): Don't call initialize_targets.
12655 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12656 Declare.
12657 (windows_add_thread, windows_delete_thread): Adjust.
12658 (get_windows_debug_event): Rename to ...
12659 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12660 * tracefile-tfile.c (tfile_target_open): Pass down target.
12661 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12662 Forward declare.
12663 (switch_to_thread): Add process_stratum_target parameter.
12664 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12665 parameter. Use it.
12666 (mi_on_resume): Pass target down.
12667 * nat/fork-inferior.c (startup_inferior): Add
12668 process_stratum_target parameter. Pass it down.
12669 * nat/fork-inferior.h (startup_inferior): Add
12670 process_stratum_target parameter.
12671 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12672
12673 2020-01-10 Pedro Alves <palves@redhat.com>
12674
12675 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12676 directly. Instead find the first thread in the thread list and
12677 use switch_to_thread.
12678
12679 2020-01-10 Pedro Alves <palves@redhat.com>
12680
12681 * remote.c (remote_target::remote_add_inferior): Don't bind a
12682 process to the current inferior if the current inferior is already
12683 bound to a process.
12684
12685 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12686 Pedro Alves <palves@redhat.com>
12687
12688 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12689 If no process is specified, return null_ptid instead of
12690 inferior_ptid.
12691 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12692 TARGET_WAITKIND_SIGNALLED with no pid.
12693
12694 2020-01-10 Pedro Alves <palves@redhat.com>
12695
12696 * remote.c (first_remote_resumed_thread): New.
12697 (remote_target::wait_as): Use it as default event_ptid instead of
12698 inferior_ptid.
12699
12700 2020-01-10 Pedro Alves <palves@redhat.com>
12701
12702 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12703
12704 2020-01-10 Pedro Alves <palves@redhat.com>
12705
12706 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12707 not -1.
12708
12709 2020-01-10 Pedro Alves <palves@redhat.com>
12710
12711 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12712 ptid to get_last_target_status.
12713 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12714 ptid to get_last_target_status.
12715 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12716 get_last_target_status.
12717 (info_program_command): Don't pass a target_waitstatus to
12718 get_last_target_status.
12719 * infrun.c (init_wait_for_inferior): Use
12720 nullify_last_target_wait_ptid.
12721 (get_last_target_status): Handle nullptr arguments.
12722 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12723 (print_stop_event): Don't pass a ptid to get_last_target_status.
12724 (normal_stop): Don't pass a ptid to get_last_target_status.
12725 * infrun.h (get_last_target_status, set_last_target_status): Move
12726 comments here and update.
12727 (nullify_last_target_wait_ptid): Declare.
12728 * linux-fork.c (fork_load_infrun_state): Remove local extern
12729 declaration of nullify_last_target_wait_ptid.
12730 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12731 to get_last_target_status.
12732
12733 2020-01-10 Pedro Alves <palves@redhat.com>
12734
12735 * gdbthread.h (scoped_restore_current_thread)
12736 <dont_restore, restore, m_dont_restore>: Declare.
12737 * thread.c (thread_alive): Add assertion. Return bool.
12738 (switch_to_thread_if_alive): New.
12739 (prune_threads): Switch inferior/thread.
12740 (print_thread_info_1): Switch thread before calling target methods.
12741 (scoped_restore_current_thread::restore): New, factored out from
12742 ...
12743 (scoped_restore_current_thread::~scoped_restore_current_thread):
12744 ... this.
12745 (scoped_restore_current_thread::scoped_restore_current_thread):
12746 Add assertion.
12747 (thread_apply_all_command, thread_select): Use
12748 switch_to_thread_if_alive.
12749 * infrun.c (proceed, restart_threads, handle_signal_stop)
12750 (switch_back_to_stepped_thread): Switch current thread before
12751 calling target methods.
12752
12753 2020-01-10 Pedro Alves <palves@redhat.com>
12754
12755 * inferior.c (switch_to_inferior_no_thread): New function,
12756 factored out from ...
12757 (inferior_command): ... here.
12758 * inferior.h (switch_to_inferior_no_thread): Declare.
12759 * mi/mi-main.c (run_one_inferior): Use
12760 switch_to_inferior_no_thread.
12761
12762 2020-01-10 Pedro Alves <palves@redhat.com>
12763
12764 * infcmd.c (kill_command): Remove dead code.
12765
12766 2020-01-10 Pedro Alves <palves@redhat.com>
12767
12768 * remote.c (remote_target::mourn_inferior): No longer check
12769 whether the target is running.
12770
12771 2020-01-10 Pedro Alves <palves@redhat.com>
12772
12773 * corelow.c (core_target::has_execution): Change parameter type to
12774 inferior pointer.
12775 * inferior.c (number_of_live_inferiors): Use
12776 inferior::has_execution instead of target_has_execution_1.
12777 * inferior.h (inferior::has_execution): New.
12778 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12779 inferior::has_execution instead of target_has_execution_1.
12780 * process-stratum-target.c
12781 (process_stratum_target::has_execution): Change parameter type to
12782 inferior pointer. Check the inferior's PID instead of
12783 inferior_ptid.
12784 * process-stratum-target.h
12785 (process_stratum_target::has_execution): Change parameter type to
12786 inferior pointer.
12787 * record-full.c (record_full_core_target::has_execution): Change
12788 parameter type to inferior pointer.
12789 * target.c (target_has_execution_1): Change parameter type to
12790 inferior pointer.
12791 (target_has_execution_current): Adjust.
12792 * target.h (target_ops::has_execution): Change parameter type to
12793 inferior pointer.
12794 (target_has_execution_1): Change parameter type to inferior
12795 pointer. Change return type to bool.
12796 * tracefile.h (tracefile_target::has_execution): Change parameter
12797 type to inferior pointer.
12798
12799 2020-01-10 Pedro Alves <palves@redhat.com>
12800
12801 * exceptions.c (print_flush): Remove current_top_target() check.
12802
12803 2020-01-10 Pedro Alves <palves@redhat.com>
12804
12805 * remote.c (show_remote_exec_file): Show the current inferior's
12806 exec-file instead of the command variable's value.
12807
12808 2020-01-10 Pedro Alves <palves@redhat.com>
12809
12810 * record-full.c (record_full_resume_ptid): New global.
12811 (record_full_target::resume): Set it.
12812 (record_full_wait_1): Use record_full_resume_ptid instead of
12813 inferior_ptid.
12814
12815 2020-01-10 Pedro Alves <palves@redhat.com>
12816
12817 * gdbthread.h (scoped_restore_current_thread)
12818 <dont_restore, restore, m_dont_restore>: Declare.
12819 * thread.c (thread_alive): Add assertion. Return bool.
12820 (switch_to_thread_if_alive): New.
12821 (prune_threads): Switch inferior/thread.
12822 (print_thread_info_1): Switch thread before calling target methods.
12823 (scoped_restore_current_thread::restore): New, factored out from
12824 ...
12825 (scoped_restore_current_thread::~scoped_restore_current_thread):
12826 ... this.
12827 (scoped_restore_current_thread::scoped_restore_current_thread):
12828 Add assertion.
12829 (thread_apply_all_command, thread_select): Use
12830 switch_to_thread_if_alive.
12831
12832 2020-01-10 George Barrett <bob@bob131.so>
12833
12834 * stap-probe.c (stap_modify_semaphore): Don't check for null
12835 semaphores.
12836 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12837 for null semaphores.
12838
12839 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12840
12841 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12842 all source windows, and maintain horizontal scroll status while
12843 doing so.
12844
12845 2020-01-09 Tom Tromey <tom@tromey.com>
12846
12847 PR tui/18932:
12848 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12849 update_source_window, not print_source_lines.
12850
12851 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12852
12853 * tui/tui.c (tui_enable): Register tui hooks after calling
12854 tui_display_main.
12855
12856 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12857
12858 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12859
12860 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12861
12862 * thread.c (print_thread_info_1): Fix indentation.
12863
12864 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12865
12866 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12867 unique_xmalloc_ptr outside the if to always free the demangled name.
12868
12869 2020-01-08 Tom Tromey <tromey@adacore.com>
12870
12871 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12872 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12873 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12874 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12875 Remove.
12876 (section_offsets): New typedef.
12877 * symtab.c (fixup_section, get_msymbol_address): Update.
12878 * symmisc.c (dump_msymbols): Update.
12879 * symfile.h (relative_addr_info_to_section_offsets)
12880 (symfile_map_offsets_to_segments): Update.
12881 * symfile.c (build_section_addr_info_from_objfile)
12882 (init_objfile_sect_indices): Update.
12883 (struct place_section_arg): Change type of "offsets".
12884 (place_section): Update.
12885 (relative_addr_info_to_section_offsets): Change type of
12886 "section_offsets". Remove "num_sections" parameter.
12887 (default_symfile_offsets, syms_from_objfile_1)
12888 (set_objfile_default_section_offset): Update.
12889 (reread_symbols): No need to preserve section offsets by hand.
12890 (symfile_map_offsets_to_segments): Change type of "offsets".
12891 * stap-probe.c (relocate_address): Update.
12892 * stabsread.h (process_one_symbol): Update.
12893 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12894 (solib_target_relocate_section_addresses): Update.
12895 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12896 Update.
12897 * solib-frv.c (frv_relocate_main_executable): Update.
12898 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12899 * solib-aix.c (solib_aix_get_section_offsets): Change return
12900 type.
12901 (solib_aix_solib_create_inferior_hook): Update.
12902 * remote.c (remote_target::get_offsets): Update.
12903 * psymtab.c (find_pc_sect_psymtab): Update.
12904 * psympriv.h (struct partial_symbol) <address, text_low,
12905 text_high>: Update.
12906 * objfiles.h (obj_section_offset): Update.
12907 (struct objfile) <section_offsets>: Change type.
12908 <num_sections>: Remove.
12909 (objfile_relocate): Update.
12910 * objfiles.c (entry_point_address_query): Update
12911 (relocate_one_symbol): Change type of "section_offsets".
12912 (objfile_relocate1, objfile_relocate1): Change type of
12913 "new_offsets".
12914 (objfile_rebase1): Update.
12915 * mipsread.c (mipscoff_symfile_read): Update.
12916 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12917 parameter.
12918 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12919 (parse_external, psymtab_to_symtab_1): Update.
12920 * machoread.c (macho_symfile_offsets): Update.
12921 * ia64-tdep.c (ia64_find_unwind_table): Update.
12922 * hppa-tdep.c (read_unwind_info): Update.
12923 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12924 * dwarf2read.c (create_addrmap_from_index)
12925 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12926 (process_psymtab_comp_unit_reader, add_partial_symbol)
12927 (add_partial_subprogram, process_full_comp_unit)
12928 (read_file_scope, read_func_scope, read_lexical_block_scope)
12929 (read_call_site_scope, dwarf2_rnglists_process)
12930 (dwarf2_ranges_process, dwarf2_ranges_read)
12931 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12932 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12933 Update.
12934 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12935 Update.
12936 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12937 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12938 (process_one_symbol): Change type of "section_offsets".
12939 * ctfread.c (get_objfile_text_range): Update.
12940 * coffread.c (coff_symtab_read, enter_linenos)
12941 (process_coff_symbol): Update.
12942 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12943 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12944
12945 2020-01-08 Tom Tromey <tromey@adacore.com>
12946
12947 * dwarf2read.c (parse_macro_definition): Use std::string.
12948 (parse_macro_definition): Likewise.
12949
12950 2020-01-08 Tom Tromey <tromey@adacore.com>
12951
12952 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12953 (ATTR_ALLOC_CHUNK): Remove.
12954
12955 2020-01-08 Tom Tromey <tromey@adacore.com>
12956
12957 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12958
12959 2020-01-08 Tom Tromey <tromey@adacore.com>
12960
12961 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12962 (dwarf2_compute_name, open_dwo_file): Likewise.
12963 (process_enumeration_scope): Use std::vector.
12964 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12965 (partial_die_info::fixup, dwarf2_start_subfile)
12966 (guess_full_die_structure_name, dwarf2_name): Likewise.
12967 (determine_prefix): Update.
12968 (guess_full_die_structure_name): Make return type const.
12969 (partial_die_full_name): Return unique_xmalloc_ptr.
12970 (DW_FIELD_ALLOC_CHUNK): Remove.
12971
12972 2020-01-07 Tom Tromey <tromey@adacore.com>
12973
12974 PR build/24937:
12975 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12976
12977 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12978
12979 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12980
12981 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12982
12983 * stack.c (print_frame_info): Move disassemble_next_line code
12984 inside source_print block.
12985
12986 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12987
12988 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12989 gdb/signals.h, as we are now using native signal symbols.
12990
12991 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12992
12993 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12994 overflow by an early check of content vs threshold.
12995 * tui/tui-source.c (tui_source_window::line_is_displayed):
12996 Likewise.
12997
12998 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12999
13000 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13001
13002 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13003
13004 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13005 export table if no section contains it's RVA.
13006
13007 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13008
13009 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13010
13011 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
13012
13013 * source.c (print_source_lines_base): Set last_line_listed.
13014
13015 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
13016
13017 * tui/tui-disasm.c: Remove trailing spaces.
13018
13019 2020-01-06 Eli Zaretskii <eliz@gnu.org>
13020 Pedro Alves <palves@redhat.com>
13021
13022 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13023 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13024 (windows_gdb_signal_to_target): New function, uses the above
13025 enumeration to convert GDB internal signal codes to equivalent
13026 Windows codes.
13027 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13028 * windows-nat.c: Include "gdb_wait.h".
13029 (get_windows_debug_event): Extract the fatal exception from the
13030 exit status and convert to the equivalent Posix signal number.
13031 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13032 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13033 * gdbsupport/gdb_wait.c: New file, implements
13034 windows_status_to_termsig.
13035 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13036 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13037
13038 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13039
13040 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13041 show_layout.
13042
13043 2020-01-05 Luis Machado <luis.machado@linaro.org>
13044
13045 * aarch64-linux-nat.c
13046 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13047 and bfd_mach_aarch64.
13048
13049 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13050
13051 * ui-file.c (stdio_file::can_emit_style_escape)
13052 (tee_file::can_emit_style_escape): Ensure style is used also on
13053 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13054 to gdb_stdout.
13055 * main.c (set_gdb_data_directory): Use file style to output the
13056 warning that the given pathname is not a directory.
13057 * top.c (show_history_filename, gdb_safe_append_history)
13058 (show_gdb_datadir): Use file style.
13059
13060 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13061
13062 * solib-target.c (struct lm_info_target):
13063 Change offsets to be a unique_xmalloc_ptr.
13064 (solib_target_relocate_section_addresses): Update.
13065
13066 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
13067
13068 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13069
13070 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13071
13072 * MAINTAINERS (Write After Approval): Add myself.
13073
13074 2020-01-02 Luis Machado <luis.machado@linaro.org>
13075
13076 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13077 Cell BE architecture.
13078 * target.h (struct target_ops) <thread_architecture>: Likewise.
13079
13080 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13081
13082 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13083
13084 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
13085
13086 * MAINTAINERS (Write After Approval): Add myself.
13087
13088 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13089
13090 * gdbarch.sh: Update copyright year range of generated files.
13091
13092 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13093
13094 Update copyright year range in all GDB files.
13095
13096 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13097
13098 * copyright.py: Convert to Python 3.
13099
13100 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13101
13102 * copyright.py: Adapt after move of gnulib directory from gdb
13103 directory to toplevel directory.
13104
13105 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13106
13107 * copyright.py (main): Exit if run from the wrong directory.
13108
13109 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13110
13111 * top.c (print_gdb_version): Change copyright year to 2020.
13112
13113 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13114
13115 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13116
13117 For older changes see ChangeLog-2019.
13118 \f
13119 Local Variables:
13120 mode: change-log
13121 left-margin: 8
13122 fill-column: 74
13123 version-control: never
13124 coding: utf-8
13125 End: