Don't use gdb_py_long_from_longest
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-15 Tom Tromey <tromey@adacore.com>
2
3 * python/python-internal.h (gdb_py_long_from_longest): Remove
4 defines.
5 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
6 * python/py-type.c (convert_field, typy_get_sizeof): Use
7 gdb_py_object_from_longest.
8 * python/py-record-btrace.c (btpy_list_index): Use
9 gdb_py_object_from_longest.
10
11 2020-09-15 Tom Tromey <tromey@adacore.com>
12
13 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
14 * python/py-record.c (recpy_element_number): Use
15 gdb_py_object_from_longest.
16 (recpy_gap_number): Likewise.
17
18 2020-09-15 Tom Tromey <tromey@adacore.com>
19
20 * top.c (ui::ui): Update.
21 (highest_ui_num): Remove.
22 * top.h (struct ui) <num>: Remove.
23
24 2020-09-15 Tom Tromey <tromey@adacore.com>
25
26 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
27 * ui-style.c (ansi_regex_text): Now array.
28 * rust-exp.y (number_regex_text): Now array.
29 * linespec.c (linespec_quote_characters): Now array.
30 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
31 Now arrays.
32
33 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
34
35 * debuginfod-support.c (debuginfod_client_deleter): New.
36 (debuginfod_client_up): New.
37 (debuginfod_init): Return debuginfod_client_up.
38 (debuginfod_source_query): Adjust.
39 (debuginfod_debuginfo_query): Adjust.
40
41 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
42
43 * debuginfod-support.c (debuginfod_source_query): Use
44 make_unique_xstrdup.
45
46 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
47
48 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
49 with `type::instance_flags`.
50
51 2020-09-14 Michael Mullin <masmullin@gmail.com>
52
53 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
54 Remove baton parameter.
55
56 2020-09-14 Pedro Alves <pedro@palves.net>
57
58 * Makefile.in (SELFTESTS_SRCS): Add
59 unittests/enum-flags-selftests.c.
60 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
61 btrace_function_flags instead of enum btrace_function_flag.
62 * compile/compile-c-types.c (convert_qualified): Use
63 enum_flags::raw.
64 * compile/compile-cplus-symbols.c (convert_one_symbol)
65 (convert_symbol_bmsym):
66 * compile/compile-cplus-types.c (compile_cplus_convert_method)
67 (compile_cplus_convert_struct_or_union_methods)
68 (compile_cplus_instance::convert_qualified_base):
69 * go-exp.y (parse_string_or_char): Add cast to int.
70 * unittests/enum-flags-selftests.c: New file.
71 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
72 type to btrace_thread_flags from btrace_thread_flag.
73 (record_btrace_cancel_resume, record_btrace_step_thread): Change
74 local's type to btrace_thread_flags from btrace_thread_flag. Add
75 cast in DEBUG call.
76
77 2020-09-14 Pedro Alves <pedro@palves.net>
78
79 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
80 * gdbtypes.c (address_space_name_to_int): Rename to ...
81 (address_space_name_to_type_instance_flags): ... this.
82 (address_space_int_to_name): Rename to ...
83 (address_space_type_instance_flags_to_name): ... this.
84 * gdbtypes.h (address_space_name_to_int): Rename to ...
85 (address_space_name_to_type_instance_flags): ... this.
86 (address_space_int_to_name): Rename to ...
87 (address_space_type_instance_flags_to_name): ... this.
88 * type-stack.c (type_stack::insert): Adjust to rename.
89 * type-stack.h (type_stack::insert): Likewise.
90
91 2020-09-14 Pedro Alves <pedro@palves.net>
92 Andrew Burgess <andrew.burgess@embecosm.com>
93
94 * avr-tdep.c (avr_address_class_type_flags): Return
95 type_instance_flags.
96 (avr_address_class_type_flags_to_name): Take a
97 type_instance_flags.
98 (avr_address_class_name_to_type_flags): Return bool and take a
99 type_instance_flags.
100 * d-lang.c (build_d_types): Use type::set_instance_flags.
101 * ft32-tdep.c (ft32_address_class_type_flags): Return
102 type_instance_flags.
103 (ft32_address_class_type_flags_to_name): Take a
104 type_instance_flags.
105 (ft32_address_class_name_to_type_flags): Return bool and take a
106 type_instance_flags.
107 (ft32_gdbarch_init): Use type::set_instance_flags.
108 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
109 * gdbarch.h, gdbarch.c: Regenerate.
110 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
111 (address_class_name_to_type_flags): Use type_instance_flags and
112 bool.
113 * gdbtypes.c (address_space_name_to_int)
114 (address_space_int_to_name, make_qualified_type): Use
115 type_instance_flags.
116 (make_qualified_type): Use type_instance_flags and
117 type::set_instance_flags.
118 (make_type_with_address_space, make_cv_type, make_vector_type)
119 (check_typedef): Use type_instance_flags.
120 (recursive_dump_type): Cast type_instance_flags to unsigned for
121 printing.
122 (copy_type_recursive): Use type::set_instance_flags.
123 (gdbtypes_post_init): Use type::set_instance_flags.
124 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
125 <m_instance_flags>: ... this.
126 <instance_flags, set_instance_flags>: New methods.
127 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
128 (SET_TYPE_INSTANCE_FLAGS): New.
129 (address_space_name_to_int, address_space_int_to_name)
130 (make_type_with_address_space): Pass flags using
131 type_instance_flags instead of int.
132 * stabsread.c (cleanup_undefined_types_noname): Use
133 type::set_instance_flags.
134 * s390-tdep.c (s390_address_class_type_flags): Return
135 type_instance_flags.
136 (s390_address_class_type_flags_to_name): Take a
137 type_instance_flags.
138 (s390_address_class_name_to_type_flags): Return bool and take a
139 type_instance_flags.
140 * type-stack.c (type_stack::follow_types): Use
141 type_instance_flags.
142 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
143
144 2020-09-14 Tom Tromey <tromey@adacore.com>
145
146 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
147 * x86-tdep.c (x86_is_thunk_register_name)
148 (x86_in_indirect_branch_thunk): Update.
149 * sparc64-tdep.c (sparc64_fpu_register_names)
150 (sparc64_cp0_register_names, sparc64_register_names)
151 (sparc64_pseudo_register_names): Now const.
152 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
153 cp0_registers_num>: Now const.
154 * sparc-tdep.c (sparc_core_register_names)
155 (sparc32_fpu_register_names, sparc32_cp0_register_names)
156 (sparc32_pseudo_register_names): Now const.
157 (validate_tdesc_registers): Update.
158 * rust-lang.c (rust_extensions): Now const.
159 * p-lang.c (p_extensions): Now const.
160 * objc-lang.c (objc_extensions): Now const.
161 * nto-tdep.c (nto_thread_state_str): Now const.
162 * moxie-tdep.c (moxie_register_names): Now const.
163 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
164 Now const.
165 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
166 (mips_linux_reg_names): Now const.
167 (mips_gdbarch_init): Update.
168 * microblaze-tdep.c (microblaze_register_names): Now const.
169 * m68k-tdep.c (m68k_register_names): Now const.
170 * m32r-tdep.c (m32r_register_names): Now const.
171 * ia64-tdep.c (ia64_register_names): Now const.
172 * i386-tdep.h (struct gdbarch_tdep) <register_names,
173 ymmh_register_names, ymm16h_regnum, mpx_register_names,
174 k_register_names, zmmh_register_names, xmm_avx512_register_names,
175 ymm_avx512_register_names, pkeys_register_names>: Now const.
176 * i386-tdep.c (i386_register_names, i386_zmm_names)
177 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
178 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
179 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
180 * f-lang.c (f_extensions): Now const.
181 * d-lang.c (d_extensions): Now const.
182 * csky-tdep.c (csky_register_names): Now const.
183 * charset.c (default_charset_names, charset_enum): Now const.
184 (_initialize_charset): Update.
185 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
186 const.
187 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
188 (bsd_uthread_solib_loaded): Update.
189 (bsd_uthread_state): Now const.
190 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
191 (amd64_ymm_avx512_names, amd64_ymmh_names)
192 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
193 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
194 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
195 (amd64_dword_names): Now const.
196 * agent.c (can_use_agent_enum): Now const.
197 * ada-tasks.c (task_states, long_task_states): Now const.
198 * ada-lang.c (known_runtime_file_name_patterns)
199 (known_auxiliary_function_name_patterns, attribute_names)
200 (standard_exc, ada_extensions): Now const.
201
202 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
203
204 * bcache.h (struct bcache) <bcache>: Remove constructor.
205 <m_hash_function, m_compare_function>: Remove.
206 <~bcache>: Make virtual.
207 <compare>: Remove static method, introduce virtual method.
208 <default_hash>: Remove.
209 <hash>: New virtual method.
210 * bcache.c (bcache::expand_hash_table): Update.
211 (bcache::insert): Update.
212 (bcache::hash): New.
213 (bcache::compare): Update comment and parameter names.
214 * gdbtypes.c (types_deeply_equal): Update.
215 * psymtab.h (struct psymbol_bcache): New struct.
216 (class psymtab_storage) <psymtab_storage>: Make default.
217 <psymbol_cache>: Change type to psymbol_bcache.
218 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
219 (psymbol_hash): Change to...
220 (psymbol_bcache::hash): ... this.
221 (psymbol_compare): Change to...
222 (psymbol_bcache::compare): ... this.
223
224 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
225
226 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
227 checking for initial lwp.
228
229 2020-09-14 Tom Tromey <tromey@adacore.com>
230
231 * m68k-tdep.c (m68k_extract_return_value): Use
232 pointer_result_regnum.
233 (m68k_store_return_value): Likewise.
234 (m68k_reg_struct_return_p): Handle vectors and arrays.
235 (m68k_return_value): Handle arrays.
236 (m68k_svr4_return_value): Fix single-element aggregate handling.
237 Handle long double. Adjust for embedded ABI.
238 (m68k_svr4_init_abi): Set pointer_result_regnum.
239 (m68k_embedded_init_abi): New function.
240 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
241 (m68k_osabi_sniffer): New function.
242 (_initialize_m68k_tdep): Register osabi sniffer.
243 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
244 member.
245
246 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
247
248 * xml-support.c (xml_fetch_content_from_file): Replace xfree
249 with gdb::unique_xmalloc_ptr<char>.
250
251 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
252
253 * xml-support.h (xml_fetch_another): Change type to be a
254 function_view.
255 (xml_process_xincludes): Remove baton parameter.
256 (xml_fetch_content_from_file): Change baton parameter to
257 dirname.
258 * xml-support.c (struct xinclude_parsing_data)
259 <xinclude_parsing_data>: Remove baton parameter.
260 <fetcher_baton>: Remove.
261 (xinclude_start_include): Adjust.
262 (xml_process_xincludes): Adjust.
263 (xml_fetch_content_from_file): Replace baton parameter with
264 dirname.
265 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
266 (xml_init_syscalls_info): Use a lambda.
267 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
268 (file_read_description_xml): Use a lambda.
269 (fetch_available_features_from_target): Change baton parameter
270 to target_ops.
271 (target_read_description_xml): Use a lambda.
272 (target_fetch_description_xml): Use a lambda.
273 (string_read_description_xml): Update.
274
275 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
276
277 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
278 uses with type::endianity_is_not_default.
279
280 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
281
282 * gdbtypes.h (struct type) <endianity_is_not_default,
283 set_endianity_is_not_default>: New methods.
284 (TYPE_ENDIANITY_NOT_DEFAULT): Use
285 type::endianity_is_not_default, change all write call sites to
286 use type::set_endianity_is_not_default.
287
288 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
289
290 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
291 uses with type::is_fixed_instance.
292
293 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
294
295 * gdbtypes.h (struct type) <is_fixed_instance,
296 set_is_fixed_instance>: New methods.
297 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
298 write call sites to use type::set_is_fixed_instance.
299
300 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
301
302 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
303 uses with type::is_gnu_ifunc.
304
305 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
306
307 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
308 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
309 use type::set_is_gnu_ifunc.
310
311 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
312
313 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
314 uses with type::stub_is_supported.
315
316 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
317
318 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
319 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
320 use type::set_stub_is_supported.
321
322 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
323
324 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
325 uses with type::is_vector.
326
327 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
328
329 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
330 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
331 use type::set_is_vector.
332
333 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
334
335 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
336 uses with type::has_varargs.
337
338 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
339
340 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
341 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
342 use type::set_has_varargs.
343
344 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
345
346 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
347 uses with type::is_prototyped.
348
349 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
350
351 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
352 New methods.
353 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
354 call sites to use type::set_is_prototyped.
355
356 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
357
358 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
359 uses with type::target_is_stub.
360
361 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
362
363 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
364 New methods.
365 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
366 sites to use type::set_target_is_stub.
367
368 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
369
370 * gdbtypes.h (TYPE_STUB): Remove, replace all
371 uses with type::is_stub.
372
373 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
374
375 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
376 (TYPE_STUB): Use type::is_stub, change all write call sites to
377 use type::set_is_stub.
378
379 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
380
381 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
382 type::has_no_signedness.
383
384 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
385
386 * gdbtypes.h (struct type) <has_no_signedness,
387 set_has_no_signedness>: New methods.
388 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
389 call sites to use type::set_has_no_signedness.
390
391 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
392
393 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
394 type::is_unsigned.
395
396 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
397
398 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
399 methods.
400 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
401 sites to use type::set_is_unsigned.
402
403 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
404 Adam Renquinha <arenquinha@cimeq.qc.ca>
405
406 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
407 pointer and stack frame offset when unwinding.
408
409 2020-09-13 Pedro Alves <pedro@palves.net>
410
411 * NEWS: Document "-break-insert --qualified".
412 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
413
414 2020-09-13 Pedro Alves <pedro@palves.net>
415
416 * linespec.c (classify_mtype, compare_msyms): Delete.
417 (search_minsyms_for_name): Remove classification logic. Instead
418 filter out trampoline symbols if we also found an external
419 function of the same name.
420
421 2020-09-13 Joel Brobecker <brobecker@adacore.com>
422
423 * NEWS: Create a new section for the next release branch.
424 Rename the section of the current branch, now that it has
425 been cut.
426
427 2020-09-13 Joel Brobecker <brobecker@adacore.com>
428
429 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
430 * version.in: Bump version to 11.0.50.DATE-git.
431
432 2020-09-12 Joel Brobecker <brobecker@adacore.com>
433
434 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
435
436 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
437 Felix Willgerodt <Felix.Willgerodt@intel.com>
438
439 * gdbarch.sh: Added bfloat16 type.
440 * gdbarch.c: Regenerated.
441 * gdbarch.h: Regenerated.
442 * gdbtypes.c (floatformats_bfloat16): New struct.
443 (gdbtypes_post_init): Add builtin_bfloat16.
444 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
445 (floatformats_bfloat16): New struct.
446 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
447 (i386_ymm_type): Add field "v16_bfloat16"
448 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
449 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
450 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
451 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
452 * features/i386/64bit-avx512.xml: Add bfloat16 type.
453 * features/i386/64bit-avx512.c: Regenerated.
454 * features/i386/64bit-sse.xml: Add bfloat16 type.
455 * features/i386/64bit-sse.c: Regenerated.
456
457 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
458
459 * i386-tdep.c (i386_zmm_type): Fix field names.
460 (i386_ymm_type): Fix field names.
461
462 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
463
464 * breakpoint.c: Fix typo in the help message of the
465 "set breakpoint condition-evaluation" command.
466
467 2020-09-10 Kamil Rytarowski <n54@gmx.com>
468
469 * nbsd-nat.c: Include "nat/netbsd-nat.h".
470 * (nbsd_nat_target::pid_to_exec_file)
471 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
472 (nbsd_nat_target::post_startup_inferior)
473 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
474 (nbsd_add_threads): Switch local code to common gdb/nat functions.
475 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
476 * (nbsd_thread_lister): Remove.
477
478 2020-09-10 Kamil Rytarowski <n54@gmx.com>
479
480 * fork-inferior.c (startup_inferior): Avoid double free.
481
482 2020-09-10 Kamil Rytarowski <n54@gmx.com>
483
484 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
485 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
486
487 2020-09-10 Kamil Rytarowski <n54@gmx.com>
488
489 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
490 * netbsd-nat.c: Include <sys/ptrace.h>.
491 * (netbsd_nat::enable_proc_events): Add.
492
493 2020-09-10 Kamil Rytarowski <n54@gmx.com>
494
495 * netbsd-nat.h: Include "gdbsupport/function-view.h".
496 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
497 (netbsd_nat::for_each_thread): Add.
498 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
499 "gdbsupport/common-debug.h".
500 * (netbsd_nat::netbsd_thread_lister)
501 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
502 (netbsd_nat::for_each_thread): Add.
503
504 2020-09-10 Kamil Rytarowski <n54@gmx.com>
505
506 * netbsd-nat.h: Include <unistd.h>.
507 * (netbsd_nat::pid_to_exec_file): Add.
508 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
509 * (netbsd_nat::pid_to_exec_file) Add.
510
511 2020-09-10 Kamil Rytarowski <n54@gmx.com>
512
513 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
514
515 2020-09-10 Kamil Rytarowski <n54@gmx.com>
516
517 * netbsd-nat.h: New file.
518 * netbsd-nat.c: Likewise.
519
520 2020-09-09 Tom Tromey <tromey@adacore.com>
521
522 * ada-lang.c (remove_extra_symbols): Do not increment when
523 removing an element
524
525 2020-09-08 Tom Tromey <tromey@adacore.com>
526
527 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
528
529 2020-09-08 Tom Tromey <tromey@adacore.com>
530
531 PR win32/25302:
532 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
533 (gdb_bfd_init_data): New function.
534 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
535
536 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
537
538 * infrun.c (fetch_inferior_event): Use
539 `switch_to_target_no_thread` to switch the target.
540
541 2020-09-06 Tom Tromey <tom@tromey.com>
542
543 * symfile.h (dwarf2_free_objfile): Don't declare.
544
545 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
546
547 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
548 to match 16 byte real/complex type generated by Flang compiler.
549
550 2020-09-03 Tom de Vries <tdevries@suse.de>
551
552 PR breakpoint/26546
553 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
554 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
555
556 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
557
558 * maint.c (index_digits): New function.
559 (struct maint_print_section_data): Remove.
560 (print_bfd_section_info): Remove print_data parameter, add arg
561 and index_digits.
562 (print_objfile_section_info): Likewise.
563 (print_bfd_section_info_maybe_relocated): Likewise (plus
564 objfile).
565 (maintenance_info_sections): Adjust calls.
566
567 2020-09-02 Tom Tromey <tromey@adacore.com>
568
569 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
570 for null pointers.
571 (ada_varobj_adjust_for_child_access): Special-case null pointers.
572
573 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
574
575 * bcache.h (struct bcache) <insert>: Change type of `added` to
576 pointer to bool.
577 * bcache.c (bcache::insert): Likewise.
578 * gdbtypes.c (check_types_worklist): Adjust.
579 * psymtab.c (add_psymbol_to_bcache): Adjust.
580
581 2020-08-31 Kevin Buettner <kevinb@redhat.com>
582
583 * corelow.c (unordered_set): Include.
584 (class core_target): Add field 'm_core_unavailable_mappings'.
585 (core_target::build_file_mappings): Print only one warning
586 per inaccessible file. Add unavailable/broken mappings
587 to m_core_unavailable_mappings.
588 (core_target::xfer_partial): Call...
589 (core_target::xfer_memory_via_mappings): New method.
590
591 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
592
593 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
594 type to bool.
595
596 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
597
598 * dwarf2/read.c (struct field_info): Fix indentation.
599
600 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
601
602 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
603 ordering in comment.
604 * frame.c (frame_id_eq): Fix indentation.
605
606 2020-08-31 Scott Linder <scott@scottlinder.com>
607 Simon Marchi <simon.marchi@efficios.com>
608
609 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
610 inline frame ids in outer frame.
611
612 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
613
614 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
615 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
616 (outer_frame_id): Use FID_STACK_OUTER instead of
617 FID_STACK_INVALID.
618 (frame_id_p): Don't check for outer_frame_id.
619
620 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
621
622 * frame-unwind.c (frame_unwind_got_optimized): Don't set
623 regnum/frame in value. Call allocate_value_lazy.
624 * frame.c (frame_unwind_register_value): Use
625 val_print_not_saved.
626
627 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
628
629 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
630
631 2020-08-29 Pedro Alves <pedro@palves.net>
632
633 * progspace.c (print_program_space): Use all_inferiors. Switch to
634 the inferior before calling target_pid_to_str.
635
636 2020-08-28 Tom Tromey <tom@tromey.com>
637
638 * xcoffread.c (xcoff_end_psymtab): Update comment.
639 * dbxread.c (dbx_end_psymtab): Update comment.
640
641 2020-08-28 Tom de Vries <tdevries@suse.de>
642
643 PR breakpoint/26544
644 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
645 event_location.
646 (create_breakpoint): Same.
647 (base_breakpoint_decode_location): Same.
648 (bkpt_create_sals_from_location): Same.
649 (bkpt_decode_location): Same.
650 (bkpt_probe_create_sals_from_location): Same.
651 (bkpt_probe_decode_location): Same.
652 (tracepoint_create_sals_from_location): Same.
653 (tracepoint_decode_location): Same.
654 (tracepoint_probe_decode_location): Same.
655 (strace_marker_create_sals_from_location): Same.
656 (strace_marker_decode_location): Same.
657 (create_sals_from_location_default): Same.
658 (decode_location_default): Same.
659 * breakpoint.h (struct breakpoint_ops): Same.
660 (create_breakpoint): Same.
661 * linespec.h (decode_line_full): Same.
662 * linespec.c (decode_line_full): Same. Throw error if
663 result.size () == 0.
664
665 2020-08-27 Pedro Alves <pedro@palves.net>
666
667 PR gdb/26524
668 * breakpoint.c (until_break_fsm) <location_breakpoint,
669 caller_breakpoint>: Delete fields.
670 <breakpoints>: New field.
671 <until_break_fsm>: Adjust to save a breakpoint vector instead of
672 two individual breakpoints.
673 (until_break_fsm::should_stop): Loop over breakpoints in the
674 breakpoint vector.
675 (until_break_fsm::clean_up): Adjust to clear the breakpoints
676 vector.
677 (until_break_command): Handle location expanding into multiple
678 sals.
679
680 2020-08-27 Pedro Alves <pedro@palves.net>
681
682 PR gdb/26523
683 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
684 bp_until breakpoints user-specified locations. Update intro
685 comment.
686
687 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
688
689 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
690 gdb_bfd_sections): New.
691 * maint.c (print_bfd_section_info): Change param type to
692 maint_print_section_data.
693 (print_objfile_section_info): Likewise.
694 (print_bfd_section_info_maybe_relocated): Likewise.
695 (maintenance_info_sections): Use gdb_bfd_sections.
696
697 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
698
699 * MAINTAINERS: Add ARC target and maintainer.
700
701 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
702
703 * configure.tgt: ARC support for GNU/Linux.
704 * Makefile.in (ALL_TARGET_OBJS): Likewise.
705 * arc-linux-tdep.c: New file.
706 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
707 * arc-tdep.c (arc_write_pc): Use it.
708
709 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
710
711 * arc-tdep.c (arc_check_for_hardware_loop): New.
712 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
713
714 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
715
716 * arc-tdep.h: Include "gdbarch.h".
717
718 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
719
720 * arch/arc.h
721 (arc_gdbarch_features): New class to stir the selection of target XML.
722 (arc_create_target_description): Use FEATURES to choose XML target.
723 (arc_lookup_target_description): Use arc_create_target_description
724 to create _new_ target descriptions or return the already created
725 ones if the FEATURES is the same.
726 * arch/arc.c: Implementation of prototypes described above.
727 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
728 (arc_gdbarch_features_init): Initialize the FEATURES struct.
729 * arc-tdep.c (*_feature_name): Make feature names consistent.
730 (arc_register_feature): A new struct to hold information about
731 registers of a particular target/feature.
732 (arc_check_tdesc_feature): Check if XML provides registers in
733 compliance with ARC_REGISTER_FEATURE structs.
734 (arc_update_acc_reg_names): Add aliases for r58 and r59.
735 (determine_*_reg_feature_set): Which feature name to look for.
736 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
737 (mach_type_to_arc_isa): Convert from a set of binutils machine types
738 to expected ISA enums to be used in arc_gdbarch_features structs.
739 * features/Makefile (FEATURE_XMLFILES): Add new files.
740 * gdb/features/arc/v1-aux.c: New file.
741 * gdb/features/arc/v1-aux.xml: Likewise.
742 * gdb/features/arc/v1-core.c: Likewise.
743 * gdb/features/arc/v1-core.xml: Likewise.
744 * gdb/features/arc/v2-aux.c: Likewise.
745 * gdb/features/arc/v2-aux.xml: Likewise.
746 * gdb/features/arc/v2-core.c: Likewise.
747 * gdb/features/arc/v2-core.xml: Likewise.
748 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
749
750 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
751 Andrew Burgess <andrew.burgess@embecosm.com>
752
753 PR m2/26372
754 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
755 an assert. Remove single element array indexing pattern as the
756 MULTI_SUBSCRIPT support will handle this case too.
757
758 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
759
760 * value.h (valprint_check_validity): Move declaration from
761 here...
762 * valprint.h (valprint_check_validity): ... to here.
763
764 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
765
766 * debug.h: New file.
767 * debug.c (debug_prefixed_vprintf): New function.
768 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
769 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
770
771 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
772
773 * infrun.h (infrun_debug_printf_1): New function declaration.
774 (infrun_debug_printf): New macro.
775 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
776 throughout.
777 (infrun_debug_printf): New function.
778 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
779 (handle_jit_event): Likewise.
780
781 2020-08-21 Mark Wielaard <mark@klomp.org>
782
783 * ada-lex.l: Extend register warnings diagnostics comment for g++.
784
785 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
786
787 * frame.c (enum class frame_id_status): New.
788 (struct frame_info) <this_id::p>: Change type to frame_id_status.
789 (fprintf_frame): Update.
790 (compute_frame_id): Set frame id status to "computing" on entry.
791 Set it back to "not_computed" on failure and to "computed" on
792 success.
793 (get_frame_id): Assert the frame id is not being computed.
794 (create_sentinel_frame): Use frame_id_status::COMPUTED.
795 (create_new_frame): Likewise.
796 (frame_cleanup_after_sniffer): Update assert.
797
798 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
799
800 * regcache.c (pid_ptid_regcache_map): New type.
801 (target_ptid_regcache_map): Remove.
802 (target_pid_ptid_regcache_map): New type.
803 (regcaches): Change type to target_pid_ptid_regcache_map.
804 (get_thread_arch_aspace_regcache): Update.
805 (regcache_thread_ptid_changed): Update, handle pid-like ptid
806 case.
807 (regcaches_size): Update.
808 (regcache_count): Update.
809 (registers_changed_ptid_target_pid_test): New.
810 (_initialize_regcache): Register new test.
811
812 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
813
814 * regcache.c (regcache_count): New.
815 (struct regcache_test_data): New.
816 (regcache_test_data_up): New.
817 (populate_regcaches_for_test): New.
818 (regcaches_test): Remove.
819 (get_thread_arch_aspace_regcache_test): New.
820 (registers_changed_ptid_all_test): New.
821 (registers_changed_ptid_target_test): New.
822 (registers_changed_ptid_target_ptid_test): New.
823 (regcache_thread_ptid_changed): Remove regcache_count lambda.
824 (_initialize_regcache): Register new tests.
825
826 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
827
828 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
829 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
830 gdbarch and aspace parameter. Use current inferior's aspace.
831 Validate regcache's arch value.
832 (regcaches_test): Update.
833
834 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
835
836 * regcache.c (regcaches_test): Call registers_changed.
837
838 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
839
840 * infrun.c (process_event_stop_test): Fix typo "breapoint".
841
842 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
843
844 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
845 to find the end of prologue for flang compiled binaries.
846 * arm-tdep.c (arm_skip_prologue): Likewise.
847 * i386-tdep.c (i386_skip_prologue): Likewise.
848 * producer.c (producer_is_llvm): New function.
849 (producer_parsing_tests): Added new tests for clang/flang.
850 * producer.h (producer_is_llvm): New declaration.
851
852 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
853
854 * linux-nat.c (linux_nat_debug_printf): New function.
855 (linux_nat_debug_printf_1): New macro. Use throughout the file.
856
857 2020-08-18 Aaron Merey <amerey@redhat.com>
858
859 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
860 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
861 (CLIBS): Add DEBUGINFOD_LIBS.
862
863 2020-08-17 Sergei Trofimovich <siarheit@google.com>
864
865 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
866 'gdbarch_num_regs'.
867
868 2020-08-17 Tom Tromey <tromey@adacore.com>
869
870 * ada-varobj.c (ada_varobj_decode_var): Handle case where
871 ada_get_decoded_value returns NULL.
872
873 2020-08-17 Tom Tromey <tromey@adacore.com>
874
875 * python/py-inferior.c (infpy_search_memory): Use
876 gdb_py_object_from_ulongest.
877 * python/py-infevents.c (create_inferior_call_event_object)
878 (create_memory_changed_event_object): Use
879 gdb_py_object_from_ulongest.
880 * python/py-linetable.c (ltpy_entry_get_pc): Use
881 gdb_py_object_from_ulongest.
882
883 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
884
885 * loc.c (class symbol_needs_eval_context): Fix indentation.
886
887 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
888
889 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
890 bool.
891
892 2020-08-17 Tom de Vries <tdevries@suse.de>
893
894 PR gdb/26393
895 * gdbtypes.c (dump_dynamic_prop): New function.
896 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
897
898 2020-08-15 Tom de Vries <tdevries@suse.de>
899
900 PR backtrace/26390
901 * stack.c (print_frame_args): Temporarily set the selected
902 frame to FRAME while printing the frame's arguments.
903
904 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
905
906 PR breakpoints/26385
907 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
908 Always clear watchpoint with PTRACE_SET_DEBUGREG.
909
910 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
911
912 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
913 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
914 and >= to check return value instead of == -1 and != -1.
915
916 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
917
918 * utils.h (class gdb_argv) <as_array_view>: New method.
919 * utils.c (gdb_argv_as_array_view_test): New.
920 (_initialize_utils): Register selftest.
921 * maint.c (maintenance_selftest): Use the new method.
922
923 2020-08-13 Kamil Rytarowski <n54@gmx.com>
924
925 * target.h (supports_dumpcore, dumpcore): New
926 function declarations.
927 * target.c (supports_dumpcore, dumpcore): New
928 functions.
929 * target-delegates.c: Rebuild.
930 * gcore.c (gcore_command): Use target_supports_dumpcore ()
931 and target_dumpcore ().
932
933 2020-08-13 Aaron Merey <amerey@redhat.com>
934
935 * debuginfod-support.c: Replace global variables with user_data.
936
937 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
938
939 * maint.c (maintenance_selftest): Split args and pass array_view
940 to run_tests.
941
942 2020-08-12 Luis Machado <luis.machado@linaro.org>
943
944 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
945 type's length.
946 Use %s and pulongest to print the length.
947
948 2020-08-12 Pedro Alves <palves@redhat.com>
949
950 * NEWS: Move "Multi-target debugging support" item to the
951 "Changes since GDB 9" section.
952
953 2020-08-12 Pedro Alves <palves@redhat.com>
954
955 PR gdb/26336
956 * progspace.c (program_space::remove_objfile): Invalidate the
957 frame cache.
958
959 2020-08-11 Tom de Vries <tdevries@suse.de>
960
961 * MAINTAINERS: Mark ms1 as deleted.
962
963 2020-08-10 Luis Machado <luis.machado@linaro.org>
964
965 PR gdb/26310
966
967 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
968 act accordingly.
969 (aarch64_analyze_prologue_test): Add more unit tests to exercise
970 movz/str/stur/stp skipping behavior.
971
972 2020-08-10 Luis Machado <luis.machado@linaro.org>
973
974 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
975 struct user_sve_header instead of struct sve_context.
976
977 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
978
979 * read.h (dwarf2_fetch_die_loc_sect_off,
980 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
981 `void *` parameter with function_view.
982 * read.c (dwarf2_fetch_die_loc_sect_off,
983 dwarf2_fetch_die_loc_cu_off): Likewise.
984 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
985 (per_cu_dwarf_call): Adjust.
986 (get_frame_address_in_block_wrapper): Remove.
987 (indirect_synthetic_pointer): Adjust.
988 (get_ax_pc): Remove.
989 (dwarf2_compile_expr_to_ax): Adjust.
990
991 2020-08-08 Tom de Vries <tdevries@suse.de>
992
993 PR build/26344
994 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
995 constructor.
996 * regcache.c (get_thread_arch_aspace_regcache): Same.
997
998 2020-08-07 Tom Tromey <tromey@adacore.com>
999
1000 * ravenscar-thread.c
1001 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
1002 New method.
1003 (ravenscar_thread_target::wait): Check
1004 runtime_initialized.
1005 (ravenscar_thread_target::prepare_to_store)
1006 (ravenscar_thread_target::stopped_by_sw_breakpoint)
1007 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1008 (ravenscar_thread_target::stopped_by_watchpoint)
1009 (ravenscar_thread_target::stopped_data_address)
1010 (ravenscar_thread_target::core_of_thread): Use
1011 scoped_restore_current_thread and
1012 set_base_thread_from_ravenscar_task.
1013
1014 2020-08-07 Tom Tromey <tromey@adacore.com>
1015
1016 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1017
1018 2020-08-07 Tom Tromey <tromey@adacore.com>
1019
1020 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1021 update_inferior_ptid before update_thread_list.
1022 (temporarily_change_regcache_ptid): New class.
1023 (ravenscar_thread_target::fetch_registers)
1024 (ravenscar_thread_target::store_registers)
1025 (ravenscar_thread_target::prepare_to_store): Use base thread when
1026 forwarding operation.
1027
1028 2020-08-07 Tom Tromey <tromey@adacore.com>
1029
1030 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1031 "is_pid" case.
1032
1033 2020-08-07 Tom Tromey <tromey@adacore.com>
1034
1035 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1036 New methods.
1037 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1038 first.
1039 (ravenscar_thread_target::add_thread): Rename from
1040 ravenscar_add_thread.
1041 (ravenscar_thread_target::update_thread_list): Use a lambda.
1042 (ravenscar_thread_target::xfer_partial): New method.
1043
1044 2020-08-07 Tom Tromey <tromey@adacore.com>
1045
1046 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1047 gdb::function_view.
1048 (iterate_over_live_ada_tasks): Change type of argument.
1049 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1050 of argument.
1051
1052 2020-08-07 Tom Tromey <tromey@adacore.com>
1053
1054 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1055 Remove.
1056 (ravenscar_thread_target::extra_thread_info): Remove.
1057 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1058 defer to target beneath for non-Ravenscar threads.
1059
1060 2020-08-07 Tom Tromey <tromey@adacore.com>
1061
1062 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1063 get_base_thread_from_ravenscar_task>: Now methods.
1064 <m_cpu_map>: New member.
1065 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1066 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1067 (ravenscar_thread_target::task_is_currently_active): Update.
1068 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1069 Now a method.
1070 (ravenscar_thread_target::add_active_thread): Put initial thread
1071 into the m_cpu_map.
1072
1073 2020-08-07 Tom Tromey <tromey@adacore.com>
1074
1075 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1076 event_ptid.
1077
1078 2020-08-07 Tom Tromey <tromey@adacore.com>
1079
1080 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1081 runtime_initialized.
1082
1083 2020-08-07 Tom Tromey <tromey@adacore.com>
1084
1085 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1086 add_active_thread.
1087 (ravenscar_thread_target::add_active_thread): Now public.
1088 (ravenscar_inferior_created): Call add_active_thread after pushing
1089 the target.
1090
1091 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1092
1093 * regcache.c (ptid_regcache_map): New type.
1094 (target_ptid_regcache_map): New type.
1095 (regcaches): Change type to target_ptid_regcache_map.
1096 (get_thread_arch_aspace_regcache): Update to regcaches' new
1097 type.
1098 (regcache_thread_ptid_changed): Likewise.
1099 (registers_changed_ptid): Likewise.
1100 (regcaches_size): Likewise.
1101 (regcaches_test): Update.
1102 (regcache_thread_ptid_changed): Update.
1103 * regcache.h (regcache_up): New type.
1104 * gdbsupport/ptid.h (hash_ptid): New struct.
1105
1106 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1107
1108 * observable.h (thread_ptid_changed): Add parameter
1109 `process_stratum_target *`.
1110 * infrun.c (infrun_thread_ptid_changed): Add parameter
1111 `process_stratum_target *` and use it.
1112 (selftests): New namespace.
1113 (infrun_thread_ptid_changed): New function.
1114 (_initialize_infrun): Register selftest.
1115 * regcache.c (regcache_thread_ptid_changed): Add parameter
1116 `process_stratum_target *` and use it.
1117 (regcache_thread_ptid_changed): New function.
1118 (_initialize_regcache): Register selftest.
1119 * thread.c (thread_change_ptid): Pass target to
1120 thread_ptid_changed observable.
1121
1122 2020-08-06 Caroline Tice <cmtice@google.com>
1123
1124 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1125 (struct dwp_sections): Update field comments. Add loclists and
1126 rnglists fields.
1127 (struct virtual_v2_dwo_sections): Rename struct to
1128 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1129 size & offset fields for loclists and rnglists.
1130 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1131 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1132 skipping dummy type units.
1133 (create_dwp_hash_table): Update the large comment above the function to
1134 discuss Version 5 DWP files as well, with references. Update all the
1135 version checks in the function to check for version 5 as well. Add new
1136 section at the end to create dwp hash table for version 5.
1137 (create_dwp_v2_section): Rename function to
1138 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1139 Add V5 to error message text.
1140 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1141 into calls to create_dwp_v2_or_v5_section.
1142 (create_dwo_unit_in_dwp_v5): New function.
1143 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1144 check for version2; add else clause to handle version 5.
1145 (open_and_init_dwo_file): Add code to check dwarf version & only call
1146 create_debug_types_hash_table (with sections.types) if version is not 5;
1147 else call create_debug_type_hash_table, with sections.info.
1148 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1149 version 5.
1150 (dwarf2_locate_v5_dwp_sections): New function.
1151 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1152 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1153
1154 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1155
1156 * regcache.h (class regcache): Remove friend
1157 registers_changed_ptid.
1158 <regcache_thread_ptid_changed>: Remove.
1159 <regcaches>: Remove.
1160 * regcache.c (regcache::regcaches): Rename to...
1161 (regcaches): ... this. Make static.
1162 (get_thread_arch_aspace_regcache): Update.
1163 (regcache::regcache_thread_ptid_changed): Rename to...
1164 (regcache_thread_ptid_changed): ... this. Update.
1165 (class regcache_access): Remove.
1166 (regcaches_test): Update.
1167 (_initialize_regcache): Update.
1168 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1169 <forward_list>.
1170
1171 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1172
1173 * regcache.h (class regcache) <current_regcache>: Rename to...
1174 <regcaches>: ... this. Move doc here.
1175 * regcache.c (regcache::current_regcache) Rename to...
1176 (regcache::regcaches): ... this. Move doc to header.
1177 (get_thread_arch_aspace_regcache): Update.
1178 (regcache::regcache_thread_ptid_changed): Update.
1179 (registers_changed_ptid): Update.
1180 (class regcache_access) <current_regcache_size>: Rename to...
1181 <regcaches_size>: ... this.
1182 (current_regcache_test): Rename to...
1183 (regcaches_test): ... this.
1184 (_initialize_regcache): Update.
1185
1186 2020-08-06 Victor Collod <vcollod@nvidia.com>
1187
1188 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1189
1190 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1191
1192 * corelow.c (core_target::build_file_mappings): Don't output
1193 null pathname in warning.
1194
1195 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1196
1197 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1198 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1199 gdb.dwarf2/dw2-single-line-discriminators.exp,
1200 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1201
1202 2020-08-05 Tom Tromey <tromey@adacore.com>
1203
1204 PR rust/26197:
1205 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1206 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1207 Fix off-by-one and type size errors in ordinary case.
1208
1209 2020-08-05 Tom de Vries <tdevries@suse.de>
1210
1211 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1212 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1213
1214 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1215
1216 * frame.h (frame_id_p): Return bool.
1217 (frame_id_artificial_p): Return bool.
1218 (frame_id_eq): Return bool.
1219 (has_stack_frames): Return bool.
1220 (get_selected_frame): Fix typo in comment.
1221 (get_frame_pc_if_available): Return bool.
1222 (get_frame_address_in_block_if_available): Return bool.
1223 (get_frame_func_if_available): Return bool.
1224 (read_frame_register_unsigned): Return bool.
1225 (get_frame_register_bytes): Return bool.
1226 (safe_frame_unwind_memory): Return bool.
1227 (deprecated_frame_register_read): Return bool.
1228 (frame_unwinder_is): Return bool.
1229 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1230 bool.
1231 <this_id::p>: Likewise.
1232 <prev_p>: Likewise.
1233 (frame_stash_add): Return bool.
1234 (get_frame_id): Use bool.
1235 (frame_id_build_special) Use bool.
1236 (frame_id_build_unavailable_stack): Use bool.
1237 (frame_id_build): Use bool.
1238 (frame_id_p): Return bool, use true/false instead of 1/0.
1239 (frame_id_artificial_p): Likewise.
1240 (frame_id_eq): Likewise.
1241 (frame_id_inner): Likewise.
1242 (get_frame_func_if_available): Likewise.
1243 (read_frame_register_unsigned): Likewise.
1244 (deprecated_frame_register_read): Likewise.
1245 (get_frame_register_bytes): Likewise.
1246 (has_stack_frames): Likewise.
1247 (inside_main_func): Likewise.
1248 (inside_entry_func): Likewise.
1249 (get_frame_pc_if_available): Likewise.
1250 (get_frame_address_in_block_if_available): Likewise.
1251 (frame_unwinder_is): Likewise.
1252 (safe_frame_unwind_memory): Likewise.
1253 (frame_unwind_arch): Likewise.
1254
1255 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1256
1257 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1258 type to cached_copy_status.
1259 (fprintf_frame): Adjust.
1260 (get_frame_func_if_available): Adjust.
1261 (frame_cleanup_after_sniffer): Adjust.
1262
1263 2020-08-04 Mark Wielaard <mark@klomp.org>
1264
1265 * MAINTAINERS (Write After Approval): Update email address.
1266
1267 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1268
1269 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1270 dynamic_prop::const_val.
1271
1272 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1273
1274 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1275 dynamic_prop::kind.
1276
1277 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1278
1279 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1280
1281 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1282
1283 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1284
1285 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1286 Jose E. Marchesi <jose.marchesi@oracle.com>
1287
1288 * configure.tgt: Add entry for bpf-*-*.
1289 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1290 (ALLDEPFILES): Add bpf-tdep.c.
1291 * bpf-tdep.c: New file.
1292 * MAINTAINERS: Add bpf target and maintainer.
1293 * NEWS: Mention the support for the new target.
1294
1295 2020-08-04 Tom de Vries <tdevries@suse.de>
1296
1297 PR symtab/23270
1298 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1299 Error.
1300
1301 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1302
1303 * syscalls/freebsd.xml: Regenerate.
1304
1305 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1306
1307 * syscalls/update-freebsd.sh: Fix usage and year range.
1308
1309 2020-08-03 Tom de Vries <tdevries@suse.de>
1310
1311 PR symtab/26333
1312 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1313 DW_LNE_lo_user/DW_LNE_hi_user range.
1314
1315 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1316
1317 PR ada/26318
1318 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1319 kind.
1320
1321 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1322
1323 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1324
1325 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1326
1327 * breakpoint.c (set_breakpoint_condition): Update the condition
1328 expressions after checking that the input condition string parses
1329 successfully and does not contain junk at the end.
1330
1331 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1332
1333 * breakpoint.c (set_breakpoint_condition): Update the
1334 condition string after parsing the new condition successfully.
1335
1336 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1337
1338 * proc-api.c (_STRUCTURED_PROC): Don't define.
1339 * proc-events.c: Likewise.
1340 * proc-flags.c: Likewise.
1341 * proc-why.c: Likewise.
1342 * procfs.c: Likewise.
1343
1344 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1345 * configure, config.in: Regenerate.
1346
1347 2020-07-30 Tom de Vries <tdevries@suse.de>
1348
1349 PR build/26320
1350 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1351 m_red/m_green/m_blue in a union.
1352
1353 2020-07-29 Tom de Vries <tdevries@suse.de>
1354
1355 PR tdep/26280
1356 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1357
1358 2020-07-28 Tom Tromey <tromey@adacore.com>
1359
1360 PR symtab/26270:
1361 * symtab.h (find_pc_partial_function_sym): Declare.
1362 * cli/cli-cmds.c (disassemble_command): Use
1363 find_pc_partial_function_sym. Check asm_demangle.
1364 * blockframe.c (cache_pc_function_sym): New global.
1365 (cache_pc_function_name): Remove.
1366 (clear_pc_function_cache): Update.
1367 (find_pc_partial_function_sym): New function, from
1368 find_pc_partial_function.
1369 (find_pc_partial_function): Rewrite using
1370 find_pc_partial_function_sym.
1371
1372 2020-07-28 Tom Tromey <tromey@adacore.com>
1373
1374 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1375 help. Add usage.
1376
1377 2020-07-28 Tom Tromey <tromey@adacore.com>
1378
1379 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1380 <DW_OP_GNU_variable_value>: Cast to address type.
1381
1382 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1383
1384 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1385 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1386 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1387 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1388 (nbsd_get_siginfo_type): New.
1389 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1390 (_initialize_nbsd_tdep): New.
1391
1392 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1393
1394 PR binutils/26301
1395 * configure: Regenerated.
1396
1397 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1398
1399 PR binutils/26301
1400 * configure: Regenerated.
1401
1402 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1403
1404 * python/py-frame.c: Remove 'user-regs.h' include.
1405 (frapy_read_register): Rewrite to make use of
1406 gdbpy_parse_register_id.
1407 * python/py-registers.c (gdbpy_parse_register_id): New function,
1408 moved here from python/py-unwind.c. Updated the return type, and
1409 also accepts register descriptor objects.
1410 * python/py-unwind.c: Remove 'user-regs.h' include.
1411 (pyuw_parse_register_id): Moved to python/py-registers.c.
1412 (unwind_infopy_add_saved_register): Update to use
1413 gdbpy_parse_register_id.
1414 (pending_framepy_read_register): Likewise.
1415 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1416
1417 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1418
1419 * python/py-registers.c: Add 'user-regs.h' include.
1420 (register_descriptor_iter_find): New function.
1421 (register_descriptor_iterator_object_methods): New static global
1422 methods array.
1423 (register_descriptor_iterator_object_type): Add pointer to methods
1424 array.
1425
1426 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1427
1428 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1429 for all architectures on FreeBSD 11.3 and later.
1430
1431 2020-07-27 Tom Tromey <tromey@adacore.com>
1432
1433 * gcore.h (load_corefile): Don't declare.
1434
1435 2020-07-27 Tom de Vries <tdevries@suse.de>
1436
1437 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1438 * config.in: Regenerate.
1439 * configure: Regenerate.
1440
1441 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1442
1443 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1444 ws2tcpip.h. When checking whether socklen_t type is defined, use
1445 ws2tcpip.h if it is available and sys/socket.h isn't.
1446 * configure: Regenerate.
1447 * config.in: Regenerate.
1448
1449 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1450
1451 PR fortran/23051
1452 PR fortran/26139
1453 * valops.c (value_ind): Pass address to
1454 readjust_indirect_value_type.
1455 * value.c (readjust_indirect_value_type): Make parameter
1456 non-const, and add extra address parameter. Resolve original type
1457 before using it.
1458 * value.h (readjust_indirect_value_type): Update function
1459 signature and comment.
1460
1461 2020-07-25 Tom de Vries <tdevries@suse.de>
1462
1463 PR symtab/26243
1464 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1465 entries.
1466
1467 2020-07-24 Aaron Merey <amerey@redhat.com>
1468
1469 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1470 * configure: Rebuild.
1471
1472 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1473
1474 PR corefiles/26294
1475 * corelow.c (_initialize_corelow): Add period to help text
1476 for "maintenance print core-file-backed-mappings".
1477
1478 2020-07-23 Pedro Alves <pedro@palves.net>
1479
1480 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1481 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1482 meanwhile.
1483 * frame.c (frame_cache_generation, get_frame_cache_generation):
1484 New.
1485 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1486 (get_prev_frame_if_no_cycle): On exception, don't touch
1487 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1488 * frame.h (get_frame_cache_generation): Declare.
1489
1490 2020-07-23 Tom de Vries <tdevries@suse.de>
1491
1492 PR tui/26282
1493 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1494 New default constructor.
1495
1496 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1497
1498 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1499 exclude non-statement entries.
1500
1501 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1502
1503 * NEWS (New commands): Mention new command
1504 "maintenance print core-file-backed-mappings".
1505
1506 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1507
1508 * corelow.c (gdbcmd.h): Include.
1509 (core_target::info_proc_mappings): New method.
1510 (get_current_core_target): New function.
1511 (maintenance_print_core_file_backed_mappings): New function.
1512 (_initialize_corelow): Add core-file-backed-mappings to
1513 "maint print" commands.
1514
1515 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1516
1517 * linux-tdep.c (dump_note_entry_p): New function.
1518 (linux_dump_mapping_p_ftype): New typedef.
1519 (linux_find_memory_regions_full): Add new parameter,
1520 should_dump_mapping_p.
1521 (linux_find_memory_regions): Adjust call to
1522 linux_find_memory_regions_full.
1523 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1524 call to linux_find_memory_regions_full.
1525
1526 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1527
1528 * corelow.c (solist.h, unordered_map): Include.
1529 (class core_target): Add field m_core_file_mappings and
1530 method build_file_mappings.
1531 (core_target::core_target): Call build_file_mappings.
1532 (core_target::~core_target): Free memory associated with
1533 m_core_file_mappings.
1534 (core_target::build_file_mappings): New method.
1535 (core_target::xfer_partial): Use m_core_file_mappings
1536 for memory transfers.
1537 * linux-tdep.c (linux_read_core_file_mappings): New
1538 function.
1539 (linux_core_info_proc_mappings): Rewrite to use
1540 linux_read_core_file_mappings.
1541 (linux_init_abi): Register linux_read_core_file_mappings.
1542
1543 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1544
1545 * arch-utils.c (default_read_core_file_mappings): New function.
1546 * arch-utils.c (default_read_core_file_mappings): Declare.
1547 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1548 * gdbarch.h, gdbarch.c: Regenerate.
1549
1550 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1551
1552 PR corefiles/25631
1553 * corelow.c (core_target:xfer_partial): Revise
1554 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1555 case after first checking the stratum beneath the core
1556 target.
1557 (has_all_memory): Return true.
1558 * target.c (raw_memory_xfer_partial): Revise comment
1559 regarding use of has_all_memory.
1560
1561 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1562
1563 * exec.h (section_table_xfer_memory): Revise declaration,
1564 replacing section name parameter with an optional callback
1565 predicate.
1566 * exec.c (section_table_xfer_memory): Likewise.
1567 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1568 of section_table_xfer_memory.
1569
1570 2020-07-22 Tom Tromey <tromey@adacore.com>
1571
1572 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1573 lookup_symbol_search_name.
1574
1575 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1576
1577 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1578 redundant local variable.
1579 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1580 reference, not pointer, update code accordingly.
1581
1582 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1583 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1584
1585 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1586 * jit.c (jit_breakpoint_re_set_internal): Use the
1587 `skip_jit_symbol_lookup` field.
1588
1589 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1590 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1591
1592 * jit.c (jit_read_descriptor): Define the descriptor address once,
1593 use twice.
1594 (jit_breakpoint_deleted): Move the declaration of the loop variable
1595 `iter` into the loop header.
1596 (jit_breakpoint_re_set_internal): Move the declaration of the local
1597 variable `objf_data` to the first point of definition.
1598 (jit_event_handler): Move the declaration of local variables
1599 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1600 Rename `objf` to `jited`.
1601
1602 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1603
1604 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1605 Remove.
1606 * jit.c (get_jiter_objfile_data): Update.
1607
1608 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1609 Simon Marchi <simon.marchi@polymtl.ca>
1610
1611 * jit.c (struct jit_program_space_data): Remove.
1612 (jit_program_space_key): Remove.
1613 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1614 stuff.
1615 (get_jit_program_space_data): Remove.
1616 (jit_breakpoint_deleted): Iterate on all of the program space's
1617 objfiles.
1618 (jit_inferior_init): Likewise.
1619 (jit_breakpoint_re_set_internal): Likewise. Also change return
1620 type to void.
1621 (jit_breakpoint_re_set): Pass current_program_space to
1622 jit_breakpoint_re_set_internal.
1623
1624 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1625
1626 * jit.h (struct jiter_objfile_data) <cached_code_address,
1627 jit_breakpoint>: Move to here from ...
1628 * jit.c (jit_program_space_data): ... here.
1629 (jiter_objfile_data::~jiter_objfile_data): Update.
1630 (jit_breakpoint_deleted): Update.
1631 (jit_breakpoint_re_set_internal): Update.
1632
1633 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1634
1635 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1636 checks.
1637 (jit_read_descriptor): Remove NULL check.
1638 (jit_event_handler): Add an assertion.
1639
1640 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1641
1642 * jit.h (struct jit_objfile_data): Split into...
1643 (struct jiter_objfile_data): ... this ...
1644 (struct jited_objfile_data): ... and this.
1645 * objfiles.h (struct objfile) <jit_data>: Remove.
1646 <jiter_data, jited_data>: New fields.
1647 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1648 (jiter_objfile_data::~jiter_objfile_data): ... this.
1649 (get_jit_objfile_data): Rename to ...
1650 (get_jiter_objfile_data): ... this.
1651 (add_objfile_entry): Update.
1652 (jit_read_descriptor): Use get_jiter_objfile_data.
1653 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1654 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1655 (jit_inferior_exit_hook): Use objfile's jited_data field.
1656
1657 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1658
1659 * jit.h: Forward-declare `struct minimal_symbol`.
1660 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1661 constructor, destructor, and an objfile* field.
1662 * jit.c (jit_objfile_data): Remove.
1663 (struct jit_objfile_data): Migrate from here to jit.h.
1664 (jit_objfile_data::~jit_objfile_data): New destructor
1665 implementation with code moved from free_objfile_data.
1666 (free_objfile_data): Delete.
1667 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1668 (jit_find_objf_with_entry_addr): Ditto.
1669 (jit_inferior_exit_hook): Ditto.
1670 (_initialize_jit): Remove the call to
1671 register_objfile_data_with_cleanup.
1672 * objfiles.h (struct objfile) <jit_data>: New field.
1673
1674 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1675
1676 * jit.h: Forward-declare `struct objfile`.
1677 (jit_event_handler): Add a second parameter, the JITer objfile.
1678 * jit.c (jit_read_descriptor): Change the signature to take the
1679 JITer objfile as an argument instead of the jit_program_space_data.
1680 (jit_inferior_init): Update the call to jit_read_descriptor.
1681 (jit_event_handler): Use the new JITer objfile argument when calling
1682 jit_read_descriptor.
1683 * breakpoint.c (handle_jit_event): Update the call to
1684 jit_event_handler to pass the JITer objfile.
1685
1686 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1687
1688 * gdbarch.c: Regenerate.
1689 * gdbarch.h: Regenerate.
1690 * gdbarch.sh (handle_segmentation_fault): Remove method.
1691 * infrun.c (handle_segmentation_fault): Remove.
1692 (print_signal_received_reason): Remove call to
1693 handle_segmentation_fault.
1694
1695 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1696
1697 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1698 Rename to sparc64_linux_report_signal_info and add siggnal
1699 argument.
1700 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1701 instead of sparc64_linux_handle_segmentation_fault.
1702
1703 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1704
1705 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1706 i386_linux_report_signal_info instead of
1707 i386_linux_handle_segmentation_fault.
1708 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1709 to i386_linux_report_signal_info and add siggnal argument.
1710 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1711 of i386_linux_handle_segmentation_fault.
1712 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1713 to i386_linux_report_signal_info and add siggnal argument.
1714
1715 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1716
1717 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1718 hook if present.
1719
1720 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1721
1722 * gdbarch.c: Regenerate.
1723 * gdbarch.h: Regenerate.
1724 * gdbarch.sh (report_signal_info): New method.
1725 * infrun.c (print_signal_received_reason): Invoke gdbarch
1726 report_signal_info hook if present.
1727
1728 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1729
1730 * python/py-registers.c : Add 'unordered_map' include.
1731 (gdbpy_new_reggroup): Renamed to...
1732 (gdbpy_get_reggroup): ...this. Update to only create register
1733 group descriptors when needed.
1734 (gdbpy_reggroup_iter_next): Update.
1735
1736 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1737
1738 * python/py-registers.c (gdbpy_register_object_data): New static
1739 global.
1740 (gdbpy_register_object_data_init): New function.
1741 (gdbpy_new_register_descriptor): Renamed to...
1742 (gdbpy_get_register_descriptor): ...this, and update to reuse
1743 existing register descriptors where possible.
1744 (gdbpy_register_descriptor_iter_next): Update.
1745 (gdbpy_initialize_registers): Register new gdbarch data.
1746
1747 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1748
1749 * linux-nat.c (stopped_pids): Make static.
1750
1751 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1752
1753 PR ada/26235
1754 * gdbtypes.c (ada_discrete_type_low_bound,
1755 ada_discrete_type_high_bound): Handle undefined bounds.
1756
1757 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1758
1759 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1760 declaration.
1761 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1762 function.
1763
1764 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1765
1766 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1767 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1768 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1769 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1770 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1771 method.
1772
1773 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1774
1775 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1776 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1777 which are deprecated in Guile 3.0.
1778 * configure.ac (try_guile_versions): Add "guile-3.0".
1779 * configure (try_guile_versions): Regenerate.
1780 * NEWS: Update entry.
1781
1782 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1783 Doug Evans <dje@google.com>
1784
1785 PR gdb/21104
1786 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1787 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1788 USING_GUILE_BEFORE_2_2.
1789 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1790 Change type to 'scm_t_port_type *'.
1791 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1792 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1793 parameter and honor it. Update callers.
1794 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1795 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1796 functions.
1797 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1798 USING_GUILE_BEFORE_2_2.
1799 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1800 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1801 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1802 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1803 and 'SCM_PORT_TYPE'.
1804 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1805 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1806 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1807 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1808 [!USING_GUILE_BEFORE_2_2]: New functions.
1809 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1810 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1811 'gdbscm_memory_port_read'.
1812 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1813 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1814 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1815 function.
1816 (ioscm_init_memory_port): Remove.
1817 (ioscm_init_memory_port_stream): New function
1818 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1819 function.
1820 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1821 Return scm_from_uint (0).
1822 (gdbscm_set_memory_port_read_buffer_size_x)
1823 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1824 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1825 Return scm_from_uint (0).
1826 (gdbscm_set_memory_port_write_buffer_size_x)
1827 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1828 * configure.ac (try_guile_versions): Add "guile-2.2".
1829 * configure: Regenerate.
1830 * NEWS: Add entry.
1831
1832 2020-07-18 Tom Tromey <tom@tromey.com>
1833
1834 * linux-nat.c (linux_multi_process): Remove.
1835 (linux_nat_target::supports_multi_process): Return true.
1836
1837 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1838
1839 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1840 (riscv_lookup_target_description): Return pointer out of
1841 unique_ptr.
1842 * target-descriptions.c (allocate_target_description): Add
1843 comment.
1844 (target_desc_deleter::operator()): Likewise.
1845 * target-descriptions.h (struct target_desc_deleter): Moved to
1846 gdbsupport/tdesc.h.
1847 (target_desc_up): Likewise.
1848
1849 2020-07-17 Tom Tromey <tromey@adacore.com>
1850
1851 * linux-nat.c (linux_nat_target::supports_non_stop)
1852 (linux_nat_target::always_non_stop_p): Use "true".
1853 (linux_nat_target::supports_disable_randomization): Use "true" and
1854 "false".
1855
1856 2020-07-16 Caroline Tice <cmtice@google.com>
1857
1858 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1859 (RNGLIST_HEADER_SIZE64): New constant definition.
1860 (struct dwop_section_names): Add rnglists_dwo.
1861 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1862 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1863 (struct dwo_sections): Add rnglists field.
1864 (read_attribut_reprocess): Add tag parameter.
1865 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1866 (cu_debug_rnglists_section): New function (decl & definition).
1867 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1868 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1869 die whose range is being checked; get rnglist section from
1870 cu_debug_rnglists_section, to get from either objfile or dwo file as
1871 appropriate. Add cases for DW_RLE_base_addressx,
1872 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1873 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1874 test inside if-condition and updating complaint message.
1875 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1876 dwarf2_rnglists_process.
1877 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1878 dwarf2_ranges_process.
1879 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1880 need_ranges_base and update comment appropriately. Also pass die tag
1881 to dwarf2_ranges_read.
1882 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1883 need_ranges_base and update comment appropriately. Also pass die tag
1884 to dwarf2_ranges_process.
1885 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1886 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1887 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1888 need_ranges_base and update comment appropriately. Also pass die tag
1889 to read_attribute_reprocess and dwarf2_ranges_read.
1890 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1891 and update function comment appropriately.
1892 (read_loclist_index): Call read_loclists_rnglists_header instead of
1893 read_loclist_header.
1894 (read_rnglist_index): New function.
1895 (read_attribute_reprocess): Add tag parameter. Add code for
1896 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1897 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1898
1899 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1900
1901 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1902 being resolved.
1903
1904 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1905
1906 * arch-utils.c (show_architecture): Update formatting of messages.
1907
1908 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1909
1910 * gdbtypes.h (struct type) <bounds>: Handle array and string
1911 types.
1912 * ada-lang.c (assign_aggregate): Use type::bounds on
1913 array/string type.
1914 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1915 * c-varobj.c (c_number_of_children): Likewise.
1916 (c_describe_child): Likewise.
1917 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1918 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1919 (f_type_print_base): Likewise.
1920 * f-valprint.c (f77_array_offset_tbl): Likewise.
1921 (f77_get_upperbound): Likewise.
1922 (f77_print_array_1): Likewise.
1923 * guile/scm-type.c (gdbscm_type_range): Likewise.
1924 * m2-typeprint.c (m2_array): Likewise.
1925 (m2_is_long_set_of_type): Likewise.
1926 * m2-valprint.c (get_long_set_bounds): Likewise.
1927 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1928 * python/py-type.c (typy_range): Likewise.
1929 * rust-lang.c (rust_internal_print_type): Likewise.
1930 * type-stack.c (type_stack::follow_types): Likewise.
1931 * valarith.c (value_subscripted_rvalue): Likewise.
1932 * valops.c (value_cast): Likewise.
1933
1934 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1935
1936 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1937 callers to use the equivalent accessor methods.
1938
1939 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1940
1941 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1942 (struct type) <bit_stride>: New method.
1943 (TYPE_BIT_STRIDE): Remove.
1944 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1945
1946 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1947
1948 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1949 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1950 callers to use the equivalent accessor methods instead.
1951
1952 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1953
1954 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1955 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1956 callers to use the equivalent accessor methods instead.
1957
1958 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1959
1960 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1961 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1962 to use dynamic_prop::kind.
1963
1964 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1965
1966 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1967 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1968 to get the bound property's kind and check against
1969 PROP_UNDEFINED.
1970
1971 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1972
1973 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1974 all callers to use type::range_bounds followed by
1975 dynamic_prop::{low,high}.
1976
1977 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1978
1979 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1980 const_val, set_const_val, baton, set_locexpr, set_loclist,
1981 set_addr_offset, variant_parts, set_variant_parts,
1982 original_type, set_original_type>: New methods.
1983 <kind>: Rename to...
1984 <m_kind>: ... this. Update all users to use the new methods
1985 instead.
1986 <data>: Rename to...
1987 <m_data>: ... this. Update all users to use the new methods
1988 instead.
1989
1990 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1991
1992 * gdbtypes.c (get_discrete_bounds): Return failure if
1993 the range type's bounds are not both defined and constant
1994 values.
1995 (get_array_bounds): Update comment. Remove undefined bound check.
1996
1997 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1998
1999 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
2000 the type::bounds method directly.
2001
2002 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
2003
2004 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
2005 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
2006 are used to set the range type's bounds to use set_bounds.
2007
2008 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2009
2010 * exec.c (_initialize_exec): Update exec-file-mismatch help.
2011
2012 2020-07-10 Pedro Alves <pedro@palves.net>
2013
2014 * gdbthread.h (inferior_ref): Define.
2015 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
2016 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2017 * thread.c
2018 (scoped_restore_current_thread::restore):
2019 Adjust to gdb::ref_ptr.
2020 (scoped_restore_current_thread::~scoped_restore_current_thread):
2021 Remove manual decref handling.
2022 (scoped_restore_current_thread::scoped_restore_current_thread):
2023 Adjust to use
2024 inferior_ref::new_reference/thread_info_ref::new_reference.
2025 Incref the thread before calling get_frame_id instead of after.
2026 Let TARGET_CLOSE_ERROR propagate.
2027
2028 2020-07-10 Pedro Alves <pedro@palves.net>
2029
2030 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2031 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2032 NOT_AVAILABLE_ERROR.
2033 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2034 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2035
2036 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2037 Pedro Alves <pedro@palves.net>
2038
2039 PR gdb/26199
2040 * infrun.c (threads_are_resumed_pending_p): Delete.
2041 (do_target_wait): Remove threads_are_executing and
2042 threads_are_resumed_pending_p checks from the inferior_matches
2043 lambda. Update comments.
2044
2045 2020-07-10 Pedro Alves <pedro@palves.net>
2046
2047 PR gdb/26199
2048 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2049 executing threads.
2050
2051 2020-07-10 Pedro Alves <pedro@palves.net>
2052
2053 PR gdb/26199
2054 * infrun.c (handle_no_resumed): Handle multiple targets.
2055
2056 2020-07-10 Pedro Alves <pedro@palves.net>
2057
2058 PR gdb/26199
2059 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2060 target_is_async_p.
2061
2062 2020-07-10 Pedro Alves <pedro@palves.net>
2063
2064 PR gdb/26199
2065 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2066 threads, not all threads.
2067
2068 2020-07-10 Pedro Alves <pedro@palves.net>
2069
2070 PR gdb/26199
2071 * remote.c (remote_target::open_1): Pass remote target pointer as
2072 data to create_async_event_handler.
2073 (remote_async_inferior_event_handler): Mark async event handler
2074 before returning if the remote target still has either pending
2075 events or unacknowledged notifications.
2076
2077 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2078
2079 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2080 declaration.
2081 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2082 function.
2083
2084 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2085
2086 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2087 inferior_ptid.
2088
2089 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2090
2091 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2092 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2093 AT_FREEBSD_PS_STRINGS.
2094
2095 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2096
2097 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2098 of debugfile path on Windows.
2099
2100 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2101
2102 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2103 argument to 'data'.
2104
2105 2020-07-08 Tom Tromey <tromey@adacore.com>
2106
2107 * ada-lang.c (ada_exception_message_1): Use read_memory.
2108
2109 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2110
2111 PR python/22748
2112 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2113 special handling for inline frames.
2114 * findvar.c (value_of_register_lazy): Skip inline frames when
2115 creating lazy register values.
2116 * frame.c (frame_id_computed_p): Delete definition.
2117 * frame.h (frame_id_computed_p): Delete declaration.
2118
2119 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2120
2121 * NEWS: Mention additions to Python API.
2122 * python/py-arch.c (archpy_register_groups): New function.
2123 (arch_object_methods): Add 'register_groups' method.
2124 * python/py-registers.c (reggroup_iterator_object): New struct.
2125 (reggroup_object): New struct.
2126 (gdbpy_new_reggroup): New function.
2127 (gdbpy_reggroup_to_string): New function.
2128 (gdbpy_reggroup_name): New function.
2129 (gdbpy_reggroup_iter): New function.
2130 (gdbpy_reggroup_iter_next): New function.
2131 (gdbpy_new_reggroup_iterator): New function
2132 (gdbpy_initialize_registers): Register new types.
2133 (reggroup_iterator_object_type): Define new Python type.
2134 (gdbpy_reggroup_getset): New static global.
2135 (reggroup_object_type): Define new Python type.
2136 * python/python-internal.h
2137
2138 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2139
2140 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2141 * python/py-arch.c (archpy_registers): New function.
2142 (arch_object_methods): Add 'registers' method.
2143 * python/py-registers.c: New file.
2144 * python/python-internal.h
2145 (gdbpy_new_register_descriptor_iterator): Declare.
2146 (gdbpy_initialize_registers): Declare.
2147 * python/python.c (do_start_initialization): Call
2148 gdbpy_initialize_registers.
2149 * NEWS: Mention additions to the Python API.
2150
2151 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2152
2153 * NEWS: Mention new Python API method.
2154 * python/py-unwind.c (pending_framepy_architecture): New function.
2155 (pending_frame_object_methods): Add architecture method.
2156
2157 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2158
2159 * gdbarch.c: Regenerate.
2160 * gdbarch.h: Regenerate.
2161 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2162 (gdbarch_data): Use internal_error for the case where
2163 deprecated_set_gdbarch_data was originally needed.
2164 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2165 and use passed in obstack.
2166 (libunwind_frame_set_descr): Should no longer get back NULL from
2167 gdbarch_data.
2168 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2169 type.
2170 * user-regs.c (user_regs_init): Update parameters, and use passed
2171 in obstack.
2172 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2173 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2174
2175 2020-07-06 Tom de Vries <tdevries@suse.de>
2176
2177 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2178 End-Of-Sequence in lte_is_less_than.
2179 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2180 "gdb: Don't reorder line table entries too much when sorting".
2181
2182 2020-07-06 Tom de Vries <tdevries@suse.de>
2183
2184 PR tui/26205
2185 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2186
2187 2020-07-05 Tom de Vries <tdevries@suse.de>
2188
2189 PR build/26187
2190 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2191 std::uncaught_exceptions instead of deprecated
2192 std::uncaught_exception.
2193
2194 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2195
2196 * macroexp.h (macro_stringify): Return
2197 gdb::unique_xmalloc_ptr<char>.
2198 * macroexp.c (macro_stringify): Likewise.
2199 * macrotab.c (fixup_definition): Update.
2200
2201 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2202
2203 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2204 (lex_one_token): Update.
2205 * macroexp.c (struct macro_buffer) <release>: Return
2206 gdb::unique_xmalloc_ptr<char>.
2207 (macro_stringify): Update.
2208 (macro_expand): Update.
2209 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2210 * macroexp.h (macro_expand_next): Likewise.
2211
2212 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2213
2214 * macroexp.h (macro_lookup_ftype): Remove.
2215 (macro_expand, macro_expand_once, macro_expand_next): Remove
2216 lookup function parameters, add scope parameter.
2217 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2218 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2219 * macroscope.h (standard_macro_lookup): Change parameter type
2220 to macro_scope.
2221 * macroscope.c (standard_macro_lookup): Likewise.
2222 * c-exp.y (lex_one_token): Update.
2223 * macrocmd.c (macro_expand_command): Likewise.
2224 (macro_expand_once_command): Likewise.
2225
2226 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2227
2228 * inf-loop.c (inferior_event_handler): Remove client_data param.
2229 * inf-loop.h (inferior_event_handler): Likewise.
2230 * infcmd.c (step_1): Adjust.
2231 * infrun.c (proceed): Adjust.
2232 (fetch_inferior_event): Remove client_data param.
2233 (infrun_async_inferior_event_handler): Adjust.
2234 * infrun.h (fetch_inferior_event): Remove `void *` param.
2235 * linux-nat.c (handle_target_event): Adjust.
2236 * record-btrace.c (record_btrace_handle_async_inferior_event):
2237 Adjust.
2238 * record-full.c (record_full_async_inferior_event_handler):
2239 Adjust.
2240 * remote.c (remote_async_inferior_event_handler): Adjust.
2241
2242 2020-07-01 Tom Tromey <tom@tromey.com>
2243
2244 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2245 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2246
2247 2020-07-01 Tom Tromey <tom@tromey.com>
2248
2249 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2250 tui_gen_win_info.
2251 (tui_win_info::make_window): Merge with
2252 tui_gen_win_info::make_window.
2253 (tui_win_info::make_visible): Move from tui_gen_win_info.
2254 * tui/tui-win.c (tui_win_info::max_width): Move from
2255 tui_gen_win_info.
2256 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2257 type.
2258 <window_factory>: Likewise.
2259 * tui/tui-layout.c (tui_win_info::resize): Move from
2260 tui_gen_win_info.
2261 (make_standard_window): Change return type.
2262 (get_locator_window, tui_get_window_by_name): Likewise.
2263 (tui_layout_window::apply): Remove a cast.
2264 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2265 (struct tui_win_info): Merge with tui_gen_win_info.
2266 (struct tui_gen_win_info): Remove.
2267
2268 2020-07-01 Tom Tromey <tom@tromey.com>
2269
2270 * tui/tui-stack.h (struct tui_locator_window): Derive from
2271 tui_win_info.
2272 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2273 <can_box>: New method.
2274
2275 2020-07-01 Tom Tromey <tom@tromey.com>
2276
2277 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2278
2279 2020-07-01 Tom Tromey <tom@tromey.com>
2280
2281 * tui/tui-regs.c (tui_data_window::display_registers_from)
2282 (tui_data_window::display_registers_from)
2283 (tui_data_window::first_data_item_displayed)
2284 (tui_data_window::delete_data_content_windows): Update.
2285 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2286 Remove.
2287 (tui_data_window::check_register_values): Update.
2288 (tui_data_item_window::rerender): Add parameters. Update.
2289 (tui_data_item_window::refresh_window): Remove.
2290 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2291 virtual.
2292 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2293 tui_gen_win_info.
2294 <refresh_window, max_height, min_height>: Remove.
2295 <rerender>: Add parameters.
2296 <x, y, visible>: New members.
2297 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2298 <m_item_width>: New member.
2299
2300 2020-07-01 Tom Tromey <tom@tromey.com>
2301
2302 * tui/tui-regs.c (tui_data_window::show_register_group)
2303 (tui_data_window::check_register_values): Update.
2304 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2305 from item_no.
2306
2307 2020-07-01 Tom Tromey <tom@tromey.com>
2308
2309 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2310 useless "if".
2311
2312 2020-07-01 Tom Tromey <tom@tromey.com>
2313
2314 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2315 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2316
2317 2020-07-01 Tom Tromey <tom@tromey.com>
2318
2319 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2320 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2321 (struct tui_line_or_address): Move from tui-data.h.
2322 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2323 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2324 (tui_cmd_window, tui_source_window_base, tui_source_window)
2325 (tui_disasm_window): Don't declare.
2326 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2327 to tui-winsource.h.
2328 (SINGLE_KEY): Move to tui-stack.c.
2329
2330 2020-07-01 Tom Tromey <tom@tromey.com>
2331
2332 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2333 std::string.
2334 * tui/tui-regs.c (class tab_expansion_file): New.
2335 (tab_expansion_file::write): New method.
2336 (tui_register_format): Change return type. Use
2337 tab_expansion_file.
2338 (tui_get_register, tui_data_window::display_registers_from)
2339 (tui_data_item_window::rerender): Update.
2340 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2341 * tui/tui-io.c (tui_expand_tabs): Remove.
2342
2343 2020-07-01 Tom Tromey <tom@tromey.com>
2344
2345 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2346
2347 2020-07-01 Fangrui Song <maskray@google.com>
2348
2349 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2350
2351 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2352
2353 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2354 forms for DW_AT_associated and DW_AT_allocated attributes,
2355 which is already checked in function attr_to_dynamic_prop.
2356
2357 2020-06-30 Tom Tromey <tromey@adacore.com>
2358
2359 * dwarf2/read.c (quirk_rust_enum): Correctly call
2360 alloc_rust_variant for default-less enum.
2361
2362 2020-06-30 Tom Tromey <tromey@adacore.com>
2363
2364 PR build/26183:
2365 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2366 gdb::to_string.
2367
2368 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2369
2370 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2371 * gdbarch.h: Re-generate.
2372
2373 2020-06-28 Tom Tromey <tom@tromey.com>
2374
2375 * command.h (cmd_types): Remove.
2376 (cmd_type): Don't declare.
2377 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2378 typedef.
2379 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2380 * cli/cli-decode.c (cmd_type): Remove.
2381
2382 2020-06-27 Pedro Alves <palves@redhat.com>
2383
2384 * fork-child.c (prefork_hook): Adjust.
2385 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2386 Delete.
2387 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2388 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2389 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2390 Remove declarations.
2391 (struct inferior) <set_tty, tty>: New methods.
2392 (struct inferior) <terminal>: Rename to ...
2393 (struct inferior) <m_terminal>: ... this and make private.
2394 * main.c (captured_main_1): Adjust.
2395 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2396 (mi_cmd_inferior_tty_show): Adjust.
2397 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2398 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2399
2400 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2401
2402 * configure.ac: Add --enable-libctf: handle --disable-static
2403 properly.
2404 * acinclude.m4: sinclude ../config/enable.m4.
2405 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2406 (LIBCTF): Substitute in.
2407 (CTF_DEPS): New, likewise.
2408 (CLIBS): libctf needs symbols from libbfd: move earlier.
2409 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2410 flags.
2411 * ctfread.c: Surround in ENABLE_LIBCTF.
2412 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2413 * configure: Regenerate.
2414 * config.in: Likewise.
2415
2416 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2417
2418 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2419
2420 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2421
2422 * inferior.h (struct inferior) <terminal>: Change type to
2423 gdb::unique_xmalloc_ptr<char>.
2424 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2425 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2426 field, adjust to unique pointer.
2427 (get_inferior_io_terminal): Adjust to unique pointer.
2428
2429 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2430
2431 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2432 registers, not just the known core set of registers.
2433
2434 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2435
2436 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2437 fflags, frm, and fcsr registers.
2438 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2439 restore groups.
2440 (riscv_tdesc_unknown_reg): New function.
2441 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2442 tdesc_use_registers.
2443 * riscv-tdep.h (struct gdbarch_tdep): Add
2444 unknown_csrs_first_regnum, unknown_csrs_count,
2445 duplicate_fflags_regnum, duplicate_frm_regnum, and
2446 duplicate_fcsr_regnum fields.
2447
2448 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2449
2450 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2451 callback, use the callback (when not null) to help number unknown
2452 registers.
2453 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2454 (tdesc_use_registers): Add extra parameter to declaration.
2455
2456 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2457
2458 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2459 in the file.
2460 (class riscv_pending_register_alias): Likewise.
2461 (riscv_register_feature::register_info): Change 'required_p' field
2462 to 'required', and change its type. Add 'check' member function.
2463 (riscv_register_feature::register_info::check): Define new member
2464 function.
2465 (riscv_xreg_feature): Change initialisation of 'required' field.
2466 (riscv_freg_feature): Likewise.
2467 (riscv_virtual_feature): Likewise.
2468 (riscv_csr_feature): Likewise.
2469 (riscv_check_tdesc_feature): Take extra parameter, the csr
2470 tdesc_feature, rewrite the function to use the new
2471 riscv_register_feature::register_info::check function.
2472 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2473
2474 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2475
2476 * features/Makefile: Remove all references to the deleted files
2477 below.
2478 * features/riscv/32bit-csr.c: Deleted.
2479 * features/riscv/32bit-csr.xml: Deleted.
2480 * features/riscv/64bit-csr.c: Deleted.
2481 * features/riscv/64bit-csr.xml: Deleted.
2482 * features/riscv/rebuild-csr-xml.sh: Deleted.
2483
2484 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2485
2486 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2487 whitespace error for declaration of names member variable.
2488 (struct riscv_register_feature): Add new prefer_first_name member
2489 variable, and fix whitespace error in declaration of registers.
2490 (riscv_xreg_feature): Initialize prefer_first_name field.
2491 (riscv_freg_feature): Likewise.
2492 (riscv_virtual_feature): Likewise.
2493 (riscv_csr_feature): Likewise.
2494 (riscv_register_name): Expand on comments. Remove register name
2495 modifications for CSR and virtual registers.
2496
2497 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2498
2499 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2500 errors.
2501
2502 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2503
2504 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2505 riscv-opc.h.
2506 (class riscv_pending_register_alias): New class.
2507 (riscv_check_tdesc_feature): Take vector of pending aliases and
2508 populate it as appropriate.
2509 (riscv_setup_register_aliases): Delete.
2510 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2511 to riscv_check_tdesc_feature in all cases. Use the vector to
2512 create the register aliases.
2513
2514 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2515
2516 * sol2-tdep.c (sol2_static_transform_name): Remove.
2517 (sol2_init_abi): Don't register it.
2518 * gdbarch.sh (static_transform_name): Remove.
2519 * gdbarch.c, gdbarch.h: Regenerate.
2520
2521 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2522 gdbarch_static_transform_name.
2523 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2524 * stabsread.c (define_symbol) <'X'>: Remove.
2525 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2526 handling.
2527 <'V'>: Likewise.
2528 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2529 <'S'>: Remove call to gdbarch_static_transform_name.
2530
2531 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2532
2533 * procfs.c (procfs_pre_trace): New function.
2534 (procfs_target::create_inferior): Pass it to fork_inferior.
2535
2536 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2537
2538 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2539 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2540 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2541 sol2-tdep.o, sparc-sol2-tdep.o.
2542 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2543 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2544 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2545 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2546
2547 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2548
2549 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2550 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2551 Call sol2_init_abi.
2552 Remove calls to set_gdbarch_skip_solib_resolver,
2553 set_gdbarch_core_pid_to_str.
2554 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2555 (i386_sol2_static_transform_name): Remove.
2556 (i386_sol2_init_abi): Call sol2_init_abi.
2557 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2558 set_gdbarch_static_transform_name,
2559 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2560 Use sol2_sigtramp_p.
2561 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2562 (sol2_sigtramp_p): New function.
2563 (sol2_static_transform_name): New function.
2564 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2565 (sol2_init_abi): New function.
2566 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2567 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2568 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2569 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2570 (sparc_sol2_static_transform_name): Remove.
2571 (sparc32_sol2_init_abi): Call sol2_init_abi.
2572 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2573 set_gdbarch_static_transform_name,
2574 set_gdbarch_skip_solib_resolver,
2575 set_gdbarch_core_pid_to_str.
2576 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2577 (sparc_sol2_static_transform_name): Remove
2578 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2579 call sol2_sigtramp_p.
2580 (sparc64_sol2_init_abi): Call sol2_init_abi.
2581 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2582 set_gdbarch_static_transform_name,
2583 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2584
2585 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2586
2587 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2588 * exec.c (validate_exec_file): If from_tty, set both
2589 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2590 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2591 and from_tty, unconditionally ask a confirmation.
2592
2593 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2594
2595 * target-descriptions.c (tdesc_architecture_name): Protect against
2596 NULL pointer dereference.
2597 (maint_print_xml_tdesc_cmd): New function.
2598 (_initialize_target_descriptions): Register new 'maint print
2599 xml-tdesc' command and give it the filename completer.
2600 * NEWS: Mention new 'maint print xml-tdesc' command.
2601
2602 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2603
2604 * target-descriptions.c (class tdesc_compatible_info): New class.
2605 (struct target_desc): Change type of compatible vector.
2606 (tdesc_compatible_p): Update for change in type of
2607 target_desc::compatible.
2608 (tdesc_compatible_info_list): New function.
2609 (tdesc_compatible_info_arch_name): New function.
2610 (tdesc_add_compatible): Update for change in type of
2611 target_desc::compatible.
2612 (print_c_tdesc::visit_pre): Likewise.
2613
2614 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2615
2616 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2617 whitespace to underscore.
2618 (maint_print_c_tdesc_cmd): Use fake filename for target
2619 descriptions that came from the target.
2620 (_initialize_target_descriptions): Add filename command completion
2621 for 'maint print c-tdesc'.
2622
2623 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2624
2625 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2626 lines.
2627
2628 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2629
2630 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2631 lines.
2632 (dwarf2_find_location_expression): Likewise.
2633 (call_site_parameter_matches): Likewise.
2634 (dwarf2_compile_expr_to_ax): Likewise.
2635 (disassemble_dwarf_expression): Likewise.
2636 (loclist_describe_location): Likewise.
2637
2638 2020-06-23 Pedro Alves <palves@redhat.com>
2639
2640 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2641 progspace-and-thread.h. Include scoped-mock-context.h instead.
2642 (register_to_value_test): Use scoped_mock_context.
2643 * regcache.c: Include "scoped-mock-context.h".
2644 (cooked_read_test): Don't error out if a target is already pushed.
2645 Use scoped_mock_context. Adjust.
2646 * scoped-mock-context.h: New file.
2647
2648 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2649
2650 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2651 initializer.
2652 (ada_language::is_string_type_p): New member function.
2653 * c-lang.c (c_language_data): Delete la_is_string_type_p
2654 initializer.
2655 (cplus_language_data): Likewise.
2656 (asm_language_data): Likewise.
2657 (minimal_language_data): Likewise.
2658 * d-lang.c (d_language_data): Likewise.
2659 * f-lang.c (f_is_string_type_p): Delete function, implementation
2660 moved to f_language::is_string_type_p.
2661 (f_language_data): Delete la_is_string_type_p initializer.
2662 (f_language::is_string_type_p): New member function,
2663 implementation from f_is_string_type_p.
2664 * go-lang.c (go_is_string_type_p): Delete function, implementation
2665 moved to go_language::is_string_type_p.
2666 (go_language_data): Delete la_is_string_type_p initializer.
2667 (go_language::is_string_type_p): New member function,
2668 implementation from go_is_string_type_p.
2669 * language.c (language_defn::is_string_type_p): Define new member
2670 function.
2671 (default_is_string_type_p): Make static, add comment copied from
2672 header file.
2673 (unknown_language_data): Delete la_is_string_type_p initializer.
2674 (unknown_language::is_string_type_p): New member function.
2675 (auto_language_data): Delete la_is_string_type_p initializer.
2676 (auto_language::is_string_type_p): New member function.
2677 * language.h (language_data): Delete la_is_string_type_p field.
2678 (language_defn::is_string_type_p): Declare new function.
2679 (default_is_string_type_p): Delete desclaration, move comment to
2680 definition.
2681 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2682 moved to m2_language::is_string_type_p.
2683 (m2_language_data): Delete la_is_string_type_p initializer.
2684 (m2_language::is_string_type_p): New member function,
2685 implementation from m2_is_string_type_p.
2686 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2687 initializer.
2688 * opencl-lang.c (opencl_language_data): Likewise.
2689 * p-lang.c (pascal_is_string_type_p): Delete function,
2690 implementation moved to pascal_language::is_string_type_p.
2691 (pascal_language_data): Delete la_is_string_type_p initializer.
2692 (pascal_language::is_string_type_p): New member function,
2693 implementation from pascal_is_string_type_p.
2694 * rust-lang.c (rust_is_string_type_p): Delete function,
2695 implementation moved to rust_language::is_string_type_p.
2696 (rust_language_data): Delete la_is_string_type_p initializer.
2697 (rust_language::is_string_type_p): New member function,
2698 implementation from rust_is_string_type_p.
2699 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2700 is_string_type_p.
2701
2702 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2703
2704 * ada-lang.c (ada_language_data): Delete la_print_typedef
2705 initializer.
2706 (ada_language::print_typedef): New member function.
2707 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2708 (cplus_language_data): Likewise.
2709 (asm_language_data): Likewise.
2710 (minimal_language_data): Likewise.
2711 * d-lang.c (d_language_data): Likewise.
2712 * f-lang.c (f_language_data): Likewise.
2713 (f_language::print_typedef): New member function.
2714 * go-lang.c (go_language_data): Delete la_print_typedef
2715 initializer.
2716 * language.c (language_defn::print_typedef): Define member
2717 function.
2718 (unknown_language_data): Delete la_print_typedef initializer.
2719 (unknown_language::print_typedef): New member function.
2720 (auto_language_data): Delete la_print_typedef initializer.
2721 (auto_language::print_typedef): New member function.
2722 * language.h (language_data): Delete la_print_typedef field.
2723 (language_defn::print_typedef): Declare new member function.
2724 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2725 (default_print_typedef): Delete declaration.
2726 * m2-lang.c (m2_language_data): Delete la_print_typedef
2727 initializer.
2728 (m2_language::print_typedef): New member function.
2729 * objc-lang.c (objc_language_data): Delete la_print_typedef
2730 initializer.
2731 * opencl-lang.c (opencl_language_data): Likewise.
2732 * p-lang.c (pascal_language_data): Likewise.
2733 (pascal_language::print_typedef): New member function.
2734 * rust-lang.c (rust_print_typedef): Delete function,
2735 implementation moved to rust_language::print_typedef.
2736 (rust_language): Delete la_print_typedef initializer.
2737 (rust_language::print_typedef): New member function,
2738 implementation from rust_print_typedef.
2739 * typeprint.c (default_print_typedef): Delete.
2740
2741 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2742
2743 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2744 (ada_language::printstr): New member function.
2745 * c-lang.c (c_language_data): Delete la_printstr initializer.
2746 (cplus_language_data): Likewise.
2747 (asm_language_data): Likewise.
2748 (minimal_language_data): Likewise.
2749 * d-lang.c (d_language_data): Likewise.
2750 * f-lang.c (f_printstr): Rename to f_language::printstr.
2751 (f_language_data): Delete la_printstr initializer.
2752 (f_language::printstr): New member function, implementation from
2753 f_printstr.
2754 * go-lang.c (go_language_data): Delete la_printstr initializer.
2755 * language.c (language_defn::printstr): Define new member
2756 function.
2757 (unk_lang_printstr): Delete.
2758 (unknown_language_data): Delete la_printstr initializer.
2759 (unknown_language::printstr): New member function.
2760 (auto_language_data): Delete la_printstr initializer.
2761 (auto_language::printstr): New member function.
2762 * language.h (language_data): Delete la_printstr field.
2763 (language_defn::printstr): Declare new member function.
2764 (LA_PRINT_STRING): Update call to printstr.
2765 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2766 (m2_language_data): Delete la_printstr initializer.
2767 (m2_language::printstr): New member function, implementation from
2768 m2_printstr.
2769 * objc-lang.c (objc_language_data): Delete la_printstr
2770 initializer.
2771 * opencl-lang.c (opencl_language_data): Likewise.
2772 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2773 (pascal_language_data): Delete la_printstr initializer.
2774 (pascal_language::printstr): New member function, implementation
2775 from pascal_printstr.
2776 * p-lang.h (pascal_printstr): Delete declaration.
2777 * rust-lang.c (rust_printstr): Update header comment.
2778 (rust_language_data): Delete la_printstr initializer.
2779 (rust_language::printstr): New member function.
2780
2781 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2782
2783 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2784 (ada_language::printchar): New member function.
2785 * c-lang.c (c_language_data): Delete la_printchar initializer.
2786 (cplus_language_data): Likewise.
2787 (asm_language_data): Likewise.
2788 (minimal_language_data): Likewise.
2789 * d-lang.c (d_language_data): Likewise.
2790 * f-lang.c (f_printchar): Rename to f_language::printchar.
2791 (f_language_data): Delete la_printchar initializer.
2792 (f_language::printchar): New member function, implementation from
2793 f_printchar.
2794 * go-lang.c (go_language_data): Delete la_printchar initializer.
2795 * language.c (unk_lang_printchar): Delete.
2796 (language_defn::printchar): Define new member function.
2797 (unknown_language_data): Delete la_printchar initializer.
2798 (unknown_language::printchar): New member function.
2799 (auto_language_data): Delete la_printchar initializer.
2800 (auto_language::printchar): New member function.
2801 * language.h (language_data): Delete la_printchar field.
2802 (language_defn::printchar): Declare new member function.
2803 (LA_PRINT_CHAR): Update call to printchar.
2804 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2805 (m2_language::printchar): New member function.
2806 * objc-lang.c (objc_language_data): Delete la_printchar
2807 initializer.
2808 * opencl-lang.c (opencl_language_data): Likewise.
2809 * p-lang.c (pascal_language_data): Delete la_printchar
2810 initializer.
2811 (pascal_language::printchar): New member function.
2812 * rust-lang.c (rust_printchar): Rename to
2813 rust_language::printchar.
2814 (rust_language_data): Delete la_printchar initializer.
2815 (rust_language::printchar): New member function, implementation
2816 from rust_printchar.
2817
2818 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2819
2820 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2821 (ada_language_data): Delete la_emitchar initializer.
2822 (ada_language::emitchar): New member function, implementation from
2823 emit_char.
2824 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2825 (cplus_language_data): Likewise.
2826 (asm_language_data): Likewise.
2827 (minimal_language_data): Likewise.
2828 * d-lang.c (d_language_data): Likewise.
2829 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2830 (f_language_data): Delete la_emitchar initializer.
2831 (f_language::emitchar): New member function, implementation from
2832 f_emit_char.
2833 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2834 * language.c (unk_lang_emit_char): Delete.
2835 (language_defn::emitchar): New member function definition.
2836 (unknown_language_data): Delete la_emitchar initializer.
2837 (unknown_language::emitchar): New member function.
2838 (auto_language_data): Delete la_emitchar initializer.
2839 (auto_language::emitchar): New member function.
2840 * language.h (language_data): Delete la_emitchar field.
2841 (language_defn::emitchar): New member field declaration.
2842 (LA_EMIT_CHAR): Update call to emitchar.
2843 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2844 (m2_language_data): Delete la_emitchar initializer.
2845 (m2_language::emitchar): New member function, implementation from
2846 m2_emit_char.
2847 * objc-lang.c (objc_language_data): Delete la_emitchar
2848 initializer.
2849 * opencl-lang.c (opencl_language_data): Likewise.
2850 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2851 (pascal_language_data): Delete la_emitchar initializer.
2852 (pascal_language::emitchar): New member function, implementation
2853 from pascal_emit_char.
2854 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2855 (rust_language_data): Delete la_emitchar initializer.
2856 (rust_language::emitchar): New member function, implementation
2857 from rust_emitchar.
2858
2859 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2860
2861 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2862 (ada_language_data): Delete la_post_parser initializer.
2863 (ada_language::post_parser): New member function.
2864 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2865 (cplus_language_data): Likewise.
2866 (asm_language_data): Likewise.
2867 (minimal_language_data): Likewise.
2868 * d-lang.c (d_language_data): Likewise.
2869 * f-lang.c (f_language_data): Likewise.
2870 * go-lang.c (go_language_data): Likewise.
2871 * language.c (unknown_language_data): Likewise.
2872 (auto_language_data): Likewise.
2873 * language.h (language_data): Delete la_post_parser field.
2874 (language_defn::post_parser): New member function.
2875 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2876 * objc-lang.c (objc_language_data): Likewise.
2877 * opencl-lang.c (opencl_language_data): Likewise.
2878 * p-lang.c (pascal_language_data): Likewise.
2879 * parse.c (parse_exp_in_context): Update call to post_parser.
2880 (null_post_parser): Delete definition.
2881 * parser-defs.h (null_post_parser): Delete declaration.
2882 * rust-lang.c (rust_language_data): Delete la_post_parser
2883 initializer.
2884
2885 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2886
2887 * ada-lang.c (parse): Rename to ada_language::parser.
2888 (ada_language_data): Delete la_parser initializer.
2889 (ada_language::parser): New member function, implementation from
2890 parse.
2891 * c-lang.c (c_language_data): Delete la_parser initializer.
2892 (cplus_language_data): Likewise.
2893 (asm_language_data): Likewise.
2894 (minimal_language_data): Likewise.
2895 * d-lang.c (d_language_data): Likewise.
2896 (d_language::parser): New member function.
2897 * f-lang.c (f_language_data): Delete la_parser initializer.
2898 (f_language::parser): New member function.
2899 * go-lang.c (go_language_data): Delete la_parser initializer.
2900 (go_language::parser): New member function.
2901 * language.c (unk_lang_parser): Delete.
2902 (language_defn::parser): Define new member function.
2903 (unknown_language_data): Delete la_parser initializer.
2904 (unknown_language::parser): New member function.
2905 (auto_language_data): Delete la_parser initializer.
2906 (auto_language::parser): New member function.
2907 * language.h (language_data): Delete la_parser field.
2908 (language_defn::parser): Declare new member function.
2909 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2910 (m2_language::parser): New member function.
2911 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2912 * opencl-lang.c (opencl_language_data): Likewise.
2913 * p-lang.c (pascal_language_data): Likewise.
2914 (pascal_language::parser): New member function.
2915 * parse.c (parse_exp_in_context): Update call to parser.
2916 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2917 (rust_language::parser): New member function.
2918
2919 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2920
2921 * top.c (print_gdb_configuration): Print --with-python-libdir
2922 configuration value.
2923
2924 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2925
2926 * NEWS: Mention change to the alias command.
2927
2928 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2929
2930 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2931 (alias_command_completer)
2932 (make_alias_options_def_group): New functions.
2933 (alias_opts, alias_option_defs): New struct and array.
2934 (alias_usage_error): Update usage.
2935 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2936 Use option framework.
2937 (_initialize_cli_cmds): Update alias command help.
2938 Update aliases command help.
2939 (show_user):
2940 Add NULL for new default_args lookup_cmd argument.
2941 (valid_command_p): Rename to validate_aliased_command.
2942 Add NULL for new default_args lookup_cmd argument. Verify that the
2943 aliased_command has no default args.
2944 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2945 (lookup_cmd_1, lookup_cmd): New argument default_args.
2946 (add_alias_cmd):
2947 Add NULL for new default_args lookup_cmd argument.
2948 (print_help_for_command): Show default args under the layout
2949 alias some_alias = some_aliased_cmd some_alias_default_arg.
2950 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2951 xfree default_args in destructor.
2952 * cli/cli-script.c (process_next_line, do_define_command):
2953 Add NULL for new default_args lookup_cmd argument.
2954 * command.h: Declare new default_args argument in lookup_cmd
2955 and lookup_cmd_1.
2956 * completer.c (complete_line_internal_1):
2957 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2958 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2959 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2960 Likewise.
2961 * infcmd.c (_initialize_infcmd): Likewise.
2962 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2963 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2964 * python/py-param.c (add_setshow_generic): Likewise.
2965 * remote.c (_initialize_remote): Likewise.
2966 * top.c (execute_command): Prepend default_args if command has some.
2967 (set_verbose):
2968 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2969 * tracepoint.c (validate_actionline, encode_actions_1):
2970 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2971
2972 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2973
2974 * jit.c (jit_read_descriptor): Use bool as the return type.
2975 (jit_breakpoint_re_set_internal): Use bool as the return type.
2976 Invert the return value logic; return true if the jit breakpoint
2977 has been successfully initialized.
2978 (jit_inferior_init): Update the call to
2979 jit_breakpoint_re_set_internal.
2980
2981 2020-06-22 Pedro Alves <palves@redhat.com>
2982
2983 PR gdb/25939
2984 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2985 Use the current inferior instead. Don't return
2986 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2987 wait again.
2988 * sol-thread.c (sol_thread_target::wait): Don't reference
2989 inferior_ptid.
2990 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2991 (sol_update_thread_list_callback): Use the current inferior's pid
2992 instead of inferior_ptid.
2993
2994 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2995
2996 * procfs.c: Cleanup many comments.
2997
2998 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2999 (AFTER_WATCHFLAG): Replace by value.
3000
3001 (MAIN_PROC_NAME_FORMAT): Inline ...
3002 (create_procinfo): ... here.
3003
3004 (procfs_debug_inferior): Remove SYS_exec handling.
3005 (syscall_is_exec): Likewise.
3006 (procfs_set_exec_trap): Likewise.
3007
3008 (syscall_is_lwp_exit): Inline in callers.
3009 (syscall_is_exit): Likewise.
3010 (syscall_is_exec): Likewise.
3011 (syscall_is_lwp_create): Likewise.
3012
3013 (invalidate_cache): Remove #if 0 code.
3014
3015 (make_signal_thread_runnable): Remove.
3016 (procfs_target::resume): Remove #if 0 code.
3017
3018 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3019
3020 PR gdb/25939
3021 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3022 call ...
3023 (procfs_target::create_inferior): ... here.
3024
3025 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3026
3027 * exec.c (validate_exec_file): Ensure the build-id is up to
3028 date by calling reopen_exec_file (that checks file timestamp
3029 to decide to re-read the file).
3030
3031 2020-06-18 Pedro Alves <palves@redhat.com>
3032
3033 PR gdb/25412
3034 * gdbthread.h (delete_thread, delete_thread_silent)
3035 (find_thread_ptid): Update comments.
3036 * thread.c (current_thread_): New global.
3037 (is_current_thread): Move higher, and reimplement.
3038 (inferior_thread): Reimplement.
3039 (set_thread_exited): Use bool. Add assertions.
3040 (add_thread_silent): Simplify thread-reuse handling by always
3041 calling delete_thread.
3042 (delete_thread): Remove intro comment.
3043 (find_thread_ptid): Skip exited threads.
3044 (switch_to_thread_no_regs): Write to current_thread_.
3045 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3046 INFERIOR_PTID. Clear current_thread_.
3047
3048 2020-06-18 Pedro Alves <palves@redhat.com>
3049
3050 * aix-thread.c (pd_update): Use switch_to_thread.
3051
3052 2020-06-18 Pedro Alves <palves@redhat.com>
3053
3054 * ravenscar-thread.c (ravenscar_thread_target): Update.
3055 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3056 (ravenscar_thread_target::add_active_thread): ... this. Don't
3057 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3058 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3059
3060 2020-06-18 Pedro Alves <palves@redhat.com>
3061
3062 * nat/windows-nat.c (current_windows_thread): Remove.
3063 * nat/windows-nat.h (current_windows_thread): Remove.
3064 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3065 Adjust.
3066 (display_selectors): Adjust to fetch the current
3067 windows_thread_info based on inferior_ptid.
3068 (fake_create_process): No longer write to current_windows_thread.
3069 (windows_nat_target::get_windows_debug_event):
3070 Don't set inferior_ptid or current_windows_thread.
3071 (windows_nat_target::wait): Adjust to not rely on
3072 current_windows_thread.
3073 (do_initial_windows_stuff): Now a method of windows_nat_target.
3074 Switch to the last_ptid thread.
3075 (windows_nat_target::attach): Adjust.
3076 (windows_nat_target::detach): Use switch_to_no_thread instead of
3077 writing to inferior_ptid directly.
3078 (windows_nat_target::create_inferior): Adjust.
3079
3080 2020-06-18 Pedro Alves <palves@redhat.com>
3081
3082 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3083
3084 2020-06-18 Pedro Alves <palves@redhat.com>
3085
3086 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3087 after creating it, instead of writing to inferior_ptid. Don't
3088 write to inferior_ptid.
3089
3090 2020-06-18 Pedro Alves <palves@redhat.com>
3091
3092 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3093
3094 2020-06-18 Pedro Alves <palves@redhat.com>
3095
3096 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3097 it, instead of writing to inferior_ptid.
3098
3099 2020-06-18 Pedro Alves <palves@redhat.com>
3100
3101 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3102 to inferior_ptid.
3103
3104 2020-06-18 Pedro Alves <palves@redhat.com>
3105
3106 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3107 instead of writing to inferior_ptid directly.
3108
3109 2020-06-18 Pedro Alves <palves@redhat.com>
3110
3111 * corelow.c (core_target::close): Use switch_to_no_thread instead
3112 of writing to inferior_ptid directly.
3113 (add_to_thread_list, core_target_open): Use switch_to_thread
3114 instead of writing to inferior_ptid directly.
3115
3116 2020-06-18 Pedro Alves <palves@redhat.com>
3117
3118 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3119 inferior_ptid.
3120 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3121 inferior_ptid.
3122 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3123 inferior_ptid directly.
3124 (darwin_nat_target::init_thread_list): Switch to thread, instead
3125 of writing to inferior_ptid.
3126 (darwin_nat_target::attach): Don't write to inferior_ptid.
3127 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3128
3129 2020-06-18 Pedro Alves <palves@redhat.com>
3130
3131 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3132 thread.
3133 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3134 Instead use switch_to_thread.
3135 (gnu_nat_target::detach): Use switch_to_no_thread
3136 instead of writing to inferior_ptid directly. Used passed-in
3137 inferior instead of looking up the inferior by pid.
3138
3139 2020-06-18 Pedro Alves <palves@redhat.com>
3140
3141 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3142 inferior_ptid.
3143
3144 2020-06-18 Pedro Alves <palves@redhat.com>
3145
3146 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3147 inferior_ptid.
3148 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3149 thread.
3150 (nto_procfs_target::detach): Avoid referencing
3151 inferior_ptid. Use switch_to_no_thread instead of writing to
3152 inferior_ptid directly.
3153 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3154 instead of writing to inferior_ptid directly.
3155 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3156 to thread.
3157
3158 2020-06-18 Pedro Alves <palves@redhat.com>
3159
3160 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3161 after creating it, instead of writing to inferior_ptid.
3162 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3163 to inferior_ptid directly.
3164 (gdbsim_target::wait): Don't write to inferior_ptid.
3165
3166 2020-06-18 Pedro Alves <palves@redhat.com>
3167
3168 * remote.c (remote_target::remote_notice_new_inferior): Use
3169 switch_to_thread instead of writing to inferior_ptid directly.
3170 (remote_target::add_current_inferior_and_thread): Use
3171 switch_to_no_thread instead of writing to inferior_ptid directly.
3172 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3173 and switch_to_thread instead of using set_current_inferior or
3174 writing to inferior_ptid directly.
3175
3176 2020-06-18 Pedro Alves <palves@redhat.com>
3177
3178 * tracectf.c (ctf_target_open): Switch to added thread instead of
3179 writing to inferior_ptid directly.
3180 (ctf_target::close): Use switch_to_no_thread instead of writing to
3181 inferior_ptid directly.
3182
3183 2020-06-18 Pedro Alves <palves@redhat.com>
3184
3185 * tracefile-tfile.c (tfile_target_open): Don't write to
3186 inferior_ptid directly, instead switch to added thread.
3187 (tfile_target::close): Use switch_to_no_thread instead of writing
3188 to inferior_ptid directly.
3189
3190 2020-06-18 Pedro Alves <palves@redhat.com>
3191
3192 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3193 (procfs_target::detach): Use switch_to_no_thread
3194 instead of writing to inferior_ptid directly.
3195 (do_attach): Change return type to void. Switch to the added
3196 thread.
3197 (procfs_target::create_inferior): Switch to the added thread.
3198 (procfs_do_thread_registers): Don't write to inferior_ptid.
3199
3200 2020-06-18 Pedro Alves <palves@redhat.com>
3201
3202 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3203 of writing to inferior_ptid.
3204 (scoped_restore_exited_inferior): Delete.
3205 (handle_vfork_child_exec_or_exit): Simplify using
3206 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3207 instead of writing to inferior_ptid.
3208 (THREAD_STOPPED_BY): Delete.
3209 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3210 (thread_stopped_by_hw_breakpoint): Delete.
3211 (save_waitstatus): Use
3212 scoped_restore_current_thread+switch_to_thread, and call
3213 target_stopped_by_watchpoint instead of
3214 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3215 instead of thread_stopped_by_sw_breakpoint, and
3216 target_stopped_by_hw_breakpoint instead of
3217 thread_stopped_by_hw_breakpoint.
3218 (handle_inferior_event)
3219 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3220 inferior_ptid directly, nor
3221 set_current_inferior/set_current_program_space. Use
3222 switch_to_thread / switch_to_inferior_no_thread instead.
3223
3224 2020-06-18 Pedro Alves <palves@redhat.com>
3225
3226 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3227 instead of writing to inferior_ptid.
3228
3229 2020-06-18 Pedro Alves <palves@redhat.com>
3230
3231 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3232 added thread.
3233 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3234 to the added thread.
3235 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3236 instead of writing to inferior_ptid.
3237
3238 2020-06-18 Pedro Alves <palves@redhat.com>
3239
3240 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3241 (register_to_value_test): Mock a program_space too. Heap-allocate
3242 the address space. Don't write to inferior_ptid. Use
3243 switch_to_thread instead.
3244
3245 2020-06-18 Pedro Alves <palves@redhat.com>
3246
3247 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3248 Delete.
3249 (find_signalled_thread()): New, factored out from
3250 linux_make_corefile_notes and adjusted to handle exited threads.
3251 (linux_make_corefile_notes): Adjust to use the new
3252 find_signalled_thread.
3253
3254 2020-06-18 Pedro Alves <palves@redhat.com>
3255
3256 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3257 of saving/restoring inferior_ptid.
3258
3259 2020-06-17 Tom Tromey <tom@tromey.com>
3260
3261 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3262 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3263 declare.
3264 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3265
3266 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3267
3268 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3269 of partial symtabs.
3270
3271 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3272
3273 * regformats/reg-arm.dat: Remove.
3274 * regformats/reg-bfin.dat: Remove.
3275 * regformats/reg-cris.dat: Remove.
3276 * regformats/reg-crisv32.dat: Remove.
3277 * regformats/reg-m32r.dat: Remove.
3278 * regformats/reg-tilegx.dat: Remove.
3279 * regformats/reg-tilegx32.dat: Remove.
3280
3281 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3282
3283 * features/Makefile (WHICH): Remove arm files.
3284 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3285 * regformats/arm/arm-with-neon.dat: Remove.
3286 * regformats/arm/arm-with-vfpv2.dat: Remove.
3287 * regformats/arm/arm-with-vfpv3.dat: Remove.
3288
3289 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3290
3291 * features/Makefile (XMLTOC): Remove rx.xml.
3292
3293 2020-06-17 Pedro Alves <palves@redhat.com>
3294
3295 * gdbthread.h (thread_control_state) <trap_expected> Update
3296 comments.
3297
3298 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3299
3300 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3301 ada_language::lookup_symbol_nonlocal.
3302 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3303 (ada_language::lookup_symbol_nonlocal): New member function,
3304 implementation from ada_lookup_symbol_nonlocal.
3305 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3306 initializer.
3307 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3308 initializer.
3309 (cplus_language::lookup_symbol_nonlocal): New member function.
3310 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3311 (minimal_language_data) Likewise.
3312 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3313 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3314 initializer.
3315 (d_language::lookup_symbol_nonlocal): New member function.
3316 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3317 initializer.
3318 (f_language::lookup_symbol_nonlocal): New member function.
3319 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3320 initializer.
3321 * language.c (unknown_language_data): Likewise.
3322 (auto_language_data): Likewise.
3323 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3324 field.
3325 (language_defn::lookup_symbol_nonlocal): New member function.
3326 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3327 initializer.
3328 * objc-lang.c (objc_language_data): Likewise.
3329 * opencl-lang.c (opencl_language_data): Likewise.
3330 * p-lang.c (pascal_language_data): Likewise.
3331 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3332 rust_language::lookup_symbol_nonlocal.
3333 (rust_language_data): Delete la_lookup_symbol_nonlocal
3334 initializer.
3335 (rust_language::lookup_symbol_nonlocal): New member function,
3336 implementation from rust_lookup_symbol_nonlocal.
3337 * symtab.c (lookup_symbol_aux): Update call to
3338 lookup_symbol_nonlocal.
3339 (basic_lookup_symbol_nonlocal): Rename to...
3340 (language_defn::lookup_symbol_nonlocal): ...this, and update
3341 header comment. Remove language_defn parameter, and replace with
3342 uses of `this'.
3343 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3344
3345 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3346
3347 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3348 initializer.
3349 (ada_language::value_print_inner): New member function.
3350 * c-lang.c (c_language_data): Delete la_value_print_inner
3351 initializer.
3352 (cplus_language_data): Likewise.
3353 (asm_language_data): Likewise.
3354 (minimal_language_data): Likewise.
3355 * d-lang.c (d_language_data): Likewise.
3356 (d_language::value_print_inner): New member function.
3357 * f-lang.c (f_language_data): Delete la_value_print_inner
3358 initializer.
3359 (f_language::value_print_inner): New member function.
3360 * f-lang.h (f_value_print_innner): Rename to...
3361 (f_value_print_inner): ...this (note spelling of 'inner').
3362 * f-valprint.c (f_value_print_innner): Rename to...
3363 (f_value_print_inner): ...this (note spelling of 'inner').
3364 * go-lang.c (go_language_data): Delete la_value_print_inner
3365 initializer.
3366 (go_language::value_print_inner): New member function.
3367 * language.c (language_defn::value_print_inner): Define new member
3368 function.
3369 (unk_lang_value_print_inner): Delete.
3370 (unknown_language_data): Delete la_value_print_inner initializer.
3371 (unknown_language::value_print_inner): New member function.
3372 (auto_language_data): Delete la_value_print_inner initializer.
3373 (auto_language::value_print_inner): New member function.
3374 * language.h (language_data): Delete la_value_print_inner field.
3375 (language_defn::value_print_inner): Delcare new member function.
3376 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3377 initializer.
3378 (m2_language::value_print_inner): New member function.
3379 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3380 initializer.
3381 * opencl-lang.c (opencl_language_data): Likewise.
3382 * p-lang.c (pascal_language_data): Likewise.
3383 (pascal_language::value_print_inner): New member function.
3384 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3385 initializer.
3386 (rust_language::value_print_inner): New member function.
3387 * valprint.c (do_val_print): Update call to value_print_inner.
3388
3389 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3390
3391 * ada-lang.c (ada_language_data): Delete la_value_print
3392 initializer.
3393 (ada_language::value_print): New member function.
3394 * c-lang.c (c_language_data): Delete la_value_print initializer.
3395 (cplus_language_data): Likewise.
3396 (asm_language_data): Likewise.
3397 (minimal_language_data): Likewise.
3398 * d-lang.c (d_language_data): Likewise.
3399 * f-lang.c (f_language_data): Likewise.
3400 * go-lang.c (go_language_data): Likewise.
3401 * language.c (unk_lang_value_print): Delete.
3402 (language_defn::value_print): Define new member function.
3403 (unknown_language_data): Delete la_value_print initializer.
3404 (unknown_language::value_print): New member function.
3405 (auto_language_data): Delete la_value_print initializer.
3406 (auto_language::value_print): New member function.
3407 * language.h (language_data): Delete la_value_print field.
3408 (language_defn::value_print): Declare new member function.
3409 (LA_VALUE_PRINT): Update call to value_print.
3410 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3411 * objc-lang.c (objc_language_data): Likewise.
3412 * opencl-lang.c (opencl_language_data): Likewise.
3413 * p-lang.c (pascal_language_data): Likewise.
3414 (pascal_language::value_print): New member function.
3415 * rust-lang.c (rust_language_data): Delete la_value_print
3416 initializer.
3417
3418 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3419
3420 * ada-lang.c (ada_watch_location_expression): Rename to
3421 ada_language::watch_location_expression.
3422 (ada_language_data): Delete la_watch_location_expression
3423 initializer.
3424 (ada_language::watch_location_expression): New member function,
3425 implementation from ada_watch_location_expression.
3426 * breakpoint.c (watch_command_1): Update call to
3427 watch_location_expression.
3428 * c-lang.c (c_watch_location_expression): Rename to
3429 language_defn::watch_location_expression.
3430 (c_language_data): Delete la_watch_location_expression
3431 initializer.
3432 (cplus_language_data): Likewise.
3433 (asm_language_data): Likewise.
3434 (minimal_language_data): Likewise.
3435 * c-lang.h (c_watch_location_expression): Delete declaration.
3436 * d-lang.c (d_language_data): Delete la_watch_location_expression
3437 initializer.
3438 * f-lang.c (f_language_data): Likewise.
3439 * go-lang.c (go_language_data): Likewise.
3440 * language.c (language_defn::watch_location_expression): Member
3441 function implementation from c_watch_location_expression.
3442 (unknown_language_data): Delete la_watch_location_expression
3443 initializer.
3444 (auto_language_data): Likewise.
3445 * language.h (language_data): Delete la_watch_location_expression
3446 field.
3447 (language_defn::watch_location_expression): Declare new member
3448 function.
3449 * m2-lang.c (m2_language_data): Delete
3450 la_watch_location_expression initializer.
3451 * objc-lang.c (objc_language_data): Likewise.
3452 * opencl-lang.c (opencl_language_data): Likewise.
3453 * p-lang.c (pascal_language_data): Likewise.
3454 * rust-lang.c (rust_watch_location_expression): Rename to
3455 rust_language::watch_location_expression.
3456 (rust_language_data): Delete la_watch_location_expression
3457 initializer.
3458 (rust_language::watch_location_expression): New member function,
3459 implementation from rust_watch_location_expression.
3460
3461 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3462
3463 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3464 ada_language::collect_symbol_completion_matches.
3465 (ada_language_data): Delete la_collect_symbol_completion_matches
3466 initializer.
3467 (ada_language::collect_symbol_completion_matches): New member
3468 function, implementation from
3469 ada_collect_symbol_completion_matches.
3470 * c-lang.c (c_language_data): Delete
3471 la_collect_symbol_completion_matches initializer.
3472 (cplus_language_data): Likewise.
3473 (asm_language_data): Likewise.
3474 (minimal_language_data): Likewise.
3475 * d-lang.c (d_language_data): Likewise.
3476 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3477 f_language::collect_symbol_completion_matches.
3478 (f_language_data): Delete la_collect_symbol_completion_matches
3479 initializer.
3480 (f_language::collect_symbol_completion_matches) New member
3481 function, implementation from f_collect_symbol_completion_matches.
3482 * go-lang.c (go_language_data): Delete
3483 la_collect_symbol_completion_matches initializer.
3484 * language.c (unknown_language_data): Likewise.
3485 (auto_language_data): Likewise.
3486 * language.h (language_data): Delete
3487 la_collect_symbol_completion_matches field.
3488 (language_defn::collect_symbol_completion_matches): New member
3489 function.
3490 * m2-lang.c (m2_language_data): Delete
3491 la_collect_symbol_completion_matches initializer.
3492 * objc-lang.c (objc_language_data): Likewise.
3493 * opencl-lang.c (opencl_language_data): Likewise.
3494 * p-lang.c (pascal_language_data): Likewise.
3495 * rust-lang.c (rust_language_data): Likewise.
3496 * symtab.c (default_collect_symbol_completion_matches): Delete.
3497 (collect_symbol_completion_matches): Update call to
3498 collect_symbol_completion_matches.
3499 (collect_symbol_completion_matches_type): Likewise.
3500 * symtab.h (default_collect_symbol_completion_matches): Delete
3501 declaration.
3502
3503 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3504
3505 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3506 (ada_language_data): Delete la_word_break_characters initializer.
3507 (ada_language::word_break_characters): New member function.
3508 * c-lang.c (c_language_data): Delete la_word_break_characters
3509 initializer.
3510 (cplus_language_data): Likewise.
3511 (asm_language_data): Likewise.
3512 (minimal_language_data): Likewise.
3513 * completer.c: Update global comment.
3514 (advance_to_expression_complete_word_point): Update call to
3515 word_break_characters.
3516 (complete_files_symbols): Likewise.
3517 (complete_line_internal_1): Likewise.
3518 (default_completer_handle_brkchars): Likewise.
3519 (skip_quoted_chars): Likewise.
3520 * d-lang.c (d_language_data): Delete la_word_break_characters
3521 initializer.
3522 * f-lang.c (f_word_break_characters): Delete.
3523 (f_language_data): Delete la_word_break_characters initializer.
3524 (f_language::word_break_characters): New member function.
3525 * go-lang.c (go_language_data): Delete la_word_break_characters
3526 initializer.
3527 * language.c (unknown_language_data): Likewise.
3528 (auto_language_data): Likewise.
3529 * language.h (default_word_break_characters): Move declaration to
3530 earlier in the file.
3531 (language_data): Delete la_word_break_characters field.
3532 (language_defn::word_break_characters): New member function.
3533 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3534 initializer.
3535 * objc-lang.c (objc_language_data): Likewise.
3536 * opencl-lang.c (opencl_language_data): Likewise.
3537 * p-lang.c (pascal_language_data): Likewise.
3538 * rust-lang.c (rust_language_data): Likewise.
3539
3540 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3541
3542 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3543 (ada_language_data): Delete la_get_symbol_name_matcher
3544 initializer.
3545 (language_defn::get_symbol_name_matcher_inner): New member
3546 function.
3547 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3548 initializer.
3549 (cplus_language_data): Likewise.
3550 (cplus_language::get_symbol_name_matcher_inner): New member
3551 function.
3552 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3553 (minimal_language_data): Likewise.
3554 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3555 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3556 initializer.
3557 * dictionary.c (iter_match_first_hashed): Update call to
3558 get_symbol_name_matcher.
3559 (iter_match_next_hashed): Likewise.
3560 (iter_match_next_linear): Likewise.
3561 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3562 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3563 initializer.
3564 (f_language::get_symbol_name_matcher_inner): New member function.
3565 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3566 initializer.
3567 * language.c (default_symbol_name_matcher): Update header comment,
3568 make static.
3569 (language_defn::get_symbol_name_matcher): New definition.
3570 (language_defn::get_symbol_name_matcher_inner): Likewise.
3571 (get_symbol_name_matcher): Delete.
3572 (unknown_language_data): Delete la_get_symbol_name_matcher
3573 initializer.
3574 (auto_language_data): Likewise.
3575 * language.h (language_data): Delete la_get_symbol_name_matcher
3576 field.
3577 (language_defn::get_symbol_name_matcher): New member function.
3578 (language_defn::get_symbol_name_matcher_inner): Likewise.
3579 (default_symbol_name_matcher): Delete declaration.
3580 * linespec.c (find_methods): Update call to
3581 get_symbol_name_matcher.
3582 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3583 initializer.
3584 * minsyms.c (lookup_minimal_symbol): Update call to
3585 get_symbol_name_matcher.
3586 (iterate_over_minimal_symbols): Likewise.
3587 * objc-lang.c (objc_language_data): Delete
3588 la_get_symbol_name_matcher initializer.
3589 * opencl-lang.c (opencl_language_data): Likewise.
3590 * p-lang.c (pascal_language_data): Likewise.
3591 * psymtab.c (psymbol_name_matches): Update call to
3592 get_symbol_name_matcher.
3593 * rust-lang.c (rust_language_data): Delete
3594 la_get_symbol_name_matcher initializer.
3595 * symtab.c (symbol_matches_search_name): Update call to
3596 get_symbol_name_matcher.
3597 (compare_symbol_name): Likewise.
3598
3599 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3600
3601 * ada-lang.c (ada_language_data): Delete la_compute_program
3602 initializer.
3603 * c-lang.c (c_language_data): Likewise.
3604 (c_language::compute_program): New member function.
3605 (cplus_language_data): Delete la_compute_program initializer.
3606 (cplus_language::compute_program): New member function.
3607 (asm_language_data): Delete la_compute_program initializer.
3608 (minimal_language_data): Likewise.
3609 * c-lang.h (c_compute_program): Update comment.
3610 (cplus_compute_program): Likewise.
3611 * compile/compile-c-support.c (c_compute_program): Likewise.
3612 (cplus_compute_program): Likewise.
3613 * compile/compile.c (compile_to_object): Update call to
3614 la_compute_program.
3615 * d-lang.c (d_language_data): Delete la_compute_program
3616 initializer.
3617 * f-lang.c (f_language_data): Likewise.
3618 * go-lang.c (go_language_data): Likewise.
3619 * language.c (unknown_language_data): Likewise.
3620 (auto_language_data): Likewise.
3621 * language.h (language_data): Delete la_compute_program field.
3622 (language_defn::compute_program): New member function.
3623 * m2-lang.c (m2_language_data): Delete la_compute_program
3624 initializer.
3625 * objc-lang.c (objc_language_data): Likewise.
3626 * opencl-lang.c (opencl_language_data): Likewise.
3627 * p-lang.c (pascal_language_data): Likewise.
3628 * rust-lang.c (rust_language_data): Likewise.
3629
3630 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3631
3632 * ada-lang.c (ada_language_data) Delete
3633 la_class_name_from_physname initializer.
3634 * c-lang.c (c_language_data): Likewise.
3635 (cplus_language_data): Likewise.
3636 (cplus_language::class_name_from_physname): New member function.
3637 (asm_language_data): Delete la_class_name_from_physname
3638 initializer.
3639 (minimal_language_data): Likewise.
3640 * d-lang.c (d_language_data): Likewise.
3641 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3642 method on language_defn class.
3643 (guess_full_die_structure_name): Likewise.
3644 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3645 initializer.
3646 * go-lang.c (go_language_data): Likewise.
3647 * language.c (language_class_name_from_physname): Delete.
3648 (unk_lang_class_name): Delete.
3649 (unknown_language_data): Delete la_class_name_from_physname
3650 initializer.
3651 (auto_language_data): Likewise.
3652 * language.h (language_data): Delete la_class_name_from_physname
3653 field.
3654 (language_defn::class_name_from_physname): New function.
3655 (language_class_name_from_physname): Delete declaration.
3656 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3657 initializer.
3658 * objc-lang.c (objc_language_data): Likewise.
3659 * opencl-lang.c (opencl_language_data): Likewise.
3660 * p-lang.c (pascal_language_data): Likewise.
3661 * rust-lang.c (rust_language_data): Likewise.
3662
3663 2020-06-16 Tom Tromey <tom@tromey.com>
3664
3665 * tui/tui-data.h (STATUS_NAME): New macro.
3666 * tui/tui-layout.c (tui_remove_some_windows)
3667 (initialize_known_windows, tui_register_window)
3668 (tui_layout_split::remove_windows, initialize_layouts)
3669 (tui_new_layout_command): Don't use hard-coded window names.
3670
3671 2020-06-16 Tom Tromey <tom@tromey.com>
3672
3673 PR tui/25348:
3674 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3675 tui_initialize_readline. Only run once. Call rl_initialize.
3676 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3677 tui_initialize_readline.
3678 * tui/tui-io.c (tui_setup_io): Call
3679 tui_ensure_readline_initialized.
3680 * tui/tui-interp.c (tui_interp::init): Update.
3681
3682 2020-06-16 Tom Tromey <tom@tromey.com>
3683
3684 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3685 Also preserve the status window.
3686
3687 2020-06-16 Tom Tromey <tom@tromey.com>
3688
3689 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3690 where m_window==nullptr.
3691
3692 2020-06-15 Tom Tromey <tromey@adacore.com>
3693
3694 * windows-nat.c (windows_nat::handle_output_debug_string):
3695 Update.
3696 (windows_nat::handle_ms_vc_exception): Update.
3697 * target.h (target_read_string): Change API.
3698 * target.c (target_read_string): Change API.
3699 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3700 Update.
3701 * solib-frv.c (frv_current_sos): Update.
3702 * solib-dsbt.c (dsbt_current_sos): Update.
3703 * solib-darwin.c (darwin_current_sos): Update.
3704 * linux-thread-db.c (inferior_has_bug): Update.
3705 * expprint.c (print_subexp_standard): Update.
3706 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3707 (ada_exception_message_1): Update.
3708
3709 2020-06-15 Tom Tromey <tromey@adacore.com>
3710
3711 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3712
3713 2020-06-15 Tom Tromey <tromey@adacore.com>
3714
3715 * valprint.c (read_string): Update comment.
3716 * target.c (MIN): Remove.
3717 (target_read_string): Rewrite.
3718
3719 2020-06-15 Tom Tromey <tromey@adacore.com>
3720
3721 * corefile.c (read_memory_string): Remove.
3722 * ada-valprint.c (ada_value_print_ptr): Update.
3723 * ada-lang.h (ada_tag_name): Change return type.
3724 * ada-lang.c (type_from_tag): Update.
3725 (ada_tag_name_from_tsd): Change return type. Use
3726 target_read_string.
3727 (ada_tag_name): Likewise.
3728 * gdbcore.h (read_memory_string): Don't declare.
3729
3730 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3731
3732 * symtab.c (rbreak_command): Ignore Windows drive colon.
3733
3734 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3735
3736 * NEWS: Mention removed GDBserver host support.
3737
3738 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3739
3740 * features/riscv/rebuild-csr-xml.sh: Updated.
3741
3742 2020-06-11 Tom Tromey <tom@tromey.com>
3743
3744 PR gdb/18318:
3745 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3746
3747 2020-06-09 Jonny Grant <jg@jguk.org>
3748 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3749
3750 * main.c (captured_main_1): Don't print new line after help.
3751 (print_gdb_help): add mailing list and IRC channel information
3752 to --help. Add new lines between items in the footer. Remove
3753 quotes around bug url.
3754
3755 2020-06-11 Keith Seitz <keiths@redhat.com>
3756
3757 PR gdb/21356
3758 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3759 Resolve typedefs for type length calculations.
3760
3761 2020-06-10 Tom de Vries <tdevries@suse.de>
3762
3763 PR ada/24713
3764 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3765 (write_psymbols): Enable .gdb_index for ada.
3766 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3767 ada.
3768
3769 2020-06-10 Tom de Vries <tdevries@suse.de>
3770
3771 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3772 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3773 namei" instead of "const char *name" argument.
3774 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3775 dw2_symtab_iter_init.
3776
3777 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3778
3779 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3780 to use type::field and field::type instead.
3781
3782 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3783
3784 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3785 to use field::type instead.
3786
3787 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3788
3789 * gdbtypes.h (struct field) <type, set_type>: New methods.
3790 Rename `type` field to...
3791 <m_type>: ... this. Change references throughout to use type or
3792 set_type methods.
3793 (FIELD_TYPE): Use field::type. Change call sites that modify
3794 the field's type to use field::set_type instead.
3795
3796 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3797
3798 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3799 to use type::index_type instead.
3800
3801 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3802
3803 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3804 methods.
3805 (TYPE_INDEX_TYPE): Use type::index_type.
3806 * gdbtypes.c (create_array_type_with_stride): Likewise.
3807
3808 2020-06-07 Tom Tromey <tom@tromey.com>
3809
3810 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3811 parameter.
3812 (generic_value_print): Update.
3813
3814 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3815
3816 Revert commit 982a38f60b0.
3817 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3818
3819 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3820
3821 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3822 avoid use after free.
3823
3824 2020-06-05 Tom de Vries <tdevries@suse.de>
3825
3826 * NEWS: Fix typos.
3827
3828 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3829
3830 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3831 the per_bfd object.
3832 (dwarf2_read_debug_names): Likewise.
3833 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3834 object when re-using a per_bfd object with an index.
3835
3836 2020-06-03 Tom de Vries <tdevries@suse.de>
3837
3838 PR symtab/26046
3839 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3840 children for C++.
3841 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3842 DW_TAG_subprogram.
3843
3844 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3845
3846 * ada-lang.c (ada_language_data): Delete skip_trampoline
3847 initializer.
3848 * c-lang.c (c_language_data): Likewise.
3849 (cplus_language_data): Likewise.
3850 (cplus_language::skip_trampoline): New member function.
3851 (asm_language_data): Delete skip_trampoline initializer.
3852 (minimal_language_data): Likewise.
3853 * d-lang.c (d_language_data): Likewise.
3854 * f-lang.c (f_language_data): Likewise.
3855 * go-lang.c (go_language_data): Likewise.
3856 * language.c (unk_lang_trampoline): Delete function.
3857 (skip_language_trampoline): Update.
3858 (unknown_language_data): Delete skip_trampoline initializer.
3859 (auto_language_data): Likewise.
3860 * language.h (language_data): Delete skip_trampoline field.
3861 (language_defn::skip_trampoline): New function.
3862 * m2-lang.c (m2_language_data): Delete skip_trampoline
3863 initializer.
3864 * objc-lang.c (objc_skip_trampoline): Delete function, move
3865 implementation to objc_language::skip_trampoline.
3866 (objc_language_data): Delete skip_trampoline initializer.
3867 (objc_language::skip_trampoline): New member function with
3868 implementation from objc_skip_trampoline.
3869 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3870 initializer.
3871 * p-lang.c (pascal_language_data): Likewise.
3872 * rust-lang.c (rust_language_data): Likewise.
3873
3874 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3875
3876 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3877 (ada_language::demangle): New member function.
3878 * c-lang.c (c_language_data): Delete la_demangle initializer.
3879 (cplus_language_data): Delete la_demangle initializer.
3880 (cplus_language::demangle): New member function.
3881 (asm_language_data): Delete la_demangle initializer.
3882 (minimal_language_data): Delete la_demangle initializer.
3883 * d-lang.c (d_language_data): Delete la_demangle initializer.
3884 (d_language::demangle): New member function.
3885 * f-lang.c (f_language_data): Delete la_demangle initializer.
3886 (f_language::demangle): New member function.
3887 * go-lang.c (go_language_data): Delete la_demangle initializer.
3888 (go_language::demangle): New member function.
3889 * language.c (language_demangle): Update.
3890 (unk_lang_demangle): Delete.
3891 (unknown_language_data): Delete la_demangle initializer.
3892 (unknown_language::demangle): New member function.
3893 (auto_language_data): Delete la_demangle initializer.
3894 (auto_language::demangle): New member function.
3895 * language.h (language_data): Delete la_demangle field.
3896 (language_defn::demangle): New function.
3897 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3898 * objc-lang.c (objc_language_data): Delete la_demangle
3899 initializer.
3900 (objc_language::demangle): New member function.
3901 * opencl-lang.c (opencl_language_data): Delete la_demangle
3902 initializer.
3903 * p-lang.c (pascal_language_data): Likewise.
3904 * rust-lang.c (rust_language_data): Likewise.
3905 (rust_language::demangle): New member function.
3906
3907 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3908
3909 * ada-lang.c (ada_language_data): Delete la_print_type
3910 initializer.
3911 (ada_language::print_type): New member function.
3912 * c-lang.c (c_language_data): Delete la_print_type initializer.
3913 (c_language::print_type): New member function.
3914 (cplus_language_data): Delete la_print_type initializer.
3915 (cplus_language::print_type): New member function.
3916 (asm_language_data): Delete la_print_type initializer.
3917 (asm_language::print_type): New member function.
3918 (minimal_language_data): Delete la_print_type initializer.
3919 (minimal_language::print_type): New member function.
3920 * d-lang.c (d_language_data): Delete la_print_type initializer.
3921 (d_language::print_type): New member function.
3922 * f-lang.c (f_language_data): Delete la_print_type initializer.
3923 (f_language::print_type): New member function.
3924 * go-lang.c (go_language_data): Delete la_print_type initializer.
3925 (go_language::print_type): New member function.
3926 * language.c (unk_lang_print_type): Delete.
3927 (unknown_language_data): Delete la_print_type initializer.
3928 (unknown_language::print_type): New member function.
3929 (auto_language_data): Delete la_print_type initializer.
3930 (auto_language::print_type): New member function.
3931 * language.h (language_data): Delete la_print_type field.
3932 (language_defn::print_type): New function.
3933 (LA_PRINT_TYPE): Update.
3934 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3935 (m2_language::print_type): New member function.
3936 * objc-lang.c (objc_language_data): Delete la_print_type
3937 initializer.
3938 (objc_language::print_type): New member function.
3939 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3940 to opencl_language::print_type.
3941 (opencl_language_data): Delete la_print_type initializer.
3942 (opencl_language::print_type): New member function, implementation
3943 from opencl_print_type.
3944 * p-lang.c (pascal_language_data): Delete la_print_type
3945 initializer.
3946 (pascal_language::print_type): New member function.
3947 * rust-lang.c (rust_print_type): Delete, implementation moved to
3948 rust_language::print_type.
3949 (rust_language_data): Delete la_print_type initializer.
3950 (rust_language::print_type): New member function, implementation
3951 from rust_print_type.
3952
3953 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3954
3955 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3956 implementation moves to...
3957 (ada_language::sniff_from_mangled_name): ...here. Update return
3958 type.
3959 (ada_language_data): Delete la_sniff_from_mangled_name
3960 initializer.
3961 * c-lang.c (c_language_data): Likewise.
3962 (cplus_language_data): Likewise.
3963 (cplus_language::sniff_from_mangled_name): New member function,
3964 implementation taken from gdb_sniff_from_mangled_name.
3965 (asm_language_data): Delete la_sniff_from_mangled_name
3966 initializer.
3967 (minimal_language_data): Likewise.
3968 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3969 implementation moves to cplus_language::sniff_from_mangled_name.
3970 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3971 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3972 moves to...
3973 (d_language::sniff_from_mangled_name): ...here.
3974 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3975 * f-lang.c (f_language_data): Likewise.
3976 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3977 moves to...
3978 (go_language::sniff_from_mangled_name): ...here.
3979 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3980 * language.c (language_sniff_from_mangled_name): Delete.
3981 (unknown_language_data): Delete la_sniff_from_mangled_name
3982 initializer.
3983 (auto_language_data): Likewise.
3984 * language.h (language_data): Delete la_sniff_from_mangled_name
3985 field.
3986 (language_defn::sniff_from_mangled_name): New function.
3987 (language_sniff_from_mangled_name): Delete declaration.
3988 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3989 field.
3990 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3991 implementation moves to...
3992 (objc_language::sniff_from_mangled_name): ...here.
3993 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3994 * opencl-lang.c (opencl_language_data): Likewise.
3995 * p-lang.c (pascal_language_data): Likewise.
3996 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3997 implementation moves to...
3998 (rust_language::sniff_from_mangled_name): ...here.
3999 (rust_language_data): Delete la_sniff_from_mangled_name
4000 initializer.
4001 * symtab.c (symbol_find_demangled_name): Call
4002 sniff_from_mangled_name member function.
4003
4004 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4005
4006 * ada-lang.c (ada_language_data): Delete la_search_name_hash
4007 initializer.
4008 * c-lang.c (c_language_data): Likewise.
4009 (cplus_language_data): Likewise.
4010 (cplus_language::search_name_hash): New member function.
4011 (asm_language_data): Delete la_search_name_hash initializer.
4012 (minimal_language_data): Likewise.
4013 * d-lang.c (d_language_data): Likewise.
4014 * dictionary.c (default_search_name_hash): Rename to...
4015 (language_defn::search_name_hash): ...this.
4016 * f-lang.c (f_language_data): Likewise.
4017 (f_language::search_name_hash): New member function.
4018 * go-lang.c (go_language_data): Delete la_search_name_hash
4019 initializer.
4020 * language.c (unknown_language_data): Likewise.
4021 (auto_language_data): Likewise.
4022 * language.h (struct language_data): Delete la_search_name_hash
4023 field.
4024 (language_defn::search_name_hash): Declare new member function.
4025 (default_search_name_hash): Delete declaration.
4026 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4027 initializer.
4028 * objc-lang.c (objc_language_data): Likewise.
4029 * opencl-lang.c (opencl_language_data): Likewise.
4030 * p-lang.c (pascal_language_data): Likewise.
4031 * rust-lang.c (rust_language_data): Likewise.
4032 * symtab.c (search_name_hash): Update call.
4033
4034 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4035
4036 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4037 initializer.
4038 * c-lang.c (class compile_instance): Declare.
4039 (c_language_data): Delete la_get_compile_instance initializer.
4040 (c_language::get_compile_instance): New member function.
4041 (cplus_language_data): Delete la_get_compile_instance initializer.
4042 (cplus_language::get_compile_instance): New member function.
4043 (asm_language_data): Delete la_get_compile_instance initializer.
4044 (minimal_language_data): Likewise.
4045 * c-lang.h (c_get_compile_context): Update comment.
4046 (cplus_get_compile_context): Update comment.
4047 * compile/compile.c (compile_to_object): Update calls, don't rely
4048 on function pointer being NULL.
4049 * d-lang.c (d_language_data): Delete la_get_compile_instance
4050 initializer.
4051 * f-lang.c (f_language_data): Likewise.
4052 * go-lang.c (go_language_data): Likewise.
4053 * language.c (unknown_language_data): Likewise.
4054 (auto_language_data): Likewise.
4055 * language.h (language_data): Delete la_get_compile_instance field.
4056 (language_defn::get_compile_instance): New member function.
4057 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4058 initializer.
4059 * objc-lang.c (objc_language_data): Likewise.
4060 * opencl-lang.c (opencl_language_data): Likewise.
4061 * p-lang.c (pascal_language_data): Likewise.
4062 * rust-lang.c (rust_language_data): Likewise.
4063
4064 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4065
4066 * ada-lang.c (ada_add_all_symbols): Update comment.
4067 (ada_iterate_over_symbols): Delete, move implementation to...
4068 (ada_language::iterate_over_symbols): ...here, a new member
4069 function, rewrite to use range based for loop.
4070 (ada_language_data): Delete la_iterate_over_symbols initializer.
4071 * c-lang.c (c_language_data): Likewise.
4072 (cplus_language_data): Likewise.
4073 (asm_language_data): Likewise.
4074 (minimal_language_data): Likewise.
4075 * d-lang.c (d_language_data): Likewise.
4076 * f-lang.c (f_language_data): Likewise.
4077 * go-lang.c (go_language_data): Likewise.
4078 * language.c (unknown_language_data): Likewise.
4079 (auto_language_data): Likewise.
4080 * language.h (language_data): Delete la_iterate_over_symbols field.
4081 (language_defn::iterate_over_symbols): New member function.
4082 (LA_ITERATE_OVER_SYMBOLS): Update.
4083 * linespec.c (iterate_over_all_matching_symtabs): Update.
4084 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4085 initializer.
4086 * objc-lang.c (objc_language_data): Likewise.
4087 * opencl-lang.c (opencl_language_data): Likewise.
4088 * p-lang.c (pascal_language_data): Likewise.
4089 * rust-lang.c (rust_language_data): Likewise.
4090
4091 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4092
4093 * ada-lang.c (ada_language_data): Delete
4094 la_lookup_transparent_type initializer.
4095 * c-lang.c (c_language_data): Likewise.
4096 (cplus_language_data): Likewise.
4097 (cplus_language::lookup_transparent_type): New member function.
4098 (asm_language_data): Delete la_lookup_transparent_type
4099 initializer.
4100 (minimal_language_data): Likewise.
4101 * d-lang.c (d_language_data): Likewise.
4102 * f-lang.c (f_language_data): Likewise.
4103 * go-lang.c (go_language_data): Likewise.
4104 * language.c (unknown_language_data): Likewise.
4105 (auto_language_data): Likewise.
4106 * language.h (struct language_data): Delete
4107 la_lookup_transparent_type field.
4108 (language_defn::lookup_transparent_type): New member function.
4109 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4110 initializer.
4111 * objc-lang.c (objc_language_data): Likewise.
4112 * opencl-lang.c (opencl_language_data): Likewise.
4113 * p-lang.c (pascal_language_data): Likewise.
4114 * rust-lang.c (rust_language_data): Likewise.
4115 * symtab.c (symbol_matches_domain): Update call.
4116
4117 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4118
4119 * ada-lang.c (ada_language_arch_info): Delete function, move
4120 implementation to...
4121 (ada_language::language_arch_info): ...here, a new member
4122 function.
4123 (ada_language_data): Delete la_language_arch_info.
4124 * c-lang.c (c_language_data): Likewise.
4125 (c_language::language_arch_info): New member function.
4126 (cplus_language_arch_info): Delete function, move
4127 implementation to...
4128 (cplus_language::language_arch_info): ...here, a new member
4129 function.
4130 (cplus_language_data): Delete la_language_arch_info.
4131 (asm_language_data): Likewise.
4132 (asm_language::language_arch_info): New member function.
4133 (minimal_language_data): Delete la_language_arch_info.
4134 (minimal_language::language_arch_info): New member function.
4135 * d-lang.c (d_language_arch_info): Delete function, move
4136 implementation to...
4137 (d_language::language_arch_info): ...here, a new member
4138 function.
4139 (d_language_data): Delete la_language_arch_info.
4140 * f-lang.c (f_language_arch_info): Delete function, move
4141 implementation to...
4142 (f_language::language_arch_info): ...here, a new member
4143 function.
4144 (f_language_data): Delete la_language_arch_info.
4145 * go-lang.c (go_language_arch_info): Delete function, move
4146 implementation to...
4147 (go_language::language_arch_info): ...here, a new member
4148 function.
4149 (go_language_data): Delete la_language_arch_info.
4150 * language.c (unknown_language_data): Likewise.
4151 (unknown_language::language_arch_info): New member function.
4152 (auto_language_data): Delete la_language_arch_info.
4153 (auto_language::language_arch_info): New member function.
4154 (language_gdbarch_post_init): Update call to
4155 la_language_arch_info.
4156 * language.h (language_data): Delete la_language_arch_info
4157 function pointer.
4158 (language_defn::language_arch_info): New function.
4159 * m2-lang.c (m2_language_arch_info): Delete function, move
4160 implementation to...
4161 (m2_language::language_arch_info): ...here, a new member
4162 function.
4163 (m2_language_data): Delete la_language_arch_info.
4164 * objc-lang.c (objc_language_arch_info): Delete function, move
4165 implementation to...
4166 (objc_language::language_arch_info): ...here, a new member
4167 function.
4168 (objc_language_data): Delete la_language_arch_info.
4169 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4170 implementation to...
4171 (opencl_language::language_arch_info): ...here, a new member
4172 function.
4173 (opencl_language_data): Delete la_language_arch_info.
4174 * p-lang.c (pascal_language_arch_info): Delete function, move
4175 implementation to...
4176 (pascal_language::language_arch_info): ...here, a new member
4177 function.
4178 (pascal_language_data): Delete la_language_arch_info.
4179 * rust-lang.c (rust_language_arch_info): Delete function, move
4180 implementation to...
4181 (rust_language::language_arch_info): ...here, a new member
4182 function.
4183 (rust_language_data): Delete la_language_arch_info.
4184
4185 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4186
4187 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4188 initializer.
4189 * c-lang.c (c_language_data): Likewise.
4190 (cplus_language_data): Likewise.
4191 (cplus_language::pass_by_reference_info): New method.
4192 (asm_language_data): Delete la_pass_by_reference initializer.
4193 (minimal_language_data): Likewise.
4194 * cp-abi.c (cp_pass_by_reference): Remove use of
4195 default_pass_by_reference.
4196 * d-lang.c (d_language_data): Likewise.
4197 * f-lang.c (f_language_data): Likewise.
4198 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4199 default_pass_by_reference.
4200 * go-lang.c (go_language_data): Likewise.
4201 * language.c (language_pass_by_reference): Update.
4202 (default_pass_by_reference): Delete.
4203 (unknown_language_data): Delete la_pass_by_reference
4204 initializer.
4205 (auto_language_data): Likewise.
4206 * language.h (struct language_data): Delete la_pass_by_reference
4207 field.
4208 (language_defn::pass_by_reference_info): New member function.
4209 (default_pass_by_reference): Delete declaration.
4210 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4211 initializer.
4212 * objc-lang.c (objc_language_data): Likewise.
4213 * opencl-lang.c (opencl_language_data): Likewise.
4214 * p-lang.c (pascal_language_data): Likewise.
4215 * rust-lang.c (rust_language_data): Likewise.
4216
4217 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4218
4219 * ada-lang.c (ada_read_var_value): Delete function, move
4220 implementation to...
4221 (ada_language::read_var_value): ...here.
4222 (ada_language_data): Delete la_read_var_value initializer.
4223 * c-lang.c (c_language_data): Likewise.
4224 (cplus_language_data): Likewise.
4225 (minimal_language_data): Likewise.
4226 * d-lang.c (d_language_data): Likewise.
4227 * f-lang.c (f_language_data): Likewise.
4228 * findvar.c (default_read_var_value): Rename to...
4229 (language_defn::read_var_value): ...this.
4230 * findvar.c (read_var_value): Update header comment, and change to
4231 call member function instead of function pointer.
4232 * go-lang.c (go_language_data): Likewise.
4233 * language.c (unknown_language_data): Delete la_read_var_value
4234 initializer.
4235 (auto_language_data): Likewise.
4236 * language.h (struct language_data): Delete la_read_var_value
4237 field.
4238 (language_defn::read_var_value): New member function.
4239 (default_read_var_value): Delete declaration.
4240 * m2-lang.c (m2_language_data): Delete la_read_var_value
4241 initializer.
4242 * objc-lang.c (objc_language_data): Likewise.
4243 * opencl-lang.c (opencl_language_data): Likewise.
4244 * p-lang.c (pascal_language_data): Likewise.
4245 * rust-lang.c (rust_language_data): Likewise.
4246 * value.h (default_read_var_value): Delete declaration.
4247
4248 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4249
4250 * ada-lang.c (ada_print_array_index): Delete function, move
4251 implementation to...
4252 (ada_language::print_array_index): ...here.
4253 (ada_language_data): Delete la_print_array_index initializer.
4254 * c-lang.c (c_language_data): Likewise.
4255 (cplus_language_data): Likewise.
4256 (minimal_language_data): Likewise.
4257 * d-lang.c (d_language_data): Likewise.
4258 * f-lang.c (f_language_data): Likewise.
4259 * go-lang.c (go_language_data): Likewise.
4260 * language.c (default_print_array_index): Delete function, move
4261 implementation to...
4262 (language_defn::print_array_index): ...here.
4263 (unknown_language_data): Delete la_print_array_index initializer.
4264 (auto_language_data): Likewise.
4265 * language.h (struct language_data): Delete la_print_array_index
4266 field.
4267 (language_defn::print_array_index): New member function.
4268 (LA_PRINT_ARRAY_INDEX): Update.
4269 (default_print_array_index): Delete declaration.
4270 * m2-lang.c (m2_language_data): Delete la_print_array_index
4271 initializer.
4272 * objc-lang.c (objc_language_data): Likewise.
4273 * opencl-lang.c (opencl_language_data): Likewise.
4274 * p-lang.c (pascal_language_data): Likewise.
4275 * rust-lang.c (rust_language_data): Likewise.
4276
4277 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4278
4279 * gdb/ada-lang.c (ada_language_defn): Convert to...
4280 (ada_language_data): ...this.
4281 (class ada_language): New class.
4282 (ada_language_defn): New static global.
4283 * gdb/c-lang.c (c_language_defn): Convert to...
4284 (c_language_data): ...this.
4285 (class c_language): New class.
4286 (c_language_defn): New static global.
4287 (cplus_language_defn): Convert to...
4288 (cplus_language_data): ...this.
4289 (class cplus_language): New class.
4290 (cplus_language_defn): New static global.
4291 (asm_language_defn): Convert to...
4292 (asm_language_data): ...this.
4293 (class asm_language): New class.
4294 (asm_language_defn): New static global.
4295 (minimal_language_defn): Convert to...
4296 (minimal_language_data): ...this.
4297 (class minimal_language): New class.
4298 (minimal_language_defn): New static global.
4299 * gdb/d-lang.c (d_language_defn): Convert to...
4300 (d_language_data): ...this.
4301 (class d_language): New class.
4302 (d_language_defn): New static global.
4303 * gdb/f-lang.c (f_language_defn): Convert to...
4304 (f_language_data): ...this.
4305 (class f_language): New class.
4306 (f_language_defn): New static global.
4307 * gdb/go-lang.c (go_language_defn): Convert to...
4308 (go_language_data): ...this.
4309 (class go_language): New class.
4310 (go_language_defn): New static global.
4311 * gdb/language.c (unknown_language_defn): Remove declaration.
4312 (current_language): Initialize to nullptr, real initialization is
4313 moved to _initialize_language.
4314 (languages): Delete global.
4315 (language_defn::languages): Define.
4316 (set_language_command): Use language_defn::languages.
4317 (set_language): Likewise.
4318 (range_error): Likewise.
4319 (language_enum): Likewise.
4320 (language_def): Likewise.
4321 (add_set_language_command): Use language_def::languages for the
4322 language list, and language_def to lookup language pointers.
4323 (skip_language_trampoline): Use language_defn::languages.
4324 (unknown_language_defn): Convert to...
4325 (unknown_language_data): ...this.
4326 (class unknown_language): New class.
4327 (unknown_language_defn): New static global.
4328 (auto_language_defn): Convert to...
4329 (auto_language_data): ...this.
4330 (class auto_language): New class.
4331 (auto_language_defn): New static global.
4332 (language_gdbarch_post_init): Use language_defn::languages.
4333 (_initialize_language): Initialize current_language.
4334 * gdb/language.h (struct language_defn): Rename to...
4335 (struct language_data): ...this.
4336 (struct language_defn): New.
4337 (auto_language_defn): Delete.
4338 (unknown_language_defn): Delete.
4339 (minimal_language_defn): Delete.
4340 (ada_language_defn): Delete.
4341 (asm_language_defn): Delete.
4342 (c_language_defn): Delete.
4343 (cplus_language_defn): Delete.
4344 (d_language_defn): Delete.
4345 (f_language_defn): Delete.
4346 (go_language_defn): Delete.
4347 (m2_language_defn): Delete.
4348 (objc_language_defn): Delete.
4349 (opencl_language_defn): Delete.
4350 (pascal_language_defn): Delete.
4351 (rust_language_defn): Delete.
4352 * gdb/m2-lang.c (m2_language_defn): Convert to...
4353 (m2_language_data): ...this.
4354 (class m2_language): New class.
4355 (m2_language_defn): New static global.
4356 * gdb/objc-lang.c (objc_language_defn): Convert to...
4357 (objc_language_data): ...this.
4358 (class objc_language): New class.
4359 (objc_language_defn): New static global.
4360 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4361 (opencl_language_data): ...this.
4362 (class opencl_language): New class.
4363 (opencl_language_defn): New static global.
4364 * gdb/p-lang.c (pascal_language_defn): Convert to...
4365 (pascal_language_data): ...this.
4366 (class pascal_language): New class.
4367 (pascal_language_defn): New static global.
4368 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4369 language pointer, update comment format.
4370 * gdb/rust-lang.c (rust_language_defn): Convert to...
4371 (rust_language_data): ...this.
4372 (class rust_language): New class.
4373 (rust_language_defn): New static global.
4374
4375 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4376
4377 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4378 member variable.
4379 <m_stmt_at_address>: New member variable.
4380 (lnp_state_machine::record_line): Don't record some lines, update
4381 tracking of is_stmt at the same address.
4382 (lnp_state_machine::lnp_state_machine): Initialise new member
4383 variables.
4384
4385 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4386
4387 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4388 "-include gnu-nat-mig.h".
4389 * gnu-nat-mig.h: New file.
4390 * gnu-nat.c: Include "gnu-nat-mig.h".
4391 (exc_server, msg_reply_server, notify_server,
4392 process_reply_server): Remove declarations.
4393
4394 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4395
4396 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4397 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4398 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4399 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4400 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4401 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4402 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4403 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4404 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4405 to gnu_nat_target class.
4406 * gnu-nat.c: Likewise.
4407 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4408 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4409 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4410 object.
4411 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4412 instead of `gnu_target'.
4413
4414 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4415
4416 * i386-gnu-tdep.c: Include "gdbcore.h"
4417 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4418 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4419 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4420 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4421 i386_gnu_sigcontext_addr): New functions
4422 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4423 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4424 tdep.
4425
4426 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4427
4428 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4429 before fork_inferior call. Avoid calling it if target_is_pushed returns
4430 true.
4431
4432 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4433
4434 * gnu-nat.h (gnu_target): New variable declaration.
4435 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4436 gnu_target.
4437 * gnu-nat.c (gnu_target): New variable.
4438 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4439 add_thread_silent, and add_thread calls.
4440 (gnu_nat_target::create_inferior): Pass gnu_target to
4441 add_thread_silent, thread_change_ptid call.
4442 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4443 call.
4444
4445 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4446
4447 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4448 (gnu_nat_target::find_memory_regions): Remove unused
4449 `old_address' variable.
4450
4451 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4452
4453 * gnu-nat.c: Include "gdbarch.h".
4454
4455 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4456
4457 * reply_mig_hack.awk (Error return): Cast function through
4458 void *, to bypass compiler function call check.
4459
4460 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4461
4462 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4463 $(srcdir)/reply_mig_hack.awk.
4464
4465 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4466
4467 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4468
4469 2020-05-30 Jonny Grant <jg@jguk.org>
4470
4471 * configure.ac (ACX_BUGURL): change bug URL to https.
4472
4473 2020-05-30 Pedro Alves <palves@redhat.com>
4474
4475 * cp-support.c (replace_typedefs_template): New.
4476 (replace_typedefs_qualified_name): Handle
4477 DEMANGLE_COMPONENT_TEMPLATE.
4478
4479 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4480
4481 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4482 dwarf2/index-cache.h, dwarf2/index-write.c,
4483 dwarf2/index-write.h, dwarf2/line-header.c,
4484 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4485 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4486 variables and fields from `dwarf2_per_objfile` to just
4487 `per_objfile` throughout.
4488
4489 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4490
4491 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4492 <push_dwarf_reg_entry_value>: Add comment.
4493
4494 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4495 Keith Seitz <keiths@redhat.com>
4496
4497 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4498 instead of PyEval_ReleaseLock.
4499 (class gdbpy_gil): Move to earlier in file.
4500 (finalize_python): Set gdb_python_initialized.
4501 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4502 when not initialized.
4503
4504 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4505
4506 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4507 <push_dwarf_reg_entry_value>: Remove assert. Override
4508 per_objfile with caller_per_objfile.
4509
4510 2020-05-28 Tom de Vries <tdevries@suse.de>
4511
4512 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4513 PR gold/15646 workaround to symbol kind "type".
4514
4515 2020-05-27 Tom Tromey <tromey@adacore.com>
4516
4517 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4518
4519 2020-05-27 Tom Tromey <tromey@adacore.com>
4520
4521 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4522 Use htab_find_with_hash.
4523 <add_abbrev>: Remove "abbrev_number" parameter.
4524 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4525 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4526 (hash_abbrev): Add comment.
4527 (abbrev_table::lookup_abbrev): Move to header file.
4528 (abbrev_table::read): Update.
4529
4530 2020-05-27 Tom Tromey <tromey@adacore.com>
4531
4532 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4533 method.
4534 <canonical_name>: New member.
4535 <raw_name>: Rename from "name".
4536 (partial_die_info): Initialize canonical_name.
4537 (scan_partial_symbols): Check raw_name.
4538 (partial_die_parent_scope, partial_die_full_name)
4539 (add_partial_symbol, add_partial_subprogram)
4540 (add_partial_enumeration, load_partial_dies): Use "name" method.
4541 (partial_die_info::name): New method.
4542 (partial_die_info::read, guess_partial_die_structure_name)
4543 (partial_die_info::fixup): Update.
4544
4545 2020-05-27 Tom Tromey <tromey@adacore.com>
4546
4547 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4548 <get_ref_die_offset>: Inline.
4549 <get_ref_die_offset_complaint>: New method.
4550 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4551 (attribute::get_ref_die_offset_complaint): Rename from
4552 get_ref_die_offset. Just issue complaint.
4553
4554 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4555
4556 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4557
4558 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4559
4560 * exec.c (exec_file_attach): Use errno value of first openp failure.
4561
4562 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4563
4564 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4565 Don't close thread handle.
4566
4567 2020-05-27 Tom Tromey <tom@tromey.com>
4568 Simon Marchi <simon.marchi@efficios.com>
4569
4570 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4571 shared_ptr.
4572 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4573 member.
4574 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4575 dwarf2_per_bfd_objfile_data_key>: New globals.
4576 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4577 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4578 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4579 shared.
4580 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4581 short-circuit when sharing.
4582 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4583 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4584
4585 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4586
4587 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4588 to...
4589 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4590 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4591
4592 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4593
4594 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4595 build_name_components, find_name_components_bounds>:
4596 Add per_objfile parameter.
4597 (struct mapped_index) <symbol_name_at>: Likewise.
4598 (struct mapped_debug_names): Remove constructor.
4599 <dwarf2_per_objfile>: Remove field.
4600 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4601 (mapped_index_base::find_name_components_bounds,
4602 mapped_index_base::build_name_components,
4603 dw2_expand_symtabs_matching_symbol): Likewise.
4604 (class mock_mapped_index) <symbol_name_at>: Likewise.
4605 (check_match): Likewise.
4606 (check_find_bounds_finds): Likewise.
4607 (test_mapped_index_find_name_component_bounds): Update.
4608 (CHECK_MATCH): Update.
4609 (dw2_expand_symtabs_matching): Update.
4610 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4611 per_objfile parameter.
4612 <find_vec_in_debug_names>: Likewise.
4613 <m_per_objfile>: New field.
4614 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4615 parameter.
4616 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4617 (dw2_debug_names_iterator::next): Update.
4618 (dw2_debug_names_lookup_symbol): Update.
4619 (dw2_debug_names_expand_symtabs_for_function): Update.
4620 (dw2_debug_names_map_matching_symbols): Update.
4621 (dw2_debug_names_expand_symtabs_matching): Update.
4622 (dwarf2_read_debug_names): Update.
4623
4624 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4625
4626 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4627 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4628 move to dwarf2_per_objfile.
4629 <read_in_chain>: Remove.
4630 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4631 remove_all_cus, age_comp_units>: New methods.
4632 <m_dwarf2_cus>: New member.
4633 (struct dwarf2_per_cu_data) <cu>: Remove.
4634 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4635 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4636 moved to methods of dwarf2_per_objfile.
4637 (dwarf2_clear_marks): Remove.
4638 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4639 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4640 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4641 (dwarf2_per_objfile::remove_all_cus): New.
4642 (class free_cached_comp_units) <~free_cached_comp_units>:
4643 Update.
4644 (load_cu): Update.
4645 (dw2_do_instantiate_symtab): Adjust.
4646 (fill_in_sig_entry_from_dwo_entry): Adjust.
4647 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4648 (cutu_reader::cutu_reader): Likewise.
4649 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4650 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4651 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4652 and dwarf2_per_objfile::age_comp_units.
4653 (load_partial_comp_unit): Update.
4654 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4655 (process_queue): Likewise.
4656 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4657 backlink.
4658 (dwarf2_read_addr_index): Likewise.
4659 (follow_die_offset): Likewise.
4660 (dwarf2_fetch_die_loc_sect_off): Likewise.
4661 (dwarf2_fetch_constant_bytes): Likewise.
4662 (dwarf2_fetch_die_type_sect_off): Likewise.
4663 (follow_die_sig_1): Likewise.
4664 (load_full_type_unit): Likewise.
4665 (read_signatured_type): Likewise.
4666 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4667 (dwarf2_cu::~dwarf2_cu): Remove.
4668 (dwarf2_per_objfile::get_cu): New.
4669 (dwarf2_per_objfile::set_cu): New.
4670 (age_cached_comp_units): Rename to...
4671 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4672 to std::unordered_map.
4673 (free_one_cached_comp_unit): Rename to...
4674 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4675 to std::unordered_map.
4676 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4677 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4678 a dwarf2_per_objfile in data.
4679 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4680 (dwarf2_clear_marks): Remove.
4681
4682 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4683
4684 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4685 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4686 (init_tu_and_read_dwo_dies): Likewise.
4687 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4688 (cutu_reader::cutu_reader): Likewise.
4689 (load_partial_comp_unit): Likewise.
4690 (process_psymtab_comp_unit): Update.
4691 (build_type_psymtabs_1): Update.
4692 (process_skeletonless_type_unit): Update.
4693 (load_full_comp_unit): Update.
4694 (find_partial_die): Update.
4695 (dwarf2_read_addr_index): Update.
4696 (read_signatured_type): Update.
4697
4698 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4699
4700 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4701 m_header_read_in>: New fields.
4702 <get_header>: New method.
4703 * dwarf2/read.c (per_cu_header_read_in): Remove.
4704 (dwarf2_per_cu_data::get_header): New.
4705 (dwarf2_per_cu_data::addr_size): Update.
4706 (dwarf2_per_cu_data::offset_size): Update.
4707 (dwarf2_per_cu_data::ref_addr_size): Update.
4708
4709 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4710
4711 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4712 (dw2_do_instantiate_symtab): Update.
4713 (queue_and_load_all_dwo_tus): Change parameter from
4714 dwarf2_per_cu_data to dwarf2_cu.
4715 (dwarf2_fetch_die_loc_sect_off): Update.
4716 (dwarf2_fetch_constant_bytes): Update.
4717 (dwarf2_fetch_die_type_sect_off): Update.
4718
4719 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4720
4721 * dwarf2/read.c (process_full_comp_unit,
4722 process_full_type_unit): Remove per_cu, per_objfile paramters.
4723 Add dwarf2_cu parameter.
4724 (process_queue): Update.
4725
4726 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4727
4728 * dwarf2/read.c (create_cu_from_index_list): Replace
4729 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4730 (create_cus_from_index_list): Likewise.
4731 (create_cus_from_index): Likewise.
4732 (create_signatured_type_table_from_index): Likewise.
4733 (create_cus_from_debug_names_list): Likewise.
4734 (create_cus_from_debug_names): Likewise.
4735 (dwarf2_read_gdb_index): Update.
4736 (dwarf2_read_debug_names): Update.
4737
4738 2020-05-27 Tom Tromey <tom@tromey.com>
4739 Simon Marchi <simon.marchi@efficios.com>
4740
4741 * dwarf2/read.h (struct dwarf2_per_objfile)
4742 <get_type_for_signatured_type, set_type_for_signatured_type>:
4743 New methods.
4744 <m_type_map>: New member.
4745 (struct signatured_type) <type>: Remove.
4746 * dwarf2/read.c
4747 (dwarf2_per_objfile::get_type_for_signatured_type,
4748 dwarf2_per_objfile::set_type_for_signatured_type): New.
4749 (get_signatured_type): Use new methods.
4750
4751 2020-05-27 Tom Tromey <tom@tromey.com>
4752 Simon Marchi <simon.marchi@efficios.com>
4753
4754 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4755 (struct dwarf2_per_objfile) <type_units>: New member.
4756 <get_type_unit_group_unshareable>: New method.
4757 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4758 num_symtabs, symtabs>: Remove; move to
4759 type_unit_group_unshareable.
4760 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4761 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4762 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4763
4764 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4765
4766 * dwarf2/read.h (struct dwarf2_per_cu_data):
4767 <dwarf2_per_objfile>: Remove.
4768 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4769 dwarf2_per_objfile.
4770 (create_signatured_type_table_from_index): Likewise.
4771 (create_signatured_type_table_from_debug_names): Likewise.
4772 (create_debug_type_hash_table): Likewise.
4773 (fill_in_sig_entry_from_dwo_entry): Likewise.
4774 (create_type_unit_group): Likewise.
4775 (read_comp_units_from_section): Likewise.
4776 (create_cus_hash_table): Likewise.
4777
4778 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4779
4780 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4781 dwarf2_per_cu_data::dwarf2_per_objfile.
4782 (compute_compunit_symtab_includes): Likewise.
4783 (dwarf2_cu::start_symtab): Likewise.
4784
4785 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4786
4787 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4788 parameter.
4789 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4790 (read_namespace_alias): Update.
4791 (lookup_die_type): Update.
4792 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4793 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4794 Update.
4795 (disassemble_dwarf_expression): Update.
4796
4797 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4798
4799 * dwarf2/read.h (struct dwarf2_queue_item): Add
4800 dwarf2_per_objfile parameter, assign new parameter.
4801 <per_objfile>: New field.
4802 * dwarf2/read.c (free_one_cached_comp_unit): Add
4803 dwarf2_per_objfile parameter.
4804 (queue_comp_unit): Likewise.
4805 (dw2_do_instantiate_symtab): Update.
4806 (process_psymtab_comp_unit): Update.
4807 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4808 (process_imported_unit_die): Update.
4809 (queue_and_load_dwo_tu): Update.
4810 (follow_die_offset): Update.
4811 (follow_die_sig_1): Update.
4812
4813 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4814
4815 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4816 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4817 (read_call_site_scope): Assign per_objfile.
4818 (dwarf2_per_cu_data::objfile): Remove.
4819 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4820 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4821 dwarf2_per_objfile parameter.
4822 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4823 dwarf2_per_objfile parameter.
4824 (dwarf_expr_reg_to_entry_parameter): Add output
4825 dwarf2_per_objfile parameter.
4826 (locexpr_get_frame_base): Update.
4827 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4828 <push_dwarf_reg_entry_value>: Update.
4829 <call_site_to_target_addr>: Update.
4830 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4831 parameter.
4832 (value_of_dwarf_reg_entry): Update.
4833 (rw_pieced_value): Update.
4834 (indirect_synthetic_pointer): Update.
4835 (dwarf2_evaluate_property): Update.
4836 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4837 parameter.
4838 (locexpr_read_variable): Update.
4839 (locexpr_get_symbol_read_needs): Update.
4840 (loclist_read_variable): Update.
4841
4842 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4843
4844 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4845 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4846 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4847 parameter.
4848 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4849 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4850 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4851 parameter.
4852 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4853 sect_variable_value): Add dwarf2_per_objfile parameter.
4854 (class dwarf_evaluate_loc_desc) <dwarf_call,
4855 dwarf_variable_value>: Update.
4856 (fetch_const_value_from_synthetic_pointer): Add
4857 dwarf2_per_objfile parameter.
4858 (fetch_const_value_from_synthetic_pointer): Update.
4859 (coerced_pieced_ref): Update.
4860 (class symbol_needs_eval_context) <dwarf_call,
4861 dwarf_variable_value>: Update.
4862 (dwarf2_compile_expr_to_ax): Update.
4863
4864 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4865
4866 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4867 parameter.
4868 (dwarf2_evaluate_loc_desc_full): Update.
4869
4870 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4871
4872 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4873 parameter.
4874 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4875 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4876 dwarf2_per_objfile parameter.
4877 (decode_debug_loc_dwo_addresses): Likewise.
4878 (dwarf2_find_location_expression): Update.
4879 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4880 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4881 parameter.
4882 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4883 parameter.
4884 (locexpr_describe_location_1): Likewise.
4885 (locexpr_describe_location): Update.
4886
4887 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4888
4889 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4890 Remove.
4891 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4892 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4893 (dwarf2_compile_property_to_c): Update.
4894 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4895 use text offset from objfile.
4896 (locexpr_tracepoint_var_ref): Update.
4897 (locexpr_generate_c_location): Update.
4898 (loclist_describe_location): Update.
4899 (loclist_tracepoint_var_ref): Update.
4900 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4901 dwarf2_per_objfile parameter.
4902 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4903 use text offset from objfile.
4904 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4905
4906 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4907
4908 * dwarf2/expr.h (struct dwarf_expr_context)
4909 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4910 <offset>: Remove.
4911 <per_objfile>: New member.
4912 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4913 dwarf2_per_objfile parameter. Don't set offset, set
4914 per_objfile.
4915 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4916 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4917 a dwarf2_per_objfile object instead of an offset.
4918 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4919 constructor.
4920 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4921 to dwarf2_expr_executor constructor. Don't set offset.
4922 (dwarf2_fetch_cfa_info): Update.
4923 (struct dwarf2_frame_cache) <text_offset>: Remove.
4924 <per_objfile>: New field.
4925 (dwarf2_frame_cache): Update.
4926 (dwarf2_frame_prev_register): Update.
4927 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4928 <dwarf_evaluate_loc_desc>: Add constructor.
4929 (dwarf2_evaluate_loc_desc_full): Update.
4930 (dwarf2_locexpr_baton_eval): Update.
4931 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4932 Add constructor.
4933 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4934
4935 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4936
4937 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4938 addr_sized_int_type>: Move to dwarf2_cu.
4939 <int_type>: Move to dwarf2_per_objfile.
4940 (struct dwarf2_per_objfile) <int_type>: Move here.
4941 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4942 addr_sized_int_type>: Move here.
4943 (read_func_scope): Update.
4944 (read_array_type): Update.
4945 (read_tag_string_type): Update.
4946 (attr_to_dynamic_prop): Update.
4947 (dwarf2_per_cu_data::int_type): Rename to...
4948 (dwarf2_per_objfile::int_type): ... this.
4949 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4950 (dwarf2_cu::addr_sized_int_type): ... this.
4951 (read_subrange_type): Update.
4952 (dwarf2_per_cu_data::addr_type): Rename to...
4953 (dwarf2_cu::addr_type): ... this.
4954 (set_die_type): Update.
4955
4956 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4957
4958 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4959 data through per_cu->cu.
4960
4961 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4962
4963 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4964 dwarf2_per_cu_data parameter fo dwarf2_cu.
4965 (lookup_dwo_type_unit): Likewise.
4966 (read_cutu_die_from_dwo): Likewise.
4967 (lookup_dwo_unit): Likewise.
4968 (open_and_init_dwo_file): Likewise.
4969 (lookup_dwo_cutu): Likewise.
4970 (lookup_dwo_comp_unit): Likewise.
4971 (lookup_dwo_type_unit): Likewise.
4972 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4973 (cutu_reader::cutu_reader): Update.
4974
4975 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4976
4977 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4978 parameter.
4979 (process_full_type_unit): Likewise.
4980 (process_queue): Update.
4981
4982 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4983
4984 * dwarf2/read.c (recursively_compute_inclusions): Add
4985 dwarf2_per_objfile parameter.
4986 (compute_compunit_symtab_includes): Likewise.
4987 (process_cu_includes): Update.
4988
4989 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4990
4991 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4992 parameter.
4993 (create_type_unit_group): Update.
4994 (process_psymtab_comp_unit_reader): Update.
4995 (build_type_psymtabs_reader): Update.
4996
4997 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4998
4999 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
5000 object through m_this_cu->cu.
5001
5002 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5003
5004 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
5005 the info parameter.
5006 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
5007
5008 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5009
5010 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
5011 per_objfile parameter.
5012 (load_full_type_unit): Add per_objfile parameter.
5013 (read_signatured_type): Likewise.
5014 (load_full_comp_unit): Likewise.
5015 (load_cu): Likewise.
5016 (dw2_do_instantiate_symtab): Likewise.
5017 (dw2_get_file_names): Likewise.
5018 (dw2_map_symtabs_matching_filename): Update.
5019 (dw_expand_symtabs_matching_file_matcher): Update.
5020 (dw2_map_symbol_filenames): Update.
5021 (process_psymtab_comp_unit): Add per_objfile parameter.
5022 (build_type_psymtabs_1): Update.
5023 (process_skeletonless_type_unit): Update.
5024 (dwarf2_build_psymtabs_hard): Update.
5025 (load_partial_comp_unit): Add per_objfile parameter.
5026 (scan_partial_symbols): Update.
5027 (load_full_comp_unit): Add per_objfile parameter.
5028 (process_imported_unit_die): Update.
5029 (create_cus_hash_table): Update.
5030 (find_partial_die): Update.
5031 (dwarf2_read_addr_index): Update.
5032 (follow_die_offset): Update.
5033 (dwarf2_fetch_die_loc_sect_off): Update.
5034 (dwarf2_fetch_constant_bytes): Update.
5035 (dwarf2_fetch_die_type_sect_off): Update.
5036 (follow_die_sig_1): Update.
5037 (load_full_type_unit): Add per_objfile parameter.
5038 (read_signatured_type): Likewise.
5039
5040 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5041
5042 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5043 of objfile_name.
5044
5045 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5046
5047 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5048 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5049 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5050 field.
5051 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5052 (create_cus_from_index): Update.
5053 (dwarf2_read_gdb_index): Update.
5054 (create_cus_from_debug_names): Update.
5055 (dwarf2_read_debug_names): Update.
5056 (get_abbrev_section_for_cu): Update.
5057 (create_all_comp_units): Update.
5058 (read_attribute_value): Update.
5059 (get_debug_line_section): Update.
5060 * dwarf2/index-cache.c (index_cache::store): Update.
5061 * dwarf2/index-write.c (save_gdb_index_command): Update.
5062 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5063
5064 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5065
5066 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5067 member.
5068 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5069 dwarf2_per_cu_data::per_bfd.
5070 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5071 (create_type_unit_group): Likewise.
5072 (queue_comp_unit): Remove reference to
5073 per_cu->dwarf2_per_objfile.
5074 (maybe_queue_comp_unit): Likewise.
5075 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5076 (create_cus_hash_table): Assign new field.
5077
5078 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5079
5080 * dwarf2/read.c: Replace
5081 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5082 dwarf2_cu->per_objfile throughout.
5083
5084 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5085
5086 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5087 parameter, don't use per_cu->dwarf2_per_objfile.
5088 (dw2_instantiate_symtab): Likewise.
5089 (dw2_find_last_source_symtab): Update.
5090 (dw2_map_expand_apply): Update.
5091 (dw2_lookup_symbol): Update.
5092 (dw2_expand_symtabs_for_function): Update.
5093 (dw2_expand_all_symtabs): Update.
5094 (dw2_expand_symtabs_with_fullname): Update.
5095 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5096 don't use per_cu->dwarf2_per_objfile.
5097 (dw2_expand_marked_cus): Update.
5098 (dw2_find_pc_sect_compunit_symtab): Update.
5099 (dw2_debug_names_lookup_symbol): Update.
5100 (dw2_debug_names_expand_symtabs_for_function): Update.
5101 (dw2_debug_names_map_matching_symbols): Update.
5102 (dwarf2_psymtab::expand_psymtab): Update.
5103
5104 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5105
5106 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5107 <per_objfile>: New member.
5108 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5109 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5110 call to dwarf2_cu.
5111 (cutu_reader::cutu_reader): Update.
5112 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5113
5114 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5115
5116 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5117 struct dwarf2_per_objfile.
5118 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5119 dwarf2_per_bfd.
5120 * dwarf2/read.c (set_die_type): Update.
5121 (get_die_type_at_offset): Update.
5122
5123 2020-05-27 Tom Tromey <tom@tromey.com>
5124 Simon Marchi <simon.marchi@efficios.com>
5125
5126 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5127 method.
5128 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5129 get_symtab, set_symtab>: New methods.
5130 <m_symtabs>: New field.
5131 (struct dwarf2_psymtab): Derive from partial_symtab.
5132 <readin_p, get_compunit_symtab>: Declare methods.
5133 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5134 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5135 New methods.
5136 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5137 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5138 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5139 (dw2_symtab_iter_next, dw2_print_stats)
5140 (dw2_expand_symtabs_with_fullname)
5141 (dw2_expand_symtabs_matching_one)
5142 (dw_expand_symtabs_matching_file_matcher)
5143 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5144 (dw2_debug_names_iterator::next)
5145 (dw2_debug_names_map_matching_symbols)
5146 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5147 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5148 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5149 New methods.
5150 (get_compunit_symtab, process_full_comp_unit)
5151 (process_full_type_unit): Update.
5152 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5153
5154 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5155
5156 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5157 then introduce a new dwarf2_per_objfile type.
5158 <read_line_string>: Move to the new dwarf2_per_objfile type.
5159 <objfile>: Likewise.
5160 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5161 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5162 dwarf2_per_objfile->per_bfd.
5163 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5164 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5165 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5166 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5167 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5168 (dwarf2_per_objfile::locate_sections): Rename to...
5169 (dwarf2_per_bfd::locate_sections): ... this.
5170 (dwarf2_per_objfile::get_cutu): Rename to...
5171 (dwarf2_per_bfd::get_cutu): ... this.
5172 (dwarf2_per_objfile::get_cu): Rename to...
5173 (dwarf2_per_bfd::get_cu): ... this.
5174 (dwarf2_per_objfile::get_tu): Rename to...
5175 (dwarf2_per_bfd::get_tu): ... this.
5176 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5177 (dwarf2_per_bfd::allocate_per_cu): ... this.
5178 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5179 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5180 (get_gdb_index_contents_ftype): Change parameter from
5181 dwarf2_per_objfile to dwarf2_per_bfd.
5182 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5183 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5184
5185 2020-05-27 Tom Tromey <tom@tromey.com>
5186 Simon Marchi <simon.marchi@efficios.com>
5187
5188 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5189 (allocate_piece_closure): Set "per_objfile" member.
5190 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5191 (locexpr_describe_location, loclist_describe_location): Use new
5192 member.
5193 * dwarf2/read.c (read_call_site_scope)
5194 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5195 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5196 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5197 handle_data_member_location): Set per_objfile member.
5198 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5199 member.
5200 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5201
5202 2020-05-27 Tom Tromey <tom@tromey.com>
5203
5204 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5205 allocate_signatured_type>: Declare new methods.
5206 <m_num_psymtabs>: New member.
5207 (struct dwarf2_per_cu_data) <index>: New member.
5208 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5209 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5210 (create_cu_from_index_list): Use allocate_per_cu.
5211 (create_signatured_type_table_from_index)
5212 (create_signatured_type_table_from_debug_names)
5213 (create_debug_type_hash_table, add_type_unit)
5214 (read_comp_units_from_section): Use allocate_signatured_type.
5215
5216 2020-05-27 Tom Tromey <tom@tromey.com>
5217
5218 * psymtab.c (partial_map_expand_apply)
5219 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5220 (psym_lookup_global_symbol_language)
5221 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5222 (psym_print_stats, psym_expand_symtabs_for_function)
5223 (psym_map_symbol_filenames, psym_map_matching_symbols)
5224 (psym_expand_symtabs_matching)
5225 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5226 (maintenance_check_psymtabs): Update.
5227 * psympriv.h (struct partial_symtab) <readin_p,
5228 get_compunit_symtab>: Add objfile parameter.
5229 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5230 Likewise.
5231 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5232 get_compunit_symtab>: Likewise.
5233 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5234
5235 2020-05-27 Tom Tromey <tom@tromey.com>
5236
5237 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5238 member.
5239 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5240 (create_cu_from_index_list)
5241 (create_signatured_type_table_from_index)
5242 (create_signatured_type_table_from_debug_names)
5243 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5244 (dwarf2_create_include_psymtab)
5245 (create_debug_type_hash_table, add_type_unit)
5246 (create_type_unit_group, read_comp_units_from_section)
5247 (dwarf2_compute_name, create_cus_hash_table)
5248 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5249 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5250 obstack.
5251 (dw2_get_real_path): Likewise. Change argument to
5252 dwarf2_per_objfile.
5253
5254 2020-05-27 Luis Machado <luis.machado@linaro.org>
5255
5256 PR tdep/26000
5257 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5258 for ldrd (immediate).
5259
5260 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5261
5262 * command.h: Add comment giving the name of class_tui.
5263 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5264 create the fake command for the help for class_tui.
5265
5266 2020-05-26 Tom Tromey <tromey@adacore.com>
5267
5268 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5269 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5270 (val_atr): New function.
5271 (value_val_atr): Use it.
5272 * ada-valprint.c (print_optional_low_bound): Change low bound
5273 handling for enums.
5274 (val_print_packed_array_elements): Don't call discrete_position.
5275 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5276 discrete_position for enum types.
5277 * language.c (default_print_array_index): Change type.
5278 * language.h (struct language_defn) <la_print_array_index>: Add
5279 index_type parameter, change type of index_value.
5280 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5281 (default_print_array_index): Update.
5282 * valprint.c (maybe_print_array_index): Don't call
5283 value_from_longest. Update.
5284 (value_print_array_elements): Don't call discrete_position.
5285
5286 2020-05-26 Tom Tromey <tromey@adacore.com>
5287
5288 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5289 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5290
5291 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5292
5293 PR gdb/13519
5294 * avr-tdep.c (avr_integer_to_address): Return data or code
5295 address accordingly to the second 'type' argument of the
5296 function.
5297
5298 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5299
5300 * infcmd.c, inferior.h: (construct_inferior_arguments):
5301 Moved function from here to gdbsupport/common-inferior.{h,cc}
5302
5303 2020-05-23 Tom Tromey <tom@tromey.com>
5304
5305 Revert commit eca1f90c:
5306 * NEWS: Remove entry for completion styling.
5307 * completer.c (_rl_completion_prefix_display_length): Move
5308 declaration later.
5309 (gdb_fnprint): Revert.
5310 (gdb_display_match_list_1): Likewise.
5311 * cli/cli-style.c (completion_prefix_style)
5312 (completion_difference_style, completion_suffix_style): Remove.
5313 (_initialize_cli_style): Revert.
5314 * cli/cli-style.h (completion_prefix_style)
5315 (completion_difference_style, completion_suffix_style): Don't
5316 declare.
5317
5318 2020-05-24 Pedro Alves <palves@redhat.com>
5319
5320 * symtab.c (completion_list_add_name): Return boolean indication
5321 of whether the symbol matched.
5322 (completion_list_add_symbol): Don't try to remove C++ aliases if
5323 the symbol didn't match in the first place.
5324 * symtab.h (completion_list_add_name): Return bool.
5325
5326 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5327
5328 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5329 type::field.
5330
5331 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5332
5333 GDB 9.2 released.
5334
5335 2020-05-23 Tom Tromey <tom@tromey.com>
5336
5337 * NEWS: Add entry for completion styling.
5338 * completer.c (_rl_completion_prefix_display_length): Move
5339 declaration earlier.
5340 (gdb_fnprint): Use completion_style.
5341 (gdb_display_match_list_1): Likewise.
5342 * cli/cli-style.c (completion_prefix_style)
5343 (completion_difference_style, completion_suffix_style): New
5344 globals.
5345 (_initialize_cli_style): Register new globals.
5346 * cli/cli-style.h (completion_prefix_style)
5347 (completion_difference_style, completion_suffix_style): Declare.
5348
5349 2020-05-23 Pedro Alves <palves@redhat.com>
5350
5351 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5352 (parse_escape): Use ISDIGIT instead of isdigit.
5353 (puts_debug): Use gdb_isprint instead of isprint.
5354 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5355 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5356 ISSPACE instead of isspace.
5357 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5358 instead of isspace.
5359 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5360 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5361 instead of isxdigit and ISDIGIT instead of isdigit.
5362
5363 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5364
5365 * gdbtypes.h (struct type) <field>: New method.
5366 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5367 or type::field.
5368
5369 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5370
5371 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5372 (TYPE_FIELDS): Use type::fields. Change all call sites that
5373 modify the propery to use type::set_fields instead.
5374
5375 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5376
5377 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5378 type::num_fields instead.
5379
5380 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5381
5382 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5383 methods.
5384 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5385 that modify the number of fields to use type::set_num_fields
5386 instead.
5387
5388 2020-05-22 Tom Tromey <tromey@adacore.com>
5389
5390 * compile/compile-object-load.h (munmap_list_free): Don't
5391 declare.
5392
5393 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5394
5395 * annotate.c (annotate_source_line): Update return type, add call
5396 to update current symtab and line.
5397 * annotate.h (annotate_source_line): Update return type, and
5398 extend header comment.
5399 * source.c (info_line_command): Check annotation_level before
5400 calling annotate_source_line.
5401 * stack.c (print_frame_info): If calling annotate_source_line
5402 returns true, then don't print any other source line information.
5403
5404 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5405
5406 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5407
5408 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5409
5410 * coffread.c (patch_type): Remove NULL check before xfree.
5411 * corefile.c (set_gnutarget): Likewise.
5412 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5413 * exec.c (build_section_table): Likewise.
5414 * remote.c (remote_target::pass_signals): Likewise.
5415 * utils.c (n_spaces): Likewise.
5416 * cli/cli-script.c (document_command): Likewise.
5417 * i386-windows-tdep.c (core_process_module_section): Likewise.
5418 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5419
5420 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5421
5422 * symfile.c (reread_symbols): Clear objfile's section_offsets
5423 vector and section indices, re-compute them by calling
5424 sym_offsets.
5425
5426 2020-05-20 Tom Tromey <tromey@adacore.com>
5427
5428 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5429 (desc_one_bound, desc_index_type): Compute field name.
5430
5431 2020-05-20 Tom de Vries <tdevries@suse.de>
5432
5433 PR symtab/25833
5434 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5435
5436 2020-05-20 Alan Modra <amodra@gmail.com>
5437
5438 PR 25993
5439 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5440 bfd_set_filename.
5441 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5442 passed to bfd_set_filename.
5443 * symfile-mem.c (add_vsyscall_page): Likewise for string
5444 passed to symbol_file_add_from_memory.
5445 (symbol_file_add_from_memory): Make name param a const char* and
5446 don't strdup.
5447
5448 2020-05-20 Alan Modra <amodra@gmail.com>
5449
5450 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5451 rather than accessing bfd->filename directly.
5452 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5453 and use bfd_section_name.
5454 * dwarf2/frame.c (decode_frame_entry): Likewise.
5455 * exec.c (exec_set_section_address): Likewise.
5456 * solib-aix.c (solib_aix_bfd_open): Likewise.
5457 * stap-probe.c (get_stap_base_address): Likewise.
5458 * symfile.c (reread_symbols): Likewise.
5459
5460 2020-05-19 Tom Tromey <tromey@adacore.com>
5461
5462 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5463
5464 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5465
5466 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5467
5468 2020-05-19 Pedro Alves <palves@redhat.com>
5469
5470 * NEWS (set exec-file-mismatch): Adjust entry.
5471 * exec.c: Include "build-id.h".
5472 (validate_exec_file): Try to match build IDs instead of filenames.
5473 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5474 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5475 and pass down 'warn_if_slow'.
5476 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5477 gdb_bfd_open_closure to pass it down.
5478 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5479
5480 2020-05-19 Pedro Alves <palves@redhat.com>
5481
5482 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5483 * target.c (target_fileio_open_1): Rename to target_fileio_open
5484 and make extern. Use bool.
5485 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5486 (target_fileio_read_alloc_1): Adjust.
5487 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5488 (target_fileio_open_warn_if_slow): Delete declaration.
5489
5490 2020-05-19 Pedro Alves <palves@redhat.com>
5491
5492 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5493 Adjust all callers.
5494
5495 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5496
5497 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5498 whether disp is negative.
5499
5500 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5501
5502 * symfile.h (struct symfile_segment_data)
5503 <~symfile_segment_data>: Remove.
5504 <segment_info>: Change to std::vector.
5505 * symfile.c (default_symfile_segments): Update.
5506 * elfread.c (elf_symfile_segments): Update.
5507
5508 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5509
5510 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5511 <segments>: New.
5512 <segment_bases, segment_sizes>: Remove.
5513 * symfile.c (default_symfile_segments): Update.
5514 * elfread.c (elf_symfile_segments): Update.
5515 * remote.c (remote_target::get_offsets): Update.
5516 * solib-target.c (solib_target_relocate_section_addresses):
5517 Update.
5518
5519 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5520
5521 * symfile.h (struct symfile_segment_data): Initialize fields.
5522 <~symfile_segment_data>: Add.
5523 (symfile_segment_data_up): New.
5524 (struct sym_fns) <sym_segments>: Return a
5525 symfile_segment_data_up.
5526 (default_symfile_segments): Return a symfile_segment_data_up.
5527 (free_symfile_segment_data): Remove.
5528 (get_symfile_segment_data): Return a symfile_segment_data_up.
5529 * symfile.c (default_symfile_segments): Likewise.
5530 (get_symfile_segment_data): Likewise.
5531 (free_symfile_segment_data): Remove.
5532 (symfile_find_segment_sections): Update.
5533 * elfread.c (elf_symfile_segments): Return a
5534 symfile_segment_data_up.
5535 * remote.c (remote_target::get_offsets): Update.
5536 * solib-target.c (solib_target_relocate_section_addresses):
5537 Update.
5538 * symfile-debug.c (debug_sym_segments): Return a
5539 symfile_segment_data_up.
5540
5541 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5542
5543 PR build/25981
5544 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5545 Hardcode register numbers.
5546
5547 PR build/25981
5548 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5549 procfs_find_LDT_entry): Remove.
5550 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5551 procfs_find_LDT_entry): Remove.
5552 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5553 Remove.
5554
5555 2020-05-17 Pedro Alves <palves@redhat.com>
5556 Andrew Burgess <andrew.burgess@embecosm.com>
5557 Keno Fischer <keno@juliacomputing.com>
5558
5559 PR gdb/25741
5560 * breakpoint.c (build_target_condition_list): Update comments.
5561 (build_target_command_list): Update comments and skip matching
5562 locations.
5563 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5564 a separate function. Simplify "set breakpoint auto-hw off"
5565 handling.
5566 (insert_breakpoints): Update comment.
5567 (tracepoint_locations_match): New parameter. For breakpoints,
5568 compare location types too, if the caller wants to.
5569 (handle_automatic_hardware_breakpoints): New functions.
5570 (bp_location_is_less_than): Also sort by location type and
5571 hardware breakpoint length.
5572 (update_global_location_list): Handle "set breakpoint auto-hw on"
5573 here.
5574 (update_breakpoint_locations): Ask breakpoint_locations_match to
5575 ignore location types.
5576
5577 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5578
5579 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5580 type::name instead.
5581
5582 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5583
5584 * gdbtypes.h (struct type) <name, set_name>: New methods.
5585 (TYPE_CODE): Use type::name. Change all call sites used to set
5586 the name to use type::set_name instead.
5587
5588 2020-05-16 Tom Tromey <tom@tromey.com>
5589
5590 * top.c (quit_force): Update.
5591 * infrun.c (handle_no_resumed): Update.
5592 * top.h (all_uis): New function.
5593 (ALL_UIS): Remove.
5594
5595 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5596
5597 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5598
5599 2020-05-16 Pedro Alves <palves@redhat.com>
5600
5601 * ia64-linux-nat.c
5602 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5603 Declare method.
5604 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5605
5606 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5607
5608 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5609 (sparc64_adi_info): Likewise.
5610
5611 2020-05-15 Tom Tromey <tom@tromey.com>
5612
5613 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5614 block_objfile.
5615 (lookup_objfile_from_block): Remove.
5616 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5617 (lookup_global_symbol): Use block_objfile.
5618 * symtab.h (lookup_objfile_from_block): Don't declare.
5619 * printcmd.c (clear_dangling_display_expressions): Use
5620 block_objfile.
5621 * parse.c (operator_check_standard): Use block_objfile.
5622
5623 2020-05-15 Tom Tromey <tom@tromey.com>
5624
5625 * language.c (language_alloc_type_symbol): Set
5626 SYMBOL_SECTION.
5627 * symtab.c (initialize_objfile_symbol): Remove.
5628 (allocate_symbol): Remove.
5629 (allocate_template_symbol): Remove.
5630 * dwarf2/read.c (fixup_go_packaging): Use "new".
5631 (new_symbol): Use "new".
5632 (read_variable): Don't call initialize_objfile_symbol. Use
5633 "new".
5634 (read_func_scope): Use "new".
5635 * xcoffread.c (process_xcoff_symbol): Don't call
5636 initialize_objfile_symbol.
5637 (SYMBOL_DUP): Remove.
5638 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5639 "new".
5640 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5641 (allocate_template_symbol): Don't declare.
5642 (struct symbol): Add copy constructor. Change defaults.
5643 * jit.c (finalize_symtab): Use "new".
5644 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5645 Use "new".
5646 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5647 (common_block_end): Use "new".
5648 * mdebugread.c (parse_symbol): Use "new".
5649 (new_symbol): Likewise.
5650
5651 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5652
5653 * NEWS: Mention changes to help and apropos.
5654
5655 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5656
5657 * command.h (enum command_class): Improve comments, document
5658 that class_alias is for user-defined aliases, give the class
5659 name for each class, remove unused class_xdb.
5660 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5661 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5662 by a precise class.
5663 * infcmd.c (_initialize_infcmd): Likewise.
5664 * reverse.c (_initialize_reverse): Likewise.
5665 * stack.c (_initialize_stack): Likewise.
5666 * symfile.c (_initialize_symfile): Likewise.
5667 * tracepoint.c (_initialize_tracepoint): Likewise.
5668
5669 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5670
5671 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5672 when their aliased command is traversed.
5673 (help_cmd): Add fput_command_names_styled call to
5674 output command name and aliases when command has an alias.
5675
5676 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5677
5678 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5679 * cli/cli-decode.c (help_cmd_list): Declare as static,
5680 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5681 a command together with the command.
5682 (fput_command_name_styled, fput_command_names_styled): New functions.
5683 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5684 fput_command_name_styled.
5685 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5686 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5687
5688 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5689
5690 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5691 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5692 * command.h (cmd_show_list): Likewise.
5693 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5694 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5695
5696 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5697
5698 * unittests/command-def-selftests.c (traverse_command_structure):
5699 Verify all commands of a list have the same prefix command and
5700 that only the top cmdlist commands have a null prefix.
5701
5702 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5703
5704 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5705 as prefix, not one of its aliases.
5706 (set_cmd_prefix): Remove.
5707 (do_add_cmd): Centralize the setting of the prefix of a command, when
5708 command is defined after its full chain of prefix commands.
5709 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5710 (add_setshow_cmd_full): Likewise.
5711 (update_prefix_field_of_prefixed_commands): New function.
5712 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5713 update_prefix_field_of_prefixed_commands.
5714 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5715 addresses of remote_set_cmdlist and remote_show_cmdlist given
5716 as argument, not the address of an argument.
5717 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5718 * gdb/remote.c (_initialize_remote): Likewise.
5719
5720 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5721
5722 * cli/cli-cmds.c (alias_command): Check for an existing alias
5723 using lookup_cmd_composition, as valid_command_p is too strict
5724 and forbids aliases that are the prefix of an existing alias
5725 or command.
5726 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5727 command is properly recognised as a valid command.
5728
5729 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5730
5731 * unittests/help-doc-selftests.c: Rename to
5732 unittests/command-def-selftests.c
5733 * unittests/command-def-selftests.c (help_doc_tests): Update some
5734 comments.
5735 (command_structure_tests, traverse_command_structure): New namespace
5736 and function.
5737 (command_structure_invariants_tests): New function.
5738 (_initialize_command_def_selftests) Renamed from
5739 _initialize_help_doc_selftests, register command_structure_invariants
5740 selftest.
5741
5742 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5743
5744 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5745 an alias of 'show'.
5746
5747 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5748
5749 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5750 ada_is_fixed_point_type. Update all callers.
5751 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5752 all callers.
5753 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5754 Update all callers.
5755 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5756 print_fixed_point_type. Update all callers.
5757 * ada-valprint.c (ada_value_print_num): Replace call to
5758 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5759
5760 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5761
5762 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5763 processors.
5764 (cpu_supports_bts): Add CV_AMD case.
5765
5766 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5767 Simon Marchi <simon.marchi@efficios.com>
5768
5769 * infrun.c (stop_all_threads): Collect multiple wait events at
5770 each pass.
5771
5772 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5773
5774 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5775 type::code instead.
5776
5777 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5778
5779 * gdbtypes.h (struct type) <code, set_code>: New methods.
5780 (TYPE_CODE): Use type::code. Change all call sites used to set
5781 the code to use type::set_code instead.
5782
5783 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5784 Tom de Vries <tdevries@suse.de>
5785 Pedro Alves <palves@redhat.com>
5786
5787 PR threads/25478
5788 * infrun.c (stop_all_threads): Do NOT ignore
5789 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5790 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5791 received.
5792 (handle_no_resumed): Remove code handling a live inferior with no
5793 threads.
5794 * remote.c (has_single_non_exited_thread): New.
5795 (remote_target::update_thread_list): Do not delete a thread if is
5796 the last thread of the process.
5797 * thread.c (thread_select): Call delete_exited_threads instead of
5798 prune_threads.
5799
5800 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5801
5802 * infrun.c (stop_all_threads): Enable/disable thread events of all
5803 targets. Move a debug message denoting the end of the function
5804 into the SCOPED_EXIT block.
5805
5806 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5807
5808 * process-stratum-target.h: Include <set>.
5809 (all_non_exited_process_targets, switch_to_target_no_thread): New
5810 function declarations.
5811 * process-stratum-target.c (all_non_exited_process_targets)
5812 (switch_to_target_no_thread): New function implementations.
5813
5814 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5815
5816 * infrun.c (handle_inferior_event): Extract out a piece of code
5817 into...
5818 (mark_non_executing_threads): ...this new function.
5819
5820 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5821
5822 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5823 use.
5824
5825 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5826
5827 * regcache.c (regcache_read_pc_protected): New function
5828 implementation that returns 0 if the PC cannot read via
5829 'regcache_read_pc'.
5830 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5831 instead of 'regcache_read_pc'.
5832 (keep_going_pass_signal): Ditto.
5833
5834 2020-05-13 Tom Tromey <tromey@adacore.com>
5835
5836 * ada-lang.c (align_value): Remove.
5837 (ada_template_to_fixed_record_type_1): Use align_up.
5838
5839 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5840
5841 * async-event.c: Update the copyright year.
5842 * async-event.h: Update the copyright year.
5843
5844 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5845
5846 * objfiles.h (is_addr_in_objfile,
5847 shared_objfile_contains_address_p): Return bool.
5848 * objfile.c (is_addr_in_objfile,
5849 shared_objfile_contains_address_p): Return bool.
5850
5851 2020-05-11 Tom Tromey <tromey@adacore.com>
5852
5853 * cli/cli-cmds.c (info_command): Restore.
5854 (_initialize_cli_cmds): Use add_prefix_command for "info".
5855 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5856
5857 2020-05-11 Tom Tromey <tromey@adacore.com>
5858
5859 * ada-lang.c (ada_value_primitive_field): Now public.
5860 * ada-lang.h (ada_value_primitive_field): Declare.
5861 * ada-valprint.c (print_field_values): Use
5862 ada_value_primitive_field for wrapper fields.
5863
5864 2020-05-11 Tom de Vries <tdevries@suse.de>
5865
5866 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5867 MODULE_DOMAIN.
5868
5869 2020-05-11 Tom de Vries <tdevries@suse.de>
5870
5871 PR symtab/25941
5872 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5873 with length 0, if not gdb-produced.
5874 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5875
5876 2020-05-09 Tom de Vries <tdevries@suse.de>
5877
5878 PR gdb/25955
5879 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5880 calculation.
5881
5882 2020-05-09 Tom Tromey <tom@tromey.com>
5883
5884 * top.c (server_command): Now bool.
5885 * top.h (server_command): Now bool.
5886
5887 2020-05-08 Tom Tromey <tromey@adacore.com>
5888
5889 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5890 already being processed.
5891
5892 2020-05-08 Tom Tromey <tom@tromey.com>
5893
5894 * printcmd.c (struct display) <next>: Remove.
5895 <display>: New constructor.
5896 <exp_string>: Now a std::string.
5897 <enabled_p>: Now a bool.
5898 (display_number): Move definition earlier.
5899 (displays): Rename from display_chain. Now a std::vector.
5900 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5901 (display_command): Update.
5902 (do_one_display, disable_display)
5903 (enable_disable_display_command, do_enable_disable_display):
5904 Update.
5905 (free_display): Remove.
5906 (clear_displays): Rewrite.
5907 (delete_display): Update.
5908 (map_display_numbers): Use function_view. Remove "data"
5909 parameter. Update.
5910 (do_delete_display): Remove.
5911 (undisplay_command): Update.
5912 (do_one_display, do_displays, disable_display)
5913 (info_display_command): Update.
5914 (do_enable_disable_display): Remove.
5915 (enable_disable_display_command)
5916 (clear_dangling_display_expressions): Update.
5917
5918 2020-05-08 Tom Tromey <tom@tromey.com>
5919
5920 * symtab.c (set_symbol_cache_size)
5921 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5922 (maintenance_print_symbol_cache_statistics): Update.
5923 * symmisc.c (print_symbol_bcache_statistics)
5924 (print_objfile_statistics, maintenance_print_objfiles)
5925 (maintenance_info_symtabs, maintenance_check_symtabs)
5926 (maintenance_expand_symtabs, maintenance_info_line_tables):
5927 Update.
5928 * symfile-debug.c (set_debug_symfile): Update.
5929 * source.c (forget_cached_source_info): Update.
5930 * python/python.c (gdbpy_progspaces): Update.
5931 * psymtab.c (maintenance_info_psymtabs): Update.
5932 * probe.c (parse_probes): Update.
5933 * linespec.c (iterate_over_all_matching_symtabs)
5934 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5935 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5936 * exec.c (exec_target::close): Update.
5937 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5938 * breakpoint.c (print_one_breakpoint_location)
5939 (create_longjmp_master_breakpoint)
5940 (create_std_terminate_master_breakpoint): Update.
5941 * progspace.c (program_spaces): Now a std::vector.
5942 (maybe_new_address_space): Update.
5943 (add_program_space): Remove.
5944 (program_space::program_space): Update.
5945 (remove_program_space): Update.
5946 (number_of_program_spaces): Remove.
5947 (print_program_space, update_address_spaces): Update.
5948 * progspace.h (program_spaces): Change type.
5949 (ALL_PSPACES): Remove.
5950 (number_of_program_spaces): Don't declare.
5951 (struct program_space) <next>: Remove.
5952
5953 2020-05-08 Tom Tromey <tom@tromey.com>
5954
5955 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5956 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5957 (enable_break): Update.
5958 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5959 (frv_fdpic_find_canonical_descriptor): Update.
5960 (frv_fetch_objfile_link_map): Update.
5961 * progspace.c (program_space::free_all_objfiles): Update.
5962 (program_space::solibs): New method.
5963 * progspace.h (struct program_space) <solibs>: New method.
5964 * solist.h (master_so_list): Don't declare.
5965 (ALL_SO_LIBS): Remove.
5966 * solib.h (so_list_head): Remove.
5967 (update_solib_list): Update comment.
5968 * solib.c (master_so_list): Remove.
5969 (solib_used, update_solib_list, solib_add)
5970 (info_sharedlibrary_command, clear_solib)
5971 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5972
5973 2020-05-08 Tom Tromey <tom@tromey.com>
5974
5975 * extension.c (extension_languages): Now a std::array.
5976 (ALL_EXTENSION_LANGUAGES): Remove.
5977 (get_ext_lang_defn, get_ext_lang_of_file)
5978 (eval_ext_lang_from_control_command): Update.
5979 (finish_ext_lang_initialization)
5980 (auto_load_ext_lang_scripts_for_objfile)
5981 (ext_lang_type_printers::ext_lang_type_printers)
5982 (apply_ext_lang_type_printers)
5983 (ext_lang_type_printers::~ext_lang_type_printers)
5984 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5985 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5986 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5987 (get_matching_xmethod_workers, ext_lang_colorize)
5988 (ext_lang_before_prompt): Update.
5989 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5990
5991 2020-05-08 Tom Tromey <tom@tromey.com>
5992
5993 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5994 overload.
5995 <swap_string, m_string>: Remove.
5996 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5997 Update.
5998 * stabsread.c (define_symbol, read_type): Update.
5999 * linespec.c (find_linespec_symbols): Update.
6000 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
6001 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
6002 * dbxread.c (read_dbx_symtab): Update.
6003 * cp-support.h (cp_canonicalize_string_full)
6004 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
6005 Return unique_xmalloc_ptr.
6006 * cp-support.c (inspect_type): Update.
6007 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
6008 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
6009 Likewise.
6010 * c-typeprint.c (print_name_maybe_canonical): Update.
6011 * break-catch-throw.c (check_status_exception_catchpoint):
6012 Update.
6013
6014 2020-05-08 Tom de Vries <tdevries@suse.de>
6015
6016 * infrun.c (follow_fork): Copy current_line and current_symtab to
6017 child thread.
6018
6019 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6020
6021 * async-event.c (struct async_signal_handler, struct
6022 async_event_handler): Reformat, remove typedef.
6023
6024 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6025
6026 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6027 access thistype->main_type->dyn_prop_list directly.
6028
6029 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6030
6031 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6032 (remove_dyn_prop): Remove. Update all users to use
6033 type::remove_dyn_prop.
6034 * gdbtypes.c (remove_dyn_prop): Rename to...
6035 (type::remove_dyn_prop): ... this.
6036
6037 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6038
6039 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6040 (add_dyn_prop): Remove. Update all users to use
6041 type::add_dyn_prop.
6042 * gdbtypes.c (add_dyn_prop): Rename to...
6043 (type::add_dyn_prop): ... this.
6044
6045 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6046
6047 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6048 (get_dyn_prop): Remove. Update all users to use
6049 type::dyn_prop.
6050 * gdbtypes.c (get_dyn_prop): Rename to...
6051 (type::dyn_prop): ... this.
6052
6053 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6054
6055 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6056
6057 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6058
6059 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6060 instruction, skip it if it's there.
6061
6062 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6063
6064 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6065
6066 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6067
6068 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6069 * gdbtypes.c (recursive_dump_type): Remove use of
6070 TYPE_INCOMPLETE.
6071
6072 2020-05-03 Tom Tromey <tom@tromey.com>
6073
6074 * breakpoint.c (catch_command, tcatch_command): Remove.
6075 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6076 add_show_prefix_cmd.
6077 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6078 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6079 Remove.
6080 (add_internal_problem_command): Use add_basic_prefix_cmd,
6081 add_show_prefix_cmd.
6082 * mips-tdep.c (set_mipsfpu_command): Remove.
6083 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6084 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6085 (_initialize_index_cache): Use add_basic_prefix_cmd.
6086 * memattr.c (dummy_cmd): Remove.
6087 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6088 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6089 (_initialize_tui_win): Use add_basic_prefix_cmd,
6090 add_show_prefix_cmd.
6091 * cli/cli-logging.c (set_logging_command): Remove.
6092 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6093 add_show_prefix_cmd.
6094 (show_logging_command): Remove.
6095 * target.c (target_command): Remove.
6096 (add_target): Use add_basic_prefix_cmd.
6097
6098 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6099
6100 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6101
6102 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6103
6104 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6105 info_command.
6106
6107 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6108
6109 * nbsd-nat.c (nbsd_enable_proc_events)
6110 (nbsd_nat_target::post_startup_inferior): Add.
6111 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6112 (nbsd_nat_target::update_thread_list): Rewrite.
6113 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6114 "PTRACE_LWP_CREATE".
6115 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6116
6117 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6118
6119 * stack.c (_initialize_stack): Remove duplicated creation
6120 of "frame" command and "f" alias.
6121
6122 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6123
6124 PR gdb/18706
6125 * gdbtypes.c (check_typedef): Calculate size of array of
6126 stubbed type.
6127
6128 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6129
6130 PR gdb/15559
6131 * i386-tdep.c (i386_push_dummy_call): Call
6132 i386_thiscall_push_dummy_call.
6133 (i386_thiscall_push_dummy_call): New function.
6134 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6135 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6136 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6137
6138 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6139
6140 * gdbarch.sh (do_read): Add shellcheck disable directive for
6141 warning SC2162.
6142
6143 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6144
6145 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6146 "referenced but not assigned" warning.
6147
6148 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6149
6150 * gdbarch.sh: Remove code that sets fallbackdefault.
6151
6152 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6153
6154 * gdbarch.sh: Use shell operators && and || instead of
6155 -a and -o.
6156
6157 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6158
6159 * gdbarch.sh: Use $(...) instead of `...`.
6160
6161 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6162
6163 * gdbarch.sh: Use double quotes around variables.
6164
6165 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6166
6167 * gdbarch.sh: Use %s with printf, instead of variables in the
6168 format string.
6169
6170 2020-04-29 Tom Tromey <tromey@adacore.com>
6171
6172 PR ada/25875:
6173 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6174 type fields here.
6175 (read_enumeration_type): Call
6176 update_enumeration_type_from_children later. Update comments.
6177 (process_enumeration_scope): Don't create type fields.
6178
6179 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6180
6181 * nbsd-tdep.c: Include "xml-syscall.h".
6182 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6183
6184 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6185
6186 * nbsd-nat.c: Include "sys/wait.h".
6187 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6188 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6189 (nbsd_nat_target::remove_exec_catchpoint)
6190 (nbsd_nat_target::set_syscall_catchpoint): Add.
6191 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6192 (nbsd_nat_target::insert_exec_catchpoint)
6193 (nbsd_nat_target::remove_exec_catchpoint)
6194 (nbsd_nat_target::set_syscall_catchpoint): Add.
6195 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6196 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6197 `nbsd_get_syscall_number'.
6198
6199 2020-04-29 Tom Tromey <tom@tromey.com>
6200
6201 * stack.c (print_block_frame_labels): Remove.
6202
6203 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6204
6205 PR gdb/17320
6206 * ada-valprint.c (val_print_packed_array_elements): Move array
6207 end bracket to new line.
6208 (ada_val_print_string): Remove extra spaces before first array
6209 element.
6210 * c-valprint.c (c_value_print_array): Likewise.
6211 * m2-valprint.c (m2_print_array_contents): Likewise.
6212 (m2_value_print_inner): Likewise.
6213 * p-valprint.c (pascal_value_print_inner): Likewise.
6214 * valprint.c (generic_val_print_array): Likewise.
6215 (value_print_array_elements): Move first array element and array
6216 end bracket to new line.
6217
6218 2020-04-29 Tom de Vries <tdevries@suse.de>
6219
6220 PR symtab/25889
6221 * linespec.c (find_method): Fix ix calculation.
6222
6223 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6224
6225 * syscalls/update-netbsd.sh: New file.
6226 * syscalls/netbsd.xml: Regenerate.
6227 * data-directory/Makefile.in: Register `netbsd.xml' in
6228 `SYSCALLS_FILES'.
6229
6230 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6231
6232 * syscalls/update-freebsd.sh: Add double quotes.
6233
6234 2020-04-28 Tom Tromey <tom@tromey.com>
6235
6236 * NEWS: Update.
6237 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6238 (cmdpy_init): Allow class_tui.
6239
6240 2020-04-28 Mark Williams <mark@myosotissp.com>
6241
6242 PR gdb/24480
6243 * dwarf2read.c: Add missing assingments to list_in_scope when
6244 start_symtab was already called.
6245
6246 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6247
6248 PR gdb/25881
6249 * dwarf2/read.c (offset_map_type): Use
6250 gdb:hash_enum<sect_offset> as hash function.
6251
6252 2020-04-28 Tom de Vries <tdevries@suse.de>
6253
6254 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6255 with DW_AT_signature.
6256
6257 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6258
6259 * configure.ac: Remove check for fs_base/gs_base in
6260 user_regs_struct.
6261 * configure: Re-generate.
6262 * config.in: Re-generate.
6263 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6264 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6265 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6266
6267 2020-04-27 Luis Machado <luis.machado@linaro.org>
6268
6269 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6270 problematic inline frame unwinding situation.
6271 * frame.c (frame_id_computed_p): New function.
6272 * frame.h (frame_id_computed_p): New prototype.
6273
6274 2020-04-26 Tom Tromey <tom@tromey.com>
6275
6276 * command.h (enum command_class) <class_pseudo>: Remove.
6277
6278 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6279
6280 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6281 and whitespace.
6282
6283 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6284
6285 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6286 `PT_GET_PROCESS_STATE' block.
6287
6288 2020-04-24 Tom Tromey <tom@tromey.com>
6289
6290 * symtab.h (symbol_get_demangled_name): Don't declare.
6291 * symtab.c (symbol_get_demangled_name): Remove.
6292 (general_symbol_info::natural_name)
6293 (general_symbol_info::demangled_name): Update.
6294
6295 2020-04-24 Tom Tromey <tom@tromey.com>
6296
6297 PR rust/25025:
6298 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6299
6300 2020-04-24 Tom Tromey <tom@tromey.com>
6301
6302 PR symtab/12707:
6303 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6304 exists.
6305 (new_symbol): Likewise.
6306 * compile/compile-object-load.c (get_out_value_type): Use
6307 symbol_matches_search_name.
6308
6309 2020-04-24 Tom Tromey <tom@tromey.com>
6310
6311 * dwarf2/read.c (add_partial_symbol): Do not call
6312 compute_and_set_names.
6313
6314 2020-04-24 Tom Tromey <tom@tromey.com>
6315
6316 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6317 overload.
6318
6319 2020-04-24 Tom Tromey <tom@tromey.com>
6320
6321 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6322 (add_psymbol_to_list): New overload. Make old overload call new
6323 one.
6324 * psympriv.h (add_psymbol_to_list): New overload.
6325
6326 2020-04-24 Tom Tromey <tom@tromey.com>
6327
6328 * dwarf2/read.c (partial_die_info::read) <case
6329 DW_AT_linkage_name>: Use value_as_string.
6330 (dwarf2_string_attr): Use value_as_string.
6331 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6332 method.
6333 * dwarf2/attribute.c (attribute::value_as_string): New method.
6334
6335 2020-04-24 Tom Tromey <tom@tromey.com>
6336
6337 * symtab.c (general_symbol_info::natural_name)
6338 (general_symbol_info::demangled_name): Check for language_rust.
6339
6340 2020-04-24 Tom Tromey <tom@tromey.com>
6341
6342 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6343 (dwarf2_physname): ... from here.
6344 (partial_die_info::read): Add Rust "{" hack.
6345
6346 2020-04-24 Tom Tromey <tom@tromey.com>
6347
6348 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6349 method.
6350 (symbol_set_demangled_name): Don't declare.
6351 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6352 symbol_set_demangled_name.
6353 (general_symbol_info::set_language)
6354 (general_symbol_info::compute_and_set_names): Update.
6355 * minsyms.c (minimal_symbol_reader::install): Update.
6356 * dwarf2/read.c (new_symbol): Update.
6357
6358 2020-04-24 Tom Tromey <tromey@adacore.com>
6359
6360 PR python/23662:
6361 * python/py-type.c (convert_field): Handle
6362 FIELD_LOC_KIND_DWARF_BLOCK.
6363 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6364 (typy_get_dynamic): Nw function.
6365 (type_object_getset): Add "dynamic".
6366 * NEWS: Add entry.
6367
6368 2020-04-24 Tom Tromey <tromey@adacore.com>
6369
6370 * ada-typeprint.c (print_choices, print_variant_part)
6371 (print_record_field_types_dynamic): New functions.
6372 (print_record_field_types): Use print_record_field_types_dynamic.
6373
6374 2020-04-24 Tom Tromey <tromey@adacore.com>
6375
6376 * dwarf2/read.c (handle_data_member_location): New overload.
6377 (dwarf2_add_field): Use it.
6378 (decode_locdesc): Add "computed" parameter. Update comment.
6379 * gdbtypes.c (is_dynamic_type_internal): Also look for
6380 FIELD_LOC_KIND_DWARF_BLOCK.
6381 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6382 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6383 virtual base classes.
6384 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6385 FIELD_LOC_KIND_DWARF_BLOCK.
6386
6387 2020-04-24 Tom Tromey <tromey@adacore.com>
6388
6389 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6390 * gdbtypes.c (is_dynamic_type_internal): Check
6391 TYPE_HAS_DYNAMIC_LENGTH.
6392 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6393 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6394 New macros.
6395 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6396 constant.
6397
6398 2020-04-24 Tom Tromey <tromey@adacore.com>
6399
6400 * dwarf2/read.c (struct variant_field): Rewrite.
6401 (struct variant_part_builder): New.
6402 (struct nextfield): Remove "variant" field. Add "offset".
6403 (struct field_info): Add "current_variant_part" and
6404 "variant_parts".
6405 (alloc_discriminant_info): Remove.
6406 (alloc_rust_variant): New function.
6407 (quirk_rust_enum): Update.
6408 (dwarf2_add_field): Set "offset" member. Don't handle
6409 DW_TAG_variant_part.
6410 (offset_map_type): New typedef.
6411 (convert_variant_range, create_one_variant)
6412 (create_one_variant_part, create_variant_parts)
6413 (add_variant_property): New functions.
6414 (dwarf2_attach_fields_to_type): Call add_variant_property.
6415 (read_structure_type): Don't handle DW_TAG_variant_part.
6416 (handle_variant_part, handle_variant): New functions.
6417 (handle_struct_member_die): Use them.
6418 (process_structure_scope): Don't handle variant parts.
6419 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6420 (struct discriminant_info): Remove.
6421 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6422 (struct main_type) <flag_discriminated_union>: Remove.
6423 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6424 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6425 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6426 Update.
6427 * valops.c (value_union_variant): Remove.
6428 * value.h (value_union_variant): Don't declare.
6429
6430 2020-04-24 Tom Tromey <tromey@adacore.com>
6431
6432 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6433 (ada_value_primitive_packed_val): Update.
6434 * ada-valprint.c (ada_value_print_1): Update.
6435 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6436 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6437 just an address. Use evaluate_for_locexpr_baton.
6438 (dwarf2_evaluate_property): Update.
6439 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6440 array_view.
6441 * findvar.c (default_read_var_value): Update.
6442 * gdbtypes.c (compute_variant_fields_inner)
6443 (resolve_dynamic_type_internal): Update.
6444 (resolve_dynamic_type): Change type of valaddr parameter.
6445 * gdbtypes.h (resolve_dynamic_type): Update.
6446 * valarith.c (value_subscripted_rvalue): Update.
6447 * value.c (value_from_contents_and_address): Update.
6448
6449 2020-04-24 Tom Tromey <tromey@adacore.com>
6450
6451 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6452 "push_initial_value" parameter.
6453 (dwarf2_evaluate_property): Likewise.
6454 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6455
6456 2020-04-24 Tom Tromey <tromey@adacore.com>
6457
6458 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6459 (variant::matches, compute_variant_fields_recurse)
6460 (compute_variant_fields_inner, compute_variant_fields): New
6461 functions.
6462 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6463 Use resolved_type after type is made.
6464 (operator==): Add new cases.
6465 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6466 (struct discriminant_range, struct variant, struct variant_part):
6467 New.
6468 (union dynamic_prop_data) <variant_parts, original_type>: New
6469 members.
6470 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6471 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6472 constants.
6473 * value.c (unpack_bits_as_long): Now public.
6474 * value.h (unpack_bits_as_long): Declare.
6475
6476 2020-04-24 Tom Tromey <tromey@adacore.com>
6477
6478 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6479 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6480
6481 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6482
6483 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6484
6485 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6486
6487 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6488 (remove_fork_catchpoint, post_startup_inferior)
6489 (post_attach): Move...
6490 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6491 (remove_fork_catchpoint, post_startup_inferior)
6492 (post_attach): ...here.
6493 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6494 (remove_fork_catchpoint, post_startup_inferior)
6495 (post_attach): Move...
6496 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6497 (remove_fork_catchpoint, post_startup_inferior)
6498 (post_attach): ...here.
6499
6500 2020-04-24 Tom Tromey <tromey@adacore.com>
6501
6502 * nat/windows-nat.h (struct windows_thread_info)
6503 <pc_adjusted>: New member.
6504 * windows-nat.c (windows_fetch_one_register): Check
6505 pc_adjusted.
6506 (windows_nat_target::get_windows_debug_event)
6507 (windows_nat_target::wait): Set pc_adjusted.
6508
6509 2020-04-24 Tom de Vries <tdevries@suse.de>
6510
6511 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6512 Run gdb-add-index inside temp dir.
6513
6514 2020-04-23 Tom Tromey <tromey@adacore.com>
6515
6516 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6517 in loop.
6518
6519 2020-04-23 Luis Machado <luis.machado@linaro.org>
6520
6521 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6522 get_frame_register instead of gdbarch_unwind_pc.
6523
6524 2020-04-23 Tom de Vries <tdevries@suse.de>
6525
6526 * symtab.c (lookup_global_symbol): Prefer def over decl.
6527
6528 2020-04-23 Tom de Vries <tdevries@suse.de>
6529
6530 PR symtab/25807
6531 * block.c (best_symbol, better_symbol): Promote to external.
6532 * block.h (best_symbol, better_symbol): Declare.
6533 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6534 decl.
6535
6536 2020-04-23 Tom Tromey <tromey@adacore.com>
6537
6538 PR ada/25837:
6539 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6540 "const char *", not a "const std::string &".
6541 <name_and_matcher::operator==>: Update.
6542 * unittests/lookup_name_info-selftests.c: Change type of
6543 "result".
6544
6545 2020-04-23 Tom Tromey <tom@tromey.com>
6546
6547 * inferior.h (iterate_over_inferiors): Don't declare.
6548 * inferior.c (iterate_over_inferiors): Remove.
6549 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6550 Remove.
6551 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6552 use iterate_over_inferiors.
6553 (darwin_resume_inferior_it)
6554 (struct resume_inferior_threads_param)
6555 (darwin_resume_inferior_threads_it): Remove.
6556 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6557
6558 2020-04-23 Tom de Vries <tdevries@suse.de>
6559
6560 * blockframe.c (find_pc_partial_function): Use
6561 find_pc_sect_compunit_symtab rather than
6562 objfile->sf->qf->find_pc_sect_compunit_symtab.
6563
6564 2020-04-22 Tom de Vries <tdevries@suse.de>
6565
6566 PR symtab/25764
6567 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6568 in psymtabs.
6569
6570 2020-04-22 Tom de Vries <tdevries@suse.de>
6571
6572 PR symtab/25801
6573 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6574 symtabs.
6575
6576 2020-04-22 Tom de Vries <tdevries@suse.de>
6577
6578 PR symtab/25700
6579 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6580 CU if already created.
6581
6582 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6583
6584 * infrun.c (displaced_step_fixup): Switch to the event_thread
6585 before calling displaced_step_restore, not after.
6586
6587 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6588
6589 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6590 its inferior is not recorded by us.
6591 (record_btrace_target_open): Replace call to
6592 all_non_exited_threads () with call to current_inferior
6593 ()->non_exited_threads ().
6594 (record_btrace_target::stop_recording): Likewise.
6595 (record_btrace_target::close): Likewise.
6596 (record_btrace_target::wait): Likewise.
6597 (record_btrace_target::record_stop_replaying): Likewise.
6598
6599 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6600
6601 * btrace.c (btrace_enable): Throw an error on double enables and
6602 when enabling recording fails.
6603 (btrace_disable): Throw an error if the thread is not recorded.
6604
6605 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6606
6607 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6608 request if we do not have a thread_info.
6609
6610 2020-04-21 Tom de Vries <tdevries@suse.de>
6611
6612 PR gdb/25471
6613 * thread.c
6614 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6615 exception in get_frame_id.
6616
6617 2020-04-20 Tom Tromey <tromey@adacore.com>
6618
6619 * python/python.c (struct gdbpy_event): Mark move constructor as
6620 noexcept.
6621 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6622 constructor as noexcept.
6623 * completer.h (struct completion_result): Mark move constructor as
6624 noexcept.
6625 * completer.c (completion_result::completion_result): Use
6626 initialization style. Don't call reset_match_list.
6627
6628 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6629
6630 * MAINTAINERS (Write After Approval): Add myself.
6631
6632 2020-04-18 Tom Tromey <tom@tromey.com>
6633
6634 * windows-tdep.c (init_w32_command_list)
6635 (w32_prefix_command_valid): Restore.
6636 (_initialize_windows_tdep): Call init_w32_command_list.
6637
6638 2020-04-18 Tom Tromey <tom@tromey.com>
6639
6640 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6641 * value.c (value_fn_field): Update.
6642 * valops.c (find_function_in_inferior)
6643 (value_allocate_space_in_inferior): Update.
6644 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6645 Update.
6646 * tui/tui-source.c (tui_source_window::set_contents): Update.
6647 * symtab.c (lookup_global_or_static_symbol)
6648 (find_function_start_sal_1, skip_prologue_sal)
6649 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6650 * symmisc.c (dump_msymbols, dump_symtab_1)
6651 (maintenance_print_one_line_table): Update.
6652 * symfile.c (init_entry_point_info, section_is_mapped)
6653 (list_overlays_command, simple_read_overlay_table)
6654 (simple_overlay_update_1): Update.
6655 * stap-probe.c (handle_stap_probe): Update.
6656 * stabsread.c (dbx_init_float_type, define_symbol)
6657 (read_one_struct_field, read_enum_type, read_range_type): Update.
6658 * source.c (info_line_command): Update.
6659 * python/python.c (gdbpy_source_objfile_script)
6660 (gdbpy_execute_objfile_script): Update.
6661 * python/py-type.c (save_objfile_types): Update.
6662 * python/py-objfile.c (py_free_objfile): Update.
6663 * python/py-inferior.c (python_new_objfile): Update.
6664 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6665 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6666 (maintenance_check_psymtabs): Update.
6667 * printcmd.c (info_address_command): Update.
6668 * objfiles.h (struct objfile) <arch>: New method, from
6669 get_objfile_arch.
6670 (get_objfile_arch): Don't declare.
6671 * objfiles.c (get_objfile_arch): Remove.
6672 (filter_overlapping_sections): Update.
6673 * minsyms.c (msymbol_is_function): Update.
6674 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6675 (output_nondebug_symbol): Update.
6676 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6677 (mdebug_expand_psymtab): Update.
6678 * machoread.c (macho_add_oso_symfile): Update.
6679 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6680 Update.
6681 * linux-fork.c (checkpoint_command): Update.
6682 * linespec.c (convert_linespec_to_sals): Update.
6683 * jit.c (finalize_symtab): Update.
6684 * infrun.c (insert_exception_resume_from_probe): Update.
6685 * ia64-tdep.c (ia64_find_unwind_table): Update.
6686 * hppa-tdep.c (internalize_unwinds): Update.
6687 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6688 Update.
6689 * gcore.c (call_target_sbrk): Update.
6690 * elfread.c (record_minimal_symbol, elf_symtab_read)
6691 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6692 (elf_gnu_ifunc_resolve_by_got): Update.
6693 * dwarf2/read.c (create_addrmap_from_index)
6694 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6695 (read_debug_names_from_section)
6696 (process_psymtab_comp_unit_reader, add_partial_symbol)
6697 (add_partial_subprogram, process_full_comp_unit)
6698 (read_file_scope, read_func_scope, read_lexical_block_scope)
6699 (read_call_site_scope, dwarf2_ranges_read)
6700 (dwarf2_record_block_ranges, dwarf2_add_field)
6701 (mark_common_block_symbol_computed, read_tag_pointer_type)
6702 (read_tag_string_type, dwarf2_init_float_type)
6703 (dwarf2_init_complex_target_type, read_base_type)
6704 (partial_die_info::read, partial_die_info::read)
6705 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6706 (dwarf2_fetch_die_loc_sect_off): Update.
6707 * dwarf2/loc.c (dwarf2_find_location_expression)
6708 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6709 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6710 (dwarf2_loc_desc_get_symbol_read_needs)
6711 (locexpr_describe_location_piece, locexpr_describe_location_1)
6712 (loclist_describe_location): Update.
6713 * dwarf2/index-write.c (write_debug_names): Update.
6714 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6715 * dtrace-probe.c (dtrace_process_dof): Update.
6716 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6717 (process_one_symbol): Update.
6718 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6719 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6720 (coff_read_enum_type): Update.
6721 * cli/cli-cmds.c (edit_command, list_command): Update.
6722 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6723 * breakpoint.c (create_overlay_event_breakpoint)
6724 (create_longjmp_master_breakpoint)
6725 (create_std_terminate_master_breakpoint)
6726 (create_exception_master_breakpoint, get_sal_arch): Update.
6727 * block.c (block_gdbarch): Update.
6728 * annotate.c (annotate_source_line): Update.
6729
6730 2020-04-17 Tom Tromey <tromey@adacore.com>
6731
6732 * auto-load.c (show_auto_load_cmd): Remove.
6733 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6734 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6735 (maintenance_print_arc_command): Remove.
6736 * tui/tui-win.c (tui_command): Remove.
6737 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6738 * tui/tui-layout.c (tui_layout_command): Remove.
6739 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6740 * python/python.c (user_set_python, user_show_python): Remove.
6741 (_initialize_python): Use add_basic_prefix_cmd,
6742 add_show_prefix_cmd.
6743 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6744 (install_gdb_commands): Use add_basic_prefix_cmd,
6745 add_show_prefix_cmd.
6746 (info_guile_command): Remove.
6747 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6748 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6749 add_show_prefix_cmd.
6750 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6751 Remove do_set and do_show parameters.
6752 * cli/cli-style.c (set_style, show_style): Remove.
6753 (_initialize_cli_style): Use add_basic_prefix_cmd,
6754 add_show_prefix_cmd.
6755 (cli_style_option::add_setshow_commands): Remove do_set and
6756 do_show parameters.
6757 (cli_style_option::add_setshow_commands): Use
6758 add_basic_prefix_cmd, add_show_prefix_cmd.
6759 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6760 (set_style_name): Remove.
6761 * cli/cli-dump.c (dump_command, append_command): Remove.
6762 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6763 (tekhex_dump_command, binary_dump_command)
6764 (binary_append_command): Remove.
6765 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6766 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6767 (init_w32_command_list): Remove; move into ...
6768 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6769 * valprint.c (set_print, show_print, set_print_raw)
6770 (show_print_raw): Remove.
6771 (_initialize_valprint): Use add_basic_prefix_cmd,
6772 add_show_prefix_cmd.
6773 * typeprint.c (set_print_type, show_print_type): Remove.
6774 (_initialize_typeprint): Use add_basic_prefix_cmd,
6775 add_show_prefix_cmd.
6776 * record.c (set_record_command, show_record_command): Remove.
6777 (_initialize_record): Use add_basic_prefix_cmd,
6778 add_show_prefix_cmd.
6779 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6780 add_show_prefix_cmd.
6781 (info_command, show_command, set_debug, show_debug): Remove.
6782 * top.h (set_history, show_history): Don't declare.
6783 * top.c (set_history, show_history): Remove.
6784 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6785 (unset_tdesc_cmd): Remove.
6786 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6787 add_show_prefix_cmd.
6788 * symtab.c (info_module_command): Remove.
6789 (_initialize_symtab): Use add_basic_prefix_cmd.
6790 * symfile.c (overlay_command): Remove.
6791 (_initialize_symfile): Use add_basic_prefix_cmd.
6792 * sparc64-tdep.c (info_adi_command): Remove.
6793 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6794 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6795 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6796 add_show_prefix_cmd.
6797 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6798 (_initialize_serial): Use add_basic_prefix_cmd,
6799 add_show_prefix_cmd.
6800 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6801 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6802 add_show_prefix_cmd.
6803 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6804 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6805 add_show_prefix_cmd.
6806 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6807 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6808 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6809 add_show_prefix_cmd.
6810 * remote.c (remote_command, set_remote_cmd): Remove.
6811 (_initialize_remote): Use add_basic_prefix_cmd.
6812 * record-full.c (set_record_full_command)
6813 (show_record_full_command): Remove.
6814 (_initialize_record_full): Use add_basic_prefix_cmd,
6815 add_show_prefix_cmd.
6816 * record-btrace.c (cmd_set_record_btrace)
6817 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6818 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6819 (cmd_show_record_btrace_pt): Remove.
6820 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6821 add_show_prefix_cmd.
6822 * ravenscar-thread.c (set_ravenscar_command)
6823 (show_ravenscar_command): Remove.
6824 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6825 add_show_prefix_cmd.
6826 * mips-tdep.c (show_mips_command, set_mips_command)
6827 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6828 add_show_prefix_cmd.
6829 * maint.c (maintenance_command, maintenance_info_command)
6830 (maintenance_check_command, maintenance_print_command)
6831 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6832 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6833 add_show_prefix_cmd.
6834 (show_per_command_cmd): Remove.
6835 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6836 Remove.
6837 (maintenance_show_test_settings_cmd): Remove.
6838 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6839 add_show_prefix_cmd.
6840 * maint-test-options.c (maintenance_test_options_command):
6841 Remove.
6842 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6843 * macrocmd.c (macro_command): Remove
6844 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6845 * language.c (set_check, show_check): Remove.
6846 (_initialize_language): Use add_basic_prefix_cmd,
6847 add_show_prefix_cmd.
6848 * infcmd.c (unset_command): Remove.
6849 (_initialize_infcmd): Use add_basic_prefix_cmd.
6850 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6851 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6852 add_show_prefix_cmd.
6853 * go32-nat.c (go32_info_dos_command): Remove.
6854 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6855 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6856 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6857 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6858 (_initialize_frame): Use add_basic_prefix_cmd,
6859 add_show_prefix_cmd.
6860 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6861 (_initialize_dcache): Use add_basic_prefix_cmd,
6862 add_show_prefix_cmd.
6863 * cp-support.c (maint_cplus_command): Remove.
6864 (_initialize_cp_support): Use add_basic_prefix_cmd.
6865 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6866 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6867 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6868 add_basic_prefix_cmd, add_show_prefix_cmd.
6869 * breakpoint.c (save_command): Remove.
6870 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6871 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6872 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6873 add_show_prefix_cmd.
6874 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6875 (set_ada_command, show_ada_command): Remove.
6876 (_initialize_ada_language): Use add_basic_prefix_cmd,
6877 add_show_prefix_cmd.
6878 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6879
6880 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6881
6882 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6883 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6884
6885 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6886
6887 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6888 warning messages.
6889
6890 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6891
6892 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6893 import table is not at beginning of .idata section.
6894
6895 2020-04-16 Pedro Alves <palves@redhat.com>
6896
6897 * inferior.c (delete_inferior): Use delete operator directly
6898 instead of delete_program_space.
6899 * progspace.c (add_program_space): New, factored out from
6900 program_space::program_space.
6901 (remove_program_space): New, factored out from
6902 delete_program_space.
6903 (program_space::program_space): Remove intro comment. Rewrite.
6904 (program_space::~program_space): Remove intro comment. Call
6905 remove_program_space.
6906 (delete_program_space): Delete.
6907 * progspace.h (program_space::program_space): Make explicit. Move
6908 intro comment here, adjusted.
6909 (program_space::~program_space): Move intro comment here,
6910 adjusted.
6911 (delete_program_space): Remove.
6912
6913 2020-04-16 Tom Tromey <tromey@adacore.com>
6914
6915 * windows-nat.c (windows_nat::handle_access_violation): New
6916 function.
6917 * nat/windows-nat.h (handle_access_violation): Declare.
6918 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6919 windows-nat.c. Call handle_access_violation.
6920
6921 2020-04-16 Tom de Vries <tdevries@suse.de>
6922
6923 PR symtab/25791
6924 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6925 CUs without psymtab.
6926
6927 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6928
6929 * python/python.c (do_start_initialization): Don't call
6930 PyEval_InitThreads for Python 3.9 and beyond.
6931
6932 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6933
6934 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6935 thread functions.
6936 (obsd_nat_target::wait): Likewise.
6937
6938 2020-04-15 Tom Tromey <tromey@adacore.com>
6939
6940 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6941 (DEBUG_EXCEPT): Use debug_printf.
6942
6943 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6944
6945 * completer.c (class completion_tracker::completion_hash_entry)
6946 <hash_name>: New member function.
6947 (completion_tracker::discard_completions): New callback to hash a
6948 completion_hash_entry, pass this to htab_create_alloc.
6949
6950 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6951
6952 * windows-nat.c (windows_make_so): Warn rather than stopping with
6953 an error if realpath() fails.
6954
6955 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6956
6957 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6958 (nbsd_nat_target::info_proc): Add do_status.
6959
6960 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6961 Tom de Vries <tdevries@suse.de>
6962
6963 PR symtab/25718
6964 * psympriv.h (struct partial_symtab::read_symtab)
6965 (struct partial_symtab::expand_psymtab)
6966 (struct partial_symtab::read_dependencies): Update comments.
6967 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6968 read_symtab for includer.
6969 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6970 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6971 (struct dwarf2_include_psymtab::m_readin): Remove.
6972 (struct dwarf2_include_psymtab::includer): New member function.
6973 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6974
6975 2020-04-14 Tom de Vries <tdevries@suse.de>
6976
6977 PR symtab/25720
6978 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6979 with NULL symbol_matcher and lookup_name.
6980 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6981 and lookup_name.
6982 * dwarf2/read.c (dw2_expand_symtabs_matching)
6983 (dw2_debug_names_expand_symtabs_matching): Same.
6984 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6985 Make lookup_name a pointer. Update comment.
6986 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6987 lookup_name being a pointer.
6988 * symfile.c (expand_symtabs_matching): Same.
6989 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6990 * linespec.c (iterate_over_all_matching_symtabs): Same.
6991
6992 2020-04-13 Tom Tromey <tom@tromey.com>
6993
6994 * run-on-main-thread.c: Update include.
6995 * unittests/main-thread-selftests.c: Update include.
6996 * tui/tui-win.c: Update include.
6997 * tui/tui-io.c: Update include.
6998 * tui/tui-interp.c: Update include.
6999 * tui/tui-hooks.c: Update include.
7000 * top.h: Update include.
7001 * top.c: Update include.
7002 * ser-base.c: Update include.
7003 * remote.c: Update include.
7004 * remote-notif.c: Update include.
7005 * remote-fileio.c: Update include.
7006 * record-full.c: Update include.
7007 * record-btrace.c: Update include.
7008 * python/python.c: Update include.
7009 * posix-hdep.c: Update include.
7010 * mingw-hdep.c: Update include.
7011 * mi/mi-main.c: Update include.
7012 * mi/mi-interp.c: Update include.
7013 * main.c: Update include.
7014 * linux-nat.c: Update include.
7015 * interps.c: Update include.
7016 * infrun.c: Update include.
7017 * inf-loop.c: Update include.
7018 * event-top.c: Update include.
7019 * event-loop.c: Move to ../gdbsupport/.
7020 * event-loop.h: Move to ../gdbsupport/.
7021 * async-event.h: Update include.
7022 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7023
7024 2020-04-13 Tom Tromey <tom@tromey.com>
7025
7026 * tui/tui-win.c: Include async-event.h.
7027 * remote.c: Include async-event.h.
7028 * remote-notif.c: Include async-event.h.
7029 * record-full.c: Include async-event.h.
7030 * record-btrace.c: Include async-event.h.
7031 * infrun.c: Include async-event.h.
7032 * event-top.c: Include async-event.h.
7033 * event-loop.h: Move some declarations to async-event.h.
7034 * event-loop.c: Don't include ser-event.h or top.h. Move some
7035 code to async-event.c.
7036 * async-event.h: New file.
7037 * async-event.c: New file.
7038 * Makefile.in (COMMON_SFILES): Add async-event.c.
7039 (HFILES_NO_SRCDIR): Add async-event.h.
7040
7041 2020-04-13 Tom Tromey <tom@tromey.com>
7042
7043 * utils.c (flush_streams): New function.
7044 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7045
7046 2020-04-13 Tom Tromey <tom@tromey.com>
7047
7048 * event-loop.c (handle_file_event): Use warning, not
7049 printf_unfiltered.
7050
7051 2020-04-13 Tom Tromey <tom@tromey.com>
7052
7053 * event-loop.c: Include <chrono>.
7054
7055 2020-04-13 Tom Tromey <tom@tromey.com>
7056
7057 * gdb_select.h: Move to ../gdbsupport/.
7058 * event-loop.c: Update include path.
7059 * top.c: Update include path.
7060 * ser-base.c: Update include path.
7061 * ui-file.c: Update include path.
7062 * ser-tcp.c: Update include path.
7063 * guile/scm-ports.c: Update include path.
7064 * posix-hdep.c: Update include path.
7065 * ser-unix.c: Update include path.
7066 * gdb_usleep.c: Update include path.
7067 * mingw-hdep.c: Update include path.
7068 * inflow.c: Update include path.
7069 * infrun.c: Update include path.
7070 * event-top.c: Update include path.
7071
7072 2020-04-13 Tom Tromey <tom@tromey.com>
7073
7074 * configure: Rebuild.
7075 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7076
7077 2020-04-13 Tom Tromey <tom@tromey.com>
7078
7079 * event-loop.h (start_event_loop): Don't declare.
7080 * event-loop.c (start_event_loop): Move...
7081 * main.c (start_event_loop): ...here. Now static.
7082
7083 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7084
7085 * MAINTAINERS: Update my email address.
7086
7087 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7088
7089 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7090 IP_ALL.
7091
7092 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7093
7094 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7095 (nbsd_nat_target::info_proc): Add do_cmdline.
7096
7097 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7098
7099 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7100 (nbsd_nat_target::info_proc): Add do_cwd.
7101
7102 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7103
7104 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7105
7106 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7107
7108 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7109 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7110 (nbsd_nat_target::info_proc): New functions.
7111 * nbsd-nat.c (kinfo_get_vmmap): New function.
7112 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7113 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7114 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7115 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7116 functions.
7117 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7118 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7119 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7120 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7121 (KINFO_VME_FLAG_GROWS_DOWN): New.
7122
7123 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7124
7125 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7126 bit shift.
7127
7128 2020-04-10 Tom Tromey <tromey@adacore.com>
7129
7130 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7131
7132 2020-04-10 Tom Tromey <tromey@adacore.com>
7133
7134 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7135 separate debug files.
7136
7137 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7138
7139 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7140 Move to...
7141 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7142 ... here.
7143 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7144 Check for STATUS_WX86_BREAKPOINT.
7145 (windows_nat_target::wait): Same.
7146
7147 2020-04-10 Tom de Vries <tdevries@suse.de>
7148
7149 PR cli/25808
7150 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7151
7152 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7153
7154 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7155 (Write After Approval): Remove Tom de Vries.
7156
7157 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7158
7159 revert partially:
7160 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7161
7162 * buildsym.c (record_line): Fix undefined behavior and preserve
7163 lines at eof.
7164
7165 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7166
7167 * auxv.h (svr4_auxv_parse): New.
7168 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7169 and generic_auxv_parse.
7170 (svr4_auxv_parse): Add.
7171 * obsd-tdep.c: Include "auxv.h".
7172 (obsd_auxv_parse): Remove.
7173 (obsd_init_abi): Remove comment.
7174 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7175 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7176 * nbsd-tdep.c: Include "auxv.h".
7177 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7178
7179 2020-04-08 Tom Tromey <tromey@adacore.com>
7180
7181 * nat/windows-nat.h (last_wait_event): Don't declare.
7182 (wait_for_debug_event): Update comment.
7183 * nat/windows-nat.c (last_wait_event): Now static.
7184
7185 2020-04-08 Tom Tromey <tromey@adacore.com>
7186
7187 * windows-nat.c (wait_for_debug_event): Move to
7188 nat/windows-nat.c.
7189 * nat/windows-nat.h (wait_for_debug_event): Declare.
7190 * nat/windows-nat.c (wait_for_debug_event): Move from
7191 windows-nat.c. No longer static.
7192
7193 2020-04-08 Tom Tromey <tromey@adacore.com>
7194
7195 * windows-nat.c (get_windows_debug_event): Use
7196 fetch_pending_stop.
7197 * nat/windows-nat.h (fetch_pending_stop): Declare.
7198 * nat/windows-nat.c (fetch_pending_stop): New function.
7199
7200 2020-04-08 Tom Tromey <tromey@adacore.com>
7201
7202 * windows-nat.c (windows_continue): Use matching_pending_stop and
7203 continue_last_debug_event.
7204 * nat/windows-nat.h (matching_pending_stop)
7205 (continue_last_debug_event): Declare.
7206 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7207 (matching_pending_stop, continue_last_debug_event): New
7208 functions.
7209
7210 2020-04-08 Tom Tromey <tromey@adacore.com>
7211
7212 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7213 (handle_exception_result): Move to nat/windows-nat.h.
7214 (DEBUG_EXCEPTION_SIMPLE): Remove.
7215 (windows_nat::handle_ms_vc_exception): New function.
7216 (handle_exception): Move to nat/windows-nat.c.
7217 (get_windows_debug_event): Update.
7218 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7219 nat/windows-nat.c.
7220 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7221 (handle_exception_result): Move from windows-nat.c.
7222 (handle_exception): Declare.
7223 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7224 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7225 windows-nat.c.
7226
7227 2020-04-08 Tom Tromey <tromey@adacore.com>
7228
7229 * windows-nat.c (exception_count, event_count): Remove.
7230 (handle_exception, get_windows_debug_event)
7231 (do_initial_windows_stuff): Update.
7232
7233 2020-04-08 Tom Tromey <tromey@adacore.com>
7234
7235 * windows-nat.c (windows_nat::handle_load_dll)
7236 (windows_nat::handle_unload_dll): Rename. No longer static.
7237 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7238 Declare.
7239
7240 2020-04-08 Tom Tromey <tromey@adacore.com>
7241
7242 * complaints.h (stop_whining): Declare at top-level.
7243 (complaint): Don't declare stop_whining.
7244
7245 2020-04-08 Tom Tromey <tromey@adacore.com>
7246
7247 * windows-nat.c (windows_nat::handle_output_debug_string):
7248 Rename. No longer static.
7249 * nat/windows-nat.h (handle_output_debug_string): Declare.
7250
7251 2020-04-08 Tom Tromey <tromey@adacore.com>
7252
7253 * windows-nat.c (current_process_handle, current_process_id)
7254 (main_thread_id, last_sig, current_event, last_wait_event)
7255 (current_windows_thread, desired_stop_thread_id, pending_stops)
7256 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7257 (display_selectors, fake_create_process)
7258 (get_windows_debug_event): Update.
7259 * nat/windows-nat.h (current_process_handle, current_process_id)
7260 (main_thread_id, last_sig, current_event, last_wait_event)
7261 (current_windows_thread, desired_stop_thread_id, pending_stops)
7262 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7263 * nat/windows-nat.c (current_process_handle, current_process_id)
7264 (main_thread_id, last_sig, current_event, last_wait_event)
7265 (current_windows_thread, desired_stop_thread_id, pending_stops)
7266 (siginfo_er): New globals. Move from windows-nat.c.
7267
7268 2020-04-08 Tom Tromey <tromey@adacore.com>
7269
7270 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7271 (handle_load_dll): Update.
7272 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7273
7274 2020-04-08 Tom Tromey <tromey@adacore.com>
7275
7276 * windows-nat.c (enum thread_disposition_type): Move to
7277 nat/windows-nat.h.
7278 (windows_nat::thread_rec): Rename from thread_rec. No longer
7279 static.
7280 (windows_add_thread, windows_nat_target::fetch_registers)
7281 (windows_nat_target::store_registers, handle_exception)
7282 (windows_nat_target::resume, get_windows_debug_event)
7283 (windows_nat_target::get_tib_address)
7284 (windows_nat_target::thread_name)
7285 (windows_nat_target::thread_alive): Update.
7286 * nat/windows-nat.h (enum thread_disposition_type): Move from
7287 windows-nat.c.
7288 (thread_rec): Declare.
7289
7290 2020-04-08 Tom Tromey <tromey@adacore.com>
7291
7292 * windows-nat.c: Add "using namespace".
7293 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7294 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7295
7296 2020-04-08 Tom Tromey <tromey@adacore.com>
7297
7298 * nat/windows-nat.h (struct windows_thread_info): Declare
7299 destructor.
7300 * nat/windows-nat.c (~windows_thread_info): New.
7301
7302 2020-04-08 Tom Tromey <tromey@adacore.com>
7303
7304 PR gdb/22992
7305 * windows-nat.c (current_event): Update comment.
7306 (last_wait_event, desired_stop_thread_id): New globals.
7307 (struct pending_stop): New.
7308 (pending_stops): New global.
7309 (windows_nat_target) <stopped_by_sw_breakpoint>
7310 <supports_stopped_by_sw_breakpoint>: New methods.
7311 (windows_fetch_one_register): Add assertions. Adjust PC.
7312 (windows_continue): Handle pending stops. Suspend other threads
7313 when stepping. Use last_wait_event
7314 (wait_for_debug_event): New function.
7315 (get_windows_debug_event): Use wait_for_debug_event. Handle
7316 pending stops. Queue spurious stops.
7317 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7318 (windows_nat_target::kill): Use wait_for_debug_event.
7319 * nat/windows-nat.h (struct windows_thread_info)
7320 <stopped_at_software_breakpoint>: New field.
7321 * nat/windows-nat.c (windows_thread_info::resume): Clear
7322 stopped_at_software_breakpoint.
7323
7324 2020-04-08 Tom Tromey <tromey@adacore.com>
7325
7326 * windows-nat.c (enum thread_disposition_type): New.
7327 (thread_rec): Replace "get_context" parameter with "disposition";
7328 change type.
7329 (windows_add_thread, windows_nat_target::fetch_registers)
7330 (windows_nat_target::store_registers, handle_exception)
7331 (windows_nat_target::resume, get_windows_debug_event)
7332 (windows_nat_target::get_tib_address)
7333 (windows_nat_target::thread_name)
7334 (windows_nat_target::thread_alive): Update.
7335
7336 2020-04-08 Tom Tromey <tromey@adacore.com>
7337
7338 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7339 (windows_continue): Use windows_continue::resume.
7340 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7341 resume>: Declare new methods.
7342 * nat/windows-nat.c: New file.
7343 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7344
7345 2020-04-08 Tom Tromey <tromey@adacore.com>
7346
7347 * windows-nat.c (windows_add_thread, windows_delete_thread)
7348 (windows_nat_target::fetch_registers)
7349 (windows_nat_target::store_registers, fake_create_process)
7350 (windows_nat_target::resume, windows_nat_target::resume)
7351 (get_windows_debug_event, windows_nat_target::wait)
7352 (windows_nat_target::pid_to_str)
7353 (windows_nat_target::get_tib_address)
7354 (windows_nat_target::get_ada_task_ptid)
7355 (windows_nat_target::thread_name)
7356 (windows_nat_target::thread_alive): Use lwp, not tid.
7357
7358 2020-04-08 Tom Tromey <tromey@adacore.com>
7359
7360 * windows-nat.c (handle_exception)
7361 (windows_nat_target::thread_name): Update.
7362 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7363 <name>: Now unique_xmalloc_ptr.
7364
7365 2020-04-08 Tom Tromey <tromey@adacore.com>
7366
7367 * windows-nat.c (thread_rec)
7368 (windows_nat_target::fetch_registers): Update.
7369 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7370 Update comment.
7371 <debug_registers_changed, reload_context>: Now bool.
7372
7373 2020-04-08 Tom Tromey <tromey@adacore.com>
7374
7375 * windows-nat.c (windows_add_thread): Use new.
7376 (windows_init_thread_list, windows_delete_thread): Use delete.
7377 (get_windows_debug_event): Update.
7378 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7379 destructor, and initializers.
7380
7381 2020-04-08 Tom Tromey <tromey@adacore.com>
7382
7383 * windows-nat.c (struct windows_thread_info): Remove.
7384 * nat/windows-nat.h: New file.
7385
7386 2020-04-08 Tom Tromey <tromey@adacore.com>
7387
7388 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7389 (thread_rec, windows_add_thread, windows_delete_thread)
7390 (windows_continue): Update.
7391
7392 2020-04-08 Tom Tromey <tromey@adacore.com>
7393
7394 * windows-nat.c (struct windows_thread_info): Remove typedef.
7395 (thread_head): Remove.
7396 (thread_list): New global.
7397 (thread_rec, windows_add_thread, windows_init_thread_list)
7398 (windows_delete_thread, windows_continue): Update.
7399
7400 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7401
7402 * windows-tdep.h (windows_init_abi): Add comment.
7403 (cygwin_init_abi): New declaration.
7404 * windows-tdep.c: Split signal enumeration in two, one for
7405 Windows and one for Cygwin.
7406 (windows_gdb_signal_to_target): Only deal with signal of the
7407 Windows OS ABI.
7408 (cygwin_gdb_signal_to_target): New function.
7409 (windows_init_abi): Rename to windows_init_abi_common, don't set
7410 gdb_signal_to_target gdbarch method. Add new new function with
7411 this name.
7412 (cygwin_init_abi): New function.
7413 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7414 comment. Don't call windows_init_abi.
7415 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7416 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7417 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7418 i386_windows_init_abi_common, don't call windows_init_abi. Add
7419 a new function of this name.
7420 (i386_cygwin_init_abi): New function.
7421 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7422 OS ABI Cygwin.
7423
7424 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7425
7426 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7427 parameter.c.
7428 (dwarf2_read_gdb_index): Update.
7429
7430 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7431
7432 * nbsd-tdep.c: Include "objfiles.h".
7433 (nbsd_skip_solib_resolver): New.
7434 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7435
7436 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7437
7438 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7439 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7440 with DW_LLE_base_addressx are being emitted in DWARFv5.
7441 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7442 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7443 unsigned integer.
7444
7445 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7446
7447 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7448 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7449 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7450 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7451 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7452 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7453 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7454
7455
7456 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7457
7458 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7459 (read_loclist_index): New function definition.
7460 (lookup_loclist_base): New function definition.
7461 (read_loclist_header): New function definition.
7462 (dwarf2_cu): Add loclist_base and loclist_header field.
7463 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7464 (read_full_die_1): Read the value of DW_AT_loclists_base.
7465 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7466 (read_attribute_value): Handle DW_FORM_loclistx.
7467 (skip_one_die): Handle DW_FORM_loclistx.
7468 (loclist_header): New structure declaration.
7469 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7470
7471 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7472
7473 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7474 constructor. Remove `addr` parameter from other constructor and
7475 add `per_cu` parameter.
7476 * dwarf2/read.c (create_partial_symtab): Update.
7477
7478 2020-04-07 Tom de Vries <tdevries@suse.de>
7479
7480 PR symtab/25796
7481 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7482 (partial_die_info::fixup): Inherit has_const_value.
7483
7484 2020-04-07 Tom de Vries <tdevries@suse.de>
7485
7486 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7487 symbols without address.
7488
7489 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7490
7491 * nbsd-nat.h (struct thread_info): Add forward declaration.
7492 (nbsd_nat_target::thread_alive): Add.
7493 (nbsd_nat_target::thread_name): Likewise.
7494 (nbsd_nat_target::update_thread_list): Likewise.
7495 (update_thread_list::post_attach): Likewise.
7496 (post_attach::pid_to_str): Likewise.
7497 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7498 (nbsd_thread_lister): Add.
7499 (nbsd_nat_target::thread_alive): Likewise.
7500 (nbsd_nat_target::thread_name): Likewise.
7501 (nbsd_add_threads): Likewise.
7502 (update_thread_list::post_attach): Likewise.
7503 (nbsd_nat_target::update_thread_list): Likewise.
7504 (post_attach::pid_to_str): Likewise.
7505
7506 2020-04-06 Tom Tromey <tromey@adacore.com>
7507
7508 * ada-valprint.c (print_variant_part): Extract the variant field.
7509 (print_field_values): Use the field as the outer value when
7510 recursing.
7511
7512 2020-04-06 Tom Tromey <tromey@adacore.com>
7513
7514 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7515 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7516 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7517 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7518 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7519
7520 2020-04-06 Tom Tromey <tromey@adacore.com>
7521
7522 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7523 TYPE_CODE_ERROR.
7524
7525 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7526
7527 * nbsd-tdep.c: Include "gdbarch.h".
7528 Define enum with NetBSD signal numbers.
7529 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7530 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7531 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7532 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7533 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7534 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7535 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7536 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7537 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7538 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7539 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7540 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7541
7542 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7543
7544 PR gdb/25325
7545 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7546
7547 2020-04-03 Tom Tromey <tromey@adacore.com>
7548
7549 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7550 Read constant block.
7551
7552 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7553
7554 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7555 (gdb_bfd_get_full_section_contents): New declaration.
7556 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7557 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7558 gdb_bfd_get_full_section_contents.
7559
7560 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7561
7562 * exec.c (build_section_table): Replace internal_error with
7563 gdb_assert.
7564 (section_table_xfer_memory_partial): Likewise.
7565 * mdebugread.c (parse_partial_symbols): Likewise.
7566 * psymtab.c (lookup_partial_symbol): Likewise.
7567 * utils.c (wrap_here): Likewise.
7568
7569 2020-04-02 Tom Tromey <tromey@adacore.com>
7570
7571 * f-lang.c (build_fortran_types): Use arch_type to initialize
7572 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7573
7574 2020-04-02 Tom Tromey <tromey@adacore.com>
7575
7576 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7577 of attributes.
7578
7579 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7580 Bernd Edlinger <bernd.edlinger@hotmail.de>
7581 Tom Tromey <tromey@adacore.com>
7582
7583 * buildsym.c (buildsym_compunit::record_line): Remove
7584 deduplication code.
7585
7586 2020-04-02 Tom de Vries <tdevries@suse.de>
7587
7588 PR ada/24671
7589 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7590
7591 2020-04-02 Tom de Vries <tdevries@suse.de>
7592
7593 * dwarf2/read.c (dwarf2_gdb_index_functions,
7594 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7595 NULL.
7596 * psymtab.c (psym_lookup_global_symbol_language): New function.
7597 (psym_functions): Init psym_lookup_global_symbol_language with
7598 psym_lookup_global_symbol_language.
7599 * symfile-debug.c (debug_sym_quick_functions): Init
7600 lookup_global_symbol_language with NULL.
7601 * symfile.c (set_initial_language): Remove fixme comment.
7602 * symfile.h (struct quick_symbol_functions): Add
7603 lookup_global_symbol_language.
7604 * symtab.c (find_quick_global_symbol_language): New function.
7605 (find_main_name): Use find_quick_global_symbol_language.
7606
7607 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7608
7609 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7610
7611 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7612
7613 * buildsym.c (record_line): Fix undefined behavior and preserve
7614 lines at eof.
7615
7616 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7617
7618 * buildsym.c (record_line): Fix the resizing condition.
7619
7620 2020-04-01 Tom Tromey <tom@tromey.com>
7621
7622 * value.h (value_literal_complex): Add comment.
7623 * valops.c (value_literal_complex): Refer to value.h.
7624
7625 2020-04-01 Tom Tromey <tom@tromey.com>
7626
7627 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7628 (scalar_type): New rule, from typebase.
7629 (typebase): Use scalar_type. Recognize complex types.
7630 (field_name): Handle FLOAT_KEYWORD.
7631 (ident_tokens): Add _Complex and __complex__.
7632
7633 2020-04-01 Tom Tromey <tom@tromey.com>
7634
7635 PR exp/25299:
7636 * valarith.c (promotion_type, complex_binop): New functions.
7637 (scalar_binop): Handle complex numbers. Use promotion_type.
7638 (value_pos, value_neg, value_complement): Handle complex numbers.
7639
7640 2020-04-01 Tom Tromey <tom@tromey.com>
7641
7642 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7643 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7644 (parse_number): Handle complex numbers.
7645
7646 2020-04-01 Tom Tromey <tom@tromey.com>
7647
7648 * c-valprint.c (c_decorations): Change complex suffix to "i".
7649
7650 2020-04-01 Tom Tromey <tom@tromey.com>
7651
7652 * valprint.c (generic_value_print_complex): Use accessors.
7653 * value.h (value_real_part, value_imaginary_part): Declare.
7654 * valops.c (value_real_part, value_imaginary_part): New
7655 functions.
7656 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7657
7658 2020-04-01 Tom Tromey <tom@tromey.com>
7659
7660 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7661 (read_range_type): Update.
7662 * mdebugread.c (basic_type): Update.
7663 * go-lang.c (build_go_types): Use init_complex_type.
7664 * gdbtypes.h (struct main_type) <complex_type>: New member.
7665 (init_complex_type): Update.
7666 (arch_complex_type): Don't declare.
7667 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7668 Make name if none given. Use alloc_type_copy. Look for cached
7669 complex type.
7670 (arch_complex_type): Remove.
7671 (gdbtypes_post_init): Use init_complex_type.
7672 * f-lang.c (build_fortran_types): Use init_complex_type.
7673 * dwarf2/read.c (read_base_type): Update.
7674 * d-lang.c (build_d_types): Use init_complex_type.
7675 * ctfread.c (read_base_type): Update.
7676
7677 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7678
7679 * infrun.c (stop_all_threads): Update assertion, plus when
7680 stopping threads, take into account that we might be trying
7681 to stop an all-stop target.
7682 (stop_waiting): Call 'stop_all_threads' if there exists a
7683 non-stop target.
7684
7685 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7686
7687 * target.h (exists_non_stop_target): New function declaration.
7688 * target.c (exists_non_stop_target): New function.
7689
7690 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7691
7692 PR gdb/24789
7693 * eval.c (is_integral_or_integral_reference): New function.
7694 (evaluate_subexp_standard): Allow integer references in
7695 pointer arithmetic.
7696
7697 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7698
7699 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7700 check for no ptid in the stop reply when the target is non-stop.
7701
7702 2020-04-01 Tom Tromey <tromey@adacore.com>
7703
7704 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7705 "name" parameter to rvalue reference. Initialize m_name_holder.
7706 <lookup_name_info>: New overloads.
7707 <name>: Return gdb::string_view.
7708 <c_str>: New method.
7709 <make_ignore_params>: Update.
7710 <search_name_hash>: Update.
7711 <language_lookup_name>: Return const char *.
7712 <m_name>: Change type.
7713 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7714 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7715 (lookup_name_info::match_any): Update.
7716 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7717 Update.
7718 * minsyms.c (linkage_name_str): Update.
7719 * language.c (default_symbol_name_matcher): Update.
7720 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7721 Update.
7722 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7723 (ada_lookup_name_info::ada_lookup_name_info): Update.
7724 (literal_symbol_name_matcher): Update.
7725
7726 2020-04-01 Tom Tromey <tromey@adacore.com>
7727
7728 * psymtab.c (psymtab_search_name): Remove function.
7729 (psym_lookup_symbol): Create search name and lookup name here.
7730 (lookup_partial_symbol): Remove "name" parameter; add
7731 lookup_name.
7732 (psym_expand_symtabs_for_function): Update.
7733
7734 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7735
7736 PR tui/25597:
7737 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7738
7739 2020-03-31 Tom Tromey <tromey@adacore.com>
7740
7741 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7742 memcpy.
7743
7744 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7745
7746 * features/riscv/32bit-csr.xml: Regenerated.
7747 * features/riscv/64bit-csr.xml: Regenerated.
7748
7749 2020-03-30 Tom Tromey <tromey@adacore.com>
7750
7751 * ada-valprint.c (print_variant_part): Update.
7752 * ada-lang.h (ada_which_variant_applies): Update.
7753 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7754 outer_valaddr parameters; replace with "outer" value parameter.
7755 (to_fixed_variant_branch_type): Update.
7756
7757 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7758
7759 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7760 <list>. Remove inclusion of observable.h.
7761 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7762 (struct arch_lwp_info): New struct.
7763 (class ppc_linux_dreg_interface): New class.
7764 (struct ppc_linux_process_info): New struct.
7765 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7766 <low_new_clone, low_forget_process, low_prepare_to_resume>
7767 <copy_thread_dreg_state, mark_thread_stale>
7768 <mark_debug_registers_changed, register_hw_breakpoint>
7769 <clear_hw_breakpoint, register_wp, clear_wp>
7770 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7771 <num_memory_accesses, get_trigger_type>
7772 <create_watchpoint_request, hwdebug_point_cmp>
7773 <init_arch_lwp_info, get_arch_lwp_info>
7774 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7775 methods.
7776 <struct ptid_hash>: New inner struct.
7777 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7778 members.
7779 (saved_dabr_value, hwdebug_info, max_slots_number)
7780 (struct hw_break_tuple, struct thread_points, ppc_threads)
7781 (have_ptrace_hwdebug_interface)
7782 (hwdebug_find_thread_points_by_tid)
7783 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7784 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7785 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7786 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7787 use m_dreg_interface.
7788 (hwdebug_point_cmp): Change to...
7789 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7790 reference arguments instead of pointers.
7791 (ppc_linux_nat_target::ranged_break_num_registers): Use
7792 m_dreg_interface.
7793 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7794 m_dreg_interface. Call register_hw_breakpoint.
7795 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7796 m_dreg_interface. Call clear_hw_breakpoint.
7797 (get_trigger_type): Change to...
7798 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7799 comment.
7800 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7801 use m_dreg_interface. Call register_hw_breakpoint.
7802 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7803 use m_dreg_interface. Call clear_hw_breakpoint.
7804 (can_use_watchpoint_cond_accel): Change to...
7805 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7806 method. Update comment, use m_dreg_interface and
7807 m_process_info.
7808 (calculate_dvc): Change to...
7809 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7810 m_dreg_interface.
7811 (num_memory_accesses): Change to...
7812 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7813 (check_condition): Change to...
7814 (ppc_linux_nat_target::check_condition): ...this method.
7815 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7816 comment, use m_dreg_interface.
7817 (create_watchpoint_request): Change to...
7818 (ppc_linux_nat_target::create_watchpoint_request): ...this
7819 method. Use m_dreg_interface.
7820 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7821 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7822 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7823 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7824 (ppc_linux_nat_target::low_forget_process)
7825 (ppc_linux_nat_target::low_new_fork)
7826 (ppc_linux_nat_target::low_new_clone)
7827 (ppc_linux_nat_target::low_delete_thread)
7828 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7829 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7830 only call mark_thread_stale.
7831 (ppc_linux_thread_exit): Remove.
7832 (ppc_linux_nat_target::stopped_data_address): Change to...
7833 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7834 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7835 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7836 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7837 comment. Call low_stopped_data_address.
7838 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7839 m_dreg_interface.
7840 (ppc_linux_nat_target::masked_watch_num_registers): Use
7841 m_dreg_interface.
7842 (ppc_linux_nat_target::copy_thread_dreg_state)
7843 (ppc_linux_nat_target::mark_thread_stale)
7844 (ppc_linux_nat_target::mark_debug_registers_changed)
7845 (ppc_linux_nat_target::register_hw_breakpoint)
7846 (ppc_linux_nat_target::clear_hw_breakpoint)
7847 (ppc_linux_nat_target::register_wp)
7848 (ppc_linux_nat_target::clear_wp)
7849 (ppc_linux_nat_target::init_arch_lwp_info)
7850 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7851 (_initialize_ppc_linux_nat): Remove observer callback.
7852
7853 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7854
7855 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7856 (ppc_linux_nat_target::auxv_parse)
7857 (ppc_linux_nat_target::read_description)
7858 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7859 Move up.
7860
7861 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7862
7863 * linux-nat.h (low_new_clone): New method.
7864 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7865
7866 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7867
7868 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7869 (dbx_expand_psymtab): ... this.
7870 (start_psymtab): Update.
7871 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7872 (mdebug_expand_psymtab): ... this.
7873 (parse_partial_symbols): Update.
7874 (new_psymtab): Update.
7875 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7876 (xcoff_expand_psymtab): ... this.
7877 (xcoff_start_psymtab): Update.
7878
7879 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7880
7881 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7882 <expand_dependencies>: ... this.
7883 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7884 (partial_symtab::expand_dependencies): ... this.
7885 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7886 Update.
7887 (dwarf2_psymtab::expand_psymtab): Update.
7888 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7889 * mdebugread.c (psymtab_to_symtab_1): Update.
7890 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7891
7892 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7893
7894 * psympriv.h (discard_psymtab): Remove.
7895 * dbxread.c (dbx_end_psymtab): Update.
7896 * xcoffread.c (xcoff_end_psymtab): Update.
7897
7898 2020-03-28 Tom Tromey <tom@tromey.com>
7899
7900 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7901 comment.
7902
7903 2020-03-28 Tom Tromey <tom@tromey.com>
7904
7905 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7906
7907 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7908
7909 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7910
7911 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7912
7913 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7914
7915 2020-03-26 Tom Tromey <tom@tromey.com>
7916
7917 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7918 (mark_common_block_symbol_computed, read_tag_string_type)
7919 (attr_to_dynamic_prop, read_subrange_type): Update.
7920 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7921 to be methods on struct attribute.
7922 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7923 (read_call_site_scope, partial_die_info::read)
7924 (partial_die_info::read, lookup_die_type, follow_die_ref):
7925 Update.
7926 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7927 from dwarf2_get_ref_die_offset.
7928 (attribute::constant_value): New method, from
7929 dwarf2_get_attr_constant_value.
7930 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7931 Declare method.
7932 <constant_value>: New method.
7933
7934 2020-03-26 Tom Tromey <tom@tromey.com>
7935
7936 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7937 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7938 (dwarf_type_encoding_name): Move to stringify.c.
7939 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7940 * dwarf2/stringify.c: New file.
7941 * dwarf2/stringify.h: New file.
7942
7943 2020-03-26 Tom Tromey <tom@tromey.com>
7944
7945 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7946 Rewrite.
7947
7948 2020-03-26 Tom Tromey <tom@tromey.com>
7949
7950 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7951 methods.
7952 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7953 (lookup_ranges_base): Likewise.
7954 (read_cutu_die_from_dwo, read_full_die_1): Update.
7955
7956 2020-03-26 Tom Tromey <tom@tromey.com>
7957
7958 * dwarf2/read.c (read_import_statement, read_file_scope)
7959 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7960 (read_lexical_block_scope, read_call_site_scope)
7961 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7962 (handle_struct_member_die, process_structure_scope)
7963 (update_enumeration_type_from_children)
7964 (process_enumeration_scope, read_array_type, read_common_block)
7965 (read_namespace, read_module, read_subroutine_type): Update.
7966 (sibling_die): Remove.
7967
7968 2020-03-26 Tom Tromey <tom@tromey.com>
7969
7970 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7971 (build_type_psymtabs_reader, read_structure_type)
7972 (read_enumeration_type, read_full_die_1): Update.
7973 (dwarf2_attr_no_follow): Move to die.h.
7974 * dwarf2/die.h (struct die_info) <attr>: New method.
7975
7976 2020-03-26 Tom Tromey <tom@tromey.com>
7977
7978 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7979 <base_address>: Now an optional.
7980 (dwarf2_find_base_address, dwarf2_rnglists_process)
7981 (dwarf2_ranges_process, fill_in_loclist_baton)
7982 (dwarf2_symbol_mark_computed): Update.
7983
7984 2020-03-26 Tom Tromey <tom@tromey.com>
7985
7986 * dwarf2/read.c (struct die_info): Move to die.h.
7987 * dwarf2/die.h: New file.
7988
7989 2020-03-26 Tom Tromey <tom@tromey.com>
7990
7991 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7992 * dwarf2/read.c
7993 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7994 Move to line-header.c.
7995 (read_checked_initial_length_and_offset, read_formatted_entries):
7996 Likewise.
7997 (dwarf_decode_line_header): Split into two.
7998 * dwarf2/line-header.c
7999 (dwarf2_statement_list_fits_in_line_number_section_complaint):
8000 Move from read.c.
8001 (read_checked_initial_length_and_offset, read_formatted_entries):
8002 Likewise.
8003 (dwarf_decode_line_header): New function, split from read.c.
8004
8005 2020-03-26 Tom Tromey <tom@tromey.com>
8006
8007 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
8008 Declare method.
8009 * dwarf2/read.c (read_attribute_value): Update.
8010 (dwarf2_per_objfile::read_line_string): Rename from
8011 read_indirect_line_string.
8012 (read_formatted_entries): Update.
8013
8014 2020-03-26 Tom Tromey <tom@tromey.com>
8015
8016 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8017 variable.
8018
8019 2020-03-26 Tom Tromey <tom@tromey.com>
8020
8021 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8022 const.
8023 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8024 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8025 parameter const.
8026
8027 2020-03-26 Tom Tromey <tom@tromey.com>
8028
8029 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8030 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8031 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8032 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8033
8034 2020-03-26 Tom Tromey <tom@tromey.com>
8035
8036 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8037 file_names_size, file_full_name, file_file_name>: Use const.
8038 <file_name_at, file_names>: Add const overload.
8039 * dwarf2/line-header.c (line_header::file_file_name)
8040 (line_header::file_full_name): Update.
8041
8042 2020-03-26 Tom Tromey <tom@tromey.com>
8043
8044 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8045 (macro_start_file, consume_improper_spaces)
8046 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8047 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8048 (dwarf_decode_macros): Move to macro.c.
8049 * dwarf2/macro.c: New file.
8050 * dwarf2/macro.h: New file.
8051 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8052
8053 2020-03-26 Tom Tromey <tom@tromey.com>
8054
8055 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8056 method.
8057 * dwarf2/section.c: New method. From
8058 read_indirect_string_at_offset_from.
8059 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8060 (read_indirect_string_at_offset_from): Move to section.c.
8061 (read_indirect_string_at_offset): Rewrite.
8062 (read_indirect_line_string_at_offset): Remove.
8063 (read_indirect_string, read_indirect_line_string)
8064 (dwarf_decode_macro_bytes): Update.
8065
8066 2020-03-26 Tom Tromey <tom@tromey.com>
8067
8068 * dwarf2/section.h (struct dwarf2_section_info)
8069 <overload_complaint>: Declare.
8070 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8071 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8072 Rename from dwarf2_section_buffer_overflow_complaint.
8073 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8074 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8075
8076 2020-03-26 Tom Tromey <tom@tromey.com>
8077
8078 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8079 Declare.
8080 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8081 Move from read.c.
8082 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8083 to section.c.
8084
8085 2020-03-26 Tom Tromey <tom@tromey.com>
8086
8087 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8088
8089 2020-03-26 Tom Tromey <tom@tromey.com>
8090
8091 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8092 "builder".
8093 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8094 parameter.
8095 (dwarf_decode_macros): Update.
8096
8097 2020-03-26 Tom Tromey <tom@tromey.com>
8098
8099 * dwarf2/read.c (read_attribute_value): Update.
8100 (read_indirect_string_from_dwz): Move to dwz.c; change into
8101 method.
8102 (dwarf_decode_macro_bytes): Update.
8103 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8104 * dwarf2/dwz.c: New file.
8105 * Makefile.in (COMMON_SFILES): Add dwz.c.
8106
8107 2020-03-26 Tom Tromey <tom@tromey.com>
8108
8109 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8110 * dwarf2/read.c: Add include.
8111 * dwarf2/index-write.c: Add include.
8112 * dwarf2/index-cache.c: Add include.
8113 * dwarf2/dwz.h: New file.
8114
8115 2020-03-25 Tom Tromey <tom@tromey.com>
8116
8117 * compile/compile-object-load.c (get_out_value_type): Mention
8118 correct symbol name in error message.
8119
8120 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8121
8122 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8123
8124 2020-03-25 Tom de Vries <tdevries@suse.de>
8125
8126 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8127 * symmisc.c (dump_symtab_1): Print user and includes fields.
8128 (maintenance_info_symtabs): Same.
8129
8130 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8131
8132 PR gdb/25534
8133 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8134 (riscv_regcache_cooked_write): New function.
8135 (riscv_push_dummy_call): Use new function.
8136 (riscv_return_value): Likewise.
8137
8138 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8139
8140 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8141 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8142 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8143 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8144 * infrun.c (follow_fork): Likewise.
8145 (follow_fork_inferior): Likewise.
8146 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8147 * linux-nat.h (class linux_nat_target): Likewise.
8148 * remote.c (class remote_target) <follow_fork>: Likewise.
8149 (remote_target::follow_fork): Likewise.
8150 * target-delegates.c: Re-generate.
8151 * target.c (default_follow_fork): Likewise.
8152 (target_follow_fork): Likewise.
8153 * target.h (struct target_ops) <follow_fork>: Likewise.
8154 (target_follow_fork): Likewise.
8155
8156 2020-03-24 Tom de Vries <tdevries@suse.de>
8157
8158 * psymtab.c (maintenance_info_psymtabs): Print user field.
8159
8160 2020-03-20 Tom Tromey <tromey@adacore.com>
8161
8162 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8163 const.
8164 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8165 const.
8166
8167 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8168
8169 * ptrace.m4: Don't check for ptrace declaration.
8170 * config.in: Re-generate.
8171 * configure: Re-generate.
8172 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8173 not defined.
8174
8175 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8176
8177 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8178 `PTRACE_TYPE_RET'.
8179 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8180 * sparc-nat.c (gdb_ptrace): Likewise.
8181 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8182
8183 2020-03-20 Tom Tromey <tromey@adacore.com>
8184
8185 * c-exp.y (lex_one_token): Fix assert.
8186
8187 2020-03-20 Tom Tromey <tromey@adacore.com>
8188
8189 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8190 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8191 strncpy call.
8192
8193 2020-03-20 Tom Tromey <tromey@adacore.com>
8194
8195 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8196
8197 2020-03-20 Tom Tromey <tromey@adacore.com>
8198
8199 * ada-valprint.c (print_variant_part): Remove parameters; switch
8200 to value-based API.
8201 (print_field_values): Likewise.
8202 (ada_val_print_struct_union): Likewise.
8203 (ada_value_print_1): Update.
8204
8205 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8206
8207 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8208 nbsd_nat_target instead of inf_ptrace_target.
8209 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8210 nbsd_nat_target.
8211
8212 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8213
8214 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8215 it to the ptrace call.
8216 * (store_registers): Likewise.
8217
8218 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8219
8220 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8221 it to the ptrace call.
8222 * (store_registers): Likewise.
8223
8224 2020-03-19 Luis Machado <luis.machado@linaro.org>
8225
8226 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8227 valid, fetch vg value from ptrace.
8228
8229 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8230 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8231 * inf-ptrace.c: Likewise.
8232 * (gdb_ptrace): Add.
8233 * (inf_ptrace_target::resume): Update.
8234 * (inf_ptrace_target::xfer_partial): Likewise.
8235 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8236 * (inf_ptrace_peek_poke): Update.
8237
8238 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8239
8240 * x86-bsd-nat.c (gdb_ptrace): New.
8241 * (x86bsd_dr_set): Add new argument `ptid'.
8242 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8243 x86bsd_dr_set_addr): Update.
8244
8245 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8246
8247 * remote.c (remote_target::process_stop_reply): Handle events for
8248 all threads differently.
8249
8250 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8251
8252 * completer.c (completion_tracker::remove_completion): Define new
8253 function.
8254 * completer.h (completion_tracker::remove_completion): Declare new
8255 function.
8256 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8257 when adding a C++ function symbol.
8258
8259 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8260
8261 * completer.c (completion_tracker::completion_hash_entry): Define
8262 new class.
8263 (advance_to_filename_complete_word_point): Call
8264 recompute_lowest_common_denominator.
8265 (completion_tracker::completion_tracker): Call discard_completions
8266 to setup the hash table.
8267 (completion_tracker::discard_completions): Allow for being called
8268 from the constructor, pass new equal function, and element deleter
8269 when constructing the hash table. Initialise new class member
8270 variables.
8271 (completion_tracker::maybe_add_completion): Remove use of
8272 m_entries_vec, and store more information into m_entries_hash.
8273 (completion_tracker::recompute_lcd_visitor): New function, most
8274 content taken from...
8275 (completion_tracker::recompute_lowest_common_denominator):
8276 ...here, this now just visits each item in the hash calling the
8277 above visitor.
8278 (completion_tracker::build_completion_result): Remove use of
8279 m_entries_vec, call recompute_lowest_common_denominator.
8280 * completer.h (completion_tracker::have_completions): Remove use
8281 of m_entries_vec.
8282 (completion_tracker::completion_hash_entry): Declare new class.
8283 (completion_tracker::recompute_lowest_common_denominator): Change
8284 function signature.
8285 (completion_tracker::recompute_lcd_visitor): Declare new function.
8286 (completion_tracker::m_entries_vec): Delete.
8287 (completion_tracker::m_entries_hash): Initialize to NULL.
8288 (completion_tracker::m_lowest_common_denominator_valid): New
8289 member variable.
8290 (completion_tracker::m_lowest_common_denominator_max_length): New
8291 member variable.
8292
8293 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8294
8295 * regformats/regdef.h: Put reg in gdb namespace.
8296
8297 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8298
8299 * i386-bsd-nat.c (gdb_ptrace): New.
8300 * (i386bsd_fetch_inferior_registers,
8301 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8302 * (i386bsd_fetch_inferior_registers,
8303 i386bsd_store_inferior_registers) Use gdb_ptrace.
8304
8305 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8306
8307 * amd64-bsd-nat.c (gdb_ptrace): New.
8308 * (amd64bsd_fetch_inferior_registers,
8309 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8310 * (amd64bsd_fetch_inferior_registers,
8311 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8312
8313 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8314
8315 * user-regs.c (user_reg::read): Rename to...
8316 (user_reg::xread): ...this.
8317 * (append_user_reg): Rename argument `read' to `xread'.
8318 * (user_reg_add_builtin): Likewise.
8319 * (user_reg_add): Likewise.
8320 * (value_of_user_reg): Likewise.
8321
8322 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8323
8324 * sparc-nat.c (gdb_ptrace): New.
8325 * sparc-nat.c (sparc_fetch_inferior_registers)
8326 (sparc_store_inferior_registers) Remove obsolete comment.
8327 * sparc-nat.c (sparc_fetch_inferior_registers)
8328 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8329 * sparc-nat.c (sparc_fetch_inferior_registers)
8330 (sparc_store_inferior_registers) Use gdb_ptrace.
8331
8332 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8333
8334 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8335 it to the ptrace call.
8336 * sh-nbsd-nat.c (store_registers): Likewise.
8337
8338 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8339
8340 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8341 nbsd_nat_target instead of inf_ptrace_target.
8342 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8343 nbsd_nat_target.
8344
8345 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8346
8347 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8348
8349 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8350
8351 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8352 <sys/sysctl.h>.
8353 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8354
8355 2020-03-17 Tom de Vries <tdevries@suse.de>
8356
8357 PR gdb/23710
8358 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8359 fields.
8360 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8361 fields.
8362 (process_imported_unit_die): Skip import of c++ CUs.
8363
8364 2020-03-16 Tom Tromey <tom@tromey.com>
8365
8366 * p-valprint.c (pascal_object_print_value): Initialize
8367 base_value.
8368
8369 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8370 Shahab Vahedi <shahab@synopsys.com>
8371
8372 * Makefile.in: Add arch/arc.o
8373 * configure.tgt: Likewise.
8374 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8375 (_initialize_arc_tdep): Don't initialize old target descriptions.
8376 (arc_read_description): New function to cache target descriptions.
8377 * arc-tdep.h (arc_read_description): Add proto type.
8378 * arch/arc.c: New file.
8379 * arch/arc.h: Likewise.
8380 * features/Makefile: Replace old target descriptions with new.
8381 * features/arc-arcompact.c: Remove.
8382 * features/arc-arcompact.xml: Likewise.
8383 * features/arc-v2.c: Likewise
8384 * features/arc-v2.xml: Likewise
8385 * features/arc/aux-arcompact.xml: New file.
8386 * features/arc/aux-v2.xml: Likewise.
8387 * features/arc/core-arcompact.xml: Likewise.
8388 * features/arc/core-v2.xml: Likewise.
8389 * features/arc/aux-arcompact.c: Generate.
8390 * features/arc/aux-v2.c: Likewise.
8391 * features/arc/core-arcompact.c: Likewise.
8392 * features/arc/core-v2.c: Likewise.
8393 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8394
8395 2020-03-16 Tom Tromey <tromey@adacore.com>
8396
8397 PR gdb/25663:
8398 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8399 putting value into bcache.
8400
8401 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8402
8403 PR gdb/21500
8404 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8405 to...
8406 (amd64_windows_init_abi_common): ... this. Don't set size of
8407 long type.
8408 (amd64_windows_init_abi): New function.
8409 (amd64_cygwin_init_abi): New function.
8410 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8411 the Cygwin OS ABI.
8412 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8413 comment.
8414
8415 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8416
8417 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8418 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8419 (pe_import_directory_entry): New struct type.
8420 (is_linked_with_cygwin_dll): New function.
8421 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8422 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8423 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8424
8425 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8426
8427 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8428 i386_cygwin_core_osabi_sniffer.
8429
8430 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8431
8432 * i386-cygwin-tdep.c: Rename to...
8433 * i386-windows-tdep.c: ... this.
8434 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8435 i386-windows-tdep.c.
8436 * configure.tgt: Likewise.
8437
8438 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8439
8440 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8441 * osabi.c (gdb_osabi_names): Add "Windows".
8442 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8443 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8444 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8445 i386_cygwin_osabi_sniffer.
8446 (_initialize_i386_cygwin_tdep): Register OS ABI
8447 GDB_OSABI_WINDOWS for i386.
8448 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8449 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8450 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8451 for x86-64.
8452 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8453 when the target matches '*-*-mingw*'.
8454
8455 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8456
8457 * defs.h (enum gdb_osabi): Move to...
8458 * osabi.h (enum gdb_osabi): ... here.
8459 * gdbarch.sh: Include osabi.h in gdbarch.h.
8460 * gdbarch.h: Re-generate.
8461
8462 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8463
8464 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8465 function.
8466 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8467
8468 2020-03-14 Tom Tromey <tom@tromey.com>
8469
8470 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8471 for C++.
8472 (c_type_print_modifier): Likewise. Add "language" parameter.
8473 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8474 (c_type_print_base_1): Update.
8475 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8476 constants.
8477 * type-stack.c (type_stack::insert): Handle tp_atomic and
8478 tp_restrict.
8479 (type_stack::follow_type_instance_flags): Likewise.
8480 (type_stack::follow_types): Likewise. Merge type-following code.
8481 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8482 (space_identifier, cv_with_space_id)
8483 (const_or_volatile_or_space_identifier_noopt)
8484 (const_or_volatile_or_space_identifier): Remove.
8485 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8486 rules.
8487 (ptr_operator, typebase): Update.
8488 (enum token_flag) <FLAG_C>: New constant.
8489 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8490 "_Atomic".
8491 (lex_one_token): Handle FLAG_C.
8492
8493 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8494
8495 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8496 it to the ptrace call.
8497 * m68k-bsd-nat.c (store_registers): Likewise.
8498
8499 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8500
8501 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8502 gdb_byte *.
8503 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8504 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8505 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8506
8507 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8508
8509 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8510 nbsd_nat_target instead of inf_ptrace_target.
8511 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8512 nbsd_nat_target.
8513
8514 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8515
8516 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8517 register_t.
8518
8519 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8520
8521 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8522 it to the ptrace call.
8523 * alpha-bsd-nat.c (store_registers): Likewise.
8524
8525 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8526
8527 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8528 includes.
8529 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8530 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8531 fill_fpregset): Likewise.
8532
8533 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8534
8535 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8536 nbsd_nat_target instead of inf_ptrace_target.
8537 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8538 nbsd_nat_target.
8539
8540 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8541
8542 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8543 register_t.
8544
8545 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8546
8547 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8548 it to the ptrace call.
8549 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8550 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8551 * arm-nbsd-nat.c (store_register): Likewise.
8552 * arm-nbsd-nat.c (store_regs): Likewise.
8553 * arm-nbsd-nat.c (store_fp_register): Likewise.
8554 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8555
8556 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8557
8558 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8559 nbsd_nat_target instead of inf_ptrace_target.
8560 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8561 nbsd_nat_target.
8562
8563 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8564
8565 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8566 it to the ptrace call.
8567 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8568
8569 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8570
8571 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8572 it to the ptrace call.
8573 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8574
8575 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8576
8577 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8578 gdb_byte *.
8579 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8580
8581 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8582
8583 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8584 instead of inf_ptrace_target.
8585 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8586 nbsd_nat_target.
8587
8588 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8589
8590 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8591 register_t.
8592
8593 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8594
8595 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8596 register_t.
8597
8598 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8599
8600 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8601 register_t.
8602
8603 2020-03-13 Tom Tromey <tom@tromey.com>
8604
8605 * value.h (val_print): Don't declare.
8606 * valprint.h (val_print_array_elements)
8607 (val_print_scalar_formatted, generic_val_print): Don't declare.
8608 * valprint.c (generic_val_print_array): Take a struct value.
8609 (generic_val_print_ptr, generic_val_print_memberptr)
8610 (generic_val_print_bool, generic_val_print_int)
8611 (generic_val_print_char, generic_val_print_complex)
8612 (generic_val_print): Remove.
8613 (generic_value_print): Update.
8614 (do_val_print): Remove unused parameters. Don't call
8615 la_val_print.
8616 (val_print): Remove.
8617 (common_val_print): Update. Don't call value_check_printable.
8618 (val_print_scalar_formatted, val_print_array_elements): Remove.
8619 * rust-lang.c (rust_val_print): Remove.
8620 (rust_language_defn): Update.
8621 * p-valprint.c (pascal_val_print): Remove.
8622 (pascal_value_print_inner): Update.
8623 (pascal_object_print_val_fields, pascal_object_print_val):
8624 Remove.
8625 (pascal_object_print_static_field): Update.
8626 * p-lang.h (pascal_val_print): Don't declare.
8627 * p-lang.c (pascal_language_defn): Update.
8628 * opencl-lang.c (opencl_language_defn): Update.
8629 * objc-lang.c (objc_language_defn): Update.
8630 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8631 * m2-lang.h (m2_val_print): Don't declare.
8632 * m2-lang.c (m2_language_defn): Update.
8633 * language.h (struct language_defn) <la_val_print>: Remove.
8634 * language.c (unk_lang_value_print_inner): Rename. Change
8635 argument types.
8636 (unknown_language_defn, auto_language_defn): Update.
8637 * go-valprint.c (go_val_print): Remove.
8638 * go-lang.h (go_val_print): Don't declare.
8639 * go-lang.c (go_language_defn): Update.
8640 * f-valprint.c (f_val_print): Remove.
8641 * f-lang.h (f_value_print): Don't declare.
8642 * f-lang.c (f_language_defn): Update.
8643 * d-valprint.c (d_val_print): Remove.
8644 * d-lang.h (d_value_print): Don't declare.
8645 * d-lang.c (d_language_defn): Update.
8646 * cp-valprint.c (cp_print_value_fields)
8647 (cp_print_value_fields_rtti, cp_print_value): Remove.
8648 (cp_print_static_field): Update.
8649 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8650 (c_val_print_struct, c_val_print_union, c_val_print_int)
8651 (c_val_print_memberptr, c_val_print): Remove.
8652 * c-lang.h (c_val_print_array, cp_print_value_fields)
8653 (cp_print_value_fields_rtti): Don't declare.
8654 * c-lang.c (c_language_defn, cplus_language_defn)
8655 (asm_language_defn, minimal_language_defn): Update.
8656 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8657 (ada_val_print_enum): Take a struct value.
8658 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8659 (ada_val_print): Remove.
8660 (ada_value_print_1): Update.
8661 (printable_val_type): Remove.
8662 * ada-lang.h (ada_val_print): Don't declare.
8663 * ada-lang.c (ada_language_defn): Update.
8664
8665 2020-03-13 Tom Tromey <tom@tromey.com>
8666
8667 * valprint.c (do_val_print): Update.
8668 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8669 a struct value.
8670 (value_to_value_object_no_release): Declare.
8671 * python/py-value.c (value_to_value_object_no_release): New
8672 function.
8673 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8674 struct value.
8675 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8676 function.
8677 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8678 a struct value.
8679 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8680 Declare.
8681 (gdbscm_apply_val_pretty_printer): Take a struct value.
8682 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8683 value.
8684 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8685 value.
8686 * extension-priv.h (struct extension_language_ops)
8687 <apply_val_pretty_printer>: Take a struct value.
8688 * cp-valprint.c (cp_print_value): Create a struct value.
8689 (cp_print_value): Update.
8690
8691 2020-03-13 Tom Tromey <tom@tromey.com>
8692
8693 * ada-valprint.c (print_field_values): Call common_val_print.
8694
8695 2020-03-13 Tom Tromey <tom@tromey.com>
8696
8697 * ada-valprint.c (val_print_packed_array_elements): Remove
8698 bitoffset and val parameters. Call common_val_print.
8699 (ada_val_print_string): Remove offset, address, and original_value
8700 parameters.
8701 (ada_val_print_array): Update.
8702 (ada_value_print_array): New function.
8703 (ada_value_print_1): Call it.
8704
8705 2020-03-13 Tom Tromey <tom@tromey.com>
8706
8707 * ada-valprint.c (ada_value_print): Use common_val_print.
8708
8709 2020-03-13 Tom Tromey <tom@tromey.com>
8710
8711 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8712
8713 2020-03-13 Tom Tromey <tom@tromey.com>
8714
8715 * ada-valprint.c (ada_value_print_num): New function.
8716 (ada_value_print_1): Use it.
8717
8718 2020-03-13 Tom Tromey <tom@tromey.com>
8719
8720 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8721
8722 2020-03-13 Tom Tromey <tom@tromey.com>
8723
8724 * ada-valprint.c (ada_value_print_ptr): New function.
8725 (ada_value_print_1): Use it.
8726
8727 2020-03-13 Tom Tromey <tom@tromey.com>
8728
8729 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8730 call common_val_print.
8731 (ada_val_print_1): Update.
8732 (ada_value_print_1): New function.
8733 (ada_value_print_inner): Rewrite.
8734
8735 2020-03-13 Tom Tromey <tom@tromey.com>
8736
8737 * cp-valprint.c (cp_print_value_fields): Update.
8738 (cp_print_value): New function.
8739
8740 2020-03-13 Tom Tromey <tom@tromey.com>
8741
8742 * m2-valprint.c (m2_value_print_inner): Use
8743 cp_print_value_fields.
8744 * cp-valprint.c (cp_print_value_fields): New function.
8745 * c-valprint.c (c_value_print_struct): New function.
8746 (c_value_print_inner): Use c_value_print_struct.
8747 * c-lang.h (cp_print_value_fields): Declare.
8748
8749 2020-03-13 Tom Tromey <tom@tromey.com>
8750
8751 * c-valprint.c (c_value_print_array): New function.
8752 (c_value_print_inner): Use it.
8753
8754 2020-03-13 Tom Tromey <tom@tromey.com>
8755
8756 * c-valprint.c (c_value_print_memberptr): New function.
8757 (c_value_print_inner): Use it.
8758
8759 2020-03-13 Tom Tromey <tom@tromey.com>
8760
8761 * c-valprint.c (c_value_print_int): New function.
8762 (c_value_print_inner): Use it.
8763
8764 2020-03-13 Tom Tromey <tom@tromey.com>
8765
8766 * c-valprint.c (c_value_print_ptr): New function.
8767 (c_value_print_inner): Use it.
8768
8769 2020-03-13 Tom Tromey <tom@tromey.com>
8770
8771 * c-valprint.c (c_value_print_inner): Rewrite.
8772
8773 2020-03-13 Tom Tromey <tom@tromey.com>
8774
8775 * valprint.c (generic_value_print_complex): New function.
8776 (generic_value_print): Use it.
8777
8778 2020-03-13 Tom Tromey <tom@tromey.com>
8779
8780 * valprint.c (generic_val_print_float): Don't call
8781 val_print_scalar_formatted.
8782 (generic_val_print, generic_value_print): Update.
8783
8784 2020-03-13 Tom Tromey <tom@tromey.com>
8785
8786 * valprint.c (generic_value_print_char): New function
8787 (generic_value_print): Use it.
8788
8789 2020-03-13 Tom Tromey <tom@tromey.com>
8790
8791 * valprint.c (generic_value_print_int): New function.
8792 (generic_value_print): Use it.
8793
8794 2020-03-13 Tom Tromey <tom@tromey.com>
8795
8796 * valprint.c (generic_value_print_bool): New function.
8797 (generic_value_print): Use it.
8798
8799 2020-03-13 Tom Tromey <tom@tromey.com>
8800
8801 * valprint.c (generic_val_print_func): Simplify.
8802 (generic_val_print, generic_value_print): Update.
8803
8804 2020-03-13 Tom Tromey <tom@tromey.com>
8805
8806 * valprint.c (generic_val_print_flags): Remove.
8807 (generic_val_print, generic_value_print): Update.
8808 (val_print_type_code_flags): Add original_value parameter.
8809
8810 2020-03-13 Tom Tromey <tom@tromey.com>
8811
8812 * valprint.c (generic_val_print): Update.
8813 (generic_value_print): Update.
8814 * valprint.c (generic_val_print_enum): Don't call
8815 val_print_scalar_formatted.
8816
8817 2020-03-13 Tom Tromey <tom@tromey.com>
8818
8819 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8820 * valprint.c (generic_value_print_ptr): New function.
8821
8822 2020-03-13 Tom Tromey <tom@tromey.com>
8823
8824 * valprint.c (generic_value_print): Rewrite.
8825
8826 2020-03-13 Tom Tromey <tom@tromey.com>
8827
8828 * p-valprint.c (pascal_object_print_value_fields)
8829 (pascal_object_print_value): New functions.
8830
8831 2020-03-13 Tom Tromey <tom@tromey.com>
8832
8833 * p-valprint.c (pascal_value_print_inner): Rewrite.
8834
8835 2020-03-13 Tom Tromey <tom@tromey.com>
8836
8837 * f-valprint.c (f_value_print_innner): Rewrite.
8838
8839 2020-03-13 Tom Tromey <tom@tromey.com>
8840
8841 * m2-valprint.c (m2_print_unbounded_array): New overload.
8842 (m2_print_unbounded_array): Update.
8843 (m2_print_array_contents): Take a struct value.
8844 (m2_value_print_inner): Rewrite.
8845
8846 2020-03-13 Tom Tromey <tom@tromey.com>
8847
8848 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8849 (d_value_print_inner): New function.
8850 * d-lang.h (d_value_print_inner): Declare.
8851 * d-lang.c (d_language_defn): Use d_value_print_inner.
8852
8853 2020-03-13 Tom Tromey <tom@tromey.com>
8854
8855 * go-valprint.c (go_value_print_inner): New function.
8856 * go-lang.h (go_value_print_inner): Declare.
8857 * go-lang.c (go_language_defn): Use go_value_print_inner.
8858
8859 2020-03-13 Tom Tromey <tom@tromey.com>
8860
8861 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8862 API.
8863 (rust_val_print): Rewrite.
8864 (rust_value_print_inner): New function, from rust_val_print.
8865 (rust_language_defn): Use rust_value_print_inner.
8866
8867 2020-03-13 Tom Tromey <tom@tromey.com>
8868
8869 * ada-valprint.c (ada_value_print_inner): New function.
8870 * ada-lang.h (ada_value_print_inner): Declare.
8871 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8872
8873 2020-03-13 Tom Tromey <tom@tromey.com>
8874
8875 * f-valprint.c (f_value_print_innner): New function.
8876 * f-lang.h (f_value_print_innner): Declare.
8877 * f-lang.c (f_language_defn): Use f_value_print_innner.
8878
8879 2020-03-13 Tom Tromey <tom@tromey.com>
8880
8881 * p-valprint.c (pascal_value_print_inner): New function.
8882 * p-lang.h (pascal_value_print_inner): Declare.
8883 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8884
8885 2020-03-13 Tom Tromey <tom@tromey.com>
8886
8887 * m2-valprint.c (m2_value_print_inner): New function.
8888 * m2-lang.h (m2_value_print_inner): Declare.
8889 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8890
8891 2020-03-13 Tom Tromey <tom@tromey.com>
8892
8893 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8894 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8895 * c-valprint.c (c_value_print_inner): New function.
8896 * c-lang.h (c_value_print_inner): Declare.
8897 * c-lang.c (c_language_defn, cplus_language_defn)
8898 (asm_language_defn, minimal_language_defn): Use
8899 c_value_print_inner.
8900
8901 2020-03-13 Tom Tromey <tom@tromey.com>
8902
8903 * p-valprint.c (pascal_object_print_value_fields): Now static.
8904 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8905
8906 2020-03-13 Tom Tromey <tom@tromey.com>
8907
8908 * c-valprint.c (c_val_print_array): Simplify.
8909
8910 2020-03-13 Tom Tromey <tom@tromey.com>
8911
8912 * valprint.c (value_print_array_elements): New function.
8913 * valprint.h (value_print_array_elements): Declare.
8914
8915 2020-03-13 Tom Tromey <tom@tromey.com>
8916
8917 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8918 * mips-tdep.c (mips_print_register): Use
8919 value_print_scalar_formatted.
8920
8921 2020-03-13 Tom Tromey <tom@tromey.com>
8922
8923 * valprint.h (value_print_scalar_formatted): Declare.
8924 * valprint.c (value_print_scalar_formatted): New function.
8925
8926 2020-03-13 Tom Tromey <tom@tromey.com>
8927
8928 * valprint.h (generic_value_print): Declare.
8929 * valprint.c (generic_value_print): New function.
8930
8931 2020-03-13 Tom Tromey <tom@tromey.com>
8932
8933 * valprint.c (do_val_print): Call la_value_print_inner, if
8934 available.
8935 * rust-lang.c (rust_language_defn): Update.
8936 * p-lang.c (pascal_language_defn): Update.
8937 * opencl-lang.c (opencl_language_defn): Update.
8938 * objc-lang.c (objc_language_defn): Update.
8939 * m2-lang.c (m2_language_defn): Update.
8940 * language.h (struct language_defn) <la_value_print_inner>: New
8941 member.
8942 * language.c (unknown_language_defn, auto_language_defn): Update.
8943 * go-lang.c (go_language_defn): Update.
8944 * f-lang.c (f_language_defn): Update.
8945 * d-lang.c (d_language_defn): Update.
8946 * c-lang.c (c_language_defn, cplus_language_defn)
8947 (asm_language_defn, minimal_language_defn): Update.
8948 * ada-lang.c (ada_language_defn): Update.
8949
8950 2020-03-13 Tom Tromey <tom@tromey.com>
8951
8952 * c-valprint.c (c_value_print): Use common_val_print.
8953
8954 2020-03-13 Tom Tromey <tom@tromey.com>
8955
8956 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8957
8958 2020-03-13 Tom Tromey <tom@tromey.com>
8959
8960 * f-valprint.c (f77_print_array_1, f_val_print): Use
8961 common_val_print.
8962
8963 2020-03-13 Tom Tromey <tom@tromey.com>
8964
8965 * riscv-tdep.c (riscv_print_one_register_info): Use
8966 common_val_print.
8967
8968 2020-03-13 Tom Tromey <tom@tromey.com>
8969
8970 * mi/mi-main.c (output_register): Use common_val_print.
8971
8972 2020-03-13 Tom Tromey <tom@tromey.com>
8973
8974 * infcmd.c (default_print_one_register_info): Use
8975 common_val_print.
8976
8977 2020-03-13 Tom Tromey <tom@tromey.com>
8978
8979 * valprint.h (common_val_print_checked): Declare.
8980 * valprint.c (common_val_print_checked): New function.
8981 * stack.c (print_frame_arg): Use common_val_print_checked.
8982
8983 2020-03-13 Tom Tromey <tom@tromey.com>
8984
8985 * valprint.c (do_val_print): New function, from val_print.
8986 (val_print): Use do_val_print.
8987 (common_val_print): Use do_val_print.
8988
8989 2020-03-13 Tom Tromey <tom@tromey.com>
8990
8991 * valprint.c (value_print): Use scoped_value_mark.
8992
8993 2020-03-13 Tom de Vries <tdevries@suse.de>
8994
8995 PR symtab/25646
8996 * psymtab.c (partial_symtab::partial_symtab): Don't set
8997 globals_offset and statics_offset. Push element onto
8998 current_global_psymbols and current_static_psymbols stacks.
8999 (concat): New function.
9000 (end_psymtab_common): Set globals_offset and statics_offset. Pop
9001 element from current_global_psymbols and current_static_psymbols
9002 stacks. Concat popped elements to global_psymbols and
9003 static_symbols.
9004 (add_psymbol_to_list): Use current_global_psymbols and
9005 current_static_psymbols stacks.
9006 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
9007 current_static_psymbols fields.
9008
9009 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9010
9011 * corelow.c (sniff_core_bfd): Remove.
9012 (class core_target) <m_core_vec>: Remove.
9013 (core_target::core_target): Update.
9014 (core_file_fns): Remove.
9015 (deprecated_add_core_fns): Remove.
9016 (default_core_sniffer): Remove.
9017 (sniff_core_bfd): Remove.
9018 (default_check_format): Remove.
9019 (gdb_check_format): Remove.
9020 (core_target_open): Update.
9021 (core_target::get_core_register_section): Update.
9022 (get_core_registers_cb): Update.
9023 (core_target::fetch_registers): Update.
9024 * gdbcore.h (struct core_fns): Remove.
9025 (deprecated_add_core_fns): Remove.
9026 (default_core_sniffer): Remove.
9027 (default_check_format): Remove.
9028
9029 2020-03-12 Tom Tromey <tom@tromey.com>
9030
9031 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9032 CORE_ADDR.
9033 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9034
9035 2020-03-12 Tom Tromey <tom@tromey.com>
9036
9037 * remote.c (remote_target::download_tracepoint)
9038 (remote_target::enable_tracepoint)
9039 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9040 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9041 sprintf_vma.
9042
9043 2020-03-12 Tom Tromey <tom@tromey.com>
9044
9045 * symfile-mem.c: Update CORE_ADDR size assert.
9046
9047 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9048
9049 * selftest.m4: Move to gdbsupport/.
9050 * acinclude.m4: Update path to selftest.m4.
9051
9052 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9053
9054 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9055 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9056 gdbarch-selfselftests.c and selftest-arch.c.
9057 (SUBDIR_UNITTESTS_OBS): Rename to...
9058 (SELFTESTS_OBS): ... this.
9059 (COMMON_SFILES): Remove disasm-selftests.c and
9060 gdbarch-selftests.c.
9061 * configure.ac: Don't add selftest-arch.{c,o} to
9062 CONFIG_{SRCS,OBS}.
9063 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9064 preprocessor conditions.
9065
9066 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9067
9068 * configure.ac: Don't source bfd/development.sh.
9069 * selftest.m4: Modify comment.
9070 * configure: Re-generate.
9071
9072 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9073
9074 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9075 not "true" or "false".
9076 * configure: Re-generate.
9077
9078 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9079
9080 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9081 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9082 renamed to arm_nbsd_supply_gregset.
9083 (fetch_register): Update to call arm_nbsd_supply_gregset.
9084 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9085 (arm_netbsd_nat_target::fetch_registers): Update.
9086 (fetch_elfcore_registers): Removed.
9087 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9088 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9089 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9090 not require NetBSD system headers.
9091 (arm_nbsd_regset): New struct.
9092 (arm_nbsd_iterate_over_regset_sections): New function.
9093 (arm_netbsd_init_abi_common): Updated to call
9094 set_gdbarch_iterate_over_regset_sections.
9095 * arm-nbsd-tdep.h: New file.
9096
9097 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9098
9099 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9100 recursion.
9101
9102 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9103
9104 * configure: Re-generate.
9105
9106 2020-03-11 Tom Tromey <tromey@adacore.com>
9107
9108 * ada-typeprint.c (print_choices): Fix comment.
9109
9110 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9111
9112 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9113 previous item in the list, when the list has no items.
9114
9115 2020-03-11 Tom de Vries <tdevries@suse.de>
9116
9117 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9118 PROP_LOCLIST handling code.
9119
9120 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9121
9122 * buildsym-legacy.c (record_line): Pass extra parameter to
9123 record_line.
9124 * buildsym.c (buildsym_compunit::record_line): Take an extra
9125 parameter, reduce duplication in the line table, and record the
9126 is_stmt flag in the line table.
9127 * buildsym.h (buildsym_compunit::record_line): Add extra
9128 parameter.
9129 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9130 non-statement lines.
9131 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9132 this to the symtab builder.
9133 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9134 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9135 through to dwarf_record_line_1.
9136 * infrun.c (process_event_stop_test): When stepping, don't stop at
9137 a non-statement instruction, and only refresh the step info when
9138 we land in the middle of a line's range. Also add an extra
9139 comment.
9140 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9141 field.
9142 * record-btrace.c (btrace_find_line_range): Only record lines
9143 marked as is-statement.
9144 * stack.c (frame_show_address): Show the frame address if we are
9145 in a non-statement sal.
9146 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9147 (maintenance_print_one_line_table): Print a header for the is_stmt
9148 column, and include is_stmt information in the output.
9149 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9150 preference to non-statements.
9151 (find_pcs_for_symtab_line): Prefer is-statement entries.
9152 (find_line_common): Likewise.
9153 * symtab.h (struct linetable_entry): Add is_stmt field.
9154 (struct symtab_and_line): Likewise.
9155 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9156 arranging the line table.
9157
9158 2020-03-07 Tom de Vries <tdevries@suse.de>
9159
9160 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9161 DIE.
9162
9163 2020-03-07 Tom Tromey <tom@tromey.com>
9164
9165 * valops.c (value_literal_complex): Remove obsolete comment.
9166 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9167 comment.
9168
9169 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9170
9171 * infrun.h: Forward-declare thread_info.
9172 (set_step_info): Add thread_info parameter, add doc.
9173 * infrun.c (set_step_info): Add thread_info parameter, move doc
9174 to header.
9175 * infrun.c (process_event_stop_test): Pass thread to
9176 set_step_info call.
9177 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9178 set_step_info.
9179 (prepare_one_step): Add thread_info parameter, pass it to
9180 set_step_frame and prepare_one_step (recursive) call.
9181 (step_1): Pass thread to prepare_one_step call.
9182 (step_command_fsm::should_stop): Pass thread to
9183 prepare_one_step.
9184 (until_next_fsm): Pass thread to set_step_frame call.
9185 (finish_command): Pass thread to set_step_info call.
9186
9187 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9188
9189 * windows-tdep.c (windows_solib_create_inferior_hook):
9190 Check if inferior is running.
9191
9192 2020-03-06 Tom de Vries <tdevries@suse.de>
9193
9194 * NEWS: Fix "the the".
9195 * ctfread.c: Same.
9196
9197 2020-03-06 Tom de Vries <tdevries@suse.de>
9198
9199 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9200
9201 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9202
9203 * .dir-locals.el: Add a comment referencing the other copies of
9204 this file.
9205
9206 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9207
9208 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9209 psargs.
9210
9211 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9212
9213 * .gitattributes: New file.
9214
9215 2020-03-04 Tom Tromey <tom@tromey.com>
9216
9217 * symmisc.c (print_symbol_bcache_statistics)
9218 (print_objfile_statistics): Update.
9219 * symfile.c (allocate_symtab): Use intern.
9220 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9221 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9222 macro_cache>: Remove.
9223 <string_cache>: New member.
9224 (struct objfile) <intern>: New methods.
9225 * elfread.c (elf_symtab_read): Use intern.
9226 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9227 (dwarf2_compute_name, dwarf2_physname)
9228 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9229 names.
9230 (guess_partial_die_structure_name): Update.
9231 (partial_die_info::fixup): Intern name.
9232 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9233 name.
9234 (dwarf2_name): Intern name. Update.
9235 * buildsym.c (buildsym_compunit::get_macro_table): Use
9236 string_cache.
9237
9238 2020-03-04 Tom Tromey <tom@tromey.com>
9239
9240 * jit.c (bfd_open_from_target_memory): Make "target" const.
9241 * corefile.c (gnutarget): Now const.
9242 * gdbcore.h (gnutarget): Now const.
9243
9244 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9245
9246 * NEWS: Mention support for WOW64 processes.
9247 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9248 (amd64_windows_segment_register_p): Remove static.
9249 (_initialize_amd64_windows_nat): Update.
9250 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9251 * i386-windows-nat.c (context_offset): Update.
9252 (i386_mappings): Rename and remove static.
9253 (i386_windows_segment_register_p): Remove static.
9254 (_initialize_i386_windows_nat): Update.
9255 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9256 (STATUS_WX86_SINGLE_STEP): New macro.
9257 (EnumProcessModulesEx): New macro.
9258 (Wow64SuspendThread): New macro.
9259 (Wow64GetThreadContext): New macro.
9260 (Wow64SetThreadContext): New macro.
9261 (Wow64GetThreadSelectorEntry): New macro.
9262 (windows_set_context_register_offsets): Add static.
9263 (windows_set_segment_register_p): Likewise.
9264 (windows_add_thread): Adapt for WOW64 processes.
9265 (windows_fetch_one_register): Likewise.
9266 (windows_nat_target::fetch_registers): Likewise.
9267 (windows_store_one_register): Likewise.
9268 (display_selector): Likewise.
9269 (display_selectors): Likewise.
9270 (handle_exception): Likewise.
9271 (windows_continue): Likewise.
9272 (windows_nat_target::resume): Likewise.
9273 (windows_add_all_dlls): Likewise.
9274 (do_initial_windows_stuff): Likewise.
9275 (windows_nat_target::attach): Likewise.
9276 (windows_get_exec_module_filename): Likewise.
9277 (windows_nat_target::create_inferior): Likewise.
9278 (windows_xfer_siginfo): Likewise.
9279 (_initialize_loadable): Initialize Wow64SuspendThread,
9280 Wow64GetThreadContext, Wow64SetThreadContext,
9281 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9282 * windows-nat.h (windows_set_context_register_offsets):
9283 Remove declaration.
9284 (windows_set_segment_register_p): Likewise.
9285 (i386_windows_segment_register_p): Add declaration.
9286 (amd64_windows_segment_register_p): Likewise.
9287
9288 2020-03-04 Luis Machado <luis.machado@linaro.org>
9289
9290 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9291 in "info registers" for AArch64/ARM.
9292
9293 The change caused "info registers" to not print GPR's.
9294
9295 gdb/ChangeLog:
9296
9297 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9298
9299 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9300 when reg->group is empty and reggroup is not.
9301
9302 2020-03-03 Tom Tromey <tromey@adacore.com>
9303
9304 * dwarf2/frame.c (struct dwarf2_frame_cache)
9305 <checked_tailcall_bottom, entry_cfa_sp_offset,
9306 entry_cfa_sp_offset_p>: Remove members.
9307 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9308 (dwarf2_frame_prev_register): Don't call
9309 dwarf2_tailcall_sniffer_first.
9310 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9311 * frame-unwind.c (add_unwinder): New fuction.
9312 (frame_unwind_init): Use it. Add tailcall unwinder.
9313
9314 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9315 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9316
9317 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9318 value should be printed as true.
9319
9320 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9321
9322 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9323 (windows_init_abi): Set and use windows_so_ops.
9324
9325 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9326
9327 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9328 when verifying if dealing with a convenience variable.
9329
9330 2020-03-03 Luis Machado <luis.machado@linaro.org>
9331
9332 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9333
9334 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9335
9336 * infrun.c (gdbarch_supports_displaced_stepping): New.
9337 (use_displaced_stepping): Break up conditions in smaller pieces.
9338 Use gdbarch_supports_displaced_stepping.
9339 (displaced_step_prepare_throw): Use
9340 gdbarch_supports_displaced_stepping.
9341
9342 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9343
9344 * NEWS: Mention new behaviour of the history filename.
9345 * top.c (write_history_p): Add comment.
9346 (show_write_history_p): Add header comment, give a different
9347 message when history writing is on, but the history filename is
9348 empty.
9349 (history_filename): Add comment.
9350 (history_filename_empty): New function.
9351 (show_history_filename): Add header comment, give a different
9352 message when the filename is empty.
9353 (init_history): Compare history_filename against nullptr, and only
9354 read history if the filename is not empty.
9355 (set_history_filename): Add header comment, and only make
9356 non-empty filenames absolute.
9357 (init_main): Make the filename argument to 'set history filename'
9358 optional.
9359
9360 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9361
9362 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9363 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9364 (fetch_fp_register): Update.
9365 (fetch_fp_regs): Update.
9366 (store_fp_register): Update.
9367 (store_fp_regs): Update.
9368 (arm_netbsd_nat_target::read_description): New function.
9369 (fetch_elfcore_registers): Update.
9370
9371 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9372
9373 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9374 general_thread if the stop reply is missing a thread-id.
9375 (remote_target::process_stop_reply): Use the first non-exited
9376 thread if the target didn't pass a thread-id.
9377 * infrun.c (do_target_wait): Move call to
9378 switch_to_inferior_no_thread to ....
9379 (do_target_wait_1): ... here.
9380
9381 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9382
9383 * debuginfod-support.c: Include defs.h first.
9384
9385 2020-02-28 Tom de Vries <tdevries@suse.de>
9386
9387 * symfile.c (set_initial_language): Use default language for lookup.
9388
9389 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9390
9391 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9392 reader variable, pass `this` to read_cutu_die_from_dwo.
9393
9394 2020-02-27 Aaron Merey <amerey@redhat.com>
9395
9396 * source.c (open_source_file): Check for nullptr when computing
9397 srcpath.
9398
9399 2020-02-27 Tom Tromey <tromey@adacore.com>
9400
9401 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9402 member.
9403 (dwarf2_add_field): Don't update nfields.
9404 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9405
9406 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9407
9408 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9409 abs.
9410
9411 2020-02-26 Tom Tromey <tom@tromey.com>
9412
9413 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9414 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9415 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9416 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9417 per_cu_data.
9418
9419 2020-02-26 Tom Tromey <tom@tromey.com>
9420
9421 * dwarf2/index-write.c (psym_index_map): Change type.
9422 (add_address_entry_worker, write_one_signatured_type)
9423 (recursively_count_psymbols, recursively_write_psymbols)
9424 (class debug_names, psyms_seen_size, write_gdbindex)
9425 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9426
9427 2020-02-26 Aaron Merey <amerey@redhat.com>
9428
9429 * Makefile.in: Handle optional debuginfod support.
9430 * NEWS: Update.
9431 * README: Add --with-debuginfod summary.
9432 * config.in: Regenerate.
9433 * configure: Regenerate.
9434 * configure.ac: Handle optional debuginfod support.
9435 * debuginfod-support.c: debuginfod helper functions.
9436 * debuginfod-support.h: Ditto.
9437 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9438 summary.
9439 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9440 when a dwz file cannot be found.
9441 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9442 debuginfo file cannot be found.
9443 * source.c (open_source_file): Query debuginfod servers when a
9444 source file cannot be found.
9445 * top.c (print_gdb_configuration): Include
9446 --{with,without}-debuginfod in the output.
9447
9448 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9449
9450 * thread.c (thr_try_catch_cmd): Print thread name.
9451
9452 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9453
9454 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9455 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9456 dwarf2_fetch_die_type_sect_off): Move to...
9457 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9458 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9459 dwarf2_fetch_die_type_sect_off): ... here.
9460 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9461 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9462 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9463
9464 2020-02-26 Tom de Vries <tdevries@suse.de>
9465
9466 PR gdb/25603
9467 * symfile.c (set_initial_language): Exit-early if
9468 language_mode == language_mode_manual.
9469
9470 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9471
9472 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9473 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9474 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9475
9476 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9477
9478 * gdbtypes.c (create_array_type_with_stride): Handle negative
9479 array strides.
9480 * valarith.c (value_subscripted_rvalue): Likewise.
9481
9482 2020-02-25 Luis Machado <luis.machado@linaro.org>
9483
9484 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9485
9486 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9487
9488 * loc.h (dwarf2_get_die_type): Move to...
9489 * read.h (dwarf2_get_die_type): ... here.
9490 * read.c (dwarf2_get_die_type): Move doc to header.
9491
9492 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9493
9494 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9495 'gnulib/Makefile.in' to the list.
9496
9497 2020-02-24 Tom Tromey <tom@tromey.com>
9498
9499 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9500 Remove.
9501 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9502 XOBNEWVEC.
9503
9504 2020-02-24 Tom Tromey <tom@tromey.com>
9505
9506 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9507 New method.
9508 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9509 (dw2_do_instantiate_symtab, dw2_get_file_names)
9510 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9511
9512 2020-02-24 Tom Tromey <tom@tromey.com>
9513
9514 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9515 make_scoped_restore.
9516 (dwarf2_psymtab::read_symtab): Don't clear
9517 reading_partial_symbols.
9518
9519 2020-02-24 Tom de Vries <tdevries@suse.de>
9520
9521 PR gdb/25592
9522 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9523
9524 2020-02-24 Tom de Vries <tdevries@suse.de>
9525
9526 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9527 commands layout next/prev/regs.
9528
9529 2020-02-22 Tom Tromey <tom@tromey.com>
9530
9531 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9532 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9533
9534 2020-02-22 Tom Tromey <tom@tromey.com>
9535
9536 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9537
9538 2020-02-22 Tom Tromey <tom@tromey.com>
9539
9540 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9541 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9542 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9543 * tui/tui.c (_initialize_tui): Add usage text.
9544
9545 2020-02-22 Tom Tromey <tom@tromey.com>
9546
9547 * tui/tui-win.c (tui_set_focus_command)
9548 (tui_set_win_height_command): Use error_no_arg.
9549 (_initialize_tui_win): Update help text.
9550 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9551
9552 2020-02-22 Tom Tromey <tom@tromey.com>
9553
9554 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9555 * tui/tui-disasm.h (struct tui_disasm_window)
9556 <display_start_addr>: Declare.
9557 * tui/tui-source.h (struct tui_source_window)
9558 <display_start_addr>: Declare.
9559 * tui/tui-winsource.h (struct tui_source_window_base)
9560 <show_source_line, display_start_addr>: New methods.
9561 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9562 Rename and move to protected section.
9563 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9564 (tui_source_window_base::do_erase_source_content): Update.
9565 (tui_source_window_base::show_source_line): Now a method.
9566 (tui_source_window_base::show_source_content)
9567 (tui_source_window_base::tui_source_window_base)
9568 (tui_source_window_base::rerender)
9569 (tui_source_window_base::refill)
9570 (tui_source_window_base::do_scroll_horizontal)
9571 (tui_source_window_base::set_is_exec_point_at)
9572 (tui_source_window_base::update_breakpoint_info)
9573 (tui_source_window_base::update_exec_info): Update.
9574 * tui/tui-source.c (tui_source_window::set_contents)
9575 (tui_source_window::showing_source_p)
9576 (tui_source_window::do_scroll_vertical)
9577 (tui_source_window::location_matches_p)
9578 (tui_source_window::line_is_displayed): Update.
9579 (tui_source_window::display_start_addr): New method.
9580 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9581 (tui_disasm_window::do_scroll_vertical)
9582 (tui_disasm_window::location_matches_p): Update.
9583 (tui_disasm_window::display_start_addr): New method.
9584
9585 2020-02-22 Tom Tromey <tom@tromey.com>
9586
9587 * NEWS: Add entry for gdb.register_window_type.
9588 * tui/tui-layout.h (window_factory): New typedef.
9589 (tui_register_window): Declare.
9590 * tui/tui-layout.c (saved_tui_windows): New global.
9591 (tui_apply_current_layout): Use it.
9592 (tui_register_window): New function.
9593 * python/python.c (do_start_initialization): Call
9594 gdbpy_initialize_tui.
9595 (python_GdbMethods): Add "register_window_type" function.
9596 * python/python-internal.h (gdbpy_register_tui_window)
9597 (gdbpy_initialize_tui): Declare.
9598 * python/py-tui.c: New file.
9599 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9600
9601 2020-02-22 Tom Tromey <tom@tromey.com>
9602
9603 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9604
9605 2020-02-22 Tom Tromey <tom@tromey.com>
9606
9607 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9608 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9609 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9610 (tui_set_win_focus_to): Move from tui-win.c.
9611
9612 2020-02-22 Tom Tromey <tom@tromey.com>
9613
9614 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9615 functions.
9616 (known_window_types): New global.
9617 (tui_get_window_by_name): Reimplement.
9618 (initialize_known_windows): New function.
9619 (validate_window_name): Rewrite.
9620 (_initialize_tui_layout): Call initialize_known_windows.
9621
9622 2020-02-22 Tom Tromey <tom@tromey.com>
9623
9624 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9625 Remove constants.
9626 * tui/tui-winsource.h (struct tui_source_window_base)
9627 <tui_source_window_base>: Remove parameter.
9628 * tui/tui-winsource.c
9629 (tui_source_window_base::tui_source_window_base): Remove
9630 parameter.
9631 (tui_source_window_base::refill): Update.
9632 * tui/tui-stack.h (struct tui_locator_window)
9633 <tui_locator_window>: Update.
9634 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9635 Default the constructor.
9636 * tui/tui-regs.h (struct tui_data_item_window)
9637 <tui_data_item_window>: Default the constructor.
9638 (struct tui_data_window) <tui_data_window>: Likewise.
9639 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9640 Default the constructor.
9641 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9642 Default the constructor.
9643 <type>: Remove.
9644 (struct tui_win_info) <tui_win_info>: Default the constructor.
9645 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9646 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9647 Default the constructor.
9648
9649 2020-02-22 Tom Tromey <tom@tromey.com>
9650
9651 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9652 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9653 * tui/tui-win.c (tui_resize_all): Don't call
9654 tui_delete_invisible_windows.
9655 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9656 done.
9657 (tui_set_layout): Update.
9658 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9659 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9660 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9661
9662 2020-02-22 Tom Tromey <tom@tromey.com>
9663
9664 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9665 correctly.
9666
9667 2020-02-22 Tom Tromey <tom@tromey.com>
9668
9669 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9670
9671 2020-02-22 Tom Tromey <tom@tromey.com>
9672
9673 * tui/tui-winsource.h (struct tui_source_window_iterator)
9674 <inner_iterator>: New etytypedef.
9675 <tui_source_window_iterator>: Take "end" parameter.
9676 <tui_source_window_iterator>: Take iterator.
9677 <operator*, advance>: Update.
9678 <m_iter>: Change type.
9679 <m_end>: New field.
9680 (struct tui_source_windows) <begin, end>: Update.
9681 * tui/tui-layout.c (tui_windows): New global.
9682 (tui_apply_current_layout): Clear tui_windows.
9683 (tui_layout_window::apply): Update tui_windows.
9684 * tui/tui-data.h (tui_windows): Declare.
9685 (all_tui_windows): Now inline function.
9686 (class tui_window_iterator, struct all_tui_windows): Remove.
9687
9688 2020-02-22 Tom Tromey <tom@tromey.com>
9689
9690 PR tui/17850:
9691 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9692 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9693 "height" argument.
9694 (class tui_layout_window) <get_sizes>: Likewise.
9695 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9696 argument.
9697 <get_sizes>: Add "height" argument.
9698 <m_vertical>: New field.
9699 * tui/tui-layout.c (tui_layout_split::clone): Update.
9700 (tui_layout_split::get_sizes): Add "height" argument.
9701 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9702 (tui_new_layout_command): Parse "-horizontal".
9703 (_initialize_tui_layout): Update help string.
9704 (tui_layout_split::specification): Add "-horizontal" when needed.
9705 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9706 argument.
9707 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9708 New methods.
9709
9710 2020-02-22 Tom Tromey <tom@tromey.com>
9711
9712 * tui/tui-layout.h (enum tui_adjust_result): New.
9713 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9714 (class tui_layout_window) <adjust_size>: Return
9715 tui_adjust_result. Rewrite.
9716 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9717 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9718
9719 2020-02-22 Tom Tromey <tom@tromey.com>
9720
9721 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9722 parameter and return types.
9723 (class tui_layout_base) <specification>: Add "depth".
9724 (class tui_layout_window) <specification>: Add "depth".
9725 (class tui_layout_split) <specification>: Add "depth".
9726 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9727 and return types.
9728 (tui_new_layout_command): Parse sub-layouts.
9729 (_initialize_tui_layout): Update help string.
9730 (tui_layout_window::specification): Add "depth".
9731 (add_layout_command): Update.
9732
9733 2020-02-22 Tom Tromey <tom@tromey.com>
9734
9735 * NEWS: Add "tui new-layout" item.
9736 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9737 Add new-layout command to help text.
9738 (validate_window_name): New function.
9739 (tui_new_layout_command): New function.
9740 (_initialize_tui_layout): Register "new-layout".
9741 (tui_layout_window::specification): New method.
9742 (tui_layout_window::specification): New method.
9743 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9744 method.
9745 (class tui_layout_window) <specification>: New method.
9746 (class tui_layout_split) <specification>: New method.
9747
9748 2020-02-22 Tom Tromey <tom@tromey.com>
9749
9750 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9751 * tui/tui-win.c (window_name_completer): Update comment.
9752 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9753 Declare method.
9754 (class tui_layout_window) <replace_window>: Likewise.
9755 (class tui_layout_split) <replace_window>: Likewise.
9756 (tui_set_layout): Don't declare.
9757 (tui_set_initial_layout): Declare function.
9758 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9759 (asm_regs_layout): New globals.
9760 (tui_current_layout, show_layout): Remove.
9761 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9762 (find_layout, tui_apply_layout): New function.
9763 (layout_completer): Remove.
9764 (tui_next_layout): Reimplement.
9765 (tui_next_layout_command): New function.
9766 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9767 (tui_regs_layout): Reimplement.
9768 (tui_regs_layout_command): New function.
9769 (extract_display_start_addr): Rewrite.
9770 (next_layout, prev_layout): Remove.
9771 (tui_layout_window::replace_window): New method.
9772 (tui_layout_split::replace_window): New method.
9773 (destroy_layout): New function.
9774 (layout_list): New global.
9775 (add_layout_command): New function.
9776 (initialize_layouts): Update.
9777 (tui_layout_command): New function.
9778 (_initialize_tui_layout): Install "layout" commands.
9779 * tui/tui-data.h (enum tui_layout_type): Remove.
9780 (tui_current_layout): Don't declare.
9781
9782 2020-02-22 Tom Tromey <tom@tromey.com>
9783
9784 * tui/tui-regs.c (tui_reg_layout): Remove.
9785 (tui_reg_command): Use tui_regs_layout.
9786 * tui/tui-layout.h (tui_reg_command): Declare.
9787 * tui/tui-layout.c (tui_reg_command): New function.
9788
9789 2020-02-22 Tom Tromey <tom@tromey.com>
9790
9791 * tui/tui.c (tui_rl_delete_other_windows): Call
9792 tui_remove_some_windows.
9793 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9794 Declare method.
9795 (class tui_layout_window) <remove_windows>: New method.
9796 (class tui_layout_split) <remove_windows>: Declare.
9797 (tui_remove_some_windows): Declare.
9798 * tui/tui-layout.c (tui_remove_some_windows): New function.
9799 (tui_layout_split::remove_windows): New method.
9800
9801 2020-02-22 Tom Tromey <tom@tromey.com>
9802
9803 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9804 * tui/tui-layout.h (tui_next_layout): Declare.
9805 * tui/tui-layout.c (tui_next_layout): New function.
9806
9807 2020-02-22 Tom Tromey <tom@tromey.com>
9808
9809 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9810 correct coordinates.
9811
9812 2020-02-22 Tom Tromey <tom@tromey.com>
9813
9814 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9815 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9816 DATA_WIN case.
9817
9818 2020-02-22 Tom Tromey <tom@tromey.com>
9819
9820 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9821 TUI_DISASM_WIN, not tui_win_list.
9822
9823 2020-02-22 Tom Tromey <tom@tromey.com>
9824
9825 * valprint.c (generic_val_print_enum_1)
9826 (val_print_type_code_flags): Style member names.
9827 * rust-lang.c (val_print_struct, rust_print_enum)
9828 (rust_print_struct_def, rust_internal_print_type): Style member
9829 names.
9830 * p-valprint.c (pascal_object_print_value_fields): Style member
9831 names. Only call fprintf_symbol_filtered for static members.
9832 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9833 * f-valprint.c (f_val_print): Style member names.
9834 * f-typeprint.c (f_type_print_base): Style member names.
9835 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9836 call fprintf_symbol_filtered for static members.
9837 (cp_print_class_member): Style member names.
9838 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9839 member names.
9840 * ada-valprint.c (ada_print_scalar): Style enum names.
9841 (ada_val_print_enum): Likewise.
9842 * ada-typeprint.c (print_enum_type): Style enum names.
9843
9844 2020-02-21 Tom Tromey <tom@tromey.com>
9845
9846 * psympriv.h (struct partial_symtab): Update comment.
9847
9848 2020-02-21 Tom Tromey <tromey@adacore.com>
9849
9850 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9851 type is CORE_ADDR.
9852
9853 2020-02-21 Tom de Vries <tdevries@suse.de>
9854
9855 PR gdb/25534
9856 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9857 if dependencies[i]->user != NULL.
9858
9859 2020-02-21 Ali Tamur <tamur@google.com>
9860
9861 * dwarf2/read.c (dwarf2_name): Add null check.
9862
9863 2020-02-20 Tom Tromey <tom@tromey.com>
9864
9865 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9866 ">=", in binary search.
9867 (dwarf2_find_containing_comp_unit): New overload.
9868 (run_test): New self-test.
9869 (_initialize_dwarf2_read): Register new test.
9870
9871 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9872
9873 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9874 * riscv-tdep.h: Likewise.
9875 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9876 rv32-only CSR.
9877 * features/riscv/64bit-csr.xml: Regenerated.
9878
9879 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9880 Tom Tromey <tom@tromey.com>
9881
9882 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9883 of 'fputc_unfiltered'.
9884 (putchar_unfiltered): Call 'fputc_unfiltered'.
9885 (fputc_unfiltered): Call 'fputs_unfiltered'.
9886
9887 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9888
9889 * config.in: Regenerate.
9890 * configure: Regenerate.
9891 * configure.ac: Add --with-python-libdir option.
9892 * main.c: Use WITH_PYTHON_LIBDIR.
9893
9894 2020-02-19 Tom Tromey <tom@tromey.com>
9895
9896 * symtab.c (general_symbol_info::compute_and_set_names): Use
9897 obstack_strndup. Simplify call to symbol_set_demangled_name.
9898
9899 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9900
9901 * dwarf2/read.c (allocate_signatured_type_table,
9902 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9903 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9904 Remove objfile parameter, update all callers.
9905
9906 2020-02-19 Doug Evans <dje@google.com>
9907
9908 PR rust/25535
9909 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9910 rust_enum_variant calculation.
9911
9912 2020-02-19 Tom Tromey <tromey@adacore.com>
9913
9914 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9915
9916 2020-02-19 Tom Tromey <tromey@adacore.com>
9917
9918 * ada-lang.c (cache_symbol): Use obstack_strdup.
9919
9920 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9921
9922 * configure: Regenerate.
9923
9924 2020-02-19 Tom Tromey <tromey@adacore.com>
9925
9926 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9927 NULL check.
9928
9929 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9930
9931 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9932
9933 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9934
9935 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9936 if GDBSERVER is not defined.
9937 (riscv_tdesc_cache): Likewise, also store const target_desc.
9938 (STATIC_IN_GDB): Define.
9939 (riscv_create_target_description): Update declaration with
9940 STATIC_IN_GDB.
9941 (riscv_lookup_target_description): New function, only define if
9942 GDBSERVER is not defined.
9943 * arch/riscv.h (riscv_create_target_description): Declare only
9944 when GDBSERVER is defined.
9945 (riscv_lookup_target_description): New declaration when GDBSERVER
9946 is not defined.
9947 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9948 (riscv_linux_read_features): ...this, and return
9949 riscv_gdbarch_features instead of target_desc.
9950 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9951 (riscv_linux_read_description): Rename to...
9952 (riscv_linux_read_features): ...this.
9953 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9954 Update to use riscv_gdbarch_features and
9955 riscv_lookup_target_description.
9956 * riscv-tdep.c (riscv_find_default_target_description): Use
9957 riscv_lookup_target_description instead of
9958 riscv_create_target_description.
9959
9960 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9961
9962 * valprint.c (generic_val_print_enum_1): When printing a flag
9963 enum with value 0 and there is no enumerator with value 0, print
9964 just "0" instead of "(unknown: 0x0)".
9965
9966 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9967
9968 * valprint.c (generic_val_print_enum_1): Print unknown part of
9969 flag enum in hex.
9970
9971 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9972
9973 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9974 flag enums to contain duplicate enumerators.
9975 * valprint.c (generic_val_print_enum_1): Update comment.
9976
9977 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9978
9979 * dwarf2/read.c: Include "count-one-bits.h".
9980 (update_enumeration_type_from_children): If an enumerator has
9981 multiple bits set, don't treat the enumeration as a "flag enum".
9982 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9983 of flag enums have 0 or 1 bit set.
9984
9985 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9986
9987 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9988 conversion.
9989 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9990 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9991 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9992 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9993 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9994
9995 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9996
9997 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9998
9999 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10000
10001 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
10002 displaced_step_closure_up.
10003 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10004 (struct displaced_step_closure_up):
10005 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10006 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10007 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
10008 Likewise.
10009 * gdbarch.sh (displaced_step_copy_insn): Likewise.
10010 * gdbarch.c, gdbarch.h: Re-generate.
10011 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
10012 displaced_step_closure_up.
10013 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10014 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10015 * infrun.h (displaced_step_closure_up): New type alias.
10016 (struct displaced_step_inferior_state) <step_closure>: Change
10017 type to displaced_step_closure_up.
10018 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10019 displaced_step_closure_up.
10020 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10021
10022 2020-02-14 Tom Tromey <tom@tromey.com>
10023
10024 * minidebug.c (gnu_debug_key): New global.
10025 (find_separate_debug_file_in_section): Use it.
10026
10027 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10028
10029 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10030 std::unique_ptr.
10031 * gdbarch.c: Re-generate.
10032 * gdbarch.h: Re-generate.
10033 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10034 change.
10035 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10036 type to std::unique_ptr.
10037 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10038 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10039 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10040 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10041 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10042 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10043 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10044 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10045 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10046
10047 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10048
10049 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10050 std::unique_ptr.
10051 (displaced_step_clear): Rename to...
10052 (displaced_step_reset): ... this. Just call displaced->reset ().
10053 (displaced_step_clear_cleanup): Rename to...
10054 (displaced_step_reset_cleanup): ... this.
10055 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10056 (displaced_step_fixup): Likewise.
10057 (resume_1): Likewise.
10058 (handle_inferior_event): Restore child's memory before calling
10059 displaced_step_fixup on the parent.
10060 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10061 to std::unique_ptr.
10062 <step_closure>: Change type to std::unique_ptr.
10063
10064 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10065
10066 * arm-tdep.c: Include count-one-bits.h.
10067 (cleanup_block_store_pc): Use count_one_bits.
10068 (cleanup_block_load_pc): Use count_one_bits.
10069 (arm_copy_block_xfer): Use count_one_bits.
10070 (thumb2_copy_block_xfer): Use count_one_bits.
10071 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10072 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10073 (thumb_get_next_pcs_raw): Use count_one_bits.
10074 (arm_get_next_pcs_raw): Use count_one_bits_l.
10075 * arch/arm.c (bitcount): Remove.
10076 * arch/arm.h (bitcount): Remove.
10077
10078 2020-02-14 Tom Tromey <tromey@adacore.com>
10079
10080 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10081 Update.
10082 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10083 * dwarf2/loc.c (call_site_find_chain_1): Return
10084 unique_xmalloc_ptr.
10085 (call_site_find_chain): Likewise.
10086
10087 2020-02-14 Richard Biener <rguenther@suse.de>
10088
10089 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10090 on expression with division operators.
10091
10092 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10093
10094 * MAINTAINERS (Write After Approval): Adding myself.
10095
10096 2020-02-12 Tom Tromey <tom@tromey.com>
10097
10098 * event-loop.c (event_data, gdb_event, event_handler_func):
10099 Remove.
10100
10101 2020-02-12 Tom Tromey <tom@tromey.com>
10102
10103 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10104 (dwarf2_frame_objfile_data): Add comment.
10105 (find_comp_unit, set_comp_unit): New functions.
10106 (dwarf2_frame_find_fde): Use find_comp_unit.
10107 (dwarf2_build_frame_info): Use set_comp_unit.
10108
10109 2020-02-12 Tom Tromey <tom@tromey.com>
10110
10111 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10112 (comp_unit): Don't initialize objfile.
10113 (execute_cfa_program): Add text_offset parameter.
10114 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10115 (dwarf2_frame_cache): Update.
10116 (dwarf2_build_frame_info): Don't set "objfile" member.
10117
10118 2020-02-12 Tom Tromey <tom@tromey.com>
10119
10120 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10121 (decode_frame_entry): Likewise.
10122 (dwarf2_build_frame_info): Update.
10123
10124 2020-02-12 Tom Tromey <tom@tromey.com>
10125
10126 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10127 (decode_frame_entry_1): Use the comp_unit obstack.
10128
10129 2020-02-12 Tom Tromey <tom@tromey.com>
10130
10131 * dwarf2/frame.c (struct comp_unit): Add initializers and
10132 constructor.
10133 (dwarf2_frame_objfile_data): Store a comp_unit.
10134 (dwarf2_frame_find_fde): Update.
10135 (dwarf2_build_frame_info): Use "new".
10136
10137 2020-02-12 Tom Tromey <tom@tromey.com>
10138
10139 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10140 (dwarf2_fde_table): Typedef for std::vector.
10141 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10142 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10143 (decode_frame_entry): Update.
10144 (dwarf2_build_frame_info): Use "new".
10145
10146 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10147
10148 * arm-tdep.c (arm_gdbarch_init): Update.
10149 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10150 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10151 have_neon, is_m>: Change to bool.
10152
10153 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10154
10155 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10156
10157 2020-02-12 Tom Tromey <tom@tromey.com>
10158
10159 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10160
10161 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10162
10163 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10164 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10165
10166 2020-02-11 Tom Tromey <tom@tromey.com>
10167
10168 * psymtab.h: Update comment.
10169
10170 2020-02-11 Tom Tromey <tom@tromey.com>
10171
10172 * gdb_obstack.h (struct auto_obstack): Use
10173 DISABLE_COPY_AND_ASSIGN.
10174
10175 2020-02-11 Tom Tromey <tom@tromey.com>
10176
10177 * dwarf2/frame.h (struct objfile): Don't forward declare.
10178
10179 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10180
10181 * cris-tdep.c (cris_supply_gregset): Change signature to match
10182 what struct regset expects.
10183 (cris_regset): New struct.
10184 (fetch_core_registers): Remove.
10185 (cris_iterate_over_regset_sections): New function.
10186 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10187 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10188
10189 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10190
10191 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10192 registers.
10193
10194 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10195
10196 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10197
10198 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10199
10200 * configure: Re-generate.
10201
10202 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10203
10204 * configure: Re-generate.
10205
10206 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10207
10208 * acinclude: Update warning.m4 path.
10209 * warning.m4: Move to gdbsupport.
10210
10211 2020-02-11 Tom Tromey <tromey@adacore.com>
10212
10213 * remote.c (remote_console_output): Update.
10214 * printcmd.c (printf_command): Update.
10215 * event-loop.c (gdb_wait_for_event): Update.
10216 * linux-nat.c (sigchld_handler): Update.
10217 * remote-sim.c (gdb_os_write_stdout): Update.
10218 (gdb_os_flush_stdout): Update.
10219 (gdb_os_flush_stderr): Update.
10220 (gdb_os_write_stderr): Update.
10221 * exceptions.c (print_exception): Update.
10222 * remote-fileio.c (remote_fileio_func_read): Update.
10223 (remote_fileio_func_write): Update.
10224 * tui/tui.c (tui_enable): Update.
10225 * tui/tui-interp.c (tui_interp::init): Update.
10226 * utils.c (init_page_info): Update.
10227 (putchar_unfiltered, fputc_unfiltered): Update.
10228 (gdb_flush): Update.
10229 (emit_style_escape): Update.
10230 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10231 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10232 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10233 (stderr_file::write): Update.
10234 (stderr_file::puts): Update.
10235 * ui-file.h (ui_file_isatty, ui_file_write)
10236 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10237 (ui_file_puts): Don't declare.
10238
10239 2020-02-10 Tom de Vries <tdevries@suse.de>
10240
10241 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10242 sentinel to char *.
10243
10244 2020-02-09 Tom de Vries <tdevries@suse.de>
10245
10246 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10247 filename if it matches "<artificial>".
10248
10249 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10250
10251 * windows-tdep.c (struct enum_value_name): New struct.
10252 (create_enum): New function.
10253 (windows_get_siginfo_type): Create and use enum types.
10254
10255 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10256
10257 * NEWS: Mention $_siginfo support for Windows.
10258 * windows-nat.c (handle_exception): Set siginfo_er.
10259 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10260 (windows_xfer_siginfo): New function.
10261 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10262 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10263 (init_windows_gdbarch_data): New function.
10264 (get_windows_gdbarch_data): New function.
10265 (windows_get_siginfo_type): New function.
10266 (windows_init_abi): Register windows_get_siginfo_type.
10267 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10268
10269 2020-02-08 Tom Tromey <tom@tromey.com>
10270
10271 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10272 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10273 <keep>: Declare method.
10274 <m_keep>: Remove member.
10275 <~cutu_reader>: Remove.
10276 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10277 (cutu_reader::cutu_reader): Update.
10278 (cutu_reader::keep): Rename from ~cutu_reader.
10279 (process_psymtab_comp_unit, build_type_psymtabs_1)
10280 (process_skeletonless_type_unit, load_partial_comp_unit)
10281 (load_full_comp_unit, dwarf2_read_addr_index)
10282 (read_signatured_type): Update.
10283
10284 2020-02-08 Tom Tromey <tom@tromey.com>
10285
10286 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10287 "want_partial_unit" parameter.
10288 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10289 Inline check for DW_TAG_partial_unit.
10290 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10291
10292 2020-02-08 Tom Tromey <tom@tromey.com>
10293
10294 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10295 read.c.
10296 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10297 read.c.
10298
10299 2020-02-08 Tom Tromey <tom@tromey.com>
10300
10301 * dwarf2/read.c (read_address): Move to comp-unit.c.
10302 (dwarf2_rnglists_process, dwarf2_ranges_process)
10303 (read_attribute_value, dwarf_decode_lines_1)
10304 (var_decode_location, decode_locdesc): Update.
10305 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10306 read.c. Remove "cu" parameter.
10307 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10308 method.
10309
10310 2020-02-08 Tom Tromey <tom@tromey.com>
10311
10312 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10313 (read_indirect_line_string): Update.
10314 * dwarf2/comp-unit.c (read_offset): Remove.
10315 (read_comp_unit_head): Update.
10316 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10317 method.
10318 (read_offset): Don't declare.
10319
10320 2020-02-08 Tom Tromey <tom@tromey.com>
10321
10322 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10323 * dwarf2/read.c (struct comp_unit_head): Move to
10324 dwarf2/comp-unit.h.
10325 (enum class rcuh_kind): Move to comp-unit.h.
10326 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10327 (read_comp_unit_head, error_check_comp_unit_head)
10328 (read_and_check_comp_unit_head): Move to comp-unit.c.
10329 (read_offset, dwarf_unit_type_name): Likewise.
10330 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10331 (cutu_reader::cutu_reader, read_call_site_scope)
10332 (find_partial_die, follow_die_offset): Update.
10333 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10334
10335 2020-02-08 Tom Tromey <tom@tromey.com>
10336
10337 * dwarf2/read.c (read_offset_1): Move to leb.c.
10338 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10339 (dwarf_decode_macro_bytes): Update.
10340 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10341 * dwarf2/leb.h (read_offset): Declare.
10342
10343 2020-02-08 Tom Tromey <tom@tromey.com>
10344
10345 * dwarf2/read.c (dwarf2_section_size): Remove.
10346 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10347 Update.
10348 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10349
10350 2020-02-08 Tom Tromey <tom@tromey.com>
10351
10352 * dwarf2/read.c (read_initial_length): Move to leb.c.
10353 * dwarf2/leb.h (read_initial_length): Declare.
10354 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10355 handle_nonstd parameter.
10356 * dwarf2/frame.c (read_initial_length): Remove.
10357 (decode_frame_entry_1): Update.
10358
10359 2020-02-08 Tom Tromey <tom@tromey.com>
10360
10361 * dwarf2/loc.c (dwarf2_find_location_expression)
10362 (dwarf_evaluate_loc_desc::get_tls_address)
10363 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10364 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10365 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10366 (dwarf2_compile_property_to_c)
10367 (dwarf2_loc_desc_get_symbol_read_needs)
10368 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10369 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10370 (loclist_describe_location, loclist_tracepoint_var_ref)
10371 (loclist_generate_c_location): Update.
10372 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10373 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10374 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10375 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10376 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10377 (dwarf2_per_cu_data::addr_size)
10378 (dwarf2_per_cu_data::ref_addr_size)
10379 (dwarf2_per_cu_data::text_offset)
10380 (dwarf2_per_cu_data::addr_type): Now methods.
10381 (per_cu_header_read_in): Make per_cu "const".
10382 (dwarf2_version): Remove.
10383 (dwarf2_per_cu_data::int_type): Now a method.
10384 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10385 (set_die_type, read_array_type, read_subrange_index_type)
10386 (read_tag_string_type, read_subrange_type): Update.
10387 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10388 offset_size, ref_addr_size, text_offset, addr_type, version,
10389 objfile, int_type, addr_sized_int_type>: Declare methods.
10390
10391 2020-02-08 Tom Tromey <tom@tromey.com>
10392
10393 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10394 Move earlier.
10395
10396 2020-02-08 Tom Tromey <tom@tromey.com>
10397
10398 * dwarf2/read.h (dwarf_line_debug): Declare.
10399 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10400 * dwarf2/read.c: Move line_header code to new files.
10401 (dwarf_line_debug): No longer static.
10402 * dwarf2/line-header.c: New file.
10403 * dwarf2/line-header.h: New file.
10404
10405 2020-02-08 Tom Tromey <tom@tromey.com>
10406
10407 * dwarf2/read.c (struct line_header) <file_full_name,
10408 file_file_name>: Return unique_xmalloc_ptr.
10409 (line_header::file_file_name): Update.
10410 (line_header::file_full_name): Update.
10411 (dw2_get_file_names_reader): Update.
10412 (macro_start_file): Update.
10413
10414 2020-02-08 Tom Tromey <tom@tromey.com>
10415
10416 * dwarf2/read.c (struct line_header) <file_full_name,
10417 file_file_name>: Declare methods.
10418 (dw2_get_file_names_reader): Update.
10419 (file_file_name): Now a method.
10420 (file_full_name): Likewise.
10421 (macro_start_file): Update.
10422
10423 2020-02-08 Tom Tromey <tom@tromey.com>
10424
10425 * dwarf2/read.c (dwarf_always_disassemble)
10426 (show_dwarf_always_disassemble): Move to loc.c.
10427 (_initialize_dwarf2_read): Move "always-disassemble" registration
10428 to loc.c.
10429 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10430 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10431 static.
10432 (show_dwarf_always_disassemble): Move from read.c.
10433 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10434
10435 2020-02-08 Tom Tromey <tom@tromey.com>
10436
10437 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10438 (create_quick_file_names_table): Return htab_up.
10439 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10440 Update.
10441 * dwarf2/read.h (struct dwarf2_per_objfile)
10442 <quick_file_names_table>: Now htab_up.
10443
10444 2020-02-08 Tom Tromey <tom@tromey.com>
10445
10446 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10447
10448 2020-02-08 Tom Tromey <tom@tromey.com>
10449
10450 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10451 Rewrite.
10452 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10453 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10454 (abbrev_table::abbrev_table): No longer inline.
10455 (ABBREV_HASH_SIZE): Remove.
10456 (abbrev_table::m_abbrevs): Now an htab_up.
10457
10458 2020-02-08 Tom Tromey <tom@tromey.com>
10459
10460 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10461 (cutu_reader): Update.
10462 (build_type_psymtabs_1): Update.
10463 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10464 (abbrev_table::alloc_abbrev): Update.
10465 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10466 (abbrev_table::read): New static method, renamed from
10467 abbrev_table_read_table.
10468 (abbrev_table::alloc_abbrev)
10469 (abbrev_table::add_abbrev): Now private.
10470 (abbrev_table::abbrev_table): Now private.
10471 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10472
10473 2020-02-08 Tom Tromey <tom@tromey.com>
10474
10475 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10476 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10477 htab_up.
10478
10479 2020-02-08 Tom Tromey <tom@tromey.com>
10480
10481 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10482 htab_up.
10483 (lookup_dwo_unit_in_dwp): Update.
10484 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10485 on obstack.
10486
10487 2020-02-08 Tom Tromey <tom@tromey.com>
10488
10489 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10490 obstack.
10491
10492 2020-02-08 Tom Tromey <tom@tromey.com>
10493
10494 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10495 line_header_hash.
10496 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10497 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10498 Change type to htab_up.
10499
10500 2020-02-08 Tom Tromey <tom@tromey.com>
10501
10502 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10503 htab_up. Don't allocate on obstack.
10504 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10505 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10506 Change type to htab_up.
10507
10508 2020-02-08 Tom Tromey <tom@tromey.com>
10509
10510 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10511 Change type to htab_up.
10512 * dwarf2/read.c (create_signatured_type_table_from_index)
10513 (create_signatured_type_table_from_debug_names)
10514 (create_all_type_units, add_type_unit)
10515 (lookup_dwo_signatured_type, lookup_signatured_type)
10516 (process_skeletonless_type_unit): Update.
10517 (create_debug_type_hash_table, create_debug_types_hash_table):
10518 Change type of types_htab.
10519 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10520 htab_up. Don't allocate on obstack.
10521 (create_cus_hash_table): Change type of cus_htab parameter.
10522 (struct dwo_file) <cus, tus>: Now htab_up.
10523 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10524 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10525 (queue_and_load_all_dwo_tus): Update.
10526 * dwarf2/index-write.c (write_gdbindex): Update.
10527 (write_debug_names): Update.
10528
10529 2020-02-08 Tom Tromey <tom@tromey.com>
10530
10531 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10532 dwarf2/read.c. Remove "next" member. Add constructor ntad
10533 destructor.
10534 (struct dwarf2_per_objfile) <queue>: New member.
10535 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10536 dwarf2/read.h.
10537 (dwarf2_queue, dwarf2_queue_tail): Remove.
10538 (class dwarf2_queue_guard): Add parameter to constructor. Use
10539 DISABLE_COPY_AND_ASSIGN.
10540 <m_per_objfile>: New member.
10541 <~dwarf2_queue_guard>: Rewrite.
10542 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10543 Update.
10544 (~dwarf2_queue_item): New.
10545
10546 2020-02-08 Tom Tromey <tom@tromey.com>
10547
10548 * dwarf2/read.c (struct die_info) <has_children>: New member.
10549 (dw2_get_file_names_reader): Remove has_children.
10550 (dw2_get_file_names): Update.
10551 (read_cutu_die_from_dwo): Remove has_children.
10552 (cutu_reader::init_tu_and_read_dwo_dies)
10553 (cutu_reader::cutu_reader): Update.
10554 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10555 Remove has_children.
10556 (build_type_psymtabs_1, process_skeletonless_type_unit)
10557 (load_partial_comp_unit, load_full_comp_unit): Update.
10558 (create_dwo_cu_reader): Remove has_children.
10559 (create_cus_hash_table, read_die_and_children): Update.
10560 (read_full_die_1,read_full_die): Remove has_children.
10561 (read_signatured_type): Update.
10562 (class cutu_reader) <has_children>: Remove.
10563
10564 2020-02-08 Tom Tromey <tom@tromey.com>
10565
10566 * dwarf2/expr.c: Rename from dwarf2expr.c.
10567 * dwarf2/expr.h: Rename from dwarf2expr.h.
10568 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10569 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10570 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10571 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10572 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10573 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10574 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10575 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10576 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10577 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10578 * dwarf2/loc.c: Rename from dwarf2loc.c.
10579 * dwarf2/loc.h: Rename from dwarf2loc.h.
10580 * dwarf2/read.c: Rename from dwarf2read.c.
10581 * dwarf2/read.h: Rename from dwarf2read.h.
10582 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10583 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10584 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10585 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10586 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10587 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10588 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10589 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10590 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10591 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10592 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10593 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10594 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10595 Update.
10596 * Makefile.in (COMMON_SFILES): Update.
10597 (HFILES_NO_SRCDIR): Update.
10598
10599 2020-02-08 Tom Tromey <tom@tromey.com>
10600
10601 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10602 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10603
10604 2020-02-08 Tom Tromey <tom@tromey.com>
10605
10606 * dwarf2read.h (struct die_info): Don't declare.
10607
10608 2020-02-08 Tom Tromey <tom@tromey.com>
10609
10610 * dwarf2read.h (die_info_ptr): Remove typedef.
10611
10612 2020-02-08 Tom Tromey <tom@tromey.com>
10613
10614 * dwarf2read.c (read_call_site_scope)
10615 (handle_data_member_location, dwarf2_add_member_fn)
10616 (mark_common_block_symbol_computed, read_common_block)
10617 (attr_to_dynamic_prop, partial_die_info::read)
10618 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10619 (dwarf2_symbol_mark_computed, set_die_type): Update.
10620 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10621 method.
10622 (attr_form_is_block): Don't declare.
10623 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10624
10625 2020-02-08 Tom Tromey <tom@tromey.com>
10626
10627 * dwarf2read.c (dwarf2_find_base_address, )
10628 (read_call_site_scope, rust_containing_type)
10629 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10630 (handle_data_member_location, dwarf2_add_member_fn)
10631 (get_alignment, read_structure_type, process_structure_scope)
10632 (mark_common_block_symbol_computed, read_common_block)
10633 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10634 (partial_die_info::read, read_attribute_value, new_symbol)
10635 (lookup_die_type, dwarf2_get_ref_die_offset)
10636 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10637 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10638 (dwarf2_symbol_mark_computed): Update.
10639 * dwarf2/attribute.h (struct attribute) <value_as_address,
10640 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10641 methods.
10642 (value_as_address, attr_form_is_section_offset)
10643 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10644 * dwarf2/attribute.c (attribute::value_as_address)
10645 (attribute::form_is_section_offset, attribute::form_is_constant)
10646 (attribute::form_is_ref): Now methods.
10647
10648 2020-02-08 Tom Tromey <tom@tromey.com>
10649
10650 * dwarf2read.c (struct attribute, DW_STRING)
10651 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10652 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10653 (attr_form_is_block, attr_form_is_section_offset)
10654 (attr_form_is_constant, attr_form_is_ref): Move.
10655 * dwarf2/attribute.h: New file.
10656 * dwarf2/attribute.c: New file, from dwarf2read.c.
10657 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10658
10659 2020-02-08 Tom Tromey <tom@tromey.com>
10660
10661 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10662 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10663 Move.
10664 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10665 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10666 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10667 abbrev.c.
10668 * dwarf2/abbrev.h: New file.
10669 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10670 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10671
10672 2020-02-08 Tom Tromey <tom@tromey.com>
10673
10674 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10675 (dwarf2_section_size, dwarf2_get_section_info)
10676 (create_signatured_type_table_from_debug_names)
10677 (create_addrmap_from_aranges, read_debug_names_from_section)
10678 (get_gdb_index_contents_from_section, read_comp_unit_head)
10679 (error_check_comp_unit_head, read_abbrev_offset)
10680 (create_debug_type_hash_table, init_cu_die_reader)
10681 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10682 (read_comp_units_from_section, create_cus_hash_table)
10683 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10684 (create_dwp_v2_section, dwarf2_rnglists_process)
10685 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10686 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10687 (read_indirect_string_from_dwz, read_addr_index_1)
10688 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10689 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10690 (fill_in_loclist_baton): Update.
10691 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10692 get_containing_section, get_bfd_owner, get_bfd_section,
10693 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10694 (dwarf2_read_section, get_section_name, get_section_file_name)
10695 (get_containing_section, get_section_bfd_owner)
10696 (get_section_bfd_section, get_section_name, get_section_file_name)
10697 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10698 declare.
10699 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10700 (dwarf2_section_info::get_bfd_owner)
10701 (dwarf2_section_info::get_bfd_section)
10702 (dwarf2_section_info::get_name)
10703 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10704 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10705 (dwarf2_section_info::read): Now methods.
10706 * dwarf-index-write.c (class debug_names): Update.
10707
10708 2020-02-08 Tom Tromey <tom@tromey.com>
10709
10710 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10711 Move to dwarf2/section.h.
10712 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10713 (get_section_bfd_section, get_section_name)
10714 (get_section_file_name, get_section_id, get_section_flags)
10715 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10716 dwarf2/section.c.
10717 * dwarf2/section.h: New file.
10718 * dwarf2/section.c: New file, from dwarf2read.c.
10719 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10720
10721 2020-02-08 Tom Tromey <tom@tromey.com>
10722
10723 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10724 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10725 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10726 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10727 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10728 * dwarf2/leb.h: New file, from dwarf2read.c.
10729 * dwarf2/leb.c: New file, from dwarf2read.c.
10730 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10731 Remove.
10732 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10733 (COMMON_SFILES): Add dwarf2/leb.c.
10734
10735 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10736
10737 GDB 9.1 released.
10738
10739 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10740
10741 PR gdb/25190:
10742 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10743 * gdb/remote.c (remote_console_output): Update.
10744 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10745 (ui_file_puts): ...this.
10746 * gdb/ui-file.h (ui_file_puts): Add declaration.
10747 * gdb/utils.c (emit_style_escape): Update.
10748 (flush_wrap_buffer): Update.
10749 (fputs_maybe_filtered): Update.
10750 (fputs_unfiltered): Add function.
10751
10752 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10753
10754 * gdb/event-loop.c (gdb_wait_for_event): Update.
10755 * gdb/printcmd.c (printf_command): Update.
10756 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10757 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10758 (gdb_os_flush_stderr): Update.
10759 * gdb/remote.c (remote_console_output): Update.
10760 * gdb/ui-file.c (gdb_flush): Rename to...
10761 (ui_file_flush): ...this.
10762 (stderr_file::write): Update.
10763 (stderr_file::puts): Update.
10764 * gdb/ui-file.h (gdb_flush): Rename to...
10765 (ui_file_flush): ...this.
10766 * gdb/utils.c (gdb_flush): Add function.
10767 * gdb/utils.h (gdb_flush): Add declaration.
10768
10769 2020-02-07 Tom Tromey <tromey@adacore.com>
10770
10771 PR breakpoints/24915:
10772 * source.c (find_and_open_source): Do not check basenames_may_differ.
10773
10774 2020-02-07 Tom Tromey <tom@tromey.com>
10775
10776 * README: Update gdbserver documentation.
10777 * gdbserver: Move to top level.
10778 * configure.tgt (build_gdbserver): Remove.
10779 * configure.ac: Remove --enable-gdbserver.
10780 * configure: Rebuild.
10781 * Makefile.in (distclean): Don't mention gdbserver.
10782
10783 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10784
10785 * source-cache.c (source_cache::ensure): Surround
10786 get_plain_source_lines with a try/catch.
10787 (source_cache::get_line_charpos): Get rid of try/catch
10788 and only check for the return value of "ensure".
10789 * tui/tui-source.c (tui_source_window::set_contents):
10790 Simplify "nlines" calculation.
10791
10792 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10793
10794 * MAINTAINERS (Write After Approval): Add myself.
10795
10796 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10797
10798 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10799 function call.
10800
10801 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10802
10803 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10804
10805 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10806
10807 * nat/riscv-linux-tdesc.h: New file.
10808 * nat/riscv-linux-tdesc.c: New file, taking code from...
10809 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10810 ... here.
10811 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10812 NATDEPFILES.
10813
10814 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10815
10816 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10817 we don't set the fake simulator ptid to the null_ptid.
10818
10819 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10820
10821 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10822 * gdbthread.h (class thread_info) <resumed>: Likewise.
10823 * infrun.c (resume_1): Likewise.
10824 (proceed): Likewise.
10825 (infrun_thread_stop_requested): Likewise.
10826 (stop_all_threads): Likewise.
10827 (handle_inferior_event): Likewise.
10828 (restart_threads): Likewise.
10829 (finish_step_over): Likewise.
10830 (keep_going_stepped_thread): Likewise.
10831 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10832 (linux_handle_extended_wait): Likewise.
10833 * record-btrace.c (get_thread_current_frame_id): Likewise.
10834 * record-full.c (record_full_wait_1): Likewise.
10835 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10836 * target.c (target_resume): Likewise.
10837 * thread.c (set_running_thread): Likewise.
10838
10839 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10840
10841 * f-valprint.c (f77_print_array_1): Changed datatype of index
10842 variable to LONGEST from int to enable it to contain bound
10843 values correctly.
10844
10845 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10846
10847 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10848 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10849 offsets according to FLEN determined.
10850 (riscv_linux_nat_target::read_description): Determine FLEN
10851 dynamically.
10852 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10853 according to FLEN determined.
10854 (riscv_linux_nat_target::store_registers): Likewise.
10855
10856 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10857
10858 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10859 when reg->group is empty and reggroup is not.
10860
10861 2020-01-31 Tom Tromey <tromey@adacore.com>
10862
10863 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10864 Call beneath target's mourn_inferior after unpushing.
10865
10866 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10867
10868 PR tui/9765
10869 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10870 have enough lines to fill the screen, still return the lowest
10871 address we found.
10872
10873 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10874
10875 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10876 '-', '<', and '>' commands.
10877
10878 2020-01-29 Pedro Alves <palves@redhat.com>
10879 Sergio Durigan Junior <sergiodj@redhat.com>
10880
10881 * infcmd.c (construct_inferior_arguments): Assert that
10882 'argc' is greater than 0.
10883
10884 2020-01-29 Luis Machado <luis.machado@linaro.org>
10885
10886 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10887 (BRK_INSN_MASK): Define to 0xd4200000.
10888 (aarch64_program_breakpoint_here_p): New function.
10889 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10890 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10891 breakpoint.c.
10892 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10893 breakpoint.h
10894 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10895 call gdbarch_program_breakpoint_here_p.
10896 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10897 default_program_breakpoint_here_p, changed return type to bool and
10898 simplified.
10899 * breakpoint.h (program_breakpoint_here): Moved prototype to
10900 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10901 return type to bool.
10902 * gdbarch.c: Regenerate.
10903 * gdbarch.h: Regenerate.
10904 * gdbarch.sh (program_breakpoint_here_p): New method.
10905 * infrun.c (handle_signal_stop): Call
10906 gdbarch_program_breakpoint_here_p.
10907
10908 2020-01-26 Tom Tromey <tom@tromey.com>
10909
10910 * ctfread.c (struct ctf_fp_info): Reindent.
10911 (_initialize_ctfread): Remove.
10912
10913 2020-01-26 Tom Tromey <tom@tromey.com>
10914
10915 * psymtab.c (partial_map_expand_apply)
10916 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10917 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10918 (psym_print_stats, psym_expand_symtabs_for_function)
10919 (psym_map_symbol_filenames, psym_map_matching_symbols)
10920 (psym_expand_symtabs_matching)
10921 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10922 (maintenance_check_psymtabs): Use new methods.
10923 * psympriv.h (struct partial_symtab) <readin_p,
10924 get_compunit_symtab>: New methods.
10925 <readin, compunit_symtab>: Remove members.
10926 (struct standard_psymtab): New.
10927 (struct legacy_psymtab): Derive from standard_psymtab.
10928 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10929 standard_psymtab.
10930 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10931
10932 2020-01-26 Tom Tromey <tom@tromey.com>
10933
10934 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10935 read_dependencies. Add assert.
10936 * psymtab.c (partial_symtab::read_dependencies): New method.
10937 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10938 method.
10939 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10940 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10941 read_dependencies.
10942 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10943 Add assert.
10944
10945 2020-01-26 Tom Tromey <tom@tromey.com>
10946
10947 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10948 Call expand_psymtab.
10949 (xcoff_read_symtab): Call expand_psymtab.
10950 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10951 legacy_expand_psymtab.
10952 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10953 method.
10954 (struct legacy_psymtab) <expand_psymtab>: Implement.
10955 <legacy_expand_psymtab>: New member.
10956 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10957 (parse_partial_symbols): Set legacy_expand_psymtab.
10958 (psymtab_to_symtab_1): Change argument order. Call
10959 expand_psymtab.
10960 (new_psymtab): Set legacy_expand_psymtab.
10961 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10962 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10963 expand_psymtab.
10964 (dwarf2_psymtab::expand_psymtab): Rename from
10965 psymtab_to_symtab_1. Call expand_psymtab.
10966 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10967 (dbx_end_psymtab): Likewise.
10968 (dbx_psymtab_to_symtab_1): Change argument order. Call
10969 expand_psymtab.
10970 (dbx_read_symtab): Call expand_psymtab.
10971 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10972 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10973 (ctf_psymtab::read_symtab): Call expand_psymtab.
10974
10975 2020-01-26 Tom Tromey <tom@tromey.com>
10976
10977 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10978 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10979 messages.
10980 * mdebugread.c (mdebug_read_symtab): Remove prints.
10981 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10982 assert.
10983 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10984
10985 2020-01-26 Tom Tromey <tom@tromey.com>
10986
10987 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10988 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10989 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10990 legacy_symtab.
10991 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10992 * psymtab.c (psymtab_to_symtab): Call method.
10993 (dump_psymtab): Update.
10994 * psympriv.h (struct partial_symtab): Add virtual destructor.
10995 <read_symtab>: New method.
10996 (struct legacy_symtab): New.
10997 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10998 (struct pst_map) <pst>: Now a legacy_psymtab.
10999 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
11000 (new_psymtab): Use legacy_psymtab.
11001 * dwarf2read.h (struct dwarf2_psymtab): New.
11002 (struct dwarf2_per_cu_data) <psymtab>: Use it.
11003 * dwarf2read.c (dwarf2_create_include_psymtab)
11004 (dwarf2_build_include_psymtabs, create_type_unit_group)
11005 (create_partial_symtab, process_psymtab_comp_unit_reader)
11006 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
11007 (set_partial_user): Use dwarf2_psymtab.
11008 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
11009 (psymtab_to_symtab_1, process_full_comp_unit)
11010 (process_full_type_unit, dwarf2_ranges_read)
11011 (dwarf2_get_pc_bounds, psymtab_include_file_name)
11012 (dwarf_decode_lines): Use dwarf2_psymtab.
11013 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
11014 (add_address_entry_worker, write_one_signatured_type)
11015 (recursively_count_psymbols, recursively_write_psymbols)
11016 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11017 (write_debug_names): Likewise.
11018 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11019 <pst>: Now a legacy_psymtab.
11020 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11021 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11022 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11023 * ctfread.c (struct ctf_psymtab): New.
11024 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11025 ctf_psymtab.
11026 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11027 (create_partial_symtab): Return a ctf_psymtab.
11028 (scan_partial_symbols): Update.
11029
11030 2020-01-26 Tom Tromey <tom@tromey.com>
11031
11032 * xcoffread.c (xcoff_start_psymtab): Use new.
11033 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11034 renamed from start_psymtab_common.
11035 * psympriv.h (struct partial_symtab): Add new constructor.
11036 (start_psymtab_common): Don't declare.
11037 * mdebugread.c (parse_partial_symbols): Use new.
11038 * dwarf2read.c (create_partial_symtab): Use new.
11039 * dbxread.c (start_psymtab): Use new.
11040 * ctfread.c (create_partial_symtab): Use new.
11041
11042 2020-01-26 Tom Tromey <tom@tromey.com>
11043
11044 * xcoffread.c (xcoff_end_psymtab): Use new.
11045 * psymtab.c (start_psymtab_common): Use new.
11046 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11047 Update.
11048 * psympriv.h (struct partial_symtab): Add parameters to
11049 constructor. Don't inline.
11050 (allocate_psymtab): Don't declare.
11051 * mdebugread.c (new_psymtab): Use new.
11052 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11053 * dbxread.c (dbx_end_psymtab): Use new.
11054
11055 2020-01-26 Tom Tromey <tom@tromey.com>
11056
11057 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11058 allocate_psymtab. Update documentation.
11059 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11060 allocate_psymtab. Do not use new.
11061 (allocate_psymtab): Use new. Update.
11062
11063 2020-01-26 Tom Tromey <tom@tromey.com>
11064
11065 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11066 * psymtab.c (psym_print_stats): Update.
11067 * psympriv.h (struct partial_symtab) <readin,
11068 psymtabs_addrmap_supported, anonymous>: Now bool.
11069 * mdebugread.c (psymtab_to_symtab_1): Update.
11070 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11071 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11072 (process_full_comp_unit, process_full_type_unit): Update.
11073 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11074 * ctfread.c (psymtab_to_symtab): Update.
11075
11076 2020-01-26 Tom Tromey <tom@tromey.com>
11077
11078 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11079 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11080 * psymtab.c (psymtab_storage): Delete psymtabs.
11081 (psymtab_storage::allocate_psymtab): Use new.
11082 (psymtab_storage::discard_psymtab): Use delete.
11083 * psympriv.h (struct partial_symtab): Add constructor and
11084 initializers.
11085
11086 2020-01-26 Tom Tromey <tom@tromey.com>
11087
11088 * machoread.c: Do not include psympriv.h.
11089
11090 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11091
11092 * NEWS: Mention the new option and the set/show commands.
11093
11094 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11095
11096 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11097 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11098 (validate_exec_file): New variables, enums, functions.
11099 (exec_file_locate_attach, print_section_info): Style the filenames.
11100 (_initialize_exec): Install show_exec_file_mismatch_command and
11101 set_exec_file_mismatch_command.
11102 * gdbcore.h (validate_exec_file): Declare.
11103 * infcmd.c (attach_command): Call validate_exec_file.
11104 * remote.c ( remote_target::remote_add_inferior): Likewise.
11105
11106 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11107
11108 * frame.c (find_frame_sal): Move call to get_next_frame into more
11109 inner scope.
11110 * inline-frame.c (inilne_state) <inline_state>: Update argument
11111 types.
11112 (inilne_state) <skipped_symbol>: Rename to...
11113 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11114 (skip_inline_frames): Build vector of skipped symbols and use this
11115 to reate the inline_state.
11116 (inline_skipped_symbol): Add a comment and some assertions, fetch
11117 skipped symbol from the list.
11118
11119 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11120
11121 * buildsym.c (lte_is_less_than): Delete.
11122 (buildsym_compunit::end_symtab_with_blockvector): Create local
11123 lambda function to sort line table entries, and use
11124 std::stable_sort instead of std::sort.
11125 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11126 markers when looking for a previous line.
11127
11128 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11129
11130 * dwarf2read.c (lnp_state_machine::record_line): Include
11131 end_sequence parameter in debug print out. Record the line if we
11132 are at an end_sequence marker even if it's not the start of a
11133 statement.
11134 * symmisc.c (maintenance_print_one_line_table): Print end of
11135 sequence markers with 'END' not '0'.
11136
11137 2020-01-24 Pedro Alves <palves@redhat.com>
11138
11139 PR gdb/25410
11140 * thread.c (scoped_restore_current_thread::restore): Use
11141 switch_to_inferior_no_thread.
11142 * exec.c: Include "progspace-and-thread.h".
11143 (add_target_sections, remove_target_sections):
11144 scoped_restore_current_pspace_and_thread instead of
11145 scoped_restore_current_thread.
11146 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11147 and aspace to the inferior before calling clone_program_space.
11148 Remove stale comment.
11149
11150 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11151
11152 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11153 (arm_netbsd_nat_target::fetch_registers): ...this.
11154 (arm_nbsd_nat_target::store_registers): Rename to...
11155 (arm_netbsd_nat_target::store_registers): ...this.
11156
11157 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11158
11159 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11160 register_t.
11161
11162 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11163
11164 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11165 Update comment.
11166 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11167 Likewise.
11168 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11169 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11170 the correct replacement (iterate_over_regset_sections).
11171 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11172 Update comment.
11173
11174 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11175
11176 PR gdb/23718
11177 * gdb/python/python.c (execute_gdb_command): Call
11178 async_enable_stdin in catch block.
11179
11180 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11181
11182 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11183 SWITCH_THRU_ALL_UIS.
11184
11185 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11186
11187 PR tui/9765
11188 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11189 comment, add extra parameter, and update to store previous symbol
11190 when appropriate.
11191 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11192 add extra parameter.
11193 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11194 remove unneeded parameter, add try/catch around gdb_print_insn,
11195 rewrite to add items to asm_lines vector.
11196 (tui_find_backward_disassembly_start_address): New function.
11197 (tui_find_disassembly_address): Updated throughout.
11198 (tui_disasm_window::set_contents): Update for changes to
11199 tui_disassemble.
11200 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11201 number of lines to scroll.
11202
11203 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11204
11205 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11206 (SECT_OFF_DATA): Likewise.
11207 (SECT_OFF_RODATA): Likewise.
11208 (SECT_OFF_TEXT): Likewise.
11209 (SECT_OFF_BSS): Likewise.
11210 (struct objfile) <text_section_offset, data_section_offset>: New
11211 methods.
11212 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11213 objfile::text_section_offset.
11214 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11215 * coffread.c (coff_symtab_read): Likewise.
11216 (enter_linenos): Likewise.
11217 (process_coff_symbol): Likewise.
11218 * ctfread.c (get_objfile_text_range): Likewise.
11219 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11220 Use objfile::data_section_offset.
11221 * dwarf2-frame.c (execute_cfa_program): Use
11222 objfile::text_section_offset.
11223 (dwarf2_frame_find_fde): Likewise.
11224 * dwarf2read.c (create_addrmap_from_index): Likewise.
11225 (create_addrmap_from_aranges): Likewise.
11226 (dw2_find_pc_sect_compunit_symtab): Likewise.
11227 (process_psymtab_comp_unit_reader): Likewise.
11228 (add_partial_symbol): Likewise.
11229 (add_partial_subprogram): Likewise.
11230 (process_full_comp_unit): Likewise.
11231 (read_file_scope): Likewise.
11232 (read_func_scope): Likewise.
11233 (read_lexical_block_scope): Likewise.
11234 (read_call_site_scope): Likewise.
11235 (dwarf2_rnglists_process): Likewise.
11236 (dwarf2_ranges_process): Likewise.
11237 (dwarf2_ranges_read): Likewise.
11238 (dwarf_decode_lines_1): Likewise.
11239 (new_symbol): Likewise.
11240 (dwarf2_fetch_die_loc_sect_off): Likewise.
11241 (dwarf2_per_cu_text_offset): Likewise.
11242 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11243 * hppa-tdep.c (read_unwind_info): Likewise.
11244 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11245 * psympriv.h (struct partial_symtab): Likewise.
11246 * psymtab.c (find_pc_sect_psymtab): Likewise.
11247 * solib-svr4.c (enable_break): Likewise.
11248 * stap-probe.c (relocate_address): Use
11249 objfile::data_section_offset.
11250 * xcoffread.c (enter_line_range): Use
11251 objfile::text_section_offset.
11252 (read_xcoff_symtab): Likewise.
11253
11254 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11255
11256 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11257 declaration to narrower scopes.
11258
11259 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11260
11261 * darwin-nat.h (struct darwin_exception_msg, enum
11262 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11263 Move up.
11264 (class darwin_nat_target) <wait_1, check_new_threads,
11265 decode_exception_message, decode_message, stop_inferior,
11266 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11267 * darwin-nat.c (darwin_check_new_threads): Rename to...
11268 (darwin_nat_target::check_new_threads): ... this.
11269 (darwin_suspend_inferior_it): Remove.
11270 (darwin_decode_exception_message): Rename to...
11271 (darwin_nat_target::decode_exception_message): ... this.
11272 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11273 (darwin_decode_message): Rename to...
11274 (darwin_nat_target::decode_message): ... this.
11275 (cancel_breakpoint): Rename to...
11276 (darwin_nat_target::cancel_breakpoint): ... this.
11277 (darwin_wait): Rename to...
11278 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11279 instead of iterate_over_inferiors.
11280 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11281 (darwin_stop_inferior): Rename to...
11282 (darwin_nat_target::stop_inferior): ... this.
11283 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11284 (darwin_init_thread_list): Rename to...
11285 (darwin_nat_target::init_thread_list): ... this.
11286 (darwin_ptrace_him): Rename to...
11287 (darwin_nat_target::ptrace_him): ... this.
11288 (darwin_nat_target::create_inferior): Pass lambda function to
11289 fork_inferior.
11290 (darwin_nat_target::detach): Call stop_inferior instead of
11291 darwin_stop_inferior.
11292 * fork-inferior.h (fork_inferior): Change init_trace_fun
11293 parameter to gdb::function_view.
11294 * fork-inferior.c (fork_inferior): Likewise.
11295
11296 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11297
11298 * i386-cygwin-tdep.c (core_process_module_section): Update.
11299 * windows-nat.c (struct lm_info_windows): Add text_offset.
11300 (windows_xfer_shared_libraries): Update.
11301 * windows-tdep.c (windows_xfer_shared_library):
11302 Add text_offset_cached argument.
11303 * windows-tdep.h (windows_xfer_shared_library): Update.
11304
11305 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11306
11307 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11308
11309 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11310
11311 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11312 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11313 replace with range-based for.
11314 (gdbsim_interrupt_inferior): Remove.
11315 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11316 with a range-based for. Inline code from
11317 gdbsim_interrupt_inferior.
11318
11319 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11320
11321 * infrun.c (proceed): Fix indentation.
11322
11323 2020-01-21 Tom Tromey <tromey@adacore.com>
11324
11325 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11326 * python/python.c (python_extension_ops): Update.
11327 (gdbpy_colorize): New function.
11328 * python/lib/gdb/__init__.py (colorize): New function.
11329 * extension.h (ext_lang_colorize): Declare.
11330 * extension.c (ext_lang_colorize): New function.
11331 * extension-priv.h (struct extension_language_ops) <colorize>: New
11332 member.
11333 * cli/cli-style.c (_initialize_cli_style): Update help text.
11334
11335 2020-01-21 Luis Machado <luis.machado@linaro.org>
11336
11337 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11338 <cond>: Change type to bool.
11339 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11340 (aarch64_displaced_step_cb): Likewise.
11341 (aarch64_displaced_step_tb): Likewise.
11342
11343 2020-01-21 Luis Machado <luis.machado@linaro.org>
11344
11345 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11346 output.
11347
11348 2020-01-21 Luis Machado <luis.machado@linaro.org>
11349
11350 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11351 <pc_adjust>: Adjust the documentation.
11352 (aarch64_displaced_step_fixup): Check if PC really moved before
11353 adjusting it.
11354
11355 2020-01-19 Tom Tromey <tom@tromey.com>
11356
11357 * disasm.c (~gdb_disassembler): New destructor.
11358 (gdb_buffered_insn_length): Call disassemble_free_target.
11359 * disasm.h (class gdb_disassembler): Declare destructor. Use
11360 DISABLE_COPY_AND_ASSIGN.
11361
11362 2020-01-19 Tom Tromey <tom@tromey.com>
11363
11364 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11365 (die_reader_func_ftype): Remove.
11366 (cutu_reader): New class.
11367 (dw2_get_file_names_reader): Remove "data" parameter.
11368 (dw2_get_file_names): Use cutu_reader.
11369 (create_debug_type_hash_table): Update.
11370 (read_cutu_die_from_dwo): Update comment.
11371 (lookup_dwo_unit): Add dwo_name parameter.
11372 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11373 die_reader_func_ftype and data parameters.
11374 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11375 Remove die_reader_func_ftype and data parameters.
11376 (~cutu_reader): New; from init_cutu_and_read_dies.
11377 (cutu_reader::cutu_reader): Rename from
11378 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11379 and data parameters.
11380 (init_cutu_and_read_dies_simple): Remove.
11381 (struct process_psymtab_comp_unit_data): Remove.
11382 (process_psymtab_comp_unit_reader): Remove data parameter; add
11383 want_partial_unit and pretend_language parameters.
11384 (process_psymtab_comp_unit): Use cutu_reader.
11385 (build_type_psymtabs_reader): Remove data parameter.
11386 (build_type_psymtabs_1): Use cutu_reader.
11387 (process_skeletonless_type_unit): Likewise.
11388 (load_partial_comp_unit_reader): Remove.
11389 (load_partial_comp_unit): Use cutu_reader.
11390 (load_full_comp_unit_reader): Remove.
11391 (load_full_comp_unit): Use cutu_reader.
11392 (struct create_dwo_cu_data): Remove.
11393 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11394 dwo_unit parameters.
11395 (create_cus_hash_table): Use cutu_reader.
11396 (struct dwarf2_read_addr_index_data): Remove.
11397 (dwarf2_read_addr_index_reader): Remove.
11398 (dwarf2_read_addr_index): Use cutu_reader.
11399 (read_signatured_type_reader): Remove.
11400 (read_signatured_type): Use cutu_reader.
11401
11402 2020-01-19 Tom Tromey <tom@tromey.com>
11403
11404 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11405 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11406 (tui_wrefresh): Declare.
11407 * tui/tui-wingeneral.c (suppress_output): New global.
11408 (tui_suppress_output, ~tui_suppress_output): New constructor and
11409 destructor.
11410 (tui_wrefresh): New function.
11411 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11412 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11413 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11414 method.
11415 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11416 tui_wrefresh.
11417 (tui_data_window::no_refresh): New method.
11418 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11419 (tui_reg_command): Use tui_suppress_output
11420 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11421 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11422 method.
11423 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11424
11425 2020-01-19 Tom Tromey <tom@tromey.com>
11426
11427 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11428 Handle case where symtab is null.
11429
11430 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11431
11432 * linux-fork.c (one_fork_p): Simplify.
11433
11434 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11435
11436 * top.c (struct qt_args): Remove.
11437 (kill_or_detach): Change return type to void, replace `void *`
11438 parameter with a proper one.
11439 (print_inferior_quit_action): Likewise.
11440 (quit_confirm): Use range-based for loop to iterate over inferiors.
11441 (quit_force): Likewise.
11442
11443 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11444
11445 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11446 `void *` parameter with proper parameters.
11447 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11448 (print_one_inferior): Change return type to void, replace `void *`
11449 parameter with proper parameters.
11450 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11451 inferiors.
11452 (get_other_inferior): Remove.
11453 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11454 inferiors.
11455
11456 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11457
11458 * mi/mi-interp.c (report_initial_inferior): Remove.
11459 (mi_interp::init): Use range-based for to iterate over inferiors.
11460
11461 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11462
11463 * python/py-inferior.c (build_inferior_list): Remove.
11464 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11465
11466 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11467
11468 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11469 (btrace_stitch_trace): Likewise.
11470 * charset.c (intermediate_encoding): Likewise (vaild).
11471 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11472 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11473 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11474
11475 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11476
11477 * windows-tdep.c (windows_get_tlb_type):
11478 Add rtl_user_process_parameters type.
11479
11480 2020-01-16 Pedro Alves <palves@redhat.com>
11481 Norbert Lange <nolange79@gmail.com>
11482
11483 PR build/24805
11484 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11485 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11486 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11487 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11488 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11489 (ps_plog): Redeclare exported functions with default visibility.
11490
11491 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11492
11493 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11494 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11495
11496 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11497
11498 * infcmd.c (post_create_inferior): Use get_thread_regcache
11499 instead of get_current_regcache.
11500
11501 2020-01-14 Tom Tromey <tom@tromey.com>
11502
11503 PR symtab/12535:
11504 * python/python.c (gdbpy_decode_line): Treat empty string the same
11505 as no argument.
11506
11507 2020-01-14 Tom Tromey <tom@tromey.com>
11508
11509 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11510
11511 2020-01-14 Tom Tromey <tom@tromey.com>
11512
11513 * nat/linux-btrace.c: Don't include <config.h>.
11514 * nat/linux-ptrace.c: Don't include <config.h>.
11515 * nat/x86-linux-dregs.c: Don't include <config.h>.
11516
11517 2020-01-14 Tom Tromey <tom@tromey.com>
11518
11519 * configure: Rebuild.
11520 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11521
11522 2020-01-14 Tom Tromey <tom@tromey.com>
11523
11524 * nat/x86-linux-dregs.c: Include configh.h.
11525 * nat/linux-ptrace.c: Include configh.h.
11526 * nat/linux-btrace.c: Include configh.h.
11527 * defs.h: Include config.h, bfd.h.
11528 * configure.ac: Don't source common.host.
11529 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11530 * configure: Rebuild.
11531 * acinclude.m4: Update path.
11532 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11533 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11534 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11535 (CLIBS): Add LIBSUPPORT.
11536 (CDEPS): Likewise.
11537 (COMMON_SFILES): Remove gdbsupport files.
11538 (HFILES_NO_SRCDIR): Likewise.
11539 (stamp-version): Update path to create-version.sh.
11540 (ALLDEPFILES): Remove gdbsupport files.
11541
11542 2020-01-14 Tom Tromey <tom@tromey.com>
11543
11544 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11545 USE_WIN32API when needed.
11546 * configure.ac (USE_WIN32API): Don't define.
11547 (WIN32LIBS): Use WIN32APILIBS.
11548 * configure: Rebuild.
11549
11550 2020-01-14 Tom Tromey <tom@tromey.com>
11551
11552 * configure: Rebuild.
11553 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11554
11555 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11556
11557 * skip.c (skip_function_command): Make skip w/o arguments use the
11558 name of the inlined function if pc is inside any inlined function.
11559
11560 2020-01-14 Luis Machado <luis.machado@linaro.org>
11561
11562 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11563 * infrun.c (resume_1): Likewise.
11564 (handle_inferior_event): Remove stale comment.
11565 * linux-nat.c (linux_nat_target::resume): Update comments.
11566 (save_stop_reason): Likewise.
11567 (linux_nat_filter_event): Likewise.
11568 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11569
11570 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11571
11572 * elfread.c (record_minimal_symbol): Set section index to 0 for
11573 non-allocatable sections.
11574
11575
11576 2020-01-13 Ali Tamur <tamur@google.com>
11577
11578 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11579 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11580 to gdb::optional. Update comments.
11581 (dwo_file): Update comments.
11582 (read_attribute): Update API to take an additional out parameter,
11583 need_reprocess. This is used to mark attributes that need other
11584 attributes (e.g. str_offsets_base) for correct computation which may not
11585 have been read yet.
11586 (read_attribute_reprocess): New function declaration.
11587 (read_addr_index): Likewise.
11588 (read_dwo_str_index): Likewise.
11589 (read_stub_str_index): Likewise.
11590 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11591 (lookup_addr_base): New function definition.
11592 (lookup_ranges_base): Likewise.
11593 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11594 lookup_ranges_base.
11595 (init_cutu_and_read_dies): Update comments.
11596 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11597 unit. This is used to inherit parent's str_offsets_base and addr_base.
11598 Update comments.
11599 (init_cutu_and_read_dies_simple): Reflect API changes.
11600 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11601 (create_cus_hash_table): Change API to take parent compile unit.
11602 Reflect API changes.
11603 (open_and_init_dwo_file): Reflect API changes.
11604 (dwarf2_get_pc_bounds): Update comments.
11605 (dwarf2_record_block_ranges): Likewise.
11606 (read_full_die_1): Change implementation to reprocess attributes that
11607 need str_offsets_base and addr_base.
11608 (partial_die_info::read): Likewise.
11609 (read_attribute_reprocess): New function definition.
11610 (read_attribute_value): Change API to take an additional out parameter,
11611 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11612 when a non-dwo compile unit has index based attributes.
11613 (read_attribute): Reflect API changes.
11614 (read_addr_index_1): Reflect API changes. Update comments.
11615 (dwarf2_read_addr_index_data): Reflect API changes.
11616 (dwarf2_read_addr_index): Likewise.
11617 (read_str_index): Change API and implementation. This becomes a helper
11618 to be used by the new string index related methods. Update error
11619 message and comments.
11620 (read_dwo_str_index): New function definition.
11621 (read_stub_str_index): Likewise.
11622 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11623 * symfile.h (dwarf2_debug_sections): Likewise.
11624 * xcoffread.c (dwarf2_debug_sections): Likewise.
11625
11626 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11627
11628 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11629 core_reg_sect type to gdb_byte *.
11630 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11631 * cris-tdep.c (fetch_core_registers): Likewise.
11632 * corelow.c (core_target::get_core_register_section): Change
11633 type of `contents` to gdb::byte_vector.
11634
11635 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11636
11637 * tui/tui-wingeneral.c (box_win): Position the title in the center
11638 of the border.
11639
11640 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11641
11642 * corelow.c (core_target::get_core_register_section): Use
11643 std::vector instead of alloca.
11644
11645 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11646
11647 * warning.m4: Add -Wmissing-declarations to build_warnings.
11648 * configure: Re-generate.
11649
11650 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11651
11652 * python/python.c (init__gdb_module): Add declaration.
11653
11654 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11655
11656 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11657 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11658 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11659 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11660 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11661 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11662 * ada-exp.y (_initialize_ada_exp): Add declaration.
11663 * ada-lang.c (_initialize_ada_language): Add declaration.
11664 * ada-tasks.c (_initialize_tasks): Add declaration.
11665 * agent.c (_initialize_agent): Add declaration.
11666 * aix-thread.c (_initialize_aix_thread): Add declaration.
11667 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11668 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11669 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11670 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11671 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11672 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11673 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11674 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11675 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11676 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11677 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11678 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11679 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11680 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11681 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11682 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11683 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11684 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11685 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11686 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11687 * annotate.c (_initialize_annotate): Add declaration.
11688 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11689 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11690 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11691 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11692 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11693 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11694 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11695 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11696 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11697 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11698 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11699 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11700 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11701 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11702 * auto-load.c (_initialize_auto_load): Add declaration.
11703 * auxv.c (_initialize_auxv): Add declaration.
11704 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11705 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11706 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11707 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11708 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11709 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11710 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11711 * breakpoint.c (_initialize_breakpoint): Add declaration.
11712 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11713 * btrace.c (_initialize_btrace): Add declaration.
11714 * charset.c (_initialize_charset): Add declaration.
11715 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11716 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11717 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11718 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11719 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11720 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11721 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11722 * coffread.c (_initialize_coffread): Add declaration.
11723 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11724 * compile/compile.c (_initialize_compile): Add declaration.
11725 * complaints.c (_initialize_complaints): Add declaration.
11726 * completer.c (_initialize_completer): Add declaration.
11727 * copying.c (_initialize_copying): Add declaration.
11728 * corefile.c (_initialize_core): Add declaration.
11729 * corelow.c (_initialize_corelow): Add declaration.
11730 * cp-abi.c (_initialize_cp_abi): Add declaration.
11731 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11732 * cp-support.c (_initialize_cp_support): Add declaration.
11733 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11734 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11735 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11736 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11737 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11738 * ctfread.c (_initialize_ctfread): Add declaration.
11739 * d-lang.c (_initialize_d_language): Add declaration.
11740 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11741 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11742 * dbxread.c (_initialize_dbxread): Add declaration.
11743 * dcache.c (_initialize_dcache): Add declaration.
11744 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11745 * disasm.c (_initialize_disasm): Add declaration.
11746 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11747 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11748 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11749 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11750 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11751 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11752 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11753 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11754 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11755 * elfread.c (_initialize_elfread): Add declaration.
11756 * exec.c (_initialize_exec): Add declaration.
11757 * extension.c (_initialize_extension): Add declaration.
11758 * f-lang.c (_initialize_f_language): Add declaration.
11759 * f-valprint.c (_initialize_f_valprint): Add declaration.
11760 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11761 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11762 * filesystem.c (_initialize_filesystem): Add declaration.
11763 * findcmd.c (_initialize_mem_search): Add declaration.
11764 * findvar.c (_initialize_findvar): Add declaration.
11765 * fork-child.c (_initialize_fork_child): Add declaration.
11766 * frame-base.c (_initialize_frame_base): Add declaration.
11767 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11768 * frame.c (_initialize_frame): Add declaration.
11769 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11770 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11771 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11772 * gcore.c (_initialize_gcore): Add declaration.
11773 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11774 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11775 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11776 * gdbarch.c (_initialize_gdbarch): Add declaration.
11777 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11778 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11779 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11780 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11781 * go-lang.c (_initialize_go_language): Add declaration.
11782 * go32-nat.c (_initialize_go32_nat): Add declaration.
11783 * guile/guile.c (_initialize_guile): Add declaration.
11784 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11785 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11786 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11787 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11788 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11789 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11790 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11791 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11792 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11793 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11794 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11795 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11796 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11797 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11798 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11799 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11800 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11801 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11802 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11803 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11804 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11805 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11806 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11807 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11808 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11809 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11810 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11811 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11812 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11813 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11814 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11815 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11816 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11817 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11818 * infcall.c (_initialize_infcall): Add declaration.
11819 * infcmd.c (_initialize_infcmd): Add declaration.
11820 * inflow.c (_initialize_inflow): Add declaration.
11821 * infrun.c (_initialize_infrun): Add declaration.
11822 * interps.c (_initialize_interpreter): Add declaration.
11823 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11824 * jit.c (_initialize_jit): Add declaration.
11825 * language.c (_initialize_language): Add declaration.
11826 * linux-fork.c (_initialize_linux_fork): Add declaration.
11827 * linux-nat.c (_initialize_linux_nat): Add declaration.
11828 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11829 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11830 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11831 * m2-lang.c (_initialize_m2_language): Add declaration.
11832 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11833 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11834 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11835 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11836 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11837 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11838 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11839 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11840 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11841 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11842 * machoread.c (_initialize_machoread): Add declaration.
11843 * macrocmd.c (_initialize_macrocmd): Add declaration.
11844 * macroscope.c (_initialize_macroscope): Add declaration.
11845 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11846 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11847 * maint.c (_initialize_maint_cmds): Add declaration.
11848 * mdebugread.c (_initialize_mdebugread): Add declaration.
11849 * memattr.c (_initialize_mem): Add declaration.
11850 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11851 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11852 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11853 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11854 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11855 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11856 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11857 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11858 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11859 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11860 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11861 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11862 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11863 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11864 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11865 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11866 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11867 * mipsread.c (_initialize_mipsread): Add declaration.
11868 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11869 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11870 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11871 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11872 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11873 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11874 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11875 * nto-procfs.c (_initialize_procfs): Add declaration.
11876 * objc-lang.c (_initialize_objc_language): Add declaration.
11877 * observable.c (_initialize_observer): Add declaration.
11878 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11879 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11880 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11881 * osabi.c (_initialize_gdb_osabi): Add declaration.
11882 * osdata.c (_initialize_osdata): Add declaration.
11883 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11884 * parse.c (_initialize_parse): Add declaration.
11885 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11886 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11887 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11888 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11889 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11890 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11891 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11892 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11893 * printcmd.c (_initialize_printcmd): Add declaration.
11894 * probe.c (_initialize_probe): Add declaration.
11895 * proc-api.c (_initialize_proc_api): Add declaration.
11896 * proc-events.c (_initialize_proc_events): Add declaration.
11897 * proc-service.c (_initialize_proc_service): Add declaration.
11898 * procfs.c (_initialize_procfs): Add declaration.
11899 * producer.c (_initialize_producer): Add declaration.
11900 * psymtab.c (_initialize_psymtab): Add declaration.
11901 * python/python.c (_initialize_python): Add declaration.
11902 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11903 * record-btrace.c (_initialize_record_btrace): Add declaration.
11904 * record-full.c (_initialize_record_full): Add declaration.
11905 * record.c (_initialize_record): Add declaration.
11906 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11907 * regcache.c (_initialize_regcache): Add declaration.
11908 * reggroups.c (_initialize_reggroup): Add declaration.
11909 * remote-notif.c (_initialize_notif): Add declaration.
11910 * remote-sim.c (_initialize_remote_sim): Add declaration.
11911 * remote.c (_initialize_remote): Add declaration.
11912 * reverse.c (_initialize_reverse): Add declaration.
11913 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11914 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11915 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11916 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11917 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11918 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11919 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11920 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11921 Add declaration.
11922 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11923 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11924 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11925 * rust-exp.y (_initialize_rust_exp): Add declaration.
11926 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11927 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11928 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11929 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11930 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11931 * score-tdep.c (_initialize_score_tdep): Add declaration.
11932 * ser-go32.c (_initialize_ser_dos): Add declaration.
11933 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11934 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11935 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11936 * ser-uds.c (_initialize_ser_socket): Add declaration.
11937 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11938 * serial.c (_initialize_serial): Add declaration.
11939 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11940 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11941 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11942 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11943 * skip.c (_initialize_step_skip): Add declaration.
11944 * sol-thread.c (_initialize_sol_thread): Add declaration.
11945 * solib-aix.c (_initialize_solib_aix): Add declaration.
11946 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11947 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11948 * solib-frv.c (_initialize_frv_solib): Add declaration.
11949 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11950 * solib-target.c (_initialize_solib_target): Add declaration.
11951 * solib.c (_initialize_solib): Add declaration.
11952 * source-cache.c (_initialize_source_cache): Add declaration.
11953 * source.c (_initialize_source): Add declaration.
11954 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11955 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11956 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11957 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11958 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11959 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11960 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11961 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11962 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11963 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11964 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11965 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11966 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11967 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11968 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11969 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11970 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11971 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11972 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11973 * stabsread.c (_initialize_stabsread): Add declaration.
11974 * stack.c (_initialize_stack): Add declaration.
11975 * stap-probe.c (_initialize_stap_probe): Add declaration.
11976 * std-regs.c (_initialize_frame_reg): Add declaration.
11977 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11978 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11979 * symfile.c (_initialize_symfile): Add declaration.
11980 * symmisc.c (_initialize_symmisc): Add declaration.
11981 * symtab.c (_initialize_symtab): Add declaration.
11982 * target.c (_initialize_target): Add declaration.
11983 * target-connection.c (_initialize_target_connection): Add
11984 declaration.
11985 * target-dcache.c (_initialize_target_dcache): Add declaration.
11986 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11987 * thread.c (_initialize_thread): Add declaration.
11988 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11989 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11990 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11991 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11992 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11993 * tracectf.c (_initialize_ctf): Add declaration.
11994 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11995 * tracefile.c (_initialize_tracefile): Add declaration.
11996 * tracepoint.c (_initialize_tracepoint): Add declaration.
11997 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11998 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11999 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
12000 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
12001 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
12002 * tui/tui-win.c (_initialize_tui_win): Add declaration.
12003 * tui/tui.c (_initialize_tui): Add declaration.
12004 * typeprint.c (_initialize_typeprint): Add declaration.
12005 * ui-style.c (_initialize_ui_style): Add declaration.
12006 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
12007 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
12008 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
12009 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
12010 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
12011 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
12012 * unittests/filtered_iterator-selftests.c
12013 (_initialize_filtered_iterator_selftests): Add declaration.
12014 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
12015 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
12016 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12017 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12018 * unittests/main-thread-selftests.c
12019 (_initialize_main_thread_selftests): Add declaration.
12020 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12021 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12022 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12023 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12024 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12025 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12026 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12027 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12028 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12029 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12030 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12031 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12032 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12033 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12034 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12035 declaration.
12036 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12037 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12038 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12039 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12040 * user-regs.c (_initialize_user_regs): Add declaration.
12041 * utils.c (_initialize_utils): Add declaration.
12042 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12043 * valops.c (_initialize_valops): Add declaration.
12044 * valprint.c (_initialize_valprint): Add declaration.
12045 * value.c (_initialize_values): Add declaration.
12046 * varobj.c (_initialize_varobj): Add declaration.
12047 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12048 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12049 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12050 * windows-nat.c (_initialize_windows_nat): Add declaration.
12051 (_initialize_check_for_gdb_ini): Add declaration.
12052 (_initialize_loadable): Add declaration.
12053 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12054 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12055 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12056 * xcoffread.c (_initialize_xcoffread): Add declaration.
12057 * xml-support.c (_initialize_xml_support): Add declaration.
12058 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12059 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12060 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12061 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12062
12063 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12064
12065 * regformats/regdat.sh: Generate declaration for init function.
12066
12067 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12068
12069 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12070 up.
12071 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12072 close_one_inferior>: New methods.
12073 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12074 pass down target to find_inferior_pid.
12075 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12076 Pass down target to find_inferior_ptid.
12077 (gdbsim_target::create_inferior): Pass down target to
12078 add_thread_silent.
12079 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12080 target down to find_inferior_ptid and switch_to_thread.
12081 (gdbsim_target::close): Update to call close_one_inferior.
12082 (struct resume_data): Remove.
12083 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12084 directly, rather than through a void pointer.
12085 (gdbsim_target::resume): Update to call resume_one_inferior.
12086
12087 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12088
12089 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12090
12091 2020-01-12 Pedro Alves <palves@redhat.com>
12092
12093 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12094 directly for the current inferior instead of
12095 discard_all_inferiors.
12096 (discard_all_inferiors): Delete.
12097
12098 2020-01-11 Tom Tromey <tom@tromey.com>
12099
12100 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12101 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12102 deprecated_safe_get_selected_frame.
12103
12104 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12105
12106 * inferior.c (print_inferior): Switch inferior before printing it.
12107
12108 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12109 Pedro Alves <palves@redhat.com>
12110
12111 * progspace-and-thread.c (switch_to_program_space_and_thread):
12112 Assert there's an inferior for PSPACE. Use
12113 switch_to_inferior_no_thread to switch the inferior too.
12114 * progspace.c (program_space::~program_space): Call
12115 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12116 (program_space::free_all_objfiles): Don't call clear_symtab_users
12117 here.
12118 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12119
12120 2020-01-10 Pedro Alves <palves@redhat.com>
12121
12122 * NEWS: Mention multi-target debugging, "info connections", and
12123 "add-inferior -no-connection".
12124
12125 2020-01-10 Pedro Alves <palves@redhat.com>
12126
12127 * infrun.c: Include "target-connection.h".
12128 (check_multi_target_resumption): New.
12129 (proceed): Call it.
12130 * target-connection.c (make_target_connection_string): Make
12131 extern.
12132 * target-connection.h (make_target_connection_string): Declare.
12133
12134 2020-01-10 Pedro Alves <palves@redhat.com>
12135
12136 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12137 * inferior.c (uiout_field_connection): New function.
12138 (print_inferior): Add new "connection-id" column.
12139 (add_inferior_command): Show connection number/string of added
12140 inferior.
12141 * process-stratum-target.h
12142 (process_stratum_target::connection_string): New virtual method.
12143 (process_stratum_target::connection_number): New field.
12144 * remote.c (remote_target::connection_string): New override.
12145 * target-connection.c: New file.
12146 * target-connection.h: New file.
12147 * target.c (decref_target): Remove process_stratum targets from
12148 the connection list.
12149 (target_stack::push): Add process_stratum targets to the
12150 connection list.
12151
12152 2020-01-10 Pedro Alves <palves@redhat.com>
12153
12154 Revert:
12155 2016-04-12 Pedro Alves <palves@redhat.com>
12156 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12157 Remove references to name.
12158 * serial.h (struct serial) <name>: Delete.
12159
12160 2020-01-10 Pedro Alves <palves@redhat.com>
12161
12162 * gdbarch-selftests.c (register_to_value_test): Remove "target
12163 already pushed" check.
12164
12165 2020-01-10 Pedro Alves <palves@redhat.com>
12166 John Baldwin <jhb@FreeBSD.org>
12167
12168 * aarch64-linux-nat.c
12169 (aarch64_linux_nat_target::thread_architecture): Adjust.
12170 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12171 (task_command_1): Likewise.
12172 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12173 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12174 (aix_thread_target::store_registers)
12175 (aix_thread_target::thread_alive): Adjust.
12176 * amd64-fbsd-tdep.c: Include "inferior.h".
12177 (amd64fbsd_get_thread_local_address): Pass down target.
12178 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12179 thread's gdbarch instead of target_gdbarch.
12180 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12181 get_last_target_status.
12182 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12183 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12184 inferiors.
12185 (update_inserted_breakpoint_locations): Skip if inferiors with no
12186 execution.
12187 (update_global_location_list): When handling moribund locations,
12188 find representative inferior for location's pspace, and use thread
12189 count of its process_stratum target.
12190 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12191 * bsd-uthread.c (bsd_uthread_target::wait): Use
12192 as_process_stratum_target and adjust thread_change_ptid and
12193 add_thread calls.
12194 (bsd_uthread_target::update_thread_list): Use
12195 as_process_stratum_target and adjust find_thread_ptid,
12196 thread_change_ptid and add_thread calls.
12197 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12198 find_thread_ptid call.
12199 * corelow.c (add_to_thread_list): Adjust add_thread call.
12200 (core_target_open): Adjust add_thread_silent and thread_count
12201 calls.
12202 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12203 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12204 * event-top.c (async_disconnect): Pop targets from all inferiors.
12205 * exec.c (add_target_sections): Push exec target on all inferiors
12206 sharing the program space.
12207 (remove_target_sections): Remove the exec target from all
12208 inferiors sharing the program space.
12209 (exec_on_vfork): New.
12210 * exec.h (exec_on_vfork): Declare.
12211 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12212 Pass it down.
12213 (fbsd_nat_target::update_thread_list): Adjust.
12214 (fbsd_nat_target::resume): Adjust.
12215 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12216 down.
12217 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12218 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12219 get_thread_arch_regcache call.
12220 * fork-child.c (gdb_startup_inferior): Pass target down to
12221 startup_inferior and set_executing.
12222 * gdbthread.h (struct process_stratum_target): Forward declare.
12223 (add_thread, add_thread_silent, add_thread_with_info)
12224 (in_thread_list): Add process_stratum_target parameter.
12225 (find_thread_ptid(inferior*, ptid_t)): New overload.
12226 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12227 parameter.
12228 (all_threads()): Delete overload.
12229 (all_threads, all_non_exited_threads): Add process_stratum_target
12230 parameter.
12231 (all_threads_safe): Use brace initialization.
12232 (thread_count): Add process_stratum_target parameter.
12233 (set_resumed, set_running, set_stop_requested, set_executing)
12234 (threads_are_executing, finish_thread_state): Add
12235 process_stratum_target parameter.
12236 (switch_to_thread): Use is_current_thread.
12237 * i386-fbsd-tdep.c: Include "inferior.h".
12238 (i386fbsd_get_thread_local_address): Pass down target.
12239 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12240 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12241 have_inferiors check.
12242 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12243 (inf_ptrace_target::attach): Adjust.
12244 * infcall.c (run_inferior_call): Adjust.
12245 * infcmd.c (run_command_1): Pass target to
12246 scoped_finish_thread_state.
12247 (proceed_thread_callback): Skip inferiors with no execution.
12248 (continue_command): Rename 'all_threads' local to avoid hiding
12249 'all_threads' function. Adjust get_last_target_status call.
12250 (prepare_one_step): Adjust set_running call.
12251 (signal_command): Use user_visible_resume_target. Compare thread
12252 pointers instead of inferior_ptid.
12253 (info_program_command): Adjust to pass down target.
12254 (attach_command): Mark target's 'thread_executing' flag.
12255 (stop_current_target_threads_ns): New, factored out from ...
12256 (interrupt_target_1): ... this. Switch inferior before making
12257 target calls.
12258 * inferior-iter.h
12259 (struct all_inferiors_iterator, struct all_inferiors_range)
12260 (struct all_inferiors_safe_range)
12261 (struct all_non_exited_inferiors_range): Filter on
12262 process_stratum_target too. Remove explicit.
12263 * inferior.c (inferior::inferior): Push dummy target on target
12264 stack.
12265 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12266 Add process_stratum_target parameter, and pass it down.
12267 (have_live_inferiors): Adjust.
12268 (switch_to_inferior_and_push_target): New.
12269 (add_inferior_command, clone_inferior_command): Handle
12270 "-no-connection" parameter. Use
12271 switch_to_inferior_and_push_target.
12272 (_initialize_inferior): Mention "-no-connection" option in
12273 the help of "add-inferior" and "clone-inferior" commands.
12274 * inferior.h: Include "process-stratum-target.h".
12275 (interrupt_target_1): Use bool.
12276 (struct inferior) <push_target, unpush_target, target_is_pushed,
12277 find_target_beneath, top_target, process_target, target_at,
12278 m_stack>: New.
12279 (discard_all_inferiors): Delete.
12280 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12281 (all_inferiors, all_non_exited_inferiors): Add
12282 process_stratum_target parameter.
12283 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12284 (target_last_proc_target): New global.
12285 (follow_fork_inferior): Push target on new inferior. Pass target
12286 to add_thread_silent. Call exec_on_vfork. Handle target's
12287 reference count.
12288 (follow_fork): Adjust get_last_target_status call. Also consider
12289 target.
12290 (follow_exec): Push target on new inferior.
12291 (struct execution_control_state) <target>: New field.
12292 (user_visible_resume_target): New.
12293 (do_target_resume): Call target_async.
12294 (resume_1): Set target's threads_executing flag. Consider resume
12295 target.
12296 (commit_resume_all_targets): New.
12297 (proceed): Also consider resume target. Skip threads of inferiors
12298 with no execution. Commit resumtion in all targets.
12299 (start_remote): Pass current inferior to wait_for_inferior.
12300 (infrun_thread_stop_requested): Consider target as well. Pass
12301 thread_info pointer to clear_inline_frame_state instead of ptid.
12302 (infrun_thread_thread_exit): Consider target as well.
12303 (random_pending_event_thread): New inferior parameter. Use it.
12304 (do_target_wait): Rename to ...
12305 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12306 down.
12307 (threads_are_resumed_pending_p, do_target_wait): New.
12308 (prepare_for_detach): Adjust calls.
12309 (wait_for_inferior): New inferior parameter. Handle it. Use
12310 do_target_wait_1 instead of do_target_wait.
12311 (fetch_inferior_event): Adjust. Switch to representative
12312 inferior. Pass target down.
12313 (set_last_target_status): Add process_stratum_target parameter.
12314 Save target in global.
12315 (get_last_target_status): Add process_stratum_target parameter and
12316 handle it.
12317 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12318 (context_switch): Check inferior_ptid == null_ptid before calling
12319 inferior_thread().
12320 (get_inferior_stop_soon): Pass down target.
12321 (wait_one): Rename to ...
12322 (poll_one_curr_target): ... this.
12323 (struct wait_one_event): New.
12324 (wait_one): New.
12325 (stop_all_threads): Adjust.
12326 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12327 event's target.
12328 (switch_back_to_stepped_thread): Also consider target.
12329 (print_stop_event): Update.
12330 (normal_stop): Update. Also consider the resume target.
12331 * infrun.h (wait_for_inferior): Remove declaration.
12332 (user_visible_resume_target): New declaration.
12333 (get_last_target_status, set_last_target_status): New
12334 process_stratum_target parameter.
12335 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12336 process_stratum_target parameter, and use it.
12337 (clear_inline_frame_state (thread_info*)): New.
12338 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12339 process_stratum_target parameter.
12340 (clear_inline_frame_state (thread_info*)): Declare.
12341 * linux-fork.c (delete_checkpoint_command): Pass target down to
12342 find_thread_ptid.
12343 (checkpoint_command): Adjust.
12344 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12345 instead of just tweaking inferior_ptid.
12346 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12347 (exit_lwp): Pass target down to find_thread_ptid.
12348 (attach_proc_task_lwp_callback): Pass target down to
12349 add_thread/set_running/set_executing.
12350 (linux_nat_target::attach): Pass target down to
12351 thread_change_ptid.
12352 (get_detach_signal): Pass target down to find_thread_ptid.
12353 Consider last target status's target.
12354 (linux_resume_one_lwp_throw, resume_lwp)
12355 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12356 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12357 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12358 (linux_nat_target::async_wait_fd): New.
12359 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12360 target down.
12361 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12362 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12363 * linux-thread-db.c (struct thread_db_info::process_target): New
12364 field.
12365 (add_thread_db_info): Save target.
12366 (get_thread_db_info): New process_stratum_target parameter. Also
12367 match target.
12368 (delete_thread_db_info): New process_stratum_target parameter.
12369 Also match target.
12370 (thread_from_lwp): Adjust to pass down target.
12371 (thread_db_notice_clone): Pass down target.
12372 (check_thread_db_callback): Pass down target.
12373 (try_thread_db_load_1): Always push the thread_db target.
12374 (try_thread_db_load, record_thread): Pass target down.
12375 (thread_db_target::detach): Pass target down. Always unpush the
12376 thread_db target.
12377 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12378 target down. Always unpush the thread_db target.
12379 (find_new_threads_callback, thread_db_find_new_threads_2)
12380 (thread_db_target::update_thread_list): Pass target down.
12381 (thread_db_target::pid_to_str): Pass current inferior down.
12382 (thread_db_target::get_thread_local_address): Pass target down.
12383 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12384 target down.
12385 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12386 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12387 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12388 (procfs_init_inferior): Rename to ...
12389 (procfs_target::procfs_init_inferior): ... this and adjust.
12390 (procfs_target::create_inferior, procfs_notice_thread)
12391 (procfs_do_thread_registers): Adjust.
12392 * ppc-fbsd-tdep.c: Include "inferior.h".
12393 (ppcfbsd_get_thread_local_address): Pass down target.
12394 * proc-service.c (ps_xfer_memory): Switch current inferior and
12395 program space as well.
12396 (get_ps_regcache): Pass target down.
12397 * process-stratum-target.c
12398 (process_stratum_target::thread_address_space)
12399 (process_stratum_target::thread_architecture): Pass target down.
12400 * process-stratum-target.h
12401 (process_stratum_target::threads_executing): New field.
12402 (as_process_stratum_target): New.
12403 * ravenscar-thread.c
12404 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12405 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12406 down.
12407 * record-btrace.c (record_btrace_target::info_record): Adjust.
12408 (record_btrace_target::record_method)
12409 (record_btrace_target::record_is_replaying)
12410 (record_btrace_target::fetch_registers)
12411 (get_thread_current_frame_id, record_btrace_target::resume)
12412 (record_btrace_target::wait, record_btrace_target::stop): Pass
12413 target down.
12414 * record-full.c (record_full_wait_1): Switch to event thread.
12415 Pass target down.
12416 * regcache.c (regcache::regcache)
12417 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12418 process_stratum_target parameter and handle it.
12419 (current_thread_target): New global.
12420 (get_thread_regcache): Add process_stratum_target parameter and
12421 handle it. Switch inferior before calling target method.
12422 (get_thread_regcache): Pass target down.
12423 (get_thread_regcache_for_ptid): Pass target down.
12424 (registers_changed_ptid): Add process_stratum_target parameter and
12425 handle it.
12426 (registers_changed_thread, registers_changed): Pass target down.
12427 (test_get_thread_arch_aspace_regcache): New.
12428 (current_regcache_test): Define a couple local test_target_ops
12429 instances and use them for testing.
12430 (readwrite_regcache): Pass process_stratum_target parameter.
12431 (cooked_read_test, cooked_write_test): Pass mock_target down.
12432 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12433 (get_thread_arch_aspace_regcache): Add process_stratum_target
12434 parameter.
12435 (regcache::target): New method.
12436 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12437 (regcache::registers_changed_ptid): Add process_stratum_target
12438 parameter.
12439 (regcache::m_target): New field.
12440 (registers_changed_ptid): Add process_stratum_target parameter.
12441 * remote.c (remote_state::supports_vCont_probed): New field.
12442 (remote_target::async_wait_fd): New method.
12443 (remote_unpush_and_throw): Add remote_target parameter.
12444 (get_current_remote_target): Adjust.
12445 (remote_target::remote_add_inferior): Push target.
12446 (remote_target::remote_add_thread)
12447 (remote_target::remote_notice_new_inferior)
12448 (get_remote_thread_info): Pass target down.
12449 (remote_target::update_thread_list): Skip threads of inferiors
12450 bound to other targets. (remote_target::close): Don't discard
12451 inferiors. (remote_target::add_current_inferior_and_thread)
12452 (remote_target::process_initial_stop_replies)
12453 (remote_target::start_remote)
12454 (remote_target::remote_serial_quit_handler): Pass down target.
12455 (remote_target::remote_unpush_target): New remote_target
12456 parameter. Unpush the target from all inferiors.
12457 (remote_target::remote_unpush_and_throw): New remote_target
12458 parameter. Pass it down.
12459 (remote_target::open_1): Check whether the current inferior has
12460 execution instead of checking whether any inferior is live. Pass
12461 target down.
12462 (remote_target::remote_detach_1): Pass down target. Use
12463 remote_unpush_target.
12464 (extended_remote_target::attach): Pass down target.
12465 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12466 (remote_target::append_resumption): Pass down target.
12467 (remote_target::append_pending_thread_resumptions)
12468 (remote_target::remote_resume_with_hc, remote_target::resume)
12469 (remote_target::commit_resume): Pass down target.
12470 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12471 (remote_target::interrupt_query)
12472 (remote_target::remove_new_fork_children)
12473 (remote_target::check_pending_events_prevent_wildcard_vcont)
12474 (remote_target::remote_parse_stop_reply)
12475 (remote_target::process_stop_reply): Pass down target.
12476 (first_remote_resumed_thread): New remote_target parameter. Pass
12477 it down.
12478 (remote_target::wait_as): Pass down target.
12479 (unpush_and_perror): New remote_target parameter. Pass it down.
12480 (remote_target::readchar, remote_target::remote_serial_write)
12481 (remote_target::getpkt_or_notif_sane_1)
12482 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12483 down target.
12484 (remote_target::mourn_inferior): Pass down target. Use
12485 remote_unpush_target.
12486 (remote_target::core_of_thread)
12487 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12488 (remote_target::pid_to_exec_file)
12489 (remote_target::thread_handle_to_thread_info): Pass down target.
12490 (remote_target::async_wait_fd): New.
12491 * riscv-fbsd-tdep.c: Include "inferior.h".
12492 (riscv_fbsd_get_thread_local_address): Pass down target.
12493 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12494 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12495 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12496 Adjust.
12497 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12498 * solib-svr4.c (enable_break): Pass down target.
12499 * spu-multiarch.c (parse_spufs_run): Pass down target.
12500 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12501 * target-delegates.c: Regenerate.
12502 * target.c (g_target_stack): Delete.
12503 (current_top_target): Return the current inferior's top target.
12504 (target_has_execution_1): Refer to the passed-in inferior's top
12505 target.
12506 (target_supports_terminal_ours): Check whether the initial
12507 inferior was already created.
12508 (decref_target): New.
12509 (target_stack::push): Incref/decref the target.
12510 (push_target, push_target, unpush_target): Adjust.
12511 (target_stack::unpush): Defref target.
12512 (target_is_pushed): Return bool. Adjust to refer to the current
12513 inferior's target stack.
12514 (dispose_inferior): Delete, and inline parts ...
12515 (target_preopen): ... here. Only dispose of the current inferior.
12516 (target_detach): Hold strong target reference while detaching.
12517 Pass target down.
12518 (target_thread_name): Add assertion.
12519 (target_resume): Pass down target.
12520 (target_ops::beneath, find_target_at): Adjust to refer to the
12521 current inferior's target stack.
12522 (get_dummy_target): New.
12523 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12524 has a thread running.
12525 (initialize_targets): Rename to ...
12526 (_initialize_target): ... this.
12527 * target.h: Include "gdbsupport/refcounted-object.h".
12528 (struct target_ops): Inherit refcounted_object.
12529 (target_ops::shortname, target_ops::longname): Make const.
12530 (target_ops::async_wait_fd): New method.
12531 (decref_target): Declare.
12532 (struct target_ops_ref_policy): New.
12533 (target_ops_ref): New typedef.
12534 (get_dummy_target): Declare function.
12535 (target_is_pushed): Return bool.
12536 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12537 (all_matching_threads_iterator::all_matching_threads_iterator):
12538 Handle filter target.
12539 * thread-iter.h (struct all_matching_threads_iterator, struct
12540 all_matching_threads_range, class all_non_exited_threads_range):
12541 Filter by target too. Remove explicit.
12542 * thread.c (threads_executing): Delete.
12543 (inferior_thread): Pass down current inferior.
12544 (clear_thread_inferior_resources): Pass down thread pointer
12545 instead of ptid_t.
12546 (add_thread_silent, add_thread_with_info, add_thread): Add
12547 process_stratum_target parameter. Use it for thread and inferior
12548 searches.
12549 (is_current_thread): New.
12550 (thread_info::deletable): Use it.
12551 (find_thread_ptid, thread_count, in_thread_list)
12552 (thread_change_ptid, set_resumed, set_running): New
12553 process_stratum_target parameter. Pass it down.
12554 (set_executing): New process_stratum_target parameter. Pass it
12555 down. Adjust reference to 'threads_executing'.
12556 (threads_are_executing): New process_stratum_target parameter.
12557 Adjust reference to 'threads_executing'.
12558 (set_stop_requested, finish_thread_state): New
12559 process_stratum_target parameter. Pass it down.
12560 (switch_to_thread): Also match inferior.
12561 (switch_to_thread): New process_stratum_target parameter. Pass it
12562 down.
12563 (update_threads_executing): Reimplement.
12564 * top.c (quit_force): Pop targets from all inferior.
12565 (gdb_init): Don't call initialize_targets.
12566 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12567 Declare.
12568 (windows_add_thread, windows_delete_thread): Adjust.
12569 (get_windows_debug_event): Rename to ...
12570 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12571 * tracefile-tfile.c (tfile_target_open): Pass down target.
12572 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12573 Forward declare.
12574 (switch_to_thread): Add process_stratum_target parameter.
12575 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12576 parameter. Use it.
12577 (mi_on_resume): Pass target down.
12578 * nat/fork-inferior.c (startup_inferior): Add
12579 process_stratum_target parameter. Pass it down.
12580 * nat/fork-inferior.h (startup_inferior): Add
12581 process_stratum_target parameter.
12582 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12583
12584 2020-01-10 Pedro Alves <palves@redhat.com>
12585
12586 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12587 directly. Instead find the first thread in the thread list and
12588 use switch_to_thread.
12589
12590 2020-01-10 Pedro Alves <palves@redhat.com>
12591
12592 * remote.c (remote_target::remote_add_inferior): Don't bind a
12593 process to the current inferior if the current inferior is already
12594 bound to a process.
12595
12596 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12597 Pedro Alves <palves@redhat.com>
12598
12599 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12600 If no process is specified, return null_ptid instead of
12601 inferior_ptid.
12602 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12603 TARGET_WAITKIND_SIGNALLED with no pid.
12604
12605 2020-01-10 Pedro Alves <palves@redhat.com>
12606
12607 * remote.c (first_remote_resumed_thread): New.
12608 (remote_target::wait_as): Use it as default event_ptid instead of
12609 inferior_ptid.
12610
12611 2020-01-10 Pedro Alves <palves@redhat.com>
12612
12613 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12614
12615 2020-01-10 Pedro Alves <palves@redhat.com>
12616
12617 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12618 not -1.
12619
12620 2020-01-10 Pedro Alves <palves@redhat.com>
12621
12622 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12623 ptid to get_last_target_status.
12624 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12625 ptid to get_last_target_status.
12626 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12627 get_last_target_status.
12628 (info_program_command): Don't pass a target_waitstatus to
12629 get_last_target_status.
12630 * infrun.c (init_wait_for_inferior): Use
12631 nullify_last_target_wait_ptid.
12632 (get_last_target_status): Handle nullptr arguments.
12633 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12634 (print_stop_event): Don't pass a ptid to get_last_target_status.
12635 (normal_stop): Don't pass a ptid to get_last_target_status.
12636 * infrun.h (get_last_target_status, set_last_target_status): Move
12637 comments here and update.
12638 (nullify_last_target_wait_ptid): Declare.
12639 * linux-fork.c (fork_load_infrun_state): Remove local extern
12640 declaration of nullify_last_target_wait_ptid.
12641 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12642 to get_last_target_status.
12643
12644 2020-01-10 Pedro Alves <palves@redhat.com>
12645
12646 * gdbthread.h (scoped_restore_current_thread)
12647 <dont_restore, restore, m_dont_restore>: Declare.
12648 * thread.c (thread_alive): Add assertion. Return bool.
12649 (switch_to_thread_if_alive): New.
12650 (prune_threads): Switch inferior/thread.
12651 (print_thread_info_1): Switch thread before calling target methods.
12652 (scoped_restore_current_thread::restore): New, factored out from
12653 ...
12654 (scoped_restore_current_thread::~scoped_restore_current_thread):
12655 ... this.
12656 (scoped_restore_current_thread::scoped_restore_current_thread):
12657 Add assertion.
12658 (thread_apply_all_command, thread_select): Use
12659 switch_to_thread_if_alive.
12660 * infrun.c (proceed, restart_threads, handle_signal_stop)
12661 (switch_back_to_stepped_thread): Switch current thread before
12662 calling target methods.
12663
12664 2020-01-10 Pedro Alves <palves@redhat.com>
12665
12666 * inferior.c (switch_to_inferior_no_thread): New function,
12667 factored out from ...
12668 (inferior_command): ... here.
12669 * inferior.h (switch_to_inferior_no_thread): Declare.
12670 * mi/mi-main.c (run_one_inferior): Use
12671 switch_to_inferior_no_thread.
12672
12673 2020-01-10 Pedro Alves <palves@redhat.com>
12674
12675 * infcmd.c (kill_command): Remove dead code.
12676
12677 2020-01-10 Pedro Alves <palves@redhat.com>
12678
12679 * remote.c (remote_target::mourn_inferior): No longer check
12680 whether the target is running.
12681
12682 2020-01-10 Pedro Alves <palves@redhat.com>
12683
12684 * corelow.c (core_target::has_execution): Change parameter type to
12685 inferior pointer.
12686 * inferior.c (number_of_live_inferiors): Use
12687 inferior::has_execution instead of target_has_execution_1.
12688 * inferior.h (inferior::has_execution): New.
12689 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12690 inferior::has_execution instead of target_has_execution_1.
12691 * process-stratum-target.c
12692 (process_stratum_target::has_execution): Change parameter type to
12693 inferior pointer. Check the inferior's PID instead of
12694 inferior_ptid.
12695 * process-stratum-target.h
12696 (process_stratum_target::has_execution): Change parameter type to
12697 inferior pointer.
12698 * record-full.c (record_full_core_target::has_execution): Change
12699 parameter type to inferior pointer.
12700 * target.c (target_has_execution_1): Change parameter type to
12701 inferior pointer.
12702 (target_has_execution_current): Adjust.
12703 * target.h (target_ops::has_execution): Change parameter type to
12704 inferior pointer.
12705 (target_has_execution_1): Change parameter type to inferior
12706 pointer. Change return type to bool.
12707 * tracefile.h (tracefile_target::has_execution): Change parameter
12708 type to inferior pointer.
12709
12710 2020-01-10 Pedro Alves <palves@redhat.com>
12711
12712 * exceptions.c (print_flush): Remove current_top_target() check.
12713
12714 2020-01-10 Pedro Alves <palves@redhat.com>
12715
12716 * remote.c (show_remote_exec_file): Show the current inferior's
12717 exec-file instead of the command variable's value.
12718
12719 2020-01-10 Pedro Alves <palves@redhat.com>
12720
12721 * record-full.c (record_full_resume_ptid): New global.
12722 (record_full_target::resume): Set it.
12723 (record_full_wait_1): Use record_full_resume_ptid instead of
12724 inferior_ptid.
12725
12726 2020-01-10 Pedro Alves <palves@redhat.com>
12727
12728 * gdbthread.h (scoped_restore_current_thread)
12729 <dont_restore, restore, m_dont_restore>: Declare.
12730 * thread.c (thread_alive): Add assertion. Return bool.
12731 (switch_to_thread_if_alive): New.
12732 (prune_threads): Switch inferior/thread.
12733 (print_thread_info_1): Switch thread before calling target methods.
12734 (scoped_restore_current_thread::restore): New, factored out from
12735 ...
12736 (scoped_restore_current_thread::~scoped_restore_current_thread):
12737 ... this.
12738 (scoped_restore_current_thread::scoped_restore_current_thread):
12739 Add assertion.
12740 (thread_apply_all_command, thread_select): Use
12741 switch_to_thread_if_alive.
12742
12743 2020-01-10 George Barrett <bob@bob131.so>
12744
12745 * stap-probe.c (stap_modify_semaphore): Don't check for null
12746 semaphores.
12747 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12748 for null semaphores.
12749
12750 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12751
12752 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12753 all source windows, and maintain horizontal scroll status while
12754 doing so.
12755
12756 2020-01-09 Tom Tromey <tom@tromey.com>
12757
12758 PR tui/18932:
12759 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12760 update_source_window, not print_source_lines.
12761
12762 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12763
12764 * tui/tui.c (tui_enable): Register tui hooks after calling
12765 tui_display_main.
12766
12767 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12768
12769 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12770
12771 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12772
12773 * thread.c (print_thread_info_1): Fix indentation.
12774
12775 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12776
12777 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12778 unique_xmalloc_ptr outside the if to always free the demangled name.
12779
12780 2020-01-08 Tom Tromey <tromey@adacore.com>
12781
12782 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12783 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12784 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12785 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12786 Remove.
12787 (section_offsets): New typedef.
12788 * symtab.c (fixup_section, get_msymbol_address): Update.
12789 * symmisc.c (dump_msymbols): Update.
12790 * symfile.h (relative_addr_info_to_section_offsets)
12791 (symfile_map_offsets_to_segments): Update.
12792 * symfile.c (build_section_addr_info_from_objfile)
12793 (init_objfile_sect_indices): Update.
12794 (struct place_section_arg): Change type of "offsets".
12795 (place_section): Update.
12796 (relative_addr_info_to_section_offsets): Change type of
12797 "section_offsets". Remove "num_sections" parameter.
12798 (default_symfile_offsets, syms_from_objfile_1)
12799 (set_objfile_default_section_offset): Update.
12800 (reread_symbols): No need to preserve section offsets by hand.
12801 (symfile_map_offsets_to_segments): Change type of "offsets".
12802 * stap-probe.c (relocate_address): Update.
12803 * stabsread.h (process_one_symbol): Update.
12804 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12805 (solib_target_relocate_section_addresses): Update.
12806 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12807 Update.
12808 * solib-frv.c (frv_relocate_main_executable): Update.
12809 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12810 * solib-aix.c (solib_aix_get_section_offsets): Change return
12811 type.
12812 (solib_aix_solib_create_inferior_hook): Update.
12813 * remote.c (remote_target::get_offsets): Update.
12814 * psymtab.c (find_pc_sect_psymtab): Update.
12815 * psympriv.h (struct partial_symbol) <address, text_low,
12816 text_high>: Update.
12817 * objfiles.h (obj_section_offset): Update.
12818 (struct objfile) <section_offsets>: Change type.
12819 <num_sections>: Remove.
12820 (objfile_relocate): Update.
12821 * objfiles.c (entry_point_address_query): Update
12822 (relocate_one_symbol): Change type of "section_offsets".
12823 (objfile_relocate1, objfile_relocate1): Change type of
12824 "new_offsets".
12825 (objfile_rebase1): Update.
12826 * mipsread.c (mipscoff_symfile_read): Update.
12827 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12828 parameter.
12829 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12830 (parse_external, psymtab_to_symtab_1): Update.
12831 * machoread.c (macho_symfile_offsets): Update.
12832 * ia64-tdep.c (ia64_find_unwind_table): Update.
12833 * hppa-tdep.c (read_unwind_info): Update.
12834 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12835 * dwarf2read.c (create_addrmap_from_index)
12836 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12837 (process_psymtab_comp_unit_reader, add_partial_symbol)
12838 (add_partial_subprogram, process_full_comp_unit)
12839 (read_file_scope, read_func_scope, read_lexical_block_scope)
12840 (read_call_site_scope, dwarf2_rnglists_process)
12841 (dwarf2_ranges_process, dwarf2_ranges_read)
12842 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12843 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12844 Update.
12845 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12846 Update.
12847 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12848 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12849 (process_one_symbol): Change type of "section_offsets".
12850 * ctfread.c (get_objfile_text_range): Update.
12851 * coffread.c (coff_symtab_read, enter_linenos)
12852 (process_coff_symbol): Update.
12853 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12854 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12855
12856 2020-01-08 Tom Tromey <tromey@adacore.com>
12857
12858 * dwarf2read.c (parse_macro_definition): Use std::string.
12859 (parse_macro_definition): Likewise.
12860
12861 2020-01-08 Tom Tromey <tromey@adacore.com>
12862
12863 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12864 (ATTR_ALLOC_CHUNK): Remove.
12865
12866 2020-01-08 Tom Tromey <tromey@adacore.com>
12867
12868 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12869
12870 2020-01-08 Tom Tromey <tromey@adacore.com>
12871
12872 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12873 (dwarf2_compute_name, open_dwo_file): Likewise.
12874 (process_enumeration_scope): Use std::vector.
12875 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12876 (partial_die_info::fixup, dwarf2_start_subfile)
12877 (guess_full_die_structure_name, dwarf2_name): Likewise.
12878 (determine_prefix): Update.
12879 (guess_full_die_structure_name): Make return type const.
12880 (partial_die_full_name): Return unique_xmalloc_ptr.
12881 (DW_FIELD_ALLOC_CHUNK): Remove.
12882
12883 2020-01-07 Tom Tromey <tromey@adacore.com>
12884
12885 PR build/24937:
12886 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12887
12888 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12889
12890 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12891
12892 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12893
12894 * stack.c (print_frame_info): Move disassemble_next_line code
12895 inside source_print block.
12896
12897 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12898
12899 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12900 gdb/signals.h, as we are now using native signal symbols.
12901
12902 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12903
12904 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12905 overflow by an early check of content vs threshold.
12906 * tui/tui-source.c (tui_source_window::line_is_displayed):
12907 Likewise.
12908
12909 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12910
12911 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12912
12913 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12914
12915 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12916 export table if no section contains it's RVA.
12917
12918 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12919
12920 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12921
12922 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12923
12924 * source.c (print_source_lines_base): Set last_line_listed.
12925
12926 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12927
12928 * tui/tui-disasm.c: Remove trailing spaces.
12929
12930 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12931 Pedro Alves <palves@redhat.com>
12932
12933 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12934 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12935 (windows_gdb_signal_to_target): New function, uses the above
12936 enumeration to convert GDB internal signal codes to equivalent
12937 Windows codes.
12938 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12939 * windows-nat.c: Include "gdb_wait.h".
12940 (get_windows_debug_event): Extract the fatal exception from the
12941 exit status and convert to the equivalent Posix signal number.
12942 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12943 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12944 * gdbsupport/gdb_wait.c: New file, implements
12945 windows_status_to_termsig.
12946 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12947 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12948
12949 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12950
12951 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12952 show_layout.
12953
12954 2020-01-05 Luis Machado <luis.machado@linaro.org>
12955
12956 * aarch64-linux-nat.c
12957 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12958 and bfd_mach_aarch64.
12959
12960 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12961
12962 * ui-file.c (stdio_file::can_emit_style_escape)
12963 (tee_file::can_emit_style_escape): Ensure style is used also on
12964 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12965 to gdb_stdout.
12966 * main.c (set_gdb_data_directory): Use file style to output the
12967 warning that the given pathname is not a directory.
12968 * top.c (show_history_filename, gdb_safe_append_history)
12969 (show_gdb_datadir): Use file style.
12970
12971 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12972
12973 * solib-target.c (struct lm_info_target):
12974 Change offsets to be a unique_xmalloc_ptr.
12975 (solib_target_relocate_section_addresses): Update.
12976
12977 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12978
12979 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12980
12981 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12982
12983 * MAINTAINERS (Write After Approval): Add myself.
12984
12985 2020-01-02 Luis Machado <luis.machado@linaro.org>
12986
12987 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12988 Cell BE architecture.
12989 * target.h (struct target_ops) <thread_architecture>: Likewise.
12990
12991 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12992
12993 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12994
12995 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12996
12997 * MAINTAINERS (Write After Approval): Add myself.
12998
12999 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13000
13001 * gdbarch.sh: Update copyright year range of generated files.
13002
13003 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13004
13005 Update copyright year range in all GDB files.
13006
13007 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13008
13009 * copyright.py: Convert to Python 3.
13010
13011 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13012
13013 * copyright.py: Adapt after move of gnulib directory from gdb
13014 directory to toplevel directory.
13015
13016 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13017
13018 * copyright.py (main): Exit if run from the wrong directory.
13019
13020 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13021
13022 * top.c (print_gdb_version): Change copyright year to 2020.
13023
13024 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13025
13026 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13027
13028 For older changes see ChangeLog-2019.
13029 \f
13030 Local Variables:
13031 mode: change-log
13032 left-margin: 8
13033 fill-column: 74
13034 version-control: never
13035 coding: utf-8
13036 End: