]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: Convert la_name_of_this to a method
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5bae7c4e
AB
12020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * ada-lang.c (ada_language_data): Remove la_name_of_this
4 initializer.
5 * ax-gdb.c (gen_expr): Update call to name_of_this.
6 * c-exp.y (classify_name): Likewise.
7 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
8 (cplus_language_data): Likewise.
9 (cplus_language::name_of_this): New member function.
10 (asm_language_data): Remove la_name_of_this initializer.
11 (minimal_language_data): Likewise.
12 * d-lang.c (d_language_data): Likewise.
13 (d_language::name_of_this): New member function.
14 * expprint.c (print_subexp_standard): Update call to name_of_this.
15 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
16 * go-lang.c (go_language_data): Likewise.
17 * language.c (unknown_language_data): Likewise.
18 (unknown_language::name_of_this): New member function.
19 (auto_language_data): Remove la_name_of_this initializer.
20 (auto_language::name_of_this): New member function.
21 * language.h (language_data): Delete la_name_of_this member
22 variable.
23 (language_defn::name_of_this): New member function.
24 * m2-lang.c (m2_language_data): Remove la_name_of_this
25 initializer.
26 * objc-lang.c (objc_language_data): Likewise.
27 (objc_language::name_of_this): New member function.
28 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
29 initializer.
30 * p-lang.c (pascal_language_data): Likewise.
31 (pascal_language::name_of_this): New member function.
32 * rust-lang.c (rust_language_data): Remove la_name_of_this
33 initializer.
34 * symtab.c (lookup_language_this): Update call to name_of_this.
35 (lookup_symbol_aux): Likewise.
36 * valops.c (value_of_this): Likewise.
37
22e3f3ed
AB
382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
39
40 * ada-lang.c (ada_language_data): Remove
41 la_struct_too_deep_ellipsis initializer.
42 (ada_language::struct_too_deep_ellipsis): New member function.
43 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
44 initializer.
45 (cplus_language_data): Likewise.
46 (asm_language_data): Likewise.
47 (minimal_language_data): Likewise.
48 * cp-valprint.c (cp_print_value): Update call to
49 struct_too_deep_ellipsis.
50 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
51 initializer.
52 * f-lang.c (f_language_data): Likewise.
53 (f_language::struct_too_deep_ellipsis): New member function.
54 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
55 initializer.
56 * language.c (unknown_language_data): Likewise.
57 (auto_language_data): Likewise.
58 * language.h (language_data): Delete la_struct_too_deep_ellipsis
59 member variable.
60 (language_defn::struct_too_deep_ellipsis): New member function.
61 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
62 initializer.Q
63 * objc-lang.c (objc_language_data): Likewise.
64 * opencl-lang.c (opencl_language_data): Likewise.
65 * p-lang.c (pascal_language_data): Likewise.
66 * rust-lang.c (rust_language_data): Likewise.
67 * valprint.c (val_print_check_max_depth): Update call to
68 struct_too_deep_ellipsis.
69
ed29e1c7
FW
702020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
71
72 * MAINTAINERS (Write After Approval): Add myself.
73
12d8f940
TT
742020-09-15 Tom Tromey <tom@tromey.com>
75
76 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
77 Remove.
78
6b5a7bc7
TT
792020-09-15 Tom Tromey <tom@tromey.com>
80
81 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
82 and TYPE_CODE_METHODPTR cases.
83 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
84 (c_value_print_inner): Update.
85 * valprint.c (generic_value_print_memberptr): New function, from
86 c_value_print_memberptr.
87 (generic_value_print): Use it. Call cplus_print_method_ptr.
88
47f0e2ff
TT
892020-09-15 Tom Tromey <tromey@adacore.com>
90
91 * python/python-internal.h (PyInt_FromLong): Remove define.
92 * python/py-value.c (convert_value_from_python): Use
93 gdb_py_object_from_longest.
94 * python/py-type.c (typy_get_code): Use
95 gdb_py_object_from_longest.
96 * python/py-symtab.c (salpy_get_line): Use
97 gdb_py_object_from_longest.
98 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
99 gdb_py_object_from_longest.
100 * python/py-record.c (recpy_gap_reason_code): Use
101 gdb_py_object_from_longest.
102 * python/py-record-btrace.c (recpy_bt_insn_size)
103 (recpy_bt_func_level, btpy_list_count): Use
104 gdb_py_object_from_longest.
105 * python/py-infthread.c (gdbpy_create_ptid_object): Use
106 gdb_py_object_from_longest. Fix error handling.
107 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
108 gdb_py_object_from_longest.
109 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
110 gdb_py_object_from_longest.
111 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
112 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
113 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
114
512116ce
TT
1152020-09-15 Tom Tromey <tromey@adacore.com>
116
117 * python/python.c (gdbpy_parameter_value): Use
118 gdb_py_object_from_ulongest.
119
4ab1029c
TT
1202020-09-15 Tom Tromey <tromey@adacore.com>
121
122 * python/py-infevents.c (create_register_changed_event_object):
123 Use gdb_py_object_from_longest.
124 * python/py-exitedevent.c (create_exited_event_object): Use
125 gdb_py_object_from_longest.
126
062534d4
TT
1272020-09-15 Tom Tromey <tromey@adacore.com>
128
129 * python/python.c (gdbpy_parameter_value): Use
130 gdb_py_object_from_longest.
131 * python/py-type.c (convert_field, typy_range): Use
132 gdb_py_object_from_longest.
133 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
134 gdb_py_object_from_longest.
135 * python/py-lazy-string.c (stpy_get_length): Use
136 gdb_py_object_from_longest.
137 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
138 gdb_py_object_from_longest.
139 * python/py-infevents.c (create_memory_changed_event_object): Use
140 gdb_py_object_from_longest.
141 * python/py-inferior.c (infpy_get_num): Use
142 gdb_py_object_from_longest.
143 (infpy_get_pid): Likewise.
144
d1cab987
TT
1452020-09-15 Tom Tromey <tromey@adacore.com>
146
147 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
148 defines.
149 * python/py-value.c (valpy_long): Use
150 gdb_py_object_from_ulongest.
151 * python/py-symtab.c (salpy_get_pc): Use
152 gdb_py_object_from_ulongest.
153 (salpy_get_last): Likewise.
154 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
155 gdb_py_object_from_ulongest.
156 * python/py-lazy-string.c (stpy_get_address): Use
157 gdb_py_object_from_ulongest.
158 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
159 * python/py-arch.c (archpy_disassemble): Use
160 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
161 error handling.
162
4bde49dc
TT
1632020-09-15 Tom Tromey <tromey@adacore.com>
164
165 * python/python-internal.h (gdb_py_long_from_longest): Remove
166 defines.
167 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
168 * python/py-type.c (convert_field, typy_get_sizeof): Use
169 gdb_py_object_from_longest.
170 * python/py-record-btrace.c (btpy_list_index): Use
171 gdb_py_object_from_longest.
172
37431074
TT
1732020-09-15 Tom Tromey <tromey@adacore.com>
174
175 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
176 * python/py-record.c (recpy_element_number): Use
177 gdb_py_object_from_longest.
178 (recpy_gap_number): Likewise.
179
cbe25684
TT
1802020-09-15 Tom Tromey <tromey@adacore.com>
181
182 * top.c (ui::ui): Update.
183 (highest_ui_num): Remove.
184 * top.h (struct ui) <num>: Remove.
185
db92ac45
TT
1862020-09-15 Tom Tromey <tromey@adacore.com>
187
188 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
189 * ui-style.c (ansi_regex_text): Now array.
190 * rust-exp.y (number_regex_text): Now array.
191 * linespec.c (linespec_quote_characters): Now array.
192 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
193 Now arrays.
194
d2b31b67
SM
1952020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
196
197 * debuginfod-support.c (debuginfod_client_deleter): New.
198 (debuginfod_client_up): New.
199 (debuginfod_init): Return debuginfod_client_up.
200 (debuginfod_source_query): Adjust.
201 (debuginfod_debuginfo_query): Adjust.
202
3246bd8e
SM
2032020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
204
205 * debuginfod-support.c (debuginfod_source_query): Use
206 make_unique_xstrdup.
207
10242f36
SM
2082020-09-14 Simon Marchi <simon.marchi@efficios.com>
209
210 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
211 with `type::instance_flags`.
212
e1044e6a
MM
2132020-09-14 Michael Mullin <masmullin@gmail.com>
214
215 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
216 Remove baton parameter.
217
04902b09
PA
2182020-09-14 Pedro Alves <pedro@palves.net>
219
220 * Makefile.in (SELFTESTS_SRCS): Add
221 unittests/enum-flags-selftests.c.
222 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
223 btrace_function_flags instead of enum btrace_function_flag.
224 * compile/compile-c-types.c (convert_qualified): Use
225 enum_flags::raw.
226 * compile/compile-cplus-symbols.c (convert_one_symbol)
227 (convert_symbol_bmsym):
228 * compile/compile-cplus-types.c (compile_cplus_convert_method)
229 (compile_cplus_convert_struct_or_union_methods)
230 (compile_cplus_instance::convert_qualified_base):
231 * go-exp.y (parse_string_or_char): Add cast to int.
232 * unittests/enum-flags-selftests.c: New file.
233 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
234 type to btrace_thread_flags from btrace_thread_flag.
235 (record_btrace_cancel_resume, record_btrace_step_thread): Change
236 local's type to btrace_thread_flags from btrace_thread_flag. Add
237 cast in DEBUG call.
238
69896a2c
PA
2392020-09-14 Pedro Alves <pedro@palves.net>
240
241 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
242 * gdbtypes.c (address_space_name_to_int): Rename to ...
243 (address_space_name_to_type_instance_flags): ... this.
244 (address_space_int_to_name): Rename to ...
245 (address_space_type_instance_flags_to_name): ... this.
246 * gdbtypes.h (address_space_name_to_int): Rename to ...
247 (address_space_name_to_type_instance_flags): ... this.
248 (address_space_int_to_name): Rename to ...
249 (address_space_type_instance_flags_to_name): ... this.
250 * type-stack.c (type_stack::insert): Adjust to rename.
251 * type-stack.h (type_stack::insert): Likewise.
252
314ad88d
PA
2532020-09-14 Pedro Alves <pedro@palves.net>
254 Andrew Burgess <andrew.burgess@embecosm.com>
255
256 * avr-tdep.c (avr_address_class_type_flags): Return
257 type_instance_flags.
258 (avr_address_class_type_flags_to_name): Take a
259 type_instance_flags.
260 (avr_address_class_name_to_type_flags): Return bool and take a
261 type_instance_flags.
262 * d-lang.c (build_d_types): Use type::set_instance_flags.
263 * ft32-tdep.c (ft32_address_class_type_flags): Return
264 type_instance_flags.
265 (ft32_address_class_type_flags_to_name): Take a
266 type_instance_flags.
267 (ft32_address_class_name_to_type_flags): Return bool and take a
268 type_instance_flags.
269 (ft32_gdbarch_init): Use type::set_instance_flags.
270 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
271 * gdbarch.h, gdbarch.c: Regenerate.
272 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
273 (address_class_name_to_type_flags): Use type_instance_flags and
274 bool.
275 * gdbtypes.c (address_space_name_to_int)
276 (address_space_int_to_name, make_qualified_type): Use
277 type_instance_flags.
278 (make_qualified_type): Use type_instance_flags and
279 type::set_instance_flags.
280 (make_type_with_address_space, make_cv_type, make_vector_type)
281 (check_typedef): Use type_instance_flags.
282 (recursive_dump_type): Cast type_instance_flags to unsigned for
283 printing.
284 (copy_type_recursive): Use type::set_instance_flags.
285 (gdbtypes_post_init): Use type::set_instance_flags.
286 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
287 <m_instance_flags>: ... this.
288 <instance_flags, set_instance_flags>: New methods.
289 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
290 (SET_TYPE_INSTANCE_FLAGS): New.
291 (address_space_name_to_int, address_space_int_to_name)
292 (make_type_with_address_space): Pass flags using
293 type_instance_flags instead of int.
294 * stabsread.c (cleanup_undefined_types_noname): Use
295 type::set_instance_flags.
296 * s390-tdep.c (s390_address_class_type_flags): Return
297 type_instance_flags.
298 (s390_address_class_type_flags_to_name): Take a
299 type_instance_flags.
300 (s390_address_class_name_to_type_flags): Return bool and take a
301 type_instance_flags.
302 * type-stack.c (type_stack::follow_types): Use
303 type_instance_flags.
304 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
305
27087b7f
TT
3062020-09-14 Tom Tromey <tromey@adacore.com>
307
308 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
309 * x86-tdep.c (x86_is_thunk_register_name)
310 (x86_in_indirect_branch_thunk): Update.
311 * sparc64-tdep.c (sparc64_fpu_register_names)
312 (sparc64_cp0_register_names, sparc64_register_names)
313 (sparc64_pseudo_register_names): Now const.
314 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
315 cp0_registers_num>: Now const.
316 * sparc-tdep.c (sparc_core_register_names)
317 (sparc32_fpu_register_names, sparc32_cp0_register_names)
318 (sparc32_pseudo_register_names): Now const.
319 (validate_tdesc_registers): Update.
320 * rust-lang.c (rust_extensions): Now const.
321 * p-lang.c (p_extensions): Now const.
322 * objc-lang.c (objc_extensions): Now const.
323 * nto-tdep.c (nto_thread_state_str): Now const.
324 * moxie-tdep.c (moxie_register_names): Now const.
325 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
326 Now const.
327 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
328 (mips_linux_reg_names): Now const.
329 (mips_gdbarch_init): Update.
330 * microblaze-tdep.c (microblaze_register_names): Now const.
331 * m68k-tdep.c (m68k_register_names): Now const.
332 * m32r-tdep.c (m32r_register_names): Now const.
333 * ia64-tdep.c (ia64_register_names): Now const.
334 * i386-tdep.h (struct gdbarch_tdep) <register_names,
335 ymmh_register_names, ymm16h_regnum, mpx_register_names,
336 k_register_names, zmmh_register_names, xmm_avx512_register_names,
337 ymm_avx512_register_names, pkeys_register_names>: Now const.
338 * i386-tdep.c (i386_register_names, i386_zmm_names)
339 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
340 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
341 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
342 * f-lang.c (f_extensions): Now const.
343 * d-lang.c (d_extensions): Now const.
344 * csky-tdep.c (csky_register_names): Now const.
345 * charset.c (default_charset_names, charset_enum): Now const.
346 (_initialize_charset): Update.
347 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
348 const.
349 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
350 (bsd_uthread_solib_loaded): Update.
351 (bsd_uthread_state): Now const.
352 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
353 (amd64_ymm_avx512_names, amd64_ymmh_names)
354 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
355 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
356 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
357 (amd64_dword_names): Now const.
358 * agent.c (can_use_agent_enum): Now const.
359 * ada-tasks.c (task_states, long_task_states): Now const.
360 * ada-lang.c (known_runtime_file_name_patterns)
361 (known_auxiliary_function_name_patterns, attribute_names)
362 (standard_exc, ada_extensions): Now const.
363
89806626
SM
3642020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
365
366 * bcache.h (struct bcache) <bcache>: Remove constructor.
367 <m_hash_function, m_compare_function>: Remove.
368 <~bcache>: Make virtual.
369 <compare>: Remove static method, introduce virtual method.
370 <default_hash>: Remove.
371 <hash>: New virtual method.
372 * bcache.c (bcache::expand_hash_table): Update.
373 (bcache::insert): Update.
374 (bcache::hash): New.
375 (bcache::compare): Update comment and parameter names.
376 * gdbtypes.c (types_deeply_equal): Update.
377 * psymtab.h (struct psymbol_bcache): New struct.
378 (class psymtab_storage) <psymtab_storage>: Make default.
379 <psymbol_cache>: Change type to psymbol_bcache.
380 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
381 (psymbol_hash): Change to...
382 (psymbol_bcache::hash): ... this.
383 (psymbol_compare): Change to...
384 (psymbol_bcache::compare): ... this.
385
677c92fe
SM
3862020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
387
388 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
389 checking for initial lwp.
390
3eba3a01
TT
3912020-09-14 Tom Tromey <tromey@adacore.com>
392
393 * m68k-tdep.c (m68k_extract_return_value): Use
394 pointer_result_regnum.
395 (m68k_store_return_value): Likewise.
396 (m68k_reg_struct_return_p): Handle vectors and arrays.
397 (m68k_return_value): Handle arrays.
398 (m68k_svr4_return_value): Fix single-element aggregate handling.
399 Handle long double. Adjust for embedded ABI.
400 (m68k_svr4_init_abi): Set pointer_result_regnum.
401 (m68k_embedded_init_abi): New function.
402 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
403 (m68k_osabi_sniffer): New function.
404 (_initialize_m68k_tdep): Register osabi sniffer.
405 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
406 member.
407
33f4dd48
SM
4082020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
409
410 * xml-support.c (xml_fetch_content_from_file): Replace xfree
411 with gdb::unique_xmalloc_ptr<char>.
412
8400a90d
SM
4132020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
414
415 * xml-support.h (xml_fetch_another): Change type to be a
416 function_view.
417 (xml_process_xincludes): Remove baton parameter.
418 (xml_fetch_content_from_file): Change baton parameter to
419 dirname.
420 * xml-support.c (struct xinclude_parsing_data)
421 <xinclude_parsing_data>: Remove baton parameter.
422 <fetcher_baton>: Remove.
423 (xinclude_start_include): Adjust.
424 (xml_process_xincludes): Adjust.
425 (xml_fetch_content_from_file): Replace baton parameter with
426 dirname.
427 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
428 (xml_init_syscalls_info): Use a lambda.
429 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
430 (file_read_description_xml): Use a lambda.
431 (fetch_available_features_from_target): Change baton parameter
432 to target_ops.
433 (target_read_description_xml): Use a lambda.
434 (target_fetch_description_xml): Use a lambda.
435 (string_read_description_xml): Update.
436
04f5bab2
SM
4372020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
438
439 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
440 uses with type::endianity_is_not_default.
441
db558e34
SM
4422020-09-14 Simon Marchi <simon.marchi@efficios.com>
443
444 * gdbtypes.h (struct type) <endianity_is_not_default,
445 set_endianity_is_not_default>: New methods.
446 (TYPE_ENDIANITY_NOT_DEFAULT): Use
447 type::endianity_is_not_default, change all write call sites to
448 use type::set_endianity_is_not_default.
449
22c4c60c
SM
4502020-09-14 Simon Marchi <simon.marchi@efficios.com>
451
452 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
453 uses with type::is_fixed_instance.
454
9cdd0d12
SM
4552020-09-14 Simon Marchi <simon.marchi@efficios.com>
456
457 * gdbtypes.h (struct type) <is_fixed_instance,
458 set_is_fixed_instance>: New methods.
459 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
460 write call sites to use type::set_is_fixed_instance.
461
0becda7a
SM
4622020-09-14 Simon Marchi <simon.marchi@efficios.com>
463
464 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
465 uses with type::is_gnu_ifunc.
466
03cc7249
SM
4672020-09-14 Simon Marchi <simon.marchi@efficios.com>
468
469 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
470 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
471 use type::set_is_gnu_ifunc.
472
3f46044c
SM
4732020-09-14 Simon Marchi <simon.marchi@efficios.com>
474
475 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
476 uses with type::stub_is_supported.
477
9baccff6
SM
4782020-09-14 Simon Marchi <simon.marchi@efficios.com>
479
480 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
481 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
482 use type::set_stub_is_supported.
483
bd63c870
SM
4842020-09-14 Simon Marchi <simon.marchi@efficios.com>
485
486 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
487 uses with type::is_vector.
488
2062087b
SM
4892020-09-14 Simon Marchi <simon.marchi@efficios.com>
490
491 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
492 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
493 use type::set_is_vector.
494
a409645d
SM
4952020-09-14 Simon Marchi <simon.marchi@efficios.com>
496
497 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
498 uses with type::has_varargs.
499
1d6286ed
SM
5002020-09-14 Simon Marchi <simon.marchi@efficios.com>
501
502 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
503 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
504 use type::set_has_varargs.
505
7f9f399b
SM
5062020-09-14 Simon Marchi <simon.marchi@efficios.com>
507
508 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
509 uses with type::is_prototyped.
510
27e69b7a
SM
5112020-09-14 Simon Marchi <simon.marchi@efficios.com>
512
513 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
514 New methods.
515 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
516 call sites to use type::set_is_prototyped.
517
d2183968
SM
5182020-09-14 Simon Marchi <simon.marchi@efficios.com>
519
520 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
521 uses with type::target_is_stub.
522
8f53807e
SM
5232020-09-14 Simon Marchi <simon.marchi@efficios.com>
524
525 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
526 New methods.
527 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
528 sites to use type::set_target_is_stub.
529
e46d3488
SM
5302020-09-14 Simon Marchi <simon.marchi@efficios.com>
531
532 * gdbtypes.h (TYPE_STUB): Remove, replace all
533 uses with type::is_stub.
534
b4b73759
SM
5352020-09-14 Simon Marchi <simon.marchi@efficios.com>
536
537 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
538 (TYPE_STUB): Use type::is_stub, change all write call sites to
539 use type::set_is_stub.
540
20ce4123
SM
5412020-09-14 Simon Marchi <simon.marchi@efficios.com>
542
543 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
544 type::has_no_signedness.
545
15152a54
SM
5462020-09-14 Simon Marchi <simon.marchi@efficios.com>
547
548 * gdbtypes.h (struct type) <has_no_signedness,
549 set_has_no_signedness>: New methods.
550 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
551 call sites to use type::set_has_no_signedness.
552
c6d940a9
SM
5532020-09-14 Simon Marchi <simon.marchi@efficios.com>
554
555 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
556 type::is_unsigned.
557
653223d3
SM
5582020-09-14 Simon Marchi <simon.marchi@efficios.com>
559
560 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
561 methods.
562 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
563 sites to use type::set_is_unsigned.
564
55ea94da
FH
5652020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
566 Adam Renquinha <arenquinha@cimeq.qc.ca>
567
568 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
569 pointer and stack frame offset when unwinding.
570
6791b117
PA
5712020-09-13 Pedro Alves <pedro@palves.net>
572
573 * NEWS: Document "-break-insert --qualified".
574 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
575
77f2120b
PA
5762020-09-13 Pedro Alves <pedro@palves.net>
577
578 * linespec.c (classify_mtype, compare_msyms): Delete.
579 (search_minsyms_for_name): Remove classification logic. Instead
580 filter out trampoline symbols if we also found an external
581 function of the same name.
582
ed6a896c
JB
5832020-09-13 Joel Brobecker <brobecker@adacore.com>
584
585 * NEWS: Create a new section for the next release branch.
586 Rename the section of the current branch, now that it has
587 been cut.
588
32aea73e
JB
5892020-09-13 Joel Brobecker <brobecker@adacore.com>
590
591 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
592 * version.in: Bump version to 11.0.50.DATE-git.
593
8087c3fa
JB
5942020-09-12 Joel Brobecker <brobecker@adacore.com>
595
596 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
597
2a67f09d
FW
5982020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
599 Felix Willgerodt <Felix.Willgerodt@intel.com>
600
601 * gdbarch.sh: Added bfloat16 type.
602 * gdbarch.c: Regenerated.
603 * gdbarch.h: Regenerated.
604 * gdbtypes.c (floatformats_bfloat16): New struct.
605 (gdbtypes_post_init): Add builtin_bfloat16.
606 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
607 (floatformats_bfloat16): New struct.
608 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
609 (i386_ymm_type): Add field "v16_bfloat16"
610 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
611 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
612 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
613 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
614 * features/i386/64bit-avx512.xml: Add bfloat16 type.
615 * features/i386/64bit-avx512.c: Regenerated.
616 * features/i386/64bit-sse.xml: Add bfloat16 type.
617 * features/i386/64bit-sse.c: Regenerated.
618
1347d111
FW
6192020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
620
621 * i386-tdep.c (i386_zmm_type): Fix field names.
622 (i386_ymm_type): Fix field names.
623
7a4e8e7d
TBA
6242020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
625
626 * breakpoint.c: Fix typo in the help message of the
627 "set breakpoint condition-evaluation" command.
628
cf4ac4be
KR
6292020-09-10 Kamil Rytarowski <n54@gmx.com>
630
631 * nbsd-nat.c: Include "nat/netbsd-nat.h".
632 * (nbsd_nat_target::pid_to_exec_file)
633 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
634 (nbsd_nat_target::post_startup_inferior)
635 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
636 (nbsd_add_threads): Switch local code to common gdb/nat functions.
637 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
638 * (nbsd_thread_lister): Remove.
639
f404573e
KR
6402020-09-10 Kamil Rytarowski <n54@gmx.com>
641
642 * fork-inferior.c (startup_inferior): Avoid double free.
643
1ccb2c17
KR
6442020-09-10 Kamil Rytarowski <n54@gmx.com>
645
646 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
647 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
648
feedfcc7
KR
6492020-09-10 Kamil Rytarowski <n54@gmx.com>
650
651 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
652 * netbsd-nat.c: Include <sys/ptrace.h>.
653 * (netbsd_nat::enable_proc_events): Add.
654
c489f8c6
KR
6552020-09-10 Kamil Rytarowski <n54@gmx.com>
656
657 * netbsd-nat.h: Include "gdbsupport/function-view.h".
658 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
659 (netbsd_nat::for_each_thread): Add.
660 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
661 "gdbsupport/common-debug.h".
662 * (netbsd_nat::netbsd_thread_lister)
663 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
664 (netbsd_nat::for_each_thread): Add.
665
330662f6
KR
6662020-09-10 Kamil Rytarowski <n54@gmx.com>
667
668 * netbsd-nat.h: Include <unistd.h>.
669 * (netbsd_nat::pid_to_exec_file): Add.
670 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
671 * (netbsd_nat::pid_to_exec_file) Add.
672
70b67307
KR
6732020-09-10 Kamil Rytarowski <n54@gmx.com>
674
675 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
676
99cf6da6
KR
6772020-09-10 Kamil Rytarowski <n54@gmx.com>
678
679 * netbsd-nat.h: New file.
680 * netbsd-nat.c: Likewise.
681
1b788fb6
TT
6822020-09-09 Tom Tromey <tromey@adacore.com>
683
684 * ada-lang.c (remove_extra_symbols): Do not increment when
685 removing an element
686
03b0a45f
TT
6872020-09-08 Tom Tromey <tromey@adacore.com>
688
689 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
690
3cae4447
TT
6912020-09-08 Tom Tromey <tromey@adacore.com>
692
693 PR win32/25302:
694 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
695 (gdb_bfd_init_data): New function.
696 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
697
7f08fd51
TBA
6982020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
699
700 * infrun.c (fetch_inferior_event): Use
701 `switch_to_target_no_thread` to switch the target.
702
3e6ff933
TT
7032020-09-06 Tom Tromey <tom@tromey.com>
704
705 * symfile.h (dwarf2_free_objfile): Don't declare.
706
e56798df
AKS
7072020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
708
709 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
710 to match 16 byte real/complex type generated by Flang compiler.
711
8f5c6526
TV
7122020-09-03 Tom de Vries <tdevries@suse.de>
713
714 PR breakpoint/26546
715 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
716 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
717
c5065df0
SM
7182020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
719
720 * maint.c (index_digits): New function.
721 (struct maint_print_section_data): Remove.
722 (print_bfd_section_info): Remove print_data parameter, add arg
723 and index_digits.
724 (print_objfile_section_info): Likewise.
725 (print_bfd_section_info_maybe_relocated): Likewise (plus
726 objfile).
727 (maintenance_info_sections): Adjust calls.
728
02c6f3f1
TT
7292020-09-02 Tom Tromey <tromey@adacore.com>
730
731 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
732 for null pointers.
733 (ada_varobj_adjust_for_child_access): Special-case null pointers.
734
ef5e5b0b
SM
7352020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
736
737 * bcache.h (struct bcache) <insert>: Change type of `added` to
738 pointer to bool.
739 * bcache.c (bcache::insert): Likewise.
740 * gdbtypes.c (check_types_worklist): Adjust.
741 * psymtab.c (add_psymbol_to_bcache): Adjust.
742
973695d6
KB
7432020-08-31 Kevin Buettner <kevinb@redhat.com>
744
745 * corelow.c (unordered_set): Include.
746 (class core_target): Add field 'm_core_unavailable_mappings'.
747 (core_target::build_file_mappings): Print only one warning
748 per inaccessible file. Add unavailable/broken mappings
749 to m_core_unavailable_mappings.
750 (core_target::xfer_partial): Call...
751 (core_target::xfer_memory_via_mappings): New method.
752
264fc0e2
SM
7532020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
754
755 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
756 type to bool.
757
2de01bdb
SM
7582020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
759
760 * dwarf2/read.c (struct field_info): Fix indentation.
761
f3bd50f1
SM
7622020-08-31 Simon Marchi <simon.marchi@efficios.com>
763
764 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
765 ordering in comment.
766 * frame.c (frame_id_eq): Fix indentation.
767
22b9b4b0
SL
7682020-08-31 Scott Linder <scott@scottlinder.com>
769 Simon Marchi <simon.marchi@efficios.com>
770
771 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
772 inline frame ids in outer frame.
773
84154d16
SM
7742020-08-31 Simon Marchi <simon.marchi@efficios.com>
775
776 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
777 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
778 (outer_frame_id): Use FID_STACK_OUTER instead of
779 FID_STACK_INVALID.
780 (frame_id_p): Don't check for outer_frame_id.
781
8efaf6b3
SM
7822020-08-31 Simon Marchi <simon.marchi@efficios.com>
783
784 * frame-unwind.c (frame_unwind_got_optimized): Don't set
785 regnum/frame in value. Call allocate_value_lazy.
786 * frame.c (frame_unwind_register_value): Use
787 val_print_not_saved.
788
fe1fe7ea
SM
7892020-08-31 Simon Marchi <simon.marchi@efficios.com>
790
791 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
792
f7c7700d
PA
7932020-08-29 Pedro Alves <pedro@palves.net>
794
795 * progspace.c (print_program_space): Use all_inferiors. Switch to
796 the inferior before calling target_pid_to_str.
797
e0814aae
TT
7982020-08-28 Tom Tromey <tom@tromey.com>
799
800 * xcoffread.c (xcoff_end_psymtab): Update comment.
801 * dbxread.c (dbx_end_psymtab): Update comment.
802
626d2320
TV
8032020-08-28 Tom de Vries <tdevries@suse.de>
804
805 PR breakpoint/26544
806 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
807 event_location.
808 (create_breakpoint): Same.
809 (base_breakpoint_decode_location): Same.
810 (bkpt_create_sals_from_location): Same.
811 (bkpt_decode_location): Same.
812 (bkpt_probe_create_sals_from_location): Same.
813 (bkpt_probe_decode_location): Same.
814 (tracepoint_create_sals_from_location): Same.
815 (tracepoint_decode_location): Same.
816 (tracepoint_probe_decode_location): Same.
817 (strace_marker_create_sals_from_location): Same.
818 (strace_marker_decode_location): Same.
819 (create_sals_from_location_default): Same.
820 (decode_location_default): Same.
821 * breakpoint.h (struct breakpoint_ops): Same.
822 (create_breakpoint): Same.
823 * linespec.h (decode_line_full): Same.
824 * linespec.c (decode_line_full): Same. Throw error if
825 result.size () == 0.
826
df631783
PA
8272020-08-27 Pedro Alves <pedro@palves.net>
828
829 PR gdb/26524
830 * breakpoint.c (until_break_fsm) <location_breakpoint,
831 caller_breakpoint>: Delete fields.
832 <breakpoints>: New field.
833 <until_break_fsm>: Adjust to save a breakpoint vector instead of
834 two individual breakpoints.
835 (until_break_fsm::should_stop): Loop over breakpoints in the
836 breakpoint vector.
837 (until_break_fsm::clean_up): Adjust to clear the breakpoints
838 vector.
839 (until_break_command): Handle location expanding into multiple
840 sals.
841
b2b38aa4
PA
8422020-08-27 Pedro Alves <pedro@palves.net>
843
844 PR gdb/26523
845 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
846 bp_until breakpoints user-specified locations. Update intro
847 comment.
848
b886559f
SM
8492020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
850
851 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
852 gdb_bfd_sections): New.
853 * maint.c (print_bfd_section_info): Change param type to
854 maint_print_section_data.
855 (print_objfile_section_info): Likewise.
856 (print_bfd_section_info_maybe_relocated): Likewise.
857 (maintenance_info_sections): Use gdb_bfd_sections.
858
4c6e63bf
SV
8592020-08-25 Shahab Vahedi <shahab@synopsys.com>
860
861 * MAINTAINERS: Add ARC target and maintainer.
862
8d7f0635
AK
8632020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
864
865 * configure.tgt: ARC support for GNU/Linux.
866 * Makefile.in (ALL_TARGET_OBJS): Likewise.
867 * arc-linux-tdep.c: New file.
868 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
869 * arc-tdep.c (arc_write_pc): Use it.
870
fdd8731b
SV
8712020-08-25 Shahab Vahedi <shahab@synopsys.com>
872
873 * arc-tdep.c (arc_check_for_hardware_loop): New.
874 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
875
22459524
SV
8762020-08-25 Shahab Vahedi <shahab@synopsys.com>
877
878 * arc-tdep.h: Include "gdbarch.h".
879
995d3a19
SV
8802020-08-25 Shahab Vahedi <shahab@synopsys.com>
881
882 * arch/arc.h
883 (arc_gdbarch_features): New class to stir the selection of target XML.
884 (arc_create_target_description): Use FEATURES to choose XML target.
885 (arc_lookup_target_description): Use arc_create_target_description
886 to create _new_ target descriptions or return the already created
887 ones if the FEATURES is the same.
888 * arch/arc.c: Implementation of prototypes described above.
889 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
890 (arc_gdbarch_features_init): Initialize the FEATURES struct.
891 * arc-tdep.c (*_feature_name): Make feature names consistent.
892 (arc_register_feature): A new struct to hold information about
893 registers of a particular target/feature.
894 (arc_check_tdesc_feature): Check if XML provides registers in
895 compliance with ARC_REGISTER_FEATURE structs.
896 (arc_update_acc_reg_names): Add aliases for r58 and r59.
897 (determine_*_reg_feature_set): Which feature name to look for.
898 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
899 (mach_type_to_arc_isa): Convert from a set of binutils machine types
900 to expected ISA enums to be used in arc_gdbarch_features structs.
901 * features/Makefile (FEATURE_XMLFILES): Add new files.
902 * gdb/features/arc/v1-aux.c: New file.
903 * gdb/features/arc/v1-aux.xml: Likewise.
904 * gdb/features/arc/v1-core.c: Likewise.
905 * gdb/features/arc/v1-core.xml: Likewise.
906 * gdb/features/arc/v2-aux.c: Likewise.
907 * gdb/features/arc/v2-aux.xml: Likewise.
908 * gdb/features/arc/v2-core.c: Likewise.
909 * gdb/features/arc/v2-core.xml: Likewise.
910 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
911
3945d2d7
GM
9122020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
913 Andrew Burgess <andrew.burgess@embecosm.com>
914
915 PR m2/26372
fc5d6901 916 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
917 an assert. Remove single element array indexing pattern as the
918 MULTI_SUBSCRIPT support will handle this case too.
919
2677f2d3
SM
9202020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
921
922 * value.h (valprint_check_validity): Move declaration from
923 here...
924 * valprint.h (valprint_check_validity): ... to here.
925
c426fddb
SM
9262020-08-24 Simon Marchi <simon.marchi@efficios.com>
927
928 * debug.h: New file.
929 * debug.c (debug_prefixed_vprintf): New function.
930 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
931 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
932
1eb8556f
SM
9332020-08-24 Simon Marchi <simon.marchi@efficios.com>
934
935 * infrun.h (infrun_debug_printf_1): New function declaration.
936 (infrun_debug_printf): New macro.
937 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
938 throughout.
939 (infrun_debug_printf): New function.
940 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
941 (handle_jit_event): Likewise.
942
b8fff44e
MW
9432020-08-21 Mark Wielaard <mark@klomp.org>
944
945 * ada-lex.l: Extend register warnings diagnostics comment for g++.
946
d19c3068
SM
9472020-08-22 Simon Marchi <simon.marchi@efficios.com>
948
949 * frame.c (enum class frame_id_status): New.
950 (struct frame_info) <this_id::p>: Change type to frame_id_status.
951 (fprintf_frame): Update.
952 (compute_frame_id): Set frame id status to "computing" on entry.
953 Set it back to "not_computed" on failure and to "computed" on
954 success.
955 (get_frame_id): Assert the frame id is not being computed.
956 (create_sentinel_frame): Use frame_id_status::COMPUTED.
957 (create_new_frame): Likewise.
958 (frame_cleanup_after_sniffer): Update assert.
959
b70e516e
SM
9602020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
961
962 * regcache.c (pid_ptid_regcache_map): New type.
963 (target_ptid_regcache_map): Remove.
964 (target_pid_ptid_regcache_map): New type.
965 (regcaches): Change type to target_pid_ptid_regcache_map.
966 (get_thread_arch_aspace_regcache): Update.
967 (regcache_thread_ptid_changed): Update, handle pid-like ptid
968 case.
969 (regcaches_size): Update.
970 (regcache_count): Update.
971 (registers_changed_ptid_target_pid_test): New.
972 (_initialize_regcache): Register new test.
973
cdd9148a
SM
9742020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
975
976 * regcache.c (regcache_count): New.
977 (struct regcache_test_data): New.
978 (regcache_test_data_up): New.
979 (populate_regcaches_for_test): New.
980 (regcaches_test): Remove.
981 (get_thread_arch_aspace_regcache_test): New.
982 (registers_changed_ptid_all_test): New.
983 (registers_changed_ptid_target_test): New.
984 (registers_changed_ptid_target_ptid_test): New.
985 (regcache_thread_ptid_changed): Remove regcache_count lambda.
986 (_initialize_regcache): Register new tests.
987
dd125343
SM
9882020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
989
990 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
991 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
992 gdbarch and aspace parameter. Use current inferior's aspace.
993 Validate regcache's arch value.
994 (regcaches_test): Update.
995
3ee93972
SM
9962020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
997
998 * regcache.c (regcaches_test): Call registers_changed.
999
33bf4c5c
TBA
10002020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1001
1002 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1003
c2fd7fae
AKS
10042020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1005
1006 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1007 to find the end of prologue for flang compiled binaries.
1008 * arm-tdep.c (arm_skip_prologue): Likewise.
1009 * i386-tdep.c (i386_skip_prologue): Likewise.
1010 * producer.c (producer_is_llvm): New function.
1011 (producer_parsing_tests): Added new tests for clang/flang.
1012 * producer.h (producer_is_llvm): New declaration.
1013
9327494e
SM
10142020-08-18 Simon Marchi <simon.marchi@efficios.com>
1015
1016 * linux-nat.c (linux_nat_debug_printf): New function.
1017 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1018
d138725a
AM
10192020-08-18 Aaron Merey <amerey@redhat.com>
1020
1021 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1022 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1023 (CLIBS): Add DEBUGINFOD_LIBS.
1024
f9b11e6b
ST
10252020-08-17 Sergei Trofimovich <siarheit@google.com>
1026
1027 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1028 'gdbarch_num_regs'.
1029
3ae7ab99
TT
10302020-08-17 Tom Tromey <tromey@adacore.com>
1031
1032 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1033 ada_get_decoded_value returns NULL.
1034
b017825f
TT
10352020-08-17 Tom Tromey <tromey@adacore.com>
1036
1037 * python/py-inferior.c (infpy_search_memory): Use
1038 gdb_py_object_from_ulongest.
1039 * python/py-infevents.c (create_inferior_call_event_object)
1040 (create_memory_changed_event_object): Use
1041 gdb_py_object_from_ulongest.
1042 * python/py-linetable.c (ltpy_entry_get_pc): Use
1043 gdb_py_object_from_ulongest.
1044
7635cf79
SM
10452020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1046
1047 * loc.c (class symbol_needs_eval_context): Fix indentation.
1048
f54be24b
SM
10492020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1050
1051 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1052 bool.
1053
53d5a2a5
TV
10542020-08-17 Tom de Vries <tdevries@suse.de>
1055
1056 PR gdb/26393
1057 * gdbtypes.c (dump_dynamic_prop): New function.
1058 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1059
547ce8f0
TV
10602020-08-15 Tom de Vries <tdevries@suse.de>
1061
1062 PR backtrace/26390
1063 * stack.c (print_frame_args): Temporarily set the selected
1064 frame to FRAME while printing the frame's arguments.
1065
6ea815e7
PFC
10662020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1067
1068 PR breakpoints/26385
1069 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1070 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1071
6e562fa3
PFC
10722020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1073
1074 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1075 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1076 and >= to check return value instead of == -1 and != -1.
1077
d369b608
SM
10782020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
1079
1080 * utils.h (class gdb_argv) <as_array_view>: New method.
1081 * utils.c (gdb_argv_as_array_view_test): New.
1082 (_initialize_utils): Register selftest.
1083 * maint.c (maintenance_selftest): Use the new method.
1084
b31488a3
KR
10852020-08-13 Kamil Rytarowski <n54@gmx.com>
1086
1087 * target.h (supports_dumpcore, dumpcore): New
1088 function declarations.
1089 * target.c (supports_dumpcore, dumpcore): New
1090 functions.
1091 * target-delegates.c: Rebuild.
1092 * gcore.c (gcore_command): Use target_supports_dumpcore ()
1093 and target_dumpcore ().
1094
002a3166
AM
10952020-08-13 Aaron Merey <amerey@redhat.com>
1096
1097 * debuginfod-support.c: Replace global variables with user_data.
1098
ece5bc8a
SM
10992020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
1100
1101 * maint.c (maintenance_selftest): Split args and pass array_view
1102 to run_tests.
1103
6d8a0a5e
LM
11042020-08-12 Luis Machado <luis.machado@linaro.org>
1105
1106 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
1107 type's length.
1108 Use %s and pulongest to print the length.
1109
7cf663a9
PA
11102020-08-12 Pedro Alves <palves@redhat.com>
1111
1112 * NEWS: Move "Multi-target debugging support" item to the
1113 "Changes since GDB 9" section.
1114
27c7b875
PA
11152020-08-12 Pedro Alves <palves@redhat.com>
1116
1117 PR gdb/26336
1118 * progspace.c (program_space::remove_objfile): Invalidate the
1119 frame cache.
1120
1796a2a1
TV
11212020-08-11 Tom de Vries <tdevries@suse.de>
1122
1123 * MAINTAINERS: Mark ms1 as deleted.
1124
f8e3fe0d
LM
11252020-08-10 Luis Machado <luis.machado@linaro.org>
1126
1127 PR gdb/26310
1128
1129 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
1130 act accordingly.
1131 (aarch64_analyze_prologue_test): Add more unit tests to exercise
1132 movz/str/stur/stp skipping behavior.
1133
cc308722
LM
11342020-08-10 Luis Machado <luis.machado@linaro.org>
1135
1136 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
1137 struct user_sve_header instead of struct sve_context.
1138
041d9819
SM
11392020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
1140
1141 * read.h (dwarf2_fetch_die_loc_sect_off,
1142 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
1143 `void *` parameter with function_view.
1144 * read.c (dwarf2_fetch_die_loc_sect_off,
1145 dwarf2_fetch_die_loc_cu_off): Likewise.
1146 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
1147 (per_cu_dwarf_call): Adjust.
1148 (get_frame_address_in_block_wrapper): Remove.
1149 (indirect_synthetic_pointer): Adjust.
1150 (get_ax_pc): Remove.
1151 (dwarf2_compile_expr_to_ax): Adjust.
1152
38f8aa06
TV
11532020-08-08 Tom de Vries <tdevries@suse.de>
1154
1155 PR build/26344
1156 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
1157 constructor.
1158 * regcache.c (get_thread_arch_aspace_regcache): Same.
1159
a52b3ae2
TT
11602020-08-07 Tom Tromey <tromey@adacore.com>
1161
1162 * ravenscar-thread.c
1163 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1164 New method.
1165 (ravenscar_thread_target::wait): Check
1166 runtime_initialized.
1167 (ravenscar_thread_target::prepare_to_store)
1168 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1169 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1170 (ravenscar_thread_target::stopped_by_watchpoint)
1171 (ravenscar_thread_target::stopped_data_address)
1172 (ravenscar_thread_target::core_of_thread): Use
1173 scoped_restore_current_thread and
1174 set_base_thread_from_ravenscar_task.
1175
0e29517d
TT
11762020-08-07 Tom Tromey <tromey@adacore.com>
1177
1178 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1179
592f9bd7
TT
11802020-08-07 Tom Tromey <tromey@adacore.com>
1181
1182 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1183 update_inferior_ptid before update_thread_list.
1184 (temporarily_change_regcache_ptid): New class.
1185 (ravenscar_thread_target::fetch_registers)
1186 (ravenscar_thread_target::store_registers)
1187 (ravenscar_thread_target::prepare_to_store): Use base thread when
1188 forwarding operation.
1189
39e2018a
TT
11902020-08-07 Tom Tromey <tromey@adacore.com>
1191
1192 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1193 "is_pid" case.
1194
2080266b
TT
11952020-08-07 Tom Tromey <tromey@adacore.com>
1196
1197 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1198 New methods.
1199 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1200 first.
1201 (ravenscar_thread_target::add_thread): Rename from
1202 ravenscar_add_thread.
1203 (ravenscar_thread_target::update_thread_list): Use a lambda.
1204 (ravenscar_thread_target::xfer_partial): New method.
1205
78c02f21
TT
12062020-08-07 Tom Tromey <tromey@adacore.com>
1207
1208 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1209 gdb::function_view.
1210 (iterate_over_live_ada_tasks): Change type of argument.
1211 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1212 of argument.
1213
d5d833af
TT
12142020-08-07 Tom Tromey <tromey@adacore.com>
1215
1216 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1217 Remove.
1218 (ravenscar_thread_target::extra_thread_info): Remove.
1219 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1220 defer to target beneath for non-Ravenscar threads.
1221
a8ac85bb
TT
12222020-08-07 Tom Tromey <tromey@adacore.com>
1223
1224 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1225 get_base_thread_from_ravenscar_task>: Now methods.
1226 <m_cpu_map>: New member.
1227 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1228 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1229 (ravenscar_thread_target::task_is_currently_active): Update.
1230 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1231 Now a method.
1232 (ravenscar_thread_target::add_active_thread): Put initial thread
1233 into the m_cpu_map.
1234
550ab58d
TT
12352020-08-07 Tom Tromey <tromey@adacore.com>
1236
1237 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1238 event_ptid.
1239
e9546579
TT
12402020-08-07 Tom Tromey <tromey@adacore.com>
1241
1242 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1243 runtime_initialized.
1244
3d4470e5
TT
12452020-08-07 Tom Tromey <tromey@adacore.com>
1246
1247 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1248 add_active_thread.
1249 (ravenscar_thread_target::add_active_thread): Now public.
1250 (ravenscar_inferior_created): Call add_active_thread after pushing
1251 the target.
1252
888bdb2b
SM
12532020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1254
1255 * regcache.c (ptid_regcache_map): New type.
1256 (target_ptid_regcache_map): New type.
1257 (regcaches): Change type to target_ptid_regcache_map.
1258 (get_thread_arch_aspace_regcache): Update to regcaches' new
1259 type.
1260 (regcache_thread_ptid_changed): Likewise.
1261 (registers_changed_ptid): Likewise.
1262 (regcaches_size): Likewise.
1263 (regcaches_test): Update.
1264 (regcache_thread_ptid_changed): Update.
1265 * regcache.h (regcache_up): New type.
1266 * gdbsupport/ptid.h (hash_ptid): New struct.
1267
b161a60d
SM
12682020-08-07 Simon Marchi <simon.marchi@efficios.com>
1269
1270 * observable.h (thread_ptid_changed): Add parameter
1271 `process_stratum_target *`.
1272 * infrun.c (infrun_thread_ptid_changed): Add parameter
1273 `process_stratum_target *` and use it.
1274 (selftests): New namespace.
1275 (infrun_thread_ptid_changed): New function.
1276 (_initialize_infrun): Register selftest.
1277 * regcache.c (regcache_thread_ptid_changed): Add parameter
1278 `process_stratum_target *` and use it.
1279 (regcache_thread_ptid_changed): New function.
1280 (_initialize_regcache): Register selftest.
1281 * thread.c (thread_change_ptid): Pass target to
1282 thread_ptid_changed observable.
1283
d2854d8d
CT
12842020-08-06 Caroline Tice <cmtice@google.com>
1285
fe4c3d43
SM
1286 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1287 (struct dwp_sections): Update field comments. Add loclists and
1288 rnglists fields.
1289 (struct virtual_v2_dwo_sections): Rename struct to
1290 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1291 size & offset fields for loclists and rnglists.
1292 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1293 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1294 skipping dummy type units.
1295 (create_dwp_hash_table): Update the large comment above the function to
1296 discuss Version 5 DWP files as well, with references. Update all the
1297 version checks in the function to check for version 5 as well. Add new
1298 section at the end to create dwp hash table for version 5.
1299 (create_dwp_v2_section): Rename function to
1300 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1301 Add V5 to error message text.
1302 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1303 into calls to create_dwp_v2_or_v5_section.
1304 (create_dwo_unit_in_dwp_v5): New function.
1305 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1306 check for version2; add else clause to handle version 5.
1307 (open_and_init_dwo_file): Add code to check dwarf version & only call
1308 create_debug_types_hash_table (with sections.types) if version is not 5;
1309 else call create_debug_type_hash_table, with sections.info.
1310 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1311 version 5.
1312 (dwarf2_locate_v5_dwp_sections): New function.
1313 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1314 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 1315
159ed7d9
SM
13162020-08-06 Simon Marchi <simon.marchi@efficios.com>
1317
1318 * regcache.h (class regcache): Remove friend
1319 registers_changed_ptid.
1320 <regcache_thread_ptid_changed>: Remove.
1321 <regcaches>: Remove.
1322 * regcache.c (regcache::regcaches): Rename to...
1323 (regcaches): ... this. Make static.
1324 (get_thread_arch_aspace_regcache): Update.
1325 (regcache::regcache_thread_ptid_changed): Rename to...
1326 (regcache_thread_ptid_changed): ... this. Update.
1327 (class regcache_access): Remove.
1328 (regcaches_test): Update.
1329 (_initialize_regcache): Update.
1330 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1331 <forward_list>.
1332
174981ae
SM
13332020-08-06 Simon Marchi <simon.marchi@efficios.com>
1334
1335 * regcache.h (class regcache) <current_regcache>: Rename to...
1336 <regcaches>: ... this. Move doc here.
1337 * regcache.c (regcache::current_regcache) Rename to...
1338 (regcache::regcaches): ... this. Move doc to header.
1339 (get_thread_arch_aspace_regcache): Update.
1340 (regcache::regcache_thread_ptid_changed): Update.
1341 (registers_changed_ptid): Update.
1342 (class regcache_access) <current_regcache_size>: Rename to...
1343 <regcaches_size>: ... this.
1344 (current_regcache_test): Rename to...
1345 (regcaches_test): ... this.
1346 (_initialize_regcache): Update.
1347
ed908db6
VC
13482020-08-06 Victor Collod <vcollod@nvidia.com>
1349
1350 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1351
b5582ab7
KB
13522020-08-05 Kevin Buettner <kevinb@redhat.com>
1353
1354 * corelow.c (core_target::build_file_mappings): Don't output
1355 null pathname in warning.
1356
ea946b86
SM
13572020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1358
1359 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1360 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1361 gdb.dwarf2/dw2-single-line-discriminators.exp,
1362 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1363
57d02173
TT
13642020-08-05 Tom Tromey <tromey@adacore.com>
1365
1366 PR rust/26197:
1367 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1368 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1369 Fix off-by-one and type size errors in ordinary case.
1370
5555c86d
TV
13712020-08-05 Tom de Vries <tdevries@suse.de>
1372
1373 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1374 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1375
97916bfe
SM
13762020-08-04 Simon Marchi <simon.marchi@efficios.com>
1377
1378 * frame.h (frame_id_p): Return bool.
1379 (frame_id_artificial_p): Return bool.
1380 (frame_id_eq): Return bool.
1381 (has_stack_frames): Return bool.
1382 (get_selected_frame): Fix typo in comment.
1383 (get_frame_pc_if_available): Return bool.
1384 (get_frame_address_in_block_if_available): Return bool.
1385 (get_frame_func_if_available): Return bool.
1386 (read_frame_register_unsigned): Return bool.
1387 (get_frame_register_bytes): Return bool.
1388 (safe_frame_unwind_memory): Return bool.
1389 (deprecated_frame_register_read): Return bool.
1390 (frame_unwinder_is): Return bool.
1391 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1392 bool.
1393 <this_id::p>: Likewise.
1394 <prev_p>: Likewise.
1395 (frame_stash_add): Return bool.
1396 (get_frame_id): Use bool.
1397 (frame_id_build_special) Use bool.
1398 (frame_id_build_unavailable_stack): Use bool.
1399 (frame_id_build): Use bool.
1400 (frame_id_p): Return bool, use true/false instead of 1/0.
1401 (frame_id_artificial_p): Likewise.
1402 (frame_id_eq): Likewise.
1403 (frame_id_inner): Likewise.
1404 (get_frame_func_if_available): Likewise.
1405 (read_frame_register_unsigned): Likewise.
1406 (deprecated_frame_register_read): Likewise.
1407 (get_frame_register_bytes): Likewise.
1408 (has_stack_frames): Likewise.
1409 (inside_main_func): Likewise.
1410 (inside_entry_func): Likewise.
1411 (get_frame_pc_if_available): Likewise.
1412 (get_frame_address_in_block_if_available): Likewise.
1413 (frame_unwinder_is): Likewise.
1414 (safe_frame_unwind_memory): Likewise.
1415 (frame_unwind_arch): Likewise.
1416
fedfee88
SM
14172020-08-04 Simon Marchi <simon.marchi@efficios.com>
1418
1419 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1420 type to cached_copy_status.
1421 (fprintf_frame): Adjust.
1422 (get_frame_func_if_available): Adjust.
1423 (frame_cleanup_after_sniffer): Adjust.
1424
6cfa9b59
MW
14252020-08-04 Mark Wielaard <mark@klomp.org>
1426
1427 * MAINTAINERS (Write After Approval): Update email address.
1428
66d6346b
SM
14292020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1430
1431 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1432 dynamic_prop::const_val.
1433
8a6d5e35
SM
14342020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1435
1436 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1437 dynamic_prop::kind.
1438
51d6067d
SM
14392020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1440
1441 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1442
b26e2ae7
JM
14432020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1444
1445 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1446
39791af2
JM
14472020-08-04 Weimin Pan <weimin.pan@oracle.com>
1448 Jose E. Marchesi <jose.marchesi@oracle.com>
1449
1450 * configure.tgt: Add entry for bpf-*-*.
1451 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1452 (ALLDEPFILES): Add bpf-tdep.c.
1453 * bpf-tdep.c: New file.
1454 * MAINTAINERS: Add bpf target and maintainer.
1455 * NEWS: Mention the support for the new target.
1456
521894aa
TV
14572020-08-04 Tom de Vries <tdevries@suse.de>
1458
1459 PR symtab/23270
1460 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1461 Error.
1462
5d6356e9
JB
14632020-08-03 John Baldwin <jhb@FreeBSD.org>
1464
1465 * syscalls/freebsd.xml: Regenerate.
1466
0cf82b81
JB
14672020-08-03 John Baldwin <jhb@FreeBSD.org>
1468
1469 * syscalls/update-freebsd.sh: Fix usage and year range.
1470
8f34b746
TV
14712020-08-03 Tom de Vries <tdevries@suse.de>
1472
1473 PR symtab/26333
1474 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1475 DW_LNE_lo_user/DW_LNE_hi_user range.
1476
5e500d33
SM
14772020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1478
1479 PR ada/26318
1480 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1481 kind.
1482
78319c15
TBA
14832020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1484
1485 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1486
4c55e970
TBA
14872020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1488
1489 * breakpoint.c (set_breakpoint_condition): Update the condition
1490 expressions after checking that the input condition string parses
1491 successfully and does not contain junk at the end.
1492
1e620590
TBA
14932020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1494
1495 * breakpoint.c (set_breakpoint_condition): Update the
1496 condition string after parsing the new condition successfully.
1497
c8693053
RO
14982020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1499
1500 * proc-api.c (_STRUCTURED_PROC): Don't define.
1501 * proc-events.c: Likewise.
1502 * proc-flags.c: Likewise.
1503 * proc-why.c: Likewise.
1504 * procfs.c: Likewise.
1505
1506 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1507 * configure, config.in: Regenerate.
1508
5a99adb8
TV
15092020-07-30 Tom de Vries <tdevries@suse.de>
1510
1511 PR build/26320
1512 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1513 m_red/m_green/m_blue in a union.
1514
8ba83e91
TV
15152020-07-29 Tom de Vries <tdevries@suse.de>
1516
1517 PR tdep/26280
1518 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1519
f75a0693
AB
15202020-07-28 Tom Tromey <tromey@adacore.com>
1521
1522 PR symtab/26270:
1523 * symtab.h (find_pc_partial_function_sym): Declare.
1524 * cli/cli-cmds.c (disassemble_command): Use
1525 find_pc_partial_function_sym. Check asm_demangle.
1526 * blockframe.c (cache_pc_function_sym): New global.
1527 (cache_pc_function_name): Remove.
1528 (clear_pc_function_cache): Update.
1529 (find_pc_partial_function_sym): New function, from
1530 find_pc_partial_function.
1531 (find_pc_partial_function): Rewrite using
1532 find_pc_partial_function_sym.
1533
16f3242c
TT
15342020-07-28 Tom Tromey <tromey@adacore.com>
1535
1536 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1537 help. Add usage.
1538
4888741a
TT
15392020-07-28 Tom Tromey <tromey@adacore.com>
1540
1541 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1542 <DW_OP_GNU_variable_value>: Cast to address type.
1543
4d46f402
KR
15442020-07-28 Kamil Rytarowski <n54@gmx.com>
1545
1546 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1547 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1548 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1549 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1550 (nbsd_get_siginfo_type): New.
1551 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1552 (_initialize_nbsd_tdep): New.
1553
d70f978b
L
15542020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1555
1556 PR binutils/26301
1557 * configure: Regenerated.
1558
377170fa
L
15592020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1560
1561 PR binutils/26301
1562 * configure: Regenerated.
1563
43d5901d
AB
15642020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1565
1566 * python/py-frame.c: Remove 'user-regs.h' include.
1567 (frapy_read_register): Rewrite to make use of
1568 gdbpy_parse_register_id.
1569 * python/py-registers.c (gdbpy_parse_register_id): New function,
1570 moved here from python/py-unwind.c. Updated the return type, and
1571 also accepts register descriptor objects.
1572 * python/py-unwind.c: Remove 'user-regs.h' include.
1573 (pyuw_parse_register_id): Moved to python/py-registers.c.
1574 (unwind_infopy_add_saved_register): Update to use
1575 gdbpy_parse_register_id.
1576 (pending_framepy_read_register): Likewise.
1577 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1578
14fa8fb3
AB
15792020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1580
1581 * python/py-registers.c: Add 'user-regs.h' include.
1582 (register_descriptor_iter_find): New function.
1583 (register_descriptor_iterator_object_methods): New static global
1584 methods array.
1585 (register_descriptor_iterator_object_type): Add pointer to methods
1586 array.
1587
ddce1758
JB
15882020-07-27 John Baldwin <jhb@FreeBSD.org>
1589
1590 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1591 for all architectures on FreeBSD 11.3 and later.
1592
a4089f52
TT
15932020-07-27 Tom Tromey <tromey@adacore.com>
1594
1595 * gcore.h (load_corefile): Don't declare.
1596
95420d30
TV
15972020-07-27 Tom de Vries <tdevries@suse.de>
1598
1599 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1600 * config.in: Regenerate.
1601 * configure: Regenerate.
1602
05a6b8c2
EZ
16032020-07-26 Eli Zaretskii <eliz@gnu.org>
1604
1605 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1606 ws2tcpip.h. When checking whether socklen_t type is defined, use
1607 ws2tcpip.h if it is available and sys/socket.h isn't.
1608 * configure: Regenerate.
1609 * config.in: Regenerate.
1610
e79eb02f
AB
16112020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1612
1613 PR fortran/23051
1614 PR fortran/26139
1615 * valops.c (value_ind): Pass address to
1616 readjust_indirect_value_type.
1617 * value.c (readjust_indirect_value_type): Make parameter
1618 non-const, and add extra address parameter. Resolve original type
1619 before using it.
1620 * value.h (readjust_indirect_value_type): Update function
1621 signature and comment.
1622
876518dd
TV
16232020-07-25 Tom de Vries <tdevries@suse.de>
1624
1625 PR symtab/26243
1626 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1627 entries.
1628
f6720b1c
AM
16292020-07-24 Aaron Merey <amerey@redhat.com>
1630
1631 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1632 * configure: Rebuild.
1633
513487e1
KB
16342020-07-23 Kevin Buettner <kevinb@redhat.com>
1635
1636 PR corefiles/26294
1637 * corelow.c (_initialize_corelow): Add period to help text
1638 for "maintenance print core-file-backed-mappings".
1639
e7bc9db8
PA
16402020-07-23 Pedro Alves <pedro@palves.net>
1641
1642 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1643 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1644 meanwhile.
1645 * frame.c (frame_cache_generation, get_frame_cache_generation):
1646 New.
1647 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1648 (get_prev_frame_if_no_cycle): On exception, don't touch
1649 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1650 * frame.h (get_frame_cache_generation): Declare.
1651
90fcc466
TV
16522020-07-23 Tom de Vries <tdevries@suse.de>
1653
1654 PR tui/26282
1655 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1656 New default constructor.
1657
78344df7
AB
16582020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1659
1660 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1661 exclude non-statement entries.
1662
b089853a
KB
16632020-07-22 Kevin Buettner <kevinb@redhat.com>
1664
1665 * NEWS (New commands): Mention new command
1666 "maintenance print core-file-backed-mappings".
1667
09c2f5d4
KB
16682020-07-22 Kevin Buettner <kevinb@redhat.com>
1669
1670 * corelow.c (gdbcmd.h): Include.
1671 (core_target::info_proc_mappings): New method.
1672 (get_current_core_target): New function.
1673 (maintenance_print_core_file_backed_mappings): New function.
1674 (_initialize_corelow): Add core-file-backed-mappings to
1675 "maint print" commands.
1676
9c5ec5c2 16772020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1678
9c5ec5c2
KB
1679 * linux-tdep.c (dump_note_entry_p): New function.
1680 (linux_dump_mapping_p_ftype): New typedef.
1681 (linux_find_memory_regions_full): Add new parameter,
1682 should_dump_mapping_p.
1683 (linux_find_memory_regions): Adjust call to
1684 linux_find_memory_regions_full.
1685 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1686 call to linux_find_memory_regions_full.
1687
db082f59
KB
16882020-07-22 Kevin Buettner <kevinb@redhat.com>
1689
1690 * corelow.c (solist.h, unordered_map): Include.
1691 (class core_target): Add field m_core_file_mappings and
1692 method build_file_mappings.
1693 (core_target::core_target): Call build_file_mappings.
1694 (core_target::~core_target): Free memory associated with
1695 m_core_file_mappings.
1696 (core_target::build_file_mappings): New method.
1697 (core_target::xfer_partial): Use m_core_file_mappings
1698 for memory transfers.
1699 * linux-tdep.c (linux_read_core_file_mappings): New
1700 function.
1701 (linux_core_info_proc_mappings): Rewrite to use
1702 linux_read_core_file_mappings.
1703 (linux_init_abi): Register linux_read_core_file_mappings.
1704
7e183d27
KB
17052020-07-22 Kevin Buettner <kevinb@redhat.com>
1706
1707 * arch-utils.c (default_read_core_file_mappings): New function.
1708 * arch-utils.c (default_read_core_file_mappings): Declare.
1709 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1710 * gdbarch.h, gdbarch.c: Regenerate.
1711
2735d421
KB
17122020-07-22 Kevin Buettner <kevinb@redhat.com>
1713
1714 PR corefiles/25631
1715 * corelow.c (core_target:xfer_partial): Revise
1716 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1717 case after first checking the stratum beneath the core
1718 target.
1719 (has_all_memory): Return true.
1720 * target.c (raw_memory_xfer_partial): Revise comment
1721 regarding use of has_all_memory.
1722
e56cb451
KB
17232020-07-22 Kevin Buettner <kevinb@redhat.com>
1724
1725 * exec.h (section_table_xfer_memory): Revise declaration,
1726 replacing section name parameter with an optional callback
1727 predicate.
1728 * exec.c (section_table_xfer_memory): Likewise.
1729 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1730 of section_table_xfer_memory.
1731
32fa152e
TT
17322020-07-22 Tom Tromey <tromey@adacore.com>
1733
1734 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1735 lookup_symbol_search_name.
1736
a67a1c41
AB
17372020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1738
1739 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1740 redundant local variable.
1741 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1742 reference, not pointer, update code accordingly.
1743
a7b4ff4f
SM
17442020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1745 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1746
1747 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1748 * jit.c (jit_breakpoint_re_set_internal): Use the
1749 `skip_jit_symbol_lookup` field.
1750
2340e834
SM
17512020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1752 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1753
1754 * jit.c (jit_read_descriptor): Define the descriptor address once,
1755 use twice.
1756 (jit_breakpoint_deleted): Move the declaration of the loop variable
1757 `iter` into the loop header.
1758 (jit_breakpoint_re_set_internal): Move the declaration of the local
1759 variable `objf_data` to the first point of definition.
1760 (jit_event_handler): Move the declaration of local variables
1761 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1762 Rename `objf` to `jited`.
1763
c1072906
SM
17642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1765
1766 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1767 Remove.
1768 * jit.c (get_jiter_objfile_data): Update.
1769
c8474dc3
TBA
17702020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1771 Simon Marchi <simon.marchi@polymtl.ca>
1772
1773 * jit.c (struct jit_program_space_data): Remove.
1774 (jit_program_space_key): Remove.
1775 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1776 stuff.
1777 (get_jit_program_space_data): Remove.
1778 (jit_breakpoint_deleted): Iterate on all of the program space's
1779 objfiles.
1780 (jit_inferior_init): Likewise.
1781 (jit_breakpoint_re_set_internal): Likewise. Also change return
1782 type to void.
1783 (jit_breakpoint_re_set): Pass current_program_space to
1784 jit_breakpoint_re_set_internal.
1785
77208eb7
SM
17862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1787
1788 * jit.h (struct jiter_objfile_data) <cached_code_address,
1789 jit_breakpoint>: Move to here from ...
1790 * jit.c (jit_program_space_data): ... here.
1791 (jiter_objfile_data::~jiter_objfile_data): Update.
1792 (jit_breakpoint_deleted): Update.
1793 (jit_breakpoint_re_set_internal): Update.
1794
8c1c720f
SM
17952020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1796
1797 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1798 checks.
1799 (jit_read_descriptor): Remove NULL check.
1800 (jit_event_handler): Add an assertion.
1801
0e74a041
SM
18022020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1803
1804 * jit.h (struct jit_objfile_data): Split into...
1805 (struct jiter_objfile_data): ... this ...
1806 (struct jited_objfile_data): ... and this.
1807 * objfiles.h (struct objfile) <jit_data>: Remove.
1808 <jiter_data, jited_data>: New fields.
1809 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1810 (jiter_objfile_data::~jiter_objfile_data): ... this.
1811 (get_jit_objfile_data): Rename to ...
1812 (get_jiter_objfile_data): ... this.
1813 (add_objfile_entry): Update.
1814 (jit_read_descriptor): Use get_jiter_objfile_data.
1815 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1816 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1817 (jit_inferior_exit_hook): Use objfile's jited_data field.
1818
238b5c9f
SM
18192020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1820
1821 * jit.h: Forward-declare `struct minimal_symbol`.
1822 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1823 constructor, destructor, and an objfile* field.
1824 * jit.c (jit_objfile_data): Remove.
1825 (struct jit_objfile_data): Migrate from here to jit.h.
1826 (jit_objfile_data::~jit_objfile_data): New destructor
1827 implementation with code moved from free_objfile_data.
1828 (free_objfile_data): Delete.
1829 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1830 (jit_find_objf_with_entry_addr): Ditto.
1831 (jit_inferior_exit_hook): Ditto.
1832 (_initialize_jit): Remove the call to
1833 register_objfile_data_with_cleanup.
1834 * objfiles.h (struct objfile) <jit_data>: New field.
1835
fe053b9e
TBA
18362020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1837
1838 * jit.h: Forward-declare `struct objfile`.
1839 (jit_event_handler): Add a second parameter, the JITer objfile.
1840 * jit.c (jit_read_descriptor): Change the signature to take the
1841 JITer objfile as an argument instead of the jit_program_space_data.
1842 (jit_inferior_init): Update the call to jit_read_descriptor.
1843 (jit_event_handler): Use the new JITer objfile argument when calling
1844 jit_read_descriptor.
1845 * breakpoint.c (handle_jit_event): Update the call to
1846 jit_event_handler to pass the JITer objfile.
1847
4cec0c66
JB
18482020-07-21 John Baldwin <jhb@FreeBSD.org>
1849
1850 * gdbarch.c: Regenerate.
1851 * gdbarch.h: Regenerate.
1852 * gdbarch.sh (handle_segmentation_fault): Remove method.
1853 * infrun.c (handle_segmentation_fault): Remove.
1854 (print_signal_received_reason): Remove call to
1855 handle_segmentation_fault.
1856
0e42f66a
JB
18572020-07-21 John Baldwin <jhb@FreeBSD.org>
1858
1859 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1860 Rename to sparc64_linux_report_signal_info and add siggnal
1861 argument.
1862 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1863 instead of sparc64_linux_handle_segmentation_fault.
1864
77bdfeb2
JB
18652020-07-21 John Baldwin <jhb@FreeBSD.org>
1866
1867 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1868 i386_linux_report_signal_info instead of
1869 i386_linux_handle_segmentation_fault.
1870 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1871 to i386_linux_report_signal_info and add siggnal argument.
1872 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1873 of i386_linux_handle_segmentation_fault.
1874 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1875 to i386_linux_report_signal_info and add siggnal argument.
1876
ad97bfc5
JB
18772020-07-21 John Baldwin <jhb@FreeBSD.org>
1878
1879 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1880 hook if present.
1881
272bb05c
JB
18822020-07-21 John Baldwin <jhb@FreeBSD.org>
1883
1884 * gdbarch.c: Regenerate.
1885 * gdbarch.h: Regenerate.
1886 * gdbarch.sh (report_signal_info): New method.
1887 * infrun.c (print_signal_received_reason): Invoke gdbarch
1888 report_signal_info hook if present.
1889
baf8791e
AB
18902020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1891
1892 * python/py-registers.c : Add 'unordered_map' include.
1893 (gdbpy_new_reggroup): Renamed to...
1894 (gdbpy_get_reggroup): ...this. Update to only create register
1895 group descriptors when needed.
1896 (gdbpy_reggroup_iter_next): Update.
1897
f7306dac
AB
18982020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1899
1900 * python/py-registers.c (gdbpy_register_object_data): New static
1901 global.
1902 (gdbpy_register_object_data_init): New function.
1903 (gdbpy_new_register_descriptor): Renamed to...
1904 (gdbpy_get_register_descriptor): ...this, and update to reuse
1905 existing register descriptors where possible.
1906 (gdbpy_register_descriptor_iter_next): Update.
1907 (gdbpy_initialize_registers): Register new gdbarch data.
1908
05c309a8
SM
19092020-07-21 Simon Marchi <simon.marchi@efficios.com>
1910
1911 * linux-nat.c (stopped_pids): Make static.
1912
d1fd641e
SM
19132020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1914
1915 PR ada/26235
1916 * gdbtypes.c (ada_discrete_type_low_bound,
1917 ada_discrete_type_high_bound): Handle undefined bounds.
1918
1de14d77
KR
19192020-07-21 Kamil Rytarowski <n54@gmx.com>
1920
1921 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1922 declaration.
1923 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1924 function.
1925
ed810cc7
JB
19262020-07-20 John Baldwin <jhb@FreeBSD.org>
1927
1928 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1929 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1930 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1931 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1932 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1933 method.
1934
ae5369e7
LC
19352020-07-20 Ludovic Courtès <ludo@gnu.org>
1936
1937 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1938 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1939 which are deprecated in Guile 3.0.
1940 * configure.ac (try_guile_versions): Add "guile-3.0".
1941 * configure (try_guile_versions): Regenerate.
1942 * NEWS: Update entry.
1943
68cf161c
LC
19442020-07-20 Ludovic Courtès <ludo@gnu.org>
1945 Doug Evans <dje@google.com>
1946
1947 PR gdb/21104
1948 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1949 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1950 USING_GUILE_BEFORE_2_2.
1951 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1952 Change type to 'scm_t_port_type *'.
1953 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1954 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1955 parameter and honor it. Update callers.
1956 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1957 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1958 functions.
1959 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1960 USING_GUILE_BEFORE_2_2.
1961 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1962 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1963 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1964 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1965 and 'SCM_PORT_TYPE'.
1966 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1967 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1968 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1969 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1970 [!USING_GUILE_BEFORE_2_2]: New functions.
1971 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1972 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1973 'gdbscm_memory_port_read'.
1974 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1975 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1976 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1977 function.
1978 (ioscm_init_memory_port): Remove.
1979 (ioscm_init_memory_port_stream): New function
1980 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1981 function.
1982 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1983 Return scm_from_uint (0).
1984 (gdbscm_set_memory_port_read_buffer_size_x)
1985 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1986 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1987 Return scm_from_uint (0).
1988 (gdbscm_set_memory_port_write_buffer_size_x)
1989 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1990 * configure.ac (try_guile_versions): Add "guile-2.2".
1991 * configure: Regenerate.
1992 * NEWS: Add entry.
1993
aee91db3
TT
19942020-07-18 Tom Tromey <tom@tromey.com>
1995
1996 * linux-nat.c (linux_multi_process): Remove.
1997 (linux_nat_target::supports_multi_process): Return true.
1998
0e267416
AB
19992020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2000
2001 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2002 (riscv_lookup_target_description): Return pointer out of
2003 unique_ptr.
2004 * target-descriptions.c (allocate_target_description): Add
2005 comment.
2006 (target_desc_deleter::operator()): Likewise.
2007 * target-descriptions.h (struct target_desc_deleter): Moved to
2008 gdbsupport/tdesc.h.
2009 (target_desc_up): Likewise.
2010
f80c8ec4
TT
20112020-07-17 Tom Tromey <tromey@adacore.com>
2012
2013 * linux-nat.c (linux_nat_target::supports_non_stop)
2014 (linux_nat_target::always_non_stop_p): Use "true".
2015 (linux_nat_target::supports_disable_randomization): Use "true" and
2016 "false".
2017
d0ce17d8
CT
20182020-07-16 Caroline Tice <cmtice@google.com>
2019
2020 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2021 (RNGLIST_HEADER_SIZE64): New constant definition.
2022 (struct dwop_section_names): Add rnglists_dwo.
2023 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2024 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2025 (struct dwo_sections): Add rnglists field.
2026 (read_attribut_reprocess): Add tag parameter.
2027 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2028 (cu_debug_rnglists_section): New function (decl & definition).
2029 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2030 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2031 die whose range is being checked; get rnglist section from
2032 cu_debug_rnglists_section, to get from either objfile or dwo file as
2033 appropriate. Add cases for DW_RLE_base_addressx,
2034 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2035 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2036 test inside if-condition and updating complaint message.
2037 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2038 dwarf2_rnglists_process.
2039 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2040 dwarf2_ranges_process.
2041 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2042 need_ranges_base and update comment appropriately. Also pass die tag
2043 to dwarf2_ranges_read.
2044 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2045 need_ranges_base and update comment appropriately. Also pass die tag
2046 to dwarf2_ranges_process.
2047 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2048 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2049 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2050 need_ranges_base and update comment appropriately. Also pass die tag
2051 to read_attribute_reprocess and dwarf2_ranges_read.
2052 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2053 and update function comment appropriately.
2054 (read_loclist_index): Call read_loclists_rnglists_header instead of
2055 read_loclist_header.
2056 (read_rnglist_index): New function.
2057 (read_attribute_reprocess): Add tag parameter. Add code for
2058 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2059 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2060
3dcc261c
AB
20612020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2062
2063 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2064 being resolved.
2065
ccb9eba6
AB
20662020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2067
2068 * arch-utils.c (show_architecture): Update formatting of messages.
2069
cf88be68
SM
20702020-07-12 Simon Marchi <simon.marchi@efficios.com>
2071
2072 * gdbtypes.h (struct type) <bounds>: Handle array and string
2073 types.
2074 * ada-lang.c (assign_aggregate): Use type::bounds on
2075 array/string type.
2076 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2077 * c-varobj.c (c_number_of_children): Likewise.
2078 (c_describe_child): Likewise.
2079 * eval.c (evaluate_subexp_for_sizeof): Likewise.
2080 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
2081 (f_type_print_base): Likewise.
2082 * f-valprint.c (f77_array_offset_tbl): Likewise.
2083 (f77_get_upperbound): Likewise.
2084 (f77_print_array_1): Likewise.
2085 * guile/scm-type.c (gdbscm_type_range): Likewise.
2086 * m2-typeprint.c (m2_array): Likewise.
2087 (m2_is_long_set_of_type): Likewise.
2088 * m2-valprint.c (get_long_set_bounds): Likewise.
2089 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2090 * python/py-type.c (typy_range): Likewise.
2091 * rust-lang.c (rust_internal_print_type): Likewise.
2092 * type-stack.c (type_stack::follow_types): Likewise.
2093 * valarith.c (value_subscripted_rvalue): Likewise.
2094 * valops.c (value_cast): Likewise.
2095
509971ae
SM
20962020-07-12 Simon Marchi <simon.marchi@efficios.com>
2097
2098 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
2099 callers to use the equivalent accessor methods.
2100
107406b7
SM
21012020-07-12 Simon Marchi <simon.marchi@efficios.com>
2102
2103 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
2104 (struct type) <bit_stride>: New method.
2105 (TYPE_BIT_STRIDE): Remove.
2106 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
2107
bb789949
SM
21082020-07-12 Simon Marchi <simon.marchi@efficios.com>
2109
2110 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
2111 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
2112 callers to use the equivalent accessor methods instead.
2113
39498edb
SM
21142020-07-12 Simon Marchi <simon.marchi@efficios.com>
2115
2116 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
2117 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
2118 callers to use the equivalent accessor methods instead.
2119
3b606f38
SM
21202020-07-12 Simon Marchi <simon.marchi@efficios.com>
2121
2122 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
2123 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
2124 to use dynamic_prop::kind.
2125
064d9cb9
SM
21262020-07-12 Simon Marchi <simon.marchi@efficios.com>
2127
2128 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
2129 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
2130 to get the bound property's kind and check against
2131 PROP_UNDEFINED.
2132
5537ddd0
SM
21332020-07-12 Simon Marchi <simon.marchi@efficios.com>
2134
2135 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
2136 all callers to use type::range_bounds followed by
2137 dynamic_prop::{low,high}.
2138
8c2e4e06
SM
21392020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2140
2141 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
2142 const_val, set_const_val, baton, set_locexpr, set_loclist,
2143 set_addr_offset, variant_parts, set_variant_parts,
2144 original_type, set_original_type>: New methods.
2145 <kind>: Rename to...
2146 <m_kind>: ... this. Update all users to use the new methods
2147 instead.
2148 <data>: Rename to...
2149 <m_data>: ... this. Update all users to use the new methods
2150 instead.
2151
7c6f2712
SM
21522020-07-12 Simon Marchi <simon.marchi@efficios.com>
2153
2154 * gdbtypes.c (get_discrete_bounds): Return failure if
2155 the range type's bounds are not both defined and constant
2156 values.
2157 (get_array_bounds): Update comment. Remove undefined bound check.
2158
599088e3
SM
21592020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
2160
2161 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2162 the type::bounds method directly.
2163
c4dfcb36
SM
21642020-07-12 Simon Marchi <simon.marchi@efficios.com>
2165
2166 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2167 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2168 are used to set the range type's bounds to use set_bounds.
2169
0a278aa7
PW
21702020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2171
2172 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2173
cce20f10
PA
21742020-07-10 Pedro Alves <pedro@palves.net>
2175
2176 * gdbthread.h (inferior_ref): Define.
2177 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2178 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2179 * thread.c
2180 (scoped_restore_current_thread::restore):
2181 Adjust to gdb::ref_ptr.
2182 (scoped_restore_current_thread::~scoped_restore_current_thread):
2183 Remove manual decref handling.
2184 (scoped_restore_current_thread::scoped_restore_current_thread):
2185 Adjust to use
2186 inferior_ref::new_reference/thread_info_ref::new_reference.
2187 Incref the thread before calling get_frame_id instead of after.
2188 Let TARGET_CLOSE_ERROR propagate.
2189
6d7aa592
PA
21902020-07-10 Pedro Alves <pedro@palves.net>
2191
2192 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2193 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2194 NOT_AVAILABLE_ERROR.
2195 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2196 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2197
b3e3a4c1
SM
21982020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2199 Pedro Alves <pedro@palves.net>
2200
2201 PR gdb/26199
2202 * infrun.c (threads_are_resumed_pending_p): Delete.
2203 (do_target_wait): Remove threads_are_executing and
2204 threads_are_resumed_pending_p checks from the inferior_matches
2205 lambda. Update comments.
2206
d6cc5d98
PA
22072020-07-10 Pedro Alves <pedro@palves.net>
2208
2209 PR gdb/26199
2210 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2211 executing threads.
2212
7d3badc6
PA
22132020-07-10 Pedro Alves <pedro@palves.net>
2214
2215 PR gdb/26199
2216 * infrun.c (handle_no_resumed): Handle multiple targets.
2217
42bd97a6
PA
22182020-07-10 Pedro Alves <pedro@palves.net>
2219
2220 PR gdb/26199
2221 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2222 target_is_async_p.
2223
43667cc6
PA
22242020-07-10 Pedro Alves <pedro@palves.net>
2225
2226 PR gdb/26199
2227 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2228 threads, not all threads.
2229
96118d11
PA
22302020-07-10 Pedro Alves <pedro@palves.net>
2231
2232 PR gdb/26199
2233 * remote.c (remote_target::open_1): Pass remote target pointer as
2234 data to create_async_event_handler.
2235 (remote_async_inferior_event_handler): Mark async event handler
2236 before returning if the remote target still has either pending
2237 events or unacknowledged notifications.
2238
54904d81
JB
22392020-07-10 John Baldwin <jhb@FreeBSD.org>
2240
2241 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2242 declaration.
2243 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2244 function.
2245
f37e5866
JB
22462020-07-09 John Baldwin <jhb@FreeBSD.org>
2247
2248 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2249 inferior_ptid.
2250
fc238d4a
JB
22512020-07-09 John Baldwin <jhb@FreeBSD.org>
2252
2253 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2254 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2255 AT_FREEBSD_PS_STRINGS.
2256
6e2469ff
HD
22572020-07-08 Hannes Domani <ssbssa@yahoo.de>
2258
2259 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2260 of debugfile path on Windows.
2261
d1076c41
JB
22622020-07-08 John Baldwin <jhb@FreeBSD.org>
2263
2264 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2265 argument to 'data'.
2266
15f3b077
TT
22672020-07-08 Tom Tromey <tromey@adacore.com>
2268
2269 * ada-lang.c (ada_exception_message_1): Use read_memory.
2270
9fc501fd
AB
22712020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2272
2273 PR python/22748
2274 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2275 special handling for inline frames.
2276 * findvar.c (value_of_register_lazy): Skip inline frames when
2277 creating lazy register values.
2278 * frame.c (frame_id_computed_p): Delete definition.
2279 * frame.h (frame_id_computed_p): Delete declaration.
2280
64cb3757
AB
22812020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2282
2283 * NEWS: Mention additions to Python API.
2284 * python/py-arch.c (archpy_register_groups): New function.
2285 (arch_object_methods): Add 'register_groups' method.
2286 * python/py-registers.c (reggroup_iterator_object): New struct.
2287 (reggroup_object): New struct.
2288 (gdbpy_new_reggroup): New function.
2289 (gdbpy_reggroup_to_string): New function.
2290 (gdbpy_reggroup_name): New function.
2291 (gdbpy_reggroup_iter): New function.
2292 (gdbpy_reggroup_iter_next): New function.
2293 (gdbpy_new_reggroup_iterator): New function
2294 (gdbpy_initialize_registers): Register new types.
2295 (reggroup_iterator_object_type): Define new Python type.
2296 (gdbpy_reggroup_getset): New static global.
2297 (reggroup_object_type): Define new Python type.
2298 * python/python-internal.h
2299
0f767f94
AB
23002020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2301
2302 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2303 * python/py-arch.c (archpy_registers): New function.
2304 (arch_object_methods): Add 'registers' method.
2305 * python/py-registers.c: New file.
2306 * python/python-internal.h
2307 (gdbpy_new_register_descriptor_iterator): Declare.
2308 (gdbpy_initialize_registers): Declare.
2309 * python/python.c (do_start_initialization): Call
2310 gdbpy_initialize_registers.
2311 * NEWS: Mention additions to the Python API.
2312
87dbc774
AB
23132020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2314
2315 * NEWS: Mention new Python API method.
2316 * python/py-unwind.c (pending_framepy_architecture): New function.
2317 (pending_frame_object_methods): Add architecture method.
2318
3bc98c0c
AB
23192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2320
2321 * gdbarch.c: Regenerate.
2322 * gdbarch.h: Regenerate.
2323 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2324 (gdbarch_data): Use internal_error for the case where
2325 deprecated_set_gdbarch_data was originally needed.
2326 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2327 and use passed in obstack.
2328 (libunwind_frame_set_descr): Should no longer get back NULL from
2329 gdbarch_data.
2330 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2331 type.
2332 * user-regs.c (user_regs_init): Update parameters, and use passed
2333 in obstack.
2334 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2335 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2336
d8cc8af6
TV
23372020-07-06 Tom de Vries <tdevries@suse.de>
2338
2339 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2340 End-Of-Sequence in lte_is_less_than.
2341 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2342 "gdb: Don't reorder line table entries too much when sorting".
2343
947f7597
TV
23442020-07-06 Tom de Vries <tdevries@suse.de>
2345
2346 PR tui/26205
2347 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2348
1e7c1b22
TV
23492020-07-05 Tom de Vries <tdevries@suse.de>
2350
2351 PR build/26187
2352 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2353 std::uncaught_exceptions instead of deprecated
2354 std::uncaught_exception.
2355
a36158ec
SM
23562020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2357
2358 * macroexp.h (macro_stringify): Return
2359 gdb::unique_xmalloc_ptr<char>.
2360 * macroexp.c (macro_stringify): Likewise.
2361 * macrotab.c (fixup_definition): Update.
2362
14d960c8
SM
23632020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2364
2365 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2366 (lex_one_token): Update.
2367 * macroexp.c (struct macro_buffer) <release>: Return
2368 gdb::unique_xmalloc_ptr<char>.
2369 (macro_stringify): Update.
2370 (macro_expand): Update.
2371 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2372 * macroexp.h (macro_expand_next): Likewise.
2373
211d5b1c
SM
23742020-07-02 Simon Marchi <simon.marchi@efficios.com>
2375
2376 * macroexp.h (macro_lookup_ftype): Remove.
2377 (macro_expand, macro_expand_once, macro_expand_next): Remove
2378 lookup function parameters, add scope parameter.
2379 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2380 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2381 * macroscope.h (standard_macro_lookup): Change parameter type
2382 to macro_scope.
2383 * macroscope.c (standard_macro_lookup): Likewise.
2384 * c-exp.y (lex_one_token): Update.
2385 * macrocmd.c (macro_expand_command): Likewise.
2386 (macro_expand_once_command): Likewise.
2387
b1a35af2
SM
23882020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2389
2390 * inf-loop.c (inferior_event_handler): Remove client_data param.
2391 * inf-loop.h (inferior_event_handler): Likewise.
2392 * infcmd.c (step_1): Adjust.
2393 * infrun.c (proceed): Adjust.
2394 (fetch_inferior_event): Remove client_data param.
2395 (infrun_async_inferior_event_handler): Adjust.
2396 * infrun.h (fetch_inferior_event): Remove `void *` param.
2397 * linux-nat.c (handle_target_event): Adjust.
2398 * record-btrace.c (record_btrace_handle_async_inferior_event):
2399 Adjust.
2400 * record-full.c (record_full_async_inferior_event_handler):
2401 Adjust.
2402 * remote.c (remote_async_inferior_event_handler): Adjust.
2403
1cdf9e33
TT
24042020-07-01 Tom Tromey <tom@tromey.com>
2405
2406 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2407 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2408
32c1e210
TT
24092020-07-01 Tom Tromey <tom@tromey.com>
2410
2411 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2412 tui_gen_win_info.
2413 (tui_win_info::make_window): Merge with
2414 tui_gen_win_info::make_window.
2415 (tui_win_info::make_visible): Move from tui_gen_win_info.
2416 * tui/tui-win.c (tui_win_info::max_width): Move from
2417 tui_gen_win_info.
2418 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2419 type.
2420 <window_factory>: Likewise.
2421 * tui/tui-layout.c (tui_win_info::resize): Move from
2422 tui_gen_win_info.
2423 (make_standard_window): Change return type.
2424 (get_locator_window, tui_get_window_by_name): Likewise.
2425 (tui_layout_window::apply): Remove a cast.
2426 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2427 (struct tui_win_info): Merge with tui_gen_win_info.
2428 (struct tui_gen_win_info): Remove.
2429
a30cb6da
TT
24302020-07-01 Tom Tromey <tom@tromey.com>
2431
2432 * tui/tui-stack.h (struct tui_locator_window): Derive from
2433 tui_win_info.
2434 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2435 <can_box>: New method.
2436
1eb2161f
TT
24372020-07-01 Tom Tromey <tom@tromey.com>
2438
2439 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2440
7134f2eb
TT
24412020-07-01 Tom Tromey <tom@tromey.com>
2442
2443 * tui/tui-regs.c (tui_data_window::display_registers_from)
2444 (tui_data_window::display_registers_from)
2445 (tui_data_window::first_data_item_displayed)
2446 (tui_data_window::delete_data_content_windows): Update.
2447 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2448 Remove.
2449 (tui_data_window::check_register_values): Update.
2450 (tui_data_item_window::rerender): Add parameters. Update.
2451 (tui_data_item_window::refresh_window): Remove.
2452 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2453 virtual.
2454 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2455 tui_gen_win_info.
2456 <refresh_window, max_height, min_height>: Remove.
2457 <rerender>: Add parameters.
2458 <x, y, visible>: New members.
2459 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2460 <m_item_width>: New member.
2461
22b7b041
TT
24622020-07-01 Tom Tromey <tom@tromey.com>
2463
2464 * tui/tui-regs.c (tui_data_window::show_register_group)
2465 (tui_data_window::check_register_values): Update.
2466 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2467 from item_no.
2468
c9753adb
TT
24692020-07-01 Tom Tromey <tom@tromey.com>
2470
2471 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2472 useless "if".
2473
9ab26b4a
TT
24742020-07-01 Tom Tromey <tom@tromey.com>
2475
2476 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2477 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2478
e555083f
TT
24792020-07-01 Tom Tromey <tom@tromey.com>
2480
2481 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2482 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2483 (struct tui_line_or_address): Move from tui-data.h.
2484 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2485 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2486 (tui_cmd_window, tui_source_window_base, tui_source_window)
2487 (tui_disasm_window): Don't declare.
2488 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2489 to tui-winsource.h.
2490 (SINGLE_KEY): Move to tui-stack.c.
2491
7a02bab7
TT
24922020-07-01 Tom Tromey <tom@tromey.com>
2493
2494 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2495 std::string.
2496 * tui/tui-regs.c (class tab_expansion_file): New.
2497 (tab_expansion_file::write): New method.
2498 (tui_register_format): Change return type. Use
2499 tab_expansion_file.
2500 (tui_get_register, tui_data_window::display_registers_from)
2501 (tui_data_item_window::rerender): Update.
2502 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2503 * tui/tui-io.c (tui_expand_tabs): Remove.
2504
ea68593b
TT
25052020-07-01 Tom Tromey <tom@tromey.com>
2506
2507 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2508
a8caed5d
FS
25092020-07-01 Fangrui Song <maskray@google.com>
2510
2511 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2512
9cdf9820
AKS
25132020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2514
2515 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2516 forms for DW_AT_associated and DW_AT_allocated attributes,
2517 which is already checked in function attr_to_dynamic_prop.
2518
a1520ad8
TT
25192020-06-30 Tom Tromey <tromey@adacore.com>
2520
2521 * dwarf2/read.c (quirk_rust_enum): Correctly call
2522 alloc_rust_variant for default-less enum.
2523
5ac58899
TT
25242020-06-30 Tom Tromey <tromey@adacore.com>
2525
2526 PR build/26183:
2527 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2528 gdb::to_string.
2529
19b187a9
SM
25302020-06-29 Simon Marchi <simon.marchi@efficios.com>
2531
2532 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2533 * gdbarch.h: Re-generate.
2534
cd4c4c07
TT
25352020-06-28 Tom Tromey <tom@tromey.com>
2536
2537 * command.h (cmd_types): Remove.
2538 (cmd_type): Don't declare.
2539 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2540 typedef.
2541 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2542 * cli/cli-decode.c (cmd_type): Remove.
2543
05779d57
PA
25442020-06-27 Pedro Alves <palves@redhat.com>
2545
2546 * fork-child.c (prefork_hook): Adjust.
2547 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2548 Delete.
2549 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2550 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2551 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2552 Remove declarations.
2553 (struct inferior) <set_tty, tty>: New methods.
2554 (struct inferior) <terminal>: Rename to ...
2555 (struct inferior) <m_terminal>: ... this and make private.
2556 * main.c (captured_main_1): Adjust.
2557 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2558 (mi_cmd_inferior_tty_show): Adjust.
2559 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2560 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2561
1776e3e5
NA
25622020-06-26 Nick Alcock <nick.alcock@oracle.com>
2563
2564 * configure.ac: Add --enable-libctf: handle --disable-static
2565 properly.
2566 * acinclude.m4: sinclude ../config/enable.m4.
2567 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2568 (LIBCTF): Substitute in.
2569 (CTF_DEPS): New, likewise.
2570 (CLIBS): libctf needs symbols from libbfd: move earlier.
2571 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2572 flags.
2573 * ctfread.c: Surround in ENABLE_LIBCTF.
2574 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2575 * configure: Regenerate.
2576 * config.in: Likewise.
2577
58373b80
SM
25782020-06-25 Simon Marchi <simon.marchi@efficios.com>
2579
2580 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2581
277474ee
SM
25822020-06-25 Simon Marchi <simon.marchi@efficios.com>
2583
2584 * inferior.h (struct inferior) <terminal>: Change type to
2585 gdb::unique_xmalloc_ptr<char>.
2586 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2587 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2588 field, adjust to unique pointer.
2589 (get_inferior_io_terminal): Adjust to unique pointer.
2590
6d74da72
AB
25912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2592
2593 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2594 registers, not just the known core set of registers.
2595
2e52d038
AB
25962020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2597
2598 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2599 fflags, frm, and fcsr registers.
2600 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2601 restore groups.
2602 (riscv_tdesc_unknown_reg): New function.
2603 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2604 tdesc_use_registers.
2605 * riscv-tdep.h (struct gdbarch_tdep): Add
2606 unknown_csrs_first_regnum, unknown_csrs_count,
2607 duplicate_fflags_regnum, duplicate_frm_regnum, and
2608 duplicate_fcsr_regnum fields.
2609
be64fd07
AB
26102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2611
2612 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2613 callback, use the callback (when not null) to help number unknown
2614 registers.
2615 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2616 (tdesc_use_registers): Add extra parameter to declaration.
2617
3b9fce96
AB
26182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2619
2620 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2621 in the file.
2622 (class riscv_pending_register_alias): Likewise.
2623 (riscv_register_feature::register_info): Change 'required_p' field
2624 to 'required', and change its type. Add 'check' member function.
2625 (riscv_register_feature::register_info::check): Define new member
2626 function.
2627 (riscv_xreg_feature): Change initialisation of 'required' field.
2628 (riscv_freg_feature): Likewise.
2629 (riscv_virtual_feature): Likewise.
2630 (riscv_csr_feature): Likewise.
2631 (riscv_check_tdesc_feature): Take extra parameter, the csr
2632 tdesc_feature, rewrite the function to use the new
2633 riscv_register_feature::register_info::check function.
2634 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2635
865bad26
AB
26362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2637
2638 * features/Makefile: Remove all references to the deleted files
2639 below.
2640 * features/riscv/32bit-csr.c: Deleted.
2641 * features/riscv/32bit-csr.xml: Deleted.
2642 * features/riscv/64bit-csr.c: Deleted.
2643 * features/riscv/64bit-csr.xml: Deleted.
2644 * features/riscv/rebuild-csr-xml.sh: Deleted.
2645
ed69cbc8
AB
26462020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2647
2648 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2649 whitespace error for declaration of names member variable.
2650 (struct riscv_register_feature): Add new prefer_first_name member
2651 variable, and fix whitespace error in declaration of registers.
2652 (riscv_xreg_feature): Initialize prefer_first_name field.
2653 (riscv_freg_feature): Likewise.
2654 (riscv_virtual_feature): Likewise.
2655 (riscv_csr_feature): Likewise.
2656 (riscv_register_name): Expand on comments. Remove register name
2657 modifications for CSR and virtual registers.
2658
4445e8f5
AB
26592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2660
2661 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2662 errors.
2663
767a879e
AB
26642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2665
2666 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2667 riscv-opc.h.
2668 (class riscv_pending_register_alias): New class.
2669 (riscv_check_tdesc_feature): Take vector of pending aliases and
2670 populate it as appropriate.
2671 (riscv_setup_register_aliases): Delete.
2672 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2673 to riscv_check_tdesc_feature in all cases. Use the vector to
2674 create the register aliases.
2675
bb6e55f3
RO
26762020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2677
2678 * sol2-tdep.c (sol2_static_transform_name): Remove.
2679 (sol2_init_abi): Don't register it.
2680 * gdbarch.sh (static_transform_name): Remove.
2681 * gdbarch.c, gdbarch.h: Regenerate.
2682
2683 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2684 gdbarch_static_transform_name.
2685 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2686 * stabsread.c (define_symbol) <'X'>: Remove.
2687 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2688 handling.
2689 <'V'>: Likewise.
2690 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2691 <'S'>: Remove call to gdbarch_static_transform_name.
2692
c6d36836
RO
26932020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2694
2695 * procfs.c (procfs_pre_trace): New function.
2696 (procfs_target::create_inferior): Pass it to fork_inferior.
2697
a7e6196b
RO
26982020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2699
2700 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2701 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2702 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2703 sol2-tdep.o, sparc-sol2-tdep.o.
2704 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2705 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2706 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2707 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2708
d412e696
RO
27092020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2710
2711 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2712 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2713 Call sol2_init_abi.
2714 Remove calls to set_gdbarch_skip_solib_resolver,
2715 set_gdbarch_core_pid_to_str.
2716 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2717 (i386_sol2_static_transform_name): Remove.
2718 (i386_sol2_init_abi): Call sol2_init_abi.
2719 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2720 set_gdbarch_static_transform_name,
2721 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2722 Use sol2_sigtramp_p.
2723 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2724 (sol2_sigtramp_p): New function.
2725 (sol2_static_transform_name): New function.
2726 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2727 (sol2_init_abi): New function.
2728 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2729 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2730 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2731 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2732 (sparc_sol2_static_transform_name): Remove.
2733 (sparc32_sol2_init_abi): Call sol2_init_abi.
2734 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2735 set_gdbarch_static_transform_name,
2736 set_gdbarch_skip_solib_resolver,
2737 set_gdbarch_core_pid_to_str.
2738 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2739 (sparc_sol2_static_transform_name): Remove
2740 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2741 call sol2_sigtramp_p.
2742 (sparc64_sol2_init_abi): Call sol2_init_abi.
2743 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2744 set_gdbarch_static_transform_name,
2745 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2746
a8654e7d
PW
27472020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2748
2749 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2750 * exec.c (validate_exec_file): If from_tty, set both
2751 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2752 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2753 and from_tty, unconditionally ask a confirmation.
2754
caa7fd04
AB
27552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2756
2757 * target-descriptions.c (tdesc_architecture_name): Protect against
2758 NULL pointer dereference.
2759 (maint_print_xml_tdesc_cmd): New function.
2760 (_initialize_target_descriptions): Register new 'maint print
2761 xml-tdesc' command and give it the filename completer.
2762 * NEWS: Mention new 'maint print xml-tdesc' command.
2763
fbf42f4e
AB
27642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2765
2766 * target-descriptions.c (class tdesc_compatible_info): New class.
2767 (struct target_desc): Change type of compatible vector.
2768 (tdesc_compatible_p): Update for change in type of
2769 target_desc::compatible.
2770 (tdesc_compatible_info_list): New function.
2771 (tdesc_compatible_info_arch_name): New function.
2772 (tdesc_add_compatible): Update for change in type of
2773 target_desc::compatible.
2774 (print_c_tdesc::visit_pre): Likewise.
2775
20821f4e
AB
27762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2777
2778 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2779 whitespace to underscore.
2780 (maint_print_c_tdesc_cmd): Use fake filename for target
2781 descriptions that came from the target.
2782 (_initialize_target_descriptions): Add filename command completion
2783 for 'maint print c-tdesc'.
2784
1fb5ee62
SM
27852020-06-23 Simon Marchi <simon.marchi@efficios.com>
2786
2787 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2788 lines.
2789
fc3ecb3e
SM
27902020-06-23 Simon Marchi <simon.marchi@efficios.com>
2791
2792 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2793 lines.
2794 (dwarf2_find_location_expression): Likewise.
2795 (call_site_parameter_matches): Likewise.
2796 (dwarf2_compile_expr_to_ax): Likewise.
2797 (disassemble_dwarf_expression): Likewise.
2798 (loclist_describe_location): Likewise.
2799
236ef034
PA
28002020-06-23 Pedro Alves <palves@redhat.com>
2801
2802 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2803 progspace-and-thread.h. Include scoped-mock-context.h instead.
2804 (register_to_value_test): Use scoped_mock_context.
2805 * regcache.c: Include "scoped-mock-context.h".
2806 (cooked_read_test): Don't error out if a target is already pushed.
2807 Use scoped_mock_context. Adjust.
2808 * scoped-mock-context.h: New file.
2809
39e7ecca
AB
28102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2811
2812 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2813 initializer.
2814 (ada_language::is_string_type_p): New member function.
2815 * c-lang.c (c_language_data): Delete la_is_string_type_p
2816 initializer.
2817 (cplus_language_data): Likewise.
2818 (asm_language_data): Likewise.
2819 (minimal_language_data): Likewise.
2820 * d-lang.c (d_language_data): Likewise.
2821 * f-lang.c (f_is_string_type_p): Delete function, implementation
2822 moved to f_language::is_string_type_p.
2823 (f_language_data): Delete la_is_string_type_p initializer.
2824 (f_language::is_string_type_p): New member function,
2825 implementation from f_is_string_type_p.
2826 * go-lang.c (go_is_string_type_p): Delete function, implementation
2827 moved to go_language::is_string_type_p.
2828 (go_language_data): Delete la_is_string_type_p initializer.
2829 (go_language::is_string_type_p): New member function,
2830 implementation from go_is_string_type_p.
2831 * language.c (language_defn::is_string_type_p): Define new member
2832 function.
2833 (default_is_string_type_p): Make static, add comment copied from
2834 header file.
2835 (unknown_language_data): Delete la_is_string_type_p initializer.
2836 (unknown_language::is_string_type_p): New member function.
2837 (auto_language_data): Delete la_is_string_type_p initializer.
2838 (auto_language::is_string_type_p): New member function.
2839 * language.h (language_data): Delete la_is_string_type_p field.
2840 (language_defn::is_string_type_p): Declare new function.
2841 (default_is_string_type_p): Delete desclaration, move comment to
2842 definition.
2843 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2844 moved to m2_language::is_string_type_p.
2845 (m2_language_data): Delete la_is_string_type_p initializer.
2846 (m2_language::is_string_type_p): New member function,
2847 implementation from m2_is_string_type_p.
2848 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2849 initializer.
2850 * opencl-lang.c (opencl_language_data): Likewise.
2851 * p-lang.c (pascal_is_string_type_p): Delete function,
2852 implementation moved to pascal_language::is_string_type_p.
2853 (pascal_language_data): Delete la_is_string_type_p initializer.
2854 (pascal_language::is_string_type_p): New member function,
2855 implementation from pascal_is_string_type_p.
2856 * rust-lang.c (rust_is_string_type_p): Delete function,
2857 implementation moved to rust_language::is_string_type_p.
2858 (rust_language_data): Delete la_is_string_type_p initializer.
2859 (rust_language::is_string_type_p): New member function,
2860 implementation from rust_is_string_type_p.
2861 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2862 is_string_type_p.
2863
4ffc13fb
AB
28642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2865
2866 * ada-lang.c (ada_language_data): Delete la_print_typedef
2867 initializer.
2868 (ada_language::print_typedef): New member function.
2869 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2870 (cplus_language_data): Likewise.
2871 (asm_language_data): Likewise.
2872 (minimal_language_data): Likewise.
2873 * d-lang.c (d_language_data): Likewise.
2874 * f-lang.c (f_language_data): Likewise.
2875 (f_language::print_typedef): New member function.
2876 * go-lang.c (go_language_data): Delete la_print_typedef
2877 initializer.
2878 * language.c (language_defn::print_typedef): Define member
2879 function.
2880 (unknown_language_data): Delete la_print_typedef initializer.
2881 (unknown_language::print_typedef): New member function.
2882 (auto_language_data): Delete la_print_typedef initializer.
2883 (auto_language::print_typedef): New member function.
2884 * language.h (language_data): Delete la_print_typedef field.
2885 (language_defn::print_typedef): Declare new member function.
2886 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2887 (default_print_typedef): Delete declaration.
2888 * m2-lang.c (m2_language_data): Delete la_print_typedef
2889 initializer.
2890 (m2_language::print_typedef): New member function.
2891 * objc-lang.c (objc_language_data): Delete la_print_typedef
2892 initializer.
2893 * opencl-lang.c (opencl_language_data): Likewise.
2894 * p-lang.c (pascal_language_data): Likewise.
2895 (pascal_language::print_typedef): New member function.
2896 * rust-lang.c (rust_print_typedef): Delete function,
2897 implementation moved to rust_language::print_typedef.
2898 (rust_language): Delete la_print_typedef initializer.
2899 (rust_language::print_typedef): New member function,
2900 implementation from rust_print_typedef.
2901 * typeprint.c (default_print_typedef): Delete.
2902
d711ee67
AB
29032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2904
2905 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2906 (ada_language::printstr): New member function.
2907 * c-lang.c (c_language_data): Delete la_printstr initializer.
2908 (cplus_language_data): Likewise.
2909 (asm_language_data): Likewise.
2910 (minimal_language_data): Likewise.
2911 * d-lang.c (d_language_data): Likewise.
2912 * f-lang.c (f_printstr): Rename to f_language::printstr.
2913 (f_language_data): Delete la_printstr initializer.
2914 (f_language::printstr): New member function, implementation from
2915 f_printstr.
2916 * go-lang.c (go_language_data): Delete la_printstr initializer.
2917 * language.c (language_defn::printstr): Define new member
2918 function.
2919 (unk_lang_printstr): Delete.
2920 (unknown_language_data): Delete la_printstr initializer.
2921 (unknown_language::printstr): New member function.
2922 (auto_language_data): Delete la_printstr initializer.
2923 (auto_language::printstr): New member function.
2924 * language.h (language_data): Delete la_printstr field.
2925 (language_defn::printstr): Declare new member function.
2926 (LA_PRINT_STRING): Update call to printstr.
2927 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2928 (m2_language_data): Delete la_printstr initializer.
2929 (m2_language::printstr): New member function, implementation from
2930 m2_printstr.
2931 * objc-lang.c (objc_language_data): Delete la_printstr
2932 initializer.
2933 * opencl-lang.c (opencl_language_data): Likewise.
2934 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2935 (pascal_language_data): Delete la_printstr initializer.
2936 (pascal_language::printstr): New member function, implementation
2937 from pascal_printstr.
2938 * p-lang.h (pascal_printstr): Delete declaration.
2939 * rust-lang.c (rust_printstr): Update header comment.
2940 (rust_language_data): Delete la_printstr initializer.
2941 (rust_language::printstr): New member function.
2942
52b50f2c
AB
29432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2944
2945 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2946 (ada_language::printchar): New member function.
2947 * c-lang.c (c_language_data): Delete la_printchar initializer.
2948 (cplus_language_data): Likewise.
2949 (asm_language_data): Likewise.
2950 (minimal_language_data): Likewise.
2951 * d-lang.c (d_language_data): Likewise.
2952 * f-lang.c (f_printchar): Rename to f_language::printchar.
2953 (f_language_data): Delete la_printchar initializer.
2954 (f_language::printchar): New member function, implementation from
2955 f_printchar.
2956 * go-lang.c (go_language_data): Delete la_printchar initializer.
2957 * language.c (unk_lang_printchar): Delete.
2958 (language_defn::printchar): Define new member function.
2959 (unknown_language_data): Delete la_printchar initializer.
2960 (unknown_language::printchar): New member function.
2961 (auto_language_data): Delete la_printchar initializer.
2962 (auto_language::printchar): New member function.
2963 * language.h (language_data): Delete la_printchar field.
2964 (language_defn::printchar): Declare new member function.
2965 (LA_PRINT_CHAR): Update call to printchar.
2966 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2967 (m2_language::printchar): New member function.
2968 * objc-lang.c (objc_language_data): Delete la_printchar
2969 initializer.
2970 * opencl-lang.c (opencl_language_data): Likewise.
2971 * p-lang.c (pascal_language_data): Delete la_printchar
2972 initializer.
2973 (pascal_language::printchar): New member function.
2974 * rust-lang.c (rust_printchar): Rename to
2975 rust_language::printchar.
2976 (rust_language_data): Delete la_printchar initializer.
2977 (rust_language::printchar): New member function, implementation
2978 from rust_printchar.
2979
ec8cec5b
AB
29802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2981
2982 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2983 (ada_language_data): Delete la_emitchar initializer.
2984 (ada_language::emitchar): New member function, implementation from
2985 emit_char.
2986 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2987 (cplus_language_data): Likewise.
2988 (asm_language_data): Likewise.
2989 (minimal_language_data): Likewise.
2990 * d-lang.c (d_language_data): Likewise.
2991 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2992 (f_language_data): Delete la_emitchar initializer.
2993 (f_language::emitchar): New member function, implementation from
2994 f_emit_char.
2995 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2996 * language.c (unk_lang_emit_char): Delete.
2997 (language_defn::emitchar): New member function definition.
2998 (unknown_language_data): Delete la_emitchar initializer.
2999 (unknown_language::emitchar): New member function.
3000 (auto_language_data): Delete la_emitchar initializer.
3001 (auto_language::emitchar): New member function.
3002 * language.h (language_data): Delete la_emitchar field.
3003 (language_defn::emitchar): New member field declaration.
3004 (LA_EMIT_CHAR): Update call to emitchar.
3005 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3006 (m2_language_data): Delete la_emitchar initializer.
3007 (m2_language::emitchar): New member function, implementation from
3008 m2_emit_char.
3009 * objc-lang.c (objc_language_data): Delete la_emitchar
3010 initializer.
3011 * opencl-lang.c (opencl_language_data): Likewise.
3012 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3013 (pascal_language_data): Delete la_emitchar initializer.
3014 (pascal_language::emitchar): New member function, implementation
3015 from pascal_emit_char.
3016 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3017 (rust_language_data): Delete la_emitchar initializer.
3018 (rust_language::emitchar): New member function, implementation
3019 from rust_emitchar.
3020
1bf9c363
AB
30212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3022
3023 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3024 (ada_language_data): Delete la_post_parser initializer.
3025 (ada_language::post_parser): New member function.
3026 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3027 (cplus_language_data): Likewise.
3028 (asm_language_data): Likewise.
3029 (minimal_language_data): Likewise.
3030 * d-lang.c (d_language_data): Likewise.
3031 * f-lang.c (f_language_data): Likewise.
3032 * go-lang.c (go_language_data): Likewise.
3033 * language.c (unknown_language_data): Likewise.
3034 (auto_language_data): Likewise.
3035 * language.h (language_data): Delete la_post_parser field.
3036 (language_defn::post_parser): New member function.
3037 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3038 * objc-lang.c (objc_language_data): Likewise.
3039 * opencl-lang.c (opencl_language_data): Likewise.
3040 * p-lang.c (pascal_language_data): Likewise.
3041 * parse.c (parse_exp_in_context): Update call to post_parser.
3042 (null_post_parser): Delete definition.
3043 * parser-defs.h (null_post_parser): Delete declaration.
3044 * rust-lang.c (rust_language_data): Delete la_post_parser
3045 initializer.
3046
87afa652
AB
30472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3048
3049 * ada-lang.c (parse): Rename to ada_language::parser.
3050 (ada_language_data): Delete la_parser initializer.
3051 (ada_language::parser): New member function, implementation from
3052 parse.
3053 * c-lang.c (c_language_data): Delete la_parser initializer.
3054 (cplus_language_data): Likewise.
3055 (asm_language_data): Likewise.
3056 (minimal_language_data): Likewise.
3057 * d-lang.c (d_language_data): Likewise.
3058 (d_language::parser): New member function.
3059 * f-lang.c (f_language_data): Delete la_parser initializer.
3060 (f_language::parser): New member function.
3061 * go-lang.c (go_language_data): Delete la_parser initializer.
3062 (go_language::parser): New member function.
3063 * language.c (unk_lang_parser): Delete.
3064 (language_defn::parser): Define new member function.
3065 (unknown_language_data): Delete la_parser initializer.
3066 (unknown_language::parser): New member function.
3067 (auto_language_data): Delete la_parser initializer.
3068 (auto_language::parser): New member function.
3069 * language.h (language_data): Delete la_parser field.
3070 (language_defn::parser): Declare new member function.
3071 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3072 (m2_language::parser): New member function.
3073 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3074 * opencl-lang.c (opencl_language_data): Likewise.
3075 * p-lang.c (pascal_language_data): Likewise.
3076 (pascal_language::parser): New member function.
3077 * parse.c (parse_exp_in_context): Update call to parser.
3078 * rust-lang.c (rust_language_data): Delete la_parser initializer.
3079 (rust_language::parser): New member function.
3080
37825800
AB
30812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3082
3083 * top.c (print_gdb_configuration): Print --with-python-libdir
3084 configuration value.
3085
5b860c93
PW
30862020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3087
3088 * NEWS: Mention change to the alias command.
3089
cf00cd6f
PW
30902020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3091
3092 * cli/cli-cmds.c (lookup_cmd_for_default_args)
3093 (alias_command_completer)
3094 (make_alias_options_def_group): New functions.
3095 (alias_opts, alias_option_defs): New struct and array.
3096 (alias_usage_error): Update usage.
3097 (alias_command): Handles optional DEFAULT-ARGS... arguments.
3098 Use option framework.
3099 (_initialize_cli_cmds): Update alias command help.
3100 Update aliases command help.
3101 (show_user):
3102 Add NULL for new default_args lookup_cmd argument.
3103 (valid_command_p): Rename to validate_aliased_command.
3104 Add NULL for new default_args lookup_cmd argument. Verify that the
3105 aliased_command has no default args.
3106 * cli/cli-decode.c (help_cmd): Show aliases definitions.
3107 (lookup_cmd_1, lookup_cmd): New argument default_args.
3108 (add_alias_cmd):
3109 Add NULL for new default_args lookup_cmd argument.
3110 (print_help_for_command): Show default args under the layout
3111 alias some_alias = some_aliased_cmd some_alias_default_arg.
3112 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
3113 xfree default_args in destructor.
3114 * cli/cli-script.c (process_next_line, do_define_command):
3115 Add NULL for new default_args lookup_cmd argument.
3116 * command.h: Declare new default_args argument in lookup_cmd
3117 and lookup_cmd_1.
3118 * completer.c (complete_line_internal_1):
3119 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3120 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
3121 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
3122 Likewise.
3123 * infcmd.c (_initialize_infcmd): Likewise.
3124 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
3125 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
3126 * python/py-param.c (add_setshow_generic): Likewise.
3127 * remote.c (_initialize_remote): Likewise.
3128 * top.c (execute_command): Prepend default_args if command has some.
3129 (set_verbose):
3130 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3131 * tracepoint.c (validate_actionline, encode_actions_1):
3132 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
3133
bd920864
TBA
31342020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3135
3136 * jit.c (jit_read_descriptor): Use bool as the return type.
3137 (jit_breakpoint_re_set_internal): Use bool as the return type.
3138 Invert the return value logic; return true if the jit breakpoint
3139 has been successfully initialized.
3140 (jit_inferior_init): Update the call to
3141 jit_breakpoint_re_set_internal.
3142
f8098322
PA
31432020-06-22 Pedro Alves <palves@redhat.com>
3144
3145 PR gdb/25939
3146 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
3147 Use the current inferior instead. Don't return
3148 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
3149 wait again.
3150 * sol-thread.c (sol_thread_target::wait): Don't reference
3151 inferior_ptid.
3152 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
3153 (sol_update_thread_list_callback): Use the current inferior's pid
3154 instead of inferior_ptid.
3155
196535a6
RO
31562020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3157
3158 * procfs.c: Cleanup many comments.
3159
3160 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
3161 (AFTER_WATCHFLAG): Replace by value.
3162
3163 (MAIN_PROC_NAME_FORMAT): Inline ...
3164 (create_procinfo): ... here.
3165
3166 (procfs_debug_inferior): Remove SYS_exec handling.
3167 (syscall_is_exec): Likewise.
3168 (procfs_set_exec_trap): Likewise.
3169
3170 (syscall_is_lwp_exit): Inline in callers.
3171 (syscall_is_exit): Likewise.
3172 (syscall_is_exec): Likewise.
3173 (syscall_is_lwp_create): Likewise.
3174
3175 (invalidate_cache): Remove #if 0 code.
3176
3177 (make_signal_thread_runnable): Remove.
3178 (procfs_target::resume): Remove #if 0 code.
3179
cf6f3e86
RO
31802020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3181
3182 PR gdb/25939
3183 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3184 call ...
3185 (procfs_target::create_inferior): ... here.
3186
48e9cc84
PW
31872020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3188
3189 * exec.c (validate_exec_file): Ensure the build-id is up to
3190 date by calling reopen_exec_file (that checks file timestamp
3191 to decide to re-read the file).
3192
3922b302
PA
31932020-06-18 Pedro Alves <palves@redhat.com>
3194
3195 PR gdb/25412
3196 * gdbthread.h (delete_thread, delete_thread_silent)
3197 (find_thread_ptid): Update comments.
3198 * thread.c (current_thread_): New global.
3199 (is_current_thread): Move higher, and reimplement.
3200 (inferior_thread): Reimplement.
3201 (set_thread_exited): Use bool. Add assertions.
3202 (add_thread_silent): Simplify thread-reuse handling by always
3203 calling delete_thread.
3204 (delete_thread): Remove intro comment.
3205 (find_thread_ptid): Skip exited threads.
3206 (switch_to_thread_no_regs): Write to current_thread_.
3207 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3208 INFERIOR_PTID. Clear current_thread_.
3209
6dbdab44
PA
32102020-06-18 Pedro Alves <palves@redhat.com>
3211
3212 * aix-thread.c (pd_update): Use switch_to_thread.
3213
2da4b788
PA
32142020-06-18 Pedro Alves <palves@redhat.com>
3215
3216 * ravenscar-thread.c (ravenscar_thread_target): Update.
3217 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3218 (ravenscar_thread_target::add_active_thread): ... this. Don't
3219 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3220 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3221
50838d1b
PA
32222020-06-18 Pedro Alves <palves@redhat.com>
3223
3224 * nat/windows-nat.c (current_windows_thread): Remove.
3225 * nat/windows-nat.h (current_windows_thread): Remove.
3226 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3227 Adjust.
3228 (display_selectors): Adjust to fetch the current
3229 windows_thread_info based on inferior_ptid.
3230 (fake_create_process): No longer write to current_windows_thread.
3231 (windows_nat_target::get_windows_debug_event):
3232 Don't set inferior_ptid or current_windows_thread.
3233 (windows_nat_target::wait): Adjust to not rely on
3234 current_windows_thread.
3235 (do_initial_windows_stuff): Now a method of windows_nat_target.
3236 Switch to the last_ptid thread.
3237 (windows_nat_target::attach): Adjust.
3238 (windows_nat_target::detach): Use switch_to_no_thread instead of
3239 writing to inferior_ptid directly.
3240 (windows_nat_target::create_inferior): Adjust.
3241
31ce04e9
PA
32422020-06-18 Pedro Alves <palves@redhat.com>
3243
3244 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3245
1ee1a363
PA
32462020-06-18 Pedro Alves <palves@redhat.com>
3247
3248 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3249 after creating it, instead of writing to inferior_ptid. Don't
3250 write to inferior_ptid.
3251
6d350754
PA
32522020-06-18 Pedro Alves <palves@redhat.com>
3253
3254 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3255
5d971d48
PA
32562020-06-18 Pedro Alves <palves@redhat.com>
3257
3258 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3259 it, instead of writing to inferior_ptid.
3260
86e57d1b
PA
32612020-06-18 Pedro Alves <palves@redhat.com>
3262
3263 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3264 to inferior_ptid.
3265
f2e1c129
PA
32662020-06-18 Pedro Alves <palves@redhat.com>
3267
3268 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3269 instead of writing to inferior_ptid directly.
3270
60db1b85
PA
32712020-06-18 Pedro Alves <palves@redhat.com>
3272
3273 * corelow.c (core_target::close): Use switch_to_no_thread instead
3274 of writing to inferior_ptid directly.
3275 (add_to_thread_list, core_target_open): Use switch_to_thread
3276 instead of writing to inferior_ptid directly.
3277
fe7d6a8d
PA
32782020-06-18 Pedro Alves <palves@redhat.com>
3279
3280 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3281 inferior_ptid.
3282 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3283 inferior_ptid.
3284 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3285 inferior_ptid directly.
3286 (darwin_nat_target::init_thread_list): Switch to thread, instead
3287 of writing to inferior_ptid.
3288 (darwin_nat_target::attach): Don't write to inferior_ptid.
3289 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3290
975f8708
PA
32912020-06-18 Pedro Alves <palves@redhat.com>
3292
3293 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3294 thread.
3295 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3296 Instead use switch_to_thread.
3297 (gnu_nat_target::detach): Use switch_to_no_thread
3298 instead of writing to inferior_ptid directly. Used passed-in
3299 inferior instead of looking up the inferior by pid.
3300
1a204730
PA
33012020-06-18 Pedro Alves <palves@redhat.com>
3302
3303 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3304 inferior_ptid.
3305
ebe84f23
PA
33062020-06-18 Pedro Alves <palves@redhat.com>
3307
3308 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3309 inferior_ptid.
3310 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3311 thread.
3312 (nto_procfs_target::detach): Avoid referencing
3313 inferior_ptid. Use switch_to_no_thread instead of writing to
3314 inferior_ptid directly.
3315 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3316 instead of writing to inferior_ptid directly.
3317 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3318 to thread.
3319
191f02e5
PA
33202020-06-18 Pedro Alves <palves@redhat.com>
3321
3322 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3323 after creating it, instead of writing to inferior_ptid.
3324 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3325 to inferior_ptid directly.
3326 (gdbsim_target::wait): Don't write to inferior_ptid.
3327
0ac55310
PA
33282020-06-18 Pedro Alves <palves@redhat.com>
3329
3330 * remote.c (remote_target::remote_notice_new_inferior): Use
3331 switch_to_thread instead of writing to inferior_ptid directly.
3332 (remote_target::add_current_inferior_and_thread): Use
3333 switch_to_no_thread instead of writing to inferior_ptid directly.
3334 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3335 and switch_to_thread instead of using set_current_inferior or
3336 writing to inferior_ptid directly.
3337
5233f39b
PA
33382020-06-18 Pedro Alves <palves@redhat.com>
3339
3340 * tracectf.c (ctf_target_open): Switch to added thread instead of
3341 writing to inferior_ptid directly.
3342 (ctf_target::close): Use switch_to_no_thread instead of writing to
3343 inferior_ptid directly.
3344
087e161b
PA
33452020-06-18 Pedro Alves <palves@redhat.com>
3346
3347 * tracefile-tfile.c (tfile_target_open): Don't write to
3348 inferior_ptid directly, instead switch to added thread.
3349 (tfile_target::close): Use switch_to_no_thread instead of writing
3350 to inferior_ptid directly.
3351
7fb43e53
PA
33522020-06-18 Pedro Alves <palves@redhat.com>
3353
3354 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3355 (procfs_target::detach): Use switch_to_no_thread
3356 instead of writing to inferior_ptid directly.
3357 (do_attach): Change return type to void. Switch to the added
3358 thread.
3359 (procfs_target::create_inferior): Switch to the added thread.
3360 (procfs_do_thread_registers): Don't write to inferior_ptid.
3361
18493a00
PA
33622020-06-18 Pedro Alves <palves@redhat.com>
3363
3364 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3365 of writing to inferior_ptid.
3366 (scoped_restore_exited_inferior): Delete.
3367 (handle_vfork_child_exec_or_exit): Simplify using
3368 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3369 instead of writing to inferior_ptid.
3370 (THREAD_STOPPED_BY): Delete.
3371 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3372 (thread_stopped_by_hw_breakpoint): Delete.
3373 (save_waitstatus): Use
3374 scoped_restore_current_thread+switch_to_thread, and call
3375 target_stopped_by_watchpoint instead of
3376 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3377 instead of thread_stopped_by_sw_breakpoint, and
3378 target_stopped_by_hw_breakpoint instead of
3379 thread_stopped_by_hw_breakpoint.
3380 (handle_inferior_event)
3381 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3382 inferior_ptid directly, nor
3383 set_current_inferior/set_current_program_space. Use
3384 switch_to_thread / switch_to_inferior_no_thread instead.
3385
a0776b13
PA
33862020-06-18 Pedro Alves <palves@redhat.com>
3387
3388 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3389 instead of writing to inferior_ptid.
3390
6155c136
PA
33912020-06-18 Pedro Alves <palves@redhat.com>
3392
3393 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3394 added thread.
3395 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3396 to the added thread.
3397 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3398 instead of writing to inferior_ptid.
3399
c5316fc6
PA
34002020-06-18 Pedro Alves <palves@redhat.com>
3401
3402 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3403 (register_to_value_test): Mock a program_space too. Heap-allocate
3404 the address space. Don't write to inferior_ptid. Use
3405 switch_to_thread instead.
3406
8df01799
PA
34072020-06-18 Pedro Alves <palves@redhat.com>
3408
3409 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3410 Delete.
3411 (find_signalled_thread()): New, factored out from
3412 linux_make_corefile_notes and adjusted to handle exited threads.
3413 (linux_make_corefile_notes): Adjust to use the new
3414 find_signalled_thread.
3415
41792d68
PA
34162020-06-18 Pedro Alves <palves@redhat.com>
3417
3418 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3419 of saving/restoring inferior_ptid.
3420
612f258a
TT
34212020-06-17 Tom Tromey <tom@tromey.com>
3422
3423 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3424 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3425 declare.
3426 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3427
efb763a5
SM
34282020-06-15 Simon Marchi <simon.marchi@efficios.com>
3429
3430 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3431 of partial symtabs.
3432
2951f6c0
SM
34332020-06-17 Simon Marchi <simon.marchi@efficios.com>
3434
3435 * regformats/reg-arm.dat: Remove.
3436 * regformats/reg-bfin.dat: Remove.
3437 * regformats/reg-cris.dat: Remove.
3438 * regformats/reg-crisv32.dat: Remove.
3439 * regformats/reg-m32r.dat: Remove.
3440 * regformats/reg-tilegx.dat: Remove.
3441 * regformats/reg-tilegx32.dat: Remove.
3442
7d458ea5
SM
34432020-06-17 Simon Marchi <simon.marchi@efficios.com>
3444
3445 * features/Makefile (WHICH): Remove arm files.
3446 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3447 * regformats/arm/arm-with-neon.dat: Remove.
3448 * regformats/arm/arm-with-vfpv2.dat: Remove.
3449 * regformats/arm/arm-with-vfpv3.dat: Remove.
3450
3af96c0d
SM
34512020-06-17 Simon Marchi <simon.marchi@efficios.com>
3452
3453 * features/Makefile (XMLTOC): Remove rx.xml.
3454
b25e22fd
PA
34552020-06-17 Pedro Alves <palves@redhat.com>
3456
3457 * gdbthread.h (thread_control_state) <trap_expected> Update
3458 comments.
3459
a78a19b1
AB
34602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3461
3462 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3463 ada_language::lookup_symbol_nonlocal.
3464 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3465 (ada_language::lookup_symbol_nonlocal): New member function,
3466 implementation from ada_lookup_symbol_nonlocal.
3467 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3468 initializer.
3469 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3470 initializer.
3471 (cplus_language::lookup_symbol_nonlocal): New member function.
3472 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3473 (minimal_language_data) Likewise.
3474 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3475 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3476 initializer.
3477 (d_language::lookup_symbol_nonlocal): New member function.
3478 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3479 initializer.
3480 (f_language::lookup_symbol_nonlocal): New member function.
3481 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3482 initializer.
3483 * language.c (unknown_language_data): Likewise.
3484 (auto_language_data): Likewise.
3485 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3486 field.
3487 (language_defn::lookup_symbol_nonlocal): New member function.
3488 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3489 initializer.
3490 * objc-lang.c (objc_language_data): Likewise.
3491 * opencl-lang.c (opencl_language_data): Likewise.
3492 * p-lang.c (pascal_language_data): Likewise.
3493 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3494 rust_language::lookup_symbol_nonlocal.
3495 (rust_language_data): Delete la_lookup_symbol_nonlocal
3496 initializer.
3497 (rust_language::lookup_symbol_nonlocal): New member function,
3498 implementation from rust_lookup_symbol_nonlocal.
3499 * symtab.c (lookup_symbol_aux): Update call to
3500 lookup_symbol_nonlocal.
3501 (basic_lookup_symbol_nonlocal): Rename to...
3502 (language_defn::lookup_symbol_nonlocal): ...this, and update
3503 header comment. Remove language_defn parameter, and replace with
3504 uses of `this'.
3505 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3506
ebe2334e
AB
35072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3508
3509 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3510 initializer.
3511 (ada_language::value_print_inner): New member function.
3512 * c-lang.c (c_language_data): Delete la_value_print_inner
3513 initializer.
3514 (cplus_language_data): Likewise.
3515 (asm_language_data): Likewise.
3516 (minimal_language_data): Likewise.
3517 * d-lang.c (d_language_data): Likewise.
3518 (d_language::value_print_inner): New member function.
3519 * f-lang.c (f_language_data): Delete la_value_print_inner
3520 initializer.
3521 (f_language::value_print_inner): New member function.
3522 * f-lang.h (f_value_print_innner): Rename to...
3523 (f_value_print_inner): ...this (note spelling of 'inner').
3524 * f-valprint.c (f_value_print_innner): Rename to...
3525 (f_value_print_inner): ...this (note spelling of 'inner').
3526 * go-lang.c (go_language_data): Delete la_value_print_inner
3527 initializer.
3528 (go_language::value_print_inner): New member function.
3529 * language.c (language_defn::value_print_inner): Define new member
3530 function.
3531 (unk_lang_value_print_inner): Delete.
3532 (unknown_language_data): Delete la_value_print_inner initializer.
3533 (unknown_language::value_print_inner): New member function.
3534 (auto_language_data): Delete la_value_print_inner initializer.
3535 (auto_language::value_print_inner): New member function.
3536 * language.h (language_data): Delete la_value_print_inner field.
3537 (language_defn::value_print_inner): Delcare new member function.
3538 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3539 initializer.
3540 (m2_language::value_print_inner): New member function.
3541 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3542 initializer.
3543 * opencl-lang.c (opencl_language_data): Likewise.
3544 * p-lang.c (pascal_language_data): Likewise.
3545 (pascal_language::value_print_inner): New member function.
3546 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3547 initializer.
3548 (rust_language::value_print_inner): New member function.
3549 * valprint.c (do_val_print): Update call to value_print_inner.
3550
a1d1fa3e
AB
35512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3552
3553 * ada-lang.c (ada_language_data): Delete la_value_print
3554 initializer.
3555 (ada_language::value_print): New member function.
3556 * c-lang.c (c_language_data): Delete la_value_print initializer.
3557 (cplus_language_data): Likewise.
3558 (asm_language_data): Likewise.
3559 (minimal_language_data): Likewise.
3560 * d-lang.c (d_language_data): Likewise.
3561 * f-lang.c (f_language_data): Likewise.
3562 * go-lang.c (go_language_data): Likewise.
3563 * language.c (unk_lang_value_print): Delete.
3564 (language_defn::value_print): Define new member function.
3565 (unknown_language_data): Delete la_value_print initializer.
3566 (unknown_language::value_print): New member function.
3567 (auto_language_data): Delete la_value_print initializer.
3568 (auto_language::value_print): New member function.
3569 * language.h (language_data): Delete la_value_print field.
3570 (language_defn::value_print): Declare new member function.
3571 (LA_VALUE_PRINT): Update call to value_print.
3572 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3573 * objc-lang.c (objc_language_data): Likewise.
3574 * opencl-lang.c (opencl_language_data): Likewise.
3575 * p-lang.c (pascal_language_data): Likewise.
3576 (pascal_language::value_print): New member function.
3577 * rust-lang.c (rust_language_data): Delete la_value_print
3578 initializer.
3579
f16a9f57
AB
35802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3581
3582 * ada-lang.c (ada_watch_location_expression): Rename to
3583 ada_language::watch_location_expression.
3584 (ada_language_data): Delete la_watch_location_expression
3585 initializer.
3586 (ada_language::watch_location_expression): New member function,
3587 implementation from ada_watch_location_expression.
3588 * breakpoint.c (watch_command_1): Update call to
3589 watch_location_expression.
3590 * c-lang.c (c_watch_location_expression): Rename to
3591 language_defn::watch_location_expression.
3592 (c_language_data): Delete la_watch_location_expression
3593 initializer.
3594 (cplus_language_data): Likewise.
3595 (asm_language_data): Likewise.
3596 (minimal_language_data): Likewise.
3597 * c-lang.h (c_watch_location_expression): Delete declaration.
3598 * d-lang.c (d_language_data): Delete la_watch_location_expression
3599 initializer.
3600 * f-lang.c (f_language_data): Likewise.
3601 * go-lang.c (go_language_data): Likewise.
3602 * language.c (language_defn::watch_location_expression): Member
3603 function implementation from c_watch_location_expression.
3604 (unknown_language_data): Delete la_watch_location_expression
3605 initializer.
3606 (auto_language_data): Likewise.
3607 * language.h (language_data): Delete la_watch_location_expression
3608 field.
3609 (language_defn::watch_location_expression): Declare new member
3610 function.
3611 * m2-lang.c (m2_language_data): Delete
3612 la_watch_location_expression initializer.
3613 * objc-lang.c (objc_language_data): Likewise.
3614 * opencl-lang.c (opencl_language_data): Likewise.
3615 * p-lang.c (pascal_language_data): Likewise.
3616 * rust-lang.c (rust_watch_location_expression): Rename to
3617 rust_language::watch_location_expression.
3618 (rust_language_data): Delete la_watch_location_expression
3619 initializer.
3620 (rust_language::watch_location_expression): New member function,
3621 implementation from rust_watch_location_expression.
3622
7e56227d
AB
36232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3624
3625 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3626 ada_language::collect_symbol_completion_matches.
3627 (ada_language_data): Delete la_collect_symbol_completion_matches
3628 initializer.
3629 (ada_language::collect_symbol_completion_matches): New member
3630 function, implementation from
3631 ada_collect_symbol_completion_matches.
3632 * c-lang.c (c_language_data): Delete
3633 la_collect_symbol_completion_matches initializer.
3634 (cplus_language_data): Likewise.
3635 (asm_language_data): Likewise.
3636 (minimal_language_data): Likewise.
3637 * d-lang.c (d_language_data): Likewise.
3638 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3639 f_language::collect_symbol_completion_matches.
3640 (f_language_data): Delete la_collect_symbol_completion_matches
3641 initializer.
3642 (f_language::collect_symbol_completion_matches) New member
3643 function, implementation from f_collect_symbol_completion_matches.
3644 * go-lang.c (go_language_data): Delete
3645 la_collect_symbol_completion_matches initializer.
3646 * language.c (unknown_language_data): Likewise.
3647 (auto_language_data): Likewise.
3648 * language.h (language_data): Delete
3649 la_collect_symbol_completion_matches field.
3650 (language_defn::collect_symbol_completion_matches): New member
3651 function.
3652 * m2-lang.c (m2_language_data): Delete
3653 la_collect_symbol_completion_matches initializer.
3654 * objc-lang.c (objc_language_data): Likewise.
3655 * opencl-lang.c (opencl_language_data): Likewise.
3656 * p-lang.c (pascal_language_data): Likewise.
3657 * rust-lang.c (rust_language_data): Likewise.
3658 * symtab.c (default_collect_symbol_completion_matches): Delete.
3659 (collect_symbol_completion_matches): Update call to
3660 collect_symbol_completion_matches.
3661 (collect_symbol_completion_matches_type): Likewise.
3662 * symtab.h (default_collect_symbol_completion_matches): Delete
3663 declaration.
3664
53fc67f8
AB
36652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3666
3667 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3668 (ada_language_data): Delete la_word_break_characters initializer.
3669 (ada_language::word_break_characters): New member function.
3670 * c-lang.c (c_language_data): Delete la_word_break_characters
3671 initializer.
3672 (cplus_language_data): Likewise.
3673 (asm_language_data): Likewise.
3674 (minimal_language_data): Likewise.
3675 * completer.c: Update global comment.
3676 (advance_to_expression_complete_word_point): Update call to
3677 word_break_characters.
3678 (complete_files_symbols): Likewise.
3679 (complete_line_internal_1): Likewise.
3680 (default_completer_handle_brkchars): Likewise.
3681 (skip_quoted_chars): Likewise.
3682 * d-lang.c (d_language_data): Delete la_word_break_characters
3683 initializer.
3684 * f-lang.c (f_word_break_characters): Delete.
3685 (f_language_data): Delete la_word_break_characters initializer.
3686 (f_language::word_break_characters): New member function.
3687 * go-lang.c (go_language_data): Delete la_word_break_characters
3688 initializer.
3689 * language.c (unknown_language_data): Likewise.
3690 (auto_language_data): Likewise.
3691 * language.h (default_word_break_characters): Move declaration to
3692 earlier in the file.
3693 (language_data): Delete la_word_break_characters field.
3694 (language_defn::word_break_characters): New member function.
3695 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3696 initializer.
3697 * objc-lang.c (objc_language_data): Likewise.
3698 * opencl-lang.c (opencl_language_data): Likewise.
3699 * p-lang.c (pascal_language_data): Likewise.
3700 * rust-lang.c (rust_language_data): Likewise.
3701
c9debfb9
AB
37022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3703
3704 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3705 (ada_language_data): Delete la_get_symbol_name_matcher
3706 initializer.
3707 (language_defn::get_symbol_name_matcher_inner): New member
3708 function.
3709 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3710 initializer.
3711 (cplus_language_data): Likewise.
3712 (cplus_language::get_symbol_name_matcher_inner): New member
3713 function.
3714 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3715 (minimal_language_data): Likewise.
3716 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3717 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3718 initializer.
3719 * dictionary.c (iter_match_first_hashed): Update call to
3720 get_symbol_name_matcher.
3721 (iter_match_next_hashed): Likewise.
3722 (iter_match_next_linear): Likewise.
3723 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3724 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3725 initializer.
3726 (f_language::get_symbol_name_matcher_inner): New member function.
3727 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3728 initializer.
3729 * language.c (default_symbol_name_matcher): Update header comment,
3730 make static.
3731 (language_defn::get_symbol_name_matcher): New definition.
3732 (language_defn::get_symbol_name_matcher_inner): Likewise.
3733 (get_symbol_name_matcher): Delete.
3734 (unknown_language_data): Delete la_get_symbol_name_matcher
3735 initializer.
3736 (auto_language_data): Likewise.
3737 * language.h (language_data): Delete la_get_symbol_name_matcher
3738 field.
3739 (language_defn::get_symbol_name_matcher): New member function.
3740 (language_defn::get_symbol_name_matcher_inner): Likewise.
3741 (default_symbol_name_matcher): Delete declaration.
3742 * linespec.c (find_methods): Update call to
3743 get_symbol_name_matcher.
3744 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3745 initializer.
3746 * minsyms.c (lookup_minimal_symbol): Update call to
3747 get_symbol_name_matcher.
3748 (iterate_over_minimal_symbols): Likewise.
3749 * objc-lang.c (objc_language_data): Delete
3750 la_get_symbol_name_matcher initializer.
3751 * opencl-lang.c (opencl_language_data): Likewise.
3752 * p-lang.c (pascal_language_data): Likewise.
3753 * psymtab.c (psymbol_name_matches): Update call to
3754 get_symbol_name_matcher.
3755 * rust-lang.c (rust_language_data): Delete
3756 la_get_symbol_name_matcher initializer.
3757 * symtab.c (symbol_matches_search_name): Update call to
3758 get_symbol_name_matcher.
3759 (compare_symbol_name): Likewise.
3760
9a49ad8c
AB
37612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3762
3763 * ada-lang.c (ada_language_data): Delete la_compute_program
3764 initializer.
3765 * c-lang.c (c_language_data): Likewise.
3766 (c_language::compute_program): New member function.
3767 (cplus_language_data): Delete la_compute_program initializer.
3768 (cplus_language::compute_program): New member function.
3769 (asm_language_data): Delete la_compute_program initializer.
3770 (minimal_language_data): Likewise.
3771 * c-lang.h (c_compute_program): Update comment.
3772 (cplus_compute_program): Likewise.
3773 * compile/compile-c-support.c (c_compute_program): Likewise.
3774 (cplus_compute_program): Likewise.
3775 * compile/compile.c (compile_to_object): Update call to
3776 la_compute_program.
3777 * d-lang.c (d_language_data): Delete la_compute_program
3778 initializer.
3779 * f-lang.c (f_language_data): Likewise.
3780 * go-lang.c (go_language_data): Likewise.
3781 * language.c (unknown_language_data): Likewise.
3782 (auto_language_data): Likewise.
3783 * language.h (language_data): Delete la_compute_program field.
3784 (language_defn::compute_program): New member function.
3785 * m2-lang.c (m2_language_data): Delete la_compute_program
3786 initializer.
3787 * objc-lang.c (objc_language_data): Likewise.
3788 * opencl-lang.c (opencl_language_data): Likewise.
3789 * p-lang.c (pascal_language_data): Likewise.
3790 * rust-lang.c (rust_language_data): Likewise.
3791
eff93b4d
AB
37922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3793
3794 * ada-lang.c (ada_language_data) Delete
3795 la_class_name_from_physname initializer.
3796 * c-lang.c (c_language_data): Likewise.
3797 (cplus_language_data): Likewise.
3798 (cplus_language::class_name_from_physname): New member function.
3799 (asm_language_data): Delete la_class_name_from_physname
3800 initializer.
3801 (minimal_language_data): Likewise.
3802 * d-lang.c (d_language_data): Likewise.
3803 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3804 method on language_defn class.
3805 (guess_full_die_structure_name): Likewise.
3806 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3807 initializer.
3808 * go-lang.c (go_language_data): Likewise.
3809 * language.c (language_class_name_from_physname): Delete.
3810 (unk_lang_class_name): Delete.
3811 (unknown_language_data): Delete la_class_name_from_physname
3812 initializer.
3813 (auto_language_data): Likewise.
3814 * language.h (language_data): Delete la_class_name_from_physname
3815 field.
3816 (language_defn::class_name_from_physname): New function.
3817 (language_class_name_from_physname): Delete declaration.
3818 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3819 initializer.
3820 * objc-lang.c (objc_language_data): Likewise.
3821 * opencl-lang.c (opencl_language_data): Likewise.
3822 * p-lang.c (pascal_language_data): Likewise.
3823 * rust-lang.c (rust_language_data): Likewise.
3824
de543742
TT
38252020-06-16 Tom Tromey <tom@tromey.com>
3826
3827 * tui/tui-data.h (STATUS_NAME): New macro.
3828 * tui/tui-layout.c (tui_remove_some_windows)
3829 (initialize_known_windows, tui_register_window)
3830 (tui_layout_split::remove_windows, initialize_layouts)
3831 (tui_new_layout_command): Don't use hard-coded window names.
3832
a350efd4
TT
38332020-06-16 Tom Tromey <tom@tromey.com>
3834
3835 PR tui/25348:
3836 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3837 tui_initialize_readline. Only run once. Call rl_initialize.
3838 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3839 tui_initialize_readline.
3840 * tui/tui-io.c (tui_setup_io): Call
3841 tui_ensure_readline_initialized.
3842 * tui/tui-interp.c (tui_interp::init): Update.
3843
39ec0490
TT
38442020-06-16 Tom Tromey <tom@tromey.com>
3845
3846 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3847 Also preserve the status window.
3848
d2d1ea20
TT
38492020-06-16 Tom Tromey <tom@tromey.com>
3850
3851 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3852 where m_window==nullptr.
3853
66920317
TT
38542020-06-15 Tom Tromey <tromey@adacore.com>
3855
3856 * windows-nat.c (windows_nat::handle_output_debug_string):
3857 Update.
3858 (windows_nat::handle_ms_vc_exception): Update.
3859 * target.h (target_read_string): Change API.
3860 * target.c (target_read_string): Change API.
3861 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3862 Update.
3863 * solib-frv.c (frv_current_sos): Update.
3864 * solib-dsbt.c (dsbt_current_sos): Update.
3865 * solib-darwin.c (darwin_current_sos): Update.
3866 * linux-thread-db.c (inferior_has_bug): Update.
3867 * expprint.c (print_subexp_standard): Update.
3868 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3869 (ada_exception_message_1): Update.
3870
a5d871dd
TT
38712020-06-15 Tom Tromey <tromey@adacore.com>
3872
3873 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3874
670e35fa
TT
38752020-06-15 Tom Tromey <tromey@adacore.com>
3876
3877 * valprint.c (read_string): Update comment.
3878 * target.c (MIN): Remove.
3879 (target_read_string): Rewrite.
3880
f5272a3b
TT
38812020-06-15 Tom Tromey <tromey@adacore.com>
3882
3883 * corefile.c (read_memory_string): Remove.
3884 * ada-valprint.c (ada_value_print_ptr): Update.
3885 * ada-lang.h (ada_tag_name): Change return type.
3886 * ada-lang.c (type_from_tag): Update.
3887 (ada_tag_name_from_tsd): Change return type. Use
3888 target_read_string.
3889 (ada_tag_name): Likewise.
3890 * gdbcore.h (read_memory_string): Don't declare.
3891
2c074f49
HD
38922020-06-14 Hannes Domani <ssbssa@yahoo.de>
3893
3894 * symtab.c (rbreak_command): Ignore Windows drive colon.
3895
6a17d503
SM
38962020-06-12 Simon Marchi <simon.marchi@efficios.com>
3897
3898 * NEWS: Mention removed GDBserver host support.
3899
453c733f
NC
39002020-06-12 Nelson Chu <nelson.chu@sifive.com>
3901
3902 * features/riscv/rebuild-csr-xml.sh: Updated.
3903
2b4e6a3f
TT
39042020-06-11 Tom Tromey <tom@tromey.com>
3905
3906 PR gdb/18318:
3907 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3908
4412332f
JG
39092020-06-09 Jonny Grant <jg@jguk.org>
39102020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3911
3912 * main.c (captured_main_1): Don't print new line after help.
3913 (print_gdb_help): add mailing list and IRC channel information
3914 to --help. Add new lines between items in the footer. Remove
3915 quotes around bug url.
3916
2f33032a
KS
39172020-06-11 Keith Seitz <keiths@redhat.com>
3918
3919 PR gdb/21356
3920 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3921 Resolve typedefs for type length calculations.
3922
7ab96794
TV
39232020-06-10 Tom de Vries <tdevries@suse.de>
3924
3925 PR ada/24713
3926 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3927 (write_psymbols): Enable .gdb_index for ada.
3928 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3929 ada.
3930
e5f3ece2
TV
39312020-06-10 Tom de Vries <tdevries@suse.de>
3932
3933 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3934 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3935 namei" instead of "const char *name" argument.
3936 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3937 dw2_symtab_iter_init.
3938
940da03e
SM
39392020-06-08 Simon Marchi <simon.marchi@efficios.com>
3940
3941 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3942 to use type::field and field::type instead.
3943
b6cdac4b
SM
39442020-06-08 Simon Marchi <simon.marchi@efficios.com>
3945
3946 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3947 to use field::type instead.
3948
5d14b6e5
SM
39492020-06-08 Simon Marchi <simon.marchi@efficios.com>
3950
3951 * gdbtypes.h (struct field) <type, set_type>: New methods.
3952 Rename `type` field to...
3953 <m_type>: ... this. Change references throughout to use type or
3954 set_type methods.
3955 (FIELD_TYPE): Use field::type. Change call sites that modify
3956 the field's type to use field::set_type instead.
3957
3d967001
SM
39582020-06-08 Simon Marchi <simon.marchi@efficios.com>
3959
3960 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3961 to use type::index_type instead.
3962
262abc0d
SM
39632020-06-08 Simon Marchi <simon.marchi@efficios.com>
3964
3965 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3966 methods.
3967 (TYPE_INDEX_TYPE): Use type::index_type.
3968 * gdbtypes.c (create_array_type_with_stride): Likewise.
3969
82836c92
TT
39702020-06-07 Tom Tromey <tom@tromey.com>
3971
3972 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3973 parameter.
3974 (generic_value_print): Update.
3975
940dace9
AB
39762020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3977
3978 Revert commit 982a38f60b0.
3979 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3980
982a38f6
AB
39812020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3982
3983 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3984 avoid use after free.
3985
82f06518
TV
39862020-06-05 Tom de Vries <tdevries@suse.de>
3987
3988 * NEWS: Fix typos.
3989
f8c41851
SM
39902020-06-04 Simon Marchi <simon.marchi@efficios.com>
3991
3992 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3993 the per_bfd object.
3994 (dwarf2_read_debug_names): Likewise.
3995 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3996 object when re-using a per_bfd object with an index.
3997
f9b5d5ea
TV
39982020-06-03 Tom de Vries <tdevries@suse.de>
3999
4000 PR symtab/26046
4001 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4002 children for C++.
4003 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4004 DW_TAG_subprogram.
4005
f6eee2d0
AB
40062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4007
4008 * ada-lang.c (ada_language_data): Delete skip_trampoline
4009 initializer.
4010 * c-lang.c (c_language_data): Likewise.
4011 (cplus_language_data): Likewise.
4012 (cplus_language::skip_trampoline): New member function.
4013 (asm_language_data): Delete skip_trampoline initializer.
4014 (minimal_language_data): Likewise.
4015 * d-lang.c (d_language_data): Likewise.
4016 * f-lang.c (f_language_data): Likewise.
4017 * go-lang.c (go_language_data): Likewise.
4018 * language.c (unk_lang_trampoline): Delete function.
4019 (skip_language_trampoline): Update.
4020 (unknown_language_data): Delete skip_trampoline initializer.
4021 (auto_language_data): Likewise.
4022 * language.h (language_data): Delete skip_trampoline field.
4023 (language_defn::skip_trampoline): New function.
4024 * m2-lang.c (m2_language_data): Delete skip_trampoline
4025 initializer.
4026 * objc-lang.c (objc_skip_trampoline): Delete function, move
4027 implementation to objc_language::skip_trampoline.
4028 (objc_language_data): Delete skip_trampoline initializer.
4029 (objc_language::skip_trampoline): New member function with
4030 implementation from objc_skip_trampoline.
4031 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4032 initializer.
4033 * p-lang.c (pascal_language_data): Likewise.
4034 * rust-lang.c (rust_language_data): Likewise.
4035
0a50df5d
AB
40362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4037
4038 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4039 (ada_language::demangle): New member function.
4040 * c-lang.c (c_language_data): Delete la_demangle initializer.
4041 (cplus_language_data): Delete la_demangle initializer.
4042 (cplus_language::demangle): New member function.
4043 (asm_language_data): Delete la_demangle initializer.
4044 (minimal_language_data): Delete la_demangle initializer.
4045 * d-lang.c (d_language_data): Delete la_demangle initializer.
4046 (d_language::demangle): New member function.
4047 * f-lang.c (f_language_data): Delete la_demangle initializer.
4048 (f_language::demangle): New member function.
4049 * go-lang.c (go_language_data): Delete la_demangle initializer.
4050 (go_language::demangle): New member function.
4051 * language.c (language_demangle): Update.
4052 (unk_lang_demangle): Delete.
4053 (unknown_language_data): Delete la_demangle initializer.
4054 (unknown_language::demangle): New member function.
4055 (auto_language_data): Delete la_demangle initializer.
4056 (auto_language::demangle): New member function.
4057 * language.h (language_data): Delete la_demangle field.
4058 (language_defn::demangle): New function.
4059 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4060 * objc-lang.c (objc_language_data): Delete la_demangle
4061 initializer.
4062 (objc_language::demangle): New member function.
4063 * opencl-lang.c (opencl_language_data): Delete la_demangle
4064 initializer.
4065 * p-lang.c (pascal_language_data): Likewise.
4066 * rust-lang.c (rust_language_data): Likewise.
4067 (rust_language::demangle): New member function.
4068
fbfb0a46
AB
40692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4070
4071 * ada-lang.c (ada_language_data): Delete la_print_type
4072 initializer.
4073 (ada_language::print_type): New member function.
4074 * c-lang.c (c_language_data): Delete la_print_type initializer.
4075 (c_language::print_type): New member function.
4076 (cplus_language_data): Delete la_print_type initializer.
4077 (cplus_language::print_type): New member function.
4078 (asm_language_data): Delete la_print_type initializer.
4079 (asm_language::print_type): New member function.
4080 (minimal_language_data): Delete la_print_type initializer.
4081 (minimal_language::print_type): New member function.
4082 * d-lang.c (d_language_data): Delete la_print_type initializer.
4083 (d_language::print_type): New member function.
4084 * f-lang.c (f_language_data): Delete la_print_type initializer.
4085 (f_language::print_type): New member function.
4086 * go-lang.c (go_language_data): Delete la_print_type initializer.
4087 (go_language::print_type): New member function.
4088 * language.c (unk_lang_print_type): Delete.
4089 (unknown_language_data): Delete la_print_type initializer.
4090 (unknown_language::print_type): New member function.
4091 (auto_language_data): Delete la_print_type initializer.
4092 (auto_language::print_type): New member function.
4093 * language.h (language_data): Delete la_print_type field.
4094 (language_defn::print_type): New function.
4095 (LA_PRINT_TYPE): Update.
4096 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
4097 (m2_language::print_type): New member function.
4098 * objc-lang.c (objc_language_data): Delete la_print_type
4099 initializer.
4100 (objc_language::print_type): New member function.
4101 * opencl-lang.c (opencl_print_type): Delete, implementation moved
4102 to opencl_language::print_type.
4103 (opencl_language_data): Delete la_print_type initializer.
4104 (opencl_language::print_type): New member function, implementation
4105 from opencl_print_type.
4106 * p-lang.c (pascal_language_data): Delete la_print_type
4107 initializer.
4108 (pascal_language::print_type): New member function.
4109 * rust-lang.c (rust_print_type): Delete, implementation moved to
4110 rust_language::print_type.
4111 (rust_language_data): Delete la_print_type initializer.
4112 (rust_language::print_type): New member function, implementation
4113 from rust_print_type.
4114
6f827019
AB
41152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4116
4117 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
4118 implementation moves to...
4119 (ada_language::sniff_from_mangled_name): ...here. Update return
4120 type.
4121 (ada_language_data): Delete la_sniff_from_mangled_name
4122 initializer.
4123 * c-lang.c (c_language_data): Likewise.
4124 (cplus_language_data): Likewise.
4125 (cplus_language::sniff_from_mangled_name): New member function,
4126 implementation taken from gdb_sniff_from_mangled_name.
4127 (asm_language_data): Delete la_sniff_from_mangled_name
4128 initializer.
4129 (minimal_language_data): Likewise.
4130 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
4131 implementation moves to cplus_language::sniff_from_mangled_name.
4132 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
4133 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
4134 moves to...
4135 (d_language::sniff_from_mangled_name): ...here.
4136 (d_language_data): Delete la_sniff_from_mangled_name initializer.
4137 * f-lang.c (f_language_data): Likewise.
4138 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
4139 moves to...
4140 (go_language::sniff_from_mangled_name): ...here.
4141 (go_language_data): Delete la_sniff_from_mangled_name initializer.
4142 * language.c (language_sniff_from_mangled_name): Delete.
4143 (unknown_language_data): Delete la_sniff_from_mangled_name
4144 initializer.
4145 (auto_language_data): Likewise.
4146 * language.h (language_data): Delete la_sniff_from_mangled_name
4147 field.
4148 (language_defn::sniff_from_mangled_name): New function.
4149 (language_sniff_from_mangled_name): Delete declaration.
4150 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
4151 field.
4152 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
4153 implementation moves to...
4154 (objc_language::sniff_from_mangled_name): ...here.
4155 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
4156 * opencl-lang.c (opencl_language_data): Likewise.
4157 * p-lang.c (pascal_language_data): Likewise.
4158 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
4159 implementation moves to...
4160 (rust_language::sniff_from_mangled_name): ...here.
4161 (rust_language_data): Delete la_sniff_from_mangled_name
4162 initializer.
4163 * symtab.c (symbol_find_demangled_name): Call
4164 sniff_from_mangled_name member function.
4165
fb8006fd
AB
41662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4167
4168 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4169 initializer.
4170 * c-lang.c (c_language_data): Likewise.
4171 (cplus_language_data): Likewise.
4172 (cplus_language::search_name_hash): New member function.
4173 (asm_language_data): Delete la_search_name_hash initializer.
4174 (minimal_language_data): Likewise.
4175 * d-lang.c (d_language_data): Likewise.
4176 * dictionary.c (default_search_name_hash): Rename to...
4177 (language_defn::search_name_hash): ...this.
4178 * f-lang.c (f_language_data): Likewise.
4179 (f_language::search_name_hash): New member function.
4180 * go-lang.c (go_language_data): Delete la_search_name_hash
4181 initializer.
4182 * language.c (unknown_language_data): Likewise.
4183 (auto_language_data): Likewise.
4184 * language.h (struct language_data): Delete la_search_name_hash
4185 field.
4186 (language_defn::search_name_hash): Declare new member function.
4187 (default_search_name_hash): Delete declaration.
4188 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4189 initializer.
4190 * objc-lang.c (objc_language_data): Likewise.
4191 * opencl-lang.c (opencl_language_data): Likewise.
4192 * p-lang.c (pascal_language_data): Likewise.
4193 * rust-lang.c (rust_language_data): Likewise.
4194 * symtab.c (search_name_hash): Update call.
4195
8e25bafe
AB
41962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4197
4198 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4199 initializer.
4200 * c-lang.c (class compile_instance): Declare.
4201 (c_language_data): Delete la_get_compile_instance initializer.
4202 (c_language::get_compile_instance): New member function.
4203 (cplus_language_data): Delete la_get_compile_instance initializer.
4204 (cplus_language::get_compile_instance): New member function.
4205 (asm_language_data): Delete la_get_compile_instance initializer.
4206 (minimal_language_data): Likewise.
4207 * c-lang.h (c_get_compile_context): Update comment.
4208 (cplus_get_compile_context): Update comment.
4209 * compile/compile.c (compile_to_object): Update calls, don't rely
4210 on function pointer being NULL.
4211 * d-lang.c (d_language_data): Delete la_get_compile_instance
4212 initializer.
4213 * f-lang.c (f_language_data): Likewise.
4214 * go-lang.c (go_language_data): Likewise.
4215 * language.c (unknown_language_data): Likewise.
4216 (auto_language_data): Likewise.
4217 * language.h (language_data): Delete la_get_compile_instance field.
4218 (language_defn::get_compile_instance): New member function.
4219 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4220 initializer.
4221 * objc-lang.c (objc_language_data): Likewise.
4222 * opencl-lang.c (opencl_language_data): Likewise.
4223 * p-lang.c (pascal_language_data): Likewise.
4224 * rust-lang.c (rust_language_data): Likewise.
4225
4009ee92
AB
42262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4227
4228 * ada-lang.c (ada_add_all_symbols): Update comment.
4229 (ada_iterate_over_symbols): Delete, move implementation to...
4230 (ada_language::iterate_over_symbols): ...here, a new member
4231 function, rewrite to use range based for loop.
4232 (ada_language_data): Delete la_iterate_over_symbols initializer.
4233 * c-lang.c (c_language_data): Likewise.
4234 (cplus_language_data): Likewise.
4235 (asm_language_data): Likewise.
4236 (minimal_language_data): Likewise.
4237 * d-lang.c (d_language_data): Likewise.
4238 * f-lang.c (f_language_data): Likewise.
4239 * go-lang.c (go_language_data): Likewise.
4240 * language.c (unknown_language_data): Likewise.
4241 (auto_language_data): Likewise.
4242 * language.h (language_data): Delete la_iterate_over_symbols field.
4243 (language_defn::iterate_over_symbols): New member function.
4244 (LA_ITERATE_OVER_SYMBOLS): Update.
4245 * linespec.c (iterate_over_all_matching_symtabs): Update.
4246 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4247 initializer.
4248 * objc-lang.c (objc_language_data): Likewise.
4249 * opencl-lang.c (opencl_language_data): Likewise.
4250 * p-lang.c (pascal_language_data): Likewise.
4251 * rust-lang.c (rust_language_data): Likewise.
4252
54f4ca46
AB
42532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4254
4255 * ada-lang.c (ada_language_data): Delete
4256 la_lookup_transparent_type initializer.
4257 * c-lang.c (c_language_data): Likewise.
4258 (cplus_language_data): Likewise.
4259 (cplus_language::lookup_transparent_type): New member function.
4260 (asm_language_data): Delete la_lookup_transparent_type
4261 initializer.
4262 (minimal_language_data): Likewise.
4263 * d-lang.c (d_language_data): Likewise.
4264 * f-lang.c (f_language_data): Likewise.
4265 * go-lang.c (go_language_data): Likewise.
4266 * language.c (unknown_language_data): Likewise.
4267 (auto_language_data): Likewise.
4268 * language.h (struct language_data): Delete
4269 la_lookup_transparent_type field.
4270 (language_defn::lookup_transparent_type): New member function.
4271 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4272 initializer.
4273 * objc-lang.c (objc_language_data): Likewise.
4274 * opencl-lang.c (opencl_language_data): Likewise.
4275 * p-lang.c (pascal_language_data): Likewise.
4276 * rust-lang.c (rust_language_data): Likewise.
4277 * symtab.c (symbol_matches_domain): Update call.
4278
1fb314aa
AB
42792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4280
4281 * ada-lang.c (ada_language_arch_info): Delete function, move
4282 implementation to...
4283 (ada_language::language_arch_info): ...here, a new member
4284 function.
4285 (ada_language_data): Delete la_language_arch_info.
4286 * c-lang.c (c_language_data): Likewise.
4287 (c_language::language_arch_info): New member function.
4288 (cplus_language_arch_info): Delete function, move
4289 implementation to...
4290 (cplus_language::language_arch_info): ...here, a new member
4291 function.
4292 (cplus_language_data): Delete la_language_arch_info.
4293 (asm_language_data): Likewise.
4294 (asm_language::language_arch_info): New member function.
4295 (minimal_language_data): Delete la_language_arch_info.
4296 (minimal_language::language_arch_info): New member function.
4297 * d-lang.c (d_language_arch_info): Delete function, move
4298 implementation to...
4299 (d_language::language_arch_info): ...here, a new member
4300 function.
4301 (d_language_data): Delete la_language_arch_info.
4302 * f-lang.c (f_language_arch_info): Delete function, move
4303 implementation to...
4304 (f_language::language_arch_info): ...here, a new member
4305 function.
4306 (f_language_data): Delete la_language_arch_info.
4307 * go-lang.c (go_language_arch_info): Delete function, move
4308 implementation to...
4309 (go_language::language_arch_info): ...here, a new member
4310 function.
4311 (go_language_data): Delete la_language_arch_info.
4312 * language.c (unknown_language_data): Likewise.
4313 (unknown_language::language_arch_info): New member function.
4314 (auto_language_data): Delete la_language_arch_info.
4315 (auto_language::language_arch_info): New member function.
4316 (language_gdbarch_post_init): Update call to
4317 la_language_arch_info.
4318 * language.h (language_data): Delete la_language_arch_info
4319 function pointer.
4320 (language_defn::language_arch_info): New function.
4321 * m2-lang.c (m2_language_arch_info): Delete function, move
4322 implementation to...
4323 (m2_language::language_arch_info): ...here, a new member
4324 function.
4325 (m2_language_data): Delete la_language_arch_info.
4326 * objc-lang.c (objc_language_arch_info): Delete function, move
4327 implementation to...
4328 (objc_language::language_arch_info): ...here, a new member
4329 function.
4330 (objc_language_data): Delete la_language_arch_info.
4331 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4332 implementation to...
4333 (opencl_language::language_arch_info): ...here, a new member
4334 function.
4335 (opencl_language_data): Delete la_language_arch_info.
4336 * p-lang.c (pascal_language_arch_info): Delete function, move
4337 implementation to...
4338 (pascal_language::language_arch_info): ...here, a new member
4339 function.
4340 (pascal_language_data): Delete la_language_arch_info.
4341 * rust-lang.c (rust_language_arch_info): Delete function, move
4342 implementation to...
4343 (rust_language::language_arch_info): ...here, a new member
4344 function.
4345 (rust_language_data): Delete la_language_arch_info.
4346
48448202
AB
43472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4348
4349 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4350 initializer.
4351 * c-lang.c (c_language_data): Likewise.
4352 (cplus_language_data): Likewise.
4353 (cplus_language::pass_by_reference_info): New method.
4354 (asm_language_data): Delete la_pass_by_reference initializer.
4355 (minimal_language_data): Likewise.
4356 * cp-abi.c (cp_pass_by_reference): Remove use of
4357 default_pass_by_reference.
4358 * d-lang.c (d_language_data): Likewise.
4359 * f-lang.c (f_language_data): Likewise.
4360 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4361 default_pass_by_reference.
4362 * go-lang.c (go_language_data): Likewise.
4363 * language.c (language_pass_by_reference): Update.
4364 (default_pass_by_reference): Delete.
4365 (unknown_language_data): Delete la_pass_by_reference
4366 initializer.
4367 (auto_language_data): Likewise.
4368 * language.h (struct language_data): Delete la_pass_by_reference
4369 field.
4370 (language_defn::pass_by_reference_info): New member function.
4371 (default_pass_by_reference): Delete declaration.
4372 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4373 initializer.
4374 * objc-lang.c (objc_language_data): Likewise.
4375 * opencl-lang.c (opencl_language_data): Likewise.
4376 * p-lang.c (pascal_language_data): Likewise.
4377 * rust-lang.c (rust_language_data): Likewise.
4378
15e5fd35
AB
43792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4380
4381 * ada-lang.c (ada_read_var_value): Delete function, move
4382 implementation to...
4383 (ada_language::read_var_value): ...here.
4384 (ada_language_data): Delete la_read_var_value initializer.
4385 * c-lang.c (c_language_data): Likewise.
4386 (cplus_language_data): Likewise.
4387 (minimal_language_data): Likewise.
4388 * d-lang.c (d_language_data): Likewise.
4389 * f-lang.c (f_language_data): Likewise.
4390 * findvar.c (default_read_var_value): Rename to...
4391 (language_defn::read_var_value): ...this.
4392 * findvar.c (read_var_value): Update header comment, and change to
4393 call member function instead of function pointer.
4394 * go-lang.c (go_language_data): Likewise.
4395 * language.c (unknown_language_data): Delete la_read_var_value
4396 initializer.
4397 (auto_language_data): Likewise.
4398 * language.h (struct language_data): Delete la_read_var_value
4399 field.
4400 (language_defn::read_var_value): New member function.
4401 (default_read_var_value): Delete declaration.
4402 * m2-lang.c (m2_language_data): Delete la_read_var_value
4403 initializer.
4404 * objc-lang.c (objc_language_data): Likewise.
4405 * opencl-lang.c (opencl_language_data): Likewise.
4406 * p-lang.c (pascal_language_data): Likewise.
4407 * rust-lang.c (rust_language_data): Likewise.
4408 * value.h (default_read_var_value): Delete declaration.
4409
5bd40f2a
AB
44102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4411
4412 * ada-lang.c (ada_print_array_index): Delete function, move
4413 implementation to...
4414 (ada_language::print_array_index): ...here.
4415 (ada_language_data): Delete la_print_array_index initializer.
4416 * c-lang.c (c_language_data): Likewise.
4417 (cplus_language_data): Likewise.
4418 (minimal_language_data): Likewise.
4419 * d-lang.c (d_language_data): Likewise.
4420 * f-lang.c (f_language_data): Likewise.
4421 * go-lang.c (go_language_data): Likewise.
4422 * language.c (default_print_array_index): Delete function, move
4423 implementation to...
4424 (language_defn::print_array_index): ...here.
4425 (unknown_language_data): Delete la_print_array_index initializer.
4426 (auto_language_data): Likewise.
4427 * language.h (struct language_data): Delete la_print_array_index
4428 field.
4429 (language_defn::print_array_index): New member function.
4430 (LA_PRINT_ARRAY_INDEX): Update.
4431 (default_print_array_index): Delete declaration.
4432 * m2-lang.c (m2_language_data): Delete la_print_array_index
4433 initializer.
4434 * objc-lang.c (objc_language_data): Likewise.
4435 * opencl-lang.c (opencl_language_data): Likewise.
4436 * p-lang.c (pascal_language_data): Likewise.
4437 * rust-lang.c (rust_language_data): Likewise.
4438
0874fd07
AB
44392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4440
4441 * gdb/ada-lang.c (ada_language_defn): Convert to...
4442 (ada_language_data): ...this.
4443 (class ada_language): New class.
4444 (ada_language_defn): New static global.
4445 * gdb/c-lang.c (c_language_defn): Convert to...
4446 (c_language_data): ...this.
4447 (class c_language): New class.
4448 (c_language_defn): New static global.
4449 (cplus_language_defn): Convert to...
4450 (cplus_language_data): ...this.
4451 (class cplus_language): New class.
4452 (cplus_language_defn): New static global.
4453 (asm_language_defn): Convert to...
4454 (asm_language_data): ...this.
4455 (class asm_language): New class.
4456 (asm_language_defn): New static global.
4457 (minimal_language_defn): Convert to...
4458 (minimal_language_data): ...this.
4459 (class minimal_language): New class.
4460 (minimal_language_defn): New static global.
4461 * gdb/d-lang.c (d_language_defn): Convert to...
4462 (d_language_data): ...this.
4463 (class d_language): New class.
4464 (d_language_defn): New static global.
4465 * gdb/f-lang.c (f_language_defn): Convert to...
4466 (f_language_data): ...this.
4467 (class f_language): New class.
4468 (f_language_defn): New static global.
4469 * gdb/go-lang.c (go_language_defn): Convert to...
4470 (go_language_data): ...this.
4471 (class go_language): New class.
4472 (go_language_defn): New static global.
4473 * gdb/language.c (unknown_language_defn): Remove declaration.
4474 (current_language): Initialize to nullptr, real initialization is
4475 moved to _initialize_language.
4476 (languages): Delete global.
4477 (language_defn::languages): Define.
4478 (set_language_command): Use language_defn::languages.
4479 (set_language): Likewise.
4480 (range_error): Likewise.
4481 (language_enum): Likewise.
4482 (language_def): Likewise.
4483 (add_set_language_command): Use language_def::languages for the
4484 language list, and language_def to lookup language pointers.
4485 (skip_language_trampoline): Use language_defn::languages.
4486 (unknown_language_defn): Convert to...
4487 (unknown_language_data): ...this.
4488 (class unknown_language): New class.
4489 (unknown_language_defn): New static global.
4490 (auto_language_defn): Convert to...
4491 (auto_language_data): ...this.
4492 (class auto_language): New class.
4493 (auto_language_defn): New static global.
4494 (language_gdbarch_post_init): Use language_defn::languages.
4495 (_initialize_language): Initialize current_language.
4496 * gdb/language.h (struct language_defn): Rename to...
4497 (struct language_data): ...this.
4498 (struct language_defn): New.
4499 (auto_language_defn): Delete.
4500 (unknown_language_defn): Delete.
4501 (minimal_language_defn): Delete.
4502 (ada_language_defn): Delete.
4503 (asm_language_defn): Delete.
4504 (c_language_defn): Delete.
4505 (cplus_language_defn): Delete.
4506 (d_language_defn): Delete.
4507 (f_language_defn): Delete.
4508 (go_language_defn): Delete.
4509 (m2_language_defn): Delete.
4510 (objc_language_defn): Delete.
4511 (opencl_language_defn): Delete.
4512 (pascal_language_defn): Delete.
4513 (rust_language_defn): Delete.
4514 * gdb/m2-lang.c (m2_language_defn): Convert to...
4515 (m2_language_data): ...this.
4516 (class m2_language): New class.
4517 (m2_language_defn): New static global.
4518 * gdb/objc-lang.c (objc_language_defn): Convert to...
4519 (objc_language_data): ...this.
4520 (class objc_language): New class.
4521 (objc_language_defn): New static global.
4522 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4523 (opencl_language_data): ...this.
4524 (class opencl_language): New class.
4525 (opencl_language_defn): New static global.
4526 * gdb/p-lang.c (pascal_language_defn): Convert to...
4527 (pascal_language_data): ...this.
4528 (class pascal_language): New class.
4529 (pascal_language_defn): New static global.
4530 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4531 language pointer, update comment format.
4532 * gdb/rust-lang.c (rust_language_defn): Convert to...
4533 (rust_language_data): ...this.
4534 (class rust_language): New class.
4535 (rust_language_defn): New static global.
4536
1313c56e
AB
45372020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4538
4539 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4540 member variable.
4541 <m_stmt_at_address>: New member variable.
4542 (lnp_state_machine::record_line): Don't record some lines, update
4543 tracking of is_stmt at the same address.
4544 (lnp_state_machine::lnp_state_machine): Initialise new member
4545 variables.
4546
b7ed9f3d
ST
45472020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4548
4549 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4550 "-include gnu-nat-mig.h".
4551 * gnu-nat-mig.h: New file.
4552 * gnu-nat.c: Include "gnu-nat-mig.h".
4553 (exc_server, msg_reply_server, notify_server,
4554 process_reply_server): Remove declarations.
4555
14a8ad62
ST
45562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4557
4558 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4559 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4560 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4561 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4562 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4563 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4564 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4565 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4566 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4567 to gnu_nat_target class.
4568 * gnu-nat.c: Likewise.
4569 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4570 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4571 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4572 object.
4573 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4574 instead of `gnu_target'.
4575
0af5e106
ST
45762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4577
4578 * i386-gnu-tdep.c: Include "gdbcore.h"
4579 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4580 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4581 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4582 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4583 i386_gnu_sigcontext_addr): New functions
4584 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4585 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4586 tdep.
4587
078f2fc9
ST
45882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4589
4590 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4591 before fork_inferior call. Avoid calling it if target_is_pushed returns
4592 true.
4593
53dff92c
ST
45942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4595
4596 * gnu-nat.h (gnu_target): New variable declaration.
4597 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4598 gnu_target.
4599 * gnu-nat.c (gnu_target): New variable.
4600 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4601 add_thread_silent, and add_thread calls.
4602 (gnu_nat_target::create_inferior): Pass gnu_target to
4603 add_thread_silent, thread_change_ptid call.
4604 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4605 call.
4606
5a8b8627
ST
46072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4608
4609 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4610 (gnu_nat_target::find_memory_regions): Remove unused
4611 `old_address' variable.
4612
366f550a
ST
46132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4614
4615 * gnu-nat.c: Include "gdbarch.h".
4616
f14871bf
ST
46172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4618
4619 * reply_mig_hack.awk (Error return): Cast function through
4620 void *, to bypass compiler function call check.
4621
c6887cfb
ST
46222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4623
4624 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4625 $(srcdir)/reply_mig_hack.awk.
4626
6930bffe
ST
46272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4628
4629 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4630
112c22ed
JG
46312020-05-30 Jonny Grant <jg@jguk.org>
4632
4633 * configure.ac (ACX_BUGURL): change bug URL to https.
4634
f68f85b5
PA
46352020-05-30 Pedro Alves <palves@redhat.com>
4636
4637 * cp-support.c (replace_typedefs_template): New.
4638 (replace_typedefs_qualified_name): Handle
4639 DEMANGLE_COMPONENT_TEMPLATE.
4640
976ca316
SM
46412020-05-29 Simon Marchi <simon.marchi@efficios.com>
4642
4643 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4644 dwarf2/index-cache.h, dwarf2/index-write.c,
4645 dwarf2/index-write.h, dwarf2/line-header.c,
4646 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4647 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4648 variables and fields from `dwarf2_per_objfile` to just
4649 `per_objfile` throughout.
4650
989ade05
SM
46512020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4652
4653 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4654 <push_dwarf_reg_entry_value>: Add comment.
4655
c47bae85
KB
46562020-05-28 Kevin Buettner <kevinb@redhat.com>
4657 Keith Seitz <keiths@redhat.com>
4658
4659 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4660 instead of PyEval_ReleaseLock.
4661 (class gdbpy_gil): Move to earlier in file.
4662 (finalize_python): Set gdb_python_initialized.
4663 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4664 when not initialized.
4665
44486dcf
SM
46662020-05-28 Simon Marchi <simon.marchi@efficios.com>
4667
4668 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4669 <push_dwarf_reg_entry_value>: Remove assert. Override
4670 per_objfile with caller_per_objfile.
4671
f030440d
TV
46722020-05-28 Tom de Vries <tdevries@suse.de>
4673
4674 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4675 PR gold/15646 workaround to symbol kind "type".
4676
f0fbb768
TT
46772020-05-27 Tom Tromey <tromey@adacore.com>
4678
4679 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4680
af0b2a3e
TT
46812020-05-27 Tom Tromey <tromey@adacore.com>
4682
4683 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4684 Use htab_find_with_hash.
4685 <add_abbrev>: Remove "abbrev_number" parameter.
4686 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4687 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4688 (hash_abbrev): Add comment.
4689 (abbrev_table::lookup_abbrev): Move to header file.
4690 (abbrev_table::read): Update.
4691
7d00ffec
TT
46922020-05-27 Tom Tromey <tromey@adacore.com>
4693
4694 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4695 method.
4696 <canonical_name>: New member.
4697 <raw_name>: Rename from "name".
4698 (partial_die_info): Initialize canonical_name.
4699 (scan_partial_symbols): Check raw_name.
4700 (partial_die_parent_scope, partial_die_full_name)
4701 (add_partial_symbol, add_partial_subprogram)
4702 (add_partial_enumeration, load_partial_dies): Use "name" method.
4703 (partial_die_info::name): New method.
4704 (partial_die_info::read, guess_partial_die_structure_name)
4705 (partial_die_info::fixup): Update.
4706
697bba18
TT
47072020-05-27 Tom Tromey <tromey@adacore.com>
4708
4709 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4710 <get_ref_die_offset>: Inline.
4711 <get_ref_die_offset_complaint>: New method.
4712 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4713 (attribute::get_ref_die_offset_complaint): Rename from
4714 get_ref_die_offset. Just issue complaint.
4715
c17ace43
HD
47162020-05-27 Hannes Domani <ssbssa@yahoo.de>
4717
4718 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4719
96445f0b
HD
47202020-05-27 Hannes Domani <ssbssa@yahoo.de>
4721
4722 * exec.c (exec_file_attach): Use errno value of first openp failure.
4723
ac637ec3
HD
47242020-05-27 Hannes Domani <ssbssa@yahoo.de>
4725
4726 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4727 Don't close thread handle.
4728
17ee85fc
TT
47292020-05-27 Tom Tromey <tom@tromey.com>
4730 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4733 shared_ptr.
4734 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4735 member.
4736 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4737 dwarf2_per_bfd_objfile_data_key>: New globals.
4738 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4739 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4740 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4741 shared.
4742 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4743 short-circuit when sharing.
4744 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4745 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4746
39b16f87
SM
47472020-05-27 Simon Marchi <simon.marchi@efficios.com>
4748
4749 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4750 to...
4751 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4752 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4753
fcf23d5b
SM
47542020-05-27 Simon Marchi <simon.marchi@efficios.com>
4755
4756 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4757 build_name_components, find_name_components_bounds>:
4758 Add per_objfile parameter.
4759 (struct mapped_index) <symbol_name_at>: Likewise.
4760 (struct mapped_debug_names): Remove constructor.
4761 <dwarf2_per_objfile>: Remove field.
4762 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4763 (mapped_index_base::find_name_components_bounds,
4764 mapped_index_base::build_name_components,
4765 dw2_expand_symtabs_matching_symbol): Likewise.
4766 (class mock_mapped_index) <symbol_name_at>: Likewise.
4767 (check_match): Likewise.
4768 (check_find_bounds_finds): Likewise.
4769 (test_mapped_index_find_name_component_bounds): Update.
4770 (CHECK_MATCH): Update.
4771 (dw2_expand_symtabs_matching): Update.
4772 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4773 per_objfile parameter.
4774 <find_vec_in_debug_names>: Likewise.
4775 <m_per_objfile>: New field.
4776 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4777 parameter.
4778 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4779 (dw2_debug_names_iterator::next): Update.
4780 (dw2_debug_names_lookup_symbol): Update.
4781 (dw2_debug_names_expand_symtabs_for_function): Update.
4782 (dw2_debug_names_map_matching_symbols): Update.
4783 (dw2_debug_names_expand_symtabs_matching): Update.
4784 (dwarf2_read_debug_names): Update.
4785
7188ed02
SM
47862020-05-27 Simon Marchi <simon.marchi@efficios.com>
4787
4788 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4789 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4790 move to dwarf2_per_objfile.
4791 <read_in_chain>: Remove.
4792 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4793 remove_all_cus, age_comp_units>: New methods.
4794 <m_dwarf2_cus>: New member.
4795 (struct dwarf2_per_cu_data) <cu>: Remove.
4796 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4797 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4798 moved to methods of dwarf2_per_objfile.
4799 (dwarf2_clear_marks): Remove.
4800 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4801 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4802 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4803 (dwarf2_per_objfile::remove_all_cus): New.
4804 (class free_cached_comp_units) <~free_cached_comp_units>:
4805 Update.
4806 (load_cu): Update.
4807 (dw2_do_instantiate_symtab): Adjust.
4808 (fill_in_sig_entry_from_dwo_entry): Adjust.
4809 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4810 (cutu_reader::cutu_reader): Likewise.
4811 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4812 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4813 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4814 and dwarf2_per_objfile::age_comp_units.
4815 (load_partial_comp_unit): Update.
4816 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4817 (process_queue): Likewise.
4818 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4819 backlink.
4820 (dwarf2_read_addr_index): Likewise.
4821 (follow_die_offset): Likewise.
4822 (dwarf2_fetch_die_loc_sect_off): Likewise.
4823 (dwarf2_fetch_constant_bytes): Likewise.
4824 (dwarf2_fetch_die_type_sect_off): Likewise.
4825 (follow_die_sig_1): Likewise.
4826 (load_full_type_unit): Likewise.
4827 (read_signatured_type): Likewise.
4828 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4829 (dwarf2_cu::~dwarf2_cu): Remove.
4830 (dwarf2_per_objfile::get_cu): New.
4831 (dwarf2_per_objfile::set_cu): New.
4832 (age_cached_comp_units): Rename to...
4833 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4834 to std::unordered_map.
4835 (free_one_cached_comp_unit): Rename to...
4836 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4837 to std::unordered_map.
4838 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4839 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4840 a dwarf2_per_objfile in data.
4841 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4842 (dwarf2_clear_marks): Remove.
4843
2e671100
SM
48442020-05-27 Simon Marchi <simon.marchi@efficios.com>
4845
4846 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4847 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4848 (init_tu_and_read_dwo_dies): Likewise.
4849 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4850 (cutu_reader::cutu_reader): Likewise.
4851 (load_partial_comp_unit): Likewise.
4852 (process_psymtab_comp_unit): Update.
4853 (build_type_psymtabs_1): Update.
4854 (process_skeletonless_type_unit): Update.
4855 (load_full_comp_unit): Update.
4856 (find_partial_die): Update.
4857 (dwarf2_read_addr_index): Update.
4858 (read_signatured_type): Update.
4859
2e6a9f79
SM
48602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4861
4862 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4863 m_header_read_in>: New fields.
4864 <get_header>: New method.
4865 * dwarf2/read.c (per_cu_header_read_in): Remove.
4866 (dwarf2_per_cu_data::get_header): New.
4867 (dwarf2_per_cu_data::addr_size): Update.
4868 (dwarf2_per_cu_data::offset_size): Update.
4869 (dwarf2_per_cu_data::ref_addr_size): Update.
4870
1b555f17
SM
48712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4872
4873 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4874 (dw2_do_instantiate_symtab): Update.
4875 (queue_and_load_all_dwo_tus): Change parameter from
4876 dwarf2_per_cu_data to dwarf2_cu.
4877 (dwarf2_fetch_die_loc_sect_off): Update.
4878 (dwarf2_fetch_constant_bytes): Update.
4879 (dwarf2_fetch_die_type_sect_off): Update.
4880
8fc0b21d
SM
48812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4882
4883 * dwarf2/read.c (process_full_comp_unit,
4884 process_full_type_unit): Remove per_cu, per_objfile paramters.
4885 Add dwarf2_cu parameter.
4886 (process_queue): Update.
4887
168c9250
SM
48882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4889
4890 * dwarf2/read.c (create_cu_from_index_list): Replace
4891 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4892 (create_cus_from_index_list): Likewise.
4893 (create_cus_from_index): Likewise.
4894 (create_signatured_type_table_from_index): Likewise.
4895 (create_cus_from_debug_names_list): Likewise.
4896 (create_cus_from_debug_names): Likewise.
4897 (dwarf2_read_gdb_index): Update.
4898 (dwarf2_read_debug_names): Update.
4899
e286671b
TT
49002020-05-27 Tom Tromey <tom@tromey.com>
4901 Simon Marchi <simon.marchi@efficios.com>
4902
4903 * dwarf2/read.h (struct dwarf2_per_objfile)
4904 <get_type_for_signatured_type, set_type_for_signatured_type>:
4905 New methods.
4906 <m_type_map>: New member.
4907 (struct signatured_type) <type>: Remove.
4908 * dwarf2/read.c
4909 (dwarf2_per_objfile::get_type_for_signatured_type,
4910 dwarf2_per_objfile::set_type_for_signatured_type): New.
4911 (get_signatured_type): Use new methods.
4912
8adb8487
TT
49132020-05-27 Tom Tromey <tom@tromey.com>
4914 Simon Marchi <simon.marchi@efficios.com>
4915
4916 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4917 (struct dwarf2_per_objfile) <type_units>: New member.
4918 <get_type_unit_group_unshareable>: New method.
4919 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4920 num_symtabs, symtabs>: Remove; move to
4921 type_unit_group_unshareable.
4922 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4923 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4924 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4925
127bbf4b
SM
49262020-05-27 Simon Marchi <simon.marchi@efficios.com>
4927
4928 * dwarf2/read.h (struct dwarf2_per_cu_data):
4929 <dwarf2_per_objfile>: Remove.
4930 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4931 dwarf2_per_objfile.
4932 (create_signatured_type_table_from_index): Likewise.
4933 (create_signatured_type_table_from_debug_names): Likewise.
4934 (create_debug_type_hash_table): Likewise.
4935 (fill_in_sig_entry_from_dwo_entry): Likewise.
4936 (create_type_unit_group): Likewise.
4937 (read_comp_units_from_section): Likewise.
4938 (create_cus_hash_table): Likewise.
4939
f6e649dd
SM
49402020-05-27 Simon Marchi <simon.marchi@efficios.com>
4941
4942 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4943 dwarf2_per_cu_data::dwarf2_per_objfile.
4944 (compute_compunit_symtab_includes): Likewise.
4945 (dwarf2_cu::start_symtab): Likewise.
4946
aa66c379
SM
49472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4948
4949 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4950 parameter.
4951 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4952 (read_namespace_alias): Update.
4953 (lookup_die_type): Update.
4954 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4955 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4956 Update.
4957 (disassemble_dwarf_expression): Update.
4958
120ce1b5
SM
49592020-05-27 Simon Marchi <simon.marchi@efficios.com>
4960
4961 * dwarf2/read.h (struct dwarf2_queue_item): Add
4962 dwarf2_per_objfile parameter, assign new parameter.
4963 <per_objfile>: New field.
4964 * dwarf2/read.c (free_one_cached_comp_unit): Add
4965 dwarf2_per_objfile parameter.
4966 (queue_comp_unit): Likewise.
4967 (dw2_do_instantiate_symtab): Update.
4968 (process_psymtab_comp_unit): Update.
4969 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4970 (process_imported_unit_die): Update.
4971 (queue_and_load_dwo_tu): Update.
4972 (follow_die_offset): Update.
4973 (follow_die_sig_1): Update.
4974
9f47c707
SM
49752020-05-27 Simon Marchi <simon.marchi@efficios.com>
4976
4977 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4978 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4979 (read_call_site_scope): Assign per_objfile.
4980 (dwarf2_per_cu_data::objfile): Remove.
4981 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4982 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4983 dwarf2_per_objfile parameter.
4984 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4985 dwarf2_per_objfile parameter.
4986 (dwarf_expr_reg_to_entry_parameter): Add output
4987 dwarf2_per_objfile parameter.
4988 (locexpr_get_frame_base): Update.
4989 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4990 <push_dwarf_reg_entry_value>: Update.
4991 <call_site_to_target_addr>: Update.
4992 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4993 parameter.
4994 (value_of_dwarf_reg_entry): Update.
4995 (rw_pieced_value): Update.
4996 (indirect_synthetic_pointer): Update.
4997 (dwarf2_evaluate_property): Update.
4998 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4999 parameter.
5000 (locexpr_read_variable): Update.
5001 (locexpr_get_symbol_read_needs): Update.
5002 (loclist_read_variable): Update.
5003
14095eb3
SM
50042020-05-27 Simon Marchi <simon.marchi@efficios.com>
5005
5006 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5007 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5008 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5009 parameter.
5010 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5011 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5012 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5013 parameter.
5014 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5015 sect_variable_value): Add dwarf2_per_objfile parameter.
5016 (class dwarf_evaluate_loc_desc) <dwarf_call,
5017 dwarf_variable_value>: Update.
5018 (fetch_const_value_from_synthetic_pointer): Add
5019 dwarf2_per_objfile parameter.
5020 (fetch_const_value_from_synthetic_pointer): Update.
5021 (coerced_pieced_ref): Update.
5022 (class symbol_needs_eval_context) <dwarf_call,
5023 dwarf_variable_value>: Update.
5024 (dwarf2_compile_expr_to_ax): Update.
5025
3c3cd3d4
SM
50262020-05-27 Simon Marchi <simon.marchi@efficios.com>
5027
5028 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5029 parameter.
5030 (dwarf2_evaluate_loc_desc_full): Update.
5031
82ca3f51
SM
50322020-05-27 Simon Marchi <simon.marchi@efficios.com>
5033
5034 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5035 parameter.
5036 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5037 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5038 dwarf2_per_objfile parameter.
5039 (decode_debug_loc_dwo_addresses): Likewise.
5040 (dwarf2_find_location_expression): Update.
5041 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5042 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5043 parameter.
5044 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5045 parameter.
5046 (locexpr_describe_location_1): Likewise.
5047 (locexpr_describe_location): Update.
5048
4b167ea1
SM
50492020-05-27 Simon Marchi <simon.marchi@efficios.com>
5050
5051 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5052 Remove.
5053 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5054 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5055 (dwarf2_compile_property_to_c): Update.
5056 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5057 use text offset from objfile.
5058 (locexpr_tracepoint_var_ref): Update.
5059 (locexpr_generate_c_location): Update.
5060 (loclist_describe_location): Update.
5061 (loclist_tracepoint_var_ref): Update.
5062 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5063 dwarf2_per_objfile parameter.
5064 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5065 use text offset from objfile.
5066 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5067
89b07335
SM
50682020-05-27 Simon Marchi <simon.marchi@efficios.com>
5069
5070 * dwarf2/expr.h (struct dwarf_expr_context)
5071 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5072 <offset>: Remove.
5073 <per_objfile>: New member.
5074 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5075 dwarf2_per_objfile parameter. Don't set offset, set
5076 per_objfile.
5077 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5078 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
5079 a dwarf2_per_objfile object instead of an offset.
5080 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
5081 constructor.
5082 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
5083 to dwarf2_expr_executor constructor. Don't set offset.
5084 (dwarf2_fetch_cfa_info): Update.
5085 (struct dwarf2_frame_cache) <text_offset>: Remove.
5086 <per_objfile>: New field.
5087 (dwarf2_frame_cache): Update.
5088 (dwarf2_frame_prev_register): Update.
5089 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5090 <dwarf_evaluate_loc_desc>: Add constructor.
5091 (dwarf2_evaluate_loc_desc_full): Update.
5092 (dwarf2_locexpr_baton_eval): Update.
5093 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
5094 Add constructor.
5095 (dwarf2_loc_desc_get_symbol_read_needs): Update.
5096
293e7e51
SM
50972020-05-27 Simon Marchi <simon.marchi@efficios.com>
5098
5099 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
5100 addr_sized_int_type>: Move to dwarf2_cu.
5101 <int_type>: Move to dwarf2_per_objfile.
5102 (struct dwarf2_per_objfile) <int_type>: Move here.
5103 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
5104 addr_sized_int_type>: Move here.
5105 (read_func_scope): Update.
5106 (read_array_type): Update.
5107 (read_tag_string_type): Update.
5108 (attr_to_dynamic_prop): Update.
5109 (dwarf2_per_cu_data::int_type): Rename to...
5110 (dwarf2_per_objfile::int_type): ... this.
5111 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
5112 (dwarf2_cu::addr_sized_int_type): ... this.
5113 (read_subrange_type): Update.
5114 (dwarf2_per_cu_data::addr_type): Rename to...
5115 (dwarf2_cu::addr_type): ... this.
5116 (set_die_type): Update.
5117
64874a40
SM
51182020-05-27 Simon Marchi <simon.marchi@efficios.com>
5119
5120 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
5121 data through per_cu->cu.
5122
4ab09049
SM
51232020-05-27 Simon Marchi <simon.marchi@efficios.com>
5124
5125 * dwarf2/read.c (lookup_dwo_comp_unit): Change
5126 dwarf2_per_cu_data parameter fo dwarf2_cu.
5127 (lookup_dwo_type_unit): Likewise.
5128 (read_cutu_die_from_dwo): Likewise.
5129 (lookup_dwo_unit): Likewise.
5130 (open_and_init_dwo_file): Likewise.
5131 (lookup_dwo_cutu): Likewise.
5132 (lookup_dwo_comp_unit): Likewise.
5133 (lookup_dwo_type_unit): Likewise.
5134 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5135 (cutu_reader::cutu_reader): Update.
5136
47b14e86
SM
51372020-05-27 Simon Marchi <simon.marchi@efficios.com>
5138
5139 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
5140 parameter.
5141 (process_full_type_unit): Likewise.
5142 (process_queue): Update.
5143
43182c09
SM
51442020-05-27 Simon Marchi <simon.marchi@efficios.com>
5145
5146 * dwarf2/read.c (recursively_compute_inclusions): Add
5147 dwarf2_per_objfile parameter.
5148 (compute_compunit_symtab_includes): Likewise.
5149 (process_cu_includes): Update.
5150
7aa104c4
SM
51512020-05-27 Simon Marchi <simon.marchi@efficios.com>
5152
5153 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
5154 parameter.
5155 (create_type_unit_group): Update.
5156 (process_psymtab_comp_unit_reader): Update.
5157 (build_type_psymtabs_reader): Update.
5158
e3beb21d
SM
51592020-05-27 Simon Marchi <simon.marchi@efficios.com>
5160
5161 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5162 object through m_this_cu->cu.
5163
d460f660
SM
51642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5165
5166 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5167 the info parameter.
5168 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5169
ab432490
SM
51702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5171
5172 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5173 per_objfile parameter.
5174 (load_full_type_unit): Add per_objfile parameter.
5175 (read_signatured_type): Likewise.
5176 (load_full_comp_unit): Likewise.
5177 (load_cu): Likewise.
5178 (dw2_do_instantiate_symtab): Likewise.
5179 (dw2_get_file_names): Likewise.
5180 (dw2_map_symtabs_matching_filename): Update.
5181 (dw_expand_symtabs_matching_file_matcher): Update.
5182 (dw2_map_symbol_filenames): Update.
5183 (process_psymtab_comp_unit): Add per_objfile parameter.
5184 (build_type_psymtabs_1): Update.
5185 (process_skeletonless_type_unit): Update.
5186 (dwarf2_build_psymtabs_hard): Update.
5187 (load_partial_comp_unit): Add per_objfile parameter.
5188 (scan_partial_symbols): Update.
5189 (load_full_comp_unit): Add per_objfile parameter.
5190 (process_imported_unit_die): Update.
5191 (create_cus_hash_table): Update.
5192 (find_partial_die): Update.
5193 (dwarf2_read_addr_index): Update.
5194 (follow_die_offset): Update.
5195 (dwarf2_fetch_die_loc_sect_off): Update.
5196 (dwarf2_fetch_constant_bytes): Update.
5197 (dwarf2_fetch_die_type_sect_off): Update.
5198 (follow_die_sig_1): Update.
5199 (load_full_type_unit): Add per_objfile parameter.
5200 (read_signatured_type): Likewise.
5201
313bad1b
SM
52022020-05-27 Simon Marchi <simon.marchi@efficios.com>
5203
5204 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5205 of objfile_name.
5206
c3699833
SM
52072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5208
5209 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5210 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5211 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5212 field.
5213 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5214 (create_cus_from_index): Update.
5215 (dwarf2_read_gdb_index): Update.
5216 (create_cus_from_debug_names): Update.
5217 (dwarf2_read_debug_names): Update.
5218 (get_abbrev_section_for_cu): Update.
5219 (create_all_comp_units): Update.
5220 (read_attribute_value): Update.
5221 (get_debug_line_section): Update.
5222 * dwarf2/index-cache.c (index_cache::store): Update.
5223 * dwarf2/index-write.c (save_gdb_index_command): Update.
5224 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5225
1859c670
SM
52262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5227
5228 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5229 member.
5230 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5231 dwarf2_per_cu_data::per_bfd.
5232 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5233 (create_type_unit_group): Likewise.
5234 (queue_comp_unit): Remove reference to
5235 per_cu->dwarf2_per_objfile.
5236 (maybe_queue_comp_unit): Likewise.
5237 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5238 (create_cus_hash_table): Assign new field.
5239
5e22e966
SM
52402020-05-27 Simon Marchi <simon.marchi@efficios.com>
5241
5242 * dwarf2/read.c: Replace
5243 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5244 dwarf2_cu->per_objfile throughout.
5245
97a1449a
SM
52462020-05-27 Simon Marchi <simon.marchi@efficios.com>
5247
5248 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5249 parameter, don't use per_cu->dwarf2_per_objfile.
5250 (dw2_instantiate_symtab): Likewise.
5251 (dw2_find_last_source_symtab): Update.
5252 (dw2_map_expand_apply): Update.
5253 (dw2_lookup_symbol): Update.
5254 (dw2_expand_symtabs_for_function): Update.
5255 (dw2_expand_all_symtabs): Update.
5256 (dw2_expand_symtabs_with_fullname): Update.
5257 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5258 don't use per_cu->dwarf2_per_objfile.
5259 (dw2_expand_marked_cus): Update.
5260 (dw2_find_pc_sect_compunit_symtab): Update.
5261 (dw2_debug_names_lookup_symbol): Update.
5262 (dw2_debug_names_expand_symtabs_for_function): Update.
5263 (dw2_debug_names_map_matching_symbols): Update.
5264 (dwarf2_psymtab::expand_psymtab): Update.
5265
9e021579
SM
52662020-05-27 Simon Marchi <simon.marchi@efficios.com>
5267
5268 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5269 <per_objfile>: New member.
5270 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5271 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5272 call to dwarf2_cu.
5273 (cutu_reader::cutu_reader): Update.
5274 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5275
ae090bdb
SM
52762020-05-27 Simon Marchi <simon.marchi@efficios.com>
5277
5278 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5279 struct dwarf2_per_objfile.
5280 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5281 dwarf2_per_bfd.
5282 * dwarf2/read.c (set_die_type): Update.
5283 (get_die_type_at_offset): Update.
5284
af758d11
SM
52852020-05-27 Tom Tromey <tom@tromey.com>
5286 Simon Marchi <simon.marchi@efficios.com>
5287
5288 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5289 method.
5290 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5291 get_symtab, set_symtab>: New methods.
5292 <m_symtabs>: New field.
5293 (struct dwarf2_psymtab): Derive from partial_symtab.
5294 <readin_p, get_compunit_symtab>: Declare methods.
5295 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5296 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5297 New methods.
5298 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5299 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5300 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5301 (dw2_symtab_iter_next, dw2_print_stats)
5302 (dw2_expand_symtabs_with_fullname)
5303 (dw2_expand_symtabs_matching_one)
5304 (dw_expand_symtabs_matching_file_matcher)
5305 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5306 (dw2_debug_names_iterator::next)
5307 (dw2_debug_names_map_matching_symbols)
5308 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5309 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5310 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5311 New methods.
5312 (get_compunit_symtab, process_full_comp_unit)
5313 (process_full_type_unit): Update.
5314 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5315
5989a64e
SM
53162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5317
5318 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5319 then introduce a new dwarf2_per_objfile type.
5320 <read_line_string>: Move to the new dwarf2_per_objfile type.
5321 <objfile>: Likewise.
5322 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5323 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5324 dwarf2_per_objfile->per_bfd.
5325 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5326 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5327 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5328 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5329 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5330 (dwarf2_per_objfile::locate_sections): Rename to...
5331 (dwarf2_per_bfd::locate_sections): ... this.
5332 (dwarf2_per_objfile::get_cutu): Rename to...
5333 (dwarf2_per_bfd::get_cutu): ... this.
5334 (dwarf2_per_objfile::get_cu): Rename to...
5335 (dwarf2_per_bfd::get_cu): ... this.
5336 (dwarf2_per_objfile::get_tu): Rename to...
5337 (dwarf2_per_bfd::get_tu): ... this.
5338 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5339 (dwarf2_per_bfd::allocate_per_cu): ... this.
5340 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5341 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5342 (get_gdb_index_contents_ftype): Change parameter from
5343 dwarf2_per_objfile to dwarf2_per_bfd.
5344 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5345 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5346
a50264ba
TT
53472020-05-27 Tom Tromey <tom@tromey.com>
5348 Simon Marchi <simon.marchi@efficios.com>
5349
5350 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5351 (allocate_piece_closure): Set "per_objfile" member.
5352 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5353 (locexpr_describe_location, loclist_describe_location): Use new
5354 member.
5355 * dwarf2/read.c (read_call_site_scope)
5356 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5357 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5358 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5359 handle_data_member_location): Set per_objfile member.
5360 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5361 member.
5362 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5363
d3473f0c
TT
53642020-05-27 Tom Tromey <tom@tromey.com>
5365
5366 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5367 allocate_signatured_type>: Declare new methods.
5368 <m_num_psymtabs>: New member.
5369 (struct dwarf2_per_cu_data) <index>: New member.
5370 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5371 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5372 (create_cu_from_index_list): Use allocate_per_cu.
5373 (create_signatured_type_table_from_index)
5374 (create_signatured_type_table_from_debug_names)
5375 (create_debug_type_hash_table, add_type_unit)
5376 (read_comp_units_from_section): Use allocate_signatured_type.
5377
5717c425
TT
53782020-05-27 Tom Tromey <tom@tromey.com>
5379
5380 * psymtab.c (partial_map_expand_apply)
5381 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5382 (psym_lookup_global_symbol_language)
5383 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5384 (psym_print_stats, psym_expand_symtabs_for_function)
5385 (psym_map_symbol_filenames, psym_map_matching_symbols)
5386 (psym_expand_symtabs_matching)
5387 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5388 (maintenance_check_psymtabs): Update.
5389 * psympriv.h (struct partial_symtab) <readin_p,
5390 get_compunit_symtab>: Add objfile parameter.
5391 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5392 Likewise.
5393 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5394 get_compunit_symtab>: Likewise.
5395 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5396
45940949
TT
53972020-05-27 Tom Tromey <tom@tromey.com>
5398
5399 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5400 member.
5401 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5402 (create_cu_from_index_list)
5403 (create_signatured_type_table_from_index)
5404 (create_signatured_type_table_from_debug_names)
5405 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5406 (dwarf2_create_include_psymtab)
5407 (create_debug_type_hash_table, add_type_unit)
5408 (create_type_unit_group, read_comp_units_from_section)
5409 (dwarf2_compute_name, create_cus_hash_table)
5410 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5411 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5412 obstack.
5413 (dw2_get_real_path): Likewise. Change argument to
5414 dwarf2_per_objfile.
5415
f8c6d152
LM
54162020-05-27 Luis Machado <luis.machado@linaro.org>
5417
5418 PR tdep/26000
5419 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5420 for ldrd (immediate).
5421
e98d2e6d
PW
54222020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5423
5424 * command.h: Add comment giving the name of class_tui.
5425 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5426 create the fake command for the help for class_tui.
5427
53a47a3e
TT
54282020-05-26 Tom Tromey <tromey@adacore.com>
5429
5430 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5431 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5432 (val_atr): New function.
5433 (value_val_atr): Use it.
5434 * ada-valprint.c (print_optional_low_bound): Change low bound
5435 handling for enums.
5436 (val_print_packed_array_elements): Don't call discrete_position.
5437 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5438 discrete_position for enum types.
5439 * language.c (default_print_array_index): Change type.
5440 * language.h (struct language_defn) <la_print_array_index>: Add
5441 index_type parameter, change type of index_value.
5442 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5443 (default_print_array_index): Update.
5444 * valprint.c (maybe_print_array_index): Don't call
5445 value_from_longest. Update.
5446 (value_print_array_elements): Don't call discrete_position.
5447
0bc2354b
TT
54482020-05-26 Tom Tromey <tromey@adacore.com>
5449
5450 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5451 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5452
1218a4bf
CDA
54532020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5454
5455 PR gdb/13519
5456 * avr-tdep.c (avr_integer_to_address): Return data or code
5457 address accordingly to the second 'type' argument of the
5458 function.
5459
92651b1d
MW
54602020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5461
5462 * infcmd.c, inferior.h: (construct_inferior_arguments):
5463 Moved function from here to gdbsupport/common-inferior.{h,cc}
5464
0a4f5f8c
TT
54652020-05-23 Tom Tromey <tom@tromey.com>
5466
5467 Revert commit eca1f90c:
5468 * NEWS: Remove entry for completion styling.
5469 * completer.c (_rl_completion_prefix_display_length): Move
5470 declaration later.
5471 (gdb_fnprint): Revert.
5472 (gdb_display_match_list_1): Likewise.
5473 * cli/cli-style.c (completion_prefix_style)
5474 (completion_difference_style, completion_suffix_style): Remove.
5475 (_initialize_cli_style): Revert.
5476 * cli/cli-style.h (completion_prefix_style)
5477 (completion_difference_style, completion_suffix_style): Don't
5478 declare.
5479
e08bd6c5
PA
54802020-05-24 Pedro Alves <palves@redhat.com>
5481
5482 * symtab.c (completion_list_add_name): Return boolean indication
5483 of whether the symbol matched.
5484 (completion_list_add_symbol): Don't try to remove C++ aliases if
5485 the symbol didn't match in the first place.
5486 * symtab.h (completion_list_add_name): Return bool.
5487
ceacbf6e
SM
54882020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5489
5490 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5491 type::field.
5492
26f16254
JB
54932020-05-23 Joel Brobecker <brobecker@adacore.com>
5494
5495 GDB 9.2 released.
5496
eca1f90c
TT
54972020-05-23 Tom Tromey <tom@tromey.com>
5498
5499 * NEWS: Add entry for completion styling.
5500 * completer.c (_rl_completion_prefix_display_length): Move
5501 declaration earlier.
5502 (gdb_fnprint): Use completion_style.
5503 (gdb_display_match_list_1): Likewise.
5504 * cli/cli-style.c (completion_prefix_style)
5505 (completion_difference_style, completion_suffix_style): New
5506 globals.
5507 (_initialize_cli_style): Register new globals.
5508 * cli/cli-style.h (completion_prefix_style)
5509 (completion_difference_style, completion_suffix_style): Declare.
5510
51e2cfa2
PA
55112020-05-23 Pedro Alves <palves@redhat.com>
5512
5513 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5514 (parse_escape): Use ISDIGIT instead of isdigit.
5515 (puts_debug): Use gdb_isprint instead of isprint.
5516 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5517 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5518 ISSPACE instead of isspace.
5519 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5520 instead of isspace.
5521 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5522 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5523 instead of isxdigit and ISDIGIT instead of isdigit.
5524
80fc5e77
SM
55252020-05-22 Simon Marchi <simon.marchi@efficios.com>
5526
5527 * gdbtypes.h (struct type) <field>: New method.
5528 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5529 or type::field.
5530
3cabb6b0
SM
55312020-05-22 Simon Marchi <simon.marchi@efficios.com>
5532
5533 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5534 (TYPE_FIELDS): Use type::fields. Change all call sites that
5535 modify the propery to use type::set_fields instead.
5536
1f704f76
SM
55372020-05-22 Simon Marchi <simon.marchi@efficios.com>
5538
5539 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5540 type::num_fields instead.
5541
5e33d5f4
SM
55422020-05-22 Simon Marchi <simon.marchi@efficios.com>
5543
5544 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5545 methods.
5546 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5547 that modify the number of fields to use type::set_num_fields
5548 instead.
5549
9392ebb3
TT
55502020-05-22 Tom Tromey <tromey@adacore.com>
5551
5552 * compile/compile-object-load.h (munmap_list_free): Don't
5553 declare.
5554
7c13f4e8
AB
55552020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5556
5557 * annotate.c (annotate_source_line): Update return type, add call
5558 to update current symtab and line.
5559 * annotate.h (annotate_source_line): Update return type, and
5560 extend header comment.
5561 * source.c (info_line_command): Check annotation_level before
5562 calling annotate_source_line.
5563 * stack.c (print_frame_info): If calling annotate_source_line
5564 returns true, then don't print any other source line information.
5565
aa370940
SM
55662020-05-21 Simon Marchi <simon.marchi@efficios.com>
5567
5568 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5569
84d53fa9
SM
55702020-05-21 Simon Marchi <simon.marchi@efficios.com>
5571
5572 * coffread.c (patch_type): Remove NULL check before xfree.
5573 * corefile.c (set_gnutarget): Likewise.
5574 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5575 * exec.c (build_section_table): Likewise.
5576 * remote.c (remote_target::pass_signals): Likewise.
5577 * utils.c (n_spaces): Likewise.
5578 * cli/cli-script.c (document_command): Likewise.
5579 * i386-windows-tdep.c (core_process_module_section): Likewise.
5580 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5581
9d428aae
SM
55822020-05-20 Simon Marchi <simon.marchi@efficios.com>
5583
5584 * symfile.c (reread_symbols): Clear objfile's section_offsets
5585 vector and section indices, re-compute them by calling
5586 sym_offsets.
5587
250106a7
TT
55882020-05-20 Tom Tromey <tromey@adacore.com>
5589
5590 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5591 (desc_one_bound, desc_index_type): Compute field name.
250106a7 5592
9a0bacfb
TV
55932020-05-20 Tom de Vries <tdevries@suse.de>
5594
5595 PR symtab/25833
5596 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5597
7b958a48
AM
55982020-05-20 Alan Modra <amodra@gmail.com>
5599
5600 PR 25993
5601 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5602 bfd_set_filename.
5603 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5604 passed to bfd_set_filename.
5605 * symfile-mem.c (add_vsyscall_page): Likewise for string
5606 passed to symbol_file_add_from_memory.
5607 (symbol_file_add_from_memory): Make name param a const char* and
5608 don't strdup.
5609
c7e97679
AM
56102020-05-20 Alan Modra <amodra@gmail.com>
5611
5612 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5613 rather than accessing bfd->filename directly.
5614 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5615 and use bfd_section_name.
5616 * dwarf2/frame.c (decode_frame_entry): Likewise.
5617 * exec.c (exec_set_section_address): Likewise.
5618 * solib-aix.c (solib_aix_bfd_open): Likewise.
5619 * stap-probe.c (get_stap_base_address): Likewise.
5620 * symfile.c (reread_symbols): Likewise.
5621
563c591b
TT
56222020-05-19 Tom Tromey <tromey@adacore.com>
5623
5624 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5625
f408d82c
SM
56262020-05-19 Simon Marchi <simon.marchi@efficios.com>
5627
5628 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5629
98c59b52
PA
56302020-05-19 Pedro Alves <palves@redhat.com>
5631
5632 * NEWS (set exec-file-mismatch): Adjust entry.
5633 * exec.c: Include "build-id.h".
5634 (validate_exec_file): Try to match build IDs instead of filenames.
5635 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5636 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5637 and pass down 'warn_if_slow'.
5638 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5639 gdb_bfd_open_closure to pass it down.
5640 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5641
4111f652
PA
56422020-05-19 Pedro Alves <palves@redhat.com>
5643
5644 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5645 * target.c (target_fileio_open_1): Rename to target_fileio_open
5646 and make extern. Use bool.
5647 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5648 (target_fileio_read_alloc_1): Adjust.
5649 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5650 (target_fileio_open_warn_if_slow): Delete declaration.
5651
ad80db5b
PA
56522020-05-19 Pedro Alves <palves@redhat.com>
5653
5654 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5655 Adjust all callers.
5656
1d6ce4d3
YS
56572020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5658
5659 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5660 whether disp is negative.
5661
9005fbbb
SM
56622020-05-19 Simon Marchi <simon.marchi@efficios.com>
5663
5664 * symfile.h (struct symfile_segment_data)
5665 <~symfile_segment_data>: Remove.
5666 <segment_info>: Change to std::vector.
5667 * symfile.c (default_symfile_segments): Update.
5668 * elfread.c (elf_symfile_segments): Update.
5669
68b888ff
SM
56702020-05-19 Simon Marchi <simon.marchi@efficios.com>
5671
5672 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5673 <segments>: New.
5674 <segment_bases, segment_sizes>: Remove.
5675 * symfile.c (default_symfile_segments): Update.
5676 * elfread.c (elf_symfile_segments): Update.
5677 * remote.c (remote_target::get_offsets): Update.
5678 * solib-target.c (solib_target_relocate_section_addresses):
5679 Update.
5680
62982abd
SM
56812020-05-19 Simon Marchi <simon.marchi@efficios.com>
5682
5683 * symfile.h (struct symfile_segment_data): Initialize fields.
5684 <~symfile_segment_data>: Add.
5685 (symfile_segment_data_up): New.
5686 (struct sym_fns) <sym_segments>: Return a
5687 symfile_segment_data_up.
5688 (default_symfile_segments): Return a symfile_segment_data_up.
5689 (free_symfile_segment_data): Remove.
5690 (get_symfile_segment_data): Return a symfile_segment_data_up.
5691 * symfile.c (default_symfile_segments): Likewise.
5692 (get_symfile_segment_data): Likewise.
5693 (free_symfile_segment_data): Remove.
5694 (symfile_find_segment_sections): Update.
5695 * elfread.c (elf_symfile_segments): Return a
5696 symfile_segment_data_up.
5697 * remote.c (remote_target::get_offsets): Update.
5698 * solib-target.c (solib_target_relocate_section_addresses):
5699 Update.
5700 * symfile-debug.c (debug_sym_segments): Return a
5701 symfile_segment_data_up.
5702
7f204339
RO
57032020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5704
e52a0f1b
RO
5705 PR build/25981
5706 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5707 Hardcode register numbers.
5708
7f204339
RO
5709 PR build/25981
5710 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5711 procfs_find_LDT_entry): Remove.
5712 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5713 procfs_find_LDT_entry): Remove.
5714 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5715 Remove.
5716
7f32a4d5
PA
57172020-05-17 Pedro Alves <palves@redhat.com>
5718 Andrew Burgess <andrew.burgess@embecosm.com>
5719 Keno Fischer <keno@juliacomputing.com>
5720
5721 PR gdb/25741
5722 * breakpoint.c (build_target_condition_list): Update comments.
5723 (build_target_command_list): Update comments and skip matching
5724 locations.
5725 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5726 a separate function. Simplify "set breakpoint auto-hw off"
5727 handling.
5728 (insert_breakpoints): Update comment.
5729 (tracepoint_locations_match): New parameter. For breakpoints,
5730 compare location types too, if the caller wants to.
5731 (handle_automatic_hardware_breakpoints): New functions.
5732 (bp_location_is_less_than): Also sort by location type and
5733 hardware breakpoint length.
5734 (update_global_location_list): Handle "set breakpoint auto-hw on"
5735 here.
5736 (update_breakpoint_locations): Ask breakpoint_locations_match to
5737 ignore location types.
5738
7d93a1e0
SM
57392020-05-16 Simon Marchi <simon.marchi@efficios.com>
5740
5741 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5742 type::name instead.
5743
d0e39ea2
SM
57442020-05-16 Simon Marchi <simon.marchi@efficios.com>
5745
5746 * gdbtypes.h (struct type) <name, set_name>: New methods.
5747 (TYPE_CODE): Use type::name. Change all call sites used to set
5748 the name to use type::set_name instead.
5749
2dab0c7b
TT
57502020-05-16 Tom Tromey <tom@tromey.com>
5751
5752 * top.c (quit_force): Update.
5753 * infrun.c (handle_no_resumed): Update.
5754 * top.h (all_uis): New function.
5755 (ALL_UIS): Remove.
5756
59f7bd8d
SM
57572020-05-16 Simon Marchi <simon.marchi@efficios.com>
5758
5759 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5760
9bf058f0
PA
57612020-05-16 Pedro Alves <palves@redhat.com>
5762
5763 * ia64-linux-nat.c
5764 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5765 Declare method.
5766 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5767
8f86ae1a
SM
57682020-05-15 Simon Marchi <simon.marchi@efficios.com>
5769
5770 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5771 (sparc64_adi_info): Likewise.
5772
d6bc0792
TT
57732020-05-15 Tom Tromey <tom@tromey.com>
5774
5775 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5776 block_objfile.
5777 (lookup_objfile_from_block): Remove.
5778 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5779 (lookup_global_symbol): Use block_objfile.
5780 * symtab.h (lookup_objfile_from_block): Don't declare.
5781 * printcmd.c (clear_dangling_display_expressions): Use
5782 block_objfile.
5783 * parse.c (operator_check_standard): Use block_objfile.
5784
8c14c3a3
TT
57852020-05-15 Tom Tromey <tom@tromey.com>
5786
5787 * language.c (language_alloc_type_symbol): Set
5788 SYMBOL_SECTION.
5789 * symtab.c (initialize_objfile_symbol): Remove.
5790 (allocate_symbol): Remove.
5791 (allocate_template_symbol): Remove.
5792 * dwarf2/read.c (fixup_go_packaging): Use "new".
5793 (new_symbol): Use "new".
5794 (read_variable): Don't call initialize_objfile_symbol. Use
5795 "new".
5796 (read_func_scope): Use "new".
5797 * xcoffread.c (process_xcoff_symbol): Don't call
5798 initialize_objfile_symbol.
5799 (SYMBOL_DUP): Remove.
5800 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5801 "new".
5802 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5803 (allocate_template_symbol): Don't declare.
5804 (struct symbol): Add copy constructor. Change defaults.
5805 * jit.c (finalize_symtab): Use "new".
5806 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5807 Use "new".
5808 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5809 (common_block_end): Use "new".
5810 * mdebugread.c (parse_symbol): Use "new".
5811 (new_symbol): Likewise.
5812
5b4a1a8d
PW
58132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5814
5815 * NEWS: Mention changes to help and apropos.
5816
57b4f16e
PW
58172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5818
5819 * command.h (enum command_class): Improve comments, document
5820 that class_alias is for user-defined aliases, give the class
5821 name for each class, remove unused class_xdb.
5822 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5823 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5824 by a precise class.
5825 * infcmd.c (_initialize_infcmd): Likewise.
5826 * reverse.c (_initialize_reverse): Likewise.
5827 * stack.c (_initialize_stack): Likewise.
5828 * symfile.c (_initialize_symfile): Likewise.
5829 * tracepoint.c (_initialize_tracepoint): Likewise.
5830
7c05caf7
PW
58312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5832
5833 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5834 when their aliased command is traversed.
5835 (help_cmd): Add fput_command_names_styled call to
5836 output command name and aliases when command has an alias.
5837
3b3aaacb
PW
58382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5839
5840 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5841 * cli/cli-decode.c (help_cmd_list): Declare as static,
5842 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5843 a command together with the command.
5844 (fput_command_name_styled, fput_command_names_styled): New functions.
5845 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5846 fput_command_name_styled.
5847 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5848 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5849
7aa1b46f
PW
58502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5851
5852 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5853 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5854 * command.h (cmd_show_list): Likewise.
5855 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5856 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5857
89bcba74
PW
58582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5859
5860 * unittests/command-def-selftests.c (traverse_command_structure):
5861 Verify all commands of a list have the same prefix command and
5862 that only the top cmdlist commands have a null prefix.
5863
3f4d92eb
PW
58642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5865
5866 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5867 as prefix, not one of its aliases.
5868 (set_cmd_prefix): Remove.
5869 (do_add_cmd): Centralize the setting of the prefix of a command, when
5870 command is defined after its full chain of prefix commands.
5871 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5872 (add_setshow_cmd_full): Likewise.
5873 (update_prefix_field_of_prefixed_commands): New function.
5874 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5875 update_prefix_field_of_prefixed_commands.
5876 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5877 addresses of remote_set_cmdlist and remote_show_cmdlist given
5878 as argument, not the address of an argument.
5879 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5880 * gdb/remote.c (_initialize_remote): Likewise.
5881
0605465f
PW
58822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5883
5884 * cli/cli-cmds.c (alias_command): Check for an existing alias
5885 using lookup_cmd_composition, as valid_command_p is too strict
5886 and forbids aliases that are the prefix of an existing alias
5887 or command.
5888 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5889 command is properly recognised as a valid command.
5890
58e6ac70
PW
58912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5892
5893 * unittests/help-doc-selftests.c: Rename to
5894 unittests/command-def-selftests.c
5895 * unittests/command-def-selftests.c (help_doc_tests): Update some
5896 comments.
5897 (command_structure_tests, traverse_command_structure): New namespace
5898 and function.
5899 (command_structure_invariants_tests): New function.
5900 (_initialize_command_def_selftests) Renamed from
5901 _initialize_help_doc_selftests, register command_structure_invariants
5902 selftest.
5903
a7b9ceb8
PW
59042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5905
5906 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5907 an alias of 'show'.
5908
b2188a06
JB
59092020-05-15 Joel Brobecker <brobecker@adacore.com>
5910
5911 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5912 ada_is_fixed_point_type. Update all callers.
5913 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5914 all callers.
5915 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5916 Update all callers.
5917 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5918 print_fixed_point_type. Update all callers.
5919 * ada-valprint.c (ada_value_print_num): Replace call to
5920 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5921
a51951c2
KB
59222020-05-14 Kevin Buettner <kevinb@redhat.com>
5923
5924 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5925 processors.
5926 (cpu_supports_bts): Add CV_AMD case.
5927
29d6859f
LM
59282020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5929 Simon Marchi <simon.marchi@efficios.com>
5930
5931 * infrun.c (stop_all_threads): Collect multiple wait events at
5932 each pass.
5933
78134374
SM
59342020-05-14 Simon Marchi <simon.marchi@efficios.com>
5935
5936 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5937 type::code instead.
5938
67607e24
SM
59392020-05-14 Simon Marchi <simon.marchi@efficios.com>
5940
5941 * gdbtypes.h (struct type) <code, set_code>: New methods.
5942 (TYPE_CODE): Use type::code. Change all call sites used to set
5943 the code to use type::set_code instead.
5944
a05575d3
TBA
59452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5946 Tom de Vries <tdevries@suse.de>
5947 Pedro Alves <palves@redhat.com>
5948
5949 PR threads/25478
5950 * infrun.c (stop_all_threads): Do NOT ignore
5951 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5952 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5953 received.
5954 (handle_no_resumed): Remove code handling a live inferior with no
5955 threads.
5956 * remote.c (has_single_non_exited_thread): New.
5957 (remote_target::update_thread_list): Do not delete a thread if is
5958 the last thread of the process.
5959 * thread.c (thread_select): Call delete_exited_threads instead of
5960 prune_threads.
5961
6ad82919
TBA
59622020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5963
5964 * infrun.c (stop_all_threads): Enable/disable thread events of all
5965 targets. Move a debug message denoting the end of the function
5966 into the SCOPED_EXIT block.
5967
d890404b
TBA
59682020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5969
5970 * process-stratum-target.h: Include <set>.
5971 (all_non_exited_process_targets, switch_to_target_no_thread): New
5972 function declarations.
5973 * process-stratum-target.c (all_non_exited_process_targets)
5974 (switch_to_target_no_thread): New function implementations.
5975
293b3ebc
TBA
59762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5977
5978 * infrun.c (handle_inferior_event): Extract out a piece of code
5979 into...
5980 (mark_non_executing_threads): ...this new function.
5981
7ca9b62a
TBA
59822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5983
5984 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5985 use.
5986
fc75c28b
TBA
59872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5988
5989 * regcache.c (regcache_read_pc_protected): New function
5990 implementation that returns 0 if the PC cannot read via
5991 'regcache_read_pc'.
5992 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5993 instead of 'regcache_read_pc'.
5994 (keep_going_pass_signal): Ditto.
5995
a89febbd
TT
59962020-05-13 Tom Tromey <tromey@adacore.com>
5997
5998 * ada-lang.c (align_value): Remove.
5999 (ada_template_to_fixed_record_type_1): Use align_up.
6000
f7e23710
TBA
60012020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6002
6003 * async-event.c: Update the copyright year.
6004 * async-event.h: Update the copyright year.
6005
02ff80c2
SM
60062020-05-12 Simon Marchi <simon.marchi@efficios.com>
6007
6008 * objfiles.h (is_addr_in_objfile,
6009 shared_objfile_contains_address_p): Return bool.
6010 * objfile.c (is_addr_in_objfile,
6011 shared_objfile_contains_address_p): Return bool.
6012
4fd6c7e8
TT
60132020-05-11 Tom Tromey <tromey@adacore.com>
6014
6015 * cli/cli-cmds.c (info_command): Restore.
6016 (_initialize_cli_cmds): Use add_prefix_command for "info".
6017 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6018
5eb68a39
TT
60192020-05-11 Tom Tromey <tromey@adacore.com>
6020
6021 * ada-lang.c (ada_value_primitive_field): Now public.
6022 * ada-lang.h (ada_value_primitive_field): Declare.
6023 * ada-valprint.c (print_field_values): Use
6024 ada_value_primitive_field for wrapper fields.
6025
7666722f
TV
60262020-05-11 Tom de Vries <tdevries@suse.de>
6027
6028 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6029 MODULE_DOMAIN.
6030
3ee6bb11
TV
60312020-05-11 Tom de Vries <tdevries@suse.de>
6032
6033 PR symtab/25941
6034 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6035 with length 0, if not gdb-produced.
6036 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6037
43434996
TV
60382020-05-09 Tom de Vries <tdevries@suse.de>
6039
6040 PR gdb/25955
6041 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6042 calculation.
6043
2f78cffc
TT
60442020-05-09 Tom Tromey <tom@tromey.com>
6045
6046 * top.c (server_command): Now bool.
6047 * top.h (server_command): Now bool.
6048
4f7bc5ed
TT
60492020-05-08 Tom Tromey <tromey@adacore.com>
6050
6051 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6052 already being processed.
6053
8be4b118
TT
60542020-05-08 Tom Tromey <tom@tromey.com>
6055
6056 * printcmd.c (struct display) <next>: Remove.
6057 <display>: New constructor.
6058 <exp_string>: Now a std::string.
6059 <enabled_p>: Now a bool.
6060 (display_number): Move definition earlier.
6061 (displays): Rename from display_chain. Now a std::vector.
6062 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6063 (display_command): Update.
6064 (do_one_display, disable_display)
6065 (enable_disable_display_command, do_enable_disable_display):
6066 Update.
6067 (free_display): Remove.
6068 (clear_displays): Rewrite.
6069 (delete_display): Update.
6070 (map_display_numbers): Use function_view. Remove "data"
6071 parameter. Update.
6072 (do_delete_display): Remove.
6073 (undisplay_command): Update.
6074 (do_one_display, do_displays, disable_display)
6075 (info_display_command): Update.
6076 (do_enable_disable_display): Remove.
6077 (enable_disable_display_command)
6078 (clear_dangling_display_expressions): Update.
6079
94c93c35
TT
60802020-05-08 Tom Tromey <tom@tromey.com>
6081
6082 * symtab.c (set_symbol_cache_size)
6083 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
6084 (maintenance_print_symbol_cache_statistics): Update.
6085 * symmisc.c (print_symbol_bcache_statistics)
6086 (print_objfile_statistics, maintenance_print_objfiles)
6087 (maintenance_info_symtabs, maintenance_check_symtabs)
6088 (maintenance_expand_symtabs, maintenance_info_line_tables):
6089 Update.
6090 * symfile-debug.c (set_debug_symfile): Update.
6091 * source.c (forget_cached_source_info): Update.
6092 * python/python.c (gdbpy_progspaces): Update.
6093 * psymtab.c (maintenance_info_psymtabs): Update.
6094 * probe.c (parse_probes): Update.
6095 * linespec.c (iterate_over_all_matching_symtabs)
6096 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
6097 * guile/scm-progspace.c (gdbscm_progspaces): Update.
6098 * exec.c (exec_target::close): Update.
6099 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
6100 * breakpoint.c (print_one_breakpoint_location)
6101 (create_longjmp_master_breakpoint)
6102 (create_std_terminate_master_breakpoint): Update.
6103 * progspace.c (program_spaces): Now a std::vector.
6104 (maybe_new_address_space): Update.
6105 (add_program_space): Remove.
6106 (program_space::program_space): Update.
6107 (remove_program_space): Update.
6108 (number_of_program_spaces): Remove.
6109 (print_program_space, update_address_spaces): Update.
6110 * progspace.h (program_spaces): Change type.
6111 (ALL_PSPACES): Remove.
6112 (number_of_program_spaces): Don't declare.
6113 (struct program_space) <next>: Remove.
6114
a1fd1ac9
TT
61152020-05-08 Tom Tromey <tom@tromey.com>
6116
6117 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
6118 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
6119 (enable_break): Update.
6120 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
6121 (frv_fdpic_find_canonical_descriptor): Update.
6122 (frv_fetch_objfile_link_map): Update.
6123 * progspace.c (program_space::free_all_objfiles): Update.
6124 (program_space::solibs): New method.
6125 * progspace.h (struct program_space) <solibs>: New method.
6126 * solist.h (master_so_list): Don't declare.
6127 (ALL_SO_LIBS): Remove.
6128 * solib.h (so_list_head): Remove.
6129 (update_solib_list): Update comment.
6130 * solib.c (master_so_list): Remove.
6131 (solib_used, update_solib_list, solib_add)
6132 (info_sharedlibrary_command, clear_solib)
6133 (reload_shared_libraries_1, remove_user_added_objfile): Update.
6134
38eae084
TT
61352020-05-08 Tom Tromey <tom@tromey.com>
6136
6137 * extension.c (extension_languages): Now a std::array.
6138 (ALL_EXTENSION_LANGUAGES): Remove.
6139 (get_ext_lang_defn, get_ext_lang_of_file)
6140 (eval_ext_lang_from_control_command): Update.
6141 (finish_ext_lang_initialization)
6142 (auto_load_ext_lang_scripts_for_objfile)
6143 (ext_lang_type_printers::ext_lang_type_printers)
6144 (apply_ext_lang_type_printers)
6145 (ext_lang_type_printers::~ext_lang_type_printers)
6146 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
6147 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
6148 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
6149 (get_matching_xmethod_workers, ext_lang_colorize)
6150 (ext_lang_before_prompt): Update.
6151 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
6152
596dc4ad
TT
61532020-05-08 Tom Tromey <tom@tromey.com>
6154
6155 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
6156 overload.
6157 <swap_string, m_string>: Remove.
6158 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
6159 Update.
6160 * stabsread.c (define_symbol, read_type): Update.
6161 * linespec.c (find_linespec_symbols): Update.
6162 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6163 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6164 * dbxread.c (read_dbx_symtab): Update.
6165 * cp-support.h (cp_canonicalize_string_full)
6166 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6167 Return unique_xmalloc_ptr.
6168 * cp-support.c (inspect_type): Update.
6169 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6170 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6171 Likewise.
6172 * c-typeprint.c (print_name_maybe_canonical): Update.
6173 * break-catch-throw.c (check_status_exception_catchpoint):
6174 Update.
6175
bf4cb9be
TV
61762020-05-08 Tom de Vries <tdevries@suse.de>
6177
6178 * infrun.c (follow_fork): Copy current_line and current_symtab to
6179 child thread.
6180
a1b68f28
SM
61812020-05-07 Simon Marchi <simon.marchi@efficios.com>
6182
6183 * async-event.c (struct async_signal_handler, struct
6184 async_event_handler): Reformat, remove typedef.
6185
98d48915
SM
61862020-05-07 Simon Marchi <simon.marchi@efficios.com>
6187
6188 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6189 access thistype->main_type->dyn_prop_list directly.
6190
7aa91313
SM
61912020-05-07 Simon Marchi <simon.marchi@efficios.com>
6192
6193 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6194 (remove_dyn_prop): Remove. Update all users to use
6195 type::remove_dyn_prop.
6196 * gdbtypes.c (remove_dyn_prop): Rename to...
6197 (type::remove_dyn_prop): ... this.
6198
5c54719c
SM
61992020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6200
6201 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6202 (add_dyn_prop): Remove. Update all users to use
6203 type::add_dyn_prop.
6204 * gdbtypes.c (add_dyn_prop): Rename to...
6205 (type::add_dyn_prop): ... this.
6206
24e99c6c
SM
62072020-05-07 Simon Marchi <simon.marchi@efficios.com>
6208
6209 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6210 (get_dyn_prop): Remove. Update all users to use
6211 type::dyn_prop.
6212 * gdbtypes.c (get_dyn_prop): Rename to...
6213 (type::dyn_prop): ... this.
6214
0d4bf016
SM
62152020-05-06 Simon Marchi <simon.marchi@efficios.com>
6216
6217 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6218
ac4a4f1c
SM
62192020-05-06 Simon Marchi <simon.marchi@efficios.com>
6220
6221 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6222 instruction, skip it if it's there.
6223
a3bbacc1
SM
62242020-05-05 Simon Marchi <simon.marchi@efficios.com>
6225
6226 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6227
c3236f84
SM
62282020-05-04 Simon Marchi <simon.marchi@efficios.com>
6229
6230 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6231 * gdbtypes.c (recursive_dump_type): Remove use of
6232 TYPE_INCOMPLETE.
6233
3b6acaee
TT
62342020-05-03 Tom Tromey <tom@tromey.com>
6235
6236 * breakpoint.c (catch_command, tcatch_command): Remove.
6237 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6238 add_show_prefix_cmd.
6239 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6240 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6241 Remove.
6242 (add_internal_problem_command): Use add_basic_prefix_cmd,
6243 add_show_prefix_cmd.
6244 * mips-tdep.c (set_mipsfpu_command): Remove.
6245 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6246 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6247 (_initialize_index_cache): Use add_basic_prefix_cmd.
6248 * memattr.c (dummy_cmd): Remove.
6249 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6250 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6251 (_initialize_tui_win): Use add_basic_prefix_cmd,
6252 add_show_prefix_cmd.
6253 * cli/cli-logging.c (set_logging_command): Remove.
6254 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6255 add_show_prefix_cmd.
6256 (show_logging_command): Remove.
6257 * target.c (target_command): Remove.
6258 (add_target): Use add_basic_prefix_cmd.
6259
a51119cd
HD
62602020-05-02 Hannes Domani <ssbssa@yahoo.de>
6261
6262 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6263
652fc23a 62642020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6265
652fc23a
PW
6266 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6267 info_command.
6268
117539e6
KR
62692020-04-30 Kamil Rytarowski <n54@gmx.com>
6270
6271 * nbsd-nat.c (nbsd_enable_proc_events)
6272 (nbsd_nat_target::post_startup_inferior): Add.
6273 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6274 (nbsd_nat_target::update_thread_list): Rewrite.
6275 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6276 "PTRACE_LWP_CREATE".
6277 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6278
102e38eb 62792020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6280
102e38eb
PW
6281 * stack.c (_initialize_stack): Remove duplicated creation
6282 of "frame" command and "f" alias.
6283
ee9d1e5f
HD
62842020-04-30 Hannes Domani <ssbssa@yahoo.de>
6285
6286 PR gdb/18706
6287 * gdbtypes.c (check_typedef): Calculate size of array of
6288 stubbed type.
6289
627c7fb8
HD
62902020-04-30 Hannes Domani <ssbssa@yahoo.de>
6291
6292 PR gdb/15559
6293 * i386-tdep.c (i386_push_dummy_call): Call
6294 i386_thiscall_push_dummy_call.
6295 (i386_thiscall_push_dummy_call): New function.
6296 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6297 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6298 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6299
ffc2844e
SM
63002020-04-29 Simon Marchi <simon.marchi@efficios.com>
6301
6302 * gdbarch.sh (do_read): Add shellcheck disable directive for
6303 warning SC2162.
6304
1207375d
SM
63052020-04-29 Simon Marchi <simon.marchi@efficios.com>
6306
6307 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6308 "referenced but not assigned" warning.
6309
9fdb2916
SM
63102020-04-29 Simon Marchi <simon.marchi@efficios.com>
6311
6312 * gdbarch.sh: Remove code that sets fallbackdefault.
6313
759cea5e
SM
63142020-04-29 Simon Marchi <simon.marchi@efficios.com>
6315
6316 * gdbarch.sh: Use shell operators && and || instead of
6317 -a and -o.
6318
cb02ab24
SM
63192020-04-29 Simon Marchi <simon.marchi@efficios.com>
6320
6321 * gdbarch.sh: Use $(...) instead of `...`.
6322
a6fc5ffc
SM
63232020-04-29 Simon Marchi <simon.marchi@efficios.com>
6324
6325 * gdbarch.sh: Use double quotes around variables.
6326
8d113d13
SM
63272020-04-29 Simon Marchi <simon.marchi@efficios.com>
6328
6329 * gdbarch.sh: Use %s with printf, instead of variables in the
6330 format string.
6331
ed6acedd
TT
63322020-04-29 Tom Tromey <tromey@adacore.com>
6333
6334 PR ada/25875:
6335 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6336 type fields here.
6337 (read_enumeration_type): Call
6338 update_enumeration_type_from_children later. Update comments.
6339 (process_enumeration_scope): Don't create type fields.
6340
b68b1b58
KR
63412020-04-29 Kamil Rytarowski <n54@gmx.com>
6342
6343 * nbsd-tdep.c: Include "xml-syscall.h".
6344 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6345
f94b2e03
KR
63462020-04-29 Kamil Rytarowski <n54@gmx.com>
6347
6348 * nbsd-nat.c: Include "sys/wait.h".
6349 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6350 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6351 (nbsd_nat_target::remove_exec_catchpoint)
6352 (nbsd_nat_target::set_syscall_catchpoint): Add.
6353 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6354 (nbsd_nat_target::insert_exec_catchpoint)
6355 (nbsd_nat_target::remove_exec_catchpoint)
6356 (nbsd_nat_target::set_syscall_catchpoint): Add.
6357 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6358 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6359 `nbsd_get_syscall_number'.
6360
fc49bc72
TT
63612020-04-29 Tom Tromey <tom@tromey.com>
6362
6363 * stack.c (print_block_frame_labels): Remove.
6364
d642b692
HD
63652020-04-29 Hannes Domani <ssbssa@yahoo.de>
6366
6367 PR gdb/17320
6368 * ada-valprint.c (val_print_packed_array_elements): Move array
6369 end bracket to new line.
6370 (ada_val_print_string): Remove extra spaces before first array
6371 element.
6372 * c-valprint.c (c_value_print_array): Likewise.
6373 * m2-valprint.c (m2_print_array_contents): Likewise.
6374 (m2_value_print_inner): Likewise.
6375 * p-valprint.c (pascal_value_print_inner): Likewise.
6376 * valprint.c (generic_val_print_array): Likewise.
6377 (value_print_array_elements): Move first array element and array
6378 end bracket to new line.
6379
ea90f227
TV
63802020-04-29 Tom de Vries <tdevries@suse.de>
6381
6382 PR symtab/25889
6383 * linespec.c (find_method): Fix ix calculation.
6384
4498ef4f
KR
63852020-04-28 Kamil Rytarowski <n54@gmx.com>
6386
6387 * syscalls/update-netbsd.sh: New file.
6388 * syscalls/netbsd.xml: Regenerate.
6389 * data-directory/Makefile.in: Register `netbsd.xml' in
6390 `SYSCALLS_FILES'.
6391
a55e30b5
SM
63922020-04-28 Simon Marchi <simon.marchi@efficios.com>
6393
6394 * syscalls/update-freebsd.sh: Add double quotes.
6395
2b2fbab8
TT
63962020-04-28 Tom Tromey <tom@tromey.com>
6397
6398 * NEWS: Update.
6399 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6400 (cmdpy_init): Allow class_tui.
6401
a65189c9
TV
64022020-04-28 Mark Williams <mark@myosotissp.com>
6403
6404 PR gdb/24480
6405 * dwarf2read.c: Add missing assingments to list_in_scope when
6406 start_symtab was already called.
6407
1b95cdb7
SM
64082020-04-28 Simon Marchi <simon.marchi@efficios.com>
6409
6410 PR gdb/25881
6411 * dwarf2/read.c (offset_map_type): Use
6412 gdb:hash_enum<sect_offset> as hash function.
6413
15cd93d0
TV
64142020-04-28 Tom de Vries <tdevries@suse.de>
6415
6416 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6417 with DW_AT_signature.
6418
1eb39914
SM
64192020-04-27 Simon Marchi <simon.marchi@efficios.com>
6420
6421 * configure.ac: Remove check for fs_base/gs_base in
6422 user_regs_struct.
6423 * configure: Re-generate.
6424 * config.in: Re-generate.
6425 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6426 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6427 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6428
991a3e2e
LM
64292020-04-27 Luis Machado <luis.machado@linaro.org>
6430
6431 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6432 problematic inline frame unwinding situation.
6433 * frame.c (frame_id_computed_p): New function.
6434 * frame.h (frame_id_computed_p): New prototype.
6435
361ba0e8
TT
64362020-04-26 Tom Tromey <tom@tromey.com>
6437
6438 * command.h (enum command_class) <class_pseudo>: Remove.
6439
bc3609fd
PW
64402020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6441
6442 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6443 and whitespace.
6444
b9771db7
KR
64452020-04-25 Kamil Rytarowski <n54@gmx.com>
6446
ec16513e
SM
6447 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6448 `PT_GET_PROCESS_STATE' block.
b9771db7 6449
7151c1af
TT
64502020-04-24 Tom Tromey <tom@tromey.com>
6451
6452 * symtab.h (symbol_get_demangled_name): Don't declare.
6453 * symtab.c (symbol_get_demangled_name): Remove.
6454 (general_symbol_info::natural_name)
6455 (general_symbol_info::demangled_name): Update.
6456
906bb4c5
TT
64572020-04-24 Tom Tromey <tom@tromey.com>
6458
6459 PR rust/25025:
6460 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6461
bcfe6157
TT
64622020-04-24 Tom Tromey <tom@tromey.com>
6463
6464 PR symtab/12707:
6465 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6466 exists.
6467 (new_symbol): Likewise.
6468 * compile/compile-object-load.c (get_out_value_type): Use
6469 symbol_matches_search_name.
6470
f049a313
TT
64712020-04-24 Tom Tromey <tom@tromey.com>
6472
6473 * dwarf2/read.c (add_partial_symbol): Do not call
6474 compute_and_set_names.
6475
76e288d1
TT
64762020-04-24 Tom Tromey <tom@tromey.com>
6477
6478 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6479 overload.
6480
2467f4f6
TT
64812020-04-24 Tom Tromey <tom@tromey.com>
6482
6483 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6484 (add_psymbol_to_list): New overload. Make old overload call new
6485 one.
6486 * psympriv.h (add_psymbol_to_list): New overload.
6487
e61108c9
TT
64882020-04-24 Tom Tromey <tom@tromey.com>
6489
6490 * dwarf2/read.c (partial_die_info::read) <case
6491 DW_AT_linkage_name>: Use value_as_string.
6492 (dwarf2_string_attr): Use value_as_string.
6493 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6494 method.
6495 * dwarf2/attribute.c (attribute::value_as_string): New method.
6496
8c87a452
TT
64972020-04-24 Tom Tromey <tom@tromey.com>
6498
6499 * symtab.c (general_symbol_info::natural_name)
6500 (general_symbol_info::demangled_name): Check for language_rust.
6501
787de330
TT
65022020-04-24 Tom Tromey <tom@tromey.com>
6503
6504 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6505 (dwarf2_physname): ... from here.
6506 (partial_die_info::read): Add Rust "{" hack.
6507
ff985671
TT
65082020-04-24 Tom Tromey <tom@tromey.com>
6509
6510 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6511 method.
6512 (symbol_set_demangled_name): Don't declare.
6513 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6514 symbol_set_demangled_name.
6515 (general_symbol_info::set_language)
6516 (general_symbol_info::compute_and_set_names): Update.
6517 * minsyms.c (minimal_symbol_reader::install): Update.
6518 * dwarf2/read.c (new_symbol): Update.
6519
1acda803
TT
65202020-04-24 Tom Tromey <tromey@adacore.com>
6521
6522 PR python/23662:
6523 * python/py-type.c (convert_field): Handle
6524 FIELD_LOC_KIND_DWARF_BLOCK.
6525 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6526 (typy_get_dynamic): Nw function.
6527 (type_object_getset): Add "dynamic".
6528 * NEWS: Add entry.
6529
d656f129
TT
65302020-04-24 Tom Tromey <tromey@adacore.com>
6531
6532 * ada-typeprint.c (print_choices, print_variant_part)
6533 (print_record_field_types_dynamic): New functions.
6534 (print_record_field_types): Use print_record_field_types_dynamic.
6535
7d79de9a
TT
65362020-04-24 Tom Tromey <tromey@adacore.com>
6537
6538 * dwarf2/read.c (handle_data_member_location): New overload.
6539 (dwarf2_add_field): Use it.
6540 (decode_locdesc): Add "computed" parameter. Update comment.
6541 * gdbtypes.c (is_dynamic_type_internal): Also look for
6542 FIELD_LOC_KIND_DWARF_BLOCK.
6543 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6544 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6545 virtual base classes.
6546 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6547 FIELD_LOC_KIND_DWARF_BLOCK.
6548
f8e89861
TT
65492020-04-24 Tom Tromey <tromey@adacore.com>
6550
6551 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6552 * gdbtypes.c (is_dynamic_type_internal): Check
6553 TYPE_HAS_DYNAMIC_LENGTH.
6554 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6555 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6556 New macros.
6557 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6558 constant.
6559
9c6a1327
TT
65602020-04-24 Tom Tromey <tromey@adacore.com>
6561
6562 * dwarf2/read.c (struct variant_field): Rewrite.
6563 (struct variant_part_builder): New.
6564 (struct nextfield): Remove "variant" field. Add "offset".
6565 (struct field_info): Add "current_variant_part" and
6566 "variant_parts".
6567 (alloc_discriminant_info): Remove.
6568 (alloc_rust_variant): New function.
6569 (quirk_rust_enum): Update.
6570 (dwarf2_add_field): Set "offset" member. Don't handle
6571 DW_TAG_variant_part.
6572 (offset_map_type): New typedef.
6573 (convert_variant_range, create_one_variant)
6574 (create_one_variant_part, create_variant_parts)
6575 (add_variant_property): New functions.
6576 (dwarf2_attach_fields_to_type): Call add_variant_property.
6577 (read_structure_type): Don't handle DW_TAG_variant_part.
6578 (handle_variant_part, handle_variant): New functions.
6579 (handle_struct_member_die): Use them.
6580 (process_structure_scope): Don't handle variant parts.
6581 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6582 (struct discriminant_info): Remove.
6583 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6584 (struct main_type) <flag_discriminated_union>: Remove.
6585 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6586 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6587 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6588 Update.
6589 * valops.c (value_union_variant): Remove.
6590 * value.h (value_union_variant): Don't declare.
6591
b249d2c2
TT
65922020-04-24 Tom Tromey <tromey@adacore.com>
6593
6594 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6595 (ada_value_primitive_packed_val): Update.
6596 * ada-valprint.c (ada_value_print_1): Update.
6597 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6598 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6599 just an address. Use evaluate_for_locexpr_baton.
6600 (dwarf2_evaluate_property): Update.
6601 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6602 array_view.
6603 * findvar.c (default_read_var_value): Update.
6604 * gdbtypes.c (compute_variant_fields_inner)
6605 (resolve_dynamic_type_internal): Update.
6606 (resolve_dynamic_type): Change type of valaddr parameter.
6607 * gdbtypes.h (resolve_dynamic_type): Update.
6608 * valarith.c (value_subscripted_rvalue): Update.
6609 * value.c (value_from_contents_and_address): Update.
6610
61122aa9
TT
66112020-04-24 Tom Tromey <tromey@adacore.com>
6612
6613 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6614 "push_initial_value" parameter.
6615 (dwarf2_evaluate_property): Likewise.
6616 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6617
ef83a141
TT
66182020-04-24 Tom Tromey <tromey@adacore.com>
6619
6620 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6621 (variant::matches, compute_variant_fields_recurse)
6622 (compute_variant_fields_inner, compute_variant_fields): New
6623 functions.
6624 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6625 Use resolved_type after type is made.
6626 (operator==): Add new cases.
6627 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6628 (struct discriminant_range, struct variant, struct variant_part):
6629 New.
6630 (union dynamic_prop_data) <variant_parts, original_type>: New
6631 members.
6632 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6633 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6634 constants.
6635 * value.c (unpack_bits_as_long): Now public.
6636 * value.h (unpack_bits_as_long): Declare.
6637
675127ec
TT
66382020-04-24 Tom Tromey <tromey@adacore.com>
6639
6640 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6641 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6642
9852ceef
HD
66432020-04-24 Hannes Domani <ssbssa@yahoo.de>
6644
6645 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6646
7632c6ce
KR
66472020-04-24 Kamil Rytarowski <n54@gmx.com>
6648
6649 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6650 (remove_fork_catchpoint, post_startup_inferior)
6651 (post_attach): Move...
6652 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6653 (remove_fork_catchpoint, post_startup_inferior)
6654 (post_attach): ...here.
6655 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6656 (remove_fork_catchpoint, post_startup_inferior)
6657 (post_attach): Move...
6658 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6659 (remove_fork_catchpoint, post_startup_inferior)
6660 (post_attach): ...here.
6661
7be2bb4f
TT
66622020-04-24 Tom Tromey <tromey@adacore.com>
6663
6664 * nat/windows-nat.h (struct windows_thread_info)
6665 <pc_adjusted>: New member.
6666 * windows-nat.c (windows_fetch_one_register): Check
6667 pc_adjusted.
6668 (windows_nat_target::get_windows_debug_event)
6669 (windows_nat_target::wait): Set pc_adjusted.
6670
f80cb3b4
TV
66712020-04-24 Tom de Vries <tdevries@suse.de>
6672
6673 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6674 Run gdb-add-index inside temp dir.
6675
29514b87
TT
66762020-04-23 Tom Tromey <tromey@adacore.com>
6677
6678 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6679 in loop.
6680
5939967b
LM
66812020-04-23 Luis Machado <luis.machado@linaro.org>
6682
6683 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6684 get_frame_register instead of gdbarch_unwind_pc.
6685
70bc38f5
TV
66862020-04-23 Tom de Vries <tdevries@suse.de>
6687
6688 * symtab.c (lookup_global_symbol): Prefer def over decl.
6689
de82891c
TV
66902020-04-23 Tom de Vries <tdevries@suse.de>
6691
6692 PR symtab/25807
6693 * block.c (best_symbol, better_symbol): Promote to external.
6694 * block.h (best_symbol, better_symbol): Declare.
6695 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6696 decl.
6697
ecc6c606
TT
66982020-04-23 Tom Tromey <tromey@adacore.com>
6699
6700 PR ada/25837:
6701 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6702 "const char *", not a "const std::string &".
6703 <name_and_matcher::operator==>: Update.
6704 * unittests/lookup_name_info-selftests.c: Change type of
6705 "result".
6706
740480b8
TT
67072020-04-23 Tom Tromey <tom@tromey.com>
6708
6709 * inferior.h (iterate_over_inferiors): Don't declare.
6710 * inferior.c (iterate_over_inferiors): Remove.
6711 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6712 Remove.
6713 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6714 use iterate_over_inferiors.
6715 (darwin_resume_inferior_it)
6716 (struct resume_inferior_threads_param)
6717 (darwin_resume_inferior_threads_it): Remove.
6718 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6719
ae3ab1f0
TV
67202020-04-23 Tom de Vries <tdevries@suse.de>
6721
6722 * blockframe.c (find_pc_partial_function): Use
6723 find_pc_sect_compunit_symtab rather than
6724 objfile->sf->qf->find_pc_sect_compunit_symtab.
6725
317d2668
TV
67262020-04-22 Tom de Vries <tdevries@suse.de>
6727
6728 PR symtab/25764
6729 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6730 in psymtabs.
6731
eea9e357
TV
67322020-04-22 Tom de Vries <tdevries@suse.de>
6733
6734 PR symtab/25801
6735 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6736 symtabs.
6737
3d5afab3
TV
67382020-04-22 Tom de Vries <tdevries@suse.de>
6739
6740 PR symtab/25700
6741 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6742 CU if already created.
6743
d43b7a2d
TBA
67442020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6745
6746 * infrun.c (displaced_step_fixup): Switch to the event_thread
6747 before calling displaced_step_restore, not after.
6748
d89edf9b
MM
67492020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6750
6751 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6752 its inferior is not recorded by us.
6753 (record_btrace_target_open): Replace call to
6754 all_non_exited_threads () with call to current_inferior
6755 ()->non_exited_threads ().
6756 (record_btrace_target::stop_recording): Likewise.
6757 (record_btrace_target::close): Likewise.
6758 (record_btrace_target::wait): Likewise.
6759 (record_btrace_target::record_stop_replaying): Likewise.
6760
5897fd49
MM
67612020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6762
6763 * btrace.c (btrace_enable): Throw an error on double enables and
6764 when enabling recording fails.
6765 (btrace_disable): Throw an error if the thread is not recorded.
6766
1a476b6d
MM
67672020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6768
6769 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6770 request if we do not have a thread_info.
6771
4778a5f8
TV
67722020-04-21 Tom de Vries <tdevries@suse.de>
6773
6774 PR gdb/25471
6775 * thread.c
6776 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6777 exception in get_frame_id.
6778
0fa7617d
TT
67792020-04-20 Tom Tromey <tromey@adacore.com>
6780
6781 * python/python.c (struct gdbpy_event): Mark move constructor as
6782 noexcept.
6783 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6784 constructor as noexcept.
6785 * completer.h (struct completion_result): Mark move constructor as
6786 noexcept.
6787 * completer.c (completion_result::completion_result): Use
6788 initialization style. Don't call reset_match_list.
6789
ad23bda0
MS
67902020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6791
6792 * MAINTAINERS (Write After Approval): Add myself.
6793
45e1f031
TT
67942020-04-18 Tom Tromey <tom@tromey.com>
6795
6796 * windows-tdep.c (init_w32_command_list)
6797 (w32_prefix_command_valid): Restore.
6798 (_initialize_windows_tdep): Call init_w32_command_list.
6799
08feed99
TT
68002020-04-18 Tom Tromey <tom@tromey.com>
6801
6802 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6803 * value.c (value_fn_field): Update.
6804 * valops.c (find_function_in_inferior)
6805 (value_allocate_space_in_inferior): Update.
6806 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6807 Update.
6808 * tui/tui-source.c (tui_source_window::set_contents): Update.
6809 * symtab.c (lookup_global_or_static_symbol)
6810 (find_function_start_sal_1, skip_prologue_sal)
6811 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6812 * symmisc.c (dump_msymbols, dump_symtab_1)
6813 (maintenance_print_one_line_table): Update.
6814 * symfile.c (init_entry_point_info, section_is_mapped)
6815 (list_overlays_command, simple_read_overlay_table)
6816 (simple_overlay_update_1): Update.
6817 * stap-probe.c (handle_stap_probe): Update.
6818 * stabsread.c (dbx_init_float_type, define_symbol)
6819 (read_one_struct_field, read_enum_type, read_range_type): Update.
6820 * source.c (info_line_command): Update.
6821 * python/python.c (gdbpy_source_objfile_script)
6822 (gdbpy_execute_objfile_script): Update.
6823 * python/py-type.c (save_objfile_types): Update.
6824 * python/py-objfile.c (py_free_objfile): Update.
6825 * python/py-inferior.c (python_new_objfile): Update.
6826 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6827 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6828 (maintenance_check_psymtabs): Update.
6829 * printcmd.c (info_address_command): Update.
6830 * objfiles.h (struct objfile) <arch>: New method, from
6831 get_objfile_arch.
6832 (get_objfile_arch): Don't declare.
6833 * objfiles.c (get_objfile_arch): Remove.
6834 (filter_overlapping_sections): Update.
6835 * minsyms.c (msymbol_is_function): Update.
6836 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6837 (output_nondebug_symbol): Update.
6838 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6839 (mdebug_expand_psymtab): Update.
6840 * machoread.c (macho_add_oso_symfile): Update.
6841 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6842 Update.
6843 * linux-fork.c (checkpoint_command): Update.
6844 * linespec.c (convert_linespec_to_sals): Update.
6845 * jit.c (finalize_symtab): Update.
6846 * infrun.c (insert_exception_resume_from_probe): Update.
6847 * ia64-tdep.c (ia64_find_unwind_table): Update.
6848 * hppa-tdep.c (internalize_unwinds): Update.
6849 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6850 Update.
6851 * gcore.c (call_target_sbrk): Update.
6852 * elfread.c (record_minimal_symbol, elf_symtab_read)
6853 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6854 (elf_gnu_ifunc_resolve_by_got): Update.
6855 * dwarf2/read.c (create_addrmap_from_index)
6856 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6857 (read_debug_names_from_section)
6858 (process_psymtab_comp_unit_reader, add_partial_symbol)
6859 (add_partial_subprogram, process_full_comp_unit)
6860 (read_file_scope, read_func_scope, read_lexical_block_scope)
6861 (read_call_site_scope, dwarf2_ranges_read)
6862 (dwarf2_record_block_ranges, dwarf2_add_field)
6863 (mark_common_block_symbol_computed, read_tag_pointer_type)
6864 (read_tag_string_type, dwarf2_init_float_type)
6865 (dwarf2_init_complex_target_type, read_base_type)
6866 (partial_die_info::read, partial_die_info::read)
6867 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6868 (dwarf2_fetch_die_loc_sect_off): Update.
6869 * dwarf2/loc.c (dwarf2_find_location_expression)
6870 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6871 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6872 (dwarf2_loc_desc_get_symbol_read_needs)
6873 (locexpr_describe_location_piece, locexpr_describe_location_1)
6874 (loclist_describe_location): Update.
6875 * dwarf2/index-write.c (write_debug_names): Update.
6876 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6877 * dtrace-probe.c (dtrace_process_dof): Update.
6878 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6879 (process_one_symbol): Update.
6880 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6881 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6882 (coff_read_enum_type): Update.
6883 * cli/cli-cmds.c (edit_command, list_command): Update.
6884 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6885 * breakpoint.c (create_overlay_event_breakpoint)
6886 (create_longjmp_master_breakpoint)
6887 (create_std_terminate_master_breakpoint)
6888 (create_exception_master_breakpoint, get_sal_arch): Update.
6889 * block.c (block_gdbarch): Update.
6890 * annotate.c (annotate_source_line): Update.
6891
0743fc83
TT
68922020-04-17 Tom Tromey <tromey@adacore.com>
6893
6894 * auto-load.c (show_auto_load_cmd): Remove.
6895 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6896 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6897 (maintenance_print_arc_command): Remove.
6898 * tui/tui-win.c (tui_command): Remove.
6899 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6900 * tui/tui-layout.c (tui_layout_command): Remove.
6901 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6902 * python/python.c (user_set_python, user_show_python): Remove.
6903 (_initialize_python): Use add_basic_prefix_cmd,
6904 add_show_prefix_cmd.
6905 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6906 (install_gdb_commands): Use add_basic_prefix_cmd,
6907 add_show_prefix_cmd.
6908 (info_guile_command): Remove.
6909 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6910 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6911 add_show_prefix_cmd.
6912 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6913 Remove do_set and do_show parameters.
6914 * cli/cli-style.c (set_style, show_style): Remove.
6915 (_initialize_cli_style): Use add_basic_prefix_cmd,
6916 add_show_prefix_cmd.
6917 (cli_style_option::add_setshow_commands): Remove do_set and
6918 do_show parameters.
6919 (cli_style_option::add_setshow_commands): Use
6920 add_basic_prefix_cmd, add_show_prefix_cmd.
6921 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6922 (set_style_name): Remove.
6923 * cli/cli-dump.c (dump_command, append_command): Remove.
6924 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6925 (tekhex_dump_command, binary_dump_command)
6926 (binary_append_command): Remove.
6927 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6928 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6929 (init_w32_command_list): Remove; move into ...
6930 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6931 * valprint.c (set_print, show_print, set_print_raw)
6932 (show_print_raw): Remove.
6933 (_initialize_valprint): Use add_basic_prefix_cmd,
6934 add_show_prefix_cmd.
6935 * typeprint.c (set_print_type, show_print_type): Remove.
6936 (_initialize_typeprint): Use add_basic_prefix_cmd,
6937 add_show_prefix_cmd.
6938 * record.c (set_record_command, show_record_command): Remove.
6939 (_initialize_record): Use add_basic_prefix_cmd,
6940 add_show_prefix_cmd.
6941 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6942 add_show_prefix_cmd.
6943 (info_command, show_command, set_debug, show_debug): Remove.
6944 * top.h (set_history, show_history): Don't declare.
6945 * top.c (set_history, show_history): Remove.
6946 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6947 (unset_tdesc_cmd): Remove.
6948 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6949 add_show_prefix_cmd.
6950 * symtab.c (info_module_command): Remove.
6951 (_initialize_symtab): Use add_basic_prefix_cmd.
6952 * symfile.c (overlay_command): Remove.
6953 (_initialize_symfile): Use add_basic_prefix_cmd.
6954 * sparc64-tdep.c (info_adi_command): Remove.
6955 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6956 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6957 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6958 add_show_prefix_cmd.
6959 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6960 (_initialize_serial): Use add_basic_prefix_cmd,
6961 add_show_prefix_cmd.
6962 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6963 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6964 add_show_prefix_cmd.
6965 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6966 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6967 add_show_prefix_cmd.
6968 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6969 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6970 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6971 add_show_prefix_cmd.
6972 * remote.c (remote_command, set_remote_cmd): Remove.
6973 (_initialize_remote): Use add_basic_prefix_cmd.
6974 * record-full.c (set_record_full_command)
6975 (show_record_full_command): Remove.
6976 (_initialize_record_full): Use add_basic_prefix_cmd,
6977 add_show_prefix_cmd.
6978 * record-btrace.c (cmd_set_record_btrace)
6979 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6980 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6981 (cmd_show_record_btrace_pt): Remove.
6982 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6983 add_show_prefix_cmd.
6984 * ravenscar-thread.c (set_ravenscar_command)
6985 (show_ravenscar_command): Remove.
6986 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6987 add_show_prefix_cmd.
6988 * mips-tdep.c (show_mips_command, set_mips_command)
6989 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6990 add_show_prefix_cmd.
6991 * maint.c (maintenance_command, maintenance_info_command)
6992 (maintenance_check_command, maintenance_print_command)
6993 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6994 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6995 add_show_prefix_cmd.
6996 (show_per_command_cmd): Remove.
6997 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6998 Remove.
6999 (maintenance_show_test_settings_cmd): Remove.
7000 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7001 add_show_prefix_cmd.
7002 * maint-test-options.c (maintenance_test_options_command):
7003 Remove.
7004 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7005 * macrocmd.c (macro_command): Remove
7006 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7007 * language.c (set_check, show_check): Remove.
7008 (_initialize_language): Use add_basic_prefix_cmd,
7009 add_show_prefix_cmd.
7010 * infcmd.c (unset_command): Remove.
7011 (_initialize_infcmd): Use add_basic_prefix_cmd.
7012 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7013 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7014 add_show_prefix_cmd.
7015 * go32-nat.c (go32_info_dos_command): Remove.
7016 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7017 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7018 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7019 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7020 (_initialize_frame): Use add_basic_prefix_cmd,
7021 add_show_prefix_cmd.
7022 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7023 (_initialize_dcache): Use add_basic_prefix_cmd,
7024 add_show_prefix_cmd.
7025 * cp-support.c (maint_cplus_command): Remove.
7026 (_initialize_cp_support): Use add_basic_prefix_cmd.
7027 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7028 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7029 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7030 add_basic_prefix_cmd, add_show_prefix_cmd.
7031 * breakpoint.c (save_command): Remove.
7032 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7033 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7034 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7035 add_show_prefix_cmd.
7036 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7037 (set_ada_command, show_ada_command): Remove.
7038 (_initialize_ada_language): Use add_basic_prefix_cmd,
7039 add_show_prefix_cmd.
7040 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7041
3557f442
KR
70422020-04-16 Kamil Rytarowski <n54@gmx.com>
7043
7044 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7045 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7046
16197208
SM
70472020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7048
7049 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7050 warning messages.
7051
00ac85d3
SM
70522020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7053
7054 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7055 import table is not at beginning of .idata section.
7056
381ce63f
PA
70572020-04-16 Pedro Alves <palves@redhat.com>
7058
7059 * inferior.c (delete_inferior): Use delete operator directly
7060 instead of delete_program_space.
7061 * progspace.c (add_program_space): New, factored out from
7062 program_space::program_space.
7063 (remove_program_space): New, factored out from
7064 delete_program_space.
7065 (program_space::program_space): Remove intro comment. Rewrite.
7066 (program_space::~program_space): Remove intro comment. Call
7067 remove_program_space.
7068 (delete_program_space): Delete.
7069 * progspace.h (program_space::program_space): Make explicit. Move
7070 intro comment here, adjusted.
7071 (program_space::~program_space): Move intro comment here,
7072 adjusted.
7073 (delete_program_space): Remove.
7074
a010605f
TT
70752020-04-16 Tom Tromey <tromey@adacore.com>
7076
7077 * windows-nat.c (windows_nat::handle_access_violation): New
7078 function.
7079 * nat/windows-nat.h (handle_access_violation): Declare.
7080 * nat/windows-nat.c (handle_exception): Move Cygwin code to
7081 windows-nat.c. Call handle_access_violation.
7082
efba5c23
TV
70832020-04-16 Tom de Vries <tdevries@suse.de>
7084
7085 PR symtab/25791
7086 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
7087 CUs without psymtab.
7088
97ed802d
KB
70892020-04-16 Kevin Buettner <kevinb@redhat.com>
7090
7091 * python/python.c (do_start_initialization): Don't call
7092 PyEval_InitThreads for Python 3.9 and beyond.
7093
c7d64809
KR
70942020-04-15 Kamil Rytarowski <n54@gmx.com>
7095
7096 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
7097 thread functions.
7098 (obsd_nat_target::wait): Likewise.
7099
ce127a96
TT
71002020-04-15 Tom Tromey <tromey@adacore.com>
7101
7102 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
7103 (DEBUG_EXCEPT): Use debug_printf.
7104
99f1bc6a
AB
71052020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
7106
7107 * completer.c (class completion_tracker::completion_hash_entry)
7108 <hash_name>: New member function.
7109 (completion_tracker::discard_completions): New callback to hash a
7110 completion_hash_entry, pass this to htab_create_alloc.
7111
a0e9b532
JT
71122016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
7113
7114 * windows-nat.c (windows_make_so): Warn rather than stopping with
7115 an error if realpath() fails.
7116
06ca5dd4
KR
71172020-04-14 Kamil Rytarowski <n54@gmx.com>
7118
7119 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
7120 (nbsd_nat_target::info_proc): Add do_status.
7121
194d088f
TV
71222020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
7123 Tom de Vries <tdevries@suse.de>
7124
7125 PR symtab/25718
7126 * psympriv.h (struct partial_symtab::read_symtab)
7127 (struct partial_symtab::expand_psymtab)
7128 (struct partial_symtab::read_dependencies): Update comments.
7129 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
7130 read_symtab for includer.
7131 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
7132 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
7133 (struct dwarf2_include_psymtab::m_readin): Remove.
7134 (struct dwarf2_include_psymtab::includer): New member function.
7135 (dwarf2_psymtab::expand_psymtab): Assert !readin.
7136
c1a66c06
TV
71372020-04-14 Tom de Vries <tdevries@suse.de>
7138
7139 PR symtab/25720
7140 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
7141 with NULL symbol_matcher and lookup_name.
7142 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
7143 and lookup_name.
7144 * dwarf2/read.c (dw2_expand_symtabs_matching)
7145 (dw2_debug_names_expand_symtabs_matching): Same.
7146 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
7147 Make lookup_name a pointer. Update comment.
7148 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
7149 lookup_name being a pointer.
7150 * symfile.c (expand_symtabs_matching): Same.
7151 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
7152 * linespec.c (iterate_over_all_matching_symtabs): Same.
7153
400b5eca
TT
71542020-04-13 Tom Tromey <tom@tromey.com>
7155
7156 * run-on-main-thread.c: Update include.
7157 * unittests/main-thread-selftests.c: Update include.
7158 * tui/tui-win.c: Update include.
7159 * tui/tui-io.c: Update include.
7160 * tui/tui-interp.c: Update include.
7161 * tui/tui-hooks.c: Update include.
7162 * top.h: Update include.
7163 * top.c: Update include.
7164 * ser-base.c: Update include.
7165 * remote.c: Update include.
7166 * remote-notif.c: Update include.
7167 * remote-fileio.c: Update include.
7168 * record-full.c: Update include.
7169 * record-btrace.c: Update include.
7170 * python/python.c: Update include.
7171 * posix-hdep.c: Update include.
7172 * mingw-hdep.c: Update include.
7173 * mi/mi-main.c: Update include.
7174 * mi/mi-interp.c: Update include.
7175 * main.c: Update include.
7176 * linux-nat.c: Update include.
7177 * interps.c: Update include.
7178 * infrun.c: Update include.
7179 * inf-loop.c: Update include.
7180 * event-top.c: Update include.
7181 * event-loop.c: Move to ../gdbsupport/.
7182 * event-loop.h: Move to ../gdbsupport/.
7183 * async-event.h: Update include.
7184 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7185
93b54c8e
TT
71862020-04-13 Tom Tromey <tom@tromey.com>
7187
7188 * tui/tui-win.c: Include async-event.h.
7189 * remote.c: Include async-event.h.
7190 * remote-notif.c: Include async-event.h.
7191 * record-full.c: Include async-event.h.
7192 * record-btrace.c: Include async-event.h.
7193 * infrun.c: Include async-event.h.
7194 * event-top.c: Include async-event.h.
7195 * event-loop.h: Move some declarations to async-event.h.
7196 * event-loop.c: Don't include ser-event.h or top.h. Move some
7197 code to async-event.c.
7198 * async-event.h: New file.
7199 * async-event.c: New file.
7200 * Makefile.in (COMMON_SFILES): Add async-event.c.
7201 (HFILES_NO_SRCDIR): Add async-event.h.
7202
c1cd3163
TT
72032020-04-13 Tom Tromey <tom@tromey.com>
7204
7205 * utils.c (flush_streams): New function.
7206 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7207
29f2bf4f
TT
72082020-04-13 Tom Tromey <tom@tromey.com>
7209
7210 * event-loop.c (handle_file_event): Use warning, not
7211 printf_unfiltered.
7212
98029d02
TT
72132020-04-13 Tom Tromey <tom@tromey.com>
7214
7215 * event-loop.c: Include <chrono>.
7216
06cc9596
TT
72172020-04-13 Tom Tromey <tom@tromey.com>
7218
7219 * gdb_select.h: Move to ../gdbsupport/.
7220 * event-loop.c: Update include path.
7221 * top.c: Update include path.
7222 * ser-base.c: Update include path.
7223 * ui-file.c: Update include path.
7224 * ser-tcp.c: Update include path.
7225 * guile/scm-ports.c: Update include path.
7226 * posix-hdep.c: Update include path.
7227 * ser-unix.c: Update include path.
7228 * gdb_usleep.c: Update include path.
7229 * mingw-hdep.c: Update include path.
7230 * inflow.c: Update include path.
7231 * infrun.c: Update include path.
7232 * event-top.c: Update include path.
7233
8ae8e197
TT
72342020-04-13 Tom Tromey <tom@tromey.com>
7235
7236 * configure: Rebuild.
7237 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7238
58cf28e8
TT
72392020-04-13 Tom Tromey <tom@tromey.com>
7240
7241 * event-loop.h (start_event_loop): Don't declare.
7242 * event-loop.c (start_event_loop): Move...
7243 * main.c (start_event_loop): ...here. Now static.
7244
b7f999ae
SDJ
72452020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7246
7247 * MAINTAINERS: Update my email address.
7248
1085dfd4
KR
72492020-04-12 Kamil Rytarowski <n54@gmx.com>
7250
7251 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7252 IP_ALL.
7253
49d1d1f5
KR
72542020-04-12 Kamil Rytarowski <n54@gmx.com>
7255
7256 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 7257 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 7258
b4848d2a
KR
72592020-04-12 Kamil Rytarowski <n54@gmx.com>
7260
7261 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 7262 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 7263
51c133d5
KR
72642020-04-12 Kamil Rytarowski <n54@gmx.com>
7265
7266 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7267
54b8cbd0
KR
72682020-04-11 Kamil Rytarowski <n54@gmx.com>
7269
7270 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7271 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7272 (nbsd_nat_target::info_proc): New functions.
7273 * nbsd-nat.c (kinfo_get_vmmap): New function.
7274 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7275 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7276 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7277 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7278 functions.
7279 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7280 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7281 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7282 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7283 (KINFO_VME_FLAG_GROWS_DOWN): New.
7284
cf83625d
AS
72852020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7286
7287 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7288 bit shift.
7289
0c4311ab
TT
72902020-04-10 Tom Tromey <tromey@adacore.com>
7291
7292 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7293
3e65b3e9
TT
72942020-04-10 Tom Tromey <tromey@adacore.com>
7295
7296 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7297 separate debug files.
7298
13302e95
HD
72992020-04-10 Hannes Domani <ssbssa@yahoo.de>
7300
7301 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7302 Move to...
7303 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7304 ... here.
7305 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7306 Check for STATUS_WX86_BREAKPOINT.
7307 (windows_nat_target::wait): Same.
7308
bdfc1e8a
TV
73092020-04-10 Tom de Vries <tdevries@suse.de>
7310
7311 PR cli/25808
7312 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7313
f4460aec
SM
73142020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7315
7316 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7317 (Write After Approval): Remove Tom de Vries.
7318
a25198bb
BE
73192020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7320
7321 revert partially:
7322 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7323
aac66a4c
SM
7324 * buildsym.c (record_line): Fix undefined behavior and preserve
7325 lines at eof.
a25198bb 7326
206c98a6
KR
73272020-04-09 Kamil Rytarowski <n54@gmx.com>
7328
7329 * auxv.h (svr4_auxv_parse): New.
7330 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7331 and generic_auxv_parse.
7332 (svr4_auxv_parse): Add.
7333 * obsd-tdep.c: Include "auxv.h".
7334 (obsd_auxv_parse): Remove.
7335 (obsd_init_abi): Remove comment.
7336 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7337 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7338 * nbsd-tdep.c: Include "auxv.h".
7339 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7340
71fbdbaf
TT
73412020-04-08 Tom Tromey <tromey@adacore.com>
7342
7343 * nat/windows-nat.h (last_wait_event): Don't declare.
7344 (wait_for_debug_event): Update comment.
7345 * nat/windows-nat.c (last_wait_event): Now static.
7346
2c1d95e8
TT
73472020-04-08 Tom Tromey <tromey@adacore.com>
7348
7349 * windows-nat.c (wait_for_debug_event): Move to
7350 nat/windows-nat.c.
7351 * nat/windows-nat.h (wait_for_debug_event): Declare.
7352 * nat/windows-nat.c (wait_for_debug_event): Move from
7353 windows-nat.c. No longer static.
7354
d2977bc4
TT
73552020-04-08 Tom Tromey <tromey@adacore.com>
7356
7357 * windows-nat.c (get_windows_debug_event): Use
7358 fetch_pending_stop.
7359 * nat/windows-nat.h (fetch_pending_stop): Declare.
7360 * nat/windows-nat.c (fetch_pending_stop): New function.
7361
e758e19c
TT
73622020-04-08 Tom Tromey <tromey@adacore.com>
7363
7364 * windows-nat.c (windows_continue): Use matching_pending_stop and
7365 continue_last_debug_event.
7366 * nat/windows-nat.h (matching_pending_stop)
7367 (continue_last_debug_event): Declare.
7368 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7369 (matching_pending_stop, continue_last_debug_event): New
7370 functions.
7371
8d30e395
TT
73722020-04-08 Tom Tromey <tromey@adacore.com>
7373
7374 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7375 (handle_exception_result): Move to nat/windows-nat.h.
7376 (DEBUG_EXCEPTION_SIMPLE): Remove.
7377 (windows_nat::handle_ms_vc_exception): New function.
7378 (handle_exception): Move to nat/windows-nat.c.
7379 (get_windows_debug_event): Update.
7380 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7381 nat/windows-nat.c.
7382 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7383 (handle_exception_result): Move from windows-nat.c.
7384 (handle_exception): Declare.
7385 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7386 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7387 windows-nat.c.
7388
29de418d
TT
73892020-04-08 Tom Tromey <tromey@adacore.com>
7390
7391 * windows-nat.c (exception_count, event_count): Remove.
7392 (handle_exception, get_windows_debug_event)
7393 (do_initial_windows_stuff): Update.
7394
a816ba18
TT
73952020-04-08 Tom Tromey <tromey@adacore.com>
7396
7397 * windows-nat.c (windows_nat::handle_load_dll)
7398 (windows_nat::handle_unload_dll): Rename. No longer static.
7399 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7400 Declare.
7401
a00caa12
TT
74022020-04-08 Tom Tromey <tromey@adacore.com>
7403
7404 * complaints.h (stop_whining): Declare at top-level.
7405 (complaint): Don't declare stop_whining.
7406
d41b524f
TT
74072020-04-08 Tom Tromey <tromey@adacore.com>
7408
7409 * windows-nat.c (windows_nat::handle_output_debug_string):
7410 Rename. No longer static.
7411 * nat/windows-nat.h (handle_output_debug_string): Declare.
7412
3c76026d
TT
74132020-04-08 Tom Tromey <tromey@adacore.com>
7414
7415 * windows-nat.c (current_process_handle, current_process_id)
7416 (main_thread_id, last_sig, current_event, last_wait_event)
7417 (current_windows_thread, desired_stop_thread_id, pending_stops)
7418 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7419 (display_selectors, fake_create_process)
7420 (get_windows_debug_event): Update.
7421 * nat/windows-nat.h (current_process_handle, current_process_id)
7422 (main_thread_id, last_sig, current_event, last_wait_event)
7423 (current_windows_thread, desired_stop_thread_id, pending_stops)
7424 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7425 * nat/windows-nat.c (current_process_handle, current_process_id)
7426 (main_thread_id, last_sig, current_event, last_wait_event)
7427 (current_windows_thread, desired_stop_thread_id, pending_stops)
7428 (siginfo_er): New globals. Move from windows-nat.c.
7429
9d8679cc
TT
74302020-04-08 Tom Tromey <tromey@adacore.com>
7431
7432 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7433 (handle_load_dll): Update.
7434 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7435
28688adf
TT
74362020-04-08 Tom Tromey <tromey@adacore.com>
7437
7438 * windows-nat.c (enum thread_disposition_type): Move to
7439 nat/windows-nat.h.
7440 (windows_nat::thread_rec): Rename from thread_rec. No longer
7441 static.
7442 (windows_add_thread, windows_nat_target::fetch_registers)
7443 (windows_nat_target::store_registers, handle_exception)
7444 (windows_nat_target::resume, get_windows_debug_event)
7445 (windows_nat_target::get_tib_address)
7446 (windows_nat_target::thread_name)
7447 (windows_nat_target::thread_alive): Update.
7448 * nat/windows-nat.h (enum thread_disposition_type): Move from
7449 windows-nat.c.
7450 (thread_rec): Declare.
7451
4834dad0
TT
74522020-04-08 Tom Tromey <tromey@adacore.com>
7453
7454 * windows-nat.c: Add "using namespace".
7455 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7456 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7457
65bafd5b
TT
74582020-04-08 Tom Tromey <tromey@adacore.com>
7459
7460 * nat/windows-nat.h (struct windows_thread_info): Declare
7461 destructor.
7462 * nat/windows-nat.c (~windows_thread_info): New.
7463
0a4afda3
TT
74642020-04-08 Tom Tromey <tromey@adacore.com>
7465
7466 PR gdb/22992
7467 * windows-nat.c (current_event): Update comment.
7468 (last_wait_event, desired_stop_thread_id): New globals.
7469 (struct pending_stop): New.
7470 (pending_stops): New global.
7471 (windows_nat_target) <stopped_by_sw_breakpoint>
7472 <supports_stopped_by_sw_breakpoint>: New methods.
7473 (windows_fetch_one_register): Add assertions. Adjust PC.
7474 (windows_continue): Handle pending stops. Suspend other threads
7475 when stepping. Use last_wait_event
7476 (wait_for_debug_event): New function.
7477 (get_windows_debug_event): Use wait_for_debug_event. Handle
7478 pending stops. Queue spurious stops.
7479 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7480 (windows_nat_target::kill): Use wait_for_debug_event.
7481 * nat/windows-nat.h (struct windows_thread_info)
7482 <stopped_at_software_breakpoint>: New field.
7483 * nat/windows-nat.c (windows_thread_info::resume): Clear
7484 stopped_at_software_breakpoint.
7485
8e61ebec
TT
74862020-04-08 Tom Tromey <tromey@adacore.com>
7487
7488 * windows-nat.c (enum thread_disposition_type): New.
7489 (thread_rec): Replace "get_context" parameter with "disposition";
7490 change type.
7491 (windows_add_thread, windows_nat_target::fetch_registers)
7492 (windows_nat_target::store_registers, handle_exception)
7493 (windows_nat_target::resume, get_windows_debug_event)
7494 (windows_nat_target::get_tib_address)
7495 (windows_nat_target::thread_name)
7496 (windows_nat_target::thread_alive): Update.
7497
98a03287
TT
74982020-04-08 Tom Tromey <tromey@adacore.com>
7499
7500 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7501 (windows_continue): Use windows_continue::resume.
7502 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7503 resume>: Declare new methods.
7504 * nat/windows-nat.c: New file.
7505 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7506
7c7411bc
TT
75072020-04-08 Tom Tromey <tromey@adacore.com>
7508
7509 * windows-nat.c (windows_add_thread, windows_delete_thread)
7510 (windows_nat_target::fetch_registers)
7511 (windows_nat_target::store_registers, fake_create_process)
7512 (windows_nat_target::resume, windows_nat_target::resume)
7513 (get_windows_debug_event, windows_nat_target::wait)
7514 (windows_nat_target::pid_to_str)
7515 (windows_nat_target::get_tib_address)
7516 (windows_nat_target::get_ada_task_ptid)
7517 (windows_nat_target::thread_name)
7518 (windows_nat_target::thread_alive): Use lwp, not tid.
7519
2950fdf7
TT
75202020-04-08 Tom Tromey <tromey@adacore.com>
7521
7522 * windows-nat.c (handle_exception)
7523 (windows_nat_target::thread_name): Update.
7524 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7525 <name>: Now unique_xmalloc_ptr.
7526
62fe396b
TT
75272020-04-08 Tom Tromey <tromey@adacore.com>
7528
7529 * windows-nat.c (thread_rec)
7530 (windows_nat_target::fetch_registers): Update.
7531 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7532 Update comment.
7533 <debug_registers_changed, reload_context>: Now bool.
7534
e9534bd2
TT
75352020-04-08 Tom Tromey <tromey@adacore.com>
7536
7537 * windows-nat.c (windows_add_thread): Use new.
7538 (windows_init_thread_list, windows_delete_thread): Use delete.
7539 (get_windows_debug_event): Update.
7540 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7541 destructor, and initializers.
7542
ae1f8880
TT
75432020-04-08 Tom Tromey <tromey@adacore.com>
7544
7545 * windows-nat.c (struct windows_thread_info): Remove.
7546 * nat/windows-nat.h: New file.
7547
55a1e039
TT
75482020-04-08 Tom Tromey <tromey@adacore.com>
7549
7550 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7551 (thread_rec, windows_add_thread, windows_delete_thread)
7552 (windows_continue): Update.
7553
93366324
TT
75542020-04-08 Tom Tromey <tromey@adacore.com>
7555
7556 * windows-nat.c (struct windows_thread_info): Remove typedef.
7557 (thread_head): Remove.
7558 (thread_list): New global.
7559 (thread_rec, windows_add_thread, windows_init_thread_list)
7560 (windows_delete_thread, windows_continue): Update.
7561
0f2265e2
SM
75622020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7563
7564 * windows-tdep.h (windows_init_abi): Add comment.
7565 (cygwin_init_abi): New declaration.
7566 * windows-tdep.c: Split signal enumeration in two, one for
7567 Windows and one for Cygwin.
7568 (windows_gdb_signal_to_target): Only deal with signal of the
7569 Windows OS ABI.
7570 (cygwin_gdb_signal_to_target): New function.
7571 (windows_init_abi): Rename to windows_init_abi_common, don't set
7572 gdb_signal_to_target gdbarch method. Add new new function with
7573 this name.
7574 (cygwin_init_abi): New function.
7575 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7576 comment. Don't call windows_init_abi.
7577 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7578 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7579 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7580 i386_windows_init_abi_common, don't call windows_init_abi. Add
7581 a new function of this name.
7582 (i386_cygwin_init_abi): New function.
7583 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7584 OS ABI Cygwin.
7585
3810f182
SM
75862020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7587
7588 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7589 parameter.c.
7590 (dwarf2_read_gdb_index): Update.
7591
063f8e80
KR
75922020-04-07 Kamil Rytarowski <n54@gmx.com>
7593
7594 * nbsd-tdep.c: Include "objfiles.h".
7595 (nbsd_skip_solib_resolver): New.
7596 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7597
85a9510c 75982020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7599
7600 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7601 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7602 with DW_LLE_base_addressx are being emitted in DWARFv5.
7603 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7604 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7605 unsigned integer.
7606
9fc3eaae 76072020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7608
7609 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7610 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7611 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7612 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7613 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7614 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7615 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7616
7617
41144253 76182020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7619
7620 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7621 (read_loclist_index): New function definition.
7622 (lookup_loclist_base): New function definition.
7623 (read_loclist_header): New function definition.
7624 (dwarf2_cu): Add loclist_base and loclist_header field.
7625 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7626 (read_full_die_1): Read the value of DW_AT_loclists_base.
7627 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7628 (read_attribute_value): Handle DW_FORM_loclistx.
7629 (skip_one_die): Handle DW_FORM_loclistx.
7630 (loclist_header): New structure declaration.
7631 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7632
9f4e76a4
SM
76332020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7634
7635 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7636 constructor. Remove `addr` parameter from other constructor and
7637 add `per_cu` parameter.
7638 * dwarf2/read.c (create_partial_symtab): Update.
7639
25c11aca
TV
76402020-04-07 Tom de Vries <tdevries@suse.de>
7641
7642 PR symtab/25796
7643 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7644 (partial_die_info::fixup): Inherit has_const_value.
7645
5707e24b
TV
76462020-04-07 Tom de Vries <tdevries@suse.de>
7647
7648 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7649 symbols without address.
7650
05f00e22
KR
76512020-04-06 Kamil Rytarowski <n54@gmx.com>
7652
7653 * nbsd-nat.h (struct thread_info): Add forward declaration.
7654 (nbsd_nat_target::thread_alive): Add.
7655 (nbsd_nat_target::thread_name): Likewise.
7656 (nbsd_nat_target::update_thread_list): Likewise.
7657 (update_thread_list::post_attach): Likewise.
7658 (post_attach::pid_to_str): Likewise.
7659 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7660 (nbsd_thread_lister): Add.
7661 (nbsd_nat_target::thread_alive): Likewise.
7662 (nbsd_nat_target::thread_name): Likewise.
7663 (nbsd_add_threads): Likewise.
7664 (update_thread_list::post_attach): Likewise.
7665 (nbsd_nat_target::update_thread_list): Likewise.
7666 (post_attach::pid_to_str): Likewise.
7667
6ee448cc
TT
76682020-04-06 Tom Tromey <tromey@adacore.com>
7669
7670 * ada-valprint.c (print_variant_part): Extract the variant field.
7671 (print_field_values): Use the field as the outer value when
7672 recursing.
7673
dea34e8c
TT
76742020-04-06 Tom Tromey <tromey@adacore.com>
7675
7676 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7677 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7678 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7679 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7680 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7681
93689ce9
TT
76822020-04-06 Tom Tromey <tromey@adacore.com>
7683
7684 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7685 TYPE_CODE_ERROR.
7686
79743962
KR
76872020-04-06 Kamil Rytarowski <n54@gmx.com>
7688
7689 * nbsd-tdep.c: Include "gdbarch.h".
7690 Define enum with NetBSD signal numbers.
7691 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7692 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7693 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7694 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7695 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7696 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7697 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7698 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7699 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7700 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7701 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7702 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7703
9e7c9a03
HD
77042020-04-03 Hannes Domani <ssbssa@yahoo.de>
7705
7706 PR gdb/25325
7707 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7708
d9e49b61
TT
77092020-04-03 Tom Tromey <tromey@adacore.com>
7710
7711 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7712 Read constant block.
7713
e0fc5c3f
SM
77142020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7715
7716 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7717 (gdb_bfd_get_full_section_contents): New declaration.
7718 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7719 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7720 gdb_bfd_get_full_section_contents.
7721
e2ff18a0
SM
77222020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7723
7724 * exec.c (build_section_table): Replace internal_error with
7725 gdb_assert.
7726 (section_table_xfer_memory_partial): Likewise.
7727 * mdebugread.c (parse_partial_symbols): Likewise.
7728 * psymtab.c (lookup_partial_symbol): Likewise.
7729 * utils.c (wrap_here): Likewise.
7730
0830d301
TT
77312020-04-02 Tom Tromey <tromey@adacore.com>
7732
7733 * f-lang.c (build_fortran_types): Use arch_type to initialize
7734 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7735
e7da7f8f
TT
77362020-04-02 Tom Tromey <tromey@adacore.com>
7737
7738 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7739 of attributes.
7740
c90d28ac
AB
77412020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7742 Bernd Edlinger <bernd.edlinger@hotmail.de>
7743 Tom Tromey <tromey@adacore.com>
7744
7745 * buildsym.c (buildsym_compunit::record_line): Remove
7746 deduplication code.
7747
1aa98955
TV
77482020-04-02 Tom de Vries <tdevries@suse.de>
7749
7750 PR ada/24671
7751 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7752
d3214198
TV
77532020-04-02 Tom de Vries <tdevries@suse.de>
7754
7755 * dwarf2/read.c (dwarf2_gdb_index_functions,
7756 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7757 NULL.
7758 * psymtab.c (psym_lookup_global_symbol_language): New function.
7759 (psym_functions): Init psym_lookup_global_symbol_language with
7760 psym_lookup_global_symbol_language.
7761 * symfile-debug.c (debug_sym_quick_functions): Init
7762 lookup_global_symbol_language with NULL.
7763 * symfile.c (set_initial_language): Remove fixme comment.
7764 * symfile.h (struct quick_symbol_functions): Add
7765 lookup_global_symbol_language.
7766 * symtab.c (find_quick_global_symbol_language): New function.
7767 (find_main_name): Use find_quick_global_symbol_language.
7768
2836752f
SM
77692020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7770
7771 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7772
64dc2d4b
BE
77732020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7774
7775 * buildsym.c (record_line): Fix undefined behavior and preserve
7776 lines at eof.
7777
bbe3dc41
BE
77782020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7779
7780 * buildsym.c (record_line): Fix the resizing condition.
7781
6b4a335b
TT
77822020-04-01 Tom Tromey <tom@tromey.com>
7783
7784 * value.h (value_literal_complex): Add comment.
7785 * valops.c (value_literal_complex): Refer to value.h.
7786
3638a098
TT
77872020-04-01 Tom Tromey <tom@tromey.com>
7788
7789 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7790 (scalar_type): New rule, from typebase.
7791 (typebase): Use scalar_type. Recognize complex types.
7792 (field_name): Handle FLOAT_KEYWORD.
7793 (ident_tokens): Add _Complex and __complex__.
7794
c34e8714
TT
77952020-04-01 Tom Tromey <tom@tromey.com>
7796
7797 PR exp/25299:
7798 * valarith.c (promotion_type, complex_binop): New functions.
7799 (scalar_binop): Handle complex numbers. Use promotion_type.
7800 (value_pos, value_neg, value_complement): Handle complex numbers.
7801
fa649bb7
TT
78022020-04-01 Tom Tromey <tom@tromey.com>
7803
7804 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7805 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7806 (parse_number): Handle complex numbers.
7807
981c08ce
TT
78082020-04-01 Tom Tromey <tom@tromey.com>
7809
7810 * c-valprint.c (c_decorations): Change complex suffix to "i".
7811
4c99290d
TT
78122020-04-01 Tom Tromey <tom@tromey.com>
7813
7814 * valprint.c (generic_value_print_complex): Use accessors.
7815 * value.h (value_real_part, value_imaginary_part): Declare.
7816 * valops.c (value_real_part, value_imaginary_part): New
7817 functions.
7818 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7819
5b930b45
TT
78202020-04-01 Tom Tromey <tom@tromey.com>
7821
7822 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7823 (read_range_type): Update.
7824 * mdebugread.c (basic_type): Update.
7825 * go-lang.c (build_go_types): Use init_complex_type.
7826 * gdbtypes.h (struct main_type) <complex_type>: New member.
7827 (init_complex_type): Update.
7828 (arch_complex_type): Don't declare.
7829 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7830 Make name if none given. Use alloc_type_copy. Look for cached
7831 complex type.
7832 (arch_complex_type): Remove.
7833 (gdbtypes_post_init): Use init_complex_type.
7834 * f-lang.c (build_fortran_types): Use init_complex_type.
7835 * dwarf2/read.c (read_base_type): Update.
7836 * d-lang.c (build_d_types): Use init_complex_type.
7837 * ctfread.c (read_base_type): Update.
7838
53cccef1
TBA
78392020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7840
7841 * infrun.c (stop_all_threads): Update assertion, plus when
7842 stopping threads, take into account that we might be trying
7843 to stop an all-stop target.
7844 (stop_waiting): Call 'stop_all_threads' if there exists a
7845 non-stop target.
7846
a0714d30
TBA
78472020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7848
7849 * target.h (exists_non_stop_target): New function declaration.
7850 * target.c (exists_non_stop_target): New function.
7851
60e22c1e
HD
78522020-04-01 Hannes Domani <ssbssa@yahoo.de>
7853
7854 PR gdb/24789
7855 * eval.c (is_integral_or_integral_reference): New function.
7856 (evaluate_subexp_standard): Allow integer references in
7857 pointer arithmetic.
7858
e139a727
TBA
78592020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7860
7861 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7862 check for no ptid in the stop reply when the target is non-stop.
7863
e0802d59
TT
78642020-04-01 Tom Tromey <tromey@adacore.com>
7865
7866 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7867 "name" parameter to rvalue reference. Initialize m_name_holder.
7868 <lookup_name_info>: New overloads.
7869 <name>: Return gdb::string_view.
7870 <c_str>: New method.
7871 <make_ignore_params>: Update.
7872 <search_name_hash>: Update.
7873 <language_lookup_name>: Return const char *.
7874 <m_name>: Change type.
7875 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7876 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7877 (lookup_name_info::match_any): Update.
7878 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7879 Update.
7880 * minsyms.c (linkage_name_str): Update.
7881 * language.c (default_symbol_name_matcher): Update.
7882 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7883 Update.
7884 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7885 (ada_lookup_name_info::ada_lookup_name_info): Update.
7886 (literal_symbol_name_matcher): Update.
7887
8c072cb6
TT
78882020-04-01 Tom Tromey <tromey@adacore.com>
7889
7890 * psymtab.c (psymtab_search_name): Remove function.
7891 (psym_lookup_symbol): Create search name and lookup name here.
7892 (lookup_partial_symbol): Remove "name" parameter; add
7893 lookup_name.
7894 (psym_expand_symtabs_for_function): Update.
7895
6f29a534
TT
78962020-03-31 Joel Jones <joelkevinjones@gmail.com>
7897
7898 PR tui/25597:
7899 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7900
af62665e
TT
79012020-03-31 Tom Tromey <tromey@adacore.com>
7902
7903 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7904 memcpy.
7905
d1a89da5
NC
79062020-03-30 Nelson Chu <nelson.chu@sifive.com>
7907
7908 * features/riscv/32bit-csr.xml: Regenerated.
7909 * features/riscv/64bit-csr.xml: Regenerated.
7910
d8af9068
TT
79112020-03-30 Tom Tromey <tromey@adacore.com>
7912
7913 * ada-valprint.c (print_variant_part): Update.
7914 * ada-lang.h (ada_which_variant_applies): Update.
7915 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7916 outer_valaddr parameters; replace with "outer" value parameter.
7917 (to_fixed_variant_branch_type): Update.
7918
227c0bf4
PFC
79192020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7920
7921 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7922 <list>. Remove inclusion of observable.h.
7923 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7924 (struct arch_lwp_info): New struct.
7925 (class ppc_linux_dreg_interface): New class.
7926 (struct ppc_linux_process_info): New struct.
7927 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7928 <low_new_clone, low_forget_process, low_prepare_to_resume>
7929 <copy_thread_dreg_state, mark_thread_stale>
7930 <mark_debug_registers_changed, register_hw_breakpoint>
7931 <clear_hw_breakpoint, register_wp, clear_wp>
7932 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7933 <num_memory_accesses, get_trigger_type>
7934 <create_watchpoint_request, hwdebug_point_cmp>
7935 <init_arch_lwp_info, get_arch_lwp_info>
7936 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7937 methods.
7938 <struct ptid_hash>: New inner struct.
7939 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7940 members.
7941 (saved_dabr_value, hwdebug_info, max_slots_number)
7942 (struct hw_break_tuple, struct thread_points, ppc_threads)
7943 (have_ptrace_hwdebug_interface)
7944 (hwdebug_find_thread_points_by_tid)
7945 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7946 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7947 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7948 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7949 use m_dreg_interface.
7950 (hwdebug_point_cmp): Change to...
7951 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7952 reference arguments instead of pointers.
7953 (ppc_linux_nat_target::ranged_break_num_registers): Use
7954 m_dreg_interface.
7955 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7956 m_dreg_interface. Call register_hw_breakpoint.
7957 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7958 m_dreg_interface. Call clear_hw_breakpoint.
7959 (get_trigger_type): Change to...
7960 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7961 comment.
7962 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7963 use m_dreg_interface. Call register_hw_breakpoint.
7964 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7965 use m_dreg_interface. Call clear_hw_breakpoint.
7966 (can_use_watchpoint_cond_accel): Change to...
7967 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7968 method. Update comment, use m_dreg_interface and
7969 m_process_info.
7970 (calculate_dvc): Change to...
7971 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7972 m_dreg_interface.
7973 (num_memory_accesses): Change to...
7974 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7975 (check_condition): Change to...
7976 (ppc_linux_nat_target::check_condition): ...this method.
7977 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7978 comment, use m_dreg_interface.
7979 (create_watchpoint_request): Change to...
7980 (ppc_linux_nat_target::create_watchpoint_request): ...this
7981 method. Use m_dreg_interface.
7982 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7983 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7984 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7985 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7986 (ppc_linux_nat_target::low_forget_process)
7987 (ppc_linux_nat_target::low_new_fork)
7988 (ppc_linux_nat_target::low_new_clone)
7989 (ppc_linux_nat_target::low_delete_thread)
7990 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7991 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7992 only call mark_thread_stale.
7993 (ppc_linux_thread_exit): Remove.
7994 (ppc_linux_nat_target::stopped_data_address): Change to...
7995 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7996 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7997 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7998 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7999 comment. Call low_stopped_data_address.
8000 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8001 m_dreg_interface.
8002 (ppc_linux_nat_target::masked_watch_num_registers): Use
8003 m_dreg_interface.
8004 (ppc_linux_nat_target::copy_thread_dreg_state)
8005 (ppc_linux_nat_target::mark_thread_stale)
8006 (ppc_linux_nat_target::mark_debug_registers_changed)
8007 (ppc_linux_nat_target::register_hw_breakpoint)
8008 (ppc_linux_nat_target::clear_hw_breakpoint)
8009 (ppc_linux_nat_target::register_wp)
8010 (ppc_linux_nat_target::clear_wp)
8011 (ppc_linux_nat_target::init_arch_lwp_info)
8012 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8013 (_initialize_ppc_linux_nat): Remove observer callback.
8014
4db10d8f
PFC
80152020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8016
8017 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8018 (ppc_linux_nat_target::auxv_parse)
8019 (ppc_linux_nat_target::read_description)
8020 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8021 Move up.
8022
1310c1b0
PFC
80232020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8024
8025 * linux-nat.h (low_new_clone): New method.
8026 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8027
69b037c3
SM
80282020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8029
8030 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8031 (dbx_expand_psymtab): ... this.
8032 (start_psymtab): Update.
8033 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8034 (mdebug_expand_psymtab): ... this.
8035 (parse_partial_symbols): Update.
8036 (new_psymtab): Update.
8037 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8038 (xcoff_expand_psymtab): ... this.
8039 (xcoff_start_psymtab): Update.
8040
48993951
SM
80412020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8042
8043 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8044 <expand_dependencies>: ... this.
8045 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8046 (partial_symtab::expand_dependencies): ... this.
8047 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8048 Update.
8049 (dwarf2_psymtab::expand_psymtab): Update.
8050 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8051 * mdebugread.c (psymtab_to_symtab_1): Update.
8052 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8053
3ad83046
SM
80542020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8055
8056 * psympriv.h (discard_psymtab): Remove.
8057 * dbxread.c (dbx_end_psymtab): Update.
8058 * xcoffread.c (xcoff_end_psymtab): Update.
8059
4d1b9ab6
TT
80602020-03-28 Tom Tromey <tom@tromey.com>
8061
8062 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8063 comment.
8064
f1749218
TT
80652020-03-28 Tom Tromey <tom@tromey.com>
8066
8067 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8068
ebea7626
HD
80692020-03-27 Hannes Domani <ssbssa@yahoo.de>
8070
8071 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8072
a879b4d5
JB
80732020-03-26 John Baldwin <jhb@FreeBSD.org>
8074
8075 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8076
0826b30a
TT
80772020-03-26 Tom Tromey <tom@tromey.com>
8078
8079 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
8080 (mark_common_block_symbol_computed, read_tag_string_type)
8081 (attr_to_dynamic_prop, read_subrange_type): Update.
8082 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
8083 to be methods on struct attribute.
8084 (skip_one_die, process_imported_unit_die, read_namespace_alias)
8085 (read_call_site_scope, partial_die_info::read)
8086 (partial_die_info::read, lookup_die_type, follow_die_ref):
8087 Update.
8088 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
8089 from dwarf2_get_ref_die_offset.
8090 (attribute::constant_value): New method, from
8091 dwarf2_get_attr_constant_value.
8092 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
8093 Declare method.
8094 <constant_value>: New method.
8095
2b2558bf
TT
80962020-03-26 Tom Tromey <tom@tromey.com>
8097
8098 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
8099 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
8100 (dwarf_type_encoding_name): Move to stringify.c.
8101 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
8102 * dwarf2/stringify.c: New file.
8103 * dwarf2/stringify.h: New file.
8104
eeb64781
TT
81052020-03-26 Tom Tromey <tom@tromey.com>
8106
8107 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
8108 Rewrite.
8109
a39fdb41
TT
81102020-03-26 Tom Tromey <tom@tromey.com>
8111
8112 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
8113 methods.
8114 * dwarf2/read.c (lookup_addr_base): Move to die.h.
8115 (lookup_ranges_base): Likewise.
8116 (read_cutu_die_from_dwo, read_full_die_1): Update.
8117
436c571c
TT
81182020-03-26 Tom Tromey <tom@tromey.com>
8119
8120 * dwarf2/read.c (read_import_statement, read_file_scope)
8121 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
8122 (read_lexical_block_scope, read_call_site_scope)
8123 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
8124 (handle_struct_member_die, process_structure_scope)
8125 (update_enumeration_type_from_children)
8126 (process_enumeration_scope, read_array_type, read_common_block)
8127 (read_namespace, read_module, read_subroutine_type): Update.
8128 (sibling_die): Remove.
8129
052c8bb8
TT
81302020-03-26 Tom Tromey <tom@tromey.com>
8131
8132 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
8133 (build_type_psymtabs_reader, read_structure_type)
8134 (read_enumeration_type, read_full_die_1): Update.
8135 (dwarf2_attr_no_follow): Move to die.h.
8136 * dwarf2/die.h (struct die_info) <attr>: New method.
8137
2b24b6e4
TT
81382020-03-26 Tom Tromey <tom@tromey.com>
8139
8140 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
8141 <base_address>: Now an optional.
8142 (dwarf2_find_base_address, dwarf2_rnglists_process)
8143 (dwarf2_ranges_process, fill_in_loclist_baton)
8144 (dwarf2_symbol_mark_computed): Update.
8145
c2d50fd0
TT
81462020-03-26 Tom Tromey <tom@tromey.com>
8147
8148 * dwarf2/read.c (struct die_info): Move to die.h.
8149 * dwarf2/die.h: New file.
8150
0df7ad3a
TT
81512020-03-26 Tom Tromey <tom@tromey.com>
8152
8153 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
8154 * dwarf2/read.c
8155 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8156 Move to line-header.c.
8157 (read_checked_initial_length_and_offset, read_formatted_entries):
8158 Likewise.
8159 (dwarf_decode_line_header): Split into two.
8160 * dwarf2/line-header.c
8161 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8162 Move from read.c.
8163 (read_checked_initial_length_and_offset, read_formatted_entries):
8164 Likewise.
8165 (dwarf_decode_line_header): New function, split from read.c.
8166
86c0bb4c
TT
81672020-03-26 Tom Tromey <tom@tromey.com>
8168
8169 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8170 Declare method.
8171 * dwarf2/read.c (read_attribute_value): Update.
8172 (dwarf2_per_objfile::read_line_string): Rename from
8173 read_indirect_line_string.
8174 (read_formatted_entries): Update.
8175
2ef46c2f
TT
81762020-03-26 Tom Tromey <tom@tromey.com>
8177
8178 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8179 variable.
8180
4f9c1eda
TT
81812020-03-26 Tom Tromey <tom@tromey.com>
8182
8183 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8184 const.
8185 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8186 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8187 parameter const.
8188
5a0e026f
TT
81892020-03-26 Tom Tromey <tom@tromey.com>
8190
8191 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8192 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8193 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8194 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8195
8844c11b
TT
81962020-03-26 Tom Tromey <tom@tromey.com>
8197
8198 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8199 file_names_size, file_full_name, file_file_name>: Use const.
8200 <file_name_at, file_names>: Add const overload.
8201 * dwarf2/line-header.c (line_header::file_file_name)
8202 (line_header::file_full_name): Update.
8203
c90ec28a
TT
82042020-03-26 Tom Tromey <tom@tromey.com>
8205
8206 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8207 (macro_start_file, consume_improper_spaces)
8208 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8209 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8210 (dwarf_decode_macros): Move to macro.c.
8211 * dwarf2/macro.c: New file.
8212 * dwarf2/macro.h: New file.
8213 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8214
4f44ae6c
TT
82152020-03-26 Tom Tromey <tom@tromey.com>
8216
8217 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8218 method.
8219 * dwarf2/section.c: New method. From
8220 read_indirect_string_at_offset_from.
8221 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8222 (read_indirect_string_at_offset_from): Move to section.c.
8223 (read_indirect_string_at_offset): Rewrite.
8224 (read_indirect_line_string_at_offset): Remove.
8225 (read_indirect_string, read_indirect_line_string)
8226 (dwarf_decode_macro_bytes): Update.
8227
a0194fa8
TT
82282020-03-26 Tom Tromey <tom@tromey.com>
8229
8230 * dwarf2/section.h (struct dwarf2_section_info)
8231 <overload_complaint>: Declare.
8232 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8233 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8234 Rename from dwarf2_section_buffer_overflow_complaint.
8235 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8236 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8237
3d27bbdb
TT
82382020-03-26 Tom Tromey <tom@tromey.com>
8239
8240 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8241 Declare.
8242 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8243 Move from read.c.
8244 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8245 to section.c.
8246
9eac9650
TT
82472020-03-26 Tom Tromey <tom@tromey.com>
8248
8249 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8250
bf80d710
TT
82512020-03-26 Tom Tromey <tom@tromey.com>
8252
8253 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8254 "builder".
8255 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8256 parameter.
8257 (dwarf_decode_macros): Update.
8258
0314b390
TT
82592020-03-26 Tom Tromey <tom@tromey.com>
8260
8261 * dwarf2/read.c (read_attribute_value): Update.
8262 (read_indirect_string_from_dwz): Move to dwz.c; change into
8263 method.
8264 (dwarf_decode_macro_bytes): Update.
8265 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8266 * dwarf2/dwz.c: New file.
8267 * Makefile.in (COMMON_SFILES): Add dwz.c.
8268
9fda78b6
TT
82692020-03-26 Tom Tromey <tom@tromey.com>
8270
8271 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8272 * dwarf2/read.c: Add include.
8273 * dwarf2/index-write.c: Add include.
8274 * dwarf2/index-cache.c: Add include.
8275 * dwarf2/dwz.h: New file.
8276
33aa3c10
TT
82772020-03-25 Tom Tromey <tom@tromey.com>
8278
8279 * compile/compile-object-load.c (get_out_value_type): Mention
8280 correct symbol name in error message.
8281
d503b685
HD
82822020-03-25 Hannes Domani <ssbssa@yahoo.de>
8283
8284 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8285
7b1eff95
TV
82862020-03-25 Tom de Vries <tdevries@suse.de>
8287
8288 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8289 * symmisc.c (dump_symtab_1): Print user and includes fields.
8290 (maintenance_info_symtabs): Same.
8291
dd895392
AB
82922020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8293
8294 PR gdb/25534
8295 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8296 (riscv_regcache_cooked_write): New function.
8297 (riscv_push_dummy_call): Use new function.
8298 (riscv_return_value): Likewise.
8299
5ab2fbf1
SM
83002020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8301
8302 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8303 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8304 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8305 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8306 * infrun.c (follow_fork): Likewise.
8307 (follow_fork_inferior): Likewise.
8308 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8309 * linux-nat.h (class linux_nat_target): Likewise.
8310 * remote.c (class remote_target) <follow_fork>: Likewise.
8311 (remote_target::follow_fork): Likewise.
8312 * target-delegates.c: Re-generate.
8313 * target.c (default_follow_fork): Likewise.
8314 (target_follow_fork): Likewise.
8315 * target.h (struct target_ops) <follow_fork>: Likewise.
8316 (target_follow_fork): Likewise.
8317
a64fafb5
TV
83182020-03-24 Tom de Vries <tdevries@suse.de>
8319
8320 * psymtab.c (maintenance_info_psymtabs): Print user field.
8321
fe26d3a3
TT
83222020-03-20 Tom Tromey <tromey@adacore.com>
8323
8324 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8325 const.
8326 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8327 const.
8328
c884cc46
SM
83292020-03-20 Simon Marchi <simon.marchi@efficios.com>
8330
8331 * ptrace.m4: Don't check for ptrace declaration.
8332 * config.in: Re-generate.
8333 * configure: Re-generate.
8334 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8335 not defined.
8336
1ff700c2
KR
83372020-03-20 Kamil Rytarowski <n54@gmx.com>
8338
8339 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8340 `PTRACE_TYPE_RET'.
8341 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8342 * sparc-nat.c (gdb_ptrace): Likewise.
8343 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8344
f7d4f0b1
TT
83452020-03-20 Tom Tromey <tromey@adacore.com>
8346
8347 * c-exp.y (lex_one_token): Fix assert.
8348
f67210ff
TT
83492020-03-20 Tom Tromey <tromey@adacore.com>
8350
8351 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8352 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8353 strncpy call.
8354
1773be9e
TT
83552020-03-20 Tom Tromey <tromey@adacore.com>
8356
8357 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8358
70304be9
TT
83592020-03-20 Tom Tromey <tromey@adacore.com>
8360
8361 * ada-valprint.c (print_variant_part): Remove parameters; switch
8362 to value-based API.
8363 (print_field_values): Likewise.
8364 (ada_val_print_struct_union): Likewise.
8365 (ada_value_print_1): Update.
8366
9faa006d
KR
83672020-03-20 Kamil Rytarowski <n54@gmx.com>
8368
8369 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8370 nbsd_nat_target instead of inf_ptrace_target.
8371 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8372 nbsd_nat_target.
8373
4a90f062
KR
83742020-03-20 Kamil Rytarowski <n54@gmx.com>
8375
8376 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8377 it to the ptrace call.
8378 * (store_registers): Likewise.
8379
83802020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
8381
8382 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8383 it to the ptrace call.
8384 * (store_registers): Likewise.
8385
2d07da27
LM
83862020-03-19 Luis Machado <luis.machado@linaro.org>
8387
8388 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8389 valid, fetch vg value from ptrace.
8390
f09db380
KR
83912020-03-19 Kamil Rytarowski <n54@gmx.com>
8392 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8393 * inf-ptrace.c: Likewise.
8394 * (gdb_ptrace): Add.
8395 * (inf_ptrace_target::resume): Update.
8396 * (inf_ptrace_target::xfer_partial): Likewise.
8397 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8398 * (inf_ptrace_peek_poke): Update.
8399
fcc7376e
KR
84002020-03-19 Kamil Rytarowski <n54@gmx.com>
8401
8402 * x86-bsd-nat.c (gdb_ptrace): New.
8403 * (x86bsd_dr_set): Add new argument `ptid'.
8404 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8405 x86bsd_dr_set_addr): Update.
8406
cada5fc9
AB
84072020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8408
8409 * remote.c (remote_target::process_stop_reply): Handle events for
8410 all threads differently.
8411
19a2740f
AB
84122020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8413
8414 * completer.c (completion_tracker::remove_completion): Define new
8415 function.
8416 * completer.h (completion_tracker::remove_completion): Declare new
8417 function.
8418 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8419 when adding a C++ function symbol.
8420
724fd9ba
AB
84212020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8422
8423 * completer.c (completion_tracker::completion_hash_entry): Define
8424 new class.
8425 (advance_to_filename_complete_word_point): Call
8426 recompute_lowest_common_denominator.
8427 (completion_tracker::completion_tracker): Call discard_completions
8428 to setup the hash table.
8429 (completion_tracker::discard_completions): Allow for being called
8430 from the constructor, pass new equal function, and element deleter
8431 when constructing the hash table. Initialise new class member
8432 variables.
8433 (completion_tracker::maybe_add_completion): Remove use of
8434 m_entries_vec, and store more information into m_entries_hash.
8435 (completion_tracker::recompute_lcd_visitor): New function, most
8436 content taken from...
8437 (completion_tracker::recompute_lowest_common_denominator):
8438 ...here, this now just visits each item in the hash calling the
8439 above visitor.
8440 (completion_tracker::build_completion_result): Remove use of
8441 m_entries_vec, call recompute_lowest_common_denominator.
8442 * completer.h (completion_tracker::have_completions): Remove use
8443 of m_entries_vec.
8444 (completion_tracker::completion_hash_entry): Declare new class.
8445 (completion_tracker::recompute_lowest_common_denominator): Change
8446 function signature.
8447 (completion_tracker::recompute_lcd_visitor): Declare new function.
8448 (completion_tracker::m_entries_vec): Delete.
8449 (completion_tracker::m_entries_hash): Initialize to NULL.
8450 (completion_tracker::m_lowest_common_denominator_valid): New
8451 member variable.
8452 (completion_tracker::m_lowest_common_denominator_max_length): New
8453 member variable.
8454
5a82b8a1
KR
84552020-03-17 Kamil Rytarowski <n54@gmx.com>
8456
8457 * regformats/regdef.h: Put reg in gdb namespace.
8458
fb516a69
KR
84592020-03-17 Kamil Rytarowski <n54@gmx.com>
8460
8461 * i386-bsd-nat.c (gdb_ptrace): New.
8462 * (i386bsd_fetch_inferior_registers,
8463 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8464 * (i386bsd_fetch_inferior_registers,
8465 i386bsd_store_inferior_registers) Use gdb_ptrace.
8466
1c0aa1fb
KR
84672020-03-17 Kamil Rytarowski <n54@gmx.com>
8468
8469 * amd64-bsd-nat.c (gdb_ptrace): New.
8470 * (amd64bsd_fetch_inferior_registers,
8471 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8472 * (amd64bsd_fetch_inferior_registers,
8473 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8474
5ccd2fb7
KR
84752020-03-17 Kamil Rytarowski <n54@gmx.com>
8476
8477 * user-regs.c (user_reg::read): Rename to...
8478 (user_reg::xread): ...this.
8479 * (append_user_reg): Rename argument `read' to `xread'.
8480 * (user_reg_add_builtin): Likewise.
8481 * (user_reg_add): Likewise.
8482 * (value_of_user_reg): Likewise.
8483
2108a63a
KR
84842020-03-17 Kamil Rytarowski <n54@gmx.com>
8485
8486 * sparc-nat.c (gdb_ptrace): New.
8487 * sparc-nat.c (sparc_fetch_inferior_registers)
8488 (sparc_store_inferior_registers) Remove obsolete comment.
8489 * sparc-nat.c (sparc_fetch_inferior_registers)
8490 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8491 * sparc-nat.c (sparc_fetch_inferior_registers)
8492 (sparc_store_inferior_registers) Use gdb_ptrace.
8493
a225c9a8
KR
84942020-03-17 Kamil Rytarowski <n54@gmx.com>
8495
8496 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8497 it to the ptrace call.
8498 * sh-nbsd-nat.c (store_registers): Likewise.
8499
98097623
KR
85002020-03-17 Kamil Rytarowski <n54@gmx.com>
8501
8502 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8503 nbsd_nat_target instead of inf_ptrace_target.
8504 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8505 nbsd_nat_target.
8506
9e38d619
KR
85072020-03-17 Kamil Rytarowski <n54@gmx.com>
8508
8509 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8510
a2ecbe9f
KR
85112020-03-17 Kamil Rytarowski <n54@gmx.com>
8512
8513 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8514 <sys/sysctl.h>.
8515 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8516
58990295
TV
85172020-03-17 Tom de Vries <tdevries@suse.de>
8518
8519 PR gdb/23710
8520 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8521 fields.
8522 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8523 fields.
8524 (process_imported_unit_die): Skip import of c++ CUs.
8525
771dd3a8
TT
85262020-03-16 Tom Tromey <tom@tromey.com>
8527
8528 * p-valprint.c (pascal_object_print_value): Initialize
8529 base_value.
8530
817a7585
AK
85312020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8532 Shahab Vahedi <shahab@synopsys.com>
8533
8534 * Makefile.in: Add arch/arc.o
8535 * configure.tgt: Likewise.
8536 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8537 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 8538 (arc_read_description): New function to cache target descriptions.
817a7585
AK
8539 * arc-tdep.h (arc_read_description): Add proto type.
8540 * arch/arc.c: New file.
8541 * arch/arc.h: Likewise.
8542 * features/Makefile: Replace old target descriptions with new.
8543 * features/arc-arcompact.c: Remove.
8544 * features/arc-arcompact.xml: Likewise.
8545 * features/arc-v2.c: Likewise
8546 * features/arc-v2.xml: Likewise
8547 * features/arc/aux-arcompact.xml: New file.
8548 * features/arc/aux-v2.xml: Likewise.
8549 * features/arc/core-arcompact.xml: Likewise.
8550 * features/arc/core-v2.xml: Likewise.
8551 * features/arc/aux-arcompact.c: Generate.
8552 * features/arc/aux-v2.c: Likewise.
8553 * features/arc/core-arcompact.c: Likewise.
8554 * features/arc/core-v2.c: Likewise.
8555 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8556
67430cd0
TT
85572020-03-16 Tom Tromey <tromey@adacore.com>
8558
8559 PR gdb/25663:
8560 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8561 putting value into bcache.
8562
30efb6c7
SM
85632020-03-16 Simon Marchi <simon.marchi@efficios.com>
8564
8565 PR gdb/21500
8566 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8567 to...
8568 (amd64_windows_init_abi_common): ... this. Don't set size of
8569 long type.
8570 (amd64_windows_init_abi): New function.
8571 (amd64_cygwin_init_abi): New function.
8572 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8573 the Cygwin OS ABI.
8574 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8575 comment.
8576
8db52437
SM
85772020-03-16 Simon Marchi <simon.marchi@efficios.com>
8578
8579 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8580 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8581 (pe_import_directory_entry): New struct type.
8582 (is_linked_with_cygwin_dll): New function.
8583 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8584 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8585 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8586
5982a56a
SM
85872020-03-16 Simon Marchi <simon.marchi@efficios.com>
8588
8589 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8590 i386_cygwin_core_osabi_sniffer.
8591
7a1998df
SM
85922020-03-16 Simon Marchi <simon.marchi@efficios.com>
8593
8594 * i386-cygwin-tdep.c: Rename to...
8595 * i386-windows-tdep.c: ... this.
8596 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8597 i386-windows-tdep.c.
8598 * configure.tgt: Likewise.
8599
053205cc
SM
86002020-03-16 Simon Marchi <simon.marchi@efficios.com>
8601
8602 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8603 * osabi.c (gdb_osabi_names): Add "Windows".
8604 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8605 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8606 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8607 i386_cygwin_osabi_sniffer.
8608 (_initialize_i386_cygwin_tdep): Register OS ABI
8609 GDB_OSABI_WINDOWS for i386.
8610 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8611 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8612 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8613 for x86-64.
8614 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8615 when the target matches '*-*-mingw*'.
8616
fe4b2ee6
SM
86172020-03-16 Simon Marchi <simon.marchi@efficios.com>
8618
8619 * defs.h (enum gdb_osabi): Move to...
8620 * osabi.h (enum gdb_osabi): ... here.
8621 * gdbarch.sh: Include osabi.h in gdbarch.h.
8622 * gdbarch.h: Re-generate.
8623
cb9b645d
SM
86242020-03-16 Simon Marchi <simon.marchi@efficios.com>
8625
8626 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8627 function.
8628 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8629
3293bbaf
TT
86302020-03-14 Tom Tromey <tom@tromey.com>
8631
8632 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8633 for C++.
8634 (c_type_print_modifier): Likewise. Add "language" parameter.
8635 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8636 (c_type_print_base_1): Update.
8637 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8638 constants.
8639 * type-stack.c (type_stack::insert): Handle tp_atomic and
8640 tp_restrict.
8641 (type_stack::follow_type_instance_flags): Likewise.
8642 (type_stack::follow_types): Likewise. Merge type-following code.
8643 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8644 (space_identifier, cv_with_space_id)
8645 (const_or_volatile_or_space_identifier_noopt)
8646 (const_or_volatile_or_space_identifier): Remove.
8647 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8648 rules.
8649 (ptr_operator, typebase): Update.
8650 (enum token_flag) <FLAG_C>: New constant.
8651 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8652 "_Atomic".
8653 (lex_one_token): Handle FLAG_C.
8654
154151a6
KR
86552020-03-14 Kamil Rytarowski <n54@gmx.com>
8656
8657 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8658 it to the ptrace call.
8659 * m68k-bsd-nat.c (store_registers): Likewise.
8660
bc107784
KR
86612020-03-14 Kamil Rytarowski <n54@gmx.com>
8662
8663 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8664 gdb_byte *.
8665 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8666 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8667 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8668
01a80117
KR
86692020-03-14 Kamil Rytarowski <n54@gmx.com>
8670
8671 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8672 nbsd_nat_target instead of inf_ptrace_target.
8673 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8674 nbsd_nat_target.
8675
f90280ca
KR
86762020-03-14 Kamil Rytarowski <n54@gmx.com>
8677
8678 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8679 register_t.
8680
6def66f1
KR
86812020-03-14 Kamil Rytarowski <n54@gmx.com>
8682
8683 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8684 it to the ptrace call.
8685 * alpha-bsd-nat.c (store_registers): Likewise.
8686
66eaca97
KR
86872020-03-14 Kamil Rytarowski <n54@gmx.com>
8688
8689 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8690 includes.
8691 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8692 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8693 fill_fpregset): Likewise.
8694
4fed520b
KR
86952020-03-14 Kamil Rytarowski <n54@gmx.com>
8696
8697 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8698 nbsd_nat_target instead of inf_ptrace_target.
8699 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8700 nbsd_nat_target.
8701
2190cf06
KR
87022020-03-14 Kamil Rytarowski <n54@gmx.com>
8703
8704 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8705 register_t.
8706
75c56d3d
KR
87072020-03-14 Kamil Rytarowski <n54@gmx.com>
8708
8709 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8710 it to the ptrace call.
8711 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8712 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8713 * arm-nbsd-nat.c (store_register): Likewise.
8714 * arm-nbsd-nat.c (store_regs): Likewise.
8715 * arm-nbsd-nat.c (store_fp_register): Likewise.
8716 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8717
6018d381
KR
87182020-03-14 Kamil Rytarowski <n54@gmx.com>
8719
8720 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8721 nbsd_nat_target instead of inf_ptrace_target.
8722 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8723 nbsd_nat_target.
8724
013f99f0
KR
87252020-03-14 Kamil Rytarowski <n54@gmx.com>
8726
8727 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8728 it to the ptrace call.
8729 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8730
12753073
KR
87312020-03-14 Kamil Rytarowski <n54@gmx.com>
8732
6227b330
KR
8733 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8734 it to the ptrace call.
8735 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8736
87372020-03-14 Kamil Rytarowski <n54@gmx.com>
8738
8739 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8740 gdb_byte *.
12753073
KR
8741 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8742
d5be5fa4
KR
87432020-03-14 Kamil Rytarowski <n54@gmx.com>
8744
8745 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8746 instead of inf_ptrace_target.
8747 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8748 nbsd_nat_target.
8749
8110f842
KR
87502020-03-14 Kamil Rytarowski <n54@gmx.com>
8751
8752 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8753 register_t.
8754
52feded7
KR
87552020-03-14 Kamil Rytarowski <n54@gmx.com>
8756
8757 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8758 register_t.
8759
25567eee
KR
87602020-03-14 Kamil Rytarowski <n54@gmx.com>
8761
8762 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8763 register_t.
8764
426a9c18
TT
87652020-03-13 Tom Tromey <tom@tromey.com>
8766
8767 * value.h (val_print): Don't declare.
8768 * valprint.h (val_print_array_elements)
8769 (val_print_scalar_formatted, generic_val_print): Don't declare.
8770 * valprint.c (generic_val_print_array): Take a struct value.
8771 (generic_val_print_ptr, generic_val_print_memberptr)
8772 (generic_val_print_bool, generic_val_print_int)
8773 (generic_val_print_char, generic_val_print_complex)
8774 (generic_val_print): Remove.
8775 (generic_value_print): Update.
8776 (do_val_print): Remove unused parameters. Don't call
8777 la_val_print.
8778 (val_print): Remove.
8779 (common_val_print): Update. Don't call value_check_printable.
8780 (val_print_scalar_formatted, val_print_array_elements): Remove.
8781 * rust-lang.c (rust_val_print): Remove.
8782 (rust_language_defn): Update.
8783 * p-valprint.c (pascal_val_print): Remove.
8784 (pascal_value_print_inner): Update.
8785 (pascal_object_print_val_fields, pascal_object_print_val):
8786 Remove.
8787 (pascal_object_print_static_field): Update.
8788 * p-lang.h (pascal_val_print): Don't declare.
8789 * p-lang.c (pascal_language_defn): Update.
8790 * opencl-lang.c (opencl_language_defn): Update.
8791 * objc-lang.c (objc_language_defn): Update.
8792 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8793 * m2-lang.h (m2_val_print): Don't declare.
8794 * m2-lang.c (m2_language_defn): Update.
8795 * language.h (struct language_defn) <la_val_print>: Remove.
8796 * language.c (unk_lang_value_print_inner): Rename. Change
8797 argument types.
8798 (unknown_language_defn, auto_language_defn): Update.
8799 * go-valprint.c (go_val_print): Remove.
8800 * go-lang.h (go_val_print): Don't declare.
8801 * go-lang.c (go_language_defn): Update.
8802 * f-valprint.c (f_val_print): Remove.
8803 * f-lang.h (f_value_print): Don't declare.
8804 * f-lang.c (f_language_defn): Update.
8805 * d-valprint.c (d_val_print): Remove.
8806 * d-lang.h (d_value_print): Don't declare.
8807 * d-lang.c (d_language_defn): Update.
8808 * cp-valprint.c (cp_print_value_fields)
8809 (cp_print_value_fields_rtti, cp_print_value): Remove.
8810 (cp_print_static_field): Update.
8811 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8812 (c_val_print_struct, c_val_print_union, c_val_print_int)
8813 (c_val_print_memberptr, c_val_print): Remove.
8814 * c-lang.h (c_val_print_array, cp_print_value_fields)
8815 (cp_print_value_fields_rtti): Don't declare.
8816 * c-lang.c (c_language_defn, cplus_language_defn)
8817 (asm_language_defn, minimal_language_defn): Update.
8818 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8819 (ada_val_print_enum): Take a struct value.
8820 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8821 (ada_val_print): Remove.
8822 (ada_value_print_1): Update.
8823 (printable_val_type): Remove.
8824 * ada-lang.h (ada_val_print): Don't declare.
8825 * ada-lang.c (ada_language_defn): Update.
8826
42331a1e
TT
88272020-03-13 Tom Tromey <tom@tromey.com>
8828
8829 * valprint.c (do_val_print): Update.
8830 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8831 a struct value.
8832 (value_to_value_object_no_release): Declare.
8833 * python/py-value.c (value_to_value_object_no_release): New
8834 function.
8835 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8836 struct value.
8837 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8838 function.
8839 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8840 a struct value.
8841 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8842 Declare.
8843 (gdbscm_apply_val_pretty_printer): Take a struct value.
8844 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8845 value.
8846 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8847 value.
8848 * extension-priv.h (struct extension_language_ops)
8849 <apply_val_pretty_printer>: Take a struct value.
8850 * cp-valprint.c (cp_print_value): Create a struct value.
8851 (cp_print_value): Update.
8852
3a916a97
TT
88532020-03-13 Tom Tromey <tom@tromey.com>
8854
8855 * ada-valprint.c (print_field_values): Call common_val_print.
8856
b59eac37
TT
88572020-03-13 Tom Tromey <tom@tromey.com>
8858
8859 * ada-valprint.c (val_print_packed_array_elements): Remove
8860 bitoffset and val parameters. Call common_val_print.
8861 (ada_val_print_string): Remove offset, address, and original_value
8862 parameters.
8863 (ada_val_print_array): Update.
8864 (ada_value_print_array): New function.
8865 (ada_value_print_1): Call it.
8866
03371129
TT
88672020-03-13 Tom Tromey <tom@tromey.com>
8868
8869 * ada-valprint.c (ada_value_print): Use common_val_print.
8870
2e088f8b
TT
88712020-03-13 Tom Tromey <tom@tromey.com>
8872
8873 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8874
39ef85a8
TT
88752020-03-13 Tom Tromey <tom@tromey.com>
8876
8877 * ada-valprint.c (ada_value_print_num): New function.
8878 (ada_value_print_1): Use it.
8879
b9fa6e07
TT
88802020-03-13 Tom Tromey <tom@tromey.com>
8881
8882 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8883
416595d6
TT
88842020-03-13 Tom Tromey <tom@tromey.com>
8885
8886 * ada-valprint.c (ada_value_print_ptr): New function.
8887 (ada_value_print_1): Use it.
8888
5b5e15ec
TT
88892020-03-13 Tom Tromey <tom@tromey.com>
8890
8891 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8892 call common_val_print.
8893 (ada_val_print_1): Update.
8894 (ada_value_print_1): New function.
8895 (ada_value_print_inner): Rewrite.
8896
fbf54e75
TT
88972020-03-13 Tom Tromey <tom@tromey.com>
8898
8899 * cp-valprint.c (cp_print_value_fields): Update.
8900 (cp_print_value): New function.
8901
64b653ca
TT
89022020-03-13 Tom Tromey <tom@tromey.com>
8903
8904 * m2-valprint.c (m2_value_print_inner): Use
8905 cp_print_value_fields.
8906 * cp-valprint.c (cp_print_value_fields): New function.
8907 * c-valprint.c (c_value_print_struct): New function.
8908 (c_value_print_inner): Use c_value_print_struct.
8909 * c-lang.h (cp_print_value_fields): Declare.
8910
6999f067
TT
89112020-03-13 Tom Tromey <tom@tromey.com>
8912
8913 * c-valprint.c (c_value_print_array): New function.
8914 (c_value_print_inner): Use it.
8915
ce80b8bd
TT
89162020-03-13 Tom Tromey <tom@tromey.com>
8917
8918 * c-valprint.c (c_value_print_memberptr): New function.
8919 (c_value_print_inner): Use it.
8920
2faac269
TT
89212020-03-13 Tom Tromey <tom@tromey.com>
8922
8923 * c-valprint.c (c_value_print_int): New function.
8924 (c_value_print_inner): Use it.
8925
da3e2c29
TT
89262020-03-13 Tom Tromey <tom@tromey.com>
8927
8928 * c-valprint.c (c_value_print_ptr): New function.
8929 (c_value_print_inner): Use it.
8930
50836231
TT
89312020-03-13 Tom Tromey <tom@tromey.com>
8932
8933 * c-valprint.c (c_value_print_inner): Rewrite.
8934
4f412b6e
TT
89352020-03-13 Tom Tromey <tom@tromey.com>
8936
8937 * valprint.c (generic_value_print_complex): New function.
8938 (generic_value_print): Use it.
8939
f5354008
TT
89402020-03-13 Tom Tromey <tom@tromey.com>
8941
8942 * valprint.c (generic_val_print_float): Don't call
8943 val_print_scalar_formatted.
8944 (generic_val_print, generic_value_print): Update.
8945
3eec3b05
TT
89462020-03-13 Tom Tromey <tom@tromey.com>
8947
8948 * valprint.c (generic_value_print_char): New function
8949 (generic_value_print): Use it.
8950
fdddfccb
TT
89512020-03-13 Tom Tromey <tom@tromey.com>
8952
8953 * valprint.c (generic_value_print_int): New function.
8954 (generic_value_print): Use it.
8955
6dde7521
TT
89562020-03-13 Tom Tromey <tom@tromey.com>
8957
8958 * valprint.c (generic_value_print_bool): New function.
8959 (generic_value_print): Use it.
8960
4112d2e6
TT
89612020-03-13 Tom Tromey <tom@tromey.com>
8962
8963 * valprint.c (generic_val_print_func): Simplify.
8964 (generic_val_print, generic_value_print): Update.
8965
65786af6
TT
89662020-03-13 Tom Tromey <tom@tromey.com>
8967
8968 * valprint.c (generic_val_print_flags): Remove.
8969 (generic_val_print, generic_value_print): Update.
8970 (val_print_type_code_flags): Add original_value parameter.
8971
40f3ce18
TT
89722020-03-13 Tom Tromey <tom@tromey.com>
8973
8974 * valprint.c (generic_val_print): Update.
8975 (generic_value_print): Update.
8976 * valprint.c (generic_val_print_enum): Don't call
8977 val_print_scalar_formatted.
8978
2a5b130b
TT
89792020-03-13 Tom Tromey <tom@tromey.com>
8980
8981 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8982 * valprint.c (generic_value_print_ptr): New function.
8983
abc66ce9
TT
89842020-03-13 Tom Tromey <tom@tromey.com>
8985
8986 * valprint.c (generic_value_print): Rewrite.
8987
07a32858
TT
89882020-03-13 Tom Tromey <tom@tromey.com>
8989
8990 * p-valprint.c (pascal_object_print_value_fields)
8991 (pascal_object_print_value): New functions.
8992
64d64d3a
TT
89932020-03-13 Tom Tromey <tom@tromey.com>
8994
8995 * p-valprint.c (pascal_value_print_inner): Rewrite.
8996
6a95a1f5
TT
89972020-03-13 Tom Tromey <tom@tromey.com>
8998
8999 * f-valprint.c (f_value_print_innner): Rewrite.
9000
59fcdac6
TT
90012020-03-13 Tom Tromey <tom@tromey.com>
9002
9003 * m2-valprint.c (m2_print_unbounded_array): New overload.
9004 (m2_print_unbounded_array): Update.
9005 (m2_print_array_contents): Take a struct value.
9006 (m2_value_print_inner): Rewrite.
9007
d133c3e1
TT
90082020-03-13 Tom Tromey <tom@tromey.com>
9009
9010 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9011 (d_value_print_inner): New function.
9012 * d-lang.h (d_value_print_inner): Declare.
9013 * d-lang.c (d_language_defn): Use d_value_print_inner.
9014
23b0f06b
TT
90152020-03-13 Tom Tromey <tom@tromey.com>
9016
9017 * go-valprint.c (go_value_print_inner): New function.
9018 * go-lang.h (go_value_print_inner): Declare.
9019 * go-lang.c (go_language_defn): Use go_value_print_inner.
9020
5f56f7cb
TT
90212020-03-13 Tom Tromey <tom@tromey.com>
9022
9023 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9024 API.
9025 (rust_val_print): Rewrite.
9026 (rust_value_print_inner): New function, from rust_val_print.
9027 (rust_language_defn): Use rust_value_print_inner.
9028
26792ee0
TT
90292020-03-13 Tom Tromey <tom@tromey.com>
9030
9031 * ada-valprint.c (ada_value_print_inner): New function.
9032 * ada-lang.h (ada_value_print_inner): Declare.
9033 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9034
24051bbe
TT
90352020-03-13 Tom Tromey <tom@tromey.com>
9036
9037 * f-valprint.c (f_value_print_innner): New function.
9038 * f-lang.h (f_value_print_innner): Declare.
9039 * f-lang.c (f_language_defn): Use f_value_print_innner.
9040
c0941be6
TT
90412020-03-13 Tom Tromey <tom@tromey.com>
9042
9043 * p-valprint.c (pascal_value_print_inner): New function.
9044 * p-lang.h (pascal_value_print_inner): Declare.
9045 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9046
62c4663d
TT
90472020-03-13 Tom Tromey <tom@tromey.com>
9048
9049 * m2-valprint.c (m2_value_print_inner): New function.
9050 * m2-lang.h (m2_value_print_inner): Declare.
9051 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9052
62182190
TT
90532020-03-13 Tom Tromey <tom@tromey.com>
9054
9055 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9056 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9057 * c-valprint.c (c_value_print_inner): New function.
9058 * c-lang.h (c_value_print_inner): Declare.
9059 * c-lang.c (c_language_defn, cplus_language_defn)
9060 (asm_language_defn, minimal_language_defn): Use
9061 c_value_print_inner.
9062
1e592a8a
TT
90632020-03-13 Tom Tromey <tom@tromey.com>
9064
9065 * p-valprint.c (pascal_object_print_value_fields): Now static.
9066 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9067
7fe471e9
TT
90682020-03-13 Tom Tromey <tom@tromey.com>
9069
9070 * c-valprint.c (c_val_print_array): Simplify.
9071
d121c6ce
TT
90722020-03-13 Tom Tromey <tom@tromey.com>
9073
9074 * valprint.c (value_print_array_elements): New function.
9075 * valprint.h (value_print_array_elements): Declare.
9076
4dba70ee
TT
90772020-03-13 Tom Tromey <tom@tromey.com>
9078
9079 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
9080 * mips-tdep.c (mips_print_register): Use
9081 value_print_scalar_formatted.
9082
4f9ae810
TT
90832020-03-13 Tom Tromey <tom@tromey.com>
9084
9085 * valprint.h (value_print_scalar_formatted): Declare.
9086 * valprint.c (value_print_scalar_formatted): New function.
9087
156bfec9
TT
90882020-03-13 Tom Tromey <tom@tromey.com>
9089
9090 * valprint.h (generic_value_print): Declare.
9091 * valprint.c (generic_value_print): New function.
9092
2b4e573d
TT
90932020-03-13 Tom Tromey <tom@tromey.com>
9094
9095 * valprint.c (do_val_print): Call la_value_print_inner, if
9096 available.
9097 * rust-lang.c (rust_language_defn): Update.
9098 * p-lang.c (pascal_language_defn): Update.
9099 * opencl-lang.c (opencl_language_defn): Update.
9100 * objc-lang.c (objc_language_defn): Update.
9101 * m2-lang.c (m2_language_defn): Update.
9102 * language.h (struct language_defn) <la_value_print_inner>: New
9103 member.
9104 * language.c (unknown_language_defn, auto_language_defn): Update.
9105 * go-lang.c (go_language_defn): Update.
9106 * f-lang.c (f_language_defn): Update.
9107 * d-lang.c (d_language_defn): Update.
9108 * c-lang.c (c_language_defn, cplus_language_defn)
9109 (asm_language_defn, minimal_language_defn): Update.
9110 * ada-lang.c (ada_language_defn): Update.
9111
a1f6a07c
TT
91122020-03-13 Tom Tromey <tom@tromey.com>
9113
9114 * c-valprint.c (c_value_print): Use common_val_print.
9115
410cf315
TT
91162020-03-13 Tom Tromey <tom@tromey.com>
9117
9118 * cp-valprint.c (cp_print_static_field): Use common_val_print.
9119
72a45c93
TT
91202020-03-13 Tom Tromey <tom@tromey.com>
9121
9122 * f-valprint.c (f77_print_array_1, f_val_print): Use
9123 common_val_print.
9124
040f66bd
TT
91252020-03-13 Tom Tromey <tom@tromey.com>
9126
9127 * riscv-tdep.c (riscv_print_one_register_info): Use
9128 common_val_print.
9129
a6e05a6c
TT
91302020-03-13 Tom Tromey <tom@tromey.com>
9131
9132 * mi/mi-main.c (output_register): Use common_val_print.
9133
3444c526
TT
91342020-03-13 Tom Tromey <tom@tromey.com>
9135
9136 * infcmd.c (default_print_one_register_info): Use
9137 common_val_print.
9138
c2a44efe
TT
91392020-03-13 Tom Tromey <tom@tromey.com>
9140
9141 * valprint.h (common_val_print_checked): Declare.
9142 * valprint.c (common_val_print_checked): New function.
9143 * stack.c (print_frame_arg): Use common_val_print_checked.
9144
b0c26e99
TT
91452020-03-13 Tom Tromey <tom@tromey.com>
9146
9147 * valprint.c (do_val_print): New function, from val_print.
9148 (val_print): Use do_val_print.
9149 (common_val_print): Use do_val_print.
9150
ce3acbe9
TT
91512020-03-13 Tom Tromey <tom@tromey.com>
9152
9153 * valprint.c (value_print): Use scoped_value_mark.
9154
96c7f873
TV
91552020-03-13 Tom de Vries <tdevries@suse.de>
9156
9157 PR symtab/25646
9158 * psymtab.c (partial_symtab::partial_symtab): Don't set
9159 globals_offset and statics_offset. Push element onto
9160 current_global_psymbols and current_static_psymbols stacks.
9161 (concat): New function.
9162 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9163 element from current_global_psymbols and current_static_psymbols
9164 stacks. Concat popped elements to global_psymbols and
9165 static_symbols.
9166 (add_psymbol_to_list): Use current_global_psymbols and
9167 current_static_psymbols stacks.
9168 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9169 current_static_psymbols fields.
9170
6ba0a321
CB
91712020-03-12 Christian Biesinger <cbiesinger@google.com>
9172
9173 * corelow.c (sniff_core_bfd): Remove.
9174 (class core_target) <m_core_vec>: Remove.
9175 (core_target::core_target): Update.
9176 (core_file_fns): Remove.
9177 (deprecated_add_core_fns): Remove.
9178 (default_core_sniffer): Remove.
9179 (sniff_core_bfd): Remove.
9180 (default_check_format): Remove.
9181 (gdb_check_format): Remove.
9182 (core_target_open): Update.
9183 (core_target::get_core_register_section): Update.
9184 (get_core_registers_cb): Update.
9185 (core_target::fetch_registers): Update.
9186 * gdbcore.h (struct core_fns): Remove.
9187 (deprecated_add_core_fns): Remove.
9188 (default_core_sniffer): Remove.
9189 (default_check_format): Remove.
9190
227031b2
TT
91912020-03-12 Tom Tromey <tom@tromey.com>
9192
9193 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9194 CORE_ADDR.
9195 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9196
53807e9f
TT
91972020-03-12 Tom Tromey <tom@tromey.com>
9198
9199 * remote.c (remote_target::download_tracepoint)
9200 (remote_target::enable_tracepoint)
9201 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9202 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9203 sprintf_vma.
9204
64f25102
TT
92052020-03-12 Tom Tromey <tom@tromey.com>
9206
9207 * symfile-mem.c: Update CORE_ADDR size assert.
9208
272cd5a3
SM
92092020-03-12 Simon Marchi <simon.marchi@efficios.com>
9210
9211 * selftest.m4: Move to gdbsupport/.
9212 * acinclude.m4: Update path to selftest.m4.
9213
74cd3f9d
SM
92142020-03-12 Simon Marchi <simon.marchi@efficios.com>
9215
9216 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9217 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9218 gdbarch-selfselftests.c and selftest-arch.c.
9219 (SUBDIR_UNITTESTS_OBS): Rename to...
9220 (SELFTESTS_OBS): ... this.
9221 (COMMON_SFILES): Remove disasm-selftests.c and
9222 gdbarch-selftests.c.
9223 * configure.ac: Don't add selftest-arch.{c,o} to
9224 CONFIG_{SRCS,OBS}.
9225 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9226 preprocessor conditions.
9227
db6878ac
SM
92282020-03-12 Simon Marchi <simon.marchi@efficios.com>
9229
9230 * configure.ac: Don't source bfd/development.sh.
9231 * selftest.m4: Modify comment.
9232 * configure: Re-generate.
9233
4d696a5c
SM
92342020-03-12 Simon Marchi <simon.marchi@efficios.com>
9235
9236 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9237 not "true" or "false".
9238 * configure: Re-generate.
9239
8dd8e1c7
CB
92402020-03-12 Christian Biesinger <cbiesinger@google.com>
9241
9242 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9243 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9244 renamed to arm_nbsd_supply_gregset.
9245 (fetch_register): Update to call arm_nbsd_supply_gregset.
9246 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9247 (arm_netbsd_nat_target::fetch_registers): Update.
9248 (fetch_elfcore_registers): Removed.
9249 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9250 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9251 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9252 not require NetBSD system headers.
9253 (arm_nbsd_regset): New struct.
9254 (arm_nbsd_iterate_over_regset_sections): New function.
9255 (arm_netbsd_init_abi_common): Updated to call
9256 set_gdbarch_iterate_over_regset_sections.
9257 * arm-nbsd-tdep.h: New file.
9258
dd69bf7a
KB
92592020-03-11 Kevin Buettner <kevinb@redhat.com>
9260
9261 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9262 recursion.
9263
a0761e34
SM
92642020-03-11 Simon Marchi <simon.marchi@efficios.com>
9265
9266 * configure: Re-generate.
9267
e7a82140
TT
92682020-03-11 Tom Tromey <tromey@adacore.com>
9269
9270 * ada-typeprint.c (print_choices): Fix comment.
9271
dcc050c8
AB
92722020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9273
9274 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9275 previous item in the list, when the list has no items.
9276
1c33af77
TV
92772020-03-11 Tom de Vries <tdevries@suse.de>
9278
9279 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9280 PROP_LOCLIST handling code.
9281
8c95582d
AB
92822020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9283
9284 * buildsym-legacy.c (record_line): Pass extra parameter to
9285 record_line.
9286 * buildsym.c (buildsym_compunit::record_line): Take an extra
9287 parameter, reduce duplication in the line table, and record the
9288 is_stmt flag in the line table.
9289 * buildsym.h (buildsym_compunit::record_line): Add extra
9290 parameter.
9291 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9292 non-statement lines.
9293 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9294 this to the symtab builder.
9295 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9296 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9297 through to dwarf_record_line_1.
9298 * infrun.c (process_event_stop_test): When stepping, don't stop at
9299 a non-statement instruction, and only refresh the step info when
9300 we land in the middle of a line's range. Also add an extra
9301 comment.
9302 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9303 field.
9304 * record-btrace.c (btrace_find_line_range): Only record lines
9305 marked as is-statement.
9306 * stack.c (frame_show_address): Show the frame address if we are
9307 in a non-statement sal.
9308 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9309 (maintenance_print_one_line_table): Print a header for the is_stmt
9310 column, and include is_stmt information in the output.
9311 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9312 preference to non-statements.
9313 (find_pcs_for_symtab_line): Prefer is-statement entries.
9314 (find_line_common): Likewise.
9315 * symtab.h (struct linetable_entry): Add is_stmt field.
9316 (struct symtab_and_line): Likewise.
9317 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9318 arranging the line table.
9319
e4003a34
TV
93202020-03-07 Tom de Vries <tdevries@suse.de>
9321
9322 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9323 DIE.
9324
e8932576
TT
93252020-03-07 Tom Tromey <tom@tromey.com>
9326
9327 * valops.c (value_literal_complex): Remove obsolete comment.
9328 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9329 comment.
9330
29734269
SM
93312020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9332
9333 * infrun.h: Forward-declare thread_info.
9334 (set_step_info): Add thread_info parameter, add doc.
9335 * infrun.c (set_step_info): Add thread_info parameter, move doc
9336 to header.
9337 * infrun.c (process_event_stop_test): Pass thread to
9338 set_step_info call.
9339 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9340 set_step_info.
9341 (prepare_one_step): Add thread_info parameter, pass it to
9342 set_step_frame and prepare_one_step (recursive) call.
9343 (step_1): Pass thread to prepare_one_step call.
9344 (step_command_fsm::should_stop): Pass thread to
9345 prepare_one_step.
9346 (until_next_fsm): Pass thread to set_step_frame call.
9347 (finish_command): Pass thread to set_step_info call.
9348
b7d64b29
HD
93492020-03-06 Hannes Domani <ssbssa@yahoo.de>
9350
9351 * windows-tdep.c (windows_solib_create_inferior_hook):
9352 Check if inferior is running.
9353
09f2921c
TV
93542020-03-06 Tom de Vries <tdevries@suse.de>
9355
9356 * NEWS: Fix "the the".
9357 * ctfread.c: Same.
9358
fd760e79
TV
93592020-03-06 Tom de Vries <tdevries@suse.de>
9360
9361 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9362
20ea4a60
AB
93632020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9364
9365 * .dir-locals.el: Add a comment referencing the other copies of
9366 this file.
9367
0afbabf0
JB
93682020-03-05 John Baldwin <jhb@FreeBSD.org>
9369
9370 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9371 psargs.
9372
842806cb
TBA
93732020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9374
9375 * .gitattributes: New file.
9376
be1e3d3e
TT
93772020-03-04 Tom Tromey <tom@tromey.com>
9378
9379 * symmisc.c (print_symbol_bcache_statistics)
9380 (print_objfile_statistics): Update.
9381 * symfile.c (allocate_symtab): Use intern.
9382 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9383 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9384 macro_cache>: Remove.
9385 <string_cache>: New member.
9386 (struct objfile) <intern>: New methods.
9387 * elfread.c (elf_symtab_read): Use intern.
9388 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9389 (dwarf2_compute_name, dwarf2_physname)
9390 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9391 names.
9392 (guess_partial_die_structure_name): Update.
9393 (partial_die_info::fixup): Intern name.
9394 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9395 name.
9396 (dwarf2_name): Intern name. Update.
9397 * buildsym.c (buildsym_compunit::get_macro_table): Use
9398 string_cache.
9399
4e7625fd
TT
94002020-03-04 Tom Tromey <tom@tromey.com>
9401
9402 * jit.c (bfd_open_from_target_memory): Make "target" const.
9403 * corefile.c (gnutarget): Now const.
9404 * gdbcore.h (gnutarget): Now const.
9405
46f9f931
HD
94062020-03-04 Hannes Domani <ssbssa@yahoo.de>
9407
9408 * NEWS: Mention support for WOW64 processes.
9409 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9410 (amd64_windows_segment_register_p): Remove static.
9411 (_initialize_amd64_windows_nat): Update.
9412 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9413 * i386-windows-nat.c (context_offset): Update.
9414 (i386_mappings): Rename and remove static.
9415 (i386_windows_segment_register_p): Remove static.
9416 (_initialize_i386_windows_nat): Update.
9417 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9418 (STATUS_WX86_SINGLE_STEP): New macro.
9419 (EnumProcessModulesEx): New macro.
9420 (Wow64SuspendThread): New macro.
9421 (Wow64GetThreadContext): New macro.
9422 (Wow64SetThreadContext): New macro.
9423 (Wow64GetThreadSelectorEntry): New macro.
9424 (windows_set_context_register_offsets): Add static.
9425 (windows_set_segment_register_p): Likewise.
9426 (windows_add_thread): Adapt for WOW64 processes.
9427 (windows_fetch_one_register): Likewise.
9428 (windows_nat_target::fetch_registers): Likewise.
9429 (windows_store_one_register): Likewise.
9430 (display_selector): Likewise.
9431 (display_selectors): Likewise.
9432 (handle_exception): Likewise.
9433 (windows_continue): Likewise.
9434 (windows_nat_target::resume): Likewise.
9435 (windows_add_all_dlls): Likewise.
9436 (do_initial_windows_stuff): Likewise.
9437 (windows_nat_target::attach): Likewise.
9438 (windows_get_exec_module_filename): Likewise.
9439 (windows_nat_target::create_inferior): Likewise.
9440 (windows_xfer_siginfo): Likewise.
9441 (_initialize_loadable): Initialize Wow64SuspendThread,
9442 Wow64GetThreadContext, Wow64SetThreadContext,
9443 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9444 * windows-nat.h (windows_set_context_register_offsets):
9445 Remove declaration.
9446 (windows_set_segment_register_p): Likewise.
9447 (i386_windows_segment_register_p): Add declaration.
9448 (amd64_windows_segment_register_p): Likewise.
9449
440cf44e
LM
94502020-03-04 Luis Machado <luis.machado@linaro.org>
9451
9452 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9453 in "info registers" for AArch64/ARM.
9454
9455 The change caused "info registers" to not print GPR's.
9456
9457 gdb/ChangeLog:
9458
9459 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9460
9461 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9462 when reg->group is empty and reggroup is not.
9463
1009d92f
TT
94642020-03-03 Tom Tromey <tromey@adacore.com>
9465
9466 * dwarf2/frame.c (struct dwarf2_frame_cache)
9467 <checked_tailcall_bottom, entry_cfa_sp_offset,
9468 entry_cfa_sp_offset_p>: Remove members.
9469 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9470 (dwarf2_frame_prev_register): Don't call
9471 dwarf2_tailcall_sniffer_first.
9472 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9473 * frame-unwind.c (add_unwinder): New fuction.
9474 (frame_unwind_init): Use it. Add tailcall unwinder.
9475
5e5d66b6
AB
94762020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9477 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9478
9479 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9480 value should be printed as true.
9481
584cf46d
HD
94822020-03-03 Hannes Domani <ssbssa@yahoo.de>
9483
9484 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9485 (windows_init_abi): Set and use windows_so_ops.
9486
7b973adc
SDJ
94872020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9488
9489 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9490 when verifying if dealing with a convenience variable.
9491
bb7b70ab
LM
94922020-03-03 Luis Machado <luis.machado@linaro.org>
9493
9494 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9495
9822cb57
SM
94962020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9497
9498 * infrun.c (gdbarch_supports_displaced_stepping): New.
9499 (use_displaced_stepping): Break up conditions in smaller pieces.
9500 Use gdbarch_supports_displaced_stepping.
9501 (displaced_step_prepare_throw): Use
9502 gdbarch_supports_displaced_stepping.
9503
63e163f2
AB
95042020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9505
9506 * NEWS: Mention new behaviour of the history filename.
9507 * top.c (write_history_p): Add comment.
9508 (show_write_history_p): Add header comment, give a different
9509 message when history writing is on, but the history filename is
9510 empty.
9511 (history_filename): Add comment.
9512 (history_filename_empty): New function.
9513 (show_history_filename): Add header comment, give a different
9514 message when the filename is empty.
9515 (init_history): Compare history_filename against nullptr, and only
9516 read history if the filename is not empty.
9517 (set_history_filename): Add header comment, and only make
9518 non-empty filenames absolute.
9519 (init_main): Make the filename argument to 'set history filename'
9520 optional.
9521
81b86b97
CB
95222020-03-02 Christian Biesinger <cbiesinger@google.com>
9523
9524 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9525 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9526 (fetch_fp_register): Update.
9527 (fetch_fp_regs): Update.
9528 (store_fp_register): Update.
9529 (store_fp_regs): Update.
9530 (arm_netbsd_nat_target::read_description): New function.
9531 (fetch_elfcore_registers): Update.
9532
24ed6739
AB
95332020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9534
9535 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9536 general_thread if the stop reply is missing a thread-id.
9537 (remote_target::process_stop_reply): Use the first non-exited
9538 thread if the target didn't pass a thread-id.
9539 * infrun.c (do_target_wait): Move call to
9540 switch_to_inferior_no_thread to ....
9541 (do_target_wait_1): ... here.
9542
a84bb2a0
JT
95432020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9544
9545 * debuginfod-support.c: Include defs.h first.
9546
658dadf0
TV
95472020-02-28 Tom de Vries <tdevries@suse.de>
9548
9549 * symfile.c (set_initial_language): Use default language for lookup.
9550
4ebe4877
SM
95512020-02-28 Simon Marchi <simon.marchi@efficios.com>
9552
9553 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9554 reader variable, pass `this` to read_cutu_die_from_dwo.
9555
e5da1139
AM
95562020-02-27 Aaron Merey <amerey@redhat.com>
9557
9558 * source.c (open_source_file): Check for nullptr when computing
9559 srcpath.
9560
317f7127
TT
95612020-02-27 Tom Tromey <tromey@adacore.com>
9562
9563 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9564 member.
9565 (dwarf2_add_field): Don't update nfields.
9566 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9567
3104d9ee
AB
95682020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9569
9570 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9571 abs.
9572
b83470bf
TT
95732020-02-26 Tom Tromey <tom@tromey.com>
9574
9575 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9576 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9577 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9578 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9579 per_cu_data.
9580
edfe0a0c
TT
95812020-02-26 Tom Tromey <tom@tromey.com>
9582
9583 * dwarf2/index-write.c (psym_index_map): Change type.
9584 (add_address_entry_worker, write_one_signatured_type)
9585 (recursively_count_psymbols, recursively_write_psymbols)
9586 (class debug_names, psyms_seen_size, write_gdbindex)
9587 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9588
0d79cdc4
AM
95892020-02-26 Aaron Merey <amerey@redhat.com>
9590
9591 * Makefile.in: Handle optional debuginfod support.
9592 * NEWS: Update.
9593 * README: Add --with-debuginfod summary.
9594 * config.in: Regenerate.
9595 * configure: Regenerate.
9596 * configure.ac: Handle optional debuginfod support.
9597 * debuginfod-support.c: debuginfod helper functions.
9598 * debuginfod-support.h: Ditto.
9599 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9600 summary.
9601 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9602 when a dwz file cannot be found.
9603 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9604 debuginfo file cannot be found.
9605 * source.c (open_source_file): Query debuginfod servers when a
9606 source file cannot be found.
9607 * top.c (print_gdb_configuration): Include
9608 --{with,without}-debuginfod in the output.
9609
b65ce565
JG
96102020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9611
9612 * thread.c (thr_try_catch_cmd): Print thread name.
9613
d4c9a4f8
SM
96142020-02-26 Simon Marchi <simon.marchi@efficios.com>
9615
9616 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9617 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9618 dwarf2_fetch_die_type_sect_off): Move to...
9619 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9620 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9621 dwarf2_fetch_die_type_sect_off): ... here.
9622 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9623 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9624 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9625
0dce4280
TV
96262020-02-26 Tom de Vries <tdevries@suse.de>
9627
9628 PR gdb/25603
9629 * symfile.c (set_initial_language): Exit-early if
9630 language_mode == language_mode_manual.
9631
450a1bfc
SM
96322020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9633
9634 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9635 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9636 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9637
9e80cfa1
AB
96382020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9639
9640 * gdbtypes.c (create_array_type_with_stride): Handle negative
9641 array strides.
9642 * valarith.c (value_subscripted_rvalue): Likewise.
9643
09624f1f
LM
96442020-02-25 Luis Machado <luis.machado@linaro.org>
9645
9646 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9647
8cb5117c
SM
96482020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9649
9650 * loc.h (dwarf2_get_die_type): Move to...
9651 * read.h (dwarf2_get_die_type): ... here.
9652 * read.c (dwarf2_get_die_type): Move doc to header.
9653
c325c44e
JB
96542020-02-25 Joel Brobecker <brobecker@adacore.com>
9655
9656 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9657 'gnulib/Makefile.in' to the list.
9658
4ac93832
TT
96592020-02-24 Tom Tromey <tom@tromey.com>
9660
9661 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9662 Remove.
9663 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9664 XOBNEWVEC.
9665
197400e8
TT
96662020-02-24 Tom Tromey <tom@tromey.com>
9667
9668 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9669 New method.
9670 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9671 (dw2_do_instantiate_symtab, dw2_get_file_names)
9672 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9673
76935768
TT
96742020-02-24 Tom Tromey <tom@tromey.com>
9675
9676 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9677 make_scoped_restore.
9678 (dwarf2_psymtab::read_symtab): Don't clear
9679 reading_partial_symbols.
9680
a88ef40d
TV
96812020-02-24 Tom de Vries <tdevries@suse.de>
9682
9683 PR gdb/25592
9684 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9685
c9af6521
TV
96862020-02-24 Tom de Vries <tdevries@suse.de>
9687
9688 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9689 commands layout next/prev/regs.
9690
5707a07a
TT
96912020-02-22 Tom Tromey <tom@tromey.com>
9692
9693 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9694 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9695
3b0fb49e
TT
96962020-02-22 Tom Tromey <tom@tromey.com>
9697
9698 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9699
283be8bf
TT
97002020-02-22 Tom Tromey <tom@tromey.com>
9701
9702 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9703 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9704 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9705 * tui/tui.c (_initialize_tui): Add usage text.
9706
ca793b96
TT
97072020-02-22 Tom Tromey <tom@tromey.com>
9708
9709 * tui/tui-win.c (tui_set_focus_command)
9710 (tui_set_win_height_command): Use error_no_arg.
9711 (_initialize_tui_win): Update help text.
9712 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9713
432b5c40
TT
97142020-02-22 Tom Tromey <tom@tromey.com>
9715
9716 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9717 * tui/tui-disasm.h (struct tui_disasm_window)
9718 <display_start_addr>: Declare.
9719 * tui/tui-source.h (struct tui_source_window)
9720 <display_start_addr>: Declare.
9721 * tui/tui-winsource.h (struct tui_source_window_base)
9722 <show_source_line, display_start_addr>: New methods.
9723 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9724 Rename and move to protected section.
9725 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9726 (tui_source_window_base::do_erase_source_content): Update.
9727 (tui_source_window_base::show_source_line): Now a method.
9728 (tui_source_window_base::show_source_content)
9729 (tui_source_window_base::tui_source_window_base)
9730 (tui_source_window_base::rerender)
9731 (tui_source_window_base::refill)
9732 (tui_source_window_base::do_scroll_horizontal)
9733 (tui_source_window_base::set_is_exec_point_at)
9734 (tui_source_window_base::update_breakpoint_info)
9735 (tui_source_window_base::update_exec_info): Update.
9736 * tui/tui-source.c (tui_source_window::set_contents)
9737 (tui_source_window::showing_source_p)
9738 (tui_source_window::do_scroll_vertical)
9739 (tui_source_window::location_matches_p)
9740 (tui_source_window::line_is_displayed): Update.
9741 (tui_source_window::display_start_addr): New method.
9742 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9743 (tui_disasm_window::do_scroll_vertical)
9744 (tui_disasm_window::location_matches_p): Update.
9745 (tui_disasm_window::display_start_addr): New method.
9746
01b1af32
TT
97472020-02-22 Tom Tromey <tom@tromey.com>
9748
9749 * NEWS: Add entry for gdb.register_window_type.
9750 * tui/tui-layout.h (window_factory): New typedef.
9751 (tui_register_window): Declare.
9752 * tui/tui-layout.c (saved_tui_windows): New global.
9753 (tui_apply_current_layout): Use it.
9754 (tui_register_window): New function.
9755 * python/python.c (do_start_initialization): Call
9756 gdbpy_initialize_tui.
9757 (python_GdbMethods): Add "register_window_type" function.
9758 * python/python-internal.h (gdbpy_register_tui_window)
9759 (gdbpy_initialize_tui): Declare.
9760 * python/py-tui.c: New file.
9761 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9762
fc96d20b
TT
97632020-02-22 Tom Tromey <tom@tromey.com>
9764
9765 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9766
935c78c0
TT
97672020-02-22 Tom Tromey <tom@tromey.com>
9768
9769 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9770 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9771 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9772 (tui_set_win_focus_to): Move from tui-win.c.
9773
0240c8f1
TT
97742020-02-22 Tom Tromey <tom@tromey.com>
9775
9776 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9777 functions.
9778 (known_window_types): New global.
9779 (tui_get_window_by_name): Reimplement.
9780 (initialize_known_windows): New function.
9781 (validate_window_name): Rewrite.
9782 (_initialize_tui_layout): Call initialize_known_windows.
9783
fdb01f0c
TT
97842020-02-22 Tom Tromey <tom@tromey.com>
9785
9786 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9787 Remove constants.
9788 * tui/tui-winsource.h (struct tui_source_window_base)
9789 <tui_source_window_base>: Remove parameter.
9790 * tui/tui-winsource.c
9791 (tui_source_window_base::tui_source_window_base): Remove
9792 parameter.
9793 (tui_source_window_base::refill): Update.
9794 * tui/tui-stack.h (struct tui_locator_window)
9795 <tui_locator_window>: Update.
9796 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9797 Default the constructor.
9798 * tui/tui-regs.h (struct tui_data_item_window)
9799 <tui_data_item_window>: Default the constructor.
9800 (struct tui_data_window) <tui_data_window>: Likewise.
9801 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9802 Default the constructor.
9803 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9804 Default the constructor.
9805 <type>: Remove.
9806 (struct tui_win_info) <tui_win_info>: Default the constructor.
9807 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9808 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9809 Default the constructor.
9810
865a5aec
TT
98112020-02-22 Tom Tromey <tom@tromey.com>
9812
9813 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9814 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9815 * tui/tui-win.c (tui_resize_all): Don't call
9816 tui_delete_invisible_windows.
9817 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9818 done.
9819 (tui_set_layout): Update.
9820 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9821 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9822 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9823
e098d18c
TT
98242020-02-22 Tom Tromey <tom@tromey.com>
9825
9826 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9827 correctly.
9828
eb9c8874
TT
98292020-02-22 Tom Tromey <tom@tromey.com>
9830
9831 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9832
7eed1a8e
TT
98332020-02-22 Tom Tromey <tom@tromey.com>
9834
9835 * tui/tui-winsource.h (struct tui_source_window_iterator)
9836 <inner_iterator>: New etytypedef.
9837 <tui_source_window_iterator>: Take "end" parameter.
9838 <tui_source_window_iterator>: Take iterator.
9839 <operator*, advance>: Update.
9840 <m_iter>: Change type.
9841 <m_end>: New field.
9842 (struct tui_source_windows) <begin, end>: Update.
9843 * tui/tui-layout.c (tui_windows): New global.
9844 (tui_apply_current_layout): Clear tui_windows.
9845 (tui_layout_window::apply): Update tui_windows.
9846 * tui/tui-data.h (tui_windows): Declare.
9847 (all_tui_windows): Now inline function.
9848 (class tui_window_iterator, struct all_tui_windows): Remove.
9849
7c043ba6
TT
98502020-02-22 Tom Tromey <tom@tromey.com>
9851
9852 PR tui/17850:
9853 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9854 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9855 "height" argument.
9856 (class tui_layout_window) <get_sizes>: Likewise.
9857 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9858 argument.
9859 <get_sizes>: Add "height" argument.
9860 <m_vertical>: New field.
9861 * tui/tui-layout.c (tui_layout_split::clone): Update.
9862 (tui_layout_split::get_sizes): Add "height" argument.
9863 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9864 (tui_new_layout_command): Parse "-horizontal".
9865 (_initialize_tui_layout): Update help string.
9866 (tui_layout_split::specification): Add "-horizontal" when needed.
9867 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9868 argument.
9869 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9870 New methods.
9871
6bc56648
TT
98722020-02-22 Tom Tromey <tom@tromey.com>
9873
9874 * tui/tui-layout.h (enum tui_adjust_result): New.
9875 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9876 (class tui_layout_window) <adjust_size>: Return
9877 tui_adjust_result. Rewrite.
9878 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9879 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9880
c22fef7e
TT
98812020-02-22 Tom Tromey <tom@tromey.com>
9882
9883 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9884 parameter and return types.
9885 (class tui_layout_base) <specification>: Add "depth".
9886 (class tui_layout_window) <specification>: Add "depth".
9887 (class tui_layout_split) <specification>: Add "depth".
9888 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9889 and return types.
9890 (tui_new_layout_command): Parse sub-layouts.
9891 (_initialize_tui_layout): Update help string.
9892 (tui_layout_window::specification): Add "depth".
9893 (add_layout_command): Update.
9894
ee325b61
TT
98952020-02-22 Tom Tromey <tom@tromey.com>
9896
9897 * NEWS: Add "tui new-layout" item.
9898 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9899 Add new-layout command to help text.
9900 (validate_window_name): New function.
9901 (tui_new_layout_command): New function.
9902 (_initialize_tui_layout): Register "new-layout".
9903 (tui_layout_window::specification): New method.
9904 (tui_layout_window::specification): New method.
9905 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9906 method.
9907 (class tui_layout_window) <specification>: New method.
9908 (class tui_layout_split) <specification>: New method.
9909
416eb92d
TT
99102020-02-22 Tom Tromey <tom@tromey.com>
9911
9912 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9913 * tui/tui-win.c (window_name_completer): Update comment.
9914 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9915 Declare method.
9916 (class tui_layout_window) <replace_window>: Likewise.
9917 (class tui_layout_split) <replace_window>: Likewise.
9918 (tui_set_layout): Don't declare.
9919 (tui_set_initial_layout): Declare function.
9920 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9921 (asm_regs_layout): New globals.
9922 (tui_current_layout, show_layout): Remove.
9923 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9924 (find_layout, tui_apply_layout): New function.
9925 (layout_completer): Remove.
9926 (tui_next_layout): Reimplement.
9927 (tui_next_layout_command): New function.
9928 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9929 (tui_regs_layout): Reimplement.
9930 (tui_regs_layout_command): New function.
9931 (extract_display_start_addr): Rewrite.
9932 (next_layout, prev_layout): Remove.
9933 (tui_layout_window::replace_window): New method.
9934 (tui_layout_split::replace_window): New method.
9935 (destroy_layout): New function.
9936 (layout_list): New global.
9937 (add_layout_command): New function.
9938 (initialize_layouts): Update.
9939 (tui_layout_command): New function.
9940 (_initialize_tui_layout): Install "layout" commands.
9941 * tui/tui-data.h (enum tui_layout_type): Remove.
9942 (tui_current_layout): Don't declare.
9943
0dbc2fc7
TT
99442020-02-22 Tom Tromey <tom@tromey.com>
9945
9946 * tui/tui-regs.c (tui_reg_layout): Remove.
9947 (tui_reg_command): Use tui_regs_layout.
9948 * tui/tui-layout.h (tui_reg_command): Declare.
9949 * tui/tui-layout.c (tui_reg_command): New function.
9950
5afe342e
TT
99512020-02-22 Tom Tromey <tom@tromey.com>
9952
9953 * tui/tui.c (tui_rl_delete_other_windows): Call
9954 tui_remove_some_windows.
9955 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9956 Declare method.
9957 (class tui_layout_window) <remove_windows>: New method.
9958 (class tui_layout_split) <remove_windows>: Declare.
9959 (tui_remove_some_windows): Declare.
9960 * tui/tui-layout.c (tui_remove_some_windows): New function.
9961 (tui_layout_split::remove_windows): New method.
9962
427326a8
TT
99632020-02-22 Tom Tromey <tom@tromey.com>
9964
9965 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9966 * tui/tui-layout.h (tui_next_layout): Declare.
9967 * tui/tui-layout.c (tui_next_layout): New function.
9968
3fe12b6d
TT
99692020-02-22 Tom Tromey <tom@tromey.com>
9970
9971 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9972 correct coordinates.
9973
59b8b5d2
TT
99742020-02-22 Tom Tromey <tom@tromey.com>
9975
9976 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9977 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9978 DATA_WIN case.
9979
2a3d458b
TT
99802020-02-22 Tom Tromey <tom@tromey.com>
9981
9982 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9983 TUI_DISASM_WIN, not tui_win_list.
9984
3f0cbb04
TT
99852020-02-22 Tom Tromey <tom@tromey.com>
9986
9987 * valprint.c (generic_val_print_enum_1)
9988 (val_print_type_code_flags): Style member names.
9989 * rust-lang.c (val_print_struct, rust_print_enum)
9990 (rust_print_struct_def, rust_internal_print_type): Style member
9991 names.
9992 * p-valprint.c (pascal_object_print_value_fields): Style member
9993 names. Only call fprintf_symbol_filtered for static members.
9994 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9995 * f-valprint.c (f_val_print): Style member names.
9996 * f-typeprint.c (f_type_print_base): Style member names.
9997 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9998 call fprintf_symbol_filtered for static members.
9999 (cp_print_class_member): Style member names.
10000 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10001 member names.
10002 * ada-valprint.c (ada_print_scalar): Style enum names.
10003 (ada_val_print_enum): Likewise.
10004 * ada-typeprint.c (print_enum_type): Style enum names.
10005
d4d947ae
TT
100062020-02-21 Tom Tromey <tom@tromey.com>
10007
10008 * psympriv.h (struct partial_symtab): Update comment.
10009
e94e944b
TT
100102020-02-21 Tom Tromey <tromey@adacore.com>
10011
10012 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10013 type is CORE_ADDR.
10014
1eb73179
TV
100152020-02-21 Tom de Vries <tdevries@suse.de>
10016
10017 PR gdb/25534
10018 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10019 if dependencies[i]->user != NULL.
10020
4f180d53
AT
100212020-02-21 Ali Tamur <tamur@google.com>
10022
10023 * dwarf2/read.c (dwarf2_name): Add null check.
10024
22b6cd70
TT
100252020-02-20 Tom Tromey <tom@tromey.com>
10026
10027 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10028 ">=", in binary search.
10029 (dwarf2_find_containing_comp_unit): New overload.
10030 (run_test): New self-test.
10031 (_initialize_dwarf2_read): Register new test.
10032
bd0cf5a6
NC
100332020-02-20 Nelson Chu <nelson.chu@sifive.com>
10034
10035 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10036 * riscv-tdep.h: Likewise.
10037 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10038 rv32-only CSR.
10039 * features/riscv/64bit-csr.xml: Regenerated.
10040
3f702acd
SDJ
100412020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10042 Tom Tromey <tom@tromey.com>
10043
10044 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10045 of 'fputc_unfiltered'.
10046 (putchar_unfiltered): Call 'fputc_unfiltered'.
10047 (fputc_unfiltered): Call 'fputs_unfiltered'.
10048
d13c7322
AB
100492020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10050
10051 * config.in: Regenerate.
10052 * configure: Regenerate.
10053 * configure.ac: Add --with-python-libdir option.
10054 * main.c: Use WITH_PYTHON_LIBDIR.
10055
869d8950
TT
100562020-02-19 Tom Tromey <tom@tromey.com>
10057
10058 * symtab.c (general_symbol_info::compute_and_set_names): Use
10059 obstack_strndup. Simplify call to symbol_set_demangled_name.
10060
298e9637
SM
100612020-02-19 Simon Marchi <simon.marchi@efficios.com>
10062
10063 * dwarf2/read.c (allocate_signatured_type_table,
10064 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10065 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10066 Remove objfile parameter, update all callers.
10067
08410482
DE
100682020-02-19 Doug Evans <dje@google.com>
10069
10070 PR rust/25535
10071 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10072 rust_enum_variant calculation.
10073
dfdeeca1
TT
100742020-02-19 Tom Tromey <tromey@adacore.com>
10075
10076 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10077
2ef5453b
TT
100782020-02-19 Tom Tromey <tromey@adacore.com>
10079
10080 * ada-lang.c (cache_symbol): Use obstack_strdup.
10081
9f1528a1
AB
100822020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10083
10084 * configure: Regenerate.
10085
d3c22fa8
TT
100862020-02-19 Tom Tromey <tromey@adacore.com>
10087
10088 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
10089 NULL check.
10090
bf84f706
MR
100912020-02-19 Maciej W. Rozycki <macro@wdc.com>
10092
10093 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
10094
d1c9b20f
AB
100952020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
10096
10097 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
10098 if GDBSERVER is not defined.
10099 (riscv_tdesc_cache): Likewise, also store const target_desc.
10100 (STATIC_IN_GDB): Define.
10101 (riscv_create_target_description): Update declaration with
10102 STATIC_IN_GDB.
10103 (riscv_lookup_target_description): New function, only define if
10104 GDBSERVER is not defined.
10105 * arch/riscv.h (riscv_create_target_description): Declare only
10106 when GDBSERVER is defined.
10107 (riscv_lookup_target_description): New declaration when GDBSERVER
10108 is not defined.
10109 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
10110 (riscv_linux_read_features): ...this, and return
10111 riscv_gdbarch_features instead of target_desc.
10112 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
10113 (riscv_linux_read_description): Rename to...
10114 (riscv_linux_read_features): ...this.
10115 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10116 Update to use riscv_gdbarch_features and
10117 riscv_lookup_target_description.
10118 * riscv-tdep.c (riscv_find_default_target_description): Use
10119 riscv_lookup_target_description instead of
10120 riscv_create_target_description.
10121
373d7ac0
SM
101222020-02-18 Simon Marchi <simon.marchi@efficios.com>
10123
10124 * valprint.c (generic_val_print_enum_1): When printing a flag
10125 enum with value 0 and there is no enumerator with value 0, print
10126 just "0" instead of "(unknown: 0x0)".
10127
b29a2df0
SM
101282020-02-18 Simon Marchi <simon.marchi@efficios.com>
10129
10130 * valprint.c (generic_val_print_enum_1): Print unknown part of
10131 flag enum in hex.
10132
6740f0cc
SM
101332020-02-18 Simon Marchi <simon.marchi@efficios.com>
10134
10135 * dwarf2/read.c (update_enumeration_type_from_children): Allow
10136 flag enums to contain duplicate enumerators.
10137 * valprint.c (generic_val_print_enum_1): Update comment.
10138
edd45eb0
SM
101392020-02-18 Simon Marchi <simon.marchi@efficios.com>
10140
10141 * dwarf2/read.c: Include "count-one-bits.h".
10142 (update_enumeration_type_from_children): If an enumerator has
10143 multiple bits set, don't treat the enumeration as a "flag enum".
10144 * valprint.c (generic_val_print_enum_1): Assert that enumerators
10145 of flag enums have 0 or 1 bit set.
10146
6d0cf446
BE
101472020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
10148
10149 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
10150 conversion.
10151 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10152 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10153 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10154 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10155 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10156
7001c1b7
SM
101572020-02-18 Simon Marchi <simon.marchi@efficios.com>
10158
10159 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
10160
fdb61c6c
SM
101612020-02-14 Simon Marchi <simon.marchi@efficios.com>
10162
10163 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10164 displaced_step_closure_up.
10165 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10166 (struct displaced_step_closure_up):
10167 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10168 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10169 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10170 Likewise.
10171 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10172 * gdbarch.c, gdbarch.h: Re-generate.
10173 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10174 displaced_step_closure_up.
10175 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10176 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10177 * infrun.h (displaced_step_closure_up): New type alias.
10178 (struct displaced_step_inferior_state) <step_closure>: Change
10179 type to displaced_step_closure_up.
10180 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10181 displaced_step_closure_up.
10182 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10183
a4a38eb4
TT
101842020-02-14 Tom Tromey <tom@tromey.com>
10185
10186 * minidebug.c (gnu_debug_key): New global.
10187 (find_separate_debug_file_in_section): Use it.
10188
e8217e61
SM
101892020-02-14 Simon Marchi <simon.marchi@efficios.com>
10190
10191 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10192 std::unique_ptr.
10193 * gdbarch.c: Re-generate.
10194 * gdbarch.h: Re-generate.
10195 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10196 change.
10197 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10198 type to std::unique_ptr.
10199 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10200 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10201 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10202 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10203 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10204 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10205 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10206 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10207 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10208
d8d83535
SM
102092020-02-14 Simon Marchi <simon.marchi@efficios.com>
10210
10211 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10212 std::unique_ptr.
10213 (displaced_step_clear): Rename to...
10214 (displaced_step_reset): ... this. Just call displaced->reset ().
10215 (displaced_step_clear_cleanup): Rename to...
10216 (displaced_step_reset_cleanup): ... this.
10217 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10218 (displaced_step_fixup): Likewise.
10219 (resume_1): Likewise.
10220 (handle_inferior_event): Restore child's memory before calling
10221 displaced_step_fixup on the parent.
10222 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10223 to std::unique_ptr.
10224 <step_closure>: Change type to std::unique_ptr.
10225
5f661e03
SM
102262020-02-14 Simon Marchi <simon.marchi@efficios.com>
10227
10228 * arm-tdep.c: Include count-one-bits.h.
10229 (cleanup_block_store_pc): Use count_one_bits.
10230 (cleanup_block_load_pc): Use count_one_bits.
10231 (arm_copy_block_xfer): Use count_one_bits.
10232 (thumb2_copy_block_xfer): Use count_one_bits.
10233 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10234 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10235 (thumb_get_next_pcs_raw): Use count_one_bits.
10236 (arm_get_next_pcs_raw): Use count_one_bits_l.
10237 * arch/arm.c (bitcount): Remove.
10238 * arch/arm.h (bitcount): Remove.
10239
8084e579
TT
102402020-02-14 Tom Tromey <tromey@adacore.com>
10241
10242 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10243 Update.
10244 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10245 * dwarf2/loc.c (call_site_find_chain_1): Return
10246 unique_xmalloc_ptr.
10247 (call_site_find_chain): Likewise.
10248
258bf0ee
RB
102492020-02-14 Richard Biener <rguenther@suse.de>
10250
10251 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10252 on expression with division operators.
10253
f98a8458
AKS
102542020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10255
10256 * MAINTAINERS (Write After Approval): Adding myself.
10257
d1437c0e
TT
102582020-02-12 Tom Tromey <tom@tromey.com>
10259
10260 * event-loop.c (event_data, gdb_event, event_handler_func):
10261 Remove.
10262
3d4560f7
TT
102632020-02-12 Tom Tromey <tom@tromey.com>
10264
10265 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10266 (dwarf2_frame_objfile_data): Add comment.
10267 (find_comp_unit, set_comp_unit): New functions.
10268 (dwarf2_frame_find_fde): Use find_comp_unit.
10269 (dwarf2_build_frame_info): Use set_comp_unit.
10270
21982304
TT
102712020-02-12 Tom Tromey <tom@tromey.com>
10272
10273 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10274 (comp_unit): Don't initialize objfile.
10275 (execute_cfa_program): Add text_offset parameter.
10276 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10277 (dwarf2_frame_cache): Update.
10278 (dwarf2_build_frame_info): Don't set "objfile" member.
10279
4debb237
TT
102802020-02-12 Tom Tromey <tom@tromey.com>
10281
10282 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10283 (decode_frame_entry): Likewise.
10284 (dwarf2_build_frame_info): Update.
10285
0d404d44
TT
102862020-02-12 Tom Tromey <tom@tromey.com>
10287
10288 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10289 (decode_frame_entry_1): Use the comp_unit obstack.
10290
a7a3ae5c
TT
102912020-02-12 Tom Tromey <tom@tromey.com>
10292
10293 * dwarf2/frame.c (struct comp_unit): Add initializers and
10294 constructor.
10295 (dwarf2_frame_objfile_data): Store a comp_unit.
10296 (dwarf2_frame_find_fde): Update.
10297 (dwarf2_build_frame_info): Use "new".
10298
a9d65418
TT
102992020-02-12 Tom Tromey <tom@tromey.com>
10300
10301 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10302 (dwarf2_fde_table): Typedef for std::vector.
10303 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10304 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10305 (decode_frame_entry): Update.
10306 (dwarf2_build_frame_info): Use "new".
10307
7559c217
CB
103082020-02-12 Christian Biesinger <cbiesinger@google.com>
10309
10310 * arm-tdep.c (arm_gdbarch_init): Update.
10311 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10312 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10313 have_neon, is_m>: Change to bool.
10314
aeefc73c
CB
103152020-02-12 Christian Biesinger <cbiesinger@google.com>
10316
10317 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10318
d27b8e5f
TT
103192020-02-12 Tom Tromey <tom@tromey.com>
10320
10321 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10322
cd5900f3
HD
103232020-02-12 Hannes Domani <ssbssa@yahoo.de>
10324
10325 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10326 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10327
f056b22b
TT
103282020-02-11 Tom Tromey <tom@tromey.com>
10329
10330 * psymtab.h: Update comment.
10331
f92ff6b5
TT
103322020-02-11 Tom Tromey <tom@tromey.com>
10333
10334 * gdb_obstack.h (struct auto_obstack): Use
10335 DISABLE_COPY_AND_ASSIGN.
10336
3fd6912b
TT
103372020-02-11 Tom Tromey <tom@tromey.com>
10338
10339 * dwarf2/frame.h (struct objfile): Don't forward declare.
10340
69ed9b74
CB
103412020-02-11 Christian Biesinger <cbiesinger@google.com>
10342
10343 * cris-tdep.c (cris_supply_gregset): Change signature to match
10344 what struct regset expects.
10345 (cris_regset): New struct.
10346 (fetch_core_registers): Remove.
10347 (cris_iterate_over_regset_sections): New function.
10348 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10349 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10350
bda874f6
CB
103512020-02-11 Christian Biesinger <cbiesinger@google.com>
10352
10353 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10354 registers.
10355
754e1564
CB
103562020-02-11 Christian Biesinger <cbiesinger@google.com>
10357
10358 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10359
8ddd8e0e
SM
103602020-02-11 Simon Marchi <simon.marchi@efficios.com>
10361
10362 * configure: Re-generate.
10363
898e7f60
SM
103642020-02-11 Simon Marchi <simon.marchi@efficios.com>
10365
10366 * configure: Re-generate.
10367
58df732b
SM
103682020-02-11 Simon Marchi <simon.marchi@efficios.com>
10369
10370 * acinclude: Update warning.m4 path.
10371 * warning.m4: Move to gdbsupport.
10372
da5bd37e
TT
103732020-02-11 Tom Tromey <tromey@adacore.com>
10374
10375 * remote.c (remote_console_output): Update.
10376 * printcmd.c (printf_command): Update.
10377 * event-loop.c (gdb_wait_for_event): Update.
10378 * linux-nat.c (sigchld_handler): Update.
10379 * remote-sim.c (gdb_os_write_stdout): Update.
10380 (gdb_os_flush_stdout): Update.
10381 (gdb_os_flush_stderr): Update.
10382 (gdb_os_write_stderr): Update.
10383 * exceptions.c (print_exception): Update.
10384 * remote-fileio.c (remote_fileio_func_read): Update.
10385 (remote_fileio_func_write): Update.
10386 * tui/tui.c (tui_enable): Update.
10387 * tui/tui-interp.c (tui_interp::init): Update.
10388 * utils.c (init_page_info): Update.
10389 (putchar_unfiltered, fputc_unfiltered): Update.
10390 (gdb_flush): Update.
10391 (emit_style_escape): Update.
10392 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10393 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10394 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10395 (stderr_file::write): Update.
10396 (stderr_file::puts): Update.
10397 * ui-file.h (ui_file_isatty, ui_file_write)
10398 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10399 (ui_file_puts): Don't declare.
10400
85f0dd3c
TV
104012020-02-10 Tom de Vries <tdevries@suse.de>
10402
10403 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10404 sentinel to char *.
10405
2e927613
TV
104062020-02-09 Tom de Vries <tdevries@suse.de>
10407
10408 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10409 filename if it matches "<artificial>".
10410
6bafc845
HD
104112020-02-09 Hannes Domani <ssbssa@yahoo.de>
10412
10413 * windows-tdep.c (struct enum_value_name): New struct.
10414 (create_enum): New function.
10415 (windows_get_siginfo_type): Create and use enum types.
10416
7928d571
HD
104172020-02-09 Hannes Domani <ssbssa@yahoo.de>
10418
10419 * NEWS: Mention $_siginfo support for Windows.
10420 * windows-nat.c (handle_exception): Set siginfo_er.
10421 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10422 (windows_xfer_siginfo): New function.
10423 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10424 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10425 (init_windows_gdbarch_data): New function.
10426 (get_windows_gdbarch_data): New function.
10427 (windows_get_siginfo_type): New function.
10428 (windows_init_abi): Register windows_get_siginfo_type.
10429 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10430
6751ebae
TT
104312020-02-08 Tom Tromey <tom@tromey.com>
10432
10433 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10434 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10435 <keep>: Declare method.
10436 <m_keep>: Remove member.
10437 <~cutu_reader>: Remove.
10438 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10439 (cutu_reader::cutu_reader): Update.
10440 (cutu_reader::keep): Rename from ~cutu_reader.
10441 (process_psymtab_comp_unit, build_type_psymtabs_1)
10442 (process_skeletonless_type_unit, load_partial_comp_unit)
10443 (load_full_comp_unit, dwarf2_read_addr_index)
10444 (read_signatured_type): Update.
10445
135f5437
TT
104462020-02-08 Tom Tromey <tom@tromey.com>
10447
10448 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10449 "want_partial_unit" parameter.
10450 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10451 Inline check for DW_TAG_partial_unit.
10452 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10453
9f66ff1c
TT
104542020-02-08 Tom Tromey <tom@tromey.com>
10455
10456 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10457 read.c.
10458 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10459 read.c.
10460
c8a7a66f
TT
104612020-02-08 Tom Tromey <tom@tromey.com>
10462
10463 * dwarf2/read.c (read_address): Move to comp-unit.c.
10464 (dwarf2_rnglists_process, dwarf2_ranges_process)
10465 (read_attribute_value, dwarf_decode_lines_1)
10466 (var_decode_location, decode_locdesc): Update.
10467 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10468 read.c. Remove "cu" parameter.
10469 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10470 method.
10471
8266302d
TT
104722020-02-08 Tom Tromey <tom@tromey.com>
10473
10474 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10475 (read_indirect_line_string): Update.
10476 * dwarf2/comp-unit.c (read_offset): Remove.
10477 (read_comp_unit_head): Update.
10478 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10479 method.
10480 (read_offset): Don't declare.
10481
4057dfde
TT
104822020-02-08 Tom Tromey <tom@tromey.com>
10483
10484 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10485 * dwarf2/read.c (struct comp_unit_head): Move to
10486 dwarf2/comp-unit.h.
10487 (enum class rcuh_kind): Move to comp-unit.h.
10488 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10489 (read_comp_unit_head, error_check_comp_unit_head)
10490 (read_and_check_comp_unit_head): Move to comp-unit.c.
10491 (read_offset, dwarf_unit_type_name): Likewise.
10492 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10493 (cutu_reader::cutu_reader, read_call_site_scope)
10494 (find_partial_die, follow_die_offset): Update.
10495 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10496
24aa364d
TT
104972020-02-08 Tom Tromey <tom@tromey.com>
10498
10499 * dwarf2/read.c (read_offset_1): Move to leb.c.
10500 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10501 (dwarf_decode_macro_bytes): Update.
10502 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10503 * dwarf2/leb.h (read_offset): Declare.
10504
2c7d5afc
TT
105052020-02-08 Tom Tromey <tom@tromey.com>
10506
10507 * dwarf2/read.c (dwarf2_section_size): Remove.
10508 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10509 Update.
10510 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10511
4075cb26
TT
105122020-02-08 Tom Tromey <tom@tromey.com>
10513
10514 * dwarf2/read.c (read_initial_length): Move to leb.c.
10515 * dwarf2/leb.h (read_initial_length): Declare.
10516 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10517 handle_nonstd parameter.
10518 * dwarf2/frame.c (read_initial_length): Remove.
10519 (decode_frame_entry_1): Update.
10520
09ba997f
TT
105212020-02-08 Tom Tromey <tom@tromey.com>
10522
10523 * dwarf2/loc.c (dwarf2_find_location_expression)
10524 (dwarf_evaluate_loc_desc::get_tls_address)
10525 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10526 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10527 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10528 (dwarf2_compile_property_to_c)
10529 (dwarf2_loc_desc_get_symbol_read_needs)
10530 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10531 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10532 (loclist_describe_location, loclist_tracepoint_var_ref)
10533 (loclist_generate_c_location): Update.
10534 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10535 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10536 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10537 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10538 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10539 (dwarf2_per_cu_data::addr_size)
10540 (dwarf2_per_cu_data::ref_addr_size)
10541 (dwarf2_per_cu_data::text_offset)
10542 (dwarf2_per_cu_data::addr_type): Now methods.
10543 (per_cu_header_read_in): Make per_cu "const".
10544 (dwarf2_version): Remove.
10545 (dwarf2_per_cu_data::int_type): Now a method.
10546 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10547 (set_die_type, read_array_type, read_subrange_index_type)
10548 (read_tag_string_type, read_subrange_type): Update.
10549 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10550 offset_size, ref_addr_size, text_offset, addr_type, version,
10551 objfile, int_type, addr_sized_int_type>: Declare methods.
10552
96c738c0
TT
105532020-02-08 Tom Tromey <tom@tromey.com>
10554
10555 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10556 Move earlier.
10557
8fdd972c
TT
105582020-02-08 Tom Tromey <tom@tromey.com>
10559
10560 * dwarf2/read.h (dwarf_line_debug): Declare.
10561 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10562 * dwarf2/read.c: Move line_header code to new files.
10563 (dwarf_line_debug): No longer static.
10564 * dwarf2/line-header.c: New file.
10565 * dwarf2/line-header.h: New file.
10566
03075812
TT
105672020-02-08 Tom Tromey <tom@tromey.com>
10568
10569 * dwarf2/read.c (struct line_header) <file_full_name,
10570 file_file_name>: Return unique_xmalloc_ptr.
10571 (line_header::file_file_name): Update.
10572 (line_header::file_full_name): Update.
10573 (dw2_get_file_names_reader): Update.
10574 (macro_start_file): Update.
10575
bb822404
TT
105762020-02-08 Tom Tromey <tom@tromey.com>
10577
10578 * dwarf2/read.c (struct line_header) <file_full_name,
10579 file_file_name>: Declare methods.
10580 (dw2_get_file_names_reader): Update.
10581 (file_file_name): Now a method.
10582 (file_full_name): Likewise.
10583 (macro_start_file): Update.
10584
009b64fc
TT
105852020-02-08 Tom Tromey <tom@tromey.com>
10586
10587 * dwarf2/read.c (dwarf_always_disassemble)
10588 (show_dwarf_always_disassemble): Move to loc.c.
10589 (_initialize_dwarf2_read): Move "always-disassemble" registration
10590 to loc.c.
10591 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10592 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10593 static.
10594 (show_dwarf_always_disassemble): Move from read.c.
10595 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10596
5895093f
TT
105972020-02-08 Tom Tromey <tom@tromey.com>
10598
10599 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10600 (create_quick_file_names_table): Return htab_up.
10601 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10602 Update.
10603 * dwarf2/read.h (struct dwarf2_per_objfile)
10604 <quick_file_names_table>: Now htab_up.
10605
b3b32279
TT
106062020-02-08 Tom Tromey <tom@tromey.com>
10607
10608 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10609
1d33d811
TT
106102020-02-08 Tom Tromey <tom@tromey.com>
10611
10612 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10613 Rewrite.
10614 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10615 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10616 (abbrev_table::abbrev_table): No longer inline.
10617 (ABBREV_HASH_SIZE): Remove.
10618 (abbrev_table::m_abbrevs): Now an htab_up.
10619
86de1d91
TT
106202020-02-08 Tom Tromey <tom@tromey.com>
10621
10622 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10623 (cutu_reader): Update.
10624 (build_type_psymtabs_1): Update.
10625 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10626 (abbrev_table::alloc_abbrev): Update.
10627 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10628 (abbrev_table::read): New static method, renamed from
10629 abbrev_table_read_table.
10630 (abbrev_table::alloc_abbrev)
10631 (abbrev_table::add_abbrev): Now private.
10632 (abbrev_table::abbrev_table): Now private.
10633 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10634
0335378b
TT
106352020-02-08 Tom Tromey <tom@tromey.com>
10636
10637 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10638 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10639 htab_up.
10640
48b490f2
TT
106412020-02-08 Tom Tromey <tom@tromey.com>
10642
10643 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10644 htab_up.
10645 (lookup_dwo_unit_in_dwp): Update.
10646 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10647 on obstack.
10648
bc68fb19
TT
106492020-02-08 Tom Tromey <tom@tromey.com>
10650
10651 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10652 obstack.
10653
d15acc42
TT
106542020-02-08 Tom Tromey <tom@tromey.com>
10655
10656 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10657 line_header_hash.
10658 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10659 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10660 Change type to htab_up.
10661
eaa5fa8b
TT
106622020-02-08 Tom Tromey <tom@tromey.com>
10663
10664 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10665 htab_up. Don't allocate on obstack.
10666 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10667 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10668 Change type to htab_up.
10669
b0b6a987
TT
106702020-02-08 Tom Tromey <tom@tromey.com>
10671
10672 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10673 Change type to htab_up.
10674 * dwarf2/read.c (create_signatured_type_table_from_index)
10675 (create_signatured_type_table_from_debug_names)
10676 (create_all_type_units, add_type_unit)
10677 (lookup_dwo_signatured_type, lookup_signatured_type)
10678 (process_skeletonless_type_unit): Update.
10679 (create_debug_type_hash_table, create_debug_types_hash_table):
10680 Change type of types_htab.
10681 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10682 htab_up. Don't allocate on obstack.
10683 (create_cus_hash_table): Change type of cus_htab parameter.
10684 (struct dwo_file) <cus, tus>: Now htab_up.
10685 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10686 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10687 (queue_and_load_all_dwo_tus): Update.
10688 * dwarf2/index-write.c (write_gdbindex): Update.
10689 (write_debug_names): Update.
10690
39856def
TT
106912020-02-08 Tom Tromey <tom@tromey.com>
10692
10693 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10694 dwarf2/read.c. Remove "next" member. Add constructor ntad
10695 destructor.
10696 (struct dwarf2_per_objfile) <queue>: New member.
10697 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10698 dwarf2/read.h.
10699 (dwarf2_queue, dwarf2_queue_tail): Remove.
10700 (class dwarf2_queue_guard): Add parameter to constructor. Use
10701 DISABLE_COPY_AND_ASSIGN.
10702 <m_per_objfile>: New member.
10703 <~dwarf2_queue_guard>: Rewrite.
10704 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10705 Update.
10706 (~dwarf2_queue_item): New.
10707
3e225074
TT
107082020-02-08 Tom Tromey <tom@tromey.com>
10709
10710 * dwarf2/read.c (struct die_info) <has_children>: New member.
10711 (dw2_get_file_names_reader): Remove has_children.
10712 (dw2_get_file_names): Update.
10713 (read_cutu_die_from_dwo): Remove has_children.
10714 (cutu_reader::init_tu_and_read_dwo_dies)
10715 (cutu_reader::cutu_reader): Update.
10716 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10717 Remove has_children.
10718 (build_type_psymtabs_1, process_skeletonless_type_unit)
10719 (load_partial_comp_unit, load_full_comp_unit): Update.
10720 (create_dwo_cu_reader): Remove has_children.
10721 (create_cus_hash_table, read_die_and_children): Update.
10722 (read_full_die_1,read_full_die): Remove has_children.
10723 (read_signatured_type): Update.
10724 (class cutu_reader) <has_children>: Remove.
10725
82ca8957
TT
107262020-02-08 Tom Tromey <tom@tromey.com>
10727
10728 * dwarf2/expr.c: Rename from dwarf2expr.c.
10729 * dwarf2/expr.h: Rename from dwarf2expr.h.
10730 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10731 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10732 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10733 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10734 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10735 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10736 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10737 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10738 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10739 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10740 * dwarf2/loc.c: Rename from dwarf2loc.c.
10741 * dwarf2/loc.h: Rename from dwarf2loc.h.
10742 * dwarf2/read.c: Rename from dwarf2read.c.
10743 * dwarf2/read.h: Rename from dwarf2read.h.
10744 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10745 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10746 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10747 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10748 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10749 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10750 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10751 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10752 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10753 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10754 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10755 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10756 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10757 Update.
10758 * Makefile.in (COMMON_SFILES): Update.
10759 (HFILES_NO_SRCDIR): Update.
10760
9e35d499
TT
107612020-02-08 Tom Tromey <tom@tromey.com>
10762
10763 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10764 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10765
1eba2311
TT
107662020-02-08 Tom Tromey <tom@tromey.com>
10767
10768 * dwarf2read.h (struct die_info): Don't declare.
10769
e41c2da2
TT
107702020-02-08 Tom Tromey <tom@tromey.com>
10771
10772 * dwarf2read.h (die_info_ptr): Remove typedef.
10773
4fc6c0d5
TT
107742020-02-08 Tom Tromey <tom@tromey.com>
10775
10776 * dwarf2read.c (read_call_site_scope)
10777 (handle_data_member_location, dwarf2_add_member_fn)
10778 (mark_common_block_symbol_computed, read_common_block)
10779 (attr_to_dynamic_prop, partial_die_info::read)
10780 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10781 (dwarf2_symbol_mark_computed, set_die_type): Update.
10782 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10783 method.
10784 (attr_form_is_block): Don't declare.
10785 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10786
cd6c91b4
TT
107872020-02-08 Tom Tromey <tom@tromey.com>
10788
10789 * dwarf2read.c (dwarf2_find_base_address, )
10790 (read_call_site_scope, rust_containing_type)
10791 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10792 (handle_data_member_location, dwarf2_add_member_fn)
10793 (get_alignment, read_structure_type, process_structure_scope)
10794 (mark_common_block_symbol_computed, read_common_block)
10795 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10796 (partial_die_info::read, read_attribute_value, new_symbol)
10797 (lookup_die_type, dwarf2_get_ref_die_offset)
10798 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10799 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10800 (dwarf2_symbol_mark_computed): Update.
10801 * dwarf2/attribute.h (struct attribute) <value_as_address,
10802 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10803 methods.
10804 (value_as_address, attr_form_is_section_offset)
10805 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10806 * dwarf2/attribute.c (attribute::value_as_address)
10807 (attribute::form_is_section_offset, attribute::form_is_constant)
10808 (attribute::form_is_ref): Now methods.
10809
162dce55
TT
108102020-02-08 Tom Tromey <tom@tromey.com>
10811
10812 * dwarf2read.c (struct attribute, DW_STRING)
10813 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10814 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10815 (attr_form_is_block, attr_form_is_section_offset)
10816 (attr_form_is_constant, attr_form_is_ref): Move.
10817 * dwarf2/attribute.h: New file.
10818 * dwarf2/attribute.c: New file, from dwarf2read.c.
10819 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10820
3054dd54
TT
108212020-02-08 Tom Tromey <tom@tromey.com>
10822
10823 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10824 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10825 Move.
10826 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10827 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10828 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10829 abbrev.c.
10830 * dwarf2/abbrev.h: New file.
10831 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10832 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10833
96b79293
TT
108342020-02-08 Tom Tromey <tom@tromey.com>
10835
10836 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10837 (dwarf2_section_size, dwarf2_get_section_info)
10838 (create_signatured_type_table_from_debug_names)
10839 (create_addrmap_from_aranges, read_debug_names_from_section)
10840 (get_gdb_index_contents_from_section, read_comp_unit_head)
10841 (error_check_comp_unit_head, read_abbrev_offset)
10842 (create_debug_type_hash_table, init_cu_die_reader)
10843 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10844 (read_comp_units_from_section, create_cus_hash_table)
10845 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10846 (create_dwp_v2_section, dwarf2_rnglists_process)
10847 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10848 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10849 (read_indirect_string_from_dwz, read_addr_index_1)
10850 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10851 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10852 (fill_in_loclist_baton): Update.
10853 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10854 get_containing_section, get_bfd_owner, get_bfd_section,
10855 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10856 (dwarf2_read_section, get_section_name, get_section_file_name)
10857 (get_containing_section, get_section_bfd_owner)
10858 (get_section_bfd_section, get_section_name, get_section_file_name)
10859 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10860 declare.
10861 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10862 (dwarf2_section_info::get_bfd_owner)
10863 (dwarf2_section_info::get_bfd_section)
10864 (dwarf2_section_info::get_name)
10865 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10866 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10867 (dwarf2_section_info::read): Now methods.
10868 * dwarf-index-write.c (class debug_names): Update.
10869
2c86cff9
TT
108702020-02-08 Tom Tromey <tom@tromey.com>
10871
10872 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10873 Move to dwarf2/section.h.
10874 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10875 (get_section_bfd_section, get_section_name)
10876 (get_section_file_name, get_section_id, get_section_flags)
10877 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10878 dwarf2/section.c.
10879 * dwarf2/section.h: New file.
10880 * dwarf2/section.c: New file, from dwarf2read.c.
10881 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10882
f4382c45
TT
108832020-02-08 Tom Tromey <tom@tromey.com>
10884
10885 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10886 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10887 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10888 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10889 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10890 * dwarf2/leb.h: New file, from dwarf2read.c.
10891 * dwarf2/leb.c: New file, from dwarf2read.c.
10892 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10893 Remove.
10894 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10895 (COMMON_SFILES): Add dwarf2/leb.c.
10896
01840b7a
JB
108972020-02-08 Joel Brobecker <brobecker@adacore.com>
10898
10899 GDB 9.1 released.
10900
dfcb27e4
IB
109012020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10902
10903 PR gdb/25190:
aac66a4c
SM
10904 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10905 * gdb/remote.c (remote_console_output): Update.
10906 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10907 (ui_file_puts): ...this.
10908 * gdb/ui-file.h (ui_file_puts): Add declaration.
10909 * gdb/utils.c (emit_style_escape): Update.
10910 (flush_wrap_buffer): Update.
10911 (fputs_maybe_filtered): Update.
10912 (fputs_unfiltered): Add function.
dfcb27e4 10913
faa17681
IB
109142020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10915
aac66a4c
SM
10916 * gdb/event-loop.c (gdb_wait_for_event): Update.
10917 * gdb/printcmd.c (printf_command): Update.
10918 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10919 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10920 (gdb_os_flush_stderr): Update.
10921 * gdb/remote.c (remote_console_output): Update.
10922 * gdb/ui-file.c (gdb_flush): Rename to...
10923 (ui_file_flush): ...this.
10924 (stderr_file::write): Update.
10925 (stderr_file::puts): Update.
10926 * gdb/ui-file.h (gdb_flush): Rename to...
10927 (ui_file_flush): ...this.
10928 * gdb/utils.c (gdb_flush): Add function.
10929 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10930
5abbbe1d
TT
109312020-02-07 Tom Tromey <tromey@adacore.com>
10932
10933 PR breakpoints/24915:
10934 * source.c (find_and_open_source): Do not check basenames_may_differ.
10935
919adfe8
TT
109362020-02-07 Tom Tromey <tom@tromey.com>
10937
10938 * README: Update gdbserver documentation.
10939 * gdbserver: Move to top level.
10940 * configure.tgt (build_gdbserver): Remove.
10941 * configure.ac: Remove --enable-gdbserver.
10942 * configure: Rebuild.
10943 * Makefile.in (distclean): Don't mention gdbserver.
10944
1d5d29e7
SV
109452020-02-06 Shahab Vahedi <shahab@synopsys.com>
10946
10947 * source-cache.c (source_cache::ensure): Surround
10948 get_plain_source_lines with a try/catch.
10949 (source_cache::get_line_charpos): Get rid of try/catch
10950 and only check for the return value of "ensure".
10951 * tui/tui-source.c (tui_source_window::set_contents):
10952 Simplify "nlines" calculation.
10953
6eb1129c
SV
109542020-02-06 Shahab Vahedi <shahab@synopsys.com>
10955
10956 * MAINTAINERS (Write After Approval): Add myself.
10957
c6a42d11
CB
109582020-02-05 Christian Biesinger <cbiesinger@google.com>
10959
10960 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10961 function call.
10962
c8ecdda6
CB
109632020-02-05 Christian Biesinger <cbiesinger@google.com>
10964
10965 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10966
f6480e70
MR
109672020-02-05 Maciej W. Rozycki <macro@wdc.com>
10968
10969 * nat/riscv-linux-tdesc.h: New file.
10970 * nat/riscv-linux-tdesc.c: New file, taking code from...
10971 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10972 ... here.
10973 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10974 NATDEPFILES.
10975
dcc9fbc6
AB
109762020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10977
10978 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10979 we don't set the fake simulator ptid to the null_ptid.
10980
719546c4
SM
109812020-02-03 Simon Marchi <simon.marchi@efficios.com>
10982
10983 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10984 * gdbthread.h (class thread_info) <resumed>: Likewise.
10985 * infrun.c (resume_1): Likewise.
10986 (proceed): Likewise.
10987 (infrun_thread_stop_requested): Likewise.
10988 (stop_all_threads): Likewise.
10989 (handle_inferior_event): Likewise.
10990 (restart_threads): Likewise.
10991 (finish_step_over): Likewise.
10992 (keep_going_stepped_thread): Likewise.
10993 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10994 (linux_handle_extended_wait): Likewise.
10995 * record-btrace.c (get_thread_current_frame_id): Likewise.
10996 * record-full.c (record_full_wait_1): Likewise.
10997 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10998 * target.c (target_resume): Likewise.
10999 * thread.c (set_running_thread): Likewise.
11000
e409c542
AKS
110012020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11002
11003 * f-valprint.c (f77_print_array_1): Changed datatype of index
11004 variable to LONGEST from int to enable it to contain bound
11005 values correctly.
11006
ee98c0da
MR
110072020-02-03 Maciej W. Rozycki <macro@wdc.com>
11008
11009 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11010 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11011 offsets according to FLEN determined.
11012 (riscv_linux_nat_target::read_description): Determine FLEN
11013 dynamically.
11014 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11015 according to FLEN determined.
11016 (riscv_linux_nat_target::store_registers): Likewise.
11017
aa66aac4
SV
110182020-02-01 Shahab Vahedi <shahab@synopsys.com>
11019
11020 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11021 when reg->group is empty and reggroup is not.
11022
fd9faca8
TT
110232020-01-31 Tom Tromey <tromey@adacore.com>
11024
11025 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11026 Call beneath target's mourn_inferior after unpushing.
11027
42330a68
AB
110282020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11029
11030 PR tui/9765
11031 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11032 have enough lines to fill the screen, still return the lowest
11033 address we found.
11034
7a27a45b
AB
110352020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11036
11037 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11038 '-', '<', and '>' commands.
11039
c47f70e2
PA
110402020-01-29 Pedro Alves <palves@redhat.com>
11041 Sergio Durigan Junior <sergiodj@redhat.com>
11042
11043 * infcmd.c (construct_inferior_arguments): Assert that
11044 'argc' is greater than 0.
11045
5133a315
LM
110462020-01-29 Luis Machado <luis.machado@linaro.org>
11047
11048 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11049 (BRK_INSN_MASK): Define to 0xd4200000.
11050 (aarch64_program_breakpoint_here_p): New function.
11051 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11052 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11053 breakpoint.c.
11054 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11055 breakpoint.h
11056 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11057 call gdbarch_program_breakpoint_here_p.
11058 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11059 default_program_breakpoint_here_p, changed return type to bool and
11060 simplified.
11061 * breakpoint.h (program_breakpoint_here): Moved prototype to
11062 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11063 return type to bool.
11064 * gdbarch.c: Regenerate.
11065 * gdbarch.h: Regenerate.
11066 * gdbarch.sh (program_breakpoint_here_p): New method.
11067 * infrun.c (handle_signal_stop): Call
11068 gdbarch_program_breakpoint_here_p.
11069
168f8c6b
TT
110702020-01-26 Tom Tromey <tom@tromey.com>
11071
11072 * ctfread.c (struct ctf_fp_info): Reindent.
11073 (_initialize_ctfread): Remove.
11074
128a391f
TT
110752020-01-26 Tom Tromey <tom@tromey.com>
11076
11077 * psymtab.c (partial_map_expand_apply)
11078 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
11079 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
11080 (psym_print_stats, psym_expand_symtabs_for_function)
11081 (psym_map_symbol_filenames, psym_map_matching_symbols)
11082 (psym_expand_symtabs_matching)
11083 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
11084 (maintenance_check_psymtabs): Use new methods.
11085 * psympriv.h (struct partial_symtab) <readin_p,
11086 get_compunit_symtab>: New methods.
11087 <readin, compunit_symtab>: Remove members.
11088 (struct standard_psymtab): New.
11089 (struct legacy_psymtab): Derive from standard_psymtab.
11090 * dwarf2read.h (struct dwarf2_psymtab): Derive from
11091 standard_psymtab.
11092 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
11093
0494dbec
TT
110942020-01-26 Tom Tromey <tom@tromey.com>
11095
11096 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
11097 read_dependencies. Add assert.
11098 * psymtab.c (partial_symtab::read_dependencies): New method.
11099 * psympriv.h (struct partial_symtab) <read_dependencies>: New
11100 method.
11101 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
11102 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
11103 read_dependencies.
11104 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
11105 Add assert.
11106
8566b89b
TT
111072020-01-26 Tom Tromey <tom@tromey.com>
11108
11109 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
11110 Call expand_psymtab.
11111 (xcoff_read_symtab): Call expand_psymtab.
11112 (xcoff_start_psymtab, xcoff_end_psymtab): Set
11113 legacy_expand_psymtab.
11114 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
11115 method.
11116 (struct legacy_psymtab) <expand_psymtab>: Implement.
11117 <legacy_expand_psymtab>: New member.
11118 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
11119 (parse_partial_symbols): Set legacy_expand_psymtab.
11120 (psymtab_to_symtab_1): Change argument order. Call
11121 expand_psymtab.
11122 (new_psymtab): Set legacy_expand_psymtab.
11123 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
11124 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
11125 expand_psymtab.
11126 (dwarf2_psymtab::expand_psymtab): Rename from
11127 psymtab_to_symtab_1. Call expand_psymtab.
11128 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
11129 (dbx_end_psymtab): Likewise.
11130 (dbx_psymtab_to_symtab_1): Change argument order. Call
11131 expand_psymtab.
11132 (dbx_read_symtab): Call expand_psymtab.
11133 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
11134 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
11135 (ctf_psymtab::read_symtab): Call expand_psymtab.
11136
077cbab2
TT
111372020-01-26 Tom Tromey <tom@tromey.com>
11138
11139 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
11140 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
11141 messages.
11142 * mdebugread.c (mdebug_read_symtab): Remove prints.
11143 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
11144 assert.
11145 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
11146
891813be
TT
111472020-01-26 Tom Tromey <tom@tromey.com>
11148
11149 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
11150 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
11151 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
11152 legacy_symtab.
11153 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
11154 * psymtab.c (psymtab_to_symtab): Call method.
11155 (dump_psymtab): Update.
11156 * psympriv.h (struct partial_symtab): Add virtual destructor.
11157 <read_symtab>: New method.
11158 (struct legacy_symtab): New.
11159 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
11160 (struct pst_map) <pst>: Now a legacy_psymtab.
11161 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11162 (new_psymtab): Use legacy_psymtab.
11163 * dwarf2read.h (struct dwarf2_psymtab): New.
11164 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11165 * dwarf2read.c (dwarf2_create_include_psymtab)
11166 (dwarf2_build_include_psymtabs, create_type_unit_group)
11167 (create_partial_symtab, process_psymtab_comp_unit_reader)
11168 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11169 (set_partial_user): Use dwarf2_psymtab.
11170 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11171 (psymtab_to_symtab_1, process_full_comp_unit)
11172 (process_full_type_unit, dwarf2_ranges_read)
11173 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11174 (dwarf_decode_lines): Use dwarf2_psymtab.
11175 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11176 (add_address_entry_worker, write_one_signatured_type)
11177 (recursively_count_psymbols, recursively_write_psymbols)
11178 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11179 (write_debug_names): Likewise.
11180 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11181 <pst>: Now a legacy_psymtab.
11182 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11183 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11184 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11185 * ctfread.c (struct ctf_psymtab): New.
11186 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11187 ctf_psymtab.
11188 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11189 (create_partial_symtab): Return a ctf_psymtab.
11190 (scan_partial_symbols): Update.
11191
c3693a1d
TT
111922020-01-26 Tom Tromey <tom@tromey.com>
11193
11194 * xcoffread.c (xcoff_start_psymtab): Use new.
11195 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11196 renamed from start_psymtab_common.
11197 * psympriv.h (struct partial_symtab): Add new constructor.
11198 (start_psymtab_common): Don't declare.
11199 * mdebugread.c (parse_partial_symbols): Use new.
11200 * dwarf2read.c (create_partial_symtab): Use new.
11201 * dbxread.c (start_psymtab): Use new.
11202 * ctfread.c (create_partial_symtab): Use new.
11203
32caafd0
TT
112042020-01-26 Tom Tromey <tom@tromey.com>
11205
11206 * xcoffread.c (xcoff_end_psymtab): Use new.
11207 * psymtab.c (start_psymtab_common): Use new.
11208 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11209 Update.
11210 * psympriv.h (struct partial_symtab): Add parameters to
11211 constructor. Don't inline.
11212 (allocate_psymtab): Don't declare.
11213 * mdebugread.c (new_psymtab): Use new.
11214 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11215 * dbxread.c (dbx_end_psymtab): Use new.
11216
abaa2f23
TT
112172020-01-26 Tom Tromey <tom@tromey.com>
11218
11219 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11220 allocate_psymtab. Update documentation.
11221 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11222 allocate_psymtab. Do not use new.
11223 (allocate_psymtab): Use new. Update.
11224
6d94535f
TT
112252020-01-26 Tom Tromey <tom@tromey.com>
11226
11227 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11228 * psymtab.c (psym_print_stats): Update.
11229 * psympriv.h (struct partial_symtab) <readin,
11230 psymtabs_addrmap_supported, anonymous>: Now bool.
11231 * mdebugread.c (psymtab_to_symtab_1): Update.
11232 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11233 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11234 (process_full_comp_unit, process_full_type_unit): Update.
11235 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11236 * ctfread.c (psymtab_to_symtab): Update.
11237
6f17252b
TT
112382020-01-26 Tom Tromey <tom@tromey.com>
11239
11240 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11241 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11242 * psymtab.c (psymtab_storage): Delete psymtabs.
11243 (psymtab_storage::allocate_psymtab): Use new.
11244 (psymtab_storage::discard_psymtab): Use delete.
11245 * psympriv.h (struct partial_symtab): Add constructor and
11246 initializers.
11247
f6f1cebc
TT
112482020-01-26 Tom Tromey <tom@tromey.com>
11249
11250 * machoread.c: Do not include psympriv.h.
11251
e47e48f6
PW
112522020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11253
11254 * NEWS: Mention the new option and the set/show commands.
11255
a2fedca9
PW
112562020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11257
11258 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11259 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11260 (validate_exec_file): New variables, enums, functions.
11261 (exec_file_locate_attach, print_section_info): Style the filenames.
11262 (_initialize_exec): Install show_exec_file_mismatch_command and
11263 set_exec_file_mismatch_command.
11264 * gdbcore.h (validate_exec_file): Declare.
11265 * infcmd.c (attach_command): Call validate_exec_file.
11266 * remote.c ( remote_target::remote_add_inferior): Likewise.
11267
7ffa82e1
AB
112682020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11269
11270 * frame.c (find_frame_sal): Move call to get_next_frame into more
11271 inner scope.
11272 * inline-frame.c (inilne_state) <inline_state>: Update argument
11273 types.
11274 (inilne_state) <skipped_symbol>: Rename to...
11275 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11276 (skip_inline_frames): Build vector of skipped symbols and use this
11277 to reate the inline_state.
11278 (inline_skipped_symbol): Add a comment and some assertions, fetch
11279 skipped symbol from the list.
11280
3d92a3e3
AB
112812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11282
11283 * buildsym.c (lte_is_less_than): Delete.
11284 (buildsym_compunit::end_symtab_with_blockvector): Create local
11285 lambda function to sort line table entries, and use
11286 std::stable_sort instead of std::sort.
11287 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11288 markers when looking for a previous line.
11289
94a72be7
AB
112902020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11291
11292 * dwarf2read.c (lnp_state_machine::record_line): Include
11293 end_sequence parameter in debug print out. Record the line if we
11294 are at an end_sequence marker even if it's not the start of a
11295 statement.
11296 * symmisc.c (maintenance_print_one_line_table): Print end of
11297 sequence markers with 'END' not '0'.
11298
53af73bf
PA
112992020-01-24 Pedro Alves <palves@redhat.com>
11300
11301 PR gdb/25410
11302 * thread.c (scoped_restore_current_thread::restore): Use
11303 switch_to_inferior_no_thread.
11304 * exec.c: Include "progspace-and-thread.h".
11305 (add_target_sections, remove_target_sections):
11306 scoped_restore_current_pspace_and_thread instead of
11307 scoped_restore_current_thread.
11308 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11309 and aspace to the inferior before calling clone_program_space.
11310 Remove stale comment.
11311
3050c6f4
CB
113122020-01-24 Christian Biesinger <cbiesinger@google.com>
11313
11314 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11315 (arm_netbsd_nat_target::fetch_registers): ...this.
11316 (arm_nbsd_nat_target::store_registers): Rename to...
11317 (arm_netbsd_nat_target::store_registers): ...this.
11318
73685c7e
CB
113192020-01-24 Christian Biesinger <cbiesinger@google.com>
11320
11321 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11322 register_t.
11323
89203d40
CB
113242020-01-24 Christian Biesinger <cbiesinger@google.com>
11325
11326 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11327 Update comment.
11328 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11329 Likewise.
11330 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11331 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11332 the correct replacement (iterate_over_regset_sections).
11333 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11334 Update comment.
11335
1ba1ac88
AB
113362020-01-24 Graham Markall <graham.markall@embecosm.com>
11337
11338 PR gdb/23718
11339 * gdb/python/python.c (execute_gdb_command): Call
11340 async_enable_stdin in catch block.
11341
f3364a6d
AB
113422020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11343
11344 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11345 SWITCH_THRU_ALL_UIS.
11346
733d0a67
AB
113472020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11348
11349 PR tui/9765
11350 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11351 comment, add extra parameter, and update to store previous symbol
11352 when appropriate.
11353 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11354 add extra parameter.
11355 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11356 remove unneeded parameter, add try/catch around gdb_print_insn,
11357 rewrite to add items to asm_lines vector.
11358 (tui_find_backward_disassembly_start_address): New function.
11359 (tui_find_disassembly_address): Updated throughout.
11360 (tui_disasm_window::set_contents): Update for changes to
11361 tui_disassemble.
11362 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11363 number of lines to scroll.
11364
b3b3bada
SM
113652020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11366
11367 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11368 (SECT_OFF_DATA): Likewise.
11369 (SECT_OFF_RODATA): Likewise.
11370 (SECT_OFF_TEXT): Likewise.
11371 (SECT_OFF_BSS): Likewise.
11372 (struct objfile) <text_section_offset, data_section_offset>: New
11373 methods.
11374 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11375 objfile::text_section_offset.
11376 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11377 * coffread.c (coff_symtab_read): Likewise.
11378 (enter_linenos): Likewise.
11379 (process_coff_symbol): Likewise.
11380 * ctfread.c (get_objfile_text_range): Likewise.
11381 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11382 Use objfile::data_section_offset.
11383 * dwarf2-frame.c (execute_cfa_program): Use
11384 objfile::text_section_offset.
11385 (dwarf2_frame_find_fde): Likewise.
11386 * dwarf2read.c (create_addrmap_from_index): Likewise.
11387 (create_addrmap_from_aranges): Likewise.
11388 (dw2_find_pc_sect_compunit_symtab): Likewise.
11389 (process_psymtab_comp_unit_reader): Likewise.
11390 (add_partial_symbol): Likewise.
11391 (add_partial_subprogram): Likewise.
11392 (process_full_comp_unit): Likewise.
11393 (read_file_scope): Likewise.
11394 (read_func_scope): Likewise.
11395 (read_lexical_block_scope): Likewise.
11396 (read_call_site_scope): Likewise.
11397 (dwarf2_rnglists_process): Likewise.
11398 (dwarf2_ranges_process): Likewise.
11399 (dwarf2_ranges_read): Likewise.
11400 (dwarf_decode_lines_1): Likewise.
11401 (new_symbol): Likewise.
11402 (dwarf2_fetch_die_loc_sect_off): Likewise.
11403 (dwarf2_per_cu_text_offset): Likewise.
11404 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11405 * hppa-tdep.c (read_unwind_info): Likewise.
11406 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11407 * psympriv.h (struct partial_symtab): Likewise.
11408 * psymtab.c (find_pc_sect_psymtab): Likewise.
11409 * solib-svr4.c (enable_break): Likewise.
11410 * stap-probe.c (relocate_address): Use
11411 objfile::data_section_offset.
11412 * xcoffread.c (enter_line_range): Use
11413 objfile::text_section_offset.
11414 (read_xcoff_symtab): Likewise.
11415
ab53f382
SM
114162020-01-23 Simon Marchi <simon.marchi@efficios.com>
11417
11418 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11419 declaration to narrower scopes.
11420
e7eee665
SM
114212020-01-23 Simon Marchi <simon.marchi@efficios.com>
11422
11423 * darwin-nat.h (struct darwin_exception_msg, enum
11424 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11425 Move up.
11426 (class darwin_nat_target) <wait_1, check_new_threads,
11427 decode_exception_message, decode_message, stop_inferior,
11428 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11429 * darwin-nat.c (darwin_check_new_threads): Rename to...
11430 (darwin_nat_target::check_new_threads): ... this.
11431 (darwin_suspend_inferior_it): Remove.
11432 (darwin_decode_exception_message): Rename to...
11433 (darwin_nat_target::decode_exception_message): ... this.
11434 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11435 (darwin_decode_message): Rename to...
11436 (darwin_nat_target::decode_message): ... this.
11437 (cancel_breakpoint): Rename to...
11438 (darwin_nat_target::cancel_breakpoint): ... this.
11439 (darwin_wait): Rename to...
11440 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11441 instead of iterate_over_inferiors.
11442 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11443 (darwin_stop_inferior): Rename to...
11444 (darwin_nat_target::stop_inferior): ... this.
11445 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11446 (darwin_init_thread_list): Rename to...
11447 (darwin_nat_target::init_thread_list): ... this.
11448 (darwin_ptrace_him): Rename to...
11449 (darwin_nat_target::ptrace_him): ... this.
11450 (darwin_nat_target::create_inferior): Pass lambda function to
11451 fork_inferior.
11452 (darwin_nat_target::detach): Call stop_inferior instead of
11453 darwin_stop_inferior.
11454 * fork-inferior.h (fork_inferior): Change init_trace_fun
11455 parameter to gdb::function_view.
11456 * fork-inferior.c (fork_inferior): Likewise.
11457
c162ed3e
HD
114582020-01-23 Hannes Domani <ssbssa@yahoo.de>
11459
11460 * i386-cygwin-tdep.c (core_process_module_section): Update.
11461 * windows-nat.c (struct lm_info_windows): Add text_offset.
11462 (windows_xfer_shared_libraries): Update.
11463 * windows-tdep.c (windows_xfer_shared_library):
11464 Add text_offset_cached argument.
11465 * windows-tdep.h (windows_xfer_shared_library): Update.
11466
a1237872
SM
114672020-01-21 Simon Marchi <simon.marchi@efficios.com>
11468
11469 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11470
b3ee6dd9
SM
114712020-01-21 Simon Marchi <simon.marchi@efficios.com>
11472
11473 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11474 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11475 replace with range-based for.
11476 (gdbsim_interrupt_inferior): Remove.
11477 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11478 with a range-based for. Inline code from
11479 gdbsim_interrupt_inferior.
11480
f9fac3c8
SM
114812020-01-21 Simon Marchi <simon.marchi@efficios.com>
11482
11483 * infrun.c (proceed): Fix indentation.
11484
f6474de9
TT
114852020-01-21 Tom Tromey <tromey@adacore.com>
11486
11487 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11488 * python/python.c (python_extension_ops): Update.
11489 (gdbpy_colorize): New function.
11490 * python/lib/gdb/__init__.py (colorize): New function.
11491 * extension.h (ext_lang_colorize): Declare.
11492 * extension.c (ext_lang_colorize): New function.
11493 * extension-priv.h (struct extension_language_ops) <colorize>: New
11494 member.
11495 * cli/cli-style.c (_initialize_cli_style): Update help text.
11496
f0c702d4
LM
114972020-01-21 Luis Machado <luis.machado@linaro.org>
11498
11499 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11500 <cond>: Change type to bool.
11501 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11502 (aarch64_displaced_step_cb): Likewise.
11503 (aarch64_displaced_step_tb): Likewise.
11504
1ab139e5
LM
115052020-01-21 Luis Machado <luis.machado@linaro.org>
11506
11507 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11508 output.
11509
0c271889
LM
115102020-01-21 Luis Machado <luis.machado@linaro.org>
11511
11512 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11513 <pc_adjust>: Adjust the documentation.
11514 (aarch64_displaced_step_fixup): Check if PC really moved before
11515 adjusting it.
11516
4d89c1c7
TT
115172020-01-19 Tom Tromey <tom@tromey.com>
11518
11519 * disasm.c (~gdb_disassembler): New destructor.
11520 (gdb_buffered_insn_length): Call disassemble_free_target.
11521 * disasm.h (class gdb_disassembler): Declare destructor. Use
11522 DISABLE_COPY_AND_ASSIGN.
11523
c0ab21c2
TT
115242020-01-19 Tom Tromey <tom@tromey.com>
11525
11526 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11527 (die_reader_func_ftype): Remove.
11528 (cutu_reader): New class.
11529 (dw2_get_file_names_reader): Remove "data" parameter.
11530 (dw2_get_file_names): Use cutu_reader.
11531 (create_debug_type_hash_table): Update.
11532 (read_cutu_die_from_dwo): Update comment.
11533 (lookup_dwo_unit): Add dwo_name parameter.
11534 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11535 die_reader_func_ftype and data parameters.
11536 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11537 Remove die_reader_func_ftype and data parameters.
11538 (~cutu_reader): New; from init_cutu_and_read_dies.
11539 (cutu_reader::cutu_reader): Rename from
11540 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11541 and data parameters.
11542 (init_cutu_and_read_dies_simple): Remove.
11543 (struct process_psymtab_comp_unit_data): Remove.
11544 (process_psymtab_comp_unit_reader): Remove data parameter; add
11545 want_partial_unit and pretend_language parameters.
11546 (process_psymtab_comp_unit): Use cutu_reader.
11547 (build_type_psymtabs_reader): Remove data parameter.
11548 (build_type_psymtabs_1): Use cutu_reader.
11549 (process_skeletonless_type_unit): Likewise.
11550 (load_partial_comp_unit_reader): Remove.
11551 (load_partial_comp_unit): Use cutu_reader.
11552 (load_full_comp_unit_reader): Remove.
11553 (load_full_comp_unit): Use cutu_reader.
11554 (struct create_dwo_cu_data): Remove.
11555 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11556 dwo_unit parameters.
11557 (create_cus_hash_table): Use cutu_reader.
11558 (struct dwarf2_read_addr_index_data): Remove.
11559 (dwarf2_read_addr_index_reader): Remove.
11560 (dwarf2_read_addr_index): Use cutu_reader.
11561 (read_signatured_type_reader): Remove.
11562 (read_signatured_type): Use cutu_reader.
11563
45bbae5c
TT
115642020-01-19 Tom Tromey <tom@tromey.com>
11565
11566 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11567 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11568 (tui_wrefresh): Declare.
11569 * tui/tui-wingeneral.c (suppress_output): New global.
11570 (tui_suppress_output, ~tui_suppress_output): New constructor and
11571 destructor.
11572 (tui_wrefresh): New function.
11573 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11574 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11575 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11576 method.
11577 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11578 tui_wrefresh.
11579 (tui_data_window::no_refresh): New method.
11580 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11581 (tui_reg_command): Use tui_suppress_output
11582 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11583 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11584 method.
11585 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11586
4f13c1c0
TT
115872020-01-19 Tom Tromey <tom@tromey.com>
11588
11589 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11590 Handle case where symtab is null.
11591
fa47e446
SM
115922020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11593
11594 * linux-fork.c (one_fork_p): Simplify.
11595
26f42329
SM
115962020-01-17 Simon Marchi <simon.marchi@efficios.com>
11597
11598 * top.c (struct qt_args): Remove.
11599 (kill_or_detach): Change return type to void, replace `void *`
11600 parameter with a proper one.
11601 (print_inferior_quit_action): Likewise.
11602 (quit_confirm): Use range-based for loop to iterate over inferiors.
11603 (quit_force): Likewise.
11604
a9ac81b1
SM
116052020-01-17 Simon Marchi <simon.marchi@efficios.com>
11606
11607 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11608 `void *` parameter with proper parameters.
11609 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11610 (print_one_inferior): Change return type to void, replace `void *`
11611 parameter with proper parameters.
11612 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11613 inferiors.
11614 (get_other_inferior): Remove.
11615 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11616 inferiors.
11617
788eca49
SM
116182020-01-17 Simon Marchi <simon.marchi@efficios.com>
11619
11620 * mi/mi-interp.c (report_initial_inferior): Remove.
11621 (mi_interp::init): Use range-based for to iterate over inferiors.
11622
d9bc85b6
SM
116232020-01-17 Simon Marchi <simon.marchi@efficios.com>
11624
11625 * python/py-inferior.c (build_inferior_list): Remove.
11626 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11627
40c94099
CB
116282020-01-16 Christian Biesinger <cbiesinger@google.com>
11629
11630 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11631 (btrace_stitch_trace): Likewise.
11632 * charset.c (intermediate_encoding): Likewise (vaild).
11633 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11634 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11635 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11636
e0cdfe3c
HD
116372020-01-16 Hannes Domani <ssbssa@yahoo.de>
11638
11639 * windows-tdep.c (windows_get_tlb_type):
11640 Add rtl_user_process_parameters type.
11641
790f1718 116422020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11643 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11644
11645 PR build/24805
11646 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11647 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11648 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11649 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11650 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11651 (ps_plog): Redeclare exported functions with default visibility.
11652
3112ed97
NA
116532020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11654
11655 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11656 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11657
8dc3273e
SM
116582020-01-15 Simon Marchi <simon.marchi@efficios.com>
11659
11660 * infcmd.c (post_create_inferior): Use get_thread_regcache
11661 instead of get_current_regcache.
11662
ff47f4f0
TT
116632020-01-14 Tom Tromey <tom@tromey.com>
11664
11665 PR symtab/12535:
11666 * python/python.c (gdbpy_decode_line): Treat empty string the same
11667 as no argument.
11668
975f45b7
TT
116692020-01-14 Tom Tromey <tom@tromey.com>
11670
11671 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11672
25e57356
TT
116732020-01-14 Tom Tromey <tom@tromey.com>
11674
11675 * nat/linux-btrace.c: Don't include <config.h>.
11676 * nat/linux-ptrace.c: Don't include <config.h>.
11677 * nat/x86-linux-dregs.c: Don't include <config.h>.
11678
05ea2a05
TT
116792020-01-14 Tom Tromey <tom@tromey.com>
11680
11681 * configure: Rebuild.
11682 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11683
01027315
TT
116842020-01-14 Tom Tromey <tom@tromey.com>
11685
11686 * nat/x86-linux-dregs.c: Include configh.h.
11687 * nat/linux-ptrace.c: Include configh.h.
11688 * nat/linux-btrace.c: Include configh.h.
11689 * defs.h: Include config.h, bfd.h.
11690 * configure.ac: Don't source common.host.
11691 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11692 * configure: Rebuild.
11693 * acinclude.m4: Update path.
11694 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11695 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11696 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11697 (CLIBS): Add LIBSUPPORT.
11698 (CDEPS): Likewise.
11699 (COMMON_SFILES): Remove gdbsupport files.
11700 (HFILES_NO_SRCDIR): Likewise.
11701 (stamp-version): Update path to create-version.sh.
11702 (ALLDEPFILES): Remove gdbsupport files.
11703
b2ceabe8
TT
117042020-01-14 Tom Tromey <tom@tromey.com>
11705
11706 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11707 USE_WIN32API when needed.
11708 * configure.ac (USE_WIN32API): Don't define.
11709 (WIN32LIBS): Use WIN32APILIBS.
11710 * configure: Rebuild.
11711
25c51f71
TT
117122020-01-14 Tom Tromey <tom@tromey.com>
11713
11714 * configure: Rebuild.
11715 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11716
717c684d
BE
117172020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11718
11719 * skip.c (skip_function_command): Make skip w/o arguments use the
11720 name of the inlined function if pc is inside any inlined function.
11721
7da6a5b9
LM
117222020-01-14 Luis Machado <luis.machado@linaro.org>
11723
11724 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11725 * infrun.c (resume_1): Likewise.
11726 (handle_inferior_event): Remove stale comment.
11727 * linux-nat.c (linux_nat_target::resume): Update comments.
11728 (save_stop_reason): Likewise.
11729 (linux_nat_filter_event): Likewise.
11730 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11731
44e4c775
AB
117322020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11733
11734 * elfread.c (record_minimal_symbol): Set section index to 0 for
11735 non-allocatable sections.
11736
18a8505e
AT
11737
117382020-01-13 Ali Tamur <tamur@google.com>
11739
11740 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11741 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11742 to gdb::optional. Update comments.
11743 (dwo_file): Update comments.
11744 (read_attribute): Update API to take an additional out parameter,
11745 need_reprocess. This is used to mark attributes that need other
11746 attributes (e.g. str_offsets_base) for correct computation which may not
11747 have been read yet.
11748 (read_attribute_reprocess): New function declaration.
11749 (read_addr_index): Likewise.
11750 (read_dwo_str_index): Likewise.
11751 (read_stub_str_index): Likewise.
11752 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11753 (lookup_addr_base): New function definition.
11754 (lookup_ranges_base): Likewise.
11755 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11756 lookup_ranges_base.
11757 (init_cutu_and_read_dies): Update comments.
11758 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11759 unit. This is used to inherit parent's str_offsets_base and addr_base.
11760 Update comments.
11761 (init_cutu_and_read_dies_simple): Reflect API changes.
11762 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11763 (create_cus_hash_table): Change API to take parent compile unit.
11764 Reflect API changes.
11765 (open_and_init_dwo_file): Reflect API changes.
11766 (dwarf2_get_pc_bounds): Update comments.
11767 (dwarf2_record_block_ranges): Likewise.
11768 (read_full_die_1): Change implementation to reprocess attributes that
11769 need str_offsets_base and addr_base.
11770 (partial_die_info::read): Likewise.
11771 (read_attribute_reprocess): New function definition.
11772 (read_attribute_value): Change API to take an additional out parameter,
11773 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11774 when a non-dwo compile unit has index based attributes.
11775 (read_attribute): Reflect API changes.
11776 (read_addr_index_1): Reflect API changes. Update comments.
11777 (dwarf2_read_addr_index_data): Reflect API changes.
11778 (dwarf2_read_addr_index): Likewise.
11779 (read_str_index): Change API and implementation. This becomes a helper
11780 to be used by the new string index related methods. Update error
11781 message and comments.
11782 (read_dwo_str_index): New function definition.
11783 (read_stub_str_index): Likewise.
11784 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11785 * symfile.h (dwarf2_debug_sections): Likewise.
11786 * xcoffread.c (dwarf2_debug_sections): Likewise.
11787
0cac9354
SM
117882020-01-13 Simon Marchi <simon.marchi@efficios.com>
11789
11790 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11791 core_reg_sect type to gdb_byte *.
11792 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11793 * cris-tdep.c (fetch_core_registers): Likewise.
11794 * corelow.c (core_target::get_core_register_section): Change
11795 type of `contents` to gdb::byte_vector.
11796
9a6d629c
AB
117972020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11798
11799 * tui/tui-wingeneral.c (box_win): Position the title in the center
11800 of the border.
11801
d8b2f9e3
SM
118022020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11803
11804 * corelow.c (core_target::get_core_register_section): Use
11805 std::vector instead of alloca.
11806
bb564c58
SM
118072020-01-13 Simon Marchi <simon.marchi@efficios.com>
11808
11809 * warning.m4: Add -Wmissing-declarations to build_warnings.
11810 * configure: Re-generate.
11811
6b366111
SM
118122020-01-13 Simon Marchi <simon.marchi@efficios.com>
11813
11814 * python/python.c (init__gdb_module): Add declaration.
11815
6c265988
SM
118162020-01-13 Simon Marchi <simon.marchi@efficios.com>
11817
11818 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11819 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11820 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11821 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11822 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11823 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11824 * ada-exp.y (_initialize_ada_exp): Add declaration.
11825 * ada-lang.c (_initialize_ada_language): Add declaration.
11826 * ada-tasks.c (_initialize_tasks): Add declaration.
11827 * agent.c (_initialize_agent): Add declaration.
11828 * aix-thread.c (_initialize_aix_thread): Add declaration.
11829 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11830 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11831 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11832 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11833 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11834 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11835 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11836 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11837 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11838 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11839 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11840 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11841 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11842 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11843 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11844 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11845 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11846 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11847 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11848 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11849 * annotate.c (_initialize_annotate): Add declaration.
11850 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11851 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11852 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11853 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11854 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11855 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11856 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11857 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11858 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11859 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11860 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11861 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11862 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11863 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11864 * auto-load.c (_initialize_auto_load): Add declaration.
11865 * auxv.c (_initialize_auxv): Add declaration.
11866 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11867 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11868 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11869 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11870 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11871 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11872 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11873 * breakpoint.c (_initialize_breakpoint): Add declaration.
11874 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11875 * btrace.c (_initialize_btrace): Add declaration.
11876 * charset.c (_initialize_charset): Add declaration.
11877 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11878 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11879 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11880 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11881 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11882 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11883 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11884 * coffread.c (_initialize_coffread): Add declaration.
11885 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11886 * compile/compile.c (_initialize_compile): Add declaration.
11887 * complaints.c (_initialize_complaints): Add declaration.
11888 * completer.c (_initialize_completer): Add declaration.
11889 * copying.c (_initialize_copying): Add declaration.
11890 * corefile.c (_initialize_core): Add declaration.
11891 * corelow.c (_initialize_corelow): Add declaration.
11892 * cp-abi.c (_initialize_cp_abi): Add declaration.
11893 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11894 * cp-support.c (_initialize_cp_support): Add declaration.
11895 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11896 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11897 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11898 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11899 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11900 * ctfread.c (_initialize_ctfread): Add declaration.
11901 * d-lang.c (_initialize_d_language): Add declaration.
11902 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11903 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11904 * dbxread.c (_initialize_dbxread): Add declaration.
11905 * dcache.c (_initialize_dcache): Add declaration.
11906 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11907 * disasm.c (_initialize_disasm): Add declaration.
11908 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11909 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11910 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11911 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11912 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11913 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11914 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11915 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11916 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11917 * elfread.c (_initialize_elfread): Add declaration.
11918 * exec.c (_initialize_exec): Add declaration.
11919 * extension.c (_initialize_extension): Add declaration.
11920 * f-lang.c (_initialize_f_language): Add declaration.
11921 * f-valprint.c (_initialize_f_valprint): Add declaration.
11922 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11923 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11924 * filesystem.c (_initialize_filesystem): Add declaration.
11925 * findcmd.c (_initialize_mem_search): Add declaration.
11926 * findvar.c (_initialize_findvar): Add declaration.
11927 * fork-child.c (_initialize_fork_child): Add declaration.
11928 * frame-base.c (_initialize_frame_base): Add declaration.
11929 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11930 * frame.c (_initialize_frame): Add declaration.
11931 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11932 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11933 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11934 * gcore.c (_initialize_gcore): Add declaration.
11935 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11936 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11937 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11938 * gdbarch.c (_initialize_gdbarch): Add declaration.
11939 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11940 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11941 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11942 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11943 * go-lang.c (_initialize_go_language): Add declaration.
11944 * go32-nat.c (_initialize_go32_nat): Add declaration.
11945 * guile/guile.c (_initialize_guile): Add declaration.
11946 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11947 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11948 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11949 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11950 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11951 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11952 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11953 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11954 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11955 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11956 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11957 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11958 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11959 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11960 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11961 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11962 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11963 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11964 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11965 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11966 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11967 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11968 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11969 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11970 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11971 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11972 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11973 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11974 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11975 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11976 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11977 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11978 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11979 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11980 * infcall.c (_initialize_infcall): Add declaration.
11981 * infcmd.c (_initialize_infcmd): Add declaration.
11982 * inflow.c (_initialize_inflow): Add declaration.
11983 * infrun.c (_initialize_infrun): Add declaration.
11984 * interps.c (_initialize_interpreter): Add declaration.
11985 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11986 * jit.c (_initialize_jit): Add declaration.
11987 * language.c (_initialize_language): Add declaration.
11988 * linux-fork.c (_initialize_linux_fork): Add declaration.
11989 * linux-nat.c (_initialize_linux_nat): Add declaration.
11990 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11991 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11992 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11993 * m2-lang.c (_initialize_m2_language): Add declaration.
11994 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11995 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11996 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11997 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11998 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11999 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12000 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12001 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12002 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12003 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12004 * machoread.c (_initialize_machoread): Add declaration.
12005 * macrocmd.c (_initialize_macrocmd): Add declaration.
12006 * macroscope.c (_initialize_macroscope): Add declaration.
12007 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12008 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12009 * maint.c (_initialize_maint_cmds): Add declaration.
12010 * mdebugread.c (_initialize_mdebugread): Add declaration.
12011 * memattr.c (_initialize_mem): Add declaration.
12012 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12013 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12014 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12015 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12016 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12017 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12018 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12019 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12020 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12021 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12022 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12023 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12024 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12025 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12026 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12027 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12028 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12029 * mipsread.c (_initialize_mipsread): Add declaration.
12030 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12031 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12032 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12033 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12034 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12035 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12036 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12037 * nto-procfs.c (_initialize_procfs): Add declaration.
12038 * objc-lang.c (_initialize_objc_language): Add declaration.
12039 * observable.c (_initialize_observer): Add declaration.
12040 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12041 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12042 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12043 * osabi.c (_initialize_gdb_osabi): Add declaration.
12044 * osdata.c (_initialize_osdata): Add declaration.
12045 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12046 * parse.c (_initialize_parse): Add declaration.
12047 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12048 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12049 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12050 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12051 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12052 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12053 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12054 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12055 * printcmd.c (_initialize_printcmd): Add declaration.
12056 * probe.c (_initialize_probe): Add declaration.
12057 * proc-api.c (_initialize_proc_api): Add declaration.
12058 * proc-events.c (_initialize_proc_events): Add declaration.
12059 * proc-service.c (_initialize_proc_service): Add declaration.
12060 * procfs.c (_initialize_procfs): Add declaration.
12061 * producer.c (_initialize_producer): Add declaration.
12062 * psymtab.c (_initialize_psymtab): Add declaration.
12063 * python/python.c (_initialize_python): Add declaration.
12064 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12065 * record-btrace.c (_initialize_record_btrace): Add declaration.
12066 * record-full.c (_initialize_record_full): Add declaration.
12067 * record.c (_initialize_record): Add declaration.
12068 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12069 * regcache.c (_initialize_regcache): Add declaration.
12070 * reggroups.c (_initialize_reggroup): Add declaration.
12071 * remote-notif.c (_initialize_notif): Add declaration.
12072 * remote-sim.c (_initialize_remote_sim): Add declaration.
12073 * remote.c (_initialize_remote): Add declaration.
12074 * reverse.c (_initialize_reverse): Add declaration.
12075 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12076 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12077 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12078 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
12079 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
12080 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
12081 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
12082 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
12083 Add declaration.
12084 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
12085 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
12086 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
12087 * rust-exp.y (_initialize_rust_exp): Add declaration.
12088 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
12089 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
12090 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
12091 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
12092 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
12093 * score-tdep.c (_initialize_score_tdep): Add declaration.
12094 * ser-go32.c (_initialize_ser_dos): Add declaration.
12095 * ser-mingw.c (_initialize_ser_windows): Add declaration.
12096 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
12097 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
12098 * ser-uds.c (_initialize_ser_socket): Add declaration.
12099 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
12100 * serial.c (_initialize_serial): Add declaration.
12101 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
12102 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
12103 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
12104 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
12105 * skip.c (_initialize_step_skip): Add declaration.
12106 * sol-thread.c (_initialize_sol_thread): Add declaration.
12107 * solib-aix.c (_initialize_solib_aix): Add declaration.
12108 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
12109 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
12110 * solib-frv.c (_initialize_frv_solib): Add declaration.
12111 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
12112 * solib-target.c (_initialize_solib_target): Add declaration.
12113 * solib.c (_initialize_solib): Add declaration.
12114 * source-cache.c (_initialize_source_cache): Add declaration.
12115 * source.c (_initialize_source): Add declaration.
12116 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
12117 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
12118 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
12119 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
12120 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
12121 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
12122 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
12123 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
12124 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
12125 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
12126 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
12127 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
12128 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
12129 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
12130 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
12131 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
12132 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
12133 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
12134 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
12135 * stabsread.c (_initialize_stabsread): Add declaration.
12136 * stack.c (_initialize_stack): Add declaration.
12137 * stap-probe.c (_initialize_stap_probe): Add declaration.
12138 * std-regs.c (_initialize_frame_reg): Add declaration.
12139 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
12140 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
12141 * symfile.c (_initialize_symfile): Add declaration.
12142 * symmisc.c (_initialize_symmisc): Add declaration.
12143 * symtab.c (_initialize_symtab): Add declaration.
12144 * target.c (_initialize_target): Add declaration.
12145 * target-connection.c (_initialize_target_connection): Add
12146 declaration.
12147 * target-dcache.c (_initialize_target_dcache): Add declaration.
12148 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
12149 * thread.c (_initialize_thread): Add declaration.
12150 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
12151 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
12152 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
12153 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
12154 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
12155 * tracectf.c (_initialize_ctf): Add declaration.
12156 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
12157 * tracefile.c (_initialize_tracefile): Add declaration.
12158 * tracepoint.c (_initialize_tracepoint): Add declaration.
12159 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
12160 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
12161 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12162 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12163 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12164 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12165 * tui/tui.c (_initialize_tui): Add declaration.
12166 * typeprint.c (_initialize_typeprint): Add declaration.
12167 * ui-style.c (_initialize_ui_style): Add declaration.
12168 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12169 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12170 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12171 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12172 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12173 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12174 * unittests/filtered_iterator-selftests.c
12175 (_initialize_filtered_iterator_selftests): Add declaration.
12176 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12177 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12178 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12179 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12180 * unittests/main-thread-selftests.c
12181 (_initialize_main_thread_selftests): Add declaration.
12182 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12183 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12184 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12185 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12186 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12187 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12188 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12189 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12190 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12191 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12192 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12193 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12194 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12195 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12196 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12197 declaration.
12198 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12199 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12200 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12201 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12202 * user-regs.c (_initialize_user_regs): Add declaration.
12203 * utils.c (_initialize_utils): Add declaration.
12204 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12205 * valops.c (_initialize_valops): Add declaration.
12206 * valprint.c (_initialize_valprint): Add declaration.
12207 * value.c (_initialize_values): Add declaration.
12208 * varobj.c (_initialize_varobj): Add declaration.
12209 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12210 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12211 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12212 * windows-nat.c (_initialize_windows_nat): Add declaration.
12213 (_initialize_check_for_gdb_ini): Add declaration.
12214 (_initialize_loadable): Add declaration.
12215 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12216 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12217 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12218 * xcoffread.c (_initialize_xcoffread): Add declaration.
12219 * xml-support.c (_initialize_xml_support): Add declaration.
12220 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12221 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12222 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12223 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12224
e2de1eec
SM
122252020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12226
12227 * regformats/regdat.sh: Generate declaration for init function.
12228
e0037b4c
SM
122292020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12230
12231 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12232 up.
12233 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12234 close_one_inferior>: New methods.
12235 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12236 pass down target to find_inferior_pid.
12237 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12238 Pass down target to find_inferior_ptid.
12239 (gdbsim_target::create_inferior): Pass down target to
12240 add_thread_silent.
12241 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12242 target down to find_inferior_ptid and switch_to_thread.
12243 (gdbsim_target::close): Update to call close_one_inferior.
12244 (struct resume_data): Remove.
12245 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12246 directly, rather than through a void pointer.
12247 (gdbsim_target::resume): Update to call resume_one_inferior.
12248
58920b5b
SM
122492020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12250
12251 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12252
4ec89149
PA
122532020-01-12 Pedro Alves <palves@redhat.com>
12254
12255 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12256 directly for the current inferior instead of
12257 discard_all_inferiors.
12258 (discard_all_inferiors): Delete.
12259
7c392d1d
TT
122602020-01-11 Tom Tromey <tom@tromey.com>
12261
12262 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12263 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12264 deprecated_safe_get_selected_frame.
12265
d9ebdab7
TBA
122662020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12267
12268 * inferior.c (print_inferior): Switch inferior before printing it.
12269
f3c469b9
PA
122702020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12271 Pedro Alves <palves@redhat.com>
12272
12273 * progspace-and-thread.c (switch_to_program_space_and_thread):
12274 Assert there's an inferior for PSPACE. Use
12275 switch_to_inferior_no_thread to switch the inferior too.
12276 * progspace.c (program_space::~program_space): Call
12277 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12278 (program_space::free_all_objfiles): Don't call clear_symtab_users
12279 here.
12280 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12281
65c574f6
PA
122822020-01-10 Pedro Alves <palves@redhat.com>
12283
12284 * NEWS: Mention multi-target debugging, "info connections", and
12285 "add-inferior -no-connection".
12286
2f4fcf00
PA
122872020-01-10 Pedro Alves <palves@redhat.com>
12288
12289 * infrun.c: Include "target-connection.h".
12290 (check_multi_target_resumption): New.
12291 (proceed): Call it.
12292 * target-connection.c (make_target_connection_string): Make
12293 extern.
12294 * target-connection.h (make_target_connection_string): Declare.
12295
121b3efd
PA
122962020-01-10 Pedro Alves <palves@redhat.com>
12297
12298 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12299 * inferior.c (uiout_field_connection): New function.
12300 (print_inferior): Add new "connection-id" column.
12301 (add_inferior_command): Show connection number/string of added
12302 inferior.
12303 * process-stratum-target.h
12304 (process_stratum_target::connection_string): New virtual method.
12305 (process_stratum_target::connection_number): New field.
12306 * remote.c (remote_target::connection_string): New override.
12307 * target-connection.c: New file.
12308 * target-connection.h: New file.
12309 * target.c (decref_target): Remove process_stratum targets from
12310 the connection list.
12311 (target_stack::push): Add process_stratum targets to the
12312 connection list.
12313
4f837581
PA
123142020-01-10 Pedro Alves <palves@redhat.com>
12315
12316 Revert:
12317 2016-04-12 Pedro Alves <palves@redhat.com>
12318 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12319 Remove references to name.
12320 * serial.h (struct serial) <name>: Delete.
12321
f4ec508e
PA
123222020-01-10 Pedro Alves <palves@redhat.com>
12323
12324 * gdbarch-selftests.c (register_to_value_test): Remove "target
12325 already pushed" check.
12326
5b6d1e4f
PA
123272020-01-10 Pedro Alves <palves@redhat.com>
12328 John Baldwin <jhb@FreeBSD.org>
12329
12330 * aarch64-linux-nat.c
12331 (aarch64_linux_nat_target::thread_architecture): Adjust.
12332 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12333 (task_command_1): Likewise.
12334 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12335 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12336 (aix_thread_target::store_registers)
12337 (aix_thread_target::thread_alive): Adjust.
12338 * amd64-fbsd-tdep.c: Include "inferior.h".
12339 (amd64fbsd_get_thread_local_address): Pass down target.
12340 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12341 thread's gdbarch instead of target_gdbarch.
12342 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12343 get_last_target_status.
12344 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12345 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12346 inferiors.
12347 (update_inserted_breakpoint_locations): Skip if inferiors with no
12348 execution.
12349 (update_global_location_list): When handling moribund locations,
12350 find representative inferior for location's pspace, and use thread
12351 count of its process_stratum target.
12352 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12353 * bsd-uthread.c (bsd_uthread_target::wait): Use
12354 as_process_stratum_target and adjust thread_change_ptid and
12355 add_thread calls.
12356 (bsd_uthread_target::update_thread_list): Use
12357 as_process_stratum_target and adjust find_thread_ptid,
12358 thread_change_ptid and add_thread calls.
12359 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12360 find_thread_ptid call.
12361 * corelow.c (add_to_thread_list): Adjust add_thread call.
12362 (core_target_open): Adjust add_thread_silent and thread_count
12363 calls.
12364 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12365 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12366 * event-top.c (async_disconnect): Pop targets from all inferiors.
12367 * exec.c (add_target_sections): Push exec target on all inferiors
12368 sharing the program space.
12369 (remove_target_sections): Remove the exec target from all
12370 inferiors sharing the program space.
12371 (exec_on_vfork): New.
12372 * exec.h (exec_on_vfork): Declare.
12373 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12374 Pass it down.
12375 (fbsd_nat_target::update_thread_list): Adjust.
12376 (fbsd_nat_target::resume): Adjust.
12377 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12378 down.
12379 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12380 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12381 get_thread_arch_regcache call.
12382 * fork-child.c (gdb_startup_inferior): Pass target down to
12383 startup_inferior and set_executing.
12384 * gdbthread.h (struct process_stratum_target): Forward declare.
12385 (add_thread, add_thread_silent, add_thread_with_info)
12386 (in_thread_list): Add process_stratum_target parameter.
12387 (find_thread_ptid(inferior*, ptid_t)): New overload.
12388 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12389 parameter.
12390 (all_threads()): Delete overload.
12391 (all_threads, all_non_exited_threads): Add process_stratum_target
12392 parameter.
12393 (all_threads_safe): Use brace initialization.
12394 (thread_count): Add process_stratum_target parameter.
12395 (set_resumed, set_running, set_stop_requested, set_executing)
12396 (threads_are_executing, finish_thread_state): Add
12397 process_stratum_target parameter.
12398 (switch_to_thread): Use is_current_thread.
12399 * i386-fbsd-tdep.c: Include "inferior.h".
12400 (i386fbsd_get_thread_local_address): Pass down target.
12401 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12402 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12403 have_inferiors check.
12404 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12405 (inf_ptrace_target::attach): Adjust.
12406 * infcall.c (run_inferior_call): Adjust.
12407 * infcmd.c (run_command_1): Pass target to
12408 scoped_finish_thread_state.
12409 (proceed_thread_callback): Skip inferiors with no execution.
12410 (continue_command): Rename 'all_threads' local to avoid hiding
12411 'all_threads' function. Adjust get_last_target_status call.
12412 (prepare_one_step): Adjust set_running call.
12413 (signal_command): Use user_visible_resume_target. Compare thread
12414 pointers instead of inferior_ptid.
12415 (info_program_command): Adjust to pass down target.
12416 (attach_command): Mark target's 'thread_executing' flag.
12417 (stop_current_target_threads_ns): New, factored out from ...
12418 (interrupt_target_1): ... this. Switch inferior before making
12419 target calls.
12420 * inferior-iter.h
12421 (struct all_inferiors_iterator, struct all_inferiors_range)
12422 (struct all_inferiors_safe_range)
12423 (struct all_non_exited_inferiors_range): Filter on
12424 process_stratum_target too. Remove explicit.
12425 * inferior.c (inferior::inferior): Push dummy target on target
12426 stack.
12427 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12428 Add process_stratum_target parameter, and pass it down.
12429 (have_live_inferiors): Adjust.
12430 (switch_to_inferior_and_push_target): New.
12431 (add_inferior_command, clone_inferior_command): Handle
12432 "-no-connection" parameter. Use
12433 switch_to_inferior_and_push_target.
12434 (_initialize_inferior): Mention "-no-connection" option in
12435 the help of "add-inferior" and "clone-inferior" commands.
12436 * inferior.h: Include "process-stratum-target.h".
12437 (interrupt_target_1): Use bool.
12438 (struct inferior) <push_target, unpush_target, target_is_pushed,
12439 find_target_beneath, top_target, process_target, target_at,
12440 m_stack>: New.
12441 (discard_all_inferiors): Delete.
12442 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12443 (all_inferiors, all_non_exited_inferiors): Add
12444 process_stratum_target parameter.
12445 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12446 (target_last_proc_target): New global.
12447 (follow_fork_inferior): Push target on new inferior. Pass target
12448 to add_thread_silent. Call exec_on_vfork. Handle target's
12449 reference count.
12450 (follow_fork): Adjust get_last_target_status call. Also consider
12451 target.
12452 (follow_exec): Push target on new inferior.
12453 (struct execution_control_state) <target>: New field.
12454 (user_visible_resume_target): New.
12455 (do_target_resume): Call target_async.
12456 (resume_1): Set target's threads_executing flag. Consider resume
12457 target.
12458 (commit_resume_all_targets): New.
12459 (proceed): Also consider resume target. Skip threads of inferiors
12460 with no execution. Commit resumtion in all targets.
12461 (start_remote): Pass current inferior to wait_for_inferior.
12462 (infrun_thread_stop_requested): Consider target as well. Pass
12463 thread_info pointer to clear_inline_frame_state instead of ptid.
12464 (infrun_thread_thread_exit): Consider target as well.
12465 (random_pending_event_thread): New inferior parameter. Use it.
12466 (do_target_wait): Rename to ...
12467 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12468 down.
12469 (threads_are_resumed_pending_p, do_target_wait): New.
12470 (prepare_for_detach): Adjust calls.
12471 (wait_for_inferior): New inferior parameter. Handle it. Use
12472 do_target_wait_1 instead of do_target_wait.
12473 (fetch_inferior_event): Adjust. Switch to representative
12474 inferior. Pass target down.
12475 (set_last_target_status): Add process_stratum_target parameter.
12476 Save target in global.
12477 (get_last_target_status): Add process_stratum_target parameter and
12478 handle it.
12479 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12480 (context_switch): Check inferior_ptid == null_ptid before calling
12481 inferior_thread().
12482 (get_inferior_stop_soon): Pass down target.
12483 (wait_one): Rename to ...
12484 (poll_one_curr_target): ... this.
12485 (struct wait_one_event): New.
12486 (wait_one): New.
12487 (stop_all_threads): Adjust.
12488 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12489 event's target.
12490 (switch_back_to_stepped_thread): Also consider target.
12491 (print_stop_event): Update.
12492 (normal_stop): Update. Also consider the resume target.
12493 * infrun.h (wait_for_inferior): Remove declaration.
12494 (user_visible_resume_target): New declaration.
12495 (get_last_target_status, set_last_target_status): New
12496 process_stratum_target parameter.
12497 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12498 process_stratum_target parameter, and use it.
12499 (clear_inline_frame_state (thread_info*)): New.
12500 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12501 process_stratum_target parameter.
12502 (clear_inline_frame_state (thread_info*)): Declare.
12503 * linux-fork.c (delete_checkpoint_command): Pass target down to
12504 find_thread_ptid.
12505 (checkpoint_command): Adjust.
12506 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12507 instead of just tweaking inferior_ptid.
12508 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12509 (exit_lwp): Pass target down to find_thread_ptid.
12510 (attach_proc_task_lwp_callback): Pass target down to
12511 add_thread/set_running/set_executing.
12512 (linux_nat_target::attach): Pass target down to
12513 thread_change_ptid.
12514 (get_detach_signal): Pass target down to find_thread_ptid.
12515 Consider last target status's target.
12516 (linux_resume_one_lwp_throw, resume_lwp)
12517 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12518 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12519 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12520 (linux_nat_target::async_wait_fd): New.
12521 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12522 target down.
12523 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12524 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12525 * linux-thread-db.c (struct thread_db_info::process_target): New
12526 field.
12527 (add_thread_db_info): Save target.
12528 (get_thread_db_info): New process_stratum_target parameter. Also
12529 match target.
12530 (delete_thread_db_info): New process_stratum_target parameter.
12531 Also match target.
12532 (thread_from_lwp): Adjust to pass down target.
12533 (thread_db_notice_clone): Pass down target.
12534 (check_thread_db_callback): Pass down target.
12535 (try_thread_db_load_1): Always push the thread_db target.
12536 (try_thread_db_load, record_thread): Pass target down.
12537 (thread_db_target::detach): Pass target down. Always unpush the
12538 thread_db target.
12539 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12540 target down. Always unpush the thread_db target.
12541 (find_new_threads_callback, thread_db_find_new_threads_2)
12542 (thread_db_target::update_thread_list): Pass target down.
12543 (thread_db_target::pid_to_str): Pass current inferior down.
12544 (thread_db_target::get_thread_local_address): Pass target down.
12545 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12546 target down.
12547 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12548 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12549 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12550 (procfs_init_inferior): Rename to ...
12551 (procfs_target::procfs_init_inferior): ... this and adjust.
12552 (procfs_target::create_inferior, procfs_notice_thread)
12553 (procfs_do_thread_registers): Adjust.
12554 * ppc-fbsd-tdep.c: Include "inferior.h".
12555 (ppcfbsd_get_thread_local_address): Pass down target.
12556 * proc-service.c (ps_xfer_memory): Switch current inferior and
12557 program space as well.
12558 (get_ps_regcache): Pass target down.
12559 * process-stratum-target.c
12560 (process_stratum_target::thread_address_space)
12561 (process_stratum_target::thread_architecture): Pass target down.
12562 * process-stratum-target.h
12563 (process_stratum_target::threads_executing): New field.
12564 (as_process_stratum_target): New.
12565 * ravenscar-thread.c
12566 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12567 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12568 down.
12569 * record-btrace.c (record_btrace_target::info_record): Adjust.
12570 (record_btrace_target::record_method)
12571 (record_btrace_target::record_is_replaying)
12572 (record_btrace_target::fetch_registers)
12573 (get_thread_current_frame_id, record_btrace_target::resume)
12574 (record_btrace_target::wait, record_btrace_target::stop): Pass
12575 target down.
12576 * record-full.c (record_full_wait_1): Switch to event thread.
12577 Pass target down.
12578 * regcache.c (regcache::regcache)
12579 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12580 process_stratum_target parameter and handle it.
12581 (current_thread_target): New global.
12582 (get_thread_regcache): Add process_stratum_target parameter and
12583 handle it. Switch inferior before calling target method.
12584 (get_thread_regcache): Pass target down.
12585 (get_thread_regcache_for_ptid): Pass target down.
12586 (registers_changed_ptid): Add process_stratum_target parameter and
12587 handle it.
12588 (registers_changed_thread, registers_changed): Pass target down.
12589 (test_get_thread_arch_aspace_regcache): New.
12590 (current_regcache_test): Define a couple local test_target_ops
12591 instances and use them for testing.
12592 (readwrite_regcache): Pass process_stratum_target parameter.
12593 (cooked_read_test, cooked_write_test): Pass mock_target down.
12594 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12595 (get_thread_arch_aspace_regcache): Add process_stratum_target
12596 parameter.
12597 (regcache::target): New method.
12598 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12599 (regcache::registers_changed_ptid): Add process_stratum_target
12600 parameter.
12601 (regcache::m_target): New field.
12602 (registers_changed_ptid): Add process_stratum_target parameter.
12603 * remote.c (remote_state::supports_vCont_probed): New field.
12604 (remote_target::async_wait_fd): New method.
12605 (remote_unpush_and_throw): Add remote_target parameter.
12606 (get_current_remote_target): Adjust.
12607 (remote_target::remote_add_inferior): Push target.
12608 (remote_target::remote_add_thread)
12609 (remote_target::remote_notice_new_inferior)
12610 (get_remote_thread_info): Pass target down.
12611 (remote_target::update_thread_list): Skip threads of inferiors
12612 bound to other targets. (remote_target::close): Don't discard
12613 inferiors. (remote_target::add_current_inferior_and_thread)
12614 (remote_target::process_initial_stop_replies)
12615 (remote_target::start_remote)
12616 (remote_target::remote_serial_quit_handler): Pass down target.
12617 (remote_target::remote_unpush_target): New remote_target
12618 parameter. Unpush the target from all inferiors.
12619 (remote_target::remote_unpush_and_throw): New remote_target
12620 parameter. Pass it down.
12621 (remote_target::open_1): Check whether the current inferior has
12622 execution instead of checking whether any inferior is live. Pass
12623 target down.
12624 (remote_target::remote_detach_1): Pass down target. Use
12625 remote_unpush_target.
12626 (extended_remote_target::attach): Pass down target.
12627 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12628 (remote_target::append_resumption): Pass down target.
12629 (remote_target::append_pending_thread_resumptions)
12630 (remote_target::remote_resume_with_hc, remote_target::resume)
12631 (remote_target::commit_resume): Pass down target.
12632 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12633 (remote_target::interrupt_query)
12634 (remote_target::remove_new_fork_children)
12635 (remote_target::check_pending_events_prevent_wildcard_vcont)
12636 (remote_target::remote_parse_stop_reply)
12637 (remote_target::process_stop_reply): Pass down target.
12638 (first_remote_resumed_thread): New remote_target parameter. Pass
12639 it down.
12640 (remote_target::wait_as): Pass down target.
12641 (unpush_and_perror): New remote_target parameter. Pass it down.
12642 (remote_target::readchar, remote_target::remote_serial_write)
12643 (remote_target::getpkt_or_notif_sane_1)
12644 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12645 down target.
12646 (remote_target::mourn_inferior): Pass down target. Use
12647 remote_unpush_target.
12648 (remote_target::core_of_thread)
12649 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12650 (remote_target::pid_to_exec_file)
12651 (remote_target::thread_handle_to_thread_info): Pass down target.
12652 (remote_target::async_wait_fd): New.
12653 * riscv-fbsd-tdep.c: Include "inferior.h".
12654 (riscv_fbsd_get_thread_local_address): Pass down target.
12655 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12656 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12657 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12658 Adjust.
12659 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12660 * solib-svr4.c (enable_break): Pass down target.
12661 * spu-multiarch.c (parse_spufs_run): Pass down target.
12662 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12663 * target-delegates.c: Regenerate.
12664 * target.c (g_target_stack): Delete.
12665 (current_top_target): Return the current inferior's top target.
12666 (target_has_execution_1): Refer to the passed-in inferior's top
12667 target.
12668 (target_supports_terminal_ours): Check whether the initial
12669 inferior was already created.
12670 (decref_target): New.
12671 (target_stack::push): Incref/decref the target.
12672 (push_target, push_target, unpush_target): Adjust.
12673 (target_stack::unpush): Defref target.
12674 (target_is_pushed): Return bool. Adjust to refer to the current
12675 inferior's target stack.
12676 (dispose_inferior): Delete, and inline parts ...
12677 (target_preopen): ... here. Only dispose of the current inferior.
12678 (target_detach): Hold strong target reference while detaching.
12679 Pass target down.
12680 (target_thread_name): Add assertion.
12681 (target_resume): Pass down target.
12682 (target_ops::beneath, find_target_at): Adjust to refer to the
12683 current inferior's target stack.
12684 (get_dummy_target): New.
12685 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12686 has a thread running.
12687 (initialize_targets): Rename to ...
12688 (_initialize_target): ... this.
12689 * target.h: Include "gdbsupport/refcounted-object.h".
12690 (struct target_ops): Inherit refcounted_object.
12691 (target_ops::shortname, target_ops::longname): Make const.
12692 (target_ops::async_wait_fd): New method.
12693 (decref_target): Declare.
12694 (struct target_ops_ref_policy): New.
12695 (target_ops_ref): New typedef.
12696 (get_dummy_target): Declare function.
12697 (target_is_pushed): Return bool.
12698 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12699 (all_matching_threads_iterator::all_matching_threads_iterator):
12700 Handle filter target.
12701 * thread-iter.h (struct all_matching_threads_iterator, struct
12702 all_matching_threads_range, class all_non_exited_threads_range):
12703 Filter by target too. Remove explicit.
12704 * thread.c (threads_executing): Delete.
12705 (inferior_thread): Pass down current inferior.
12706 (clear_thread_inferior_resources): Pass down thread pointer
12707 instead of ptid_t.
12708 (add_thread_silent, add_thread_with_info, add_thread): Add
12709 process_stratum_target parameter. Use it for thread and inferior
12710 searches.
12711 (is_current_thread): New.
12712 (thread_info::deletable): Use it.
12713 (find_thread_ptid, thread_count, in_thread_list)
12714 (thread_change_ptid, set_resumed, set_running): New
12715 process_stratum_target parameter. Pass it down.
12716 (set_executing): New process_stratum_target parameter. Pass it
12717 down. Adjust reference to 'threads_executing'.
12718 (threads_are_executing): New process_stratum_target parameter.
12719 Adjust reference to 'threads_executing'.
12720 (set_stop_requested, finish_thread_state): New
12721 process_stratum_target parameter. Pass it down.
12722 (switch_to_thread): Also match inferior.
12723 (switch_to_thread): New process_stratum_target parameter. Pass it
12724 down.
12725 (update_threads_executing): Reimplement.
12726 * top.c (quit_force): Pop targets from all inferior.
12727 (gdb_init): Don't call initialize_targets.
12728 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12729 Declare.
12730 (windows_add_thread, windows_delete_thread): Adjust.
12731 (get_windows_debug_event): Rename to ...
12732 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12733 * tracefile-tfile.c (tfile_target_open): Pass down target.
12734 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12735 Forward declare.
12736 (switch_to_thread): Add process_stratum_target parameter.
12737 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12738 parameter. Use it.
12739 (mi_on_resume): Pass target down.
12740 * nat/fork-inferior.c (startup_inferior): Add
12741 process_stratum_target parameter. Pass it down.
12742 * nat/fork-inferior.h (startup_inferior): Add
12743 process_stratum_target parameter.
12744 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12745
75c6c844
PA
127462020-01-10 Pedro Alves <palves@redhat.com>
12747
12748 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12749 directly. Instead find the first thread in the thread list and
12750 use switch_to_thread.
12751
78f2c40a
PA
127522020-01-10 Pedro Alves <palves@redhat.com>
12753
12754 * remote.c (remote_target::remote_add_inferior): Don't bind a
12755 process to the current inferior if the current inferior is already
12756 bound to a process.
12757
e7af6c70
TBA
127582020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12759 Pedro Alves <palves@redhat.com>
12760
12761 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12762 If no process is specified, return null_ptid instead of
12763 inferior_ptid.
12764 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12765 TARGET_WAITKIND_SIGNALLED with no pid.
12766
31ba933e
PA
127672020-01-10 Pedro Alves <palves@redhat.com>
12768
12769 * remote.c (first_remote_resumed_thread): New.
12770 (remote_target::wait_as): Use it as default event_ptid instead of
12771 inferior_ptid.
12772
735fc2ca
PA
127732020-01-10 Pedro Alves <palves@redhat.com>
12774
12775 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12776
c17e02e1
PA
127772020-01-10 Pedro Alves <palves@redhat.com>
12778
12779 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12780 not -1.
12781
ab1ddbcf
PA
127822020-01-10 Pedro Alves <palves@redhat.com>
12783
12784 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12785 ptid to get_last_target_status.
12786 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12787 ptid to get_last_target_status.
12788 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12789 get_last_target_status.
12790 (info_program_command): Don't pass a target_waitstatus to
12791 get_last_target_status.
12792 * infrun.c (init_wait_for_inferior): Use
12793 nullify_last_target_wait_ptid.
12794 (get_last_target_status): Handle nullptr arguments.
12795 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12796 (print_stop_event): Don't pass a ptid to get_last_target_status.
12797 (normal_stop): Don't pass a ptid to get_last_target_status.
12798 * infrun.h (get_last_target_status, set_last_target_status): Move
12799 comments here and update.
12800 (nullify_last_target_wait_ptid): Declare.
12801 * linux-fork.c (fork_load_infrun_state): Remove local extern
12802 declaration of nullify_last_target_wait_ptid.
12803 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12804 to get_last_target_status.
12805
f3f8ece4
PA
128062020-01-10 Pedro Alves <palves@redhat.com>
12807
12808 * gdbthread.h (scoped_restore_current_thread)
12809 <dont_restore, restore, m_dont_restore>: Declare.
12810 * thread.c (thread_alive): Add assertion. Return bool.
12811 (switch_to_thread_if_alive): New.
12812 (prune_threads): Switch inferior/thread.
12813 (print_thread_info_1): Switch thread before calling target methods.
12814 (scoped_restore_current_thread::restore): New, factored out from
12815 ...
12816 (scoped_restore_current_thread::~scoped_restore_current_thread):
12817 ... this.
12818 (scoped_restore_current_thread::scoped_restore_current_thread):
12819 Add assertion.
12820 (thread_apply_all_command, thread_select): Use
12821 switch_to_thread_if_alive.
12822 * infrun.c (proceed, restart_threads, handle_signal_stop)
12823 (switch_back_to_stepped_thread): Switch current thread before
12824 calling target methods.
12825
db2d40f7
PA
128262020-01-10 Pedro Alves <palves@redhat.com>
12827
12828 * inferior.c (switch_to_inferior_no_thread): New function,
12829 factored out from ...
12830 (inferior_command): ... here.
12831 * inferior.h (switch_to_inferior_no_thread): Declare.
12832 * mi/mi-main.c (run_one_inferior): Use
12833 switch_to_inferior_no_thread.
12834
bd420a2d
PA
128352020-01-10 Pedro Alves <palves@redhat.com>
12836
12837 * infcmd.c (kill_command): Remove dead code.
12838
ddf5db90
PA
128392020-01-10 Pedro Alves <palves@redhat.com>
12840
12841 * remote.c (remote_target::mourn_inferior): No longer check
12842 whether the target is running.
12843
5018ce90
PA
128442020-01-10 Pedro Alves <palves@redhat.com>
12845
12846 * corelow.c (core_target::has_execution): Change parameter type to
12847 inferior pointer.
12848 * inferior.c (number_of_live_inferiors): Use
12849 inferior::has_execution instead of target_has_execution_1.
12850 * inferior.h (inferior::has_execution): New.
12851 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12852 inferior::has_execution instead of target_has_execution_1.
12853 * process-stratum-target.c
12854 (process_stratum_target::has_execution): Change parameter type to
12855 inferior pointer. Check the inferior's PID instead of
12856 inferior_ptid.
12857 * process-stratum-target.h
12858 (process_stratum_target::has_execution): Change parameter type to
12859 inferior pointer.
12860 * record-full.c (record_full_core_target::has_execution): Change
12861 parameter type to inferior pointer.
12862 * target.c (target_has_execution_1): Change parameter type to
12863 inferior pointer.
12864 (target_has_execution_current): Adjust.
12865 * target.h (target_ops::has_execution): Change parameter type to
12866 inferior pointer.
12867 (target_has_execution_1): Change parameter type to inferior
12868 pointer. Change return type to bool.
12869 * tracefile.h (tracefile_target::has_execution): Change parameter
12870 type to inferior pointer.
12871
74375d18
PA
128722020-01-10 Pedro Alves <palves@redhat.com>
12873
12874 * exceptions.c (print_flush): Remove current_top_target() check.
12875
acdf84a6
PA
128762020-01-10 Pedro Alves <palves@redhat.com>
12877
12878 * remote.c (show_remote_exec_file): Show the current inferior's
12879 exec-file instead of the command variable's value.
12880
ec506636
PA
128812020-01-10 Pedro Alves <palves@redhat.com>
12882
12883 * record-full.c (record_full_resume_ptid): New global.
12884 (record_full_target::resume): Set it.
12885 (record_full_wait_1): Use record_full_resume_ptid instead of
12886 inferior_ptid.
12887
873657b9
PA
128882020-01-10 Pedro Alves <palves@redhat.com>
12889
12890 * gdbthread.h (scoped_restore_current_thread)
12891 <dont_restore, restore, m_dont_restore>: Declare.
12892 * thread.c (thread_alive): Add assertion. Return bool.
12893 (switch_to_thread_if_alive): New.
12894 (prune_threads): Switch inferior/thread.
12895 (print_thread_info_1): Switch thread before calling target methods.
12896 (scoped_restore_current_thread::restore): New, factored out from
12897 ...
12898 (scoped_restore_current_thread::~scoped_restore_current_thread):
12899 ... this.
12900 (scoped_restore_current_thread::scoped_restore_current_thread):
12901 Add assertion.
12902 (thread_apply_all_command, thread_select): Use
12903 switch_to_thread_if_alive.
12904
7f0ae84c
GB
129052020-01-10 George Barrett <bob@bob131.so>
12906
12907 * stap-probe.c (stap_modify_semaphore): Don't check for null
12908 semaphores.
12909 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12910 for null semaphores.
12911
f5a7c406
AB
129122020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12913
12914 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12915 all source windows, and maintain horizontal scroll status while
12916 doing so.
12917
9ae6bf64
TT
129182020-01-09 Tom Tromey <tom@tromey.com>
12919
12920 PR tui/18932:
12921 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12922 update_source_window, not print_source_lines.
12923
b2efe70c
AB
129242020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12925
12926 * tui/tui.c (tui_enable): Register tui hooks after calling
12927 tui_display_main.
12928
5f23a082
CB
129292020-01-09 Christian Biesinger <cbiesinger@google.com>
12930
12931 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12932
3061113b
SM
129332020-01-08 Simon Marchi <simon.marchi@efficios.com>
12934
12935 * thread.c (print_thread_info_1): Fix indentation.
12936
57d75002
CB
129372020-01-09 Christian Biesinger <cbiesinger@google.com>
12938
12939 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12940 unique_xmalloc_ptr outside the if to always free the demangled name.
12941
6a053cb1
TT
129422020-01-08 Tom Tromey <tromey@adacore.com>
12943
12944 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12945 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12946 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12947 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12948 Remove.
12949 (section_offsets): New typedef.
12950 * symtab.c (fixup_section, get_msymbol_address): Update.
12951 * symmisc.c (dump_msymbols): Update.
12952 * symfile.h (relative_addr_info_to_section_offsets)
12953 (symfile_map_offsets_to_segments): Update.
12954 * symfile.c (build_section_addr_info_from_objfile)
12955 (init_objfile_sect_indices): Update.
12956 (struct place_section_arg): Change type of "offsets".
12957 (place_section): Update.
12958 (relative_addr_info_to_section_offsets): Change type of
12959 "section_offsets". Remove "num_sections" parameter.
12960 (default_symfile_offsets, syms_from_objfile_1)
12961 (set_objfile_default_section_offset): Update.
12962 (reread_symbols): No need to preserve section offsets by hand.
12963 (symfile_map_offsets_to_segments): Change type of "offsets".
12964 * stap-probe.c (relocate_address): Update.
12965 * stabsread.h (process_one_symbol): Update.
12966 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12967 (solib_target_relocate_section_addresses): Update.
12968 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12969 Update.
12970 * solib-frv.c (frv_relocate_main_executable): Update.
12971 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12972 * solib-aix.c (solib_aix_get_section_offsets): Change return
12973 type.
12974 (solib_aix_solib_create_inferior_hook): Update.
12975 * remote.c (remote_target::get_offsets): Update.
12976 * psymtab.c (find_pc_sect_psymtab): Update.
12977 * psympriv.h (struct partial_symbol) <address, text_low,
12978 text_high>: Update.
12979 * objfiles.h (obj_section_offset): Update.
12980 (struct objfile) <section_offsets>: Change type.
12981 <num_sections>: Remove.
12982 (objfile_relocate): Update.
12983 * objfiles.c (entry_point_address_query): Update
12984 (relocate_one_symbol): Change type of "section_offsets".
12985 (objfile_relocate1, objfile_relocate1): Change type of
12986 "new_offsets".
12987 (objfile_rebase1): Update.
12988 * mipsread.c (mipscoff_symfile_read): Update.
12989 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12990 parameter.
12991 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12992 (parse_external, psymtab_to_symtab_1): Update.
12993 * machoread.c (macho_symfile_offsets): Update.
12994 * ia64-tdep.c (ia64_find_unwind_table): Update.
12995 * hppa-tdep.c (read_unwind_info): Update.
12996 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12997 * dwarf2read.c (create_addrmap_from_index)
12998 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12999 (process_psymtab_comp_unit_reader, add_partial_symbol)
13000 (add_partial_subprogram, process_full_comp_unit)
13001 (read_file_scope, read_func_scope, read_lexical_block_scope)
13002 (read_call_site_scope, dwarf2_rnglists_process)
13003 (dwarf2_ranges_process, dwarf2_ranges_read)
13004 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13005 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13006 Update.
13007 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13008 Update.
13009 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13010 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13011 (process_one_symbol): Change type of "section_offsets".
13012 * ctfread.c (get_objfile_text_range): Update.
13013 * coffread.c (coff_symtab_read, enter_linenos)
13014 (process_coff_symbol): Update.
13015 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13016 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13017
456e800a
TT
130182020-01-08 Tom Tromey <tromey@adacore.com>
13019
13020 * dwarf2read.c (parse_macro_definition): Use std::string.
13021 (parse_macro_definition): Likewise.
13022
6dfa2fc2
TT
130232020-01-08 Tom Tromey <tromey@adacore.com>
13024
13025 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13026 (ATTR_ALLOC_CHUNK): Remove.
13027
421d1616
TT
130282020-01-08 Tom Tromey <tromey@adacore.com>
13029
13030 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13031
43816ebc
TT
130322020-01-08 Tom Tromey <tromey@adacore.com>
13033
13034 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13035 (dwarf2_compute_name, open_dwo_file): Likewise.
13036 (process_enumeration_scope): Use std::vector.
13037 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13038 (partial_die_info::fixup, dwarf2_start_subfile)
13039 (guess_full_die_structure_name, dwarf2_name): Likewise.
13040 (determine_prefix): Update.
13041 (guess_full_die_structure_name): Make return type const.
13042 (partial_die_full_name): Return unique_xmalloc_ptr.
13043 (DW_FIELD_ALLOC_CHUNK): Remove.
13044
4212d509
TT
130452020-01-07 Tom Tromey <tromey@adacore.com>
13046
13047 PR build/24937:
13048 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13049
06a6207a
JT
130502020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13051
13052 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13053
153d79c4
AB
130542020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13055
13056 * stack.c (print_frame_info): Move disassemble_next_line code
13057 inside source_print block.
13058
66182876
EZ
130592020-01-06 Eli Zaretskii <eliz@gnu.org>
13060
13061 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13062 gdb/signals.h, as we are now using native signal symbols.
13063
cbfa8581
SV
130642020-01-06 Shahab Vahedi <shahab@synopsys.com>
13065
13066 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13067 overflow by an early check of content vs threshold.
aac66a4c 13068 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13069 Likewise.
13070
3f602821
EZ
130712020-01-06 Eli Zaretskii <eliz@gnu.org>
13072
13073 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13074
a08c904d
JT
130752020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13076
13077 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13078 export table if no section contains it's RVA.
13079
89a65580
EZ
130802020-01-06 Eli Zaretskii <eliz@gnu.org>
13081
13082 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
13083
8b7fcda2
HD
130842020-01-06 Hannes Domani <ssbssa@yahoo.de>
13085
13086 * source.c (print_source_lines_base): Set last_line_listed.
13087
a61b4f69
SV
130882020-01-06 Shahab Vahedi <shahab@synopsys.com>
13089
13090 * tui/tui-disasm.c: Remove trailing spaces.
13091
559e7e50
EZ
130922020-01-06 Eli Zaretskii <eliz@gnu.org>
13093 Pedro Alves <palves@redhat.com>
13094
13095 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
13096 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
13097 (windows_gdb_signal_to_target): New function, uses the above
13098 enumeration to convert GDB internal signal codes to equivalent
13099 Windows codes.
13100 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
13101 * windows-nat.c: Include "gdb_wait.h".
13102 (get_windows_debug_event): Extract the fatal exception from the
13103 exit status and convert to the equivalent Posix signal number.
13104 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
13105 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
13106 * gdbsupport/gdb_wait.c: New file, implements
13107 windows_status_to_termsig.
13108 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
13109 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
13110
f2302a34
AB
131112020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
13112
13113 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
13114 show_layout.
13115
6a5206eb
LM
131162020-01-05 Luis Machado <luis.machado@linaro.org>
13117
13118 * aarch64-linux-nat.c
13119 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
13120 and bfd_mach_aarch64.
13121
6ec1d75e
PW
131222020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13123
13124 * ui-file.c (stdio_file::can_emit_style_escape)
13125 (tee_file::can_emit_style_escape): Ensure style is used also on
13126 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
13127 to gdb_stdout.
13128 * main.c (set_gdb_data_directory): Use file style to output the
13129 warning that the given pathname is not a directory.
13130 * top.c (show_history_filename, gdb_safe_append_history)
13131 (show_gdb_datadir): Use file style.
13132
44f81a76
HD
131332020-01-03 Hannes Domani <ssbssa@yahoo.de>
13134
13135 * solib-target.c (struct lm_info_target):
13136 Change offsets to be a unique_xmalloc_ptr.
13137 (solib_target_relocate_section_addresses): Update.
13138
25057eb0
HD
131392020-01-03 Hannes Domani <ssbssa@yahoo.de>
13140
13141 * windows-nat.c (windows_clear_solib): Free so_list linked list.
13142
6e2118f5
BE
131432020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13144
13145 * MAINTAINERS (Write After Approval): Add myself.
13146
8133c7dc
LM
131472020-01-02 Luis Machado <luis.machado@linaro.org>
13148
13149 * proc-service.c (get_ps_regcache): Remove reference to obsolete
13150 Cell BE architecture.
13151 * target.h (struct target_ops) <thread_architecture>: Likewise.
13152
48189bec
HD
131532020-01-01 Hannes Domani <ssbssa@yahoo.de>
13154
13155 * Makefile.in: Use INSTALL_PROGRAM_ENV.
13156
ead1063b
HD
131572020-01-01 Hannes Domani <ssbssa@yahoo.de>
13158
13159 * MAINTAINERS (Write After Approval): Add myself.
13160
e5d78223
JB
131612020-01-01 Joel Brobecker <brobecker@adacore.com>
13162
13163 * gdbarch.sh: Update copyright year range of generated files.
13164
b811d2c2
JB
131652020-01-01 Joel Brobecker <brobecker@adacore.com>
13166
13167 Update copyright year range in all GDB files.
13168
5f4def5c
JB
131692020-01-01 Joel Brobecker <brobecker@adacore.com>
13170
13171 * copyright.py: Convert to Python 3.
13172
51fd4002
JB
131732020-01-01 Joel Brobecker <brobecker@adacore.com>
13174
13175 * copyright.py: Adapt after move of gnulib directory from gdb
13176 directory to toplevel directory.
13177
5fb651f2
JB
131782020-01-01 Joel Brobecker <brobecker@adacore.com>
13179
13180 * copyright.py (main): Exit if run from the wrong directory.
13181
5dd8bf88
JB
131822020-01-01 Joel Brobecker <brobecker@adacore.com>
13183
13184 * top.c (print_gdb_version): Change copyright year to 2020.
13185
9f71dacb 131862020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 13187
9f71dacb 13188 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 13189
9f71dacb 13190For older changes see ChangeLog-2019.
c906108c
SS
13191\f
13192Local Variables:
13193mode: change-log
13194left-margin: 8
13195fill-column: 74
13196version-control: never
57da7796 13197coding: utf-8
c906108c 13198End: