Remove ui::num
[binutils-gdb.git] / gdb / ChangeLog
1 2020-09-15 Tom Tromey <tromey@adacore.com>
2
3 * top.c (ui::ui): Update.
4 (highest_ui_num): Remove.
5 * top.h (struct ui) <num>: Remove.
6
7 2020-09-15 Tom Tromey <tromey@adacore.com>
8
9 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
10 * ui-style.c (ansi_regex_text): Now array.
11 * rust-exp.y (number_regex_text): Now array.
12 * linespec.c (linespec_quote_characters): Now array.
13 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
14 Now arrays.
15
16 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
17
18 * debuginfod-support.c (debuginfod_client_deleter): New.
19 (debuginfod_client_up): New.
20 (debuginfod_init): Return debuginfod_client_up.
21 (debuginfod_source_query): Adjust.
22 (debuginfod_debuginfo_query): Adjust.
23
24 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
25
26 * debuginfod-support.c (debuginfod_source_query): Use
27 make_unique_xstrdup.
28
29 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
30
31 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
32 with `type::instance_flags`.
33
34 2020-09-14 Michael Mullin <masmullin@gmail.com>
35
36 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
37 Remove baton parameter.
38
39 2020-09-14 Pedro Alves <pedro@palves.net>
40
41 * Makefile.in (SELFTESTS_SRCS): Add
42 unittests/enum-flags-selftests.c.
43 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
44 btrace_function_flags instead of enum btrace_function_flag.
45 * compile/compile-c-types.c (convert_qualified): Use
46 enum_flags::raw.
47 * compile/compile-cplus-symbols.c (convert_one_symbol)
48 (convert_symbol_bmsym):
49 * compile/compile-cplus-types.c (compile_cplus_convert_method)
50 (compile_cplus_convert_struct_or_union_methods)
51 (compile_cplus_instance::convert_qualified_base):
52 * go-exp.y (parse_string_or_char): Add cast to int.
53 * unittests/enum-flags-selftests.c: New file.
54 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
55 type to btrace_thread_flags from btrace_thread_flag.
56 (record_btrace_cancel_resume, record_btrace_step_thread): Change
57 local's type to btrace_thread_flags from btrace_thread_flag. Add
58 cast in DEBUG call.
59
60 2020-09-14 Pedro Alves <pedro@palves.net>
61
62 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
63 * gdbtypes.c (address_space_name_to_int): Rename to ...
64 (address_space_name_to_type_instance_flags): ... this.
65 (address_space_int_to_name): Rename to ...
66 (address_space_type_instance_flags_to_name): ... this.
67 * gdbtypes.h (address_space_name_to_int): Rename to ...
68 (address_space_name_to_type_instance_flags): ... this.
69 (address_space_int_to_name): Rename to ...
70 (address_space_type_instance_flags_to_name): ... this.
71 * type-stack.c (type_stack::insert): Adjust to rename.
72 * type-stack.h (type_stack::insert): Likewise.
73
74 2020-09-14 Pedro Alves <pedro@palves.net>
75 Andrew Burgess <andrew.burgess@embecosm.com>
76
77 * avr-tdep.c (avr_address_class_type_flags): Return
78 type_instance_flags.
79 (avr_address_class_type_flags_to_name): Take a
80 type_instance_flags.
81 (avr_address_class_name_to_type_flags): Return bool and take a
82 type_instance_flags.
83 * d-lang.c (build_d_types): Use type::set_instance_flags.
84 * ft32-tdep.c (ft32_address_class_type_flags): Return
85 type_instance_flags.
86 (ft32_address_class_type_flags_to_name): Take a
87 type_instance_flags.
88 (ft32_address_class_name_to_type_flags): Return bool and take a
89 type_instance_flags.
90 (ft32_gdbarch_init): Use type::set_instance_flags.
91 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
92 * gdbarch.h, gdbarch.c: Regenerate.
93 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
94 (address_class_name_to_type_flags): Use type_instance_flags and
95 bool.
96 * gdbtypes.c (address_space_name_to_int)
97 (address_space_int_to_name, make_qualified_type): Use
98 type_instance_flags.
99 (make_qualified_type): Use type_instance_flags and
100 type::set_instance_flags.
101 (make_type_with_address_space, make_cv_type, make_vector_type)
102 (check_typedef): Use type_instance_flags.
103 (recursive_dump_type): Cast type_instance_flags to unsigned for
104 printing.
105 (copy_type_recursive): Use type::set_instance_flags.
106 (gdbtypes_post_init): Use type::set_instance_flags.
107 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
108 <m_instance_flags>: ... this.
109 <instance_flags, set_instance_flags>: New methods.
110 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
111 (SET_TYPE_INSTANCE_FLAGS): New.
112 (address_space_name_to_int, address_space_int_to_name)
113 (make_type_with_address_space): Pass flags using
114 type_instance_flags instead of int.
115 * stabsread.c (cleanup_undefined_types_noname): Use
116 type::set_instance_flags.
117 * s390-tdep.c (s390_address_class_type_flags): Return
118 type_instance_flags.
119 (s390_address_class_type_flags_to_name): Take a
120 type_instance_flags.
121 (s390_address_class_name_to_type_flags): Return bool and take a
122 type_instance_flags.
123 * type-stack.c (type_stack::follow_types): Use
124 type_instance_flags.
125 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
126
127 2020-09-14 Tom Tromey <tromey@adacore.com>
128
129 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
130 * x86-tdep.c (x86_is_thunk_register_name)
131 (x86_in_indirect_branch_thunk): Update.
132 * sparc64-tdep.c (sparc64_fpu_register_names)
133 (sparc64_cp0_register_names, sparc64_register_names)
134 (sparc64_pseudo_register_names): Now const.
135 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
136 cp0_registers_num>: Now const.
137 * sparc-tdep.c (sparc_core_register_names)
138 (sparc32_fpu_register_names, sparc32_cp0_register_names)
139 (sparc32_pseudo_register_names): Now const.
140 (validate_tdesc_registers): Update.
141 * rust-lang.c (rust_extensions): Now const.
142 * p-lang.c (p_extensions): Now const.
143 * objc-lang.c (objc_extensions): Now const.
144 * nto-tdep.c (nto_thread_state_str): Now const.
145 * moxie-tdep.c (moxie_register_names): Now const.
146 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
147 Now const.
148 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
149 (mips_linux_reg_names): Now const.
150 (mips_gdbarch_init): Update.
151 * microblaze-tdep.c (microblaze_register_names): Now const.
152 * m68k-tdep.c (m68k_register_names): Now const.
153 * m32r-tdep.c (m32r_register_names): Now const.
154 * ia64-tdep.c (ia64_register_names): Now const.
155 * i386-tdep.h (struct gdbarch_tdep) <register_names,
156 ymmh_register_names, ymm16h_regnum, mpx_register_names,
157 k_register_names, zmmh_register_names, xmm_avx512_register_names,
158 ymm_avx512_register_names, pkeys_register_names>: Now const.
159 * i386-tdep.c (i386_register_names, i386_zmm_names)
160 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
161 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
162 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
163 * f-lang.c (f_extensions): Now const.
164 * d-lang.c (d_extensions): Now const.
165 * csky-tdep.c (csky_register_names): Now const.
166 * charset.c (default_charset_names, charset_enum): Now const.
167 (_initialize_charset): Update.
168 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
169 const.
170 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
171 (bsd_uthread_solib_loaded): Update.
172 (bsd_uthread_state): Now const.
173 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
174 (amd64_ymm_avx512_names, amd64_ymmh_names)
175 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
176 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
177 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
178 (amd64_dword_names): Now const.
179 * agent.c (can_use_agent_enum): Now const.
180 * ada-tasks.c (task_states, long_task_states): Now const.
181 * ada-lang.c (known_runtime_file_name_patterns)
182 (known_auxiliary_function_name_patterns, attribute_names)
183 (standard_exc, ada_extensions): Now const.
184
185 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
186
187 * bcache.h (struct bcache) <bcache>: Remove constructor.
188 <m_hash_function, m_compare_function>: Remove.
189 <~bcache>: Make virtual.
190 <compare>: Remove static method, introduce virtual method.
191 <default_hash>: Remove.
192 <hash>: New virtual method.
193 * bcache.c (bcache::expand_hash_table): Update.
194 (bcache::insert): Update.
195 (bcache::hash): New.
196 (bcache::compare): Update comment and parameter names.
197 * gdbtypes.c (types_deeply_equal): Update.
198 * psymtab.h (struct psymbol_bcache): New struct.
199 (class psymtab_storage) <psymtab_storage>: Make default.
200 <psymbol_cache>: Change type to psymbol_bcache.
201 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
202 (psymbol_hash): Change to...
203 (psymbol_bcache::hash): ... this.
204 (psymbol_compare): Change to...
205 (psymbol_bcache::compare): ... this.
206
207 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
208
209 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
210 checking for initial lwp.
211
212 2020-09-14 Tom Tromey <tromey@adacore.com>
213
214 * m68k-tdep.c (m68k_extract_return_value): Use
215 pointer_result_regnum.
216 (m68k_store_return_value): Likewise.
217 (m68k_reg_struct_return_p): Handle vectors and arrays.
218 (m68k_return_value): Handle arrays.
219 (m68k_svr4_return_value): Fix single-element aggregate handling.
220 Handle long double. Adjust for embedded ABI.
221 (m68k_svr4_init_abi): Set pointer_result_regnum.
222 (m68k_embedded_init_abi): New function.
223 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
224 (m68k_osabi_sniffer): New function.
225 (_initialize_m68k_tdep): Register osabi sniffer.
226 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
227 member.
228
229 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
230
231 * xml-support.c (xml_fetch_content_from_file): Replace xfree
232 with gdb::unique_xmalloc_ptr<char>.
233
234 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
235
236 * xml-support.h (xml_fetch_another): Change type to be a
237 function_view.
238 (xml_process_xincludes): Remove baton parameter.
239 (xml_fetch_content_from_file): Change baton parameter to
240 dirname.
241 * xml-support.c (struct xinclude_parsing_data)
242 <xinclude_parsing_data>: Remove baton parameter.
243 <fetcher_baton>: Remove.
244 (xinclude_start_include): Adjust.
245 (xml_process_xincludes): Adjust.
246 (xml_fetch_content_from_file): Replace baton parameter with
247 dirname.
248 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
249 (xml_init_syscalls_info): Use a lambda.
250 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
251 (file_read_description_xml): Use a lambda.
252 (fetch_available_features_from_target): Change baton parameter
253 to target_ops.
254 (target_read_description_xml): Use a lambda.
255 (target_fetch_description_xml): Use a lambda.
256 (string_read_description_xml): Update.
257
258 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
259
260 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
261 uses with type::endianity_is_not_default.
262
263 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
264
265 * gdbtypes.h (struct type) <endianity_is_not_default,
266 set_endianity_is_not_default>: New methods.
267 (TYPE_ENDIANITY_NOT_DEFAULT): Use
268 type::endianity_is_not_default, change all write call sites to
269 use type::set_endianity_is_not_default.
270
271 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
272
273 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
274 uses with type::is_fixed_instance.
275
276 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
277
278 * gdbtypes.h (struct type) <is_fixed_instance,
279 set_is_fixed_instance>: New methods.
280 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
281 write call sites to use type::set_is_fixed_instance.
282
283 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
284
285 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
286 uses with type::is_gnu_ifunc.
287
288 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
289
290 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
291 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
292 use type::set_is_gnu_ifunc.
293
294 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
295
296 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
297 uses with type::stub_is_supported.
298
299 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
300
301 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
302 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
303 use type::set_stub_is_supported.
304
305 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
306
307 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
308 uses with type::is_vector.
309
310 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
311
312 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
313 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
314 use type::set_is_vector.
315
316 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
317
318 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
319 uses with type::has_varargs.
320
321 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
322
323 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
324 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
325 use type::set_has_varargs.
326
327 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
328
329 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
330 uses with type::is_prototyped.
331
332 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
333
334 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
335 New methods.
336 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
337 call sites to use type::set_is_prototyped.
338
339 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
340
341 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
342 uses with type::target_is_stub.
343
344 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
345
346 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
347 New methods.
348 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
349 sites to use type::set_target_is_stub.
350
351 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
352
353 * gdbtypes.h (TYPE_STUB): Remove, replace all
354 uses with type::is_stub.
355
356 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
357
358 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
359 (TYPE_STUB): Use type::is_stub, change all write call sites to
360 use type::set_is_stub.
361
362 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
363
364 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
365 type::has_no_signedness.
366
367 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
368
369 * gdbtypes.h (struct type) <has_no_signedness,
370 set_has_no_signedness>: New methods.
371 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
372 call sites to use type::set_has_no_signedness.
373
374 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
375
376 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
377 type::is_unsigned.
378
379 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
380
381 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
382 methods.
383 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
384 sites to use type::set_is_unsigned.
385
386 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
387 Adam Renquinha <arenquinha@cimeq.qc.ca>
388
389 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
390 pointer and stack frame offset when unwinding.
391
392 2020-09-13 Pedro Alves <pedro@palves.net>
393
394 * NEWS: Document "-break-insert --qualified".
395 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
396
397 2020-09-13 Pedro Alves <pedro@palves.net>
398
399 * linespec.c (classify_mtype, compare_msyms): Delete.
400 (search_minsyms_for_name): Remove classification logic. Instead
401 filter out trampoline symbols if we also found an external
402 function of the same name.
403
404 2020-09-13 Joel Brobecker <brobecker@adacore.com>
405
406 * NEWS: Create a new section for the next release branch.
407 Rename the section of the current branch, now that it has
408 been cut.
409
410 2020-09-13 Joel Brobecker <brobecker@adacore.com>
411
412 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
413 * version.in: Bump version to 11.0.50.DATE-git.
414
415 2020-09-12 Joel Brobecker <brobecker@adacore.com>
416
417 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
418
419 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
420 Felix Willgerodt <Felix.Willgerodt@intel.com>
421
422 * gdbarch.sh: Added bfloat16 type.
423 * gdbarch.c: Regenerated.
424 * gdbarch.h: Regenerated.
425 * gdbtypes.c (floatformats_bfloat16): New struct.
426 (gdbtypes_post_init): Add builtin_bfloat16.
427 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
428 (floatformats_bfloat16): New struct.
429 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
430 (i386_ymm_type): Add field "v16_bfloat16"
431 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
432 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
433 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
434 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
435 * features/i386/64bit-avx512.xml: Add bfloat16 type.
436 * features/i386/64bit-avx512.c: Regenerated.
437 * features/i386/64bit-sse.xml: Add bfloat16 type.
438 * features/i386/64bit-sse.c: Regenerated.
439
440 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
441
442 * i386-tdep.c (i386_zmm_type): Fix field names.
443 (i386_ymm_type): Fix field names.
444
445 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
446
447 * breakpoint.c: Fix typo in the help message of the
448 "set breakpoint condition-evaluation" command.
449
450 2020-09-10 Kamil Rytarowski <n54@gmx.com>
451
452 * nbsd-nat.c: Include "nat/netbsd-nat.h".
453 * (nbsd_nat_target::pid_to_exec_file)
454 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
455 (nbsd_nat_target::post_startup_inferior)
456 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
457 (nbsd_add_threads): Switch local code to common gdb/nat functions.
458 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
459 * (nbsd_thread_lister): Remove.
460
461 2020-09-10 Kamil Rytarowski <n54@gmx.com>
462
463 * fork-inferior.c (startup_inferior): Avoid double free.
464
465 2020-09-10 Kamil Rytarowski <n54@gmx.com>
466
467 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
468 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
469
470 2020-09-10 Kamil Rytarowski <n54@gmx.com>
471
472 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
473 * netbsd-nat.c: Include <sys/ptrace.h>.
474 * (netbsd_nat::enable_proc_events): Add.
475
476 2020-09-10 Kamil Rytarowski <n54@gmx.com>
477
478 * netbsd-nat.h: Include "gdbsupport/function-view.h".
479 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
480 (netbsd_nat::for_each_thread): Add.
481 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
482 "gdbsupport/common-debug.h".
483 * (netbsd_nat::netbsd_thread_lister)
484 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
485 (netbsd_nat::for_each_thread): Add.
486
487 2020-09-10 Kamil Rytarowski <n54@gmx.com>
488
489 * netbsd-nat.h: Include <unistd.h>.
490 * (netbsd_nat::pid_to_exec_file): Add.
491 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
492 * (netbsd_nat::pid_to_exec_file) Add.
493
494 2020-09-10 Kamil Rytarowski <n54@gmx.com>
495
496 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
497
498 2020-09-10 Kamil Rytarowski <n54@gmx.com>
499
500 * netbsd-nat.h: New file.
501 * netbsd-nat.c: Likewise.
502
503 2020-09-09 Tom Tromey <tromey@adacore.com>
504
505 * ada-lang.c (remove_extra_symbols): Do not increment when
506 removing an element
507
508 2020-09-08 Tom Tromey <tromey@adacore.com>
509
510 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
511
512 2020-09-08 Tom Tromey <tromey@adacore.com>
513
514 PR win32/25302:
515 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
516 (gdb_bfd_init_data): New function.
517 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
518
519 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
520
521 * infrun.c (fetch_inferior_event): Use
522 `switch_to_target_no_thread` to switch the target.
523
524 2020-09-06 Tom Tromey <tom@tromey.com>
525
526 * symfile.h (dwarf2_free_objfile): Don't declare.
527
528 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
529
530 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
531 to match 16 byte real/complex type generated by Flang compiler.
532
533 2020-09-03 Tom de Vries <tdevries@suse.de>
534
535 PR breakpoint/26546
536 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
537 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
538
539 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
540
541 * maint.c (index_digits): New function.
542 (struct maint_print_section_data): Remove.
543 (print_bfd_section_info): Remove print_data parameter, add arg
544 and index_digits.
545 (print_objfile_section_info): Likewise.
546 (print_bfd_section_info_maybe_relocated): Likewise (plus
547 objfile).
548 (maintenance_info_sections): Adjust calls.
549
550 2020-09-02 Tom Tromey <tromey@adacore.com>
551
552 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
553 for null pointers.
554 (ada_varobj_adjust_for_child_access): Special-case null pointers.
555
556 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
557
558 * bcache.h (struct bcache) <insert>: Change type of `added` to
559 pointer to bool.
560 * bcache.c (bcache::insert): Likewise.
561 * gdbtypes.c (check_types_worklist): Adjust.
562 * psymtab.c (add_psymbol_to_bcache): Adjust.
563
564 2020-08-31 Kevin Buettner <kevinb@redhat.com>
565
566 * corelow.c (unordered_set): Include.
567 (class core_target): Add field 'm_core_unavailable_mappings'.
568 (core_target::build_file_mappings): Print only one warning
569 per inaccessible file. Add unavailable/broken mappings
570 to m_core_unavailable_mappings.
571 (core_target::xfer_partial): Call...
572 (core_target::xfer_memory_via_mappings): New method.
573
574 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
575
576 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
577 type to bool.
578
579 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
580
581 * dwarf2/read.c (struct field_info): Fix indentation.
582
583 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
584
585 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
586 ordering in comment.
587 * frame.c (frame_id_eq): Fix indentation.
588
589 2020-08-31 Scott Linder <scott@scottlinder.com>
590 Simon Marchi <simon.marchi@efficios.com>
591
592 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
593 inline frame ids in outer frame.
594
595 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
596
597 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
598 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
599 (outer_frame_id): Use FID_STACK_OUTER instead of
600 FID_STACK_INVALID.
601 (frame_id_p): Don't check for outer_frame_id.
602
603 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
604
605 * frame-unwind.c (frame_unwind_got_optimized): Don't set
606 regnum/frame in value. Call allocate_value_lazy.
607 * frame.c (frame_unwind_register_value): Use
608 val_print_not_saved.
609
610 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
611
612 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
613
614 2020-08-29 Pedro Alves <pedro@palves.net>
615
616 * progspace.c (print_program_space): Use all_inferiors. Switch to
617 the inferior before calling target_pid_to_str.
618
619 2020-08-28 Tom Tromey <tom@tromey.com>
620
621 * xcoffread.c (xcoff_end_psymtab): Update comment.
622 * dbxread.c (dbx_end_psymtab): Update comment.
623
624 2020-08-28 Tom de Vries <tdevries@suse.de>
625
626 PR breakpoint/26544
627 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
628 event_location.
629 (create_breakpoint): Same.
630 (base_breakpoint_decode_location): Same.
631 (bkpt_create_sals_from_location): Same.
632 (bkpt_decode_location): Same.
633 (bkpt_probe_create_sals_from_location): Same.
634 (bkpt_probe_decode_location): Same.
635 (tracepoint_create_sals_from_location): Same.
636 (tracepoint_decode_location): Same.
637 (tracepoint_probe_decode_location): Same.
638 (strace_marker_create_sals_from_location): Same.
639 (strace_marker_decode_location): Same.
640 (create_sals_from_location_default): Same.
641 (decode_location_default): Same.
642 * breakpoint.h (struct breakpoint_ops): Same.
643 (create_breakpoint): Same.
644 * linespec.h (decode_line_full): Same.
645 * linespec.c (decode_line_full): Same. Throw error if
646 result.size () == 0.
647
648 2020-08-27 Pedro Alves <pedro@palves.net>
649
650 PR gdb/26524
651 * breakpoint.c (until_break_fsm) <location_breakpoint,
652 caller_breakpoint>: Delete fields.
653 <breakpoints>: New field.
654 <until_break_fsm>: Adjust to save a breakpoint vector instead of
655 two individual breakpoints.
656 (until_break_fsm::should_stop): Loop over breakpoints in the
657 breakpoint vector.
658 (until_break_fsm::clean_up): Adjust to clear the breakpoints
659 vector.
660 (until_break_command): Handle location expanding into multiple
661 sals.
662
663 2020-08-27 Pedro Alves <pedro@palves.net>
664
665 PR gdb/26523
666 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
667 bp_until breakpoints user-specified locations. Update intro
668 comment.
669
670 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
671
672 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
673 gdb_bfd_sections): New.
674 * maint.c (print_bfd_section_info): Change param type to
675 maint_print_section_data.
676 (print_objfile_section_info): Likewise.
677 (print_bfd_section_info_maybe_relocated): Likewise.
678 (maintenance_info_sections): Use gdb_bfd_sections.
679
680 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
681
682 * MAINTAINERS: Add ARC target and maintainer.
683
684 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
685
686 * configure.tgt: ARC support for GNU/Linux.
687 * Makefile.in (ALL_TARGET_OBJS): Likewise.
688 * arc-linux-tdep.c: New file.
689 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
690 * arc-tdep.c (arc_write_pc): Use it.
691
692 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
693
694 * arc-tdep.c (arc_check_for_hardware_loop): New.
695 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
696
697 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
698
699 * arc-tdep.h: Include "gdbarch.h".
700
701 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
702
703 * arch/arc.h
704 (arc_gdbarch_features): New class to stir the selection of target XML.
705 (arc_create_target_description): Use FEATURES to choose XML target.
706 (arc_lookup_target_description): Use arc_create_target_description
707 to create _new_ target descriptions or return the already created
708 ones if the FEATURES is the same.
709 * arch/arc.c: Implementation of prototypes described above.
710 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
711 (arc_gdbarch_features_init): Initialize the FEATURES struct.
712 * arc-tdep.c (*_feature_name): Make feature names consistent.
713 (arc_register_feature): A new struct to hold information about
714 registers of a particular target/feature.
715 (arc_check_tdesc_feature): Check if XML provides registers in
716 compliance with ARC_REGISTER_FEATURE structs.
717 (arc_update_acc_reg_names): Add aliases for r58 and r59.
718 (determine_*_reg_feature_set): Which feature name to look for.
719 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
720 (mach_type_to_arc_isa): Convert from a set of binutils machine types
721 to expected ISA enums to be used in arc_gdbarch_features structs.
722 * features/Makefile (FEATURE_XMLFILES): Add new files.
723 * gdb/features/arc/v1-aux.c: New file.
724 * gdb/features/arc/v1-aux.xml: Likewise.
725 * gdb/features/arc/v1-core.c: Likewise.
726 * gdb/features/arc/v1-core.xml: Likewise.
727 * gdb/features/arc/v2-aux.c: Likewise.
728 * gdb/features/arc/v2-aux.xml: Likewise.
729 * gdb/features/arc/v2-core.c: Likewise.
730 * gdb/features/arc/v2-core.xml: Likewise.
731 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
732
733 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
734 Andrew Burgess <andrew.burgess@embecosm.com>
735
736 PR m2/26372
737 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
738 an assert. Remove single element array indexing pattern as the
739 MULTI_SUBSCRIPT support will handle this case too.
740
741 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
742
743 * value.h (valprint_check_validity): Move declaration from
744 here...
745 * valprint.h (valprint_check_validity): ... to here.
746
747 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
748
749 * debug.h: New file.
750 * debug.c (debug_prefixed_vprintf): New function.
751 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
752 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
753
754 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
755
756 * infrun.h (infrun_debug_printf_1): New function declaration.
757 (infrun_debug_printf): New macro.
758 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
759 throughout.
760 (infrun_debug_printf): New function.
761 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
762 (handle_jit_event): Likewise.
763
764 2020-08-21 Mark Wielaard <mark@klomp.org>
765
766 * ada-lex.l: Extend register warnings diagnostics comment for g++.
767
768 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
769
770 * frame.c (enum class frame_id_status): New.
771 (struct frame_info) <this_id::p>: Change type to frame_id_status.
772 (fprintf_frame): Update.
773 (compute_frame_id): Set frame id status to "computing" on entry.
774 Set it back to "not_computed" on failure and to "computed" on
775 success.
776 (get_frame_id): Assert the frame id is not being computed.
777 (create_sentinel_frame): Use frame_id_status::COMPUTED.
778 (create_new_frame): Likewise.
779 (frame_cleanup_after_sniffer): Update assert.
780
781 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
782
783 * regcache.c (pid_ptid_regcache_map): New type.
784 (target_ptid_regcache_map): Remove.
785 (target_pid_ptid_regcache_map): New type.
786 (regcaches): Change type to target_pid_ptid_regcache_map.
787 (get_thread_arch_aspace_regcache): Update.
788 (regcache_thread_ptid_changed): Update, handle pid-like ptid
789 case.
790 (regcaches_size): Update.
791 (regcache_count): Update.
792 (registers_changed_ptid_target_pid_test): New.
793 (_initialize_regcache): Register new test.
794
795 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
796
797 * regcache.c (regcache_count): New.
798 (struct regcache_test_data): New.
799 (regcache_test_data_up): New.
800 (populate_regcaches_for_test): New.
801 (regcaches_test): Remove.
802 (get_thread_arch_aspace_regcache_test): New.
803 (registers_changed_ptid_all_test): New.
804 (registers_changed_ptid_target_test): New.
805 (registers_changed_ptid_target_ptid_test): New.
806 (regcache_thread_ptid_changed): Remove regcache_count lambda.
807 (_initialize_regcache): Register new tests.
808
809 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
810
811 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
812 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
813 gdbarch and aspace parameter. Use current inferior's aspace.
814 Validate regcache's arch value.
815 (regcaches_test): Update.
816
817 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
818
819 * regcache.c (regcaches_test): Call registers_changed.
820
821 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
822
823 * infrun.c (process_event_stop_test): Fix typo "breapoint".
824
825 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
826
827 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
828 to find the end of prologue for flang compiled binaries.
829 * arm-tdep.c (arm_skip_prologue): Likewise.
830 * i386-tdep.c (i386_skip_prologue): Likewise.
831 * producer.c (producer_is_llvm): New function.
832 (producer_parsing_tests): Added new tests for clang/flang.
833 * producer.h (producer_is_llvm): New declaration.
834
835 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
836
837 * linux-nat.c (linux_nat_debug_printf): New function.
838 (linux_nat_debug_printf_1): New macro. Use throughout the file.
839
840 2020-08-18 Aaron Merey <amerey@redhat.com>
841
842 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
843 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
844 (CLIBS): Add DEBUGINFOD_LIBS.
845
846 2020-08-17 Sergei Trofimovich <siarheit@google.com>
847
848 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
849 'gdbarch_num_regs'.
850
851 2020-08-17 Tom Tromey <tromey@adacore.com>
852
853 * ada-varobj.c (ada_varobj_decode_var): Handle case where
854 ada_get_decoded_value returns NULL.
855
856 2020-08-17 Tom Tromey <tromey@adacore.com>
857
858 * python/py-inferior.c (infpy_search_memory): Use
859 gdb_py_object_from_ulongest.
860 * python/py-infevents.c (create_inferior_call_event_object)
861 (create_memory_changed_event_object): Use
862 gdb_py_object_from_ulongest.
863 * python/py-linetable.c (ltpy_entry_get_pc): Use
864 gdb_py_object_from_ulongest.
865
866 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
867
868 * loc.c (class symbol_needs_eval_context): Fix indentation.
869
870 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
871
872 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
873 bool.
874
875 2020-08-17 Tom de Vries <tdevries@suse.de>
876
877 PR gdb/26393
878 * gdbtypes.c (dump_dynamic_prop): New function.
879 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
880
881 2020-08-15 Tom de Vries <tdevries@suse.de>
882
883 PR backtrace/26390
884 * stack.c (print_frame_args): Temporarily set the selected
885 frame to FRAME while printing the frame's arguments.
886
887 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
888
889 PR breakpoints/26385
890 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
891 Always clear watchpoint with PTRACE_SET_DEBUGREG.
892
893 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
894
895 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
896 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
897 and >= to check return value instead of == -1 and != -1.
898
899 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
900
901 * utils.h (class gdb_argv) <as_array_view>: New method.
902 * utils.c (gdb_argv_as_array_view_test): New.
903 (_initialize_utils): Register selftest.
904 * maint.c (maintenance_selftest): Use the new method.
905
906 2020-08-13 Kamil Rytarowski <n54@gmx.com>
907
908 * target.h (supports_dumpcore, dumpcore): New
909 function declarations.
910 * target.c (supports_dumpcore, dumpcore): New
911 functions.
912 * target-delegates.c: Rebuild.
913 * gcore.c (gcore_command): Use target_supports_dumpcore ()
914 and target_dumpcore ().
915
916 2020-08-13 Aaron Merey <amerey@redhat.com>
917
918 * debuginfod-support.c: Replace global variables with user_data.
919
920 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
921
922 * maint.c (maintenance_selftest): Split args and pass array_view
923 to run_tests.
924
925 2020-08-12 Luis Machado <luis.machado@linaro.org>
926
927 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
928 type's length.
929 Use %s and pulongest to print the length.
930
931 2020-08-12 Pedro Alves <palves@redhat.com>
932
933 * NEWS: Move "Multi-target debugging support" item to the
934 "Changes since GDB 9" section.
935
936 2020-08-12 Pedro Alves <palves@redhat.com>
937
938 PR gdb/26336
939 * progspace.c (program_space::remove_objfile): Invalidate the
940 frame cache.
941
942 2020-08-11 Tom de Vries <tdevries@suse.de>
943
944 * MAINTAINERS: Mark ms1 as deleted.
945
946 2020-08-10 Luis Machado <luis.machado@linaro.org>
947
948 PR gdb/26310
949
950 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
951 act accordingly.
952 (aarch64_analyze_prologue_test): Add more unit tests to exercise
953 movz/str/stur/stp skipping behavior.
954
955 2020-08-10 Luis Machado <luis.machado@linaro.org>
956
957 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
958 struct user_sve_header instead of struct sve_context.
959
960 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
961
962 * read.h (dwarf2_fetch_die_loc_sect_off,
963 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
964 `void *` parameter with function_view.
965 * read.c (dwarf2_fetch_die_loc_sect_off,
966 dwarf2_fetch_die_loc_cu_off): Likewise.
967 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
968 (per_cu_dwarf_call): Adjust.
969 (get_frame_address_in_block_wrapper): Remove.
970 (indirect_synthetic_pointer): Adjust.
971 (get_ax_pc): Remove.
972 (dwarf2_compile_expr_to_ax): Adjust.
973
974 2020-08-08 Tom de Vries <tdevries@suse.de>
975
976 PR build/26344
977 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
978 constructor.
979 * regcache.c (get_thread_arch_aspace_regcache): Same.
980
981 2020-08-07 Tom Tromey <tromey@adacore.com>
982
983 * ravenscar-thread.c
984 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
985 New method.
986 (ravenscar_thread_target::wait): Check
987 runtime_initialized.
988 (ravenscar_thread_target::prepare_to_store)
989 (ravenscar_thread_target::stopped_by_sw_breakpoint)
990 (ravenscar_thread_target::stopped_by_hw_breakpoint)
991 (ravenscar_thread_target::stopped_by_watchpoint)
992 (ravenscar_thread_target::stopped_data_address)
993 (ravenscar_thread_target::core_of_thread): Use
994 scoped_restore_current_thread and
995 set_base_thread_from_ravenscar_task.
996
997 2020-08-07 Tom Tromey <tromey@adacore.com>
998
999 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
1000
1001 2020-08-07 Tom Tromey <tromey@adacore.com>
1002
1003 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
1004 update_inferior_ptid before update_thread_list.
1005 (temporarily_change_regcache_ptid): New class.
1006 (ravenscar_thread_target::fetch_registers)
1007 (ravenscar_thread_target::store_registers)
1008 (ravenscar_thread_target::prepare_to_store): Use base thread when
1009 forwarding operation.
1010
1011 2020-08-07 Tom Tromey <tromey@adacore.com>
1012
1013 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
1014 "is_pid" case.
1015
1016 2020-08-07 Tom Tromey <tromey@adacore.com>
1017
1018 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
1019 New methods.
1020 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
1021 first.
1022 (ravenscar_thread_target::add_thread): Rename from
1023 ravenscar_add_thread.
1024 (ravenscar_thread_target::update_thread_list): Use a lambda.
1025 (ravenscar_thread_target::xfer_partial): New method.
1026
1027 2020-08-07 Tom Tromey <tromey@adacore.com>
1028
1029 * ada-lang.h (ada_task_list_iterator_ftype): Now a
1030 gdb::function_view.
1031 (iterate_over_live_ada_tasks): Change type of argument.
1032 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1033 of argument.
1034
1035 2020-08-07 Tom Tromey <tromey@adacore.com>
1036
1037 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1038 Remove.
1039 (ravenscar_thread_target::extra_thread_info): Remove.
1040 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1041 defer to target beneath for non-Ravenscar threads.
1042
1043 2020-08-07 Tom Tromey <tromey@adacore.com>
1044
1045 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1046 get_base_thread_from_ravenscar_task>: Now methods.
1047 <m_cpu_map>: New member.
1048 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1049 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1050 (ravenscar_thread_target::task_is_currently_active): Update.
1051 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1052 Now a method.
1053 (ravenscar_thread_target::add_active_thread): Put initial thread
1054 into the m_cpu_map.
1055
1056 2020-08-07 Tom Tromey <tromey@adacore.com>
1057
1058 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1059 event_ptid.
1060
1061 2020-08-07 Tom Tromey <tromey@adacore.com>
1062
1063 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1064 runtime_initialized.
1065
1066 2020-08-07 Tom Tromey <tromey@adacore.com>
1067
1068 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1069 add_active_thread.
1070 (ravenscar_thread_target::add_active_thread): Now public.
1071 (ravenscar_inferior_created): Call add_active_thread after pushing
1072 the target.
1073
1074 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1075
1076 * regcache.c (ptid_regcache_map): New type.
1077 (target_ptid_regcache_map): New type.
1078 (regcaches): Change type to target_ptid_regcache_map.
1079 (get_thread_arch_aspace_regcache): Update to regcaches' new
1080 type.
1081 (regcache_thread_ptid_changed): Likewise.
1082 (registers_changed_ptid): Likewise.
1083 (regcaches_size): Likewise.
1084 (regcaches_test): Update.
1085 (regcache_thread_ptid_changed): Update.
1086 * regcache.h (regcache_up): New type.
1087 * gdbsupport/ptid.h (hash_ptid): New struct.
1088
1089 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
1090
1091 * observable.h (thread_ptid_changed): Add parameter
1092 `process_stratum_target *`.
1093 * infrun.c (infrun_thread_ptid_changed): Add parameter
1094 `process_stratum_target *` and use it.
1095 (selftests): New namespace.
1096 (infrun_thread_ptid_changed): New function.
1097 (_initialize_infrun): Register selftest.
1098 * regcache.c (regcache_thread_ptid_changed): Add parameter
1099 `process_stratum_target *` and use it.
1100 (regcache_thread_ptid_changed): New function.
1101 (_initialize_regcache): Register selftest.
1102 * thread.c (thread_change_ptid): Pass target to
1103 thread_ptid_changed observable.
1104
1105 2020-08-06 Caroline Tice <cmtice@google.com>
1106
1107 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1108 (struct dwp_sections): Update field comments. Add loclists and
1109 rnglists fields.
1110 (struct virtual_v2_dwo_sections): Rename struct to
1111 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1112 size & offset fields for loclists and rnglists.
1113 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1114 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1115 skipping dummy type units.
1116 (create_dwp_hash_table): Update the large comment above the function to
1117 discuss Version 5 DWP files as well, with references. Update all the
1118 version checks in the function to check for version 5 as well. Add new
1119 section at the end to create dwp hash table for version 5.
1120 (create_dwp_v2_section): Rename function to
1121 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1122 Add V5 to error message text.
1123 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1124 into calls to create_dwp_v2_or_v5_section.
1125 (create_dwo_unit_in_dwp_v5): New function.
1126 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1127 check for version2; add else clause to handle version 5.
1128 (open_and_init_dwo_file): Add code to check dwarf version & only call
1129 create_debug_types_hash_table (with sections.types) if version is not 5;
1130 else call create_debug_type_hash_table, with sections.info.
1131 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1132 version 5.
1133 (dwarf2_locate_v5_dwp_sections): New function.
1134 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1135 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
1136
1137 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1138
1139 * regcache.h (class regcache): Remove friend
1140 registers_changed_ptid.
1141 <regcache_thread_ptid_changed>: Remove.
1142 <regcaches>: Remove.
1143 * regcache.c (regcache::regcaches): Rename to...
1144 (regcaches): ... this. Make static.
1145 (get_thread_arch_aspace_regcache): Update.
1146 (regcache::regcache_thread_ptid_changed): Rename to...
1147 (regcache_thread_ptid_changed): ... this. Update.
1148 (class regcache_access): Remove.
1149 (regcaches_test): Update.
1150 (_initialize_regcache): Update.
1151 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1152 <forward_list>.
1153
1154 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
1155
1156 * regcache.h (class regcache) <current_regcache>: Rename to...
1157 <regcaches>: ... this. Move doc here.
1158 * regcache.c (regcache::current_regcache) Rename to...
1159 (regcache::regcaches): ... this. Move doc to header.
1160 (get_thread_arch_aspace_regcache): Update.
1161 (regcache::regcache_thread_ptid_changed): Update.
1162 (registers_changed_ptid): Update.
1163 (class regcache_access) <current_regcache_size>: Rename to...
1164 <regcaches_size>: ... this.
1165 (current_regcache_test): Rename to...
1166 (regcaches_test): ... this.
1167 (_initialize_regcache): Update.
1168
1169 2020-08-06 Victor Collod <vcollod@nvidia.com>
1170
1171 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1172
1173 2020-08-05 Kevin Buettner <kevinb@redhat.com>
1174
1175 * corelow.c (core_target::build_file_mappings): Don't output
1176 null pathname in warning.
1177
1178 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1179
1180 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1181 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1182 gdb.dwarf2/dw2-single-line-discriminators.exp,
1183 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1184
1185 2020-08-05 Tom Tromey <tromey@adacore.com>
1186
1187 PR rust/26197:
1188 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1189 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1190 Fix off-by-one and type size errors in ordinary case.
1191
1192 2020-08-05 Tom de Vries <tdevries@suse.de>
1193
1194 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1195 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1196
1197 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1198
1199 * frame.h (frame_id_p): Return bool.
1200 (frame_id_artificial_p): Return bool.
1201 (frame_id_eq): Return bool.
1202 (has_stack_frames): Return bool.
1203 (get_selected_frame): Fix typo in comment.
1204 (get_frame_pc_if_available): Return bool.
1205 (get_frame_address_in_block_if_available): Return bool.
1206 (get_frame_func_if_available): Return bool.
1207 (read_frame_register_unsigned): Return bool.
1208 (get_frame_register_bytes): Return bool.
1209 (safe_frame_unwind_memory): Return bool.
1210 (deprecated_frame_register_read): Return bool.
1211 (frame_unwinder_is): Return bool.
1212 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1213 bool.
1214 <this_id::p>: Likewise.
1215 <prev_p>: Likewise.
1216 (frame_stash_add): Return bool.
1217 (get_frame_id): Use bool.
1218 (frame_id_build_special) Use bool.
1219 (frame_id_build_unavailable_stack): Use bool.
1220 (frame_id_build): Use bool.
1221 (frame_id_p): Return bool, use true/false instead of 1/0.
1222 (frame_id_artificial_p): Likewise.
1223 (frame_id_eq): Likewise.
1224 (frame_id_inner): Likewise.
1225 (get_frame_func_if_available): Likewise.
1226 (read_frame_register_unsigned): Likewise.
1227 (deprecated_frame_register_read): Likewise.
1228 (get_frame_register_bytes): Likewise.
1229 (has_stack_frames): Likewise.
1230 (inside_main_func): Likewise.
1231 (inside_entry_func): Likewise.
1232 (get_frame_pc_if_available): Likewise.
1233 (get_frame_address_in_block_if_available): Likewise.
1234 (frame_unwinder_is): Likewise.
1235 (safe_frame_unwind_memory): Likewise.
1236 (frame_unwind_arch): Likewise.
1237
1238 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
1239
1240 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1241 type to cached_copy_status.
1242 (fprintf_frame): Adjust.
1243 (get_frame_func_if_available): Adjust.
1244 (frame_cleanup_after_sniffer): Adjust.
1245
1246 2020-08-04 Mark Wielaard <mark@klomp.org>
1247
1248 * MAINTAINERS (Write After Approval): Update email address.
1249
1250 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1251
1252 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1253 dynamic_prop::const_val.
1254
1255 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1256
1257 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1258 dynamic_prop::kind.
1259
1260 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1261
1262 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1263
1264 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1265
1266 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1267
1268 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
1269 Jose E. Marchesi <jose.marchesi@oracle.com>
1270
1271 * configure.tgt: Add entry for bpf-*-*.
1272 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1273 (ALLDEPFILES): Add bpf-tdep.c.
1274 * bpf-tdep.c: New file.
1275 * MAINTAINERS: Add bpf target and maintainer.
1276 * NEWS: Mention the support for the new target.
1277
1278 2020-08-04 Tom de Vries <tdevries@suse.de>
1279
1280 PR symtab/23270
1281 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1282 Error.
1283
1284 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1285
1286 * syscalls/freebsd.xml: Regenerate.
1287
1288 2020-08-03 John Baldwin <jhb@FreeBSD.org>
1289
1290 * syscalls/update-freebsd.sh: Fix usage and year range.
1291
1292 2020-08-03 Tom de Vries <tdevries@suse.de>
1293
1294 PR symtab/26333
1295 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1296 DW_LNE_lo_user/DW_LNE_hi_user range.
1297
1298 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1299
1300 PR ada/26318
1301 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1302 kind.
1303
1304 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1305
1306 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1307
1308 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1309
1310 * breakpoint.c (set_breakpoint_condition): Update the condition
1311 expressions after checking that the input condition string parses
1312 successfully and does not contain junk at the end.
1313
1314 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1315
1316 * breakpoint.c (set_breakpoint_condition): Update the
1317 condition string after parsing the new condition successfully.
1318
1319 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1320
1321 * proc-api.c (_STRUCTURED_PROC): Don't define.
1322 * proc-events.c: Likewise.
1323 * proc-flags.c: Likewise.
1324 * proc-why.c: Likewise.
1325 * procfs.c: Likewise.
1326
1327 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1328 * configure, config.in: Regenerate.
1329
1330 2020-07-30 Tom de Vries <tdevries@suse.de>
1331
1332 PR build/26320
1333 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1334 m_red/m_green/m_blue in a union.
1335
1336 2020-07-29 Tom de Vries <tdevries@suse.de>
1337
1338 PR tdep/26280
1339 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1340
1341 2020-07-28 Tom Tromey <tromey@adacore.com>
1342
1343 PR symtab/26270:
1344 * symtab.h (find_pc_partial_function_sym): Declare.
1345 * cli/cli-cmds.c (disassemble_command): Use
1346 find_pc_partial_function_sym. Check asm_demangle.
1347 * blockframe.c (cache_pc_function_sym): New global.
1348 (cache_pc_function_name): Remove.
1349 (clear_pc_function_cache): Update.
1350 (find_pc_partial_function_sym): New function, from
1351 find_pc_partial_function.
1352 (find_pc_partial_function): Rewrite using
1353 find_pc_partial_function_sym.
1354
1355 2020-07-28 Tom Tromey <tromey@adacore.com>
1356
1357 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1358 help. Add usage.
1359
1360 2020-07-28 Tom Tromey <tromey@adacore.com>
1361
1362 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1363 <DW_OP_GNU_variable_value>: Cast to address type.
1364
1365 2020-07-28 Kamil Rytarowski <n54@gmx.com>
1366
1367 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1368 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1369 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1370 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1371 (nbsd_get_siginfo_type): New.
1372 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1373 (_initialize_nbsd_tdep): New.
1374
1375 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1376
1377 PR binutils/26301
1378 * configure: Regenerated.
1379
1380 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1381
1382 PR binutils/26301
1383 * configure: Regenerated.
1384
1385 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1386
1387 * python/py-frame.c: Remove 'user-regs.h' include.
1388 (frapy_read_register): Rewrite to make use of
1389 gdbpy_parse_register_id.
1390 * python/py-registers.c (gdbpy_parse_register_id): New function,
1391 moved here from python/py-unwind.c. Updated the return type, and
1392 also accepts register descriptor objects.
1393 * python/py-unwind.c: Remove 'user-regs.h' include.
1394 (pyuw_parse_register_id): Moved to python/py-registers.c.
1395 (unwind_infopy_add_saved_register): Update to use
1396 gdbpy_parse_register_id.
1397 (pending_framepy_read_register): Likewise.
1398 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1399
1400 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1401
1402 * python/py-registers.c: Add 'user-regs.h' include.
1403 (register_descriptor_iter_find): New function.
1404 (register_descriptor_iterator_object_methods): New static global
1405 methods array.
1406 (register_descriptor_iterator_object_type): Add pointer to methods
1407 array.
1408
1409 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1410
1411 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1412 for all architectures on FreeBSD 11.3 and later.
1413
1414 2020-07-27 Tom Tromey <tromey@adacore.com>
1415
1416 * gcore.h (load_corefile): Don't declare.
1417
1418 2020-07-27 Tom de Vries <tdevries@suse.de>
1419
1420 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1421 * config.in: Regenerate.
1422 * configure: Regenerate.
1423
1424 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1425
1426 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1427 ws2tcpip.h. When checking whether socklen_t type is defined, use
1428 ws2tcpip.h if it is available and sys/socket.h isn't.
1429 * configure: Regenerate.
1430 * config.in: Regenerate.
1431
1432 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1433
1434 PR fortran/23051
1435 PR fortran/26139
1436 * valops.c (value_ind): Pass address to
1437 readjust_indirect_value_type.
1438 * value.c (readjust_indirect_value_type): Make parameter
1439 non-const, and add extra address parameter. Resolve original type
1440 before using it.
1441 * value.h (readjust_indirect_value_type): Update function
1442 signature and comment.
1443
1444 2020-07-25 Tom de Vries <tdevries@suse.de>
1445
1446 PR symtab/26243
1447 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1448 entries.
1449
1450 2020-07-24 Aaron Merey <amerey@redhat.com>
1451
1452 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1453 * configure: Rebuild.
1454
1455 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1456
1457 PR corefiles/26294
1458 * corelow.c (_initialize_corelow): Add period to help text
1459 for "maintenance print core-file-backed-mappings".
1460
1461 2020-07-23 Pedro Alves <pedro@palves.net>
1462
1463 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1464 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1465 meanwhile.
1466 * frame.c (frame_cache_generation, get_frame_cache_generation):
1467 New.
1468 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1469 (get_prev_frame_if_no_cycle): On exception, don't touch
1470 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1471 * frame.h (get_frame_cache_generation): Declare.
1472
1473 2020-07-23 Tom de Vries <tdevries@suse.de>
1474
1475 PR tui/26282
1476 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1477 New default constructor.
1478
1479 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1480
1481 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1482 exclude non-statement entries.
1483
1484 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1485
1486 * NEWS (New commands): Mention new command
1487 "maintenance print core-file-backed-mappings".
1488
1489 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1490
1491 * corelow.c (gdbcmd.h): Include.
1492 (core_target::info_proc_mappings): New method.
1493 (get_current_core_target): New function.
1494 (maintenance_print_core_file_backed_mappings): New function.
1495 (_initialize_corelow): Add core-file-backed-mappings to
1496 "maint print" commands.
1497
1498 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1499
1500 * linux-tdep.c (dump_note_entry_p): New function.
1501 (linux_dump_mapping_p_ftype): New typedef.
1502 (linux_find_memory_regions_full): Add new parameter,
1503 should_dump_mapping_p.
1504 (linux_find_memory_regions): Adjust call to
1505 linux_find_memory_regions_full.
1506 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1507 call to linux_find_memory_regions_full.
1508
1509 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1510
1511 * corelow.c (solist.h, unordered_map): Include.
1512 (class core_target): Add field m_core_file_mappings and
1513 method build_file_mappings.
1514 (core_target::core_target): Call build_file_mappings.
1515 (core_target::~core_target): Free memory associated with
1516 m_core_file_mappings.
1517 (core_target::build_file_mappings): New method.
1518 (core_target::xfer_partial): Use m_core_file_mappings
1519 for memory transfers.
1520 * linux-tdep.c (linux_read_core_file_mappings): New
1521 function.
1522 (linux_core_info_proc_mappings): Rewrite to use
1523 linux_read_core_file_mappings.
1524 (linux_init_abi): Register linux_read_core_file_mappings.
1525
1526 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1527
1528 * arch-utils.c (default_read_core_file_mappings): New function.
1529 * arch-utils.c (default_read_core_file_mappings): Declare.
1530 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1531 * gdbarch.h, gdbarch.c: Regenerate.
1532
1533 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1534
1535 PR corefiles/25631
1536 * corelow.c (core_target:xfer_partial): Revise
1537 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1538 case after first checking the stratum beneath the core
1539 target.
1540 (has_all_memory): Return true.
1541 * target.c (raw_memory_xfer_partial): Revise comment
1542 regarding use of has_all_memory.
1543
1544 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1545
1546 * exec.h (section_table_xfer_memory): Revise declaration,
1547 replacing section name parameter with an optional callback
1548 predicate.
1549 * exec.c (section_table_xfer_memory): Likewise.
1550 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1551 of section_table_xfer_memory.
1552
1553 2020-07-22 Tom Tromey <tromey@adacore.com>
1554
1555 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1556 lookup_symbol_search_name.
1557
1558 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1559
1560 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1561 redundant local variable.
1562 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1563 reference, not pointer, update code accordingly.
1564
1565 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1566 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1567
1568 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1569 * jit.c (jit_breakpoint_re_set_internal): Use the
1570 `skip_jit_symbol_lookup` field.
1571
1572 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1573 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1574
1575 * jit.c (jit_read_descriptor): Define the descriptor address once,
1576 use twice.
1577 (jit_breakpoint_deleted): Move the declaration of the loop variable
1578 `iter` into the loop header.
1579 (jit_breakpoint_re_set_internal): Move the declaration of the local
1580 variable `objf_data` to the first point of definition.
1581 (jit_event_handler): Move the declaration of local variables
1582 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1583 Rename `objf` to `jited`.
1584
1585 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1586
1587 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1588 Remove.
1589 * jit.c (get_jiter_objfile_data): Update.
1590
1591 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1592 Simon Marchi <simon.marchi@polymtl.ca>
1593
1594 * jit.c (struct jit_program_space_data): Remove.
1595 (jit_program_space_key): Remove.
1596 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1597 stuff.
1598 (get_jit_program_space_data): Remove.
1599 (jit_breakpoint_deleted): Iterate on all of the program space's
1600 objfiles.
1601 (jit_inferior_init): Likewise.
1602 (jit_breakpoint_re_set_internal): Likewise. Also change return
1603 type to void.
1604 (jit_breakpoint_re_set): Pass current_program_space to
1605 jit_breakpoint_re_set_internal.
1606
1607 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1608
1609 * jit.h (struct jiter_objfile_data) <cached_code_address,
1610 jit_breakpoint>: Move to here from ...
1611 * jit.c (jit_program_space_data): ... here.
1612 (jiter_objfile_data::~jiter_objfile_data): Update.
1613 (jit_breakpoint_deleted): Update.
1614 (jit_breakpoint_re_set_internal): Update.
1615
1616 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1617
1618 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1619 checks.
1620 (jit_read_descriptor): Remove NULL check.
1621 (jit_event_handler): Add an assertion.
1622
1623 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1624
1625 * jit.h (struct jit_objfile_data): Split into...
1626 (struct jiter_objfile_data): ... this ...
1627 (struct jited_objfile_data): ... and this.
1628 * objfiles.h (struct objfile) <jit_data>: Remove.
1629 <jiter_data, jited_data>: New fields.
1630 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1631 (jiter_objfile_data::~jiter_objfile_data): ... this.
1632 (get_jit_objfile_data): Rename to ...
1633 (get_jiter_objfile_data): ... this.
1634 (add_objfile_entry): Update.
1635 (jit_read_descriptor): Use get_jiter_objfile_data.
1636 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1637 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1638 (jit_inferior_exit_hook): Use objfile's jited_data field.
1639
1640 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1641
1642 * jit.h: Forward-declare `struct minimal_symbol`.
1643 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1644 constructor, destructor, and an objfile* field.
1645 * jit.c (jit_objfile_data): Remove.
1646 (struct jit_objfile_data): Migrate from here to jit.h.
1647 (jit_objfile_data::~jit_objfile_data): New destructor
1648 implementation with code moved from free_objfile_data.
1649 (free_objfile_data): Delete.
1650 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1651 (jit_find_objf_with_entry_addr): Ditto.
1652 (jit_inferior_exit_hook): Ditto.
1653 (_initialize_jit): Remove the call to
1654 register_objfile_data_with_cleanup.
1655 * objfiles.h (struct objfile) <jit_data>: New field.
1656
1657 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1658
1659 * jit.h: Forward-declare `struct objfile`.
1660 (jit_event_handler): Add a second parameter, the JITer objfile.
1661 * jit.c (jit_read_descriptor): Change the signature to take the
1662 JITer objfile as an argument instead of the jit_program_space_data.
1663 (jit_inferior_init): Update the call to jit_read_descriptor.
1664 (jit_event_handler): Use the new JITer objfile argument when calling
1665 jit_read_descriptor.
1666 * breakpoint.c (handle_jit_event): Update the call to
1667 jit_event_handler to pass the JITer objfile.
1668
1669 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1670
1671 * gdbarch.c: Regenerate.
1672 * gdbarch.h: Regenerate.
1673 * gdbarch.sh (handle_segmentation_fault): Remove method.
1674 * infrun.c (handle_segmentation_fault): Remove.
1675 (print_signal_received_reason): Remove call to
1676 handle_segmentation_fault.
1677
1678 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1679
1680 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1681 Rename to sparc64_linux_report_signal_info and add siggnal
1682 argument.
1683 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1684 instead of sparc64_linux_handle_segmentation_fault.
1685
1686 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1687
1688 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1689 i386_linux_report_signal_info instead of
1690 i386_linux_handle_segmentation_fault.
1691 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1692 to i386_linux_report_signal_info and add siggnal argument.
1693 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1694 of i386_linux_handle_segmentation_fault.
1695 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1696 to i386_linux_report_signal_info and add siggnal argument.
1697
1698 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1699
1700 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1701 hook if present.
1702
1703 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1704
1705 * gdbarch.c: Regenerate.
1706 * gdbarch.h: Regenerate.
1707 * gdbarch.sh (report_signal_info): New method.
1708 * infrun.c (print_signal_received_reason): Invoke gdbarch
1709 report_signal_info hook if present.
1710
1711 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1712
1713 * python/py-registers.c : Add 'unordered_map' include.
1714 (gdbpy_new_reggroup): Renamed to...
1715 (gdbpy_get_reggroup): ...this. Update to only create register
1716 group descriptors when needed.
1717 (gdbpy_reggroup_iter_next): Update.
1718
1719 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1720
1721 * python/py-registers.c (gdbpy_register_object_data): New static
1722 global.
1723 (gdbpy_register_object_data_init): New function.
1724 (gdbpy_new_register_descriptor): Renamed to...
1725 (gdbpy_get_register_descriptor): ...this, and update to reuse
1726 existing register descriptors where possible.
1727 (gdbpy_register_descriptor_iter_next): Update.
1728 (gdbpy_initialize_registers): Register new gdbarch data.
1729
1730 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1731
1732 * linux-nat.c (stopped_pids): Make static.
1733
1734 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1735
1736 PR ada/26235
1737 * gdbtypes.c (ada_discrete_type_low_bound,
1738 ada_discrete_type_high_bound): Handle undefined bounds.
1739
1740 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1741
1742 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1743 declaration.
1744 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1745 function.
1746
1747 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1748
1749 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1750 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1751 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1752 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1753 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1754 method.
1755
1756 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1757
1758 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1759 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1760 which are deprecated in Guile 3.0.
1761 * configure.ac (try_guile_versions): Add "guile-3.0".
1762 * configure (try_guile_versions): Regenerate.
1763 * NEWS: Update entry.
1764
1765 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1766 Doug Evans <dje@google.com>
1767
1768 PR gdb/21104
1769 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1770 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1771 USING_GUILE_BEFORE_2_2.
1772 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1773 Change type to 'scm_t_port_type *'.
1774 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1775 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1776 parameter and honor it. Update callers.
1777 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1778 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1779 functions.
1780 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1781 USING_GUILE_BEFORE_2_2.
1782 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1783 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1784 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1785 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1786 and 'SCM_PORT_TYPE'.
1787 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1788 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1789 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1790 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1791 [!USING_GUILE_BEFORE_2_2]: New functions.
1792 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1793 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1794 'gdbscm_memory_port_read'.
1795 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1796 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1797 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1798 function.
1799 (ioscm_init_memory_port): Remove.
1800 (ioscm_init_memory_port_stream): New function
1801 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1802 function.
1803 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1804 Return scm_from_uint (0).
1805 (gdbscm_set_memory_port_read_buffer_size_x)
1806 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1807 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1808 Return scm_from_uint (0).
1809 (gdbscm_set_memory_port_write_buffer_size_x)
1810 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1811 * configure.ac (try_guile_versions): Add "guile-2.2".
1812 * configure: Regenerate.
1813 * NEWS: Add entry.
1814
1815 2020-07-18 Tom Tromey <tom@tromey.com>
1816
1817 * linux-nat.c (linux_multi_process): Remove.
1818 (linux_nat_target::supports_multi_process): Return true.
1819
1820 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1821
1822 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1823 (riscv_lookup_target_description): Return pointer out of
1824 unique_ptr.
1825 * target-descriptions.c (allocate_target_description): Add
1826 comment.
1827 (target_desc_deleter::operator()): Likewise.
1828 * target-descriptions.h (struct target_desc_deleter): Moved to
1829 gdbsupport/tdesc.h.
1830 (target_desc_up): Likewise.
1831
1832 2020-07-17 Tom Tromey <tromey@adacore.com>
1833
1834 * linux-nat.c (linux_nat_target::supports_non_stop)
1835 (linux_nat_target::always_non_stop_p): Use "true".
1836 (linux_nat_target::supports_disable_randomization): Use "true" and
1837 "false".
1838
1839 2020-07-16 Caroline Tice <cmtice@google.com>
1840
1841 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1842 (RNGLIST_HEADER_SIZE64): New constant definition.
1843 (struct dwop_section_names): Add rnglists_dwo.
1844 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1845 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1846 (struct dwo_sections): Add rnglists field.
1847 (read_attribut_reprocess): Add tag parameter.
1848 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1849 (cu_debug_rnglists_section): New function (decl & definition).
1850 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1851 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1852 die whose range is being checked; get rnglist section from
1853 cu_debug_rnglists_section, to get from either objfile or dwo file as
1854 appropriate. Add cases for DW_RLE_base_addressx,
1855 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1856 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1857 test inside if-condition and updating complaint message.
1858 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1859 dwarf2_rnglists_process.
1860 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1861 dwarf2_ranges_process.
1862 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1863 need_ranges_base and update comment appropriately. Also pass die tag
1864 to dwarf2_ranges_read.
1865 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1866 need_ranges_base and update comment appropriately. Also pass die tag
1867 to dwarf2_ranges_process.
1868 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1869 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1870 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1871 need_ranges_base and update comment appropriately. Also pass die tag
1872 to read_attribute_reprocess and dwarf2_ranges_read.
1873 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1874 and update function comment appropriately.
1875 (read_loclist_index): Call read_loclists_rnglists_header instead of
1876 read_loclist_header.
1877 (read_rnglist_index): New function.
1878 (read_attribute_reprocess): Add tag parameter. Add code for
1879 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1880 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1881
1882 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1883
1884 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1885 being resolved.
1886
1887 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1888
1889 * arch-utils.c (show_architecture): Update formatting of messages.
1890
1891 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1892
1893 * gdbtypes.h (struct type) <bounds>: Handle array and string
1894 types.
1895 * ada-lang.c (assign_aggregate): Use type::bounds on
1896 array/string type.
1897 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1898 * c-varobj.c (c_number_of_children): Likewise.
1899 (c_describe_child): Likewise.
1900 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1901 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1902 (f_type_print_base): Likewise.
1903 * f-valprint.c (f77_array_offset_tbl): Likewise.
1904 (f77_get_upperbound): Likewise.
1905 (f77_print_array_1): Likewise.
1906 * guile/scm-type.c (gdbscm_type_range): Likewise.
1907 * m2-typeprint.c (m2_array): Likewise.
1908 (m2_is_long_set_of_type): Likewise.
1909 * m2-valprint.c (get_long_set_bounds): Likewise.
1910 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1911 * python/py-type.c (typy_range): Likewise.
1912 * rust-lang.c (rust_internal_print_type): Likewise.
1913 * type-stack.c (type_stack::follow_types): Likewise.
1914 * valarith.c (value_subscripted_rvalue): Likewise.
1915 * valops.c (value_cast): Likewise.
1916
1917 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1918
1919 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1920 callers to use the equivalent accessor methods.
1921
1922 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1923
1924 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1925 (struct type) <bit_stride>: New method.
1926 (TYPE_BIT_STRIDE): Remove.
1927 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1928
1929 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1930
1931 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1932 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1933 callers to use the equivalent accessor methods instead.
1934
1935 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1936
1937 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1938 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1939 callers to use the equivalent accessor methods instead.
1940
1941 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1942
1943 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1944 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1945 to use dynamic_prop::kind.
1946
1947 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1948
1949 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1950 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1951 to get the bound property's kind and check against
1952 PROP_UNDEFINED.
1953
1954 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1955
1956 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1957 all callers to use type::range_bounds followed by
1958 dynamic_prop::{low,high}.
1959
1960 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1961
1962 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1963 const_val, set_const_val, baton, set_locexpr, set_loclist,
1964 set_addr_offset, variant_parts, set_variant_parts,
1965 original_type, set_original_type>: New methods.
1966 <kind>: Rename to...
1967 <m_kind>: ... this. Update all users to use the new methods
1968 instead.
1969 <data>: Rename to...
1970 <m_data>: ... this. Update all users to use the new methods
1971 instead.
1972
1973 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1974
1975 * gdbtypes.c (get_discrete_bounds): Return failure if
1976 the range type's bounds are not both defined and constant
1977 values.
1978 (get_array_bounds): Update comment. Remove undefined bound check.
1979
1980 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1981
1982 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1983 the type::bounds method directly.
1984
1985 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1986
1987 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1988 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1989 are used to set the range type's bounds to use set_bounds.
1990
1991 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1992
1993 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1994
1995 2020-07-10 Pedro Alves <pedro@palves.net>
1996
1997 * gdbthread.h (inferior_ref): Define.
1998 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1999 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
2000 * thread.c
2001 (scoped_restore_current_thread::restore):
2002 Adjust to gdb::ref_ptr.
2003 (scoped_restore_current_thread::~scoped_restore_current_thread):
2004 Remove manual decref handling.
2005 (scoped_restore_current_thread::scoped_restore_current_thread):
2006 Adjust to use
2007 inferior_ref::new_reference/thread_info_ref::new_reference.
2008 Incref the thread before calling get_frame_id instead of after.
2009 Let TARGET_CLOSE_ERROR propagate.
2010
2011 2020-07-10 Pedro Alves <pedro@palves.net>
2012
2013 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
2014 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
2015 NOT_AVAILABLE_ERROR.
2016 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
2017 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
2018
2019 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
2020 Pedro Alves <pedro@palves.net>
2021
2022 PR gdb/26199
2023 * infrun.c (threads_are_resumed_pending_p): Delete.
2024 (do_target_wait): Remove threads_are_executing and
2025 threads_are_resumed_pending_p checks from the inferior_matches
2026 lambda. Update comments.
2027
2028 2020-07-10 Pedro Alves <pedro@palves.net>
2029
2030 PR gdb/26199
2031 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
2032 executing threads.
2033
2034 2020-07-10 Pedro Alves <pedro@palves.net>
2035
2036 PR gdb/26199
2037 * infrun.c (handle_no_resumed): Handle multiple targets.
2038
2039 2020-07-10 Pedro Alves <pedro@palves.net>
2040
2041 PR gdb/26199
2042 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2043 target_is_async_p.
2044
2045 2020-07-10 Pedro Alves <pedro@palves.net>
2046
2047 PR gdb/26199
2048 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2049 threads, not all threads.
2050
2051 2020-07-10 Pedro Alves <pedro@palves.net>
2052
2053 PR gdb/26199
2054 * remote.c (remote_target::open_1): Pass remote target pointer as
2055 data to create_async_event_handler.
2056 (remote_async_inferior_event_handler): Mark async event handler
2057 before returning if the remote target still has either pending
2058 events or unacknowledged notifications.
2059
2060 2020-07-10 John Baldwin <jhb@FreeBSD.org>
2061
2062 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2063 declaration.
2064 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2065 function.
2066
2067 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2068
2069 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2070 inferior_ptid.
2071
2072 2020-07-09 John Baldwin <jhb@FreeBSD.org>
2073
2074 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2075 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2076 AT_FREEBSD_PS_STRINGS.
2077
2078 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
2079
2080 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2081 of debugfile path on Windows.
2082
2083 2020-07-08 John Baldwin <jhb@FreeBSD.org>
2084
2085 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2086 argument to 'data'.
2087
2088 2020-07-08 Tom Tromey <tromey@adacore.com>
2089
2090 * ada-lang.c (ada_exception_message_1): Use read_memory.
2091
2092 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2093
2094 PR python/22748
2095 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2096 special handling for inline frames.
2097 * findvar.c (value_of_register_lazy): Skip inline frames when
2098 creating lazy register values.
2099 * frame.c (frame_id_computed_p): Delete definition.
2100 * frame.h (frame_id_computed_p): Delete declaration.
2101
2102 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2103
2104 * NEWS: Mention additions to Python API.
2105 * python/py-arch.c (archpy_register_groups): New function.
2106 (arch_object_methods): Add 'register_groups' method.
2107 * python/py-registers.c (reggroup_iterator_object): New struct.
2108 (reggroup_object): New struct.
2109 (gdbpy_new_reggroup): New function.
2110 (gdbpy_reggroup_to_string): New function.
2111 (gdbpy_reggroup_name): New function.
2112 (gdbpy_reggroup_iter): New function.
2113 (gdbpy_reggroup_iter_next): New function.
2114 (gdbpy_new_reggroup_iterator): New function
2115 (gdbpy_initialize_registers): Register new types.
2116 (reggroup_iterator_object_type): Define new Python type.
2117 (gdbpy_reggroup_getset): New static global.
2118 (reggroup_object_type): Define new Python type.
2119 * python/python-internal.h
2120
2121 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2122
2123 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2124 * python/py-arch.c (archpy_registers): New function.
2125 (arch_object_methods): Add 'registers' method.
2126 * python/py-registers.c: New file.
2127 * python/python-internal.h
2128 (gdbpy_new_register_descriptor_iterator): Declare.
2129 (gdbpy_initialize_registers): Declare.
2130 * python/python.c (do_start_initialization): Call
2131 gdbpy_initialize_registers.
2132 * NEWS: Mention additions to the Python API.
2133
2134 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2135
2136 * NEWS: Mention new Python API method.
2137 * python/py-unwind.c (pending_framepy_architecture): New function.
2138 (pending_frame_object_methods): Add architecture method.
2139
2140 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2141
2142 * gdbarch.c: Regenerate.
2143 * gdbarch.h: Regenerate.
2144 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2145 (gdbarch_data): Use internal_error for the case where
2146 deprecated_set_gdbarch_data was originally needed.
2147 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2148 and use passed in obstack.
2149 (libunwind_frame_set_descr): Should no longer get back NULL from
2150 gdbarch_data.
2151 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2152 type.
2153 * user-regs.c (user_regs_init): Update parameters, and use passed
2154 in obstack.
2155 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2156 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2157
2158 2020-07-06 Tom de Vries <tdevries@suse.de>
2159
2160 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2161 End-Of-Sequence in lte_is_less_than.
2162 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2163 "gdb: Don't reorder line table entries too much when sorting".
2164
2165 2020-07-06 Tom de Vries <tdevries@suse.de>
2166
2167 PR tui/26205
2168 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2169
2170 2020-07-05 Tom de Vries <tdevries@suse.de>
2171
2172 PR build/26187
2173 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2174 std::uncaught_exceptions instead of deprecated
2175 std::uncaught_exception.
2176
2177 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2178
2179 * macroexp.h (macro_stringify): Return
2180 gdb::unique_xmalloc_ptr<char>.
2181 * macroexp.c (macro_stringify): Likewise.
2182 * macrotab.c (fixup_definition): Update.
2183
2184 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2185
2186 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2187 (lex_one_token): Update.
2188 * macroexp.c (struct macro_buffer) <release>: Return
2189 gdb::unique_xmalloc_ptr<char>.
2190 (macro_stringify): Update.
2191 (macro_expand): Update.
2192 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2193 * macroexp.h (macro_expand_next): Likewise.
2194
2195 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
2196
2197 * macroexp.h (macro_lookup_ftype): Remove.
2198 (macro_expand, macro_expand_once, macro_expand_next): Remove
2199 lookup function parameters, add scope parameter.
2200 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2201 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2202 * macroscope.h (standard_macro_lookup): Change parameter type
2203 to macro_scope.
2204 * macroscope.c (standard_macro_lookup): Likewise.
2205 * c-exp.y (lex_one_token): Update.
2206 * macrocmd.c (macro_expand_command): Likewise.
2207 (macro_expand_once_command): Likewise.
2208
2209 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2210
2211 * inf-loop.c (inferior_event_handler): Remove client_data param.
2212 * inf-loop.h (inferior_event_handler): Likewise.
2213 * infcmd.c (step_1): Adjust.
2214 * infrun.c (proceed): Adjust.
2215 (fetch_inferior_event): Remove client_data param.
2216 (infrun_async_inferior_event_handler): Adjust.
2217 * infrun.h (fetch_inferior_event): Remove `void *` param.
2218 * linux-nat.c (handle_target_event): Adjust.
2219 * record-btrace.c (record_btrace_handle_async_inferior_event):
2220 Adjust.
2221 * record-full.c (record_full_async_inferior_event_handler):
2222 Adjust.
2223 * remote.c (remote_async_inferior_event_handler): Adjust.
2224
2225 2020-07-01 Tom Tromey <tom@tromey.com>
2226
2227 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2228 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2229
2230 2020-07-01 Tom Tromey <tom@tromey.com>
2231
2232 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2233 tui_gen_win_info.
2234 (tui_win_info::make_window): Merge with
2235 tui_gen_win_info::make_window.
2236 (tui_win_info::make_visible): Move from tui_gen_win_info.
2237 * tui/tui-win.c (tui_win_info::max_width): Move from
2238 tui_gen_win_info.
2239 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2240 type.
2241 <window_factory>: Likewise.
2242 * tui/tui-layout.c (tui_win_info::resize): Move from
2243 tui_gen_win_info.
2244 (make_standard_window): Change return type.
2245 (get_locator_window, tui_get_window_by_name): Likewise.
2246 (tui_layout_window::apply): Remove a cast.
2247 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2248 (struct tui_win_info): Merge with tui_gen_win_info.
2249 (struct tui_gen_win_info): Remove.
2250
2251 2020-07-01 Tom Tromey <tom@tromey.com>
2252
2253 * tui/tui-stack.h (struct tui_locator_window): Derive from
2254 tui_win_info.
2255 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2256 <can_box>: New method.
2257
2258 2020-07-01 Tom Tromey <tom@tromey.com>
2259
2260 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2261
2262 2020-07-01 Tom Tromey <tom@tromey.com>
2263
2264 * tui/tui-regs.c (tui_data_window::display_registers_from)
2265 (tui_data_window::display_registers_from)
2266 (tui_data_window::first_data_item_displayed)
2267 (tui_data_window::delete_data_content_windows): Update.
2268 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2269 Remove.
2270 (tui_data_window::check_register_values): Update.
2271 (tui_data_item_window::rerender): Add parameters. Update.
2272 (tui_data_item_window::refresh_window): Remove.
2273 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2274 virtual.
2275 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2276 tui_gen_win_info.
2277 <refresh_window, max_height, min_height>: Remove.
2278 <rerender>: Add parameters.
2279 <x, y, visible>: New members.
2280 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2281 <m_item_width>: New member.
2282
2283 2020-07-01 Tom Tromey <tom@tromey.com>
2284
2285 * tui/tui-regs.c (tui_data_window::show_register_group)
2286 (tui_data_window::check_register_values): Update.
2287 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2288 from item_no.
2289
2290 2020-07-01 Tom Tromey <tom@tromey.com>
2291
2292 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2293 useless "if".
2294
2295 2020-07-01 Tom Tromey <tom@tromey.com>
2296
2297 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2298 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2299
2300 2020-07-01 Tom Tromey <tom@tromey.com>
2301
2302 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2303 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2304 (struct tui_line_or_address): Move from tui-data.h.
2305 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2306 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2307 (tui_cmd_window, tui_source_window_base, tui_source_window)
2308 (tui_disasm_window): Don't declare.
2309 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2310 to tui-winsource.h.
2311 (SINGLE_KEY): Move to tui-stack.c.
2312
2313 2020-07-01 Tom Tromey <tom@tromey.com>
2314
2315 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2316 std::string.
2317 * tui/tui-regs.c (class tab_expansion_file): New.
2318 (tab_expansion_file::write): New method.
2319 (tui_register_format): Change return type. Use
2320 tab_expansion_file.
2321 (tui_get_register, tui_data_window::display_registers_from)
2322 (tui_data_item_window::rerender): Update.
2323 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2324 * tui/tui-io.c (tui_expand_tabs): Remove.
2325
2326 2020-07-01 Tom Tromey <tom@tromey.com>
2327
2328 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2329
2330 2020-07-01 Fangrui Song <maskray@google.com>
2331
2332 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2333
2334 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2335
2336 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2337 forms for DW_AT_associated and DW_AT_allocated attributes,
2338 which is already checked in function attr_to_dynamic_prop.
2339
2340 2020-06-30 Tom Tromey <tromey@adacore.com>
2341
2342 * dwarf2/read.c (quirk_rust_enum): Correctly call
2343 alloc_rust_variant for default-less enum.
2344
2345 2020-06-30 Tom Tromey <tromey@adacore.com>
2346
2347 PR build/26183:
2348 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2349 gdb::to_string.
2350
2351 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
2352
2353 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2354 * gdbarch.h: Re-generate.
2355
2356 2020-06-28 Tom Tromey <tom@tromey.com>
2357
2358 * command.h (cmd_types): Remove.
2359 (cmd_type): Don't declare.
2360 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2361 typedef.
2362 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2363 * cli/cli-decode.c (cmd_type): Remove.
2364
2365 2020-06-27 Pedro Alves <palves@redhat.com>
2366
2367 * fork-child.c (prefork_hook): Adjust.
2368 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2369 Delete.
2370 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2371 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2372 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2373 Remove declarations.
2374 (struct inferior) <set_tty, tty>: New methods.
2375 (struct inferior) <terminal>: Rename to ...
2376 (struct inferior) <m_terminal>: ... this and make private.
2377 * main.c (captured_main_1): Adjust.
2378 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2379 (mi_cmd_inferior_tty_show): Adjust.
2380 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2381 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2382
2383 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
2384
2385 * configure.ac: Add --enable-libctf: handle --disable-static
2386 properly.
2387 * acinclude.m4: sinclude ../config/enable.m4.
2388 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2389 (LIBCTF): Substitute in.
2390 (CTF_DEPS): New, likewise.
2391 (CLIBS): libctf needs symbols from libbfd: move earlier.
2392 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2393 flags.
2394 * ctfread.c: Surround in ENABLE_LIBCTF.
2395 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2396 * configure: Regenerate.
2397 * config.in: Likewise.
2398
2399 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2400
2401 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2402
2403 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2404
2405 * inferior.h (struct inferior) <terminal>: Change type to
2406 gdb::unique_xmalloc_ptr<char>.
2407 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2408 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2409 field, adjust to unique pointer.
2410 (get_inferior_io_terminal): Adjust to unique pointer.
2411
2412 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2413
2414 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2415 registers, not just the known core set of registers.
2416
2417 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2418
2419 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2420 fflags, frm, and fcsr registers.
2421 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2422 restore groups.
2423 (riscv_tdesc_unknown_reg): New function.
2424 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2425 tdesc_use_registers.
2426 * riscv-tdep.h (struct gdbarch_tdep): Add
2427 unknown_csrs_first_regnum, unknown_csrs_count,
2428 duplicate_fflags_regnum, duplicate_frm_regnum, and
2429 duplicate_fcsr_regnum fields.
2430
2431 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2432
2433 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2434 callback, use the callback (when not null) to help number unknown
2435 registers.
2436 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2437 (tdesc_use_registers): Add extra parameter to declaration.
2438
2439 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2440
2441 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2442 in the file.
2443 (class riscv_pending_register_alias): Likewise.
2444 (riscv_register_feature::register_info): Change 'required_p' field
2445 to 'required', and change its type. Add 'check' member function.
2446 (riscv_register_feature::register_info::check): Define new member
2447 function.
2448 (riscv_xreg_feature): Change initialisation of 'required' field.
2449 (riscv_freg_feature): Likewise.
2450 (riscv_virtual_feature): Likewise.
2451 (riscv_csr_feature): Likewise.
2452 (riscv_check_tdesc_feature): Take extra parameter, the csr
2453 tdesc_feature, rewrite the function to use the new
2454 riscv_register_feature::register_info::check function.
2455 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2456
2457 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2458
2459 * features/Makefile: Remove all references to the deleted files
2460 below.
2461 * features/riscv/32bit-csr.c: Deleted.
2462 * features/riscv/32bit-csr.xml: Deleted.
2463 * features/riscv/64bit-csr.c: Deleted.
2464 * features/riscv/64bit-csr.xml: Deleted.
2465 * features/riscv/rebuild-csr-xml.sh: Deleted.
2466
2467 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2468
2469 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2470 whitespace error for declaration of names member variable.
2471 (struct riscv_register_feature): Add new prefer_first_name member
2472 variable, and fix whitespace error in declaration of registers.
2473 (riscv_xreg_feature): Initialize prefer_first_name field.
2474 (riscv_freg_feature): Likewise.
2475 (riscv_virtual_feature): Likewise.
2476 (riscv_csr_feature): Likewise.
2477 (riscv_register_name): Expand on comments. Remove register name
2478 modifications for CSR and virtual registers.
2479
2480 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2481
2482 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2483 errors.
2484
2485 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2486
2487 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2488 riscv-opc.h.
2489 (class riscv_pending_register_alias): New class.
2490 (riscv_check_tdesc_feature): Take vector of pending aliases and
2491 populate it as appropriate.
2492 (riscv_setup_register_aliases): Delete.
2493 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2494 to riscv_check_tdesc_feature in all cases. Use the vector to
2495 create the register aliases.
2496
2497 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2498
2499 * sol2-tdep.c (sol2_static_transform_name): Remove.
2500 (sol2_init_abi): Don't register it.
2501 * gdbarch.sh (static_transform_name): Remove.
2502 * gdbarch.c, gdbarch.h: Regenerate.
2503
2504 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2505 gdbarch_static_transform_name.
2506 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2507 * stabsread.c (define_symbol) <'X'>: Remove.
2508 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2509 handling.
2510 <'V'>: Likewise.
2511 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2512 <'S'>: Remove call to gdbarch_static_transform_name.
2513
2514 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2515
2516 * procfs.c (procfs_pre_trace): New function.
2517 (procfs_target::create_inferior): Pass it to fork_inferior.
2518
2519 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2520
2521 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2522 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2523 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2524 sol2-tdep.o, sparc-sol2-tdep.o.
2525 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2526 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2527 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2528 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2529
2530 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2531
2532 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2533 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2534 Call sol2_init_abi.
2535 Remove calls to set_gdbarch_skip_solib_resolver,
2536 set_gdbarch_core_pid_to_str.
2537 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2538 (i386_sol2_static_transform_name): Remove.
2539 (i386_sol2_init_abi): Call sol2_init_abi.
2540 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2541 set_gdbarch_static_transform_name,
2542 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2543 Use sol2_sigtramp_p.
2544 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2545 (sol2_sigtramp_p): New function.
2546 (sol2_static_transform_name): New function.
2547 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2548 (sol2_init_abi): New function.
2549 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2550 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2551 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2552 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2553 (sparc_sol2_static_transform_name): Remove.
2554 (sparc32_sol2_init_abi): Call sol2_init_abi.
2555 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2556 set_gdbarch_static_transform_name,
2557 set_gdbarch_skip_solib_resolver,
2558 set_gdbarch_core_pid_to_str.
2559 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2560 (sparc_sol2_static_transform_name): Remove
2561 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2562 call sol2_sigtramp_p.
2563 (sparc64_sol2_init_abi): Call sol2_init_abi.
2564 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2565 set_gdbarch_static_transform_name,
2566 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2567
2568 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2569
2570 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2571 * exec.c (validate_exec_file): If from_tty, set both
2572 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2573 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2574 and from_tty, unconditionally ask a confirmation.
2575
2576 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2577
2578 * target-descriptions.c (tdesc_architecture_name): Protect against
2579 NULL pointer dereference.
2580 (maint_print_xml_tdesc_cmd): New function.
2581 (_initialize_target_descriptions): Register new 'maint print
2582 xml-tdesc' command and give it the filename completer.
2583 * NEWS: Mention new 'maint print xml-tdesc' command.
2584
2585 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2586
2587 * target-descriptions.c (class tdesc_compatible_info): New class.
2588 (struct target_desc): Change type of compatible vector.
2589 (tdesc_compatible_p): Update for change in type of
2590 target_desc::compatible.
2591 (tdesc_compatible_info_list): New function.
2592 (tdesc_compatible_info_arch_name): New function.
2593 (tdesc_add_compatible): Update for change in type of
2594 target_desc::compatible.
2595 (print_c_tdesc::visit_pre): Likewise.
2596
2597 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2598
2599 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2600 whitespace to underscore.
2601 (maint_print_c_tdesc_cmd): Use fake filename for target
2602 descriptions that came from the target.
2603 (_initialize_target_descriptions): Add filename command completion
2604 for 'maint print c-tdesc'.
2605
2606 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2607
2608 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2609 lines.
2610
2611 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2612
2613 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2614 lines.
2615 (dwarf2_find_location_expression): Likewise.
2616 (call_site_parameter_matches): Likewise.
2617 (dwarf2_compile_expr_to_ax): Likewise.
2618 (disassemble_dwarf_expression): Likewise.
2619 (loclist_describe_location): Likewise.
2620
2621 2020-06-23 Pedro Alves <palves@redhat.com>
2622
2623 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2624 progspace-and-thread.h. Include scoped-mock-context.h instead.
2625 (register_to_value_test): Use scoped_mock_context.
2626 * regcache.c: Include "scoped-mock-context.h".
2627 (cooked_read_test): Don't error out if a target is already pushed.
2628 Use scoped_mock_context. Adjust.
2629 * scoped-mock-context.h: New file.
2630
2631 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2632
2633 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2634 initializer.
2635 (ada_language::is_string_type_p): New member function.
2636 * c-lang.c (c_language_data): Delete la_is_string_type_p
2637 initializer.
2638 (cplus_language_data): Likewise.
2639 (asm_language_data): Likewise.
2640 (minimal_language_data): Likewise.
2641 * d-lang.c (d_language_data): Likewise.
2642 * f-lang.c (f_is_string_type_p): Delete function, implementation
2643 moved to f_language::is_string_type_p.
2644 (f_language_data): Delete la_is_string_type_p initializer.
2645 (f_language::is_string_type_p): New member function,
2646 implementation from f_is_string_type_p.
2647 * go-lang.c (go_is_string_type_p): Delete function, implementation
2648 moved to go_language::is_string_type_p.
2649 (go_language_data): Delete la_is_string_type_p initializer.
2650 (go_language::is_string_type_p): New member function,
2651 implementation from go_is_string_type_p.
2652 * language.c (language_defn::is_string_type_p): Define new member
2653 function.
2654 (default_is_string_type_p): Make static, add comment copied from
2655 header file.
2656 (unknown_language_data): Delete la_is_string_type_p initializer.
2657 (unknown_language::is_string_type_p): New member function.
2658 (auto_language_data): Delete la_is_string_type_p initializer.
2659 (auto_language::is_string_type_p): New member function.
2660 * language.h (language_data): Delete la_is_string_type_p field.
2661 (language_defn::is_string_type_p): Declare new function.
2662 (default_is_string_type_p): Delete desclaration, move comment to
2663 definition.
2664 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2665 moved to m2_language::is_string_type_p.
2666 (m2_language_data): Delete la_is_string_type_p initializer.
2667 (m2_language::is_string_type_p): New member function,
2668 implementation from m2_is_string_type_p.
2669 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2670 initializer.
2671 * opencl-lang.c (opencl_language_data): Likewise.
2672 * p-lang.c (pascal_is_string_type_p): Delete function,
2673 implementation moved to pascal_language::is_string_type_p.
2674 (pascal_language_data): Delete la_is_string_type_p initializer.
2675 (pascal_language::is_string_type_p): New member function,
2676 implementation from pascal_is_string_type_p.
2677 * rust-lang.c (rust_is_string_type_p): Delete function,
2678 implementation moved to rust_language::is_string_type_p.
2679 (rust_language_data): Delete la_is_string_type_p initializer.
2680 (rust_language::is_string_type_p): New member function,
2681 implementation from rust_is_string_type_p.
2682 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2683 is_string_type_p.
2684
2685 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2686
2687 * ada-lang.c (ada_language_data): Delete la_print_typedef
2688 initializer.
2689 (ada_language::print_typedef): New member function.
2690 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2691 (cplus_language_data): Likewise.
2692 (asm_language_data): Likewise.
2693 (minimal_language_data): Likewise.
2694 * d-lang.c (d_language_data): Likewise.
2695 * f-lang.c (f_language_data): Likewise.
2696 (f_language::print_typedef): New member function.
2697 * go-lang.c (go_language_data): Delete la_print_typedef
2698 initializer.
2699 * language.c (language_defn::print_typedef): Define member
2700 function.
2701 (unknown_language_data): Delete la_print_typedef initializer.
2702 (unknown_language::print_typedef): New member function.
2703 (auto_language_data): Delete la_print_typedef initializer.
2704 (auto_language::print_typedef): New member function.
2705 * language.h (language_data): Delete la_print_typedef field.
2706 (language_defn::print_typedef): Declare new member function.
2707 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2708 (default_print_typedef): Delete declaration.
2709 * m2-lang.c (m2_language_data): Delete la_print_typedef
2710 initializer.
2711 (m2_language::print_typedef): New member function.
2712 * objc-lang.c (objc_language_data): Delete la_print_typedef
2713 initializer.
2714 * opencl-lang.c (opencl_language_data): Likewise.
2715 * p-lang.c (pascal_language_data): Likewise.
2716 (pascal_language::print_typedef): New member function.
2717 * rust-lang.c (rust_print_typedef): Delete function,
2718 implementation moved to rust_language::print_typedef.
2719 (rust_language): Delete la_print_typedef initializer.
2720 (rust_language::print_typedef): New member function,
2721 implementation from rust_print_typedef.
2722 * typeprint.c (default_print_typedef): Delete.
2723
2724 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2725
2726 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2727 (ada_language::printstr): New member function.
2728 * c-lang.c (c_language_data): Delete la_printstr initializer.
2729 (cplus_language_data): Likewise.
2730 (asm_language_data): Likewise.
2731 (minimal_language_data): Likewise.
2732 * d-lang.c (d_language_data): Likewise.
2733 * f-lang.c (f_printstr): Rename to f_language::printstr.
2734 (f_language_data): Delete la_printstr initializer.
2735 (f_language::printstr): New member function, implementation from
2736 f_printstr.
2737 * go-lang.c (go_language_data): Delete la_printstr initializer.
2738 * language.c (language_defn::printstr): Define new member
2739 function.
2740 (unk_lang_printstr): Delete.
2741 (unknown_language_data): Delete la_printstr initializer.
2742 (unknown_language::printstr): New member function.
2743 (auto_language_data): Delete la_printstr initializer.
2744 (auto_language::printstr): New member function.
2745 * language.h (language_data): Delete la_printstr field.
2746 (language_defn::printstr): Declare new member function.
2747 (LA_PRINT_STRING): Update call to printstr.
2748 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2749 (m2_language_data): Delete la_printstr initializer.
2750 (m2_language::printstr): New member function, implementation from
2751 m2_printstr.
2752 * objc-lang.c (objc_language_data): Delete la_printstr
2753 initializer.
2754 * opencl-lang.c (opencl_language_data): Likewise.
2755 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2756 (pascal_language_data): Delete la_printstr initializer.
2757 (pascal_language::printstr): New member function, implementation
2758 from pascal_printstr.
2759 * p-lang.h (pascal_printstr): Delete declaration.
2760 * rust-lang.c (rust_printstr): Update header comment.
2761 (rust_language_data): Delete la_printstr initializer.
2762 (rust_language::printstr): New member function.
2763
2764 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2765
2766 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2767 (ada_language::printchar): New member function.
2768 * c-lang.c (c_language_data): Delete la_printchar initializer.
2769 (cplus_language_data): Likewise.
2770 (asm_language_data): Likewise.
2771 (minimal_language_data): Likewise.
2772 * d-lang.c (d_language_data): Likewise.
2773 * f-lang.c (f_printchar): Rename to f_language::printchar.
2774 (f_language_data): Delete la_printchar initializer.
2775 (f_language::printchar): New member function, implementation from
2776 f_printchar.
2777 * go-lang.c (go_language_data): Delete la_printchar initializer.
2778 * language.c (unk_lang_printchar): Delete.
2779 (language_defn::printchar): Define new member function.
2780 (unknown_language_data): Delete la_printchar initializer.
2781 (unknown_language::printchar): New member function.
2782 (auto_language_data): Delete la_printchar initializer.
2783 (auto_language::printchar): New member function.
2784 * language.h (language_data): Delete la_printchar field.
2785 (language_defn::printchar): Declare new member function.
2786 (LA_PRINT_CHAR): Update call to printchar.
2787 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2788 (m2_language::printchar): New member function.
2789 * objc-lang.c (objc_language_data): Delete la_printchar
2790 initializer.
2791 * opencl-lang.c (opencl_language_data): Likewise.
2792 * p-lang.c (pascal_language_data): Delete la_printchar
2793 initializer.
2794 (pascal_language::printchar): New member function.
2795 * rust-lang.c (rust_printchar): Rename to
2796 rust_language::printchar.
2797 (rust_language_data): Delete la_printchar initializer.
2798 (rust_language::printchar): New member function, implementation
2799 from rust_printchar.
2800
2801 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2802
2803 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2804 (ada_language_data): Delete la_emitchar initializer.
2805 (ada_language::emitchar): New member function, implementation from
2806 emit_char.
2807 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2808 (cplus_language_data): Likewise.
2809 (asm_language_data): Likewise.
2810 (minimal_language_data): Likewise.
2811 * d-lang.c (d_language_data): Likewise.
2812 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2813 (f_language_data): Delete la_emitchar initializer.
2814 (f_language::emitchar): New member function, implementation from
2815 f_emit_char.
2816 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2817 * language.c (unk_lang_emit_char): Delete.
2818 (language_defn::emitchar): New member function definition.
2819 (unknown_language_data): Delete la_emitchar initializer.
2820 (unknown_language::emitchar): New member function.
2821 (auto_language_data): Delete la_emitchar initializer.
2822 (auto_language::emitchar): New member function.
2823 * language.h (language_data): Delete la_emitchar field.
2824 (language_defn::emitchar): New member field declaration.
2825 (LA_EMIT_CHAR): Update call to emitchar.
2826 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2827 (m2_language_data): Delete la_emitchar initializer.
2828 (m2_language::emitchar): New member function, implementation from
2829 m2_emit_char.
2830 * objc-lang.c (objc_language_data): Delete la_emitchar
2831 initializer.
2832 * opencl-lang.c (opencl_language_data): Likewise.
2833 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2834 (pascal_language_data): Delete la_emitchar initializer.
2835 (pascal_language::emitchar): New member function, implementation
2836 from pascal_emit_char.
2837 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2838 (rust_language_data): Delete la_emitchar initializer.
2839 (rust_language::emitchar): New member function, implementation
2840 from rust_emitchar.
2841
2842 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2843
2844 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2845 (ada_language_data): Delete la_post_parser initializer.
2846 (ada_language::post_parser): New member function.
2847 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2848 (cplus_language_data): Likewise.
2849 (asm_language_data): Likewise.
2850 (minimal_language_data): Likewise.
2851 * d-lang.c (d_language_data): Likewise.
2852 * f-lang.c (f_language_data): Likewise.
2853 * go-lang.c (go_language_data): Likewise.
2854 * language.c (unknown_language_data): Likewise.
2855 (auto_language_data): Likewise.
2856 * language.h (language_data): Delete la_post_parser field.
2857 (language_defn::post_parser): New member function.
2858 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2859 * objc-lang.c (objc_language_data): Likewise.
2860 * opencl-lang.c (opencl_language_data): Likewise.
2861 * p-lang.c (pascal_language_data): Likewise.
2862 * parse.c (parse_exp_in_context): Update call to post_parser.
2863 (null_post_parser): Delete definition.
2864 * parser-defs.h (null_post_parser): Delete declaration.
2865 * rust-lang.c (rust_language_data): Delete la_post_parser
2866 initializer.
2867
2868 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2869
2870 * ada-lang.c (parse): Rename to ada_language::parser.
2871 (ada_language_data): Delete la_parser initializer.
2872 (ada_language::parser): New member function, implementation from
2873 parse.
2874 * c-lang.c (c_language_data): Delete la_parser initializer.
2875 (cplus_language_data): Likewise.
2876 (asm_language_data): Likewise.
2877 (minimal_language_data): Likewise.
2878 * d-lang.c (d_language_data): Likewise.
2879 (d_language::parser): New member function.
2880 * f-lang.c (f_language_data): Delete la_parser initializer.
2881 (f_language::parser): New member function.
2882 * go-lang.c (go_language_data): Delete la_parser initializer.
2883 (go_language::parser): New member function.
2884 * language.c (unk_lang_parser): Delete.
2885 (language_defn::parser): Define new member function.
2886 (unknown_language_data): Delete la_parser initializer.
2887 (unknown_language::parser): New member function.
2888 (auto_language_data): Delete la_parser initializer.
2889 (auto_language::parser): New member function.
2890 * language.h (language_data): Delete la_parser field.
2891 (language_defn::parser): Declare new member function.
2892 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2893 (m2_language::parser): New member function.
2894 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2895 * opencl-lang.c (opencl_language_data): Likewise.
2896 * p-lang.c (pascal_language_data): Likewise.
2897 (pascal_language::parser): New member function.
2898 * parse.c (parse_exp_in_context): Update call to parser.
2899 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2900 (rust_language::parser): New member function.
2901
2902 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2903
2904 * top.c (print_gdb_configuration): Print --with-python-libdir
2905 configuration value.
2906
2907 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2908
2909 * NEWS: Mention change to the alias command.
2910
2911 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2912
2913 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2914 (alias_command_completer)
2915 (make_alias_options_def_group): New functions.
2916 (alias_opts, alias_option_defs): New struct and array.
2917 (alias_usage_error): Update usage.
2918 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2919 Use option framework.
2920 (_initialize_cli_cmds): Update alias command help.
2921 Update aliases command help.
2922 (show_user):
2923 Add NULL for new default_args lookup_cmd argument.
2924 (valid_command_p): Rename to validate_aliased_command.
2925 Add NULL for new default_args lookup_cmd argument. Verify that the
2926 aliased_command has no default args.
2927 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2928 (lookup_cmd_1, lookup_cmd): New argument default_args.
2929 (add_alias_cmd):
2930 Add NULL for new default_args lookup_cmd argument.
2931 (print_help_for_command): Show default args under the layout
2932 alias some_alias = some_aliased_cmd some_alias_default_arg.
2933 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2934 xfree default_args in destructor.
2935 * cli/cli-script.c (process_next_line, do_define_command):
2936 Add NULL for new default_args lookup_cmd argument.
2937 * command.h: Declare new default_args argument in lookup_cmd
2938 and lookup_cmd_1.
2939 * completer.c (complete_line_internal_1):
2940 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2941 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2942 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2943 Likewise.
2944 * infcmd.c (_initialize_infcmd): Likewise.
2945 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2946 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2947 * python/py-param.c (add_setshow_generic): Likewise.
2948 * remote.c (_initialize_remote): Likewise.
2949 * top.c (execute_command): Prepend default_args if command has some.
2950 (set_verbose):
2951 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2952 * tracepoint.c (validate_actionline, encode_actions_1):
2953 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2954
2955 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2956
2957 * jit.c (jit_read_descriptor): Use bool as the return type.
2958 (jit_breakpoint_re_set_internal): Use bool as the return type.
2959 Invert the return value logic; return true if the jit breakpoint
2960 has been successfully initialized.
2961 (jit_inferior_init): Update the call to
2962 jit_breakpoint_re_set_internal.
2963
2964 2020-06-22 Pedro Alves <palves@redhat.com>
2965
2966 PR gdb/25939
2967 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2968 Use the current inferior instead. Don't return
2969 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2970 wait again.
2971 * sol-thread.c (sol_thread_target::wait): Don't reference
2972 inferior_ptid.
2973 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2974 (sol_update_thread_list_callback): Use the current inferior's pid
2975 instead of inferior_ptid.
2976
2977 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2978
2979 * procfs.c: Cleanup many comments.
2980
2981 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2982 (AFTER_WATCHFLAG): Replace by value.
2983
2984 (MAIN_PROC_NAME_FORMAT): Inline ...
2985 (create_procinfo): ... here.
2986
2987 (procfs_debug_inferior): Remove SYS_exec handling.
2988 (syscall_is_exec): Likewise.
2989 (procfs_set_exec_trap): Likewise.
2990
2991 (syscall_is_lwp_exit): Inline in callers.
2992 (syscall_is_exit): Likewise.
2993 (syscall_is_exec): Likewise.
2994 (syscall_is_lwp_create): Likewise.
2995
2996 (invalidate_cache): Remove #if 0 code.
2997
2998 (make_signal_thread_runnable): Remove.
2999 (procfs_target::resume): Remove #if 0 code.
3000
3001 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3002
3003 PR gdb/25939
3004 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
3005 call ...
3006 (procfs_target::create_inferior): ... here.
3007
3008 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3009
3010 * exec.c (validate_exec_file): Ensure the build-id is up to
3011 date by calling reopen_exec_file (that checks file timestamp
3012 to decide to re-read the file).
3013
3014 2020-06-18 Pedro Alves <palves@redhat.com>
3015
3016 PR gdb/25412
3017 * gdbthread.h (delete_thread, delete_thread_silent)
3018 (find_thread_ptid): Update comments.
3019 * thread.c (current_thread_): New global.
3020 (is_current_thread): Move higher, and reimplement.
3021 (inferior_thread): Reimplement.
3022 (set_thread_exited): Use bool. Add assertions.
3023 (add_thread_silent): Simplify thread-reuse handling by always
3024 calling delete_thread.
3025 (delete_thread): Remove intro comment.
3026 (find_thread_ptid): Skip exited threads.
3027 (switch_to_thread_no_regs): Write to current_thread_.
3028 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
3029 INFERIOR_PTID. Clear current_thread_.
3030
3031 2020-06-18 Pedro Alves <palves@redhat.com>
3032
3033 * aix-thread.c (pd_update): Use switch_to_thread.
3034
3035 2020-06-18 Pedro Alves <palves@redhat.com>
3036
3037 * ravenscar-thread.c (ravenscar_thread_target): Update.
3038 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3039 (ravenscar_thread_target::add_active_thread): ... this. Don't
3040 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3041 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3042
3043 2020-06-18 Pedro Alves <palves@redhat.com>
3044
3045 * nat/windows-nat.c (current_windows_thread): Remove.
3046 * nat/windows-nat.h (current_windows_thread): Remove.
3047 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3048 Adjust.
3049 (display_selectors): Adjust to fetch the current
3050 windows_thread_info based on inferior_ptid.
3051 (fake_create_process): No longer write to current_windows_thread.
3052 (windows_nat_target::get_windows_debug_event):
3053 Don't set inferior_ptid or current_windows_thread.
3054 (windows_nat_target::wait): Adjust to not rely on
3055 current_windows_thread.
3056 (do_initial_windows_stuff): Now a method of windows_nat_target.
3057 Switch to the last_ptid thread.
3058 (windows_nat_target::attach): Adjust.
3059 (windows_nat_target::detach): Use switch_to_no_thread instead of
3060 writing to inferior_ptid directly.
3061 (windows_nat_target::create_inferior): Adjust.
3062
3063 2020-06-18 Pedro Alves <palves@redhat.com>
3064
3065 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3066
3067 2020-06-18 Pedro Alves <palves@redhat.com>
3068
3069 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3070 after creating it, instead of writing to inferior_ptid. Don't
3071 write to inferior_ptid.
3072
3073 2020-06-18 Pedro Alves <palves@redhat.com>
3074
3075 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3076
3077 2020-06-18 Pedro Alves <palves@redhat.com>
3078
3079 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3080 it, instead of writing to inferior_ptid.
3081
3082 2020-06-18 Pedro Alves <palves@redhat.com>
3083
3084 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3085 to inferior_ptid.
3086
3087 2020-06-18 Pedro Alves <palves@redhat.com>
3088
3089 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3090 instead of writing to inferior_ptid directly.
3091
3092 2020-06-18 Pedro Alves <palves@redhat.com>
3093
3094 * corelow.c (core_target::close): Use switch_to_no_thread instead
3095 of writing to inferior_ptid directly.
3096 (add_to_thread_list, core_target_open): Use switch_to_thread
3097 instead of writing to inferior_ptid directly.
3098
3099 2020-06-18 Pedro Alves <palves@redhat.com>
3100
3101 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3102 inferior_ptid.
3103 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3104 inferior_ptid.
3105 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3106 inferior_ptid directly.
3107 (darwin_nat_target::init_thread_list): Switch to thread, instead
3108 of writing to inferior_ptid.
3109 (darwin_nat_target::attach): Don't write to inferior_ptid.
3110 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3111
3112 2020-06-18 Pedro Alves <palves@redhat.com>
3113
3114 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3115 thread.
3116 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3117 Instead use switch_to_thread.
3118 (gnu_nat_target::detach): Use switch_to_no_thread
3119 instead of writing to inferior_ptid directly. Used passed-in
3120 inferior instead of looking up the inferior by pid.
3121
3122 2020-06-18 Pedro Alves <palves@redhat.com>
3123
3124 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3125 inferior_ptid.
3126
3127 2020-06-18 Pedro Alves <palves@redhat.com>
3128
3129 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3130 inferior_ptid.
3131 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3132 thread.
3133 (nto_procfs_target::detach): Avoid referencing
3134 inferior_ptid. Use switch_to_no_thread instead of writing to
3135 inferior_ptid directly.
3136 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3137 instead of writing to inferior_ptid directly.
3138 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3139 to thread.
3140
3141 2020-06-18 Pedro Alves <palves@redhat.com>
3142
3143 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3144 after creating it, instead of writing to inferior_ptid.
3145 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3146 to inferior_ptid directly.
3147 (gdbsim_target::wait): Don't write to inferior_ptid.
3148
3149 2020-06-18 Pedro Alves <palves@redhat.com>
3150
3151 * remote.c (remote_target::remote_notice_new_inferior): Use
3152 switch_to_thread instead of writing to inferior_ptid directly.
3153 (remote_target::add_current_inferior_and_thread): Use
3154 switch_to_no_thread instead of writing to inferior_ptid directly.
3155 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3156 and switch_to_thread instead of using set_current_inferior or
3157 writing to inferior_ptid directly.
3158
3159 2020-06-18 Pedro Alves <palves@redhat.com>
3160
3161 * tracectf.c (ctf_target_open): Switch to added thread instead of
3162 writing to inferior_ptid directly.
3163 (ctf_target::close): Use switch_to_no_thread instead of writing to
3164 inferior_ptid directly.
3165
3166 2020-06-18 Pedro Alves <palves@redhat.com>
3167
3168 * tracefile-tfile.c (tfile_target_open): Don't write to
3169 inferior_ptid directly, instead switch to added thread.
3170 (tfile_target::close): Use switch_to_no_thread instead of writing
3171 to inferior_ptid directly.
3172
3173 2020-06-18 Pedro Alves <palves@redhat.com>
3174
3175 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3176 (procfs_target::detach): Use switch_to_no_thread
3177 instead of writing to inferior_ptid directly.
3178 (do_attach): Change return type to void. Switch to the added
3179 thread.
3180 (procfs_target::create_inferior): Switch to the added thread.
3181 (procfs_do_thread_registers): Don't write to inferior_ptid.
3182
3183 2020-06-18 Pedro Alves <palves@redhat.com>
3184
3185 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3186 of writing to inferior_ptid.
3187 (scoped_restore_exited_inferior): Delete.
3188 (handle_vfork_child_exec_or_exit): Simplify using
3189 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3190 instead of writing to inferior_ptid.
3191 (THREAD_STOPPED_BY): Delete.
3192 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3193 (thread_stopped_by_hw_breakpoint): Delete.
3194 (save_waitstatus): Use
3195 scoped_restore_current_thread+switch_to_thread, and call
3196 target_stopped_by_watchpoint instead of
3197 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3198 instead of thread_stopped_by_sw_breakpoint, and
3199 target_stopped_by_hw_breakpoint instead of
3200 thread_stopped_by_hw_breakpoint.
3201 (handle_inferior_event)
3202 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3203 inferior_ptid directly, nor
3204 set_current_inferior/set_current_program_space. Use
3205 switch_to_thread / switch_to_inferior_no_thread instead.
3206
3207 2020-06-18 Pedro Alves <palves@redhat.com>
3208
3209 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3210 instead of writing to inferior_ptid.
3211
3212 2020-06-18 Pedro Alves <palves@redhat.com>
3213
3214 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3215 added thread.
3216 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3217 to the added thread.
3218 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3219 instead of writing to inferior_ptid.
3220
3221 2020-06-18 Pedro Alves <palves@redhat.com>
3222
3223 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3224 (register_to_value_test): Mock a program_space too. Heap-allocate
3225 the address space. Don't write to inferior_ptid. Use
3226 switch_to_thread instead.
3227
3228 2020-06-18 Pedro Alves <palves@redhat.com>
3229
3230 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3231 Delete.
3232 (find_signalled_thread()): New, factored out from
3233 linux_make_corefile_notes and adjusted to handle exited threads.
3234 (linux_make_corefile_notes): Adjust to use the new
3235 find_signalled_thread.
3236
3237 2020-06-18 Pedro Alves <palves@redhat.com>
3238
3239 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3240 of saving/restoring inferior_ptid.
3241
3242 2020-06-17 Tom Tromey <tom@tromey.com>
3243
3244 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3245 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3246 declare.
3247 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3248
3249 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
3250
3251 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3252 of partial symtabs.
3253
3254 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3255
3256 * regformats/reg-arm.dat: Remove.
3257 * regformats/reg-bfin.dat: Remove.
3258 * regformats/reg-cris.dat: Remove.
3259 * regformats/reg-crisv32.dat: Remove.
3260 * regformats/reg-m32r.dat: Remove.
3261 * regformats/reg-tilegx.dat: Remove.
3262 * regformats/reg-tilegx32.dat: Remove.
3263
3264 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3265
3266 * features/Makefile (WHICH): Remove arm files.
3267 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3268 * regformats/arm/arm-with-neon.dat: Remove.
3269 * regformats/arm/arm-with-vfpv2.dat: Remove.
3270 * regformats/arm/arm-with-vfpv3.dat: Remove.
3271
3272 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3273
3274 * features/Makefile (XMLTOC): Remove rx.xml.
3275
3276 2020-06-17 Pedro Alves <palves@redhat.com>
3277
3278 * gdbthread.h (thread_control_state) <trap_expected> Update
3279 comments.
3280
3281 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3282
3283 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3284 ada_language::lookup_symbol_nonlocal.
3285 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3286 (ada_language::lookup_symbol_nonlocal): New member function,
3287 implementation from ada_lookup_symbol_nonlocal.
3288 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3289 initializer.
3290 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3291 initializer.
3292 (cplus_language::lookup_symbol_nonlocal): New member function.
3293 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3294 (minimal_language_data) Likewise.
3295 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3296 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3297 initializer.
3298 (d_language::lookup_symbol_nonlocal): New member function.
3299 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3300 initializer.
3301 (f_language::lookup_symbol_nonlocal): New member function.
3302 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3303 initializer.
3304 * language.c (unknown_language_data): Likewise.
3305 (auto_language_data): Likewise.
3306 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3307 field.
3308 (language_defn::lookup_symbol_nonlocal): New member function.
3309 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3310 initializer.
3311 * objc-lang.c (objc_language_data): Likewise.
3312 * opencl-lang.c (opencl_language_data): Likewise.
3313 * p-lang.c (pascal_language_data): Likewise.
3314 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3315 rust_language::lookup_symbol_nonlocal.
3316 (rust_language_data): Delete la_lookup_symbol_nonlocal
3317 initializer.
3318 (rust_language::lookup_symbol_nonlocal): New member function,
3319 implementation from rust_lookup_symbol_nonlocal.
3320 * symtab.c (lookup_symbol_aux): Update call to
3321 lookup_symbol_nonlocal.
3322 (basic_lookup_symbol_nonlocal): Rename to...
3323 (language_defn::lookup_symbol_nonlocal): ...this, and update
3324 header comment. Remove language_defn parameter, and replace with
3325 uses of `this'.
3326 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3327
3328 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3329
3330 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3331 initializer.
3332 (ada_language::value_print_inner): New member function.
3333 * c-lang.c (c_language_data): Delete la_value_print_inner
3334 initializer.
3335 (cplus_language_data): Likewise.
3336 (asm_language_data): Likewise.
3337 (minimal_language_data): Likewise.
3338 * d-lang.c (d_language_data): Likewise.
3339 (d_language::value_print_inner): New member function.
3340 * f-lang.c (f_language_data): Delete la_value_print_inner
3341 initializer.
3342 (f_language::value_print_inner): New member function.
3343 * f-lang.h (f_value_print_innner): Rename to...
3344 (f_value_print_inner): ...this (note spelling of 'inner').
3345 * f-valprint.c (f_value_print_innner): Rename to...
3346 (f_value_print_inner): ...this (note spelling of 'inner').
3347 * go-lang.c (go_language_data): Delete la_value_print_inner
3348 initializer.
3349 (go_language::value_print_inner): New member function.
3350 * language.c (language_defn::value_print_inner): Define new member
3351 function.
3352 (unk_lang_value_print_inner): Delete.
3353 (unknown_language_data): Delete la_value_print_inner initializer.
3354 (unknown_language::value_print_inner): New member function.
3355 (auto_language_data): Delete la_value_print_inner initializer.
3356 (auto_language::value_print_inner): New member function.
3357 * language.h (language_data): Delete la_value_print_inner field.
3358 (language_defn::value_print_inner): Delcare new member function.
3359 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3360 initializer.
3361 (m2_language::value_print_inner): New member function.
3362 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3363 initializer.
3364 * opencl-lang.c (opencl_language_data): Likewise.
3365 * p-lang.c (pascal_language_data): Likewise.
3366 (pascal_language::value_print_inner): New member function.
3367 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3368 initializer.
3369 (rust_language::value_print_inner): New member function.
3370 * valprint.c (do_val_print): Update call to value_print_inner.
3371
3372 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3373
3374 * ada-lang.c (ada_language_data): Delete la_value_print
3375 initializer.
3376 (ada_language::value_print): New member function.
3377 * c-lang.c (c_language_data): Delete la_value_print initializer.
3378 (cplus_language_data): Likewise.
3379 (asm_language_data): Likewise.
3380 (minimal_language_data): Likewise.
3381 * d-lang.c (d_language_data): Likewise.
3382 * f-lang.c (f_language_data): Likewise.
3383 * go-lang.c (go_language_data): Likewise.
3384 * language.c (unk_lang_value_print): Delete.
3385 (language_defn::value_print): Define new member function.
3386 (unknown_language_data): Delete la_value_print initializer.
3387 (unknown_language::value_print): New member function.
3388 (auto_language_data): Delete la_value_print initializer.
3389 (auto_language::value_print): New member function.
3390 * language.h (language_data): Delete la_value_print field.
3391 (language_defn::value_print): Declare new member function.
3392 (LA_VALUE_PRINT): Update call to value_print.
3393 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3394 * objc-lang.c (objc_language_data): Likewise.
3395 * opencl-lang.c (opencl_language_data): Likewise.
3396 * p-lang.c (pascal_language_data): Likewise.
3397 (pascal_language::value_print): New member function.
3398 * rust-lang.c (rust_language_data): Delete la_value_print
3399 initializer.
3400
3401 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3402
3403 * ada-lang.c (ada_watch_location_expression): Rename to
3404 ada_language::watch_location_expression.
3405 (ada_language_data): Delete la_watch_location_expression
3406 initializer.
3407 (ada_language::watch_location_expression): New member function,
3408 implementation from ada_watch_location_expression.
3409 * breakpoint.c (watch_command_1): Update call to
3410 watch_location_expression.
3411 * c-lang.c (c_watch_location_expression): Rename to
3412 language_defn::watch_location_expression.
3413 (c_language_data): Delete la_watch_location_expression
3414 initializer.
3415 (cplus_language_data): Likewise.
3416 (asm_language_data): Likewise.
3417 (minimal_language_data): Likewise.
3418 * c-lang.h (c_watch_location_expression): Delete declaration.
3419 * d-lang.c (d_language_data): Delete la_watch_location_expression
3420 initializer.
3421 * f-lang.c (f_language_data): Likewise.
3422 * go-lang.c (go_language_data): Likewise.
3423 * language.c (language_defn::watch_location_expression): Member
3424 function implementation from c_watch_location_expression.
3425 (unknown_language_data): Delete la_watch_location_expression
3426 initializer.
3427 (auto_language_data): Likewise.
3428 * language.h (language_data): Delete la_watch_location_expression
3429 field.
3430 (language_defn::watch_location_expression): Declare new member
3431 function.
3432 * m2-lang.c (m2_language_data): Delete
3433 la_watch_location_expression initializer.
3434 * objc-lang.c (objc_language_data): Likewise.
3435 * opencl-lang.c (opencl_language_data): Likewise.
3436 * p-lang.c (pascal_language_data): Likewise.
3437 * rust-lang.c (rust_watch_location_expression): Rename to
3438 rust_language::watch_location_expression.
3439 (rust_language_data): Delete la_watch_location_expression
3440 initializer.
3441 (rust_language::watch_location_expression): New member function,
3442 implementation from rust_watch_location_expression.
3443
3444 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3445
3446 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3447 ada_language::collect_symbol_completion_matches.
3448 (ada_language_data): Delete la_collect_symbol_completion_matches
3449 initializer.
3450 (ada_language::collect_symbol_completion_matches): New member
3451 function, implementation from
3452 ada_collect_symbol_completion_matches.
3453 * c-lang.c (c_language_data): Delete
3454 la_collect_symbol_completion_matches initializer.
3455 (cplus_language_data): Likewise.
3456 (asm_language_data): Likewise.
3457 (minimal_language_data): Likewise.
3458 * d-lang.c (d_language_data): Likewise.
3459 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3460 f_language::collect_symbol_completion_matches.
3461 (f_language_data): Delete la_collect_symbol_completion_matches
3462 initializer.
3463 (f_language::collect_symbol_completion_matches) New member
3464 function, implementation from f_collect_symbol_completion_matches.
3465 * go-lang.c (go_language_data): Delete
3466 la_collect_symbol_completion_matches initializer.
3467 * language.c (unknown_language_data): Likewise.
3468 (auto_language_data): Likewise.
3469 * language.h (language_data): Delete
3470 la_collect_symbol_completion_matches field.
3471 (language_defn::collect_symbol_completion_matches): New member
3472 function.
3473 * m2-lang.c (m2_language_data): Delete
3474 la_collect_symbol_completion_matches initializer.
3475 * objc-lang.c (objc_language_data): Likewise.
3476 * opencl-lang.c (opencl_language_data): Likewise.
3477 * p-lang.c (pascal_language_data): Likewise.
3478 * rust-lang.c (rust_language_data): Likewise.
3479 * symtab.c (default_collect_symbol_completion_matches): Delete.
3480 (collect_symbol_completion_matches): Update call to
3481 collect_symbol_completion_matches.
3482 (collect_symbol_completion_matches_type): Likewise.
3483 * symtab.h (default_collect_symbol_completion_matches): Delete
3484 declaration.
3485
3486 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3487
3488 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3489 (ada_language_data): Delete la_word_break_characters initializer.
3490 (ada_language::word_break_characters): New member function.
3491 * c-lang.c (c_language_data): Delete la_word_break_characters
3492 initializer.
3493 (cplus_language_data): Likewise.
3494 (asm_language_data): Likewise.
3495 (minimal_language_data): Likewise.
3496 * completer.c: Update global comment.
3497 (advance_to_expression_complete_word_point): Update call to
3498 word_break_characters.
3499 (complete_files_symbols): Likewise.
3500 (complete_line_internal_1): Likewise.
3501 (default_completer_handle_brkchars): Likewise.
3502 (skip_quoted_chars): Likewise.
3503 * d-lang.c (d_language_data): Delete la_word_break_characters
3504 initializer.
3505 * f-lang.c (f_word_break_characters): Delete.
3506 (f_language_data): Delete la_word_break_characters initializer.
3507 (f_language::word_break_characters): New member function.
3508 * go-lang.c (go_language_data): Delete la_word_break_characters
3509 initializer.
3510 * language.c (unknown_language_data): Likewise.
3511 (auto_language_data): Likewise.
3512 * language.h (default_word_break_characters): Move declaration to
3513 earlier in the file.
3514 (language_data): Delete la_word_break_characters field.
3515 (language_defn::word_break_characters): New member function.
3516 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3517 initializer.
3518 * objc-lang.c (objc_language_data): Likewise.
3519 * opencl-lang.c (opencl_language_data): Likewise.
3520 * p-lang.c (pascal_language_data): Likewise.
3521 * rust-lang.c (rust_language_data): Likewise.
3522
3523 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3524
3525 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3526 (ada_language_data): Delete la_get_symbol_name_matcher
3527 initializer.
3528 (language_defn::get_symbol_name_matcher_inner): New member
3529 function.
3530 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3531 initializer.
3532 (cplus_language_data): Likewise.
3533 (cplus_language::get_symbol_name_matcher_inner): New member
3534 function.
3535 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3536 (minimal_language_data): Likewise.
3537 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3538 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3539 initializer.
3540 * dictionary.c (iter_match_first_hashed): Update call to
3541 get_symbol_name_matcher.
3542 (iter_match_next_hashed): Likewise.
3543 (iter_match_next_linear): Likewise.
3544 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3545 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3546 initializer.
3547 (f_language::get_symbol_name_matcher_inner): New member function.
3548 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3549 initializer.
3550 * language.c (default_symbol_name_matcher): Update header comment,
3551 make static.
3552 (language_defn::get_symbol_name_matcher): New definition.
3553 (language_defn::get_symbol_name_matcher_inner): Likewise.
3554 (get_symbol_name_matcher): Delete.
3555 (unknown_language_data): Delete la_get_symbol_name_matcher
3556 initializer.
3557 (auto_language_data): Likewise.
3558 * language.h (language_data): Delete la_get_symbol_name_matcher
3559 field.
3560 (language_defn::get_symbol_name_matcher): New member function.
3561 (language_defn::get_symbol_name_matcher_inner): Likewise.
3562 (default_symbol_name_matcher): Delete declaration.
3563 * linespec.c (find_methods): Update call to
3564 get_symbol_name_matcher.
3565 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3566 initializer.
3567 * minsyms.c (lookup_minimal_symbol): Update call to
3568 get_symbol_name_matcher.
3569 (iterate_over_minimal_symbols): Likewise.
3570 * objc-lang.c (objc_language_data): Delete
3571 la_get_symbol_name_matcher initializer.
3572 * opencl-lang.c (opencl_language_data): Likewise.
3573 * p-lang.c (pascal_language_data): Likewise.
3574 * psymtab.c (psymbol_name_matches): Update call to
3575 get_symbol_name_matcher.
3576 * rust-lang.c (rust_language_data): Delete
3577 la_get_symbol_name_matcher initializer.
3578 * symtab.c (symbol_matches_search_name): Update call to
3579 get_symbol_name_matcher.
3580 (compare_symbol_name): Likewise.
3581
3582 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3583
3584 * ada-lang.c (ada_language_data): Delete la_compute_program
3585 initializer.
3586 * c-lang.c (c_language_data): Likewise.
3587 (c_language::compute_program): New member function.
3588 (cplus_language_data): Delete la_compute_program initializer.
3589 (cplus_language::compute_program): New member function.
3590 (asm_language_data): Delete la_compute_program initializer.
3591 (minimal_language_data): Likewise.
3592 * c-lang.h (c_compute_program): Update comment.
3593 (cplus_compute_program): Likewise.
3594 * compile/compile-c-support.c (c_compute_program): Likewise.
3595 (cplus_compute_program): Likewise.
3596 * compile/compile.c (compile_to_object): Update call to
3597 la_compute_program.
3598 * d-lang.c (d_language_data): Delete la_compute_program
3599 initializer.
3600 * f-lang.c (f_language_data): Likewise.
3601 * go-lang.c (go_language_data): Likewise.
3602 * language.c (unknown_language_data): Likewise.
3603 (auto_language_data): Likewise.
3604 * language.h (language_data): Delete la_compute_program field.
3605 (language_defn::compute_program): New member function.
3606 * m2-lang.c (m2_language_data): Delete la_compute_program
3607 initializer.
3608 * objc-lang.c (objc_language_data): Likewise.
3609 * opencl-lang.c (opencl_language_data): Likewise.
3610 * p-lang.c (pascal_language_data): Likewise.
3611 * rust-lang.c (rust_language_data): Likewise.
3612
3613 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3614
3615 * ada-lang.c (ada_language_data) Delete
3616 la_class_name_from_physname initializer.
3617 * c-lang.c (c_language_data): Likewise.
3618 (cplus_language_data): Likewise.
3619 (cplus_language::class_name_from_physname): New member function.
3620 (asm_language_data): Delete la_class_name_from_physname
3621 initializer.
3622 (minimal_language_data): Likewise.
3623 * d-lang.c (d_language_data): Likewise.
3624 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3625 method on language_defn class.
3626 (guess_full_die_structure_name): Likewise.
3627 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3628 initializer.
3629 * go-lang.c (go_language_data): Likewise.
3630 * language.c (language_class_name_from_physname): Delete.
3631 (unk_lang_class_name): Delete.
3632 (unknown_language_data): Delete la_class_name_from_physname
3633 initializer.
3634 (auto_language_data): Likewise.
3635 * language.h (language_data): Delete la_class_name_from_physname
3636 field.
3637 (language_defn::class_name_from_physname): New function.
3638 (language_class_name_from_physname): Delete declaration.
3639 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3640 initializer.
3641 * objc-lang.c (objc_language_data): Likewise.
3642 * opencl-lang.c (opencl_language_data): Likewise.
3643 * p-lang.c (pascal_language_data): Likewise.
3644 * rust-lang.c (rust_language_data): Likewise.
3645
3646 2020-06-16 Tom Tromey <tom@tromey.com>
3647
3648 * tui/tui-data.h (STATUS_NAME): New macro.
3649 * tui/tui-layout.c (tui_remove_some_windows)
3650 (initialize_known_windows, tui_register_window)
3651 (tui_layout_split::remove_windows, initialize_layouts)
3652 (tui_new_layout_command): Don't use hard-coded window names.
3653
3654 2020-06-16 Tom Tromey <tom@tromey.com>
3655
3656 PR tui/25348:
3657 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3658 tui_initialize_readline. Only run once. Call rl_initialize.
3659 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3660 tui_initialize_readline.
3661 * tui/tui-io.c (tui_setup_io): Call
3662 tui_ensure_readline_initialized.
3663 * tui/tui-interp.c (tui_interp::init): Update.
3664
3665 2020-06-16 Tom Tromey <tom@tromey.com>
3666
3667 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3668 Also preserve the status window.
3669
3670 2020-06-16 Tom Tromey <tom@tromey.com>
3671
3672 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3673 where m_window==nullptr.
3674
3675 2020-06-15 Tom Tromey <tromey@adacore.com>
3676
3677 * windows-nat.c (windows_nat::handle_output_debug_string):
3678 Update.
3679 (windows_nat::handle_ms_vc_exception): Update.
3680 * target.h (target_read_string): Change API.
3681 * target.c (target_read_string): Change API.
3682 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3683 Update.
3684 * solib-frv.c (frv_current_sos): Update.
3685 * solib-dsbt.c (dsbt_current_sos): Update.
3686 * solib-darwin.c (darwin_current_sos): Update.
3687 * linux-thread-db.c (inferior_has_bug): Update.
3688 * expprint.c (print_subexp_standard): Update.
3689 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3690 (ada_exception_message_1): Update.
3691
3692 2020-06-15 Tom Tromey <tromey@adacore.com>
3693
3694 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3695
3696 2020-06-15 Tom Tromey <tromey@adacore.com>
3697
3698 * valprint.c (read_string): Update comment.
3699 * target.c (MIN): Remove.
3700 (target_read_string): Rewrite.
3701
3702 2020-06-15 Tom Tromey <tromey@adacore.com>
3703
3704 * corefile.c (read_memory_string): Remove.
3705 * ada-valprint.c (ada_value_print_ptr): Update.
3706 * ada-lang.h (ada_tag_name): Change return type.
3707 * ada-lang.c (type_from_tag): Update.
3708 (ada_tag_name_from_tsd): Change return type. Use
3709 target_read_string.
3710 (ada_tag_name): Likewise.
3711 * gdbcore.h (read_memory_string): Don't declare.
3712
3713 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3714
3715 * symtab.c (rbreak_command): Ignore Windows drive colon.
3716
3717 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3718
3719 * NEWS: Mention removed GDBserver host support.
3720
3721 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3722
3723 * features/riscv/rebuild-csr-xml.sh: Updated.
3724
3725 2020-06-11 Tom Tromey <tom@tromey.com>
3726
3727 PR gdb/18318:
3728 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3729
3730 2020-06-09 Jonny Grant <jg@jguk.org>
3731 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3732
3733 * main.c (captured_main_1): Don't print new line after help.
3734 (print_gdb_help): add mailing list and IRC channel information
3735 to --help. Add new lines between items in the footer. Remove
3736 quotes around bug url.
3737
3738 2020-06-11 Keith Seitz <keiths@redhat.com>
3739
3740 PR gdb/21356
3741 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3742 Resolve typedefs for type length calculations.
3743
3744 2020-06-10 Tom de Vries <tdevries@suse.de>
3745
3746 PR ada/24713
3747 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3748 (write_psymbols): Enable .gdb_index for ada.
3749 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3750 ada.
3751
3752 2020-06-10 Tom de Vries <tdevries@suse.de>
3753
3754 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3755 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3756 namei" instead of "const char *name" argument.
3757 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3758 dw2_symtab_iter_init.
3759
3760 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3761
3762 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3763 to use type::field and field::type instead.
3764
3765 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3766
3767 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3768 to use field::type instead.
3769
3770 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3771
3772 * gdbtypes.h (struct field) <type, set_type>: New methods.
3773 Rename `type` field to...
3774 <m_type>: ... this. Change references throughout to use type or
3775 set_type methods.
3776 (FIELD_TYPE): Use field::type. Change call sites that modify
3777 the field's type to use field::set_type instead.
3778
3779 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3780
3781 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3782 to use type::index_type instead.
3783
3784 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3785
3786 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3787 methods.
3788 (TYPE_INDEX_TYPE): Use type::index_type.
3789 * gdbtypes.c (create_array_type_with_stride): Likewise.
3790
3791 2020-06-07 Tom Tromey <tom@tromey.com>
3792
3793 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3794 parameter.
3795 (generic_value_print): Update.
3796
3797 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3798
3799 Revert commit 982a38f60b0.
3800 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3801
3802 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3803
3804 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3805 avoid use after free.
3806
3807 2020-06-05 Tom de Vries <tdevries@suse.de>
3808
3809 * NEWS: Fix typos.
3810
3811 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3812
3813 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3814 the per_bfd object.
3815 (dwarf2_read_debug_names): Likewise.
3816 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3817 object when re-using a per_bfd object with an index.
3818
3819 2020-06-03 Tom de Vries <tdevries@suse.de>
3820
3821 PR symtab/26046
3822 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3823 children for C++.
3824 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3825 DW_TAG_subprogram.
3826
3827 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3828
3829 * ada-lang.c (ada_language_data): Delete skip_trampoline
3830 initializer.
3831 * c-lang.c (c_language_data): Likewise.
3832 (cplus_language_data): Likewise.
3833 (cplus_language::skip_trampoline): New member function.
3834 (asm_language_data): Delete skip_trampoline initializer.
3835 (minimal_language_data): Likewise.
3836 * d-lang.c (d_language_data): Likewise.
3837 * f-lang.c (f_language_data): Likewise.
3838 * go-lang.c (go_language_data): Likewise.
3839 * language.c (unk_lang_trampoline): Delete function.
3840 (skip_language_trampoline): Update.
3841 (unknown_language_data): Delete skip_trampoline initializer.
3842 (auto_language_data): Likewise.
3843 * language.h (language_data): Delete skip_trampoline field.
3844 (language_defn::skip_trampoline): New function.
3845 * m2-lang.c (m2_language_data): Delete skip_trampoline
3846 initializer.
3847 * objc-lang.c (objc_skip_trampoline): Delete function, move
3848 implementation to objc_language::skip_trampoline.
3849 (objc_language_data): Delete skip_trampoline initializer.
3850 (objc_language::skip_trampoline): New member function with
3851 implementation from objc_skip_trampoline.
3852 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3853 initializer.
3854 * p-lang.c (pascal_language_data): Likewise.
3855 * rust-lang.c (rust_language_data): Likewise.
3856
3857 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3858
3859 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3860 (ada_language::demangle): New member function.
3861 * c-lang.c (c_language_data): Delete la_demangle initializer.
3862 (cplus_language_data): Delete la_demangle initializer.
3863 (cplus_language::demangle): New member function.
3864 (asm_language_data): Delete la_demangle initializer.
3865 (minimal_language_data): Delete la_demangle initializer.
3866 * d-lang.c (d_language_data): Delete la_demangle initializer.
3867 (d_language::demangle): New member function.
3868 * f-lang.c (f_language_data): Delete la_demangle initializer.
3869 (f_language::demangle): New member function.
3870 * go-lang.c (go_language_data): Delete la_demangle initializer.
3871 (go_language::demangle): New member function.
3872 * language.c (language_demangle): Update.
3873 (unk_lang_demangle): Delete.
3874 (unknown_language_data): Delete la_demangle initializer.
3875 (unknown_language::demangle): New member function.
3876 (auto_language_data): Delete la_demangle initializer.
3877 (auto_language::demangle): New member function.
3878 * language.h (language_data): Delete la_demangle field.
3879 (language_defn::demangle): New function.
3880 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3881 * objc-lang.c (objc_language_data): Delete la_demangle
3882 initializer.
3883 (objc_language::demangle): New member function.
3884 * opencl-lang.c (opencl_language_data): Delete la_demangle
3885 initializer.
3886 * p-lang.c (pascal_language_data): Likewise.
3887 * rust-lang.c (rust_language_data): Likewise.
3888 (rust_language::demangle): New member function.
3889
3890 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3891
3892 * ada-lang.c (ada_language_data): Delete la_print_type
3893 initializer.
3894 (ada_language::print_type): New member function.
3895 * c-lang.c (c_language_data): Delete la_print_type initializer.
3896 (c_language::print_type): New member function.
3897 (cplus_language_data): Delete la_print_type initializer.
3898 (cplus_language::print_type): New member function.
3899 (asm_language_data): Delete la_print_type initializer.
3900 (asm_language::print_type): New member function.
3901 (minimal_language_data): Delete la_print_type initializer.
3902 (minimal_language::print_type): New member function.
3903 * d-lang.c (d_language_data): Delete la_print_type initializer.
3904 (d_language::print_type): New member function.
3905 * f-lang.c (f_language_data): Delete la_print_type initializer.
3906 (f_language::print_type): New member function.
3907 * go-lang.c (go_language_data): Delete la_print_type initializer.
3908 (go_language::print_type): New member function.
3909 * language.c (unk_lang_print_type): Delete.
3910 (unknown_language_data): Delete la_print_type initializer.
3911 (unknown_language::print_type): New member function.
3912 (auto_language_data): Delete la_print_type initializer.
3913 (auto_language::print_type): New member function.
3914 * language.h (language_data): Delete la_print_type field.
3915 (language_defn::print_type): New function.
3916 (LA_PRINT_TYPE): Update.
3917 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3918 (m2_language::print_type): New member function.
3919 * objc-lang.c (objc_language_data): Delete la_print_type
3920 initializer.
3921 (objc_language::print_type): New member function.
3922 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3923 to opencl_language::print_type.
3924 (opencl_language_data): Delete la_print_type initializer.
3925 (opencl_language::print_type): New member function, implementation
3926 from opencl_print_type.
3927 * p-lang.c (pascal_language_data): Delete la_print_type
3928 initializer.
3929 (pascal_language::print_type): New member function.
3930 * rust-lang.c (rust_print_type): Delete, implementation moved to
3931 rust_language::print_type.
3932 (rust_language_data): Delete la_print_type initializer.
3933 (rust_language::print_type): New member function, implementation
3934 from rust_print_type.
3935
3936 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3937
3938 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3939 implementation moves to...
3940 (ada_language::sniff_from_mangled_name): ...here. Update return
3941 type.
3942 (ada_language_data): Delete la_sniff_from_mangled_name
3943 initializer.
3944 * c-lang.c (c_language_data): Likewise.
3945 (cplus_language_data): Likewise.
3946 (cplus_language::sniff_from_mangled_name): New member function,
3947 implementation taken from gdb_sniff_from_mangled_name.
3948 (asm_language_data): Delete la_sniff_from_mangled_name
3949 initializer.
3950 (minimal_language_data): Likewise.
3951 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3952 implementation moves to cplus_language::sniff_from_mangled_name.
3953 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3954 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3955 moves to...
3956 (d_language::sniff_from_mangled_name): ...here.
3957 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3958 * f-lang.c (f_language_data): Likewise.
3959 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3960 moves to...
3961 (go_language::sniff_from_mangled_name): ...here.
3962 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3963 * language.c (language_sniff_from_mangled_name): Delete.
3964 (unknown_language_data): Delete la_sniff_from_mangled_name
3965 initializer.
3966 (auto_language_data): Likewise.
3967 * language.h (language_data): Delete la_sniff_from_mangled_name
3968 field.
3969 (language_defn::sniff_from_mangled_name): New function.
3970 (language_sniff_from_mangled_name): Delete declaration.
3971 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3972 field.
3973 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3974 implementation moves to...
3975 (objc_language::sniff_from_mangled_name): ...here.
3976 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3977 * opencl-lang.c (opencl_language_data): Likewise.
3978 * p-lang.c (pascal_language_data): Likewise.
3979 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3980 implementation moves to...
3981 (rust_language::sniff_from_mangled_name): ...here.
3982 (rust_language_data): Delete la_sniff_from_mangled_name
3983 initializer.
3984 * symtab.c (symbol_find_demangled_name): Call
3985 sniff_from_mangled_name member function.
3986
3987 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3988
3989 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3990 initializer.
3991 * c-lang.c (c_language_data): Likewise.
3992 (cplus_language_data): Likewise.
3993 (cplus_language::search_name_hash): New member function.
3994 (asm_language_data): Delete la_search_name_hash initializer.
3995 (minimal_language_data): Likewise.
3996 * d-lang.c (d_language_data): Likewise.
3997 * dictionary.c (default_search_name_hash): Rename to...
3998 (language_defn::search_name_hash): ...this.
3999 * f-lang.c (f_language_data): Likewise.
4000 (f_language::search_name_hash): New member function.
4001 * go-lang.c (go_language_data): Delete la_search_name_hash
4002 initializer.
4003 * language.c (unknown_language_data): Likewise.
4004 (auto_language_data): Likewise.
4005 * language.h (struct language_data): Delete la_search_name_hash
4006 field.
4007 (language_defn::search_name_hash): Declare new member function.
4008 (default_search_name_hash): Delete declaration.
4009 * m2-lang.c (m2_language_data): Delete la_search_name_hash
4010 initializer.
4011 * objc-lang.c (objc_language_data): Likewise.
4012 * opencl-lang.c (opencl_language_data): Likewise.
4013 * p-lang.c (pascal_language_data): Likewise.
4014 * rust-lang.c (rust_language_data): Likewise.
4015 * symtab.c (search_name_hash): Update call.
4016
4017 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4018
4019 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
4020 initializer.
4021 * c-lang.c (class compile_instance): Declare.
4022 (c_language_data): Delete la_get_compile_instance initializer.
4023 (c_language::get_compile_instance): New member function.
4024 (cplus_language_data): Delete la_get_compile_instance initializer.
4025 (cplus_language::get_compile_instance): New member function.
4026 (asm_language_data): Delete la_get_compile_instance initializer.
4027 (minimal_language_data): Likewise.
4028 * c-lang.h (c_get_compile_context): Update comment.
4029 (cplus_get_compile_context): Update comment.
4030 * compile/compile.c (compile_to_object): Update calls, don't rely
4031 on function pointer being NULL.
4032 * d-lang.c (d_language_data): Delete la_get_compile_instance
4033 initializer.
4034 * f-lang.c (f_language_data): Likewise.
4035 * go-lang.c (go_language_data): Likewise.
4036 * language.c (unknown_language_data): Likewise.
4037 (auto_language_data): Likewise.
4038 * language.h (language_data): Delete la_get_compile_instance field.
4039 (language_defn::get_compile_instance): New member function.
4040 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4041 initializer.
4042 * objc-lang.c (objc_language_data): Likewise.
4043 * opencl-lang.c (opencl_language_data): Likewise.
4044 * p-lang.c (pascal_language_data): Likewise.
4045 * rust-lang.c (rust_language_data): Likewise.
4046
4047 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4048
4049 * ada-lang.c (ada_add_all_symbols): Update comment.
4050 (ada_iterate_over_symbols): Delete, move implementation to...
4051 (ada_language::iterate_over_symbols): ...here, a new member
4052 function, rewrite to use range based for loop.
4053 (ada_language_data): Delete la_iterate_over_symbols initializer.
4054 * c-lang.c (c_language_data): Likewise.
4055 (cplus_language_data): Likewise.
4056 (asm_language_data): Likewise.
4057 (minimal_language_data): Likewise.
4058 * d-lang.c (d_language_data): Likewise.
4059 * f-lang.c (f_language_data): Likewise.
4060 * go-lang.c (go_language_data): Likewise.
4061 * language.c (unknown_language_data): Likewise.
4062 (auto_language_data): Likewise.
4063 * language.h (language_data): Delete la_iterate_over_symbols field.
4064 (language_defn::iterate_over_symbols): New member function.
4065 (LA_ITERATE_OVER_SYMBOLS): Update.
4066 * linespec.c (iterate_over_all_matching_symtabs): Update.
4067 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4068 initializer.
4069 * objc-lang.c (objc_language_data): Likewise.
4070 * opencl-lang.c (opencl_language_data): Likewise.
4071 * p-lang.c (pascal_language_data): Likewise.
4072 * rust-lang.c (rust_language_data): Likewise.
4073
4074 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4075
4076 * ada-lang.c (ada_language_data): Delete
4077 la_lookup_transparent_type initializer.
4078 * c-lang.c (c_language_data): Likewise.
4079 (cplus_language_data): Likewise.
4080 (cplus_language::lookup_transparent_type): New member function.
4081 (asm_language_data): Delete la_lookup_transparent_type
4082 initializer.
4083 (minimal_language_data): Likewise.
4084 * d-lang.c (d_language_data): Likewise.
4085 * f-lang.c (f_language_data): Likewise.
4086 * go-lang.c (go_language_data): Likewise.
4087 * language.c (unknown_language_data): Likewise.
4088 (auto_language_data): Likewise.
4089 * language.h (struct language_data): Delete
4090 la_lookup_transparent_type field.
4091 (language_defn::lookup_transparent_type): New member function.
4092 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4093 initializer.
4094 * objc-lang.c (objc_language_data): Likewise.
4095 * opencl-lang.c (opencl_language_data): Likewise.
4096 * p-lang.c (pascal_language_data): Likewise.
4097 * rust-lang.c (rust_language_data): Likewise.
4098 * symtab.c (symbol_matches_domain): Update call.
4099
4100 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4101
4102 * ada-lang.c (ada_language_arch_info): Delete function, move
4103 implementation to...
4104 (ada_language::language_arch_info): ...here, a new member
4105 function.
4106 (ada_language_data): Delete la_language_arch_info.
4107 * c-lang.c (c_language_data): Likewise.
4108 (c_language::language_arch_info): New member function.
4109 (cplus_language_arch_info): Delete function, move
4110 implementation to...
4111 (cplus_language::language_arch_info): ...here, a new member
4112 function.
4113 (cplus_language_data): Delete la_language_arch_info.
4114 (asm_language_data): Likewise.
4115 (asm_language::language_arch_info): New member function.
4116 (minimal_language_data): Delete la_language_arch_info.
4117 (minimal_language::language_arch_info): New member function.
4118 * d-lang.c (d_language_arch_info): Delete function, move
4119 implementation to...
4120 (d_language::language_arch_info): ...here, a new member
4121 function.
4122 (d_language_data): Delete la_language_arch_info.
4123 * f-lang.c (f_language_arch_info): Delete function, move
4124 implementation to...
4125 (f_language::language_arch_info): ...here, a new member
4126 function.
4127 (f_language_data): Delete la_language_arch_info.
4128 * go-lang.c (go_language_arch_info): Delete function, move
4129 implementation to...
4130 (go_language::language_arch_info): ...here, a new member
4131 function.
4132 (go_language_data): Delete la_language_arch_info.
4133 * language.c (unknown_language_data): Likewise.
4134 (unknown_language::language_arch_info): New member function.
4135 (auto_language_data): Delete la_language_arch_info.
4136 (auto_language::language_arch_info): New member function.
4137 (language_gdbarch_post_init): Update call to
4138 la_language_arch_info.
4139 * language.h (language_data): Delete la_language_arch_info
4140 function pointer.
4141 (language_defn::language_arch_info): New function.
4142 * m2-lang.c (m2_language_arch_info): Delete function, move
4143 implementation to...
4144 (m2_language::language_arch_info): ...here, a new member
4145 function.
4146 (m2_language_data): Delete la_language_arch_info.
4147 * objc-lang.c (objc_language_arch_info): Delete function, move
4148 implementation to...
4149 (objc_language::language_arch_info): ...here, a new member
4150 function.
4151 (objc_language_data): Delete la_language_arch_info.
4152 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4153 implementation to...
4154 (opencl_language::language_arch_info): ...here, a new member
4155 function.
4156 (opencl_language_data): Delete la_language_arch_info.
4157 * p-lang.c (pascal_language_arch_info): Delete function, move
4158 implementation to...
4159 (pascal_language::language_arch_info): ...here, a new member
4160 function.
4161 (pascal_language_data): Delete la_language_arch_info.
4162 * rust-lang.c (rust_language_arch_info): Delete function, move
4163 implementation to...
4164 (rust_language::language_arch_info): ...here, a new member
4165 function.
4166 (rust_language_data): Delete la_language_arch_info.
4167
4168 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4169
4170 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4171 initializer.
4172 * c-lang.c (c_language_data): Likewise.
4173 (cplus_language_data): Likewise.
4174 (cplus_language::pass_by_reference_info): New method.
4175 (asm_language_data): Delete la_pass_by_reference initializer.
4176 (minimal_language_data): Likewise.
4177 * cp-abi.c (cp_pass_by_reference): Remove use of
4178 default_pass_by_reference.
4179 * d-lang.c (d_language_data): Likewise.
4180 * f-lang.c (f_language_data): Likewise.
4181 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4182 default_pass_by_reference.
4183 * go-lang.c (go_language_data): Likewise.
4184 * language.c (language_pass_by_reference): Update.
4185 (default_pass_by_reference): Delete.
4186 (unknown_language_data): Delete la_pass_by_reference
4187 initializer.
4188 (auto_language_data): Likewise.
4189 * language.h (struct language_data): Delete la_pass_by_reference
4190 field.
4191 (language_defn::pass_by_reference_info): New member function.
4192 (default_pass_by_reference): Delete declaration.
4193 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4194 initializer.
4195 * objc-lang.c (objc_language_data): Likewise.
4196 * opencl-lang.c (opencl_language_data): Likewise.
4197 * p-lang.c (pascal_language_data): Likewise.
4198 * rust-lang.c (rust_language_data): Likewise.
4199
4200 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4201
4202 * ada-lang.c (ada_read_var_value): Delete function, move
4203 implementation to...
4204 (ada_language::read_var_value): ...here.
4205 (ada_language_data): Delete la_read_var_value initializer.
4206 * c-lang.c (c_language_data): Likewise.
4207 (cplus_language_data): Likewise.
4208 (minimal_language_data): Likewise.
4209 * d-lang.c (d_language_data): Likewise.
4210 * f-lang.c (f_language_data): Likewise.
4211 * findvar.c (default_read_var_value): Rename to...
4212 (language_defn::read_var_value): ...this.
4213 * findvar.c (read_var_value): Update header comment, and change to
4214 call member function instead of function pointer.
4215 * go-lang.c (go_language_data): Likewise.
4216 * language.c (unknown_language_data): Delete la_read_var_value
4217 initializer.
4218 (auto_language_data): Likewise.
4219 * language.h (struct language_data): Delete la_read_var_value
4220 field.
4221 (language_defn::read_var_value): New member function.
4222 (default_read_var_value): Delete declaration.
4223 * m2-lang.c (m2_language_data): Delete la_read_var_value
4224 initializer.
4225 * objc-lang.c (objc_language_data): Likewise.
4226 * opencl-lang.c (opencl_language_data): Likewise.
4227 * p-lang.c (pascal_language_data): Likewise.
4228 * rust-lang.c (rust_language_data): Likewise.
4229 * value.h (default_read_var_value): Delete declaration.
4230
4231 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4232
4233 * ada-lang.c (ada_print_array_index): Delete function, move
4234 implementation to...
4235 (ada_language::print_array_index): ...here.
4236 (ada_language_data): Delete la_print_array_index initializer.
4237 * c-lang.c (c_language_data): Likewise.
4238 (cplus_language_data): Likewise.
4239 (minimal_language_data): Likewise.
4240 * d-lang.c (d_language_data): Likewise.
4241 * f-lang.c (f_language_data): Likewise.
4242 * go-lang.c (go_language_data): Likewise.
4243 * language.c (default_print_array_index): Delete function, move
4244 implementation to...
4245 (language_defn::print_array_index): ...here.
4246 (unknown_language_data): Delete la_print_array_index initializer.
4247 (auto_language_data): Likewise.
4248 * language.h (struct language_data): Delete la_print_array_index
4249 field.
4250 (language_defn::print_array_index): New member function.
4251 (LA_PRINT_ARRAY_INDEX): Update.
4252 (default_print_array_index): Delete declaration.
4253 * m2-lang.c (m2_language_data): Delete la_print_array_index
4254 initializer.
4255 * objc-lang.c (objc_language_data): Likewise.
4256 * opencl-lang.c (opencl_language_data): Likewise.
4257 * p-lang.c (pascal_language_data): Likewise.
4258 * rust-lang.c (rust_language_data): Likewise.
4259
4260 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4261
4262 * gdb/ada-lang.c (ada_language_defn): Convert to...
4263 (ada_language_data): ...this.
4264 (class ada_language): New class.
4265 (ada_language_defn): New static global.
4266 * gdb/c-lang.c (c_language_defn): Convert to...
4267 (c_language_data): ...this.
4268 (class c_language): New class.
4269 (c_language_defn): New static global.
4270 (cplus_language_defn): Convert to...
4271 (cplus_language_data): ...this.
4272 (class cplus_language): New class.
4273 (cplus_language_defn): New static global.
4274 (asm_language_defn): Convert to...
4275 (asm_language_data): ...this.
4276 (class asm_language): New class.
4277 (asm_language_defn): New static global.
4278 (minimal_language_defn): Convert to...
4279 (minimal_language_data): ...this.
4280 (class minimal_language): New class.
4281 (minimal_language_defn): New static global.
4282 * gdb/d-lang.c (d_language_defn): Convert to...
4283 (d_language_data): ...this.
4284 (class d_language): New class.
4285 (d_language_defn): New static global.
4286 * gdb/f-lang.c (f_language_defn): Convert to...
4287 (f_language_data): ...this.
4288 (class f_language): New class.
4289 (f_language_defn): New static global.
4290 * gdb/go-lang.c (go_language_defn): Convert to...
4291 (go_language_data): ...this.
4292 (class go_language): New class.
4293 (go_language_defn): New static global.
4294 * gdb/language.c (unknown_language_defn): Remove declaration.
4295 (current_language): Initialize to nullptr, real initialization is
4296 moved to _initialize_language.
4297 (languages): Delete global.
4298 (language_defn::languages): Define.
4299 (set_language_command): Use language_defn::languages.
4300 (set_language): Likewise.
4301 (range_error): Likewise.
4302 (language_enum): Likewise.
4303 (language_def): Likewise.
4304 (add_set_language_command): Use language_def::languages for the
4305 language list, and language_def to lookup language pointers.
4306 (skip_language_trampoline): Use language_defn::languages.
4307 (unknown_language_defn): Convert to...
4308 (unknown_language_data): ...this.
4309 (class unknown_language): New class.
4310 (unknown_language_defn): New static global.
4311 (auto_language_defn): Convert to...
4312 (auto_language_data): ...this.
4313 (class auto_language): New class.
4314 (auto_language_defn): New static global.
4315 (language_gdbarch_post_init): Use language_defn::languages.
4316 (_initialize_language): Initialize current_language.
4317 * gdb/language.h (struct language_defn): Rename to...
4318 (struct language_data): ...this.
4319 (struct language_defn): New.
4320 (auto_language_defn): Delete.
4321 (unknown_language_defn): Delete.
4322 (minimal_language_defn): Delete.
4323 (ada_language_defn): Delete.
4324 (asm_language_defn): Delete.
4325 (c_language_defn): Delete.
4326 (cplus_language_defn): Delete.
4327 (d_language_defn): Delete.
4328 (f_language_defn): Delete.
4329 (go_language_defn): Delete.
4330 (m2_language_defn): Delete.
4331 (objc_language_defn): Delete.
4332 (opencl_language_defn): Delete.
4333 (pascal_language_defn): Delete.
4334 (rust_language_defn): Delete.
4335 * gdb/m2-lang.c (m2_language_defn): Convert to...
4336 (m2_language_data): ...this.
4337 (class m2_language): New class.
4338 (m2_language_defn): New static global.
4339 * gdb/objc-lang.c (objc_language_defn): Convert to...
4340 (objc_language_data): ...this.
4341 (class objc_language): New class.
4342 (objc_language_defn): New static global.
4343 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4344 (opencl_language_data): ...this.
4345 (class opencl_language): New class.
4346 (opencl_language_defn): New static global.
4347 * gdb/p-lang.c (pascal_language_defn): Convert to...
4348 (pascal_language_data): ...this.
4349 (class pascal_language): New class.
4350 (pascal_language_defn): New static global.
4351 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4352 language pointer, update comment format.
4353 * gdb/rust-lang.c (rust_language_defn): Convert to...
4354 (rust_language_data): ...this.
4355 (class rust_language): New class.
4356 (rust_language_defn): New static global.
4357
4358 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4359
4360 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4361 member variable.
4362 <m_stmt_at_address>: New member variable.
4363 (lnp_state_machine::record_line): Don't record some lines, update
4364 tracking of is_stmt at the same address.
4365 (lnp_state_machine::lnp_state_machine): Initialise new member
4366 variables.
4367
4368 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4369
4370 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4371 "-include gnu-nat-mig.h".
4372 * gnu-nat-mig.h: New file.
4373 * gnu-nat.c: Include "gnu-nat-mig.h".
4374 (exc_server, msg_reply_server, notify_server,
4375 process_reply_server): Remove declarations.
4376
4377 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4378
4379 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4380 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4381 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4382 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4383 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4384 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4385 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4386 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4387 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4388 to gnu_nat_target class.
4389 * gnu-nat.c: Likewise.
4390 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4391 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4392 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4393 object.
4394 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4395 instead of `gnu_target'.
4396
4397 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4398
4399 * i386-gnu-tdep.c: Include "gdbcore.h"
4400 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4401 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4402 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4403 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4404 i386_gnu_sigcontext_addr): New functions
4405 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4406 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4407 tdep.
4408
4409 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4410
4411 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4412 before fork_inferior call. Avoid calling it if target_is_pushed returns
4413 true.
4414
4415 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4416
4417 * gnu-nat.h (gnu_target): New variable declaration.
4418 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4419 gnu_target.
4420 * gnu-nat.c (gnu_target): New variable.
4421 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4422 add_thread_silent, and add_thread calls.
4423 (gnu_nat_target::create_inferior): Pass gnu_target to
4424 add_thread_silent, thread_change_ptid call.
4425 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4426 call.
4427
4428 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4429
4430 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4431 (gnu_nat_target::find_memory_regions): Remove unused
4432 `old_address' variable.
4433
4434 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4435
4436 * gnu-nat.c: Include "gdbarch.h".
4437
4438 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4439
4440 * reply_mig_hack.awk (Error return): Cast function through
4441 void *, to bypass compiler function call check.
4442
4443 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4444
4445 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4446 $(srcdir)/reply_mig_hack.awk.
4447
4448 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4449
4450 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4451
4452 2020-05-30 Jonny Grant <jg@jguk.org>
4453
4454 * configure.ac (ACX_BUGURL): change bug URL to https.
4455
4456 2020-05-30 Pedro Alves <palves@redhat.com>
4457
4458 * cp-support.c (replace_typedefs_template): New.
4459 (replace_typedefs_qualified_name): Handle
4460 DEMANGLE_COMPONENT_TEMPLATE.
4461
4462 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4463
4464 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4465 dwarf2/index-cache.h, dwarf2/index-write.c,
4466 dwarf2/index-write.h, dwarf2/line-header.c,
4467 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4468 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4469 variables and fields from `dwarf2_per_objfile` to just
4470 `per_objfile` throughout.
4471
4472 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4473
4474 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4475 <push_dwarf_reg_entry_value>: Add comment.
4476
4477 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4478 Keith Seitz <keiths@redhat.com>
4479
4480 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4481 instead of PyEval_ReleaseLock.
4482 (class gdbpy_gil): Move to earlier in file.
4483 (finalize_python): Set gdb_python_initialized.
4484 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4485 when not initialized.
4486
4487 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4488
4489 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4490 <push_dwarf_reg_entry_value>: Remove assert. Override
4491 per_objfile with caller_per_objfile.
4492
4493 2020-05-28 Tom de Vries <tdevries@suse.de>
4494
4495 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4496 PR gold/15646 workaround to symbol kind "type".
4497
4498 2020-05-27 Tom Tromey <tromey@adacore.com>
4499
4500 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4501
4502 2020-05-27 Tom Tromey <tromey@adacore.com>
4503
4504 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4505 Use htab_find_with_hash.
4506 <add_abbrev>: Remove "abbrev_number" parameter.
4507 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4508 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4509 (hash_abbrev): Add comment.
4510 (abbrev_table::lookup_abbrev): Move to header file.
4511 (abbrev_table::read): Update.
4512
4513 2020-05-27 Tom Tromey <tromey@adacore.com>
4514
4515 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4516 method.
4517 <canonical_name>: New member.
4518 <raw_name>: Rename from "name".
4519 (partial_die_info): Initialize canonical_name.
4520 (scan_partial_symbols): Check raw_name.
4521 (partial_die_parent_scope, partial_die_full_name)
4522 (add_partial_symbol, add_partial_subprogram)
4523 (add_partial_enumeration, load_partial_dies): Use "name" method.
4524 (partial_die_info::name): New method.
4525 (partial_die_info::read, guess_partial_die_structure_name)
4526 (partial_die_info::fixup): Update.
4527
4528 2020-05-27 Tom Tromey <tromey@adacore.com>
4529
4530 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4531 <get_ref_die_offset>: Inline.
4532 <get_ref_die_offset_complaint>: New method.
4533 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4534 (attribute::get_ref_die_offset_complaint): Rename from
4535 get_ref_die_offset. Just issue complaint.
4536
4537 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4538
4539 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4540
4541 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4542
4543 * exec.c (exec_file_attach): Use errno value of first openp failure.
4544
4545 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4546
4547 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4548 Don't close thread handle.
4549
4550 2020-05-27 Tom Tromey <tom@tromey.com>
4551 Simon Marchi <simon.marchi@efficios.com>
4552
4553 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4554 shared_ptr.
4555 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4556 member.
4557 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4558 dwarf2_per_bfd_objfile_data_key>: New globals.
4559 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4560 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4561 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4562 shared.
4563 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4564 short-circuit when sharing.
4565 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4566 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4567
4568 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4569
4570 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4571 to...
4572 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4573 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4574
4575 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4576
4577 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4578 build_name_components, find_name_components_bounds>:
4579 Add per_objfile parameter.
4580 (struct mapped_index) <symbol_name_at>: Likewise.
4581 (struct mapped_debug_names): Remove constructor.
4582 <dwarf2_per_objfile>: Remove field.
4583 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4584 (mapped_index_base::find_name_components_bounds,
4585 mapped_index_base::build_name_components,
4586 dw2_expand_symtabs_matching_symbol): Likewise.
4587 (class mock_mapped_index) <symbol_name_at>: Likewise.
4588 (check_match): Likewise.
4589 (check_find_bounds_finds): Likewise.
4590 (test_mapped_index_find_name_component_bounds): Update.
4591 (CHECK_MATCH): Update.
4592 (dw2_expand_symtabs_matching): Update.
4593 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4594 per_objfile parameter.
4595 <find_vec_in_debug_names>: Likewise.
4596 <m_per_objfile>: New field.
4597 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4598 parameter.
4599 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4600 (dw2_debug_names_iterator::next): Update.
4601 (dw2_debug_names_lookup_symbol): Update.
4602 (dw2_debug_names_expand_symtabs_for_function): Update.
4603 (dw2_debug_names_map_matching_symbols): Update.
4604 (dw2_debug_names_expand_symtabs_matching): Update.
4605 (dwarf2_read_debug_names): Update.
4606
4607 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4608
4609 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4610 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4611 move to dwarf2_per_objfile.
4612 <read_in_chain>: Remove.
4613 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4614 remove_all_cus, age_comp_units>: New methods.
4615 <m_dwarf2_cus>: New member.
4616 (struct dwarf2_per_cu_data) <cu>: Remove.
4617 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4618 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4619 moved to methods of dwarf2_per_objfile.
4620 (dwarf2_clear_marks): Remove.
4621 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4622 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4623 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4624 (dwarf2_per_objfile::remove_all_cus): New.
4625 (class free_cached_comp_units) <~free_cached_comp_units>:
4626 Update.
4627 (load_cu): Update.
4628 (dw2_do_instantiate_symtab): Adjust.
4629 (fill_in_sig_entry_from_dwo_entry): Adjust.
4630 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4631 (cutu_reader::cutu_reader): Likewise.
4632 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4633 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4634 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4635 and dwarf2_per_objfile::age_comp_units.
4636 (load_partial_comp_unit): Update.
4637 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4638 (process_queue): Likewise.
4639 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4640 backlink.
4641 (dwarf2_read_addr_index): Likewise.
4642 (follow_die_offset): Likewise.
4643 (dwarf2_fetch_die_loc_sect_off): Likewise.
4644 (dwarf2_fetch_constant_bytes): Likewise.
4645 (dwarf2_fetch_die_type_sect_off): Likewise.
4646 (follow_die_sig_1): Likewise.
4647 (load_full_type_unit): Likewise.
4648 (read_signatured_type): Likewise.
4649 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4650 (dwarf2_cu::~dwarf2_cu): Remove.
4651 (dwarf2_per_objfile::get_cu): New.
4652 (dwarf2_per_objfile::set_cu): New.
4653 (age_cached_comp_units): Rename to...
4654 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4655 to std::unordered_map.
4656 (free_one_cached_comp_unit): Rename to...
4657 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4658 to std::unordered_map.
4659 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4660 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4661 a dwarf2_per_objfile in data.
4662 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4663 (dwarf2_clear_marks): Remove.
4664
4665 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4666
4667 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4668 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4669 (init_tu_and_read_dwo_dies): Likewise.
4670 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4671 (cutu_reader::cutu_reader): Likewise.
4672 (load_partial_comp_unit): Likewise.
4673 (process_psymtab_comp_unit): Update.
4674 (build_type_psymtabs_1): Update.
4675 (process_skeletonless_type_unit): Update.
4676 (load_full_comp_unit): Update.
4677 (find_partial_die): Update.
4678 (dwarf2_read_addr_index): Update.
4679 (read_signatured_type): Update.
4680
4681 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4682
4683 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4684 m_header_read_in>: New fields.
4685 <get_header>: New method.
4686 * dwarf2/read.c (per_cu_header_read_in): Remove.
4687 (dwarf2_per_cu_data::get_header): New.
4688 (dwarf2_per_cu_data::addr_size): Update.
4689 (dwarf2_per_cu_data::offset_size): Update.
4690 (dwarf2_per_cu_data::ref_addr_size): Update.
4691
4692 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4693
4694 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4695 (dw2_do_instantiate_symtab): Update.
4696 (queue_and_load_all_dwo_tus): Change parameter from
4697 dwarf2_per_cu_data to dwarf2_cu.
4698 (dwarf2_fetch_die_loc_sect_off): Update.
4699 (dwarf2_fetch_constant_bytes): Update.
4700 (dwarf2_fetch_die_type_sect_off): Update.
4701
4702 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4703
4704 * dwarf2/read.c (process_full_comp_unit,
4705 process_full_type_unit): Remove per_cu, per_objfile paramters.
4706 Add dwarf2_cu parameter.
4707 (process_queue): Update.
4708
4709 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4710
4711 * dwarf2/read.c (create_cu_from_index_list): Replace
4712 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4713 (create_cus_from_index_list): Likewise.
4714 (create_cus_from_index): Likewise.
4715 (create_signatured_type_table_from_index): Likewise.
4716 (create_cus_from_debug_names_list): Likewise.
4717 (create_cus_from_debug_names): Likewise.
4718 (dwarf2_read_gdb_index): Update.
4719 (dwarf2_read_debug_names): Update.
4720
4721 2020-05-27 Tom Tromey <tom@tromey.com>
4722 Simon Marchi <simon.marchi@efficios.com>
4723
4724 * dwarf2/read.h (struct dwarf2_per_objfile)
4725 <get_type_for_signatured_type, set_type_for_signatured_type>:
4726 New methods.
4727 <m_type_map>: New member.
4728 (struct signatured_type) <type>: Remove.
4729 * dwarf2/read.c
4730 (dwarf2_per_objfile::get_type_for_signatured_type,
4731 dwarf2_per_objfile::set_type_for_signatured_type): New.
4732 (get_signatured_type): Use new methods.
4733
4734 2020-05-27 Tom Tromey <tom@tromey.com>
4735 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4738 (struct dwarf2_per_objfile) <type_units>: New member.
4739 <get_type_unit_group_unshareable>: New method.
4740 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4741 num_symtabs, symtabs>: Remove; move to
4742 type_unit_group_unshareable.
4743 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4744 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4745 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4746
4747 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4748
4749 * dwarf2/read.h (struct dwarf2_per_cu_data):
4750 <dwarf2_per_objfile>: Remove.
4751 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4752 dwarf2_per_objfile.
4753 (create_signatured_type_table_from_index): Likewise.
4754 (create_signatured_type_table_from_debug_names): Likewise.
4755 (create_debug_type_hash_table): Likewise.
4756 (fill_in_sig_entry_from_dwo_entry): Likewise.
4757 (create_type_unit_group): Likewise.
4758 (read_comp_units_from_section): Likewise.
4759 (create_cus_hash_table): Likewise.
4760
4761 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4762
4763 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4764 dwarf2_per_cu_data::dwarf2_per_objfile.
4765 (compute_compunit_symtab_includes): Likewise.
4766 (dwarf2_cu::start_symtab): Likewise.
4767
4768 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4769
4770 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4771 parameter.
4772 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4773 (read_namespace_alias): Update.
4774 (lookup_die_type): Update.
4775 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4776 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4777 Update.
4778 (disassemble_dwarf_expression): Update.
4779
4780 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4781
4782 * dwarf2/read.h (struct dwarf2_queue_item): Add
4783 dwarf2_per_objfile parameter, assign new parameter.
4784 <per_objfile>: New field.
4785 * dwarf2/read.c (free_one_cached_comp_unit): Add
4786 dwarf2_per_objfile parameter.
4787 (queue_comp_unit): Likewise.
4788 (dw2_do_instantiate_symtab): Update.
4789 (process_psymtab_comp_unit): Update.
4790 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4791 (process_imported_unit_die): Update.
4792 (queue_and_load_dwo_tu): Update.
4793 (follow_die_offset): Update.
4794 (follow_die_sig_1): Update.
4795
4796 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4797
4798 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4799 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4800 (read_call_site_scope): Assign per_objfile.
4801 (dwarf2_per_cu_data::objfile): Remove.
4802 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4803 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4804 dwarf2_per_objfile parameter.
4805 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4806 dwarf2_per_objfile parameter.
4807 (dwarf_expr_reg_to_entry_parameter): Add output
4808 dwarf2_per_objfile parameter.
4809 (locexpr_get_frame_base): Update.
4810 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4811 <push_dwarf_reg_entry_value>: Update.
4812 <call_site_to_target_addr>: Update.
4813 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4814 parameter.
4815 (value_of_dwarf_reg_entry): Update.
4816 (rw_pieced_value): Update.
4817 (indirect_synthetic_pointer): Update.
4818 (dwarf2_evaluate_property): Update.
4819 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4820 parameter.
4821 (locexpr_read_variable): Update.
4822 (locexpr_get_symbol_read_needs): Update.
4823 (loclist_read_variable): Update.
4824
4825 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4826
4827 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4828 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4829 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4830 parameter.
4831 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4832 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4833 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4834 parameter.
4835 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4836 sect_variable_value): Add dwarf2_per_objfile parameter.
4837 (class dwarf_evaluate_loc_desc) <dwarf_call,
4838 dwarf_variable_value>: Update.
4839 (fetch_const_value_from_synthetic_pointer): Add
4840 dwarf2_per_objfile parameter.
4841 (fetch_const_value_from_synthetic_pointer): Update.
4842 (coerced_pieced_ref): Update.
4843 (class symbol_needs_eval_context) <dwarf_call,
4844 dwarf_variable_value>: Update.
4845 (dwarf2_compile_expr_to_ax): Update.
4846
4847 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4848
4849 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4850 parameter.
4851 (dwarf2_evaluate_loc_desc_full): Update.
4852
4853 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4854
4855 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4856 parameter.
4857 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4858 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4859 dwarf2_per_objfile parameter.
4860 (decode_debug_loc_dwo_addresses): Likewise.
4861 (dwarf2_find_location_expression): Update.
4862 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4863 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4864 parameter.
4865 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4866 parameter.
4867 (locexpr_describe_location_1): Likewise.
4868 (locexpr_describe_location): Update.
4869
4870 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4871
4872 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4873 Remove.
4874 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4875 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4876 (dwarf2_compile_property_to_c): Update.
4877 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4878 use text offset from objfile.
4879 (locexpr_tracepoint_var_ref): Update.
4880 (locexpr_generate_c_location): Update.
4881 (loclist_describe_location): Update.
4882 (loclist_tracepoint_var_ref): Update.
4883 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4884 dwarf2_per_objfile parameter.
4885 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4886 use text offset from objfile.
4887 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4888
4889 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4890
4891 * dwarf2/expr.h (struct dwarf_expr_context)
4892 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4893 <offset>: Remove.
4894 <per_objfile>: New member.
4895 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4896 dwarf2_per_objfile parameter. Don't set offset, set
4897 per_objfile.
4898 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4899 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4900 a dwarf2_per_objfile object instead of an offset.
4901 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4902 constructor.
4903 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4904 to dwarf2_expr_executor constructor. Don't set offset.
4905 (dwarf2_fetch_cfa_info): Update.
4906 (struct dwarf2_frame_cache) <text_offset>: Remove.
4907 <per_objfile>: New field.
4908 (dwarf2_frame_cache): Update.
4909 (dwarf2_frame_prev_register): Update.
4910 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4911 <dwarf_evaluate_loc_desc>: Add constructor.
4912 (dwarf2_evaluate_loc_desc_full): Update.
4913 (dwarf2_locexpr_baton_eval): Update.
4914 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4915 Add constructor.
4916 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4917
4918 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4919
4920 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4921 addr_sized_int_type>: Move to dwarf2_cu.
4922 <int_type>: Move to dwarf2_per_objfile.
4923 (struct dwarf2_per_objfile) <int_type>: Move here.
4924 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4925 addr_sized_int_type>: Move here.
4926 (read_func_scope): Update.
4927 (read_array_type): Update.
4928 (read_tag_string_type): Update.
4929 (attr_to_dynamic_prop): Update.
4930 (dwarf2_per_cu_data::int_type): Rename to...
4931 (dwarf2_per_objfile::int_type): ... this.
4932 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4933 (dwarf2_cu::addr_sized_int_type): ... this.
4934 (read_subrange_type): Update.
4935 (dwarf2_per_cu_data::addr_type): Rename to...
4936 (dwarf2_cu::addr_type): ... this.
4937 (set_die_type): Update.
4938
4939 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4940
4941 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4942 data through per_cu->cu.
4943
4944 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4947 dwarf2_per_cu_data parameter fo dwarf2_cu.
4948 (lookup_dwo_type_unit): Likewise.
4949 (read_cutu_die_from_dwo): Likewise.
4950 (lookup_dwo_unit): Likewise.
4951 (open_and_init_dwo_file): Likewise.
4952 (lookup_dwo_cutu): Likewise.
4953 (lookup_dwo_comp_unit): Likewise.
4954 (lookup_dwo_type_unit): Likewise.
4955 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4956 (cutu_reader::cutu_reader): Update.
4957
4958 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4959
4960 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4961 parameter.
4962 (process_full_type_unit): Likewise.
4963 (process_queue): Update.
4964
4965 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4966
4967 * dwarf2/read.c (recursively_compute_inclusions): Add
4968 dwarf2_per_objfile parameter.
4969 (compute_compunit_symtab_includes): Likewise.
4970 (process_cu_includes): Update.
4971
4972 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4973
4974 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4975 parameter.
4976 (create_type_unit_group): Update.
4977 (process_psymtab_comp_unit_reader): Update.
4978 (build_type_psymtabs_reader): Update.
4979
4980 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4981
4982 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4983 object through m_this_cu->cu.
4984
4985 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4986
4987 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4988 the info parameter.
4989 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4990
4991 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4992
4993 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4994 per_objfile parameter.
4995 (load_full_type_unit): Add per_objfile parameter.
4996 (read_signatured_type): Likewise.
4997 (load_full_comp_unit): Likewise.
4998 (load_cu): Likewise.
4999 (dw2_do_instantiate_symtab): Likewise.
5000 (dw2_get_file_names): Likewise.
5001 (dw2_map_symtabs_matching_filename): Update.
5002 (dw_expand_symtabs_matching_file_matcher): Update.
5003 (dw2_map_symbol_filenames): Update.
5004 (process_psymtab_comp_unit): Add per_objfile parameter.
5005 (build_type_psymtabs_1): Update.
5006 (process_skeletonless_type_unit): Update.
5007 (dwarf2_build_psymtabs_hard): Update.
5008 (load_partial_comp_unit): Add per_objfile parameter.
5009 (scan_partial_symbols): Update.
5010 (load_full_comp_unit): Add per_objfile parameter.
5011 (process_imported_unit_die): Update.
5012 (create_cus_hash_table): Update.
5013 (find_partial_die): Update.
5014 (dwarf2_read_addr_index): Update.
5015 (follow_die_offset): Update.
5016 (dwarf2_fetch_die_loc_sect_off): Update.
5017 (dwarf2_fetch_constant_bytes): Update.
5018 (dwarf2_fetch_die_type_sect_off): Update.
5019 (follow_die_sig_1): Update.
5020 (load_full_type_unit): Add per_objfile parameter.
5021 (read_signatured_type): Likewise.
5022
5023 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5024
5025 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
5026 of objfile_name.
5027
5028 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5029
5030 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
5031 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5032 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5033 field.
5034 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5035 (create_cus_from_index): Update.
5036 (dwarf2_read_gdb_index): Update.
5037 (create_cus_from_debug_names): Update.
5038 (dwarf2_read_debug_names): Update.
5039 (get_abbrev_section_for_cu): Update.
5040 (create_all_comp_units): Update.
5041 (read_attribute_value): Update.
5042 (get_debug_line_section): Update.
5043 * dwarf2/index-cache.c (index_cache::store): Update.
5044 * dwarf2/index-write.c (save_gdb_index_command): Update.
5045 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5046
5047 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5048
5049 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5050 member.
5051 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5052 dwarf2_per_cu_data::per_bfd.
5053 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5054 (create_type_unit_group): Likewise.
5055 (queue_comp_unit): Remove reference to
5056 per_cu->dwarf2_per_objfile.
5057 (maybe_queue_comp_unit): Likewise.
5058 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5059 (create_cus_hash_table): Assign new field.
5060
5061 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5062
5063 * dwarf2/read.c: Replace
5064 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5065 dwarf2_cu->per_objfile throughout.
5066
5067 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5068
5069 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5070 parameter, don't use per_cu->dwarf2_per_objfile.
5071 (dw2_instantiate_symtab): Likewise.
5072 (dw2_find_last_source_symtab): Update.
5073 (dw2_map_expand_apply): Update.
5074 (dw2_lookup_symbol): Update.
5075 (dw2_expand_symtabs_for_function): Update.
5076 (dw2_expand_all_symtabs): Update.
5077 (dw2_expand_symtabs_with_fullname): Update.
5078 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5079 don't use per_cu->dwarf2_per_objfile.
5080 (dw2_expand_marked_cus): Update.
5081 (dw2_find_pc_sect_compunit_symtab): Update.
5082 (dw2_debug_names_lookup_symbol): Update.
5083 (dw2_debug_names_expand_symtabs_for_function): Update.
5084 (dw2_debug_names_map_matching_symbols): Update.
5085 (dwarf2_psymtab::expand_psymtab): Update.
5086
5087 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5088
5089 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5090 <per_objfile>: New member.
5091 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5092 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5093 call to dwarf2_cu.
5094 (cutu_reader::cutu_reader): Update.
5095 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5096
5097 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5098
5099 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5100 struct dwarf2_per_objfile.
5101 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5102 dwarf2_per_bfd.
5103 * dwarf2/read.c (set_die_type): Update.
5104 (get_die_type_at_offset): Update.
5105
5106 2020-05-27 Tom Tromey <tom@tromey.com>
5107 Simon Marchi <simon.marchi@efficios.com>
5108
5109 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5110 method.
5111 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5112 get_symtab, set_symtab>: New methods.
5113 <m_symtabs>: New field.
5114 (struct dwarf2_psymtab): Derive from partial_symtab.
5115 <readin_p, get_compunit_symtab>: Declare methods.
5116 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5117 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5118 New methods.
5119 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5120 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5121 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5122 (dw2_symtab_iter_next, dw2_print_stats)
5123 (dw2_expand_symtabs_with_fullname)
5124 (dw2_expand_symtabs_matching_one)
5125 (dw_expand_symtabs_matching_file_matcher)
5126 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5127 (dw2_debug_names_iterator::next)
5128 (dw2_debug_names_map_matching_symbols)
5129 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5130 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5131 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5132 New methods.
5133 (get_compunit_symtab, process_full_comp_unit)
5134 (process_full_type_unit): Update.
5135 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5136
5137 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5138
5139 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5140 then introduce a new dwarf2_per_objfile type.
5141 <read_line_string>: Move to the new dwarf2_per_objfile type.
5142 <objfile>: Likewise.
5143 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5144 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5145 dwarf2_per_objfile->per_bfd.
5146 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5147 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5148 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5149 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5150 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5151 (dwarf2_per_objfile::locate_sections): Rename to...
5152 (dwarf2_per_bfd::locate_sections): ... this.
5153 (dwarf2_per_objfile::get_cutu): Rename to...
5154 (dwarf2_per_bfd::get_cutu): ... this.
5155 (dwarf2_per_objfile::get_cu): Rename to...
5156 (dwarf2_per_bfd::get_cu): ... this.
5157 (dwarf2_per_objfile::get_tu): Rename to...
5158 (dwarf2_per_bfd::get_tu): ... this.
5159 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5160 (dwarf2_per_bfd::allocate_per_cu): ... this.
5161 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5162 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5163 (get_gdb_index_contents_ftype): Change parameter from
5164 dwarf2_per_objfile to dwarf2_per_bfd.
5165 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5166 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5167
5168 2020-05-27 Tom Tromey <tom@tromey.com>
5169 Simon Marchi <simon.marchi@efficios.com>
5170
5171 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5172 (allocate_piece_closure): Set "per_objfile" member.
5173 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5174 (locexpr_describe_location, loclist_describe_location): Use new
5175 member.
5176 * dwarf2/read.c (read_call_site_scope)
5177 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5178 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5179 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5180 handle_data_member_location): Set per_objfile member.
5181 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5182 member.
5183 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5184
5185 2020-05-27 Tom Tromey <tom@tromey.com>
5186
5187 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5188 allocate_signatured_type>: Declare new methods.
5189 <m_num_psymtabs>: New member.
5190 (struct dwarf2_per_cu_data) <index>: New member.
5191 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5192 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5193 (create_cu_from_index_list): Use allocate_per_cu.
5194 (create_signatured_type_table_from_index)
5195 (create_signatured_type_table_from_debug_names)
5196 (create_debug_type_hash_table, add_type_unit)
5197 (read_comp_units_from_section): Use allocate_signatured_type.
5198
5199 2020-05-27 Tom Tromey <tom@tromey.com>
5200
5201 * psymtab.c (partial_map_expand_apply)
5202 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5203 (psym_lookup_global_symbol_language)
5204 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5205 (psym_print_stats, psym_expand_symtabs_for_function)
5206 (psym_map_symbol_filenames, psym_map_matching_symbols)
5207 (psym_expand_symtabs_matching)
5208 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5209 (maintenance_check_psymtabs): Update.
5210 * psympriv.h (struct partial_symtab) <readin_p,
5211 get_compunit_symtab>: Add objfile parameter.
5212 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5213 Likewise.
5214 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5215 get_compunit_symtab>: Likewise.
5216 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5217
5218 2020-05-27 Tom Tromey <tom@tromey.com>
5219
5220 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5221 member.
5222 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5223 (create_cu_from_index_list)
5224 (create_signatured_type_table_from_index)
5225 (create_signatured_type_table_from_debug_names)
5226 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5227 (dwarf2_create_include_psymtab)
5228 (create_debug_type_hash_table, add_type_unit)
5229 (create_type_unit_group, read_comp_units_from_section)
5230 (dwarf2_compute_name, create_cus_hash_table)
5231 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5232 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5233 obstack.
5234 (dw2_get_real_path): Likewise. Change argument to
5235 dwarf2_per_objfile.
5236
5237 2020-05-27 Luis Machado <luis.machado@linaro.org>
5238
5239 PR tdep/26000
5240 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5241 for ldrd (immediate).
5242
5243 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5244
5245 * command.h: Add comment giving the name of class_tui.
5246 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5247 create the fake command for the help for class_tui.
5248
5249 2020-05-26 Tom Tromey <tromey@adacore.com>
5250
5251 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5252 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5253 (val_atr): New function.
5254 (value_val_atr): Use it.
5255 * ada-valprint.c (print_optional_low_bound): Change low bound
5256 handling for enums.
5257 (val_print_packed_array_elements): Don't call discrete_position.
5258 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5259 discrete_position for enum types.
5260 * language.c (default_print_array_index): Change type.
5261 * language.h (struct language_defn) <la_print_array_index>: Add
5262 index_type parameter, change type of index_value.
5263 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5264 (default_print_array_index): Update.
5265 * valprint.c (maybe_print_array_index): Don't call
5266 value_from_longest. Update.
5267 (value_print_array_elements): Don't call discrete_position.
5268
5269 2020-05-26 Tom Tromey <tromey@adacore.com>
5270
5271 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5272 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5273
5274 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5275
5276 PR gdb/13519
5277 * avr-tdep.c (avr_integer_to_address): Return data or code
5278 address accordingly to the second 'type' argument of the
5279 function.
5280
5281 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5282
5283 * infcmd.c, inferior.h: (construct_inferior_arguments):
5284 Moved function from here to gdbsupport/common-inferior.{h,cc}
5285
5286 2020-05-23 Tom Tromey <tom@tromey.com>
5287
5288 Revert commit eca1f90c:
5289 * NEWS: Remove entry for completion styling.
5290 * completer.c (_rl_completion_prefix_display_length): Move
5291 declaration later.
5292 (gdb_fnprint): Revert.
5293 (gdb_display_match_list_1): Likewise.
5294 * cli/cli-style.c (completion_prefix_style)
5295 (completion_difference_style, completion_suffix_style): Remove.
5296 (_initialize_cli_style): Revert.
5297 * cli/cli-style.h (completion_prefix_style)
5298 (completion_difference_style, completion_suffix_style): Don't
5299 declare.
5300
5301 2020-05-24 Pedro Alves <palves@redhat.com>
5302
5303 * symtab.c (completion_list_add_name): Return boolean indication
5304 of whether the symbol matched.
5305 (completion_list_add_symbol): Don't try to remove C++ aliases if
5306 the symbol didn't match in the first place.
5307 * symtab.h (completion_list_add_name): Return bool.
5308
5309 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5310
5311 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5312 type::field.
5313
5314 2020-05-23 Joel Brobecker <brobecker@adacore.com>
5315
5316 GDB 9.2 released.
5317
5318 2020-05-23 Tom Tromey <tom@tromey.com>
5319
5320 * NEWS: Add entry for completion styling.
5321 * completer.c (_rl_completion_prefix_display_length): Move
5322 declaration earlier.
5323 (gdb_fnprint): Use completion_style.
5324 (gdb_display_match_list_1): Likewise.
5325 * cli/cli-style.c (completion_prefix_style)
5326 (completion_difference_style, completion_suffix_style): New
5327 globals.
5328 (_initialize_cli_style): Register new globals.
5329 * cli/cli-style.h (completion_prefix_style)
5330 (completion_difference_style, completion_suffix_style): Declare.
5331
5332 2020-05-23 Pedro Alves <palves@redhat.com>
5333
5334 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5335 (parse_escape): Use ISDIGIT instead of isdigit.
5336 (puts_debug): Use gdb_isprint instead of isprint.
5337 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5338 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5339 ISSPACE instead of isspace.
5340 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5341 instead of isspace.
5342 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5343 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5344 instead of isxdigit and ISDIGIT instead of isdigit.
5345
5346 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5347
5348 * gdbtypes.h (struct type) <field>: New method.
5349 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5350 or type::field.
5351
5352 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5353
5354 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5355 (TYPE_FIELDS): Use type::fields. Change all call sites that
5356 modify the propery to use type::set_fields instead.
5357
5358 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5359
5360 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5361 type::num_fields instead.
5362
5363 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
5364
5365 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5366 methods.
5367 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5368 that modify the number of fields to use type::set_num_fields
5369 instead.
5370
5371 2020-05-22 Tom Tromey <tromey@adacore.com>
5372
5373 * compile/compile-object-load.h (munmap_list_free): Don't
5374 declare.
5375
5376 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5377
5378 * annotate.c (annotate_source_line): Update return type, add call
5379 to update current symtab and line.
5380 * annotate.h (annotate_source_line): Update return type, and
5381 extend header comment.
5382 * source.c (info_line_command): Check annotation_level before
5383 calling annotate_source_line.
5384 * stack.c (print_frame_info): If calling annotate_source_line
5385 returns true, then don't print any other source line information.
5386
5387 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5388
5389 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5390
5391 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5392
5393 * coffread.c (patch_type): Remove NULL check before xfree.
5394 * corefile.c (set_gnutarget): Likewise.
5395 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5396 * exec.c (build_section_table): Likewise.
5397 * remote.c (remote_target::pass_signals): Likewise.
5398 * utils.c (n_spaces): Likewise.
5399 * cli/cli-script.c (document_command): Likewise.
5400 * i386-windows-tdep.c (core_process_module_section): Likewise.
5401 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5402
5403 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5404
5405 * symfile.c (reread_symbols): Clear objfile's section_offsets
5406 vector and section indices, re-compute them by calling
5407 sym_offsets.
5408
5409 2020-05-20 Tom Tromey <tromey@adacore.com>
5410
5411 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5412 (desc_one_bound, desc_index_type): Compute field name.
5413
5414 2020-05-20 Tom de Vries <tdevries@suse.de>
5415
5416 PR symtab/25833
5417 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5418
5419 2020-05-20 Alan Modra <amodra@gmail.com>
5420
5421 PR 25993
5422 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5423 bfd_set_filename.
5424 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5425 passed to bfd_set_filename.
5426 * symfile-mem.c (add_vsyscall_page): Likewise for string
5427 passed to symbol_file_add_from_memory.
5428 (symbol_file_add_from_memory): Make name param a const char* and
5429 don't strdup.
5430
5431 2020-05-20 Alan Modra <amodra@gmail.com>
5432
5433 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5434 rather than accessing bfd->filename directly.
5435 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5436 and use bfd_section_name.
5437 * dwarf2/frame.c (decode_frame_entry): Likewise.
5438 * exec.c (exec_set_section_address): Likewise.
5439 * solib-aix.c (solib_aix_bfd_open): Likewise.
5440 * stap-probe.c (get_stap_base_address): Likewise.
5441 * symfile.c (reread_symbols): Likewise.
5442
5443 2020-05-19 Tom Tromey <tromey@adacore.com>
5444
5445 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5446
5447 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5448
5449 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5450
5451 2020-05-19 Pedro Alves <palves@redhat.com>
5452
5453 * NEWS (set exec-file-mismatch): Adjust entry.
5454 * exec.c: Include "build-id.h".
5455 (validate_exec_file): Try to match build IDs instead of filenames.
5456 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5457 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5458 and pass down 'warn_if_slow'.
5459 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5460 gdb_bfd_open_closure to pass it down.
5461 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5462
5463 2020-05-19 Pedro Alves <palves@redhat.com>
5464
5465 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5466 * target.c (target_fileio_open_1): Rename to target_fileio_open
5467 and make extern. Use bool.
5468 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5469 (target_fileio_read_alloc_1): Adjust.
5470 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5471 (target_fileio_open_warn_if_slow): Delete declaration.
5472
5473 2020-05-19 Pedro Alves <palves@redhat.com>
5474
5475 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5476 Adjust all callers.
5477
5478 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5479
5480 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5481 whether disp is negative.
5482
5483 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5484
5485 * symfile.h (struct symfile_segment_data)
5486 <~symfile_segment_data>: Remove.
5487 <segment_info>: Change to std::vector.
5488 * symfile.c (default_symfile_segments): Update.
5489 * elfread.c (elf_symfile_segments): Update.
5490
5491 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5492
5493 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5494 <segments>: New.
5495 <segment_bases, segment_sizes>: Remove.
5496 * symfile.c (default_symfile_segments): Update.
5497 * elfread.c (elf_symfile_segments): Update.
5498 * remote.c (remote_target::get_offsets): Update.
5499 * solib-target.c (solib_target_relocate_section_addresses):
5500 Update.
5501
5502 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5503
5504 * symfile.h (struct symfile_segment_data): Initialize fields.
5505 <~symfile_segment_data>: Add.
5506 (symfile_segment_data_up): New.
5507 (struct sym_fns) <sym_segments>: Return a
5508 symfile_segment_data_up.
5509 (default_symfile_segments): Return a symfile_segment_data_up.
5510 (free_symfile_segment_data): Remove.
5511 (get_symfile_segment_data): Return a symfile_segment_data_up.
5512 * symfile.c (default_symfile_segments): Likewise.
5513 (get_symfile_segment_data): Likewise.
5514 (free_symfile_segment_data): Remove.
5515 (symfile_find_segment_sections): Update.
5516 * elfread.c (elf_symfile_segments): Return a
5517 symfile_segment_data_up.
5518 * remote.c (remote_target::get_offsets): Update.
5519 * solib-target.c (solib_target_relocate_section_addresses):
5520 Update.
5521 * symfile-debug.c (debug_sym_segments): Return a
5522 symfile_segment_data_up.
5523
5524 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5525
5526 PR build/25981
5527 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5528 Hardcode register numbers.
5529
5530 PR build/25981
5531 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5532 procfs_find_LDT_entry): Remove.
5533 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5534 procfs_find_LDT_entry): Remove.
5535 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5536 Remove.
5537
5538 2020-05-17 Pedro Alves <palves@redhat.com>
5539 Andrew Burgess <andrew.burgess@embecosm.com>
5540 Keno Fischer <keno@juliacomputing.com>
5541
5542 PR gdb/25741
5543 * breakpoint.c (build_target_condition_list): Update comments.
5544 (build_target_command_list): Update comments and skip matching
5545 locations.
5546 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5547 a separate function. Simplify "set breakpoint auto-hw off"
5548 handling.
5549 (insert_breakpoints): Update comment.
5550 (tracepoint_locations_match): New parameter. For breakpoints,
5551 compare location types too, if the caller wants to.
5552 (handle_automatic_hardware_breakpoints): New functions.
5553 (bp_location_is_less_than): Also sort by location type and
5554 hardware breakpoint length.
5555 (update_global_location_list): Handle "set breakpoint auto-hw on"
5556 here.
5557 (update_breakpoint_locations): Ask breakpoint_locations_match to
5558 ignore location types.
5559
5560 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5561
5562 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5563 type::name instead.
5564
5565 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5566
5567 * gdbtypes.h (struct type) <name, set_name>: New methods.
5568 (TYPE_CODE): Use type::name. Change all call sites used to set
5569 the name to use type::set_name instead.
5570
5571 2020-05-16 Tom Tromey <tom@tromey.com>
5572
5573 * top.c (quit_force): Update.
5574 * infrun.c (handle_no_resumed): Update.
5575 * top.h (all_uis): New function.
5576 (ALL_UIS): Remove.
5577
5578 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5579
5580 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5581
5582 2020-05-16 Pedro Alves <palves@redhat.com>
5583
5584 * ia64-linux-nat.c
5585 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5586 Declare method.
5587 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5588
5589 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5590
5591 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5592 (sparc64_adi_info): Likewise.
5593
5594 2020-05-15 Tom Tromey <tom@tromey.com>
5595
5596 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5597 block_objfile.
5598 (lookup_objfile_from_block): Remove.
5599 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5600 (lookup_global_symbol): Use block_objfile.
5601 * symtab.h (lookup_objfile_from_block): Don't declare.
5602 * printcmd.c (clear_dangling_display_expressions): Use
5603 block_objfile.
5604 * parse.c (operator_check_standard): Use block_objfile.
5605
5606 2020-05-15 Tom Tromey <tom@tromey.com>
5607
5608 * language.c (language_alloc_type_symbol): Set
5609 SYMBOL_SECTION.
5610 * symtab.c (initialize_objfile_symbol): Remove.
5611 (allocate_symbol): Remove.
5612 (allocate_template_symbol): Remove.
5613 * dwarf2/read.c (fixup_go_packaging): Use "new".
5614 (new_symbol): Use "new".
5615 (read_variable): Don't call initialize_objfile_symbol. Use
5616 "new".
5617 (read_func_scope): Use "new".
5618 * xcoffread.c (process_xcoff_symbol): Don't call
5619 initialize_objfile_symbol.
5620 (SYMBOL_DUP): Remove.
5621 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5622 "new".
5623 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5624 (allocate_template_symbol): Don't declare.
5625 (struct symbol): Add copy constructor. Change defaults.
5626 * jit.c (finalize_symtab): Use "new".
5627 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5628 Use "new".
5629 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5630 (common_block_end): Use "new".
5631 * mdebugread.c (parse_symbol): Use "new".
5632 (new_symbol): Likewise.
5633
5634 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5635
5636 * NEWS: Mention changes to help and apropos.
5637
5638 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5639
5640 * command.h (enum command_class): Improve comments, document
5641 that class_alias is for user-defined aliases, give the class
5642 name for each class, remove unused class_xdb.
5643 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5644 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5645 by a precise class.
5646 * infcmd.c (_initialize_infcmd): Likewise.
5647 * reverse.c (_initialize_reverse): Likewise.
5648 * stack.c (_initialize_stack): Likewise.
5649 * symfile.c (_initialize_symfile): Likewise.
5650 * tracepoint.c (_initialize_tracepoint): Likewise.
5651
5652 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5653
5654 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5655 when their aliased command is traversed.
5656 (help_cmd): Add fput_command_names_styled call to
5657 output command name and aliases when command has an alias.
5658
5659 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5660
5661 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5662 * cli/cli-decode.c (help_cmd_list): Declare as static,
5663 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5664 a command together with the command.
5665 (fput_command_name_styled, fput_command_names_styled): New functions.
5666 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5667 fput_command_name_styled.
5668 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5669 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5670
5671 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5672
5673 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5674 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5675 * command.h (cmd_show_list): Likewise.
5676 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5677 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5678
5679 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5680
5681 * unittests/command-def-selftests.c (traverse_command_structure):
5682 Verify all commands of a list have the same prefix command and
5683 that only the top cmdlist commands have a null prefix.
5684
5685 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5686
5687 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5688 as prefix, not one of its aliases.
5689 (set_cmd_prefix): Remove.
5690 (do_add_cmd): Centralize the setting of the prefix of a command, when
5691 command is defined after its full chain of prefix commands.
5692 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5693 (add_setshow_cmd_full): Likewise.
5694 (update_prefix_field_of_prefixed_commands): New function.
5695 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5696 update_prefix_field_of_prefixed_commands.
5697 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5698 addresses of remote_set_cmdlist and remote_show_cmdlist given
5699 as argument, not the address of an argument.
5700 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5701 * gdb/remote.c (_initialize_remote): Likewise.
5702
5703 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5704
5705 * cli/cli-cmds.c (alias_command): Check for an existing alias
5706 using lookup_cmd_composition, as valid_command_p is too strict
5707 and forbids aliases that are the prefix of an existing alias
5708 or command.
5709 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5710 command is properly recognised as a valid command.
5711
5712 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5713
5714 * unittests/help-doc-selftests.c: Rename to
5715 unittests/command-def-selftests.c
5716 * unittests/command-def-selftests.c (help_doc_tests): Update some
5717 comments.
5718 (command_structure_tests, traverse_command_structure): New namespace
5719 and function.
5720 (command_structure_invariants_tests): New function.
5721 (_initialize_command_def_selftests) Renamed from
5722 _initialize_help_doc_selftests, register command_structure_invariants
5723 selftest.
5724
5725 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5726
5727 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5728 an alias of 'show'.
5729
5730 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5731
5732 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5733 ada_is_fixed_point_type. Update all callers.
5734 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5735 all callers.
5736 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5737 Update all callers.
5738 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5739 print_fixed_point_type. Update all callers.
5740 * ada-valprint.c (ada_value_print_num): Replace call to
5741 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5742
5743 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5744
5745 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5746 processors.
5747 (cpu_supports_bts): Add CV_AMD case.
5748
5749 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5750 Simon Marchi <simon.marchi@efficios.com>
5751
5752 * infrun.c (stop_all_threads): Collect multiple wait events at
5753 each pass.
5754
5755 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5756
5757 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5758 type::code instead.
5759
5760 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5761
5762 * gdbtypes.h (struct type) <code, set_code>: New methods.
5763 (TYPE_CODE): Use type::code. Change all call sites used to set
5764 the code to use type::set_code instead.
5765
5766 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5767 Tom de Vries <tdevries@suse.de>
5768 Pedro Alves <palves@redhat.com>
5769
5770 PR threads/25478
5771 * infrun.c (stop_all_threads): Do NOT ignore
5772 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5773 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5774 received.
5775 (handle_no_resumed): Remove code handling a live inferior with no
5776 threads.
5777 * remote.c (has_single_non_exited_thread): New.
5778 (remote_target::update_thread_list): Do not delete a thread if is
5779 the last thread of the process.
5780 * thread.c (thread_select): Call delete_exited_threads instead of
5781 prune_threads.
5782
5783 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5784
5785 * infrun.c (stop_all_threads): Enable/disable thread events of all
5786 targets. Move a debug message denoting the end of the function
5787 into the SCOPED_EXIT block.
5788
5789 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5790
5791 * process-stratum-target.h: Include <set>.
5792 (all_non_exited_process_targets, switch_to_target_no_thread): New
5793 function declarations.
5794 * process-stratum-target.c (all_non_exited_process_targets)
5795 (switch_to_target_no_thread): New function implementations.
5796
5797 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5798
5799 * infrun.c (handle_inferior_event): Extract out a piece of code
5800 into...
5801 (mark_non_executing_threads): ...this new function.
5802
5803 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5804
5805 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5806 use.
5807
5808 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5809
5810 * regcache.c (regcache_read_pc_protected): New function
5811 implementation that returns 0 if the PC cannot read via
5812 'regcache_read_pc'.
5813 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5814 instead of 'regcache_read_pc'.
5815 (keep_going_pass_signal): Ditto.
5816
5817 2020-05-13 Tom Tromey <tromey@adacore.com>
5818
5819 * ada-lang.c (align_value): Remove.
5820 (ada_template_to_fixed_record_type_1): Use align_up.
5821
5822 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5823
5824 * async-event.c: Update the copyright year.
5825 * async-event.h: Update the copyright year.
5826
5827 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5828
5829 * objfiles.h (is_addr_in_objfile,
5830 shared_objfile_contains_address_p): Return bool.
5831 * objfile.c (is_addr_in_objfile,
5832 shared_objfile_contains_address_p): Return bool.
5833
5834 2020-05-11 Tom Tromey <tromey@adacore.com>
5835
5836 * cli/cli-cmds.c (info_command): Restore.
5837 (_initialize_cli_cmds): Use add_prefix_command for "info".
5838 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5839
5840 2020-05-11 Tom Tromey <tromey@adacore.com>
5841
5842 * ada-lang.c (ada_value_primitive_field): Now public.
5843 * ada-lang.h (ada_value_primitive_field): Declare.
5844 * ada-valprint.c (print_field_values): Use
5845 ada_value_primitive_field for wrapper fields.
5846
5847 2020-05-11 Tom de Vries <tdevries@suse.de>
5848
5849 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5850 MODULE_DOMAIN.
5851
5852 2020-05-11 Tom de Vries <tdevries@suse.de>
5853
5854 PR symtab/25941
5855 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5856 with length 0, if not gdb-produced.
5857 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5858
5859 2020-05-09 Tom de Vries <tdevries@suse.de>
5860
5861 PR gdb/25955
5862 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5863 calculation.
5864
5865 2020-05-09 Tom Tromey <tom@tromey.com>
5866
5867 * top.c (server_command): Now bool.
5868 * top.h (server_command): Now bool.
5869
5870 2020-05-08 Tom Tromey <tromey@adacore.com>
5871
5872 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5873 already being processed.
5874
5875 2020-05-08 Tom Tromey <tom@tromey.com>
5876
5877 * printcmd.c (struct display) <next>: Remove.
5878 <display>: New constructor.
5879 <exp_string>: Now a std::string.
5880 <enabled_p>: Now a bool.
5881 (display_number): Move definition earlier.
5882 (displays): Rename from display_chain. Now a std::vector.
5883 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5884 (display_command): Update.
5885 (do_one_display, disable_display)
5886 (enable_disable_display_command, do_enable_disable_display):
5887 Update.
5888 (free_display): Remove.
5889 (clear_displays): Rewrite.
5890 (delete_display): Update.
5891 (map_display_numbers): Use function_view. Remove "data"
5892 parameter. Update.
5893 (do_delete_display): Remove.
5894 (undisplay_command): Update.
5895 (do_one_display, do_displays, disable_display)
5896 (info_display_command): Update.
5897 (do_enable_disable_display): Remove.
5898 (enable_disable_display_command)
5899 (clear_dangling_display_expressions): Update.
5900
5901 2020-05-08 Tom Tromey <tom@tromey.com>
5902
5903 * symtab.c (set_symbol_cache_size)
5904 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5905 (maintenance_print_symbol_cache_statistics): Update.
5906 * symmisc.c (print_symbol_bcache_statistics)
5907 (print_objfile_statistics, maintenance_print_objfiles)
5908 (maintenance_info_symtabs, maintenance_check_symtabs)
5909 (maintenance_expand_symtabs, maintenance_info_line_tables):
5910 Update.
5911 * symfile-debug.c (set_debug_symfile): Update.
5912 * source.c (forget_cached_source_info): Update.
5913 * python/python.c (gdbpy_progspaces): Update.
5914 * psymtab.c (maintenance_info_psymtabs): Update.
5915 * probe.c (parse_probes): Update.
5916 * linespec.c (iterate_over_all_matching_symtabs)
5917 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5918 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5919 * exec.c (exec_target::close): Update.
5920 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5921 * breakpoint.c (print_one_breakpoint_location)
5922 (create_longjmp_master_breakpoint)
5923 (create_std_terminate_master_breakpoint): Update.
5924 * progspace.c (program_spaces): Now a std::vector.
5925 (maybe_new_address_space): Update.
5926 (add_program_space): Remove.
5927 (program_space::program_space): Update.
5928 (remove_program_space): Update.
5929 (number_of_program_spaces): Remove.
5930 (print_program_space, update_address_spaces): Update.
5931 * progspace.h (program_spaces): Change type.
5932 (ALL_PSPACES): Remove.
5933 (number_of_program_spaces): Don't declare.
5934 (struct program_space) <next>: Remove.
5935
5936 2020-05-08 Tom Tromey <tom@tromey.com>
5937
5938 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5939 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5940 (enable_break): Update.
5941 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5942 (frv_fdpic_find_canonical_descriptor): Update.
5943 (frv_fetch_objfile_link_map): Update.
5944 * progspace.c (program_space::free_all_objfiles): Update.
5945 (program_space::solibs): New method.
5946 * progspace.h (struct program_space) <solibs>: New method.
5947 * solist.h (master_so_list): Don't declare.
5948 (ALL_SO_LIBS): Remove.
5949 * solib.h (so_list_head): Remove.
5950 (update_solib_list): Update comment.
5951 * solib.c (master_so_list): Remove.
5952 (solib_used, update_solib_list, solib_add)
5953 (info_sharedlibrary_command, clear_solib)
5954 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5955
5956 2020-05-08 Tom Tromey <tom@tromey.com>
5957
5958 * extension.c (extension_languages): Now a std::array.
5959 (ALL_EXTENSION_LANGUAGES): Remove.
5960 (get_ext_lang_defn, get_ext_lang_of_file)
5961 (eval_ext_lang_from_control_command): Update.
5962 (finish_ext_lang_initialization)
5963 (auto_load_ext_lang_scripts_for_objfile)
5964 (ext_lang_type_printers::ext_lang_type_printers)
5965 (apply_ext_lang_type_printers)
5966 (ext_lang_type_printers::~ext_lang_type_printers)
5967 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5968 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5969 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5970 (get_matching_xmethod_workers, ext_lang_colorize)
5971 (ext_lang_before_prompt): Update.
5972 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5973
5974 2020-05-08 Tom Tromey <tom@tromey.com>
5975
5976 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5977 overload.
5978 <swap_string, m_string>: Remove.
5979 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5980 Update.
5981 * stabsread.c (define_symbol, read_type): Update.
5982 * linespec.c (find_linespec_symbols): Update.
5983 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5984 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5985 * dbxread.c (read_dbx_symtab): Update.
5986 * cp-support.h (cp_canonicalize_string_full)
5987 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5988 Return unique_xmalloc_ptr.
5989 * cp-support.c (inspect_type): Update.
5990 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5991 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5992 Likewise.
5993 * c-typeprint.c (print_name_maybe_canonical): Update.
5994 * break-catch-throw.c (check_status_exception_catchpoint):
5995 Update.
5996
5997 2020-05-08 Tom de Vries <tdevries@suse.de>
5998
5999 * infrun.c (follow_fork): Copy current_line and current_symtab to
6000 child thread.
6001
6002 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6003
6004 * async-event.c (struct async_signal_handler, struct
6005 async_event_handler): Reformat, remove typedef.
6006
6007 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6008
6009 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
6010 access thistype->main_type->dyn_prop_list directly.
6011
6012 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6013
6014 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
6015 (remove_dyn_prop): Remove. Update all users to use
6016 type::remove_dyn_prop.
6017 * gdbtypes.c (remove_dyn_prop): Rename to...
6018 (type::remove_dyn_prop): ... this.
6019
6020 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
6021
6022 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
6023 (add_dyn_prop): Remove. Update all users to use
6024 type::add_dyn_prop.
6025 * gdbtypes.c (add_dyn_prop): Rename to...
6026 (type::add_dyn_prop): ... this.
6027
6028 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
6029
6030 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
6031 (get_dyn_prop): Remove. Update all users to use
6032 type::dyn_prop.
6033 * gdbtypes.c (get_dyn_prop): Rename to...
6034 (type::dyn_prop): ... this.
6035
6036 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6037
6038 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6039
6040 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
6041
6042 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6043 instruction, skip it if it's there.
6044
6045 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
6046
6047 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6048
6049 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
6050
6051 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6052 * gdbtypes.c (recursive_dump_type): Remove use of
6053 TYPE_INCOMPLETE.
6054
6055 2020-05-03 Tom Tromey <tom@tromey.com>
6056
6057 * breakpoint.c (catch_command, tcatch_command): Remove.
6058 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6059 add_show_prefix_cmd.
6060 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6061 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6062 Remove.
6063 (add_internal_problem_command): Use add_basic_prefix_cmd,
6064 add_show_prefix_cmd.
6065 * mips-tdep.c (set_mipsfpu_command): Remove.
6066 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6067 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6068 (_initialize_index_cache): Use add_basic_prefix_cmd.
6069 * memattr.c (dummy_cmd): Remove.
6070 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6071 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6072 (_initialize_tui_win): Use add_basic_prefix_cmd,
6073 add_show_prefix_cmd.
6074 * cli/cli-logging.c (set_logging_command): Remove.
6075 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6076 add_show_prefix_cmd.
6077 (show_logging_command): Remove.
6078 * target.c (target_command): Remove.
6079 (add_target): Use add_basic_prefix_cmd.
6080
6081 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
6082
6083 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6084
6085 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6086
6087 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6088 info_command.
6089
6090 2020-04-30 Kamil Rytarowski <n54@gmx.com>
6091
6092 * nbsd-nat.c (nbsd_enable_proc_events)
6093 (nbsd_nat_target::post_startup_inferior): Add.
6094 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6095 (nbsd_nat_target::update_thread_list): Rewrite.
6096 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6097 "PTRACE_LWP_CREATE".
6098 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6099
6100 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6101
6102 * stack.c (_initialize_stack): Remove duplicated creation
6103 of "frame" command and "f" alias.
6104
6105 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6106
6107 PR gdb/18706
6108 * gdbtypes.c (check_typedef): Calculate size of array of
6109 stubbed type.
6110
6111 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
6112
6113 PR gdb/15559
6114 * i386-tdep.c (i386_push_dummy_call): Call
6115 i386_thiscall_push_dummy_call.
6116 (i386_thiscall_push_dummy_call): New function.
6117 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6118 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6119 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6120
6121 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6122
6123 * gdbarch.sh (do_read): Add shellcheck disable directive for
6124 warning SC2162.
6125
6126 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6127
6128 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6129 "referenced but not assigned" warning.
6130
6131 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6132
6133 * gdbarch.sh: Remove code that sets fallbackdefault.
6134
6135 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6136
6137 * gdbarch.sh: Use shell operators && and || instead of
6138 -a and -o.
6139
6140 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6141
6142 * gdbarch.sh: Use $(...) instead of `...`.
6143
6144 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6145
6146 * gdbarch.sh: Use double quotes around variables.
6147
6148 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
6149
6150 * gdbarch.sh: Use %s with printf, instead of variables in the
6151 format string.
6152
6153 2020-04-29 Tom Tromey <tromey@adacore.com>
6154
6155 PR ada/25875:
6156 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6157 type fields here.
6158 (read_enumeration_type): Call
6159 update_enumeration_type_from_children later. Update comments.
6160 (process_enumeration_scope): Don't create type fields.
6161
6162 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6163
6164 * nbsd-tdep.c: Include "xml-syscall.h".
6165 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6166
6167 2020-04-29 Kamil Rytarowski <n54@gmx.com>
6168
6169 * nbsd-nat.c: Include "sys/wait.h".
6170 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6171 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6172 (nbsd_nat_target::remove_exec_catchpoint)
6173 (nbsd_nat_target::set_syscall_catchpoint): Add.
6174 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6175 (nbsd_nat_target::insert_exec_catchpoint)
6176 (nbsd_nat_target::remove_exec_catchpoint)
6177 (nbsd_nat_target::set_syscall_catchpoint): Add.
6178 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6179 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6180 `nbsd_get_syscall_number'.
6181
6182 2020-04-29 Tom Tromey <tom@tromey.com>
6183
6184 * stack.c (print_block_frame_labels): Remove.
6185
6186 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
6187
6188 PR gdb/17320
6189 * ada-valprint.c (val_print_packed_array_elements): Move array
6190 end bracket to new line.
6191 (ada_val_print_string): Remove extra spaces before first array
6192 element.
6193 * c-valprint.c (c_value_print_array): Likewise.
6194 * m2-valprint.c (m2_print_array_contents): Likewise.
6195 (m2_value_print_inner): Likewise.
6196 * p-valprint.c (pascal_value_print_inner): Likewise.
6197 * valprint.c (generic_val_print_array): Likewise.
6198 (value_print_array_elements): Move first array element and array
6199 end bracket to new line.
6200
6201 2020-04-29 Tom de Vries <tdevries@suse.de>
6202
6203 PR symtab/25889
6204 * linespec.c (find_method): Fix ix calculation.
6205
6206 2020-04-28 Kamil Rytarowski <n54@gmx.com>
6207
6208 * syscalls/update-netbsd.sh: New file.
6209 * syscalls/netbsd.xml: Regenerate.
6210 * data-directory/Makefile.in: Register `netbsd.xml' in
6211 `SYSCALLS_FILES'.
6212
6213 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6214
6215 * syscalls/update-freebsd.sh: Add double quotes.
6216
6217 2020-04-28 Tom Tromey <tom@tromey.com>
6218
6219 * NEWS: Update.
6220 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6221 (cmdpy_init): Allow class_tui.
6222
6223 2020-04-28 Mark Williams <mark@myosotissp.com>
6224
6225 PR gdb/24480
6226 * dwarf2read.c: Add missing assingments to list_in_scope when
6227 start_symtab was already called.
6228
6229 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
6230
6231 PR gdb/25881
6232 * dwarf2/read.c (offset_map_type): Use
6233 gdb:hash_enum<sect_offset> as hash function.
6234
6235 2020-04-28 Tom de Vries <tdevries@suse.de>
6236
6237 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6238 with DW_AT_signature.
6239
6240 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
6241
6242 * configure.ac: Remove check for fs_base/gs_base in
6243 user_regs_struct.
6244 * configure: Re-generate.
6245 * config.in: Re-generate.
6246 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6247 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6248 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6249
6250 2020-04-27 Luis Machado <luis.machado@linaro.org>
6251
6252 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6253 problematic inline frame unwinding situation.
6254 * frame.c (frame_id_computed_p): New function.
6255 * frame.h (frame_id_computed_p): New prototype.
6256
6257 2020-04-26 Tom Tromey <tom@tromey.com>
6258
6259 * command.h (enum command_class) <class_pseudo>: Remove.
6260
6261 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6262
6263 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6264 and whitespace.
6265
6266 2020-04-25 Kamil Rytarowski <n54@gmx.com>
6267
6268 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6269 `PT_GET_PROCESS_STATE' block.
6270
6271 2020-04-24 Tom Tromey <tom@tromey.com>
6272
6273 * symtab.h (symbol_get_demangled_name): Don't declare.
6274 * symtab.c (symbol_get_demangled_name): Remove.
6275 (general_symbol_info::natural_name)
6276 (general_symbol_info::demangled_name): Update.
6277
6278 2020-04-24 Tom Tromey <tom@tromey.com>
6279
6280 PR rust/25025:
6281 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6282
6283 2020-04-24 Tom Tromey <tom@tromey.com>
6284
6285 PR symtab/12707:
6286 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6287 exists.
6288 (new_symbol): Likewise.
6289 * compile/compile-object-load.c (get_out_value_type): Use
6290 symbol_matches_search_name.
6291
6292 2020-04-24 Tom Tromey <tom@tromey.com>
6293
6294 * dwarf2/read.c (add_partial_symbol): Do not call
6295 compute_and_set_names.
6296
6297 2020-04-24 Tom Tromey <tom@tromey.com>
6298
6299 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6300 overload.
6301
6302 2020-04-24 Tom Tromey <tom@tromey.com>
6303
6304 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6305 (add_psymbol_to_list): New overload. Make old overload call new
6306 one.
6307 * psympriv.h (add_psymbol_to_list): New overload.
6308
6309 2020-04-24 Tom Tromey <tom@tromey.com>
6310
6311 * dwarf2/read.c (partial_die_info::read) <case
6312 DW_AT_linkage_name>: Use value_as_string.
6313 (dwarf2_string_attr): Use value_as_string.
6314 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6315 method.
6316 * dwarf2/attribute.c (attribute::value_as_string): New method.
6317
6318 2020-04-24 Tom Tromey <tom@tromey.com>
6319
6320 * symtab.c (general_symbol_info::natural_name)
6321 (general_symbol_info::demangled_name): Check for language_rust.
6322
6323 2020-04-24 Tom Tromey <tom@tromey.com>
6324
6325 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6326 (dwarf2_physname): ... from here.
6327 (partial_die_info::read): Add Rust "{" hack.
6328
6329 2020-04-24 Tom Tromey <tom@tromey.com>
6330
6331 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6332 method.
6333 (symbol_set_demangled_name): Don't declare.
6334 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6335 symbol_set_demangled_name.
6336 (general_symbol_info::set_language)
6337 (general_symbol_info::compute_and_set_names): Update.
6338 * minsyms.c (minimal_symbol_reader::install): Update.
6339 * dwarf2/read.c (new_symbol): Update.
6340
6341 2020-04-24 Tom Tromey <tromey@adacore.com>
6342
6343 PR python/23662:
6344 * python/py-type.c (convert_field): Handle
6345 FIELD_LOC_KIND_DWARF_BLOCK.
6346 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6347 (typy_get_dynamic): Nw function.
6348 (type_object_getset): Add "dynamic".
6349 * NEWS: Add entry.
6350
6351 2020-04-24 Tom Tromey <tromey@adacore.com>
6352
6353 * ada-typeprint.c (print_choices, print_variant_part)
6354 (print_record_field_types_dynamic): New functions.
6355 (print_record_field_types): Use print_record_field_types_dynamic.
6356
6357 2020-04-24 Tom Tromey <tromey@adacore.com>
6358
6359 * dwarf2/read.c (handle_data_member_location): New overload.
6360 (dwarf2_add_field): Use it.
6361 (decode_locdesc): Add "computed" parameter. Update comment.
6362 * gdbtypes.c (is_dynamic_type_internal): Also look for
6363 FIELD_LOC_KIND_DWARF_BLOCK.
6364 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6365 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6366 virtual base classes.
6367 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6368 FIELD_LOC_KIND_DWARF_BLOCK.
6369
6370 2020-04-24 Tom Tromey <tromey@adacore.com>
6371
6372 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6373 * gdbtypes.c (is_dynamic_type_internal): Check
6374 TYPE_HAS_DYNAMIC_LENGTH.
6375 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6376 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6377 New macros.
6378 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6379 constant.
6380
6381 2020-04-24 Tom Tromey <tromey@adacore.com>
6382
6383 * dwarf2/read.c (struct variant_field): Rewrite.
6384 (struct variant_part_builder): New.
6385 (struct nextfield): Remove "variant" field. Add "offset".
6386 (struct field_info): Add "current_variant_part" and
6387 "variant_parts".
6388 (alloc_discriminant_info): Remove.
6389 (alloc_rust_variant): New function.
6390 (quirk_rust_enum): Update.
6391 (dwarf2_add_field): Set "offset" member. Don't handle
6392 DW_TAG_variant_part.
6393 (offset_map_type): New typedef.
6394 (convert_variant_range, create_one_variant)
6395 (create_one_variant_part, create_variant_parts)
6396 (add_variant_property): New functions.
6397 (dwarf2_attach_fields_to_type): Call add_variant_property.
6398 (read_structure_type): Don't handle DW_TAG_variant_part.
6399 (handle_variant_part, handle_variant): New functions.
6400 (handle_struct_member_die): Use them.
6401 (process_structure_scope): Don't handle variant parts.
6402 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6403 (struct discriminant_info): Remove.
6404 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6405 (struct main_type) <flag_discriminated_union>: Remove.
6406 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6407 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6408 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6409 Update.
6410 * valops.c (value_union_variant): Remove.
6411 * value.h (value_union_variant): Don't declare.
6412
6413 2020-04-24 Tom Tromey <tromey@adacore.com>
6414
6415 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6416 (ada_value_primitive_packed_val): Update.
6417 * ada-valprint.c (ada_value_print_1): Update.
6418 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6419 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6420 just an address. Use evaluate_for_locexpr_baton.
6421 (dwarf2_evaluate_property): Update.
6422 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6423 array_view.
6424 * findvar.c (default_read_var_value): Update.
6425 * gdbtypes.c (compute_variant_fields_inner)
6426 (resolve_dynamic_type_internal): Update.
6427 (resolve_dynamic_type): Change type of valaddr parameter.
6428 * gdbtypes.h (resolve_dynamic_type): Update.
6429 * valarith.c (value_subscripted_rvalue): Update.
6430 * value.c (value_from_contents_and_address): Update.
6431
6432 2020-04-24 Tom Tromey <tromey@adacore.com>
6433
6434 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6435 "push_initial_value" parameter.
6436 (dwarf2_evaluate_property): Likewise.
6437 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6438
6439 2020-04-24 Tom Tromey <tromey@adacore.com>
6440
6441 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6442 (variant::matches, compute_variant_fields_recurse)
6443 (compute_variant_fields_inner, compute_variant_fields): New
6444 functions.
6445 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6446 Use resolved_type after type is made.
6447 (operator==): Add new cases.
6448 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6449 (struct discriminant_range, struct variant, struct variant_part):
6450 New.
6451 (union dynamic_prop_data) <variant_parts, original_type>: New
6452 members.
6453 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6454 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6455 constants.
6456 * value.c (unpack_bits_as_long): Now public.
6457 * value.h (unpack_bits_as_long): Declare.
6458
6459 2020-04-24 Tom Tromey <tromey@adacore.com>
6460
6461 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6462 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6463
6464 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6465
6466 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6467
6468 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6469
6470 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6471 (remove_fork_catchpoint, post_startup_inferior)
6472 (post_attach): Move...
6473 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6474 (remove_fork_catchpoint, post_startup_inferior)
6475 (post_attach): ...here.
6476 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6477 (remove_fork_catchpoint, post_startup_inferior)
6478 (post_attach): Move...
6479 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6480 (remove_fork_catchpoint, post_startup_inferior)
6481 (post_attach): ...here.
6482
6483 2020-04-24 Tom Tromey <tromey@adacore.com>
6484
6485 * nat/windows-nat.h (struct windows_thread_info)
6486 <pc_adjusted>: New member.
6487 * windows-nat.c (windows_fetch_one_register): Check
6488 pc_adjusted.
6489 (windows_nat_target::get_windows_debug_event)
6490 (windows_nat_target::wait): Set pc_adjusted.
6491
6492 2020-04-24 Tom de Vries <tdevries@suse.de>
6493
6494 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6495 Run gdb-add-index inside temp dir.
6496
6497 2020-04-23 Tom Tromey <tromey@adacore.com>
6498
6499 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6500 in loop.
6501
6502 2020-04-23 Luis Machado <luis.machado@linaro.org>
6503
6504 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6505 get_frame_register instead of gdbarch_unwind_pc.
6506
6507 2020-04-23 Tom de Vries <tdevries@suse.de>
6508
6509 * symtab.c (lookup_global_symbol): Prefer def over decl.
6510
6511 2020-04-23 Tom de Vries <tdevries@suse.de>
6512
6513 PR symtab/25807
6514 * block.c (best_symbol, better_symbol): Promote to external.
6515 * block.h (best_symbol, better_symbol): Declare.
6516 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6517 decl.
6518
6519 2020-04-23 Tom Tromey <tromey@adacore.com>
6520
6521 PR ada/25837:
6522 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6523 "const char *", not a "const std::string &".
6524 <name_and_matcher::operator==>: Update.
6525 * unittests/lookup_name_info-selftests.c: Change type of
6526 "result".
6527
6528 2020-04-23 Tom Tromey <tom@tromey.com>
6529
6530 * inferior.h (iterate_over_inferiors): Don't declare.
6531 * inferior.c (iterate_over_inferiors): Remove.
6532 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6533 Remove.
6534 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6535 use iterate_over_inferiors.
6536 (darwin_resume_inferior_it)
6537 (struct resume_inferior_threads_param)
6538 (darwin_resume_inferior_threads_it): Remove.
6539 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6540
6541 2020-04-23 Tom de Vries <tdevries@suse.de>
6542
6543 * blockframe.c (find_pc_partial_function): Use
6544 find_pc_sect_compunit_symtab rather than
6545 objfile->sf->qf->find_pc_sect_compunit_symtab.
6546
6547 2020-04-22 Tom de Vries <tdevries@suse.de>
6548
6549 PR symtab/25764
6550 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6551 in psymtabs.
6552
6553 2020-04-22 Tom de Vries <tdevries@suse.de>
6554
6555 PR symtab/25801
6556 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6557 symtabs.
6558
6559 2020-04-22 Tom de Vries <tdevries@suse.de>
6560
6561 PR symtab/25700
6562 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6563 CU if already created.
6564
6565 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6566
6567 * infrun.c (displaced_step_fixup): Switch to the event_thread
6568 before calling displaced_step_restore, not after.
6569
6570 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6571
6572 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6573 its inferior is not recorded by us.
6574 (record_btrace_target_open): Replace call to
6575 all_non_exited_threads () with call to current_inferior
6576 ()->non_exited_threads ().
6577 (record_btrace_target::stop_recording): Likewise.
6578 (record_btrace_target::close): Likewise.
6579 (record_btrace_target::wait): Likewise.
6580 (record_btrace_target::record_stop_replaying): Likewise.
6581
6582 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6583
6584 * btrace.c (btrace_enable): Throw an error on double enables and
6585 when enabling recording fails.
6586 (btrace_disable): Throw an error if the thread is not recorded.
6587
6588 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6589
6590 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6591 request if we do not have a thread_info.
6592
6593 2020-04-21 Tom de Vries <tdevries@suse.de>
6594
6595 PR gdb/25471
6596 * thread.c
6597 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6598 exception in get_frame_id.
6599
6600 2020-04-20 Tom Tromey <tromey@adacore.com>
6601
6602 * python/python.c (struct gdbpy_event): Mark move constructor as
6603 noexcept.
6604 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6605 constructor as noexcept.
6606 * completer.h (struct completion_result): Mark move constructor as
6607 noexcept.
6608 * completer.c (completion_result::completion_result): Use
6609 initialization style. Don't call reset_match_list.
6610
6611 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6612
6613 * MAINTAINERS (Write After Approval): Add myself.
6614
6615 2020-04-18 Tom Tromey <tom@tromey.com>
6616
6617 * windows-tdep.c (init_w32_command_list)
6618 (w32_prefix_command_valid): Restore.
6619 (_initialize_windows_tdep): Call init_w32_command_list.
6620
6621 2020-04-18 Tom Tromey <tom@tromey.com>
6622
6623 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6624 * value.c (value_fn_field): Update.
6625 * valops.c (find_function_in_inferior)
6626 (value_allocate_space_in_inferior): Update.
6627 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6628 Update.
6629 * tui/tui-source.c (tui_source_window::set_contents): Update.
6630 * symtab.c (lookup_global_or_static_symbol)
6631 (find_function_start_sal_1, skip_prologue_sal)
6632 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6633 * symmisc.c (dump_msymbols, dump_symtab_1)
6634 (maintenance_print_one_line_table): Update.
6635 * symfile.c (init_entry_point_info, section_is_mapped)
6636 (list_overlays_command, simple_read_overlay_table)
6637 (simple_overlay_update_1): Update.
6638 * stap-probe.c (handle_stap_probe): Update.
6639 * stabsread.c (dbx_init_float_type, define_symbol)
6640 (read_one_struct_field, read_enum_type, read_range_type): Update.
6641 * source.c (info_line_command): Update.
6642 * python/python.c (gdbpy_source_objfile_script)
6643 (gdbpy_execute_objfile_script): Update.
6644 * python/py-type.c (save_objfile_types): Update.
6645 * python/py-objfile.c (py_free_objfile): Update.
6646 * python/py-inferior.c (python_new_objfile): Update.
6647 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6648 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6649 (maintenance_check_psymtabs): Update.
6650 * printcmd.c (info_address_command): Update.
6651 * objfiles.h (struct objfile) <arch>: New method, from
6652 get_objfile_arch.
6653 (get_objfile_arch): Don't declare.
6654 * objfiles.c (get_objfile_arch): Remove.
6655 (filter_overlapping_sections): Update.
6656 * minsyms.c (msymbol_is_function): Update.
6657 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6658 (output_nondebug_symbol): Update.
6659 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6660 (mdebug_expand_psymtab): Update.
6661 * machoread.c (macho_add_oso_symfile): Update.
6662 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6663 Update.
6664 * linux-fork.c (checkpoint_command): Update.
6665 * linespec.c (convert_linespec_to_sals): Update.
6666 * jit.c (finalize_symtab): Update.
6667 * infrun.c (insert_exception_resume_from_probe): Update.
6668 * ia64-tdep.c (ia64_find_unwind_table): Update.
6669 * hppa-tdep.c (internalize_unwinds): Update.
6670 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6671 Update.
6672 * gcore.c (call_target_sbrk): Update.
6673 * elfread.c (record_minimal_symbol, elf_symtab_read)
6674 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6675 (elf_gnu_ifunc_resolve_by_got): Update.
6676 * dwarf2/read.c (create_addrmap_from_index)
6677 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6678 (read_debug_names_from_section)
6679 (process_psymtab_comp_unit_reader, add_partial_symbol)
6680 (add_partial_subprogram, process_full_comp_unit)
6681 (read_file_scope, read_func_scope, read_lexical_block_scope)
6682 (read_call_site_scope, dwarf2_ranges_read)
6683 (dwarf2_record_block_ranges, dwarf2_add_field)
6684 (mark_common_block_symbol_computed, read_tag_pointer_type)
6685 (read_tag_string_type, dwarf2_init_float_type)
6686 (dwarf2_init_complex_target_type, read_base_type)
6687 (partial_die_info::read, partial_die_info::read)
6688 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6689 (dwarf2_fetch_die_loc_sect_off): Update.
6690 * dwarf2/loc.c (dwarf2_find_location_expression)
6691 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6692 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6693 (dwarf2_loc_desc_get_symbol_read_needs)
6694 (locexpr_describe_location_piece, locexpr_describe_location_1)
6695 (loclist_describe_location): Update.
6696 * dwarf2/index-write.c (write_debug_names): Update.
6697 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6698 * dtrace-probe.c (dtrace_process_dof): Update.
6699 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6700 (process_one_symbol): Update.
6701 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6702 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6703 (coff_read_enum_type): Update.
6704 * cli/cli-cmds.c (edit_command, list_command): Update.
6705 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6706 * breakpoint.c (create_overlay_event_breakpoint)
6707 (create_longjmp_master_breakpoint)
6708 (create_std_terminate_master_breakpoint)
6709 (create_exception_master_breakpoint, get_sal_arch): Update.
6710 * block.c (block_gdbarch): Update.
6711 * annotate.c (annotate_source_line): Update.
6712
6713 2020-04-17 Tom Tromey <tromey@adacore.com>
6714
6715 * auto-load.c (show_auto_load_cmd): Remove.
6716 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6717 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6718 (maintenance_print_arc_command): Remove.
6719 * tui/tui-win.c (tui_command): Remove.
6720 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6721 * tui/tui-layout.c (tui_layout_command): Remove.
6722 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6723 * python/python.c (user_set_python, user_show_python): Remove.
6724 (_initialize_python): Use add_basic_prefix_cmd,
6725 add_show_prefix_cmd.
6726 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6727 (install_gdb_commands): Use add_basic_prefix_cmd,
6728 add_show_prefix_cmd.
6729 (info_guile_command): Remove.
6730 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6731 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6732 add_show_prefix_cmd.
6733 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6734 Remove do_set and do_show parameters.
6735 * cli/cli-style.c (set_style, show_style): Remove.
6736 (_initialize_cli_style): Use add_basic_prefix_cmd,
6737 add_show_prefix_cmd.
6738 (cli_style_option::add_setshow_commands): Remove do_set and
6739 do_show parameters.
6740 (cli_style_option::add_setshow_commands): Use
6741 add_basic_prefix_cmd, add_show_prefix_cmd.
6742 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6743 (set_style_name): Remove.
6744 * cli/cli-dump.c (dump_command, append_command): Remove.
6745 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6746 (tekhex_dump_command, binary_dump_command)
6747 (binary_append_command): Remove.
6748 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6749 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6750 (init_w32_command_list): Remove; move into ...
6751 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6752 * valprint.c (set_print, show_print, set_print_raw)
6753 (show_print_raw): Remove.
6754 (_initialize_valprint): Use add_basic_prefix_cmd,
6755 add_show_prefix_cmd.
6756 * typeprint.c (set_print_type, show_print_type): Remove.
6757 (_initialize_typeprint): Use add_basic_prefix_cmd,
6758 add_show_prefix_cmd.
6759 * record.c (set_record_command, show_record_command): Remove.
6760 (_initialize_record): Use add_basic_prefix_cmd,
6761 add_show_prefix_cmd.
6762 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6763 add_show_prefix_cmd.
6764 (info_command, show_command, set_debug, show_debug): Remove.
6765 * top.h (set_history, show_history): Don't declare.
6766 * top.c (set_history, show_history): Remove.
6767 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6768 (unset_tdesc_cmd): Remove.
6769 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6770 add_show_prefix_cmd.
6771 * symtab.c (info_module_command): Remove.
6772 (_initialize_symtab): Use add_basic_prefix_cmd.
6773 * symfile.c (overlay_command): Remove.
6774 (_initialize_symfile): Use add_basic_prefix_cmd.
6775 * sparc64-tdep.c (info_adi_command): Remove.
6776 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6777 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6778 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6779 add_show_prefix_cmd.
6780 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6781 (_initialize_serial): Use add_basic_prefix_cmd,
6782 add_show_prefix_cmd.
6783 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6784 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6785 add_show_prefix_cmd.
6786 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6787 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6788 add_show_prefix_cmd.
6789 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6790 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6791 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6792 add_show_prefix_cmd.
6793 * remote.c (remote_command, set_remote_cmd): Remove.
6794 (_initialize_remote): Use add_basic_prefix_cmd.
6795 * record-full.c (set_record_full_command)
6796 (show_record_full_command): Remove.
6797 (_initialize_record_full): Use add_basic_prefix_cmd,
6798 add_show_prefix_cmd.
6799 * record-btrace.c (cmd_set_record_btrace)
6800 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6801 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6802 (cmd_show_record_btrace_pt): Remove.
6803 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6804 add_show_prefix_cmd.
6805 * ravenscar-thread.c (set_ravenscar_command)
6806 (show_ravenscar_command): Remove.
6807 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6808 add_show_prefix_cmd.
6809 * mips-tdep.c (show_mips_command, set_mips_command)
6810 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6811 add_show_prefix_cmd.
6812 * maint.c (maintenance_command, maintenance_info_command)
6813 (maintenance_check_command, maintenance_print_command)
6814 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6815 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6816 add_show_prefix_cmd.
6817 (show_per_command_cmd): Remove.
6818 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6819 Remove.
6820 (maintenance_show_test_settings_cmd): Remove.
6821 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6822 add_show_prefix_cmd.
6823 * maint-test-options.c (maintenance_test_options_command):
6824 Remove.
6825 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6826 * macrocmd.c (macro_command): Remove
6827 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6828 * language.c (set_check, show_check): Remove.
6829 (_initialize_language): Use add_basic_prefix_cmd,
6830 add_show_prefix_cmd.
6831 * infcmd.c (unset_command): Remove.
6832 (_initialize_infcmd): Use add_basic_prefix_cmd.
6833 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6834 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6835 add_show_prefix_cmd.
6836 * go32-nat.c (go32_info_dos_command): Remove.
6837 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6838 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6839 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6840 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6841 (_initialize_frame): Use add_basic_prefix_cmd,
6842 add_show_prefix_cmd.
6843 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6844 (_initialize_dcache): Use add_basic_prefix_cmd,
6845 add_show_prefix_cmd.
6846 * cp-support.c (maint_cplus_command): Remove.
6847 (_initialize_cp_support): Use add_basic_prefix_cmd.
6848 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6849 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6850 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6851 add_basic_prefix_cmd, add_show_prefix_cmd.
6852 * breakpoint.c (save_command): Remove.
6853 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6854 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6855 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6856 add_show_prefix_cmd.
6857 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6858 (set_ada_command, show_ada_command): Remove.
6859 (_initialize_ada_language): Use add_basic_prefix_cmd,
6860 add_show_prefix_cmd.
6861 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6862
6863 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6864
6865 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6866 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6867
6868 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6869
6870 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6871 warning messages.
6872
6873 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6874
6875 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6876 import table is not at beginning of .idata section.
6877
6878 2020-04-16 Pedro Alves <palves@redhat.com>
6879
6880 * inferior.c (delete_inferior): Use delete operator directly
6881 instead of delete_program_space.
6882 * progspace.c (add_program_space): New, factored out from
6883 program_space::program_space.
6884 (remove_program_space): New, factored out from
6885 delete_program_space.
6886 (program_space::program_space): Remove intro comment. Rewrite.
6887 (program_space::~program_space): Remove intro comment. Call
6888 remove_program_space.
6889 (delete_program_space): Delete.
6890 * progspace.h (program_space::program_space): Make explicit. Move
6891 intro comment here, adjusted.
6892 (program_space::~program_space): Move intro comment here,
6893 adjusted.
6894 (delete_program_space): Remove.
6895
6896 2020-04-16 Tom Tromey <tromey@adacore.com>
6897
6898 * windows-nat.c (windows_nat::handle_access_violation): New
6899 function.
6900 * nat/windows-nat.h (handle_access_violation): Declare.
6901 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6902 windows-nat.c. Call handle_access_violation.
6903
6904 2020-04-16 Tom de Vries <tdevries@suse.de>
6905
6906 PR symtab/25791
6907 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6908 CUs without psymtab.
6909
6910 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6911
6912 * python/python.c (do_start_initialization): Don't call
6913 PyEval_InitThreads for Python 3.9 and beyond.
6914
6915 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6916
6917 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6918 thread functions.
6919 (obsd_nat_target::wait): Likewise.
6920
6921 2020-04-15 Tom Tromey <tromey@adacore.com>
6922
6923 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6924 (DEBUG_EXCEPT): Use debug_printf.
6925
6926 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6927
6928 * completer.c (class completion_tracker::completion_hash_entry)
6929 <hash_name>: New member function.
6930 (completion_tracker::discard_completions): New callback to hash a
6931 completion_hash_entry, pass this to htab_create_alloc.
6932
6933 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6934
6935 * windows-nat.c (windows_make_so): Warn rather than stopping with
6936 an error if realpath() fails.
6937
6938 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6939
6940 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6941 (nbsd_nat_target::info_proc): Add do_status.
6942
6943 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6944 Tom de Vries <tdevries@suse.de>
6945
6946 PR symtab/25718
6947 * psympriv.h (struct partial_symtab::read_symtab)
6948 (struct partial_symtab::expand_psymtab)
6949 (struct partial_symtab::read_dependencies): Update comments.
6950 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6951 read_symtab for includer.
6952 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6953 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6954 (struct dwarf2_include_psymtab::m_readin): Remove.
6955 (struct dwarf2_include_psymtab::includer): New member function.
6956 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6957
6958 2020-04-14 Tom de Vries <tdevries@suse.de>
6959
6960 PR symtab/25720
6961 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6962 with NULL symbol_matcher and lookup_name.
6963 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6964 and lookup_name.
6965 * dwarf2/read.c (dw2_expand_symtabs_matching)
6966 (dw2_debug_names_expand_symtabs_matching): Same.
6967 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6968 Make lookup_name a pointer. Update comment.
6969 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6970 lookup_name being a pointer.
6971 * symfile.c (expand_symtabs_matching): Same.
6972 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6973 * linespec.c (iterate_over_all_matching_symtabs): Same.
6974
6975 2020-04-13 Tom Tromey <tom@tromey.com>
6976
6977 * run-on-main-thread.c: Update include.
6978 * unittests/main-thread-selftests.c: Update include.
6979 * tui/tui-win.c: Update include.
6980 * tui/tui-io.c: Update include.
6981 * tui/tui-interp.c: Update include.
6982 * tui/tui-hooks.c: Update include.
6983 * top.h: Update include.
6984 * top.c: Update include.
6985 * ser-base.c: Update include.
6986 * remote.c: Update include.
6987 * remote-notif.c: Update include.
6988 * remote-fileio.c: Update include.
6989 * record-full.c: Update include.
6990 * record-btrace.c: Update include.
6991 * python/python.c: Update include.
6992 * posix-hdep.c: Update include.
6993 * mingw-hdep.c: Update include.
6994 * mi/mi-main.c: Update include.
6995 * mi/mi-interp.c: Update include.
6996 * main.c: Update include.
6997 * linux-nat.c: Update include.
6998 * interps.c: Update include.
6999 * infrun.c: Update include.
7000 * inf-loop.c: Update include.
7001 * event-top.c: Update include.
7002 * event-loop.c: Move to ../gdbsupport/.
7003 * event-loop.h: Move to ../gdbsupport/.
7004 * async-event.h: Update include.
7005 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
7006
7007 2020-04-13 Tom Tromey <tom@tromey.com>
7008
7009 * tui/tui-win.c: Include async-event.h.
7010 * remote.c: Include async-event.h.
7011 * remote-notif.c: Include async-event.h.
7012 * record-full.c: Include async-event.h.
7013 * record-btrace.c: Include async-event.h.
7014 * infrun.c: Include async-event.h.
7015 * event-top.c: Include async-event.h.
7016 * event-loop.h: Move some declarations to async-event.h.
7017 * event-loop.c: Don't include ser-event.h or top.h. Move some
7018 code to async-event.c.
7019 * async-event.h: New file.
7020 * async-event.c: New file.
7021 * Makefile.in (COMMON_SFILES): Add async-event.c.
7022 (HFILES_NO_SRCDIR): Add async-event.h.
7023
7024 2020-04-13 Tom Tromey <tom@tromey.com>
7025
7026 * utils.c (flush_streams): New function.
7027 * event-loop.c (gdb_wait_for_event): Call flush_streams.
7028
7029 2020-04-13 Tom Tromey <tom@tromey.com>
7030
7031 * event-loop.c (handle_file_event): Use warning, not
7032 printf_unfiltered.
7033
7034 2020-04-13 Tom Tromey <tom@tromey.com>
7035
7036 * event-loop.c: Include <chrono>.
7037
7038 2020-04-13 Tom Tromey <tom@tromey.com>
7039
7040 * gdb_select.h: Move to ../gdbsupport/.
7041 * event-loop.c: Update include path.
7042 * top.c: Update include path.
7043 * ser-base.c: Update include path.
7044 * ui-file.c: Update include path.
7045 * ser-tcp.c: Update include path.
7046 * guile/scm-ports.c: Update include path.
7047 * posix-hdep.c: Update include path.
7048 * ser-unix.c: Update include path.
7049 * gdb_usleep.c: Update include path.
7050 * mingw-hdep.c: Update include path.
7051 * inflow.c: Update include path.
7052 * infrun.c: Update include path.
7053 * event-top.c: Update include path.
7054
7055 2020-04-13 Tom Tromey <tom@tromey.com>
7056
7057 * configure: Rebuild.
7058 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7059
7060 2020-04-13 Tom Tromey <tom@tromey.com>
7061
7062 * event-loop.h (start_event_loop): Don't declare.
7063 * event-loop.c (start_event_loop): Move...
7064 * main.c (start_event_loop): ...here. Now static.
7065
7066 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7067
7068 * MAINTAINERS: Update my email address.
7069
7070 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7071
7072 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7073 IP_ALL.
7074
7075 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7076
7077 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
7078 (nbsd_nat_target::info_proc): Add do_cmdline.
7079
7080 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7081
7082 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
7083 (nbsd_nat_target::info_proc): Add do_cwd.
7084
7085 2020-04-12 Kamil Rytarowski <n54@gmx.com>
7086
7087 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7088
7089 2020-04-11 Kamil Rytarowski <n54@gmx.com>
7090
7091 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7092 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7093 (nbsd_nat_target::info_proc): New functions.
7094 * nbsd-nat.c (kinfo_get_vmmap): New function.
7095 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7096 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7097 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7098 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7099 functions.
7100 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7101 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7102 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7103 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7104 (KINFO_VME_FLAG_GROWS_DOWN): New.
7105
7106 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7107
7108 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7109 bit shift.
7110
7111 2020-04-10 Tom Tromey <tromey@adacore.com>
7112
7113 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7114
7115 2020-04-10 Tom Tromey <tromey@adacore.com>
7116
7117 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7118 separate debug files.
7119
7120 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
7121
7122 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7123 Move to...
7124 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7125 ... here.
7126 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7127 Check for STATUS_WX86_BREAKPOINT.
7128 (windows_nat_target::wait): Same.
7129
7130 2020-04-10 Tom de Vries <tdevries@suse.de>
7131
7132 PR cli/25808
7133 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7134
7135 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7136
7137 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7138 (Write After Approval): Remove Tom de Vries.
7139
7140 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7141
7142 revert partially:
7143 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7144
7145 * buildsym.c (record_line): Fix undefined behavior and preserve
7146 lines at eof.
7147
7148 2020-04-09 Kamil Rytarowski <n54@gmx.com>
7149
7150 * auxv.h (svr4_auxv_parse): New.
7151 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7152 and generic_auxv_parse.
7153 (svr4_auxv_parse): Add.
7154 * obsd-tdep.c: Include "auxv.h".
7155 (obsd_auxv_parse): Remove.
7156 (obsd_init_abi): Remove comment.
7157 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7158 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7159 * nbsd-tdep.c: Include "auxv.h".
7160 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7161
7162 2020-04-08 Tom Tromey <tromey@adacore.com>
7163
7164 * nat/windows-nat.h (last_wait_event): Don't declare.
7165 (wait_for_debug_event): Update comment.
7166 * nat/windows-nat.c (last_wait_event): Now static.
7167
7168 2020-04-08 Tom Tromey <tromey@adacore.com>
7169
7170 * windows-nat.c (wait_for_debug_event): Move to
7171 nat/windows-nat.c.
7172 * nat/windows-nat.h (wait_for_debug_event): Declare.
7173 * nat/windows-nat.c (wait_for_debug_event): Move from
7174 windows-nat.c. No longer static.
7175
7176 2020-04-08 Tom Tromey <tromey@adacore.com>
7177
7178 * windows-nat.c (get_windows_debug_event): Use
7179 fetch_pending_stop.
7180 * nat/windows-nat.h (fetch_pending_stop): Declare.
7181 * nat/windows-nat.c (fetch_pending_stop): New function.
7182
7183 2020-04-08 Tom Tromey <tromey@adacore.com>
7184
7185 * windows-nat.c (windows_continue): Use matching_pending_stop and
7186 continue_last_debug_event.
7187 * nat/windows-nat.h (matching_pending_stop)
7188 (continue_last_debug_event): Declare.
7189 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7190 (matching_pending_stop, continue_last_debug_event): New
7191 functions.
7192
7193 2020-04-08 Tom Tromey <tromey@adacore.com>
7194
7195 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7196 (handle_exception_result): Move to nat/windows-nat.h.
7197 (DEBUG_EXCEPTION_SIMPLE): Remove.
7198 (windows_nat::handle_ms_vc_exception): New function.
7199 (handle_exception): Move to nat/windows-nat.c.
7200 (get_windows_debug_event): Update.
7201 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7202 nat/windows-nat.c.
7203 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7204 (handle_exception_result): Move from windows-nat.c.
7205 (handle_exception): Declare.
7206 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7207 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7208 windows-nat.c.
7209
7210 2020-04-08 Tom Tromey <tromey@adacore.com>
7211
7212 * windows-nat.c (exception_count, event_count): Remove.
7213 (handle_exception, get_windows_debug_event)
7214 (do_initial_windows_stuff): Update.
7215
7216 2020-04-08 Tom Tromey <tromey@adacore.com>
7217
7218 * windows-nat.c (windows_nat::handle_load_dll)
7219 (windows_nat::handle_unload_dll): Rename. No longer static.
7220 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7221 Declare.
7222
7223 2020-04-08 Tom Tromey <tromey@adacore.com>
7224
7225 * complaints.h (stop_whining): Declare at top-level.
7226 (complaint): Don't declare stop_whining.
7227
7228 2020-04-08 Tom Tromey <tromey@adacore.com>
7229
7230 * windows-nat.c (windows_nat::handle_output_debug_string):
7231 Rename. No longer static.
7232 * nat/windows-nat.h (handle_output_debug_string): Declare.
7233
7234 2020-04-08 Tom Tromey <tromey@adacore.com>
7235
7236 * windows-nat.c (current_process_handle, current_process_id)
7237 (main_thread_id, last_sig, current_event, last_wait_event)
7238 (current_windows_thread, desired_stop_thread_id, pending_stops)
7239 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7240 (display_selectors, fake_create_process)
7241 (get_windows_debug_event): Update.
7242 * nat/windows-nat.h (current_process_handle, current_process_id)
7243 (main_thread_id, last_sig, current_event, last_wait_event)
7244 (current_windows_thread, desired_stop_thread_id, pending_stops)
7245 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7246 * nat/windows-nat.c (current_process_handle, current_process_id)
7247 (main_thread_id, last_sig, current_event, last_wait_event)
7248 (current_windows_thread, desired_stop_thread_id, pending_stops)
7249 (siginfo_er): New globals. Move from windows-nat.c.
7250
7251 2020-04-08 Tom Tromey <tromey@adacore.com>
7252
7253 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7254 (handle_load_dll): Update.
7255 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7256
7257 2020-04-08 Tom Tromey <tromey@adacore.com>
7258
7259 * windows-nat.c (enum thread_disposition_type): Move to
7260 nat/windows-nat.h.
7261 (windows_nat::thread_rec): Rename from thread_rec. No longer
7262 static.
7263 (windows_add_thread, windows_nat_target::fetch_registers)
7264 (windows_nat_target::store_registers, handle_exception)
7265 (windows_nat_target::resume, get_windows_debug_event)
7266 (windows_nat_target::get_tib_address)
7267 (windows_nat_target::thread_name)
7268 (windows_nat_target::thread_alive): Update.
7269 * nat/windows-nat.h (enum thread_disposition_type): Move from
7270 windows-nat.c.
7271 (thread_rec): Declare.
7272
7273 2020-04-08 Tom Tromey <tromey@adacore.com>
7274
7275 * windows-nat.c: Add "using namespace".
7276 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7277 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7278
7279 2020-04-08 Tom Tromey <tromey@adacore.com>
7280
7281 * nat/windows-nat.h (struct windows_thread_info): Declare
7282 destructor.
7283 * nat/windows-nat.c (~windows_thread_info): New.
7284
7285 2020-04-08 Tom Tromey <tromey@adacore.com>
7286
7287 PR gdb/22992
7288 * windows-nat.c (current_event): Update comment.
7289 (last_wait_event, desired_stop_thread_id): New globals.
7290 (struct pending_stop): New.
7291 (pending_stops): New global.
7292 (windows_nat_target) <stopped_by_sw_breakpoint>
7293 <supports_stopped_by_sw_breakpoint>: New methods.
7294 (windows_fetch_one_register): Add assertions. Adjust PC.
7295 (windows_continue): Handle pending stops. Suspend other threads
7296 when stepping. Use last_wait_event
7297 (wait_for_debug_event): New function.
7298 (get_windows_debug_event): Use wait_for_debug_event. Handle
7299 pending stops. Queue spurious stops.
7300 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7301 (windows_nat_target::kill): Use wait_for_debug_event.
7302 * nat/windows-nat.h (struct windows_thread_info)
7303 <stopped_at_software_breakpoint>: New field.
7304 * nat/windows-nat.c (windows_thread_info::resume): Clear
7305 stopped_at_software_breakpoint.
7306
7307 2020-04-08 Tom Tromey <tromey@adacore.com>
7308
7309 * windows-nat.c (enum thread_disposition_type): New.
7310 (thread_rec): Replace "get_context" parameter with "disposition";
7311 change type.
7312 (windows_add_thread, windows_nat_target::fetch_registers)
7313 (windows_nat_target::store_registers, handle_exception)
7314 (windows_nat_target::resume, get_windows_debug_event)
7315 (windows_nat_target::get_tib_address)
7316 (windows_nat_target::thread_name)
7317 (windows_nat_target::thread_alive): Update.
7318
7319 2020-04-08 Tom Tromey <tromey@adacore.com>
7320
7321 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7322 (windows_continue): Use windows_continue::resume.
7323 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7324 resume>: Declare new methods.
7325 * nat/windows-nat.c: New file.
7326 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7327
7328 2020-04-08 Tom Tromey <tromey@adacore.com>
7329
7330 * windows-nat.c (windows_add_thread, windows_delete_thread)
7331 (windows_nat_target::fetch_registers)
7332 (windows_nat_target::store_registers, fake_create_process)
7333 (windows_nat_target::resume, windows_nat_target::resume)
7334 (get_windows_debug_event, windows_nat_target::wait)
7335 (windows_nat_target::pid_to_str)
7336 (windows_nat_target::get_tib_address)
7337 (windows_nat_target::get_ada_task_ptid)
7338 (windows_nat_target::thread_name)
7339 (windows_nat_target::thread_alive): Use lwp, not tid.
7340
7341 2020-04-08 Tom Tromey <tromey@adacore.com>
7342
7343 * windows-nat.c (handle_exception)
7344 (windows_nat_target::thread_name): Update.
7345 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7346 <name>: Now unique_xmalloc_ptr.
7347
7348 2020-04-08 Tom Tromey <tromey@adacore.com>
7349
7350 * windows-nat.c (thread_rec)
7351 (windows_nat_target::fetch_registers): Update.
7352 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7353 Update comment.
7354 <debug_registers_changed, reload_context>: Now bool.
7355
7356 2020-04-08 Tom Tromey <tromey@adacore.com>
7357
7358 * windows-nat.c (windows_add_thread): Use new.
7359 (windows_init_thread_list, windows_delete_thread): Use delete.
7360 (get_windows_debug_event): Update.
7361 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7362 destructor, and initializers.
7363
7364 2020-04-08 Tom Tromey <tromey@adacore.com>
7365
7366 * windows-nat.c (struct windows_thread_info): Remove.
7367 * nat/windows-nat.h: New file.
7368
7369 2020-04-08 Tom Tromey <tromey@adacore.com>
7370
7371 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7372 (thread_rec, windows_add_thread, windows_delete_thread)
7373 (windows_continue): Update.
7374
7375 2020-04-08 Tom Tromey <tromey@adacore.com>
7376
7377 * windows-nat.c (struct windows_thread_info): Remove typedef.
7378 (thread_head): Remove.
7379 (thread_list): New global.
7380 (thread_rec, windows_add_thread, windows_init_thread_list)
7381 (windows_delete_thread, windows_continue): Update.
7382
7383 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7384
7385 * windows-tdep.h (windows_init_abi): Add comment.
7386 (cygwin_init_abi): New declaration.
7387 * windows-tdep.c: Split signal enumeration in two, one for
7388 Windows and one for Cygwin.
7389 (windows_gdb_signal_to_target): Only deal with signal of the
7390 Windows OS ABI.
7391 (cygwin_gdb_signal_to_target): New function.
7392 (windows_init_abi): Rename to windows_init_abi_common, don't set
7393 gdb_signal_to_target gdbarch method. Add new new function with
7394 this name.
7395 (cygwin_init_abi): New function.
7396 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7397 comment. Don't call windows_init_abi.
7398 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7399 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7400 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7401 i386_windows_init_abi_common, don't call windows_init_abi. Add
7402 a new function of this name.
7403 (i386_cygwin_init_abi): New function.
7404 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7405 OS ABI Cygwin.
7406
7407 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7408
7409 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7410 parameter.c.
7411 (dwarf2_read_gdb_index): Update.
7412
7413 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7414
7415 * nbsd-tdep.c: Include "objfiles.h".
7416 (nbsd_skip_solib_resolver): New.
7417 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7418
7419 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7420
7421 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7422 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7423 with DW_LLE_base_addressx are being emitted in DWARFv5.
7424 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7425 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7426 unsigned integer.
7427
7428 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7429
7430 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7431 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7432 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7433 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7434 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7435 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7436 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7437
7438
7439 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7440
7441 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7442 (read_loclist_index): New function definition.
7443 (lookup_loclist_base): New function definition.
7444 (read_loclist_header): New function definition.
7445 (dwarf2_cu): Add loclist_base and loclist_header field.
7446 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7447 (read_full_die_1): Read the value of DW_AT_loclists_base.
7448 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7449 (read_attribute_value): Handle DW_FORM_loclistx.
7450 (skip_one_die): Handle DW_FORM_loclistx.
7451 (loclist_header): New structure declaration.
7452 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7453
7454 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7455
7456 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7457 constructor. Remove `addr` parameter from other constructor and
7458 add `per_cu` parameter.
7459 * dwarf2/read.c (create_partial_symtab): Update.
7460
7461 2020-04-07 Tom de Vries <tdevries@suse.de>
7462
7463 PR symtab/25796
7464 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7465 (partial_die_info::fixup): Inherit has_const_value.
7466
7467 2020-04-07 Tom de Vries <tdevries@suse.de>
7468
7469 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7470 symbols without address.
7471
7472 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7473
7474 * nbsd-nat.h (struct thread_info): Add forward declaration.
7475 (nbsd_nat_target::thread_alive): Add.
7476 (nbsd_nat_target::thread_name): Likewise.
7477 (nbsd_nat_target::update_thread_list): Likewise.
7478 (update_thread_list::post_attach): Likewise.
7479 (post_attach::pid_to_str): Likewise.
7480 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7481 (nbsd_thread_lister): Add.
7482 (nbsd_nat_target::thread_alive): Likewise.
7483 (nbsd_nat_target::thread_name): Likewise.
7484 (nbsd_add_threads): Likewise.
7485 (update_thread_list::post_attach): Likewise.
7486 (nbsd_nat_target::update_thread_list): Likewise.
7487 (post_attach::pid_to_str): Likewise.
7488
7489 2020-04-06 Tom Tromey <tromey@adacore.com>
7490
7491 * ada-valprint.c (print_variant_part): Extract the variant field.
7492 (print_field_values): Use the field as the outer value when
7493 recursing.
7494
7495 2020-04-06 Tom Tromey <tromey@adacore.com>
7496
7497 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7498 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7499 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7500 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7501 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7502
7503 2020-04-06 Tom Tromey <tromey@adacore.com>
7504
7505 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7506 TYPE_CODE_ERROR.
7507
7508 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7509
7510 * nbsd-tdep.c: Include "gdbarch.h".
7511 Define enum with NetBSD signal numbers.
7512 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7513 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7514 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7515 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7516 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7517 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7518 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7519 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7520 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7521 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7522 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7523 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7524
7525 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7526
7527 PR gdb/25325
7528 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7529
7530 2020-04-03 Tom Tromey <tromey@adacore.com>
7531
7532 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7533 Read constant block.
7534
7535 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7536
7537 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7538 (gdb_bfd_get_full_section_contents): New declaration.
7539 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7540 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7541 gdb_bfd_get_full_section_contents.
7542
7543 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7544
7545 * exec.c (build_section_table): Replace internal_error with
7546 gdb_assert.
7547 (section_table_xfer_memory_partial): Likewise.
7548 * mdebugread.c (parse_partial_symbols): Likewise.
7549 * psymtab.c (lookup_partial_symbol): Likewise.
7550 * utils.c (wrap_here): Likewise.
7551
7552 2020-04-02 Tom Tromey <tromey@adacore.com>
7553
7554 * f-lang.c (build_fortran_types): Use arch_type to initialize
7555 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7556
7557 2020-04-02 Tom Tromey <tromey@adacore.com>
7558
7559 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7560 of attributes.
7561
7562 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7563 Bernd Edlinger <bernd.edlinger@hotmail.de>
7564 Tom Tromey <tromey@adacore.com>
7565
7566 * buildsym.c (buildsym_compunit::record_line): Remove
7567 deduplication code.
7568
7569 2020-04-02 Tom de Vries <tdevries@suse.de>
7570
7571 PR ada/24671
7572 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7573
7574 2020-04-02 Tom de Vries <tdevries@suse.de>
7575
7576 * dwarf2/read.c (dwarf2_gdb_index_functions,
7577 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7578 NULL.
7579 * psymtab.c (psym_lookup_global_symbol_language): New function.
7580 (psym_functions): Init psym_lookup_global_symbol_language with
7581 psym_lookup_global_symbol_language.
7582 * symfile-debug.c (debug_sym_quick_functions): Init
7583 lookup_global_symbol_language with NULL.
7584 * symfile.c (set_initial_language): Remove fixme comment.
7585 * symfile.h (struct quick_symbol_functions): Add
7586 lookup_global_symbol_language.
7587 * symtab.c (find_quick_global_symbol_language): New function.
7588 (find_main_name): Use find_quick_global_symbol_language.
7589
7590 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7591
7592 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7593
7594 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7595
7596 * buildsym.c (record_line): Fix undefined behavior and preserve
7597 lines at eof.
7598
7599 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7600
7601 * buildsym.c (record_line): Fix the resizing condition.
7602
7603 2020-04-01 Tom Tromey <tom@tromey.com>
7604
7605 * value.h (value_literal_complex): Add comment.
7606 * valops.c (value_literal_complex): Refer to value.h.
7607
7608 2020-04-01 Tom Tromey <tom@tromey.com>
7609
7610 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7611 (scalar_type): New rule, from typebase.
7612 (typebase): Use scalar_type. Recognize complex types.
7613 (field_name): Handle FLOAT_KEYWORD.
7614 (ident_tokens): Add _Complex and __complex__.
7615
7616 2020-04-01 Tom Tromey <tom@tromey.com>
7617
7618 PR exp/25299:
7619 * valarith.c (promotion_type, complex_binop): New functions.
7620 (scalar_binop): Handle complex numbers. Use promotion_type.
7621 (value_pos, value_neg, value_complement): Handle complex numbers.
7622
7623 2020-04-01 Tom Tromey <tom@tromey.com>
7624
7625 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7626 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7627 (parse_number): Handle complex numbers.
7628
7629 2020-04-01 Tom Tromey <tom@tromey.com>
7630
7631 * c-valprint.c (c_decorations): Change complex suffix to "i".
7632
7633 2020-04-01 Tom Tromey <tom@tromey.com>
7634
7635 * valprint.c (generic_value_print_complex): Use accessors.
7636 * value.h (value_real_part, value_imaginary_part): Declare.
7637 * valops.c (value_real_part, value_imaginary_part): New
7638 functions.
7639 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7640
7641 2020-04-01 Tom Tromey <tom@tromey.com>
7642
7643 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7644 (read_range_type): Update.
7645 * mdebugread.c (basic_type): Update.
7646 * go-lang.c (build_go_types): Use init_complex_type.
7647 * gdbtypes.h (struct main_type) <complex_type>: New member.
7648 (init_complex_type): Update.
7649 (arch_complex_type): Don't declare.
7650 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7651 Make name if none given. Use alloc_type_copy. Look for cached
7652 complex type.
7653 (arch_complex_type): Remove.
7654 (gdbtypes_post_init): Use init_complex_type.
7655 * f-lang.c (build_fortran_types): Use init_complex_type.
7656 * dwarf2/read.c (read_base_type): Update.
7657 * d-lang.c (build_d_types): Use init_complex_type.
7658 * ctfread.c (read_base_type): Update.
7659
7660 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7661
7662 * infrun.c (stop_all_threads): Update assertion, plus when
7663 stopping threads, take into account that we might be trying
7664 to stop an all-stop target.
7665 (stop_waiting): Call 'stop_all_threads' if there exists a
7666 non-stop target.
7667
7668 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7669
7670 * target.h (exists_non_stop_target): New function declaration.
7671 * target.c (exists_non_stop_target): New function.
7672
7673 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7674
7675 PR gdb/24789
7676 * eval.c (is_integral_or_integral_reference): New function.
7677 (evaluate_subexp_standard): Allow integer references in
7678 pointer arithmetic.
7679
7680 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7681
7682 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7683 check for no ptid in the stop reply when the target is non-stop.
7684
7685 2020-04-01 Tom Tromey <tromey@adacore.com>
7686
7687 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7688 "name" parameter to rvalue reference. Initialize m_name_holder.
7689 <lookup_name_info>: New overloads.
7690 <name>: Return gdb::string_view.
7691 <c_str>: New method.
7692 <make_ignore_params>: Update.
7693 <search_name_hash>: Update.
7694 <language_lookup_name>: Return const char *.
7695 <m_name>: Change type.
7696 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7697 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7698 (lookup_name_info::match_any): Update.
7699 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7700 Update.
7701 * minsyms.c (linkage_name_str): Update.
7702 * language.c (default_symbol_name_matcher): Update.
7703 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7704 Update.
7705 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7706 (ada_lookup_name_info::ada_lookup_name_info): Update.
7707 (literal_symbol_name_matcher): Update.
7708
7709 2020-04-01 Tom Tromey <tromey@adacore.com>
7710
7711 * psymtab.c (psymtab_search_name): Remove function.
7712 (psym_lookup_symbol): Create search name and lookup name here.
7713 (lookup_partial_symbol): Remove "name" parameter; add
7714 lookup_name.
7715 (psym_expand_symtabs_for_function): Update.
7716
7717 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7718
7719 PR tui/25597:
7720 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7721
7722 2020-03-31 Tom Tromey <tromey@adacore.com>
7723
7724 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7725 memcpy.
7726
7727 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7728
7729 * features/riscv/32bit-csr.xml: Regenerated.
7730 * features/riscv/64bit-csr.xml: Regenerated.
7731
7732 2020-03-30 Tom Tromey <tromey@adacore.com>
7733
7734 * ada-valprint.c (print_variant_part): Update.
7735 * ada-lang.h (ada_which_variant_applies): Update.
7736 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7737 outer_valaddr parameters; replace with "outer" value parameter.
7738 (to_fixed_variant_branch_type): Update.
7739
7740 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7741
7742 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7743 <list>. Remove inclusion of observable.h.
7744 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7745 (struct arch_lwp_info): New struct.
7746 (class ppc_linux_dreg_interface): New class.
7747 (struct ppc_linux_process_info): New struct.
7748 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7749 <low_new_clone, low_forget_process, low_prepare_to_resume>
7750 <copy_thread_dreg_state, mark_thread_stale>
7751 <mark_debug_registers_changed, register_hw_breakpoint>
7752 <clear_hw_breakpoint, register_wp, clear_wp>
7753 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7754 <num_memory_accesses, get_trigger_type>
7755 <create_watchpoint_request, hwdebug_point_cmp>
7756 <init_arch_lwp_info, get_arch_lwp_info>
7757 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7758 methods.
7759 <struct ptid_hash>: New inner struct.
7760 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7761 members.
7762 (saved_dabr_value, hwdebug_info, max_slots_number)
7763 (struct hw_break_tuple, struct thread_points, ppc_threads)
7764 (have_ptrace_hwdebug_interface)
7765 (hwdebug_find_thread_points_by_tid)
7766 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7767 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7768 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7769 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7770 use m_dreg_interface.
7771 (hwdebug_point_cmp): Change to...
7772 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7773 reference arguments instead of pointers.
7774 (ppc_linux_nat_target::ranged_break_num_registers): Use
7775 m_dreg_interface.
7776 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7777 m_dreg_interface. Call register_hw_breakpoint.
7778 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7779 m_dreg_interface. Call clear_hw_breakpoint.
7780 (get_trigger_type): Change to...
7781 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7782 comment.
7783 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7784 use m_dreg_interface. Call register_hw_breakpoint.
7785 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7786 use m_dreg_interface. Call clear_hw_breakpoint.
7787 (can_use_watchpoint_cond_accel): Change to...
7788 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7789 method. Update comment, use m_dreg_interface and
7790 m_process_info.
7791 (calculate_dvc): Change to...
7792 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7793 m_dreg_interface.
7794 (num_memory_accesses): Change to...
7795 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7796 (check_condition): Change to...
7797 (ppc_linux_nat_target::check_condition): ...this method.
7798 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7799 comment, use m_dreg_interface.
7800 (create_watchpoint_request): Change to...
7801 (ppc_linux_nat_target::create_watchpoint_request): ...this
7802 method. Use m_dreg_interface.
7803 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7804 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7805 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7806 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7807 (ppc_linux_nat_target::low_forget_process)
7808 (ppc_linux_nat_target::low_new_fork)
7809 (ppc_linux_nat_target::low_new_clone)
7810 (ppc_linux_nat_target::low_delete_thread)
7811 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7812 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7813 only call mark_thread_stale.
7814 (ppc_linux_thread_exit): Remove.
7815 (ppc_linux_nat_target::stopped_data_address): Change to...
7816 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7817 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7818 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7819 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7820 comment. Call low_stopped_data_address.
7821 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7822 m_dreg_interface.
7823 (ppc_linux_nat_target::masked_watch_num_registers): Use
7824 m_dreg_interface.
7825 (ppc_linux_nat_target::copy_thread_dreg_state)
7826 (ppc_linux_nat_target::mark_thread_stale)
7827 (ppc_linux_nat_target::mark_debug_registers_changed)
7828 (ppc_linux_nat_target::register_hw_breakpoint)
7829 (ppc_linux_nat_target::clear_hw_breakpoint)
7830 (ppc_linux_nat_target::register_wp)
7831 (ppc_linux_nat_target::clear_wp)
7832 (ppc_linux_nat_target::init_arch_lwp_info)
7833 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7834 (_initialize_ppc_linux_nat): Remove observer callback.
7835
7836 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7837
7838 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7839 (ppc_linux_nat_target::auxv_parse)
7840 (ppc_linux_nat_target::read_description)
7841 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7842 Move up.
7843
7844 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7845
7846 * linux-nat.h (low_new_clone): New method.
7847 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7848
7849 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7850
7851 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7852 (dbx_expand_psymtab): ... this.
7853 (start_psymtab): Update.
7854 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7855 (mdebug_expand_psymtab): ... this.
7856 (parse_partial_symbols): Update.
7857 (new_psymtab): Update.
7858 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7859 (xcoff_expand_psymtab): ... this.
7860 (xcoff_start_psymtab): Update.
7861
7862 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7863
7864 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7865 <expand_dependencies>: ... this.
7866 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7867 (partial_symtab::expand_dependencies): ... this.
7868 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7869 Update.
7870 (dwarf2_psymtab::expand_psymtab): Update.
7871 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7872 * mdebugread.c (psymtab_to_symtab_1): Update.
7873 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7874
7875 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7876
7877 * psympriv.h (discard_psymtab): Remove.
7878 * dbxread.c (dbx_end_psymtab): Update.
7879 * xcoffread.c (xcoff_end_psymtab): Update.
7880
7881 2020-03-28 Tom Tromey <tom@tromey.com>
7882
7883 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7884 comment.
7885
7886 2020-03-28 Tom Tromey <tom@tromey.com>
7887
7888 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7889
7890 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7891
7892 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7893
7894 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7895
7896 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7897
7898 2020-03-26 Tom Tromey <tom@tromey.com>
7899
7900 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7901 (mark_common_block_symbol_computed, read_tag_string_type)
7902 (attr_to_dynamic_prop, read_subrange_type): Update.
7903 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7904 to be methods on struct attribute.
7905 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7906 (read_call_site_scope, partial_die_info::read)
7907 (partial_die_info::read, lookup_die_type, follow_die_ref):
7908 Update.
7909 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7910 from dwarf2_get_ref_die_offset.
7911 (attribute::constant_value): New method, from
7912 dwarf2_get_attr_constant_value.
7913 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7914 Declare method.
7915 <constant_value>: New method.
7916
7917 2020-03-26 Tom Tromey <tom@tromey.com>
7918
7919 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7920 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7921 (dwarf_type_encoding_name): Move to stringify.c.
7922 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7923 * dwarf2/stringify.c: New file.
7924 * dwarf2/stringify.h: New file.
7925
7926 2020-03-26 Tom Tromey <tom@tromey.com>
7927
7928 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7929 Rewrite.
7930
7931 2020-03-26 Tom Tromey <tom@tromey.com>
7932
7933 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7934 methods.
7935 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7936 (lookup_ranges_base): Likewise.
7937 (read_cutu_die_from_dwo, read_full_die_1): Update.
7938
7939 2020-03-26 Tom Tromey <tom@tromey.com>
7940
7941 * dwarf2/read.c (read_import_statement, read_file_scope)
7942 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7943 (read_lexical_block_scope, read_call_site_scope)
7944 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7945 (handle_struct_member_die, process_structure_scope)
7946 (update_enumeration_type_from_children)
7947 (process_enumeration_scope, read_array_type, read_common_block)
7948 (read_namespace, read_module, read_subroutine_type): Update.
7949 (sibling_die): Remove.
7950
7951 2020-03-26 Tom Tromey <tom@tromey.com>
7952
7953 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7954 (build_type_psymtabs_reader, read_structure_type)
7955 (read_enumeration_type, read_full_die_1): Update.
7956 (dwarf2_attr_no_follow): Move to die.h.
7957 * dwarf2/die.h (struct die_info) <attr>: New method.
7958
7959 2020-03-26 Tom Tromey <tom@tromey.com>
7960
7961 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7962 <base_address>: Now an optional.
7963 (dwarf2_find_base_address, dwarf2_rnglists_process)
7964 (dwarf2_ranges_process, fill_in_loclist_baton)
7965 (dwarf2_symbol_mark_computed): Update.
7966
7967 2020-03-26 Tom Tromey <tom@tromey.com>
7968
7969 * dwarf2/read.c (struct die_info): Move to die.h.
7970 * dwarf2/die.h: New file.
7971
7972 2020-03-26 Tom Tromey <tom@tromey.com>
7973
7974 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7975 * dwarf2/read.c
7976 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7977 Move to line-header.c.
7978 (read_checked_initial_length_and_offset, read_formatted_entries):
7979 Likewise.
7980 (dwarf_decode_line_header): Split into two.
7981 * dwarf2/line-header.c
7982 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7983 Move from read.c.
7984 (read_checked_initial_length_and_offset, read_formatted_entries):
7985 Likewise.
7986 (dwarf_decode_line_header): New function, split from read.c.
7987
7988 2020-03-26 Tom Tromey <tom@tromey.com>
7989
7990 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7991 Declare method.
7992 * dwarf2/read.c (read_attribute_value): Update.
7993 (dwarf2_per_objfile::read_line_string): Rename from
7994 read_indirect_line_string.
7995 (read_formatted_entries): Update.
7996
7997 2020-03-26 Tom Tromey <tom@tromey.com>
7998
7999 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
8000 variable.
8001
8002 2020-03-26 Tom Tromey <tom@tromey.com>
8003
8004 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
8005 const.
8006 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
8007 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
8008 parameter const.
8009
8010 2020-03-26 Tom Tromey <tom@tromey.com>
8011
8012 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
8013 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
8014 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
8015 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
8016
8017 2020-03-26 Tom Tromey <tom@tromey.com>
8018
8019 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
8020 file_names_size, file_full_name, file_file_name>: Use const.
8021 <file_name_at, file_names>: Add const overload.
8022 * dwarf2/line-header.c (line_header::file_file_name)
8023 (line_header::file_full_name): Update.
8024
8025 2020-03-26 Tom Tromey <tom@tromey.com>
8026
8027 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
8028 (macro_start_file, consume_improper_spaces)
8029 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
8030 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
8031 (dwarf_decode_macros): Move to macro.c.
8032 * dwarf2/macro.c: New file.
8033 * dwarf2/macro.h: New file.
8034 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8035
8036 2020-03-26 Tom Tromey <tom@tromey.com>
8037
8038 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8039 method.
8040 * dwarf2/section.c: New method. From
8041 read_indirect_string_at_offset_from.
8042 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8043 (read_indirect_string_at_offset_from): Move to section.c.
8044 (read_indirect_string_at_offset): Rewrite.
8045 (read_indirect_line_string_at_offset): Remove.
8046 (read_indirect_string, read_indirect_line_string)
8047 (dwarf_decode_macro_bytes): Update.
8048
8049 2020-03-26 Tom Tromey <tom@tromey.com>
8050
8051 * dwarf2/section.h (struct dwarf2_section_info)
8052 <overload_complaint>: Declare.
8053 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8054 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8055 Rename from dwarf2_section_buffer_overflow_complaint.
8056 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8057 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8058
8059 2020-03-26 Tom Tromey <tom@tromey.com>
8060
8061 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8062 Declare.
8063 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8064 Move from read.c.
8065 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8066 to section.c.
8067
8068 2020-03-26 Tom Tromey <tom@tromey.com>
8069
8070 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8071
8072 2020-03-26 Tom Tromey <tom@tromey.com>
8073
8074 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8075 "builder".
8076 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8077 parameter.
8078 (dwarf_decode_macros): Update.
8079
8080 2020-03-26 Tom Tromey <tom@tromey.com>
8081
8082 * dwarf2/read.c (read_attribute_value): Update.
8083 (read_indirect_string_from_dwz): Move to dwz.c; change into
8084 method.
8085 (dwarf_decode_macro_bytes): Update.
8086 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8087 * dwarf2/dwz.c: New file.
8088 * Makefile.in (COMMON_SFILES): Add dwz.c.
8089
8090 2020-03-26 Tom Tromey <tom@tromey.com>
8091
8092 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8093 * dwarf2/read.c: Add include.
8094 * dwarf2/index-write.c: Add include.
8095 * dwarf2/index-cache.c: Add include.
8096 * dwarf2/dwz.h: New file.
8097
8098 2020-03-25 Tom Tromey <tom@tromey.com>
8099
8100 * compile/compile-object-load.c (get_out_value_type): Mention
8101 correct symbol name in error message.
8102
8103 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
8104
8105 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8106
8107 2020-03-25 Tom de Vries <tdevries@suse.de>
8108
8109 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8110 * symmisc.c (dump_symtab_1): Print user and includes fields.
8111 (maintenance_info_symtabs): Same.
8112
8113 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8114
8115 PR gdb/25534
8116 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8117 (riscv_regcache_cooked_write): New function.
8118 (riscv_push_dummy_call): Use new function.
8119 (riscv_return_value): Likewise.
8120
8121 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8122
8123 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8124 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8125 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8126 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8127 * infrun.c (follow_fork): Likewise.
8128 (follow_fork_inferior): Likewise.
8129 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8130 * linux-nat.h (class linux_nat_target): Likewise.
8131 * remote.c (class remote_target) <follow_fork>: Likewise.
8132 (remote_target::follow_fork): Likewise.
8133 * target-delegates.c: Re-generate.
8134 * target.c (default_follow_fork): Likewise.
8135 (target_follow_fork): Likewise.
8136 * target.h (struct target_ops) <follow_fork>: Likewise.
8137 (target_follow_fork): Likewise.
8138
8139 2020-03-24 Tom de Vries <tdevries@suse.de>
8140
8141 * psymtab.c (maintenance_info_psymtabs): Print user field.
8142
8143 2020-03-20 Tom Tromey <tromey@adacore.com>
8144
8145 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8146 const.
8147 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8148 const.
8149
8150 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
8151
8152 * ptrace.m4: Don't check for ptrace declaration.
8153 * config.in: Re-generate.
8154 * configure: Re-generate.
8155 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8156 not defined.
8157
8158 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8159
8160 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8161 `PTRACE_TYPE_RET'.
8162 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8163 * sparc-nat.c (gdb_ptrace): Likewise.
8164 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8165
8166 2020-03-20 Tom Tromey <tromey@adacore.com>
8167
8168 * c-exp.y (lex_one_token): Fix assert.
8169
8170 2020-03-20 Tom Tromey <tromey@adacore.com>
8171
8172 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8173 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8174 strncpy call.
8175
8176 2020-03-20 Tom Tromey <tromey@adacore.com>
8177
8178 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8179
8180 2020-03-20 Tom Tromey <tromey@adacore.com>
8181
8182 * ada-valprint.c (print_variant_part): Remove parameters; switch
8183 to value-based API.
8184 (print_field_values): Likewise.
8185 (ada_val_print_struct_union): Likewise.
8186 (ada_value_print_1): Update.
8187
8188 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8189
8190 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8191 nbsd_nat_target instead of inf_ptrace_target.
8192 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8193 nbsd_nat_target.
8194
8195 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8196
8197 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8198 it to the ptrace call.
8199 * (store_registers): Likewise.
8200
8201 2020-03-20 Kamil Rytarowski <n54@gmx.com>
8202
8203 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8204 it to the ptrace call.
8205 * (store_registers): Likewise.
8206
8207 2020-03-19 Luis Machado <luis.machado@linaro.org>
8208
8209 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8210 valid, fetch vg value from ptrace.
8211
8212 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8213 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8214 * inf-ptrace.c: Likewise.
8215 * (gdb_ptrace): Add.
8216 * (inf_ptrace_target::resume): Update.
8217 * (inf_ptrace_target::xfer_partial): Likewise.
8218 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8219 * (inf_ptrace_peek_poke): Update.
8220
8221 2020-03-19 Kamil Rytarowski <n54@gmx.com>
8222
8223 * x86-bsd-nat.c (gdb_ptrace): New.
8224 * (x86bsd_dr_set): Add new argument `ptid'.
8225 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8226 x86bsd_dr_set_addr): Update.
8227
8228 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8229
8230 * remote.c (remote_target::process_stop_reply): Handle events for
8231 all threads differently.
8232
8233 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8234
8235 * completer.c (completion_tracker::remove_completion): Define new
8236 function.
8237 * completer.h (completion_tracker::remove_completion): Declare new
8238 function.
8239 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8240 when adding a C++ function symbol.
8241
8242 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8243
8244 * completer.c (completion_tracker::completion_hash_entry): Define
8245 new class.
8246 (advance_to_filename_complete_word_point): Call
8247 recompute_lowest_common_denominator.
8248 (completion_tracker::completion_tracker): Call discard_completions
8249 to setup the hash table.
8250 (completion_tracker::discard_completions): Allow for being called
8251 from the constructor, pass new equal function, and element deleter
8252 when constructing the hash table. Initialise new class member
8253 variables.
8254 (completion_tracker::maybe_add_completion): Remove use of
8255 m_entries_vec, and store more information into m_entries_hash.
8256 (completion_tracker::recompute_lcd_visitor): New function, most
8257 content taken from...
8258 (completion_tracker::recompute_lowest_common_denominator):
8259 ...here, this now just visits each item in the hash calling the
8260 above visitor.
8261 (completion_tracker::build_completion_result): Remove use of
8262 m_entries_vec, call recompute_lowest_common_denominator.
8263 * completer.h (completion_tracker::have_completions): Remove use
8264 of m_entries_vec.
8265 (completion_tracker::completion_hash_entry): Declare new class.
8266 (completion_tracker::recompute_lowest_common_denominator): Change
8267 function signature.
8268 (completion_tracker::recompute_lcd_visitor): Declare new function.
8269 (completion_tracker::m_entries_vec): Delete.
8270 (completion_tracker::m_entries_hash): Initialize to NULL.
8271 (completion_tracker::m_lowest_common_denominator_valid): New
8272 member variable.
8273 (completion_tracker::m_lowest_common_denominator_max_length): New
8274 member variable.
8275
8276 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8277
8278 * regformats/regdef.h: Put reg in gdb namespace.
8279
8280 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8281
8282 * i386-bsd-nat.c (gdb_ptrace): New.
8283 * (i386bsd_fetch_inferior_registers,
8284 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8285 * (i386bsd_fetch_inferior_registers,
8286 i386bsd_store_inferior_registers) Use gdb_ptrace.
8287
8288 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8289
8290 * amd64-bsd-nat.c (gdb_ptrace): New.
8291 * (amd64bsd_fetch_inferior_registers,
8292 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8293 * (amd64bsd_fetch_inferior_registers,
8294 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8295
8296 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8297
8298 * user-regs.c (user_reg::read): Rename to...
8299 (user_reg::xread): ...this.
8300 * (append_user_reg): Rename argument `read' to `xread'.
8301 * (user_reg_add_builtin): Likewise.
8302 * (user_reg_add): Likewise.
8303 * (value_of_user_reg): Likewise.
8304
8305 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8306
8307 * sparc-nat.c (gdb_ptrace): New.
8308 * sparc-nat.c (sparc_fetch_inferior_registers)
8309 (sparc_store_inferior_registers) Remove obsolete comment.
8310 * sparc-nat.c (sparc_fetch_inferior_registers)
8311 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8312 * sparc-nat.c (sparc_fetch_inferior_registers)
8313 (sparc_store_inferior_registers) Use gdb_ptrace.
8314
8315 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8316
8317 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8318 it to the ptrace call.
8319 * sh-nbsd-nat.c (store_registers): Likewise.
8320
8321 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8322
8323 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8324 nbsd_nat_target instead of inf_ptrace_target.
8325 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8326 nbsd_nat_target.
8327
8328 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8329
8330 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8331
8332 2020-03-17 Kamil Rytarowski <n54@gmx.com>
8333
8334 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8335 <sys/sysctl.h>.
8336 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8337
8338 2020-03-17 Tom de Vries <tdevries@suse.de>
8339
8340 PR gdb/23710
8341 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8342 fields.
8343 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8344 fields.
8345 (process_imported_unit_die): Skip import of c++ CUs.
8346
8347 2020-03-16 Tom Tromey <tom@tromey.com>
8348
8349 * p-valprint.c (pascal_object_print_value): Initialize
8350 base_value.
8351
8352 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8353 Shahab Vahedi <shahab@synopsys.com>
8354
8355 * Makefile.in: Add arch/arc.o
8356 * configure.tgt: Likewise.
8357 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8358 (_initialize_arc_tdep): Don't initialize old target descriptions.
8359 (arc_read_description): New function to cache target descriptions.
8360 * arc-tdep.h (arc_read_description): Add proto type.
8361 * arch/arc.c: New file.
8362 * arch/arc.h: Likewise.
8363 * features/Makefile: Replace old target descriptions with new.
8364 * features/arc-arcompact.c: Remove.
8365 * features/arc-arcompact.xml: Likewise.
8366 * features/arc-v2.c: Likewise
8367 * features/arc-v2.xml: Likewise
8368 * features/arc/aux-arcompact.xml: New file.
8369 * features/arc/aux-v2.xml: Likewise.
8370 * features/arc/core-arcompact.xml: Likewise.
8371 * features/arc/core-v2.xml: Likewise.
8372 * features/arc/aux-arcompact.c: Generate.
8373 * features/arc/aux-v2.c: Likewise.
8374 * features/arc/core-arcompact.c: Likewise.
8375 * features/arc/core-v2.c: Likewise.
8376 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8377
8378 2020-03-16 Tom Tromey <tromey@adacore.com>
8379
8380 PR gdb/25663:
8381 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8382 putting value into bcache.
8383
8384 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8385
8386 PR gdb/21500
8387 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8388 to...
8389 (amd64_windows_init_abi_common): ... this. Don't set size of
8390 long type.
8391 (amd64_windows_init_abi): New function.
8392 (amd64_cygwin_init_abi): New function.
8393 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8394 the Cygwin OS ABI.
8395 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8396 comment.
8397
8398 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8399
8400 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8401 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8402 (pe_import_directory_entry): New struct type.
8403 (is_linked_with_cygwin_dll): New function.
8404 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8405 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8406 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8407
8408 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8409
8410 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8411 i386_cygwin_core_osabi_sniffer.
8412
8413 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8414
8415 * i386-cygwin-tdep.c: Rename to...
8416 * i386-windows-tdep.c: ... this.
8417 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8418 i386-windows-tdep.c.
8419 * configure.tgt: Likewise.
8420
8421 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8422
8423 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8424 * osabi.c (gdb_osabi_names): Add "Windows".
8425 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8426 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8427 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8428 i386_cygwin_osabi_sniffer.
8429 (_initialize_i386_cygwin_tdep): Register OS ABI
8430 GDB_OSABI_WINDOWS for i386.
8431 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8432 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8433 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8434 for x86-64.
8435 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8436 when the target matches '*-*-mingw*'.
8437
8438 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8439
8440 * defs.h (enum gdb_osabi): Move to...
8441 * osabi.h (enum gdb_osabi): ... here.
8442 * gdbarch.sh: Include osabi.h in gdbarch.h.
8443 * gdbarch.h: Re-generate.
8444
8445 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8446
8447 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8448 function.
8449 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8450
8451 2020-03-14 Tom Tromey <tom@tromey.com>
8452
8453 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8454 for C++.
8455 (c_type_print_modifier): Likewise. Add "language" parameter.
8456 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8457 (c_type_print_base_1): Update.
8458 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8459 constants.
8460 * type-stack.c (type_stack::insert): Handle tp_atomic and
8461 tp_restrict.
8462 (type_stack::follow_type_instance_flags): Likewise.
8463 (type_stack::follow_types): Likewise. Merge type-following code.
8464 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8465 (space_identifier, cv_with_space_id)
8466 (const_or_volatile_or_space_identifier_noopt)
8467 (const_or_volatile_or_space_identifier): Remove.
8468 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8469 rules.
8470 (ptr_operator, typebase): Update.
8471 (enum token_flag) <FLAG_C>: New constant.
8472 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8473 "_Atomic".
8474 (lex_one_token): Handle FLAG_C.
8475
8476 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8477
8478 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8479 it to the ptrace call.
8480 * m68k-bsd-nat.c (store_registers): Likewise.
8481
8482 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8483
8484 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8485 gdb_byte *.
8486 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8487 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8488 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8489
8490 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8491
8492 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8493 nbsd_nat_target instead of inf_ptrace_target.
8494 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8495 nbsd_nat_target.
8496
8497 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8498
8499 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8500 register_t.
8501
8502 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8503
8504 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8505 it to the ptrace call.
8506 * alpha-bsd-nat.c (store_registers): Likewise.
8507
8508 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8509
8510 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8511 includes.
8512 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8513 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8514 fill_fpregset): Likewise.
8515
8516 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8517
8518 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8519 nbsd_nat_target instead of inf_ptrace_target.
8520 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8521 nbsd_nat_target.
8522
8523 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8524
8525 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8526 register_t.
8527
8528 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8529
8530 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8531 it to the ptrace call.
8532 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8533 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8534 * arm-nbsd-nat.c (store_register): Likewise.
8535 * arm-nbsd-nat.c (store_regs): Likewise.
8536 * arm-nbsd-nat.c (store_fp_register): Likewise.
8537 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8538
8539 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8540
8541 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8542 nbsd_nat_target instead of inf_ptrace_target.
8543 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8544 nbsd_nat_target.
8545
8546 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8547
8548 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8549 it to the ptrace call.
8550 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8551
8552 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8553
8554 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8555 it to the ptrace call.
8556 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8557
8558 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8559
8560 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8561 gdb_byte *.
8562 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8563
8564 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8565
8566 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8567 instead of inf_ptrace_target.
8568 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8569 nbsd_nat_target.
8570
8571 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8572
8573 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8574 register_t.
8575
8576 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8577
8578 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8579 register_t.
8580
8581 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8582
8583 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8584 register_t.
8585
8586 2020-03-13 Tom Tromey <tom@tromey.com>
8587
8588 * value.h (val_print): Don't declare.
8589 * valprint.h (val_print_array_elements)
8590 (val_print_scalar_formatted, generic_val_print): Don't declare.
8591 * valprint.c (generic_val_print_array): Take a struct value.
8592 (generic_val_print_ptr, generic_val_print_memberptr)
8593 (generic_val_print_bool, generic_val_print_int)
8594 (generic_val_print_char, generic_val_print_complex)
8595 (generic_val_print): Remove.
8596 (generic_value_print): Update.
8597 (do_val_print): Remove unused parameters. Don't call
8598 la_val_print.
8599 (val_print): Remove.
8600 (common_val_print): Update. Don't call value_check_printable.
8601 (val_print_scalar_formatted, val_print_array_elements): Remove.
8602 * rust-lang.c (rust_val_print): Remove.
8603 (rust_language_defn): Update.
8604 * p-valprint.c (pascal_val_print): Remove.
8605 (pascal_value_print_inner): Update.
8606 (pascal_object_print_val_fields, pascal_object_print_val):
8607 Remove.
8608 (pascal_object_print_static_field): Update.
8609 * p-lang.h (pascal_val_print): Don't declare.
8610 * p-lang.c (pascal_language_defn): Update.
8611 * opencl-lang.c (opencl_language_defn): Update.
8612 * objc-lang.c (objc_language_defn): Update.
8613 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8614 * m2-lang.h (m2_val_print): Don't declare.
8615 * m2-lang.c (m2_language_defn): Update.
8616 * language.h (struct language_defn) <la_val_print>: Remove.
8617 * language.c (unk_lang_value_print_inner): Rename. Change
8618 argument types.
8619 (unknown_language_defn, auto_language_defn): Update.
8620 * go-valprint.c (go_val_print): Remove.
8621 * go-lang.h (go_val_print): Don't declare.
8622 * go-lang.c (go_language_defn): Update.
8623 * f-valprint.c (f_val_print): Remove.
8624 * f-lang.h (f_value_print): Don't declare.
8625 * f-lang.c (f_language_defn): Update.
8626 * d-valprint.c (d_val_print): Remove.
8627 * d-lang.h (d_value_print): Don't declare.
8628 * d-lang.c (d_language_defn): Update.
8629 * cp-valprint.c (cp_print_value_fields)
8630 (cp_print_value_fields_rtti, cp_print_value): Remove.
8631 (cp_print_static_field): Update.
8632 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8633 (c_val_print_struct, c_val_print_union, c_val_print_int)
8634 (c_val_print_memberptr, c_val_print): Remove.
8635 * c-lang.h (c_val_print_array, cp_print_value_fields)
8636 (cp_print_value_fields_rtti): Don't declare.
8637 * c-lang.c (c_language_defn, cplus_language_defn)
8638 (asm_language_defn, minimal_language_defn): Update.
8639 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8640 (ada_val_print_enum): Take a struct value.
8641 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8642 (ada_val_print): Remove.
8643 (ada_value_print_1): Update.
8644 (printable_val_type): Remove.
8645 * ada-lang.h (ada_val_print): Don't declare.
8646 * ada-lang.c (ada_language_defn): Update.
8647
8648 2020-03-13 Tom Tromey <tom@tromey.com>
8649
8650 * valprint.c (do_val_print): Update.
8651 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8652 a struct value.
8653 (value_to_value_object_no_release): Declare.
8654 * python/py-value.c (value_to_value_object_no_release): New
8655 function.
8656 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8657 struct value.
8658 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8659 function.
8660 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8661 a struct value.
8662 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8663 Declare.
8664 (gdbscm_apply_val_pretty_printer): Take a struct value.
8665 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8666 value.
8667 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8668 value.
8669 * extension-priv.h (struct extension_language_ops)
8670 <apply_val_pretty_printer>: Take a struct value.
8671 * cp-valprint.c (cp_print_value): Create a struct value.
8672 (cp_print_value): Update.
8673
8674 2020-03-13 Tom Tromey <tom@tromey.com>
8675
8676 * ada-valprint.c (print_field_values): Call common_val_print.
8677
8678 2020-03-13 Tom Tromey <tom@tromey.com>
8679
8680 * ada-valprint.c (val_print_packed_array_elements): Remove
8681 bitoffset and val parameters. Call common_val_print.
8682 (ada_val_print_string): Remove offset, address, and original_value
8683 parameters.
8684 (ada_val_print_array): Update.
8685 (ada_value_print_array): New function.
8686 (ada_value_print_1): Call it.
8687
8688 2020-03-13 Tom Tromey <tom@tromey.com>
8689
8690 * ada-valprint.c (ada_value_print): Use common_val_print.
8691
8692 2020-03-13 Tom Tromey <tom@tromey.com>
8693
8694 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8695
8696 2020-03-13 Tom Tromey <tom@tromey.com>
8697
8698 * ada-valprint.c (ada_value_print_num): New function.
8699 (ada_value_print_1): Use it.
8700
8701 2020-03-13 Tom Tromey <tom@tromey.com>
8702
8703 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8704
8705 2020-03-13 Tom Tromey <tom@tromey.com>
8706
8707 * ada-valprint.c (ada_value_print_ptr): New function.
8708 (ada_value_print_1): Use it.
8709
8710 2020-03-13 Tom Tromey <tom@tromey.com>
8711
8712 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8713 call common_val_print.
8714 (ada_val_print_1): Update.
8715 (ada_value_print_1): New function.
8716 (ada_value_print_inner): Rewrite.
8717
8718 2020-03-13 Tom Tromey <tom@tromey.com>
8719
8720 * cp-valprint.c (cp_print_value_fields): Update.
8721 (cp_print_value): New function.
8722
8723 2020-03-13 Tom Tromey <tom@tromey.com>
8724
8725 * m2-valprint.c (m2_value_print_inner): Use
8726 cp_print_value_fields.
8727 * cp-valprint.c (cp_print_value_fields): New function.
8728 * c-valprint.c (c_value_print_struct): New function.
8729 (c_value_print_inner): Use c_value_print_struct.
8730 * c-lang.h (cp_print_value_fields): Declare.
8731
8732 2020-03-13 Tom Tromey <tom@tromey.com>
8733
8734 * c-valprint.c (c_value_print_array): New function.
8735 (c_value_print_inner): Use it.
8736
8737 2020-03-13 Tom Tromey <tom@tromey.com>
8738
8739 * c-valprint.c (c_value_print_memberptr): New function.
8740 (c_value_print_inner): Use it.
8741
8742 2020-03-13 Tom Tromey <tom@tromey.com>
8743
8744 * c-valprint.c (c_value_print_int): New function.
8745 (c_value_print_inner): Use it.
8746
8747 2020-03-13 Tom Tromey <tom@tromey.com>
8748
8749 * c-valprint.c (c_value_print_ptr): New function.
8750 (c_value_print_inner): Use it.
8751
8752 2020-03-13 Tom Tromey <tom@tromey.com>
8753
8754 * c-valprint.c (c_value_print_inner): Rewrite.
8755
8756 2020-03-13 Tom Tromey <tom@tromey.com>
8757
8758 * valprint.c (generic_value_print_complex): New function.
8759 (generic_value_print): Use it.
8760
8761 2020-03-13 Tom Tromey <tom@tromey.com>
8762
8763 * valprint.c (generic_val_print_float): Don't call
8764 val_print_scalar_formatted.
8765 (generic_val_print, generic_value_print): Update.
8766
8767 2020-03-13 Tom Tromey <tom@tromey.com>
8768
8769 * valprint.c (generic_value_print_char): New function
8770 (generic_value_print): Use it.
8771
8772 2020-03-13 Tom Tromey <tom@tromey.com>
8773
8774 * valprint.c (generic_value_print_int): New function.
8775 (generic_value_print): Use it.
8776
8777 2020-03-13 Tom Tromey <tom@tromey.com>
8778
8779 * valprint.c (generic_value_print_bool): New function.
8780 (generic_value_print): Use it.
8781
8782 2020-03-13 Tom Tromey <tom@tromey.com>
8783
8784 * valprint.c (generic_val_print_func): Simplify.
8785 (generic_val_print, generic_value_print): Update.
8786
8787 2020-03-13 Tom Tromey <tom@tromey.com>
8788
8789 * valprint.c (generic_val_print_flags): Remove.
8790 (generic_val_print, generic_value_print): Update.
8791 (val_print_type_code_flags): Add original_value parameter.
8792
8793 2020-03-13 Tom Tromey <tom@tromey.com>
8794
8795 * valprint.c (generic_val_print): Update.
8796 (generic_value_print): Update.
8797 * valprint.c (generic_val_print_enum): Don't call
8798 val_print_scalar_formatted.
8799
8800 2020-03-13 Tom Tromey <tom@tromey.com>
8801
8802 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8803 * valprint.c (generic_value_print_ptr): New function.
8804
8805 2020-03-13 Tom Tromey <tom@tromey.com>
8806
8807 * valprint.c (generic_value_print): Rewrite.
8808
8809 2020-03-13 Tom Tromey <tom@tromey.com>
8810
8811 * p-valprint.c (pascal_object_print_value_fields)
8812 (pascal_object_print_value): New functions.
8813
8814 2020-03-13 Tom Tromey <tom@tromey.com>
8815
8816 * p-valprint.c (pascal_value_print_inner): Rewrite.
8817
8818 2020-03-13 Tom Tromey <tom@tromey.com>
8819
8820 * f-valprint.c (f_value_print_innner): Rewrite.
8821
8822 2020-03-13 Tom Tromey <tom@tromey.com>
8823
8824 * m2-valprint.c (m2_print_unbounded_array): New overload.
8825 (m2_print_unbounded_array): Update.
8826 (m2_print_array_contents): Take a struct value.
8827 (m2_value_print_inner): Rewrite.
8828
8829 2020-03-13 Tom Tromey <tom@tromey.com>
8830
8831 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8832 (d_value_print_inner): New function.
8833 * d-lang.h (d_value_print_inner): Declare.
8834 * d-lang.c (d_language_defn): Use d_value_print_inner.
8835
8836 2020-03-13 Tom Tromey <tom@tromey.com>
8837
8838 * go-valprint.c (go_value_print_inner): New function.
8839 * go-lang.h (go_value_print_inner): Declare.
8840 * go-lang.c (go_language_defn): Use go_value_print_inner.
8841
8842 2020-03-13 Tom Tromey <tom@tromey.com>
8843
8844 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8845 API.
8846 (rust_val_print): Rewrite.
8847 (rust_value_print_inner): New function, from rust_val_print.
8848 (rust_language_defn): Use rust_value_print_inner.
8849
8850 2020-03-13 Tom Tromey <tom@tromey.com>
8851
8852 * ada-valprint.c (ada_value_print_inner): New function.
8853 * ada-lang.h (ada_value_print_inner): Declare.
8854 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8855
8856 2020-03-13 Tom Tromey <tom@tromey.com>
8857
8858 * f-valprint.c (f_value_print_innner): New function.
8859 * f-lang.h (f_value_print_innner): Declare.
8860 * f-lang.c (f_language_defn): Use f_value_print_innner.
8861
8862 2020-03-13 Tom Tromey <tom@tromey.com>
8863
8864 * p-valprint.c (pascal_value_print_inner): New function.
8865 * p-lang.h (pascal_value_print_inner): Declare.
8866 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8867
8868 2020-03-13 Tom Tromey <tom@tromey.com>
8869
8870 * m2-valprint.c (m2_value_print_inner): New function.
8871 * m2-lang.h (m2_value_print_inner): Declare.
8872 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8873
8874 2020-03-13 Tom Tromey <tom@tromey.com>
8875
8876 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8877 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8878 * c-valprint.c (c_value_print_inner): New function.
8879 * c-lang.h (c_value_print_inner): Declare.
8880 * c-lang.c (c_language_defn, cplus_language_defn)
8881 (asm_language_defn, minimal_language_defn): Use
8882 c_value_print_inner.
8883
8884 2020-03-13 Tom Tromey <tom@tromey.com>
8885
8886 * p-valprint.c (pascal_object_print_value_fields): Now static.
8887 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8888
8889 2020-03-13 Tom Tromey <tom@tromey.com>
8890
8891 * c-valprint.c (c_val_print_array): Simplify.
8892
8893 2020-03-13 Tom Tromey <tom@tromey.com>
8894
8895 * valprint.c (value_print_array_elements): New function.
8896 * valprint.h (value_print_array_elements): Declare.
8897
8898 2020-03-13 Tom Tromey <tom@tromey.com>
8899
8900 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8901 * mips-tdep.c (mips_print_register): Use
8902 value_print_scalar_formatted.
8903
8904 2020-03-13 Tom Tromey <tom@tromey.com>
8905
8906 * valprint.h (value_print_scalar_formatted): Declare.
8907 * valprint.c (value_print_scalar_formatted): New function.
8908
8909 2020-03-13 Tom Tromey <tom@tromey.com>
8910
8911 * valprint.h (generic_value_print): Declare.
8912 * valprint.c (generic_value_print): New function.
8913
8914 2020-03-13 Tom Tromey <tom@tromey.com>
8915
8916 * valprint.c (do_val_print): Call la_value_print_inner, if
8917 available.
8918 * rust-lang.c (rust_language_defn): Update.
8919 * p-lang.c (pascal_language_defn): Update.
8920 * opencl-lang.c (opencl_language_defn): Update.
8921 * objc-lang.c (objc_language_defn): Update.
8922 * m2-lang.c (m2_language_defn): Update.
8923 * language.h (struct language_defn) <la_value_print_inner>: New
8924 member.
8925 * language.c (unknown_language_defn, auto_language_defn): Update.
8926 * go-lang.c (go_language_defn): Update.
8927 * f-lang.c (f_language_defn): Update.
8928 * d-lang.c (d_language_defn): Update.
8929 * c-lang.c (c_language_defn, cplus_language_defn)
8930 (asm_language_defn, minimal_language_defn): Update.
8931 * ada-lang.c (ada_language_defn): Update.
8932
8933 2020-03-13 Tom Tromey <tom@tromey.com>
8934
8935 * c-valprint.c (c_value_print): Use common_val_print.
8936
8937 2020-03-13 Tom Tromey <tom@tromey.com>
8938
8939 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8940
8941 2020-03-13 Tom Tromey <tom@tromey.com>
8942
8943 * f-valprint.c (f77_print_array_1, f_val_print): Use
8944 common_val_print.
8945
8946 2020-03-13 Tom Tromey <tom@tromey.com>
8947
8948 * riscv-tdep.c (riscv_print_one_register_info): Use
8949 common_val_print.
8950
8951 2020-03-13 Tom Tromey <tom@tromey.com>
8952
8953 * mi/mi-main.c (output_register): Use common_val_print.
8954
8955 2020-03-13 Tom Tromey <tom@tromey.com>
8956
8957 * infcmd.c (default_print_one_register_info): Use
8958 common_val_print.
8959
8960 2020-03-13 Tom Tromey <tom@tromey.com>
8961
8962 * valprint.h (common_val_print_checked): Declare.
8963 * valprint.c (common_val_print_checked): New function.
8964 * stack.c (print_frame_arg): Use common_val_print_checked.
8965
8966 2020-03-13 Tom Tromey <tom@tromey.com>
8967
8968 * valprint.c (do_val_print): New function, from val_print.
8969 (val_print): Use do_val_print.
8970 (common_val_print): Use do_val_print.
8971
8972 2020-03-13 Tom Tromey <tom@tromey.com>
8973
8974 * valprint.c (value_print): Use scoped_value_mark.
8975
8976 2020-03-13 Tom de Vries <tdevries@suse.de>
8977
8978 PR symtab/25646
8979 * psymtab.c (partial_symtab::partial_symtab): Don't set
8980 globals_offset and statics_offset. Push element onto
8981 current_global_psymbols and current_static_psymbols stacks.
8982 (concat): New function.
8983 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8984 element from current_global_psymbols and current_static_psymbols
8985 stacks. Concat popped elements to global_psymbols and
8986 static_symbols.
8987 (add_psymbol_to_list): Use current_global_psymbols and
8988 current_static_psymbols stacks.
8989 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8990 current_static_psymbols fields.
8991
8992 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8993
8994 * corelow.c (sniff_core_bfd): Remove.
8995 (class core_target) <m_core_vec>: Remove.
8996 (core_target::core_target): Update.
8997 (core_file_fns): Remove.
8998 (deprecated_add_core_fns): Remove.
8999 (default_core_sniffer): Remove.
9000 (sniff_core_bfd): Remove.
9001 (default_check_format): Remove.
9002 (gdb_check_format): Remove.
9003 (core_target_open): Update.
9004 (core_target::get_core_register_section): Update.
9005 (get_core_registers_cb): Update.
9006 (core_target::fetch_registers): Update.
9007 * gdbcore.h (struct core_fns): Remove.
9008 (deprecated_add_core_fns): Remove.
9009 (default_core_sniffer): Remove.
9010 (default_check_format): Remove.
9011
9012 2020-03-12 Tom Tromey <tom@tromey.com>
9013
9014 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
9015 CORE_ADDR.
9016 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
9017
9018 2020-03-12 Tom Tromey <tom@tromey.com>
9019
9020 * remote.c (remote_target::download_tracepoint)
9021 (remote_target::enable_tracepoint)
9022 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
9023 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
9024 sprintf_vma.
9025
9026 2020-03-12 Tom Tromey <tom@tromey.com>
9027
9028 * symfile-mem.c: Update CORE_ADDR size assert.
9029
9030 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9031
9032 * selftest.m4: Move to gdbsupport/.
9033 * acinclude.m4: Update path to selftest.m4.
9034
9035 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9036
9037 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9038 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9039 gdbarch-selfselftests.c and selftest-arch.c.
9040 (SUBDIR_UNITTESTS_OBS): Rename to...
9041 (SELFTESTS_OBS): ... this.
9042 (COMMON_SFILES): Remove disasm-selftests.c and
9043 gdbarch-selftests.c.
9044 * configure.ac: Don't add selftest-arch.{c,o} to
9045 CONFIG_{SRCS,OBS}.
9046 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9047 preprocessor conditions.
9048
9049 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9050
9051 * configure.ac: Don't source bfd/development.sh.
9052 * selftest.m4: Modify comment.
9053 * configure: Re-generate.
9054
9055 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
9056
9057 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9058 not "true" or "false".
9059 * configure: Re-generate.
9060
9061 2020-03-12 Christian Biesinger <cbiesinger@google.com>
9062
9063 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9064 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9065 renamed to arm_nbsd_supply_gregset.
9066 (fetch_register): Update to call arm_nbsd_supply_gregset.
9067 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9068 (arm_netbsd_nat_target::fetch_registers): Update.
9069 (fetch_elfcore_registers): Removed.
9070 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9071 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9072 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9073 not require NetBSD system headers.
9074 (arm_nbsd_regset): New struct.
9075 (arm_nbsd_iterate_over_regset_sections): New function.
9076 (arm_netbsd_init_abi_common): Updated to call
9077 set_gdbarch_iterate_over_regset_sections.
9078 * arm-nbsd-tdep.h: New file.
9079
9080 2020-03-11 Kevin Buettner <kevinb@redhat.com>
9081
9082 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9083 recursion.
9084
9085 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
9086
9087 * configure: Re-generate.
9088
9089 2020-03-11 Tom Tromey <tromey@adacore.com>
9090
9091 * ada-typeprint.c (print_choices): Fix comment.
9092
9093 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9094
9095 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9096 previous item in the list, when the list has no items.
9097
9098 2020-03-11 Tom de Vries <tdevries@suse.de>
9099
9100 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9101 PROP_LOCLIST handling code.
9102
9103 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9104
9105 * buildsym-legacy.c (record_line): Pass extra parameter to
9106 record_line.
9107 * buildsym.c (buildsym_compunit::record_line): Take an extra
9108 parameter, reduce duplication in the line table, and record the
9109 is_stmt flag in the line table.
9110 * buildsym.h (buildsym_compunit::record_line): Add extra
9111 parameter.
9112 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9113 non-statement lines.
9114 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9115 this to the symtab builder.
9116 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9117 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9118 through to dwarf_record_line_1.
9119 * infrun.c (process_event_stop_test): When stepping, don't stop at
9120 a non-statement instruction, and only refresh the step info when
9121 we land in the middle of a line's range. Also add an extra
9122 comment.
9123 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9124 field.
9125 * record-btrace.c (btrace_find_line_range): Only record lines
9126 marked as is-statement.
9127 * stack.c (frame_show_address): Show the frame address if we are
9128 in a non-statement sal.
9129 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9130 (maintenance_print_one_line_table): Print a header for the is_stmt
9131 column, and include is_stmt information in the output.
9132 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9133 preference to non-statements.
9134 (find_pcs_for_symtab_line): Prefer is-statement entries.
9135 (find_line_common): Likewise.
9136 * symtab.h (struct linetable_entry): Add is_stmt field.
9137 (struct symtab_and_line): Likewise.
9138 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9139 arranging the line table.
9140
9141 2020-03-07 Tom de Vries <tdevries@suse.de>
9142
9143 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9144 DIE.
9145
9146 2020-03-07 Tom Tromey <tom@tromey.com>
9147
9148 * valops.c (value_literal_complex): Remove obsolete comment.
9149 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9150 comment.
9151
9152 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9153
9154 * infrun.h: Forward-declare thread_info.
9155 (set_step_info): Add thread_info parameter, add doc.
9156 * infrun.c (set_step_info): Add thread_info parameter, move doc
9157 to header.
9158 * infrun.c (process_event_stop_test): Pass thread to
9159 set_step_info call.
9160 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9161 set_step_info.
9162 (prepare_one_step): Add thread_info parameter, pass it to
9163 set_step_frame and prepare_one_step (recursive) call.
9164 (step_1): Pass thread to prepare_one_step call.
9165 (step_command_fsm::should_stop): Pass thread to
9166 prepare_one_step.
9167 (until_next_fsm): Pass thread to set_step_frame call.
9168 (finish_command): Pass thread to set_step_info call.
9169
9170 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
9171
9172 * windows-tdep.c (windows_solib_create_inferior_hook):
9173 Check if inferior is running.
9174
9175 2020-03-06 Tom de Vries <tdevries@suse.de>
9176
9177 * NEWS: Fix "the the".
9178 * ctfread.c: Same.
9179
9180 2020-03-06 Tom de Vries <tdevries@suse.de>
9181
9182 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9183
9184 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9185
9186 * .dir-locals.el: Add a comment referencing the other copies of
9187 this file.
9188
9189 2020-03-05 John Baldwin <jhb@FreeBSD.org>
9190
9191 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9192 psargs.
9193
9194 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9195
9196 * .gitattributes: New file.
9197
9198 2020-03-04 Tom Tromey <tom@tromey.com>
9199
9200 * symmisc.c (print_symbol_bcache_statistics)
9201 (print_objfile_statistics): Update.
9202 * symfile.c (allocate_symtab): Use intern.
9203 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9204 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9205 macro_cache>: Remove.
9206 <string_cache>: New member.
9207 (struct objfile) <intern>: New methods.
9208 * elfread.c (elf_symtab_read): Use intern.
9209 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9210 (dwarf2_compute_name, dwarf2_physname)
9211 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9212 names.
9213 (guess_partial_die_structure_name): Update.
9214 (partial_die_info::fixup): Intern name.
9215 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9216 name.
9217 (dwarf2_name): Intern name. Update.
9218 * buildsym.c (buildsym_compunit::get_macro_table): Use
9219 string_cache.
9220
9221 2020-03-04 Tom Tromey <tom@tromey.com>
9222
9223 * jit.c (bfd_open_from_target_memory): Make "target" const.
9224 * corefile.c (gnutarget): Now const.
9225 * gdbcore.h (gnutarget): Now const.
9226
9227 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
9228
9229 * NEWS: Mention support for WOW64 processes.
9230 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9231 (amd64_windows_segment_register_p): Remove static.
9232 (_initialize_amd64_windows_nat): Update.
9233 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9234 * i386-windows-nat.c (context_offset): Update.
9235 (i386_mappings): Rename and remove static.
9236 (i386_windows_segment_register_p): Remove static.
9237 (_initialize_i386_windows_nat): Update.
9238 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9239 (STATUS_WX86_SINGLE_STEP): New macro.
9240 (EnumProcessModulesEx): New macro.
9241 (Wow64SuspendThread): New macro.
9242 (Wow64GetThreadContext): New macro.
9243 (Wow64SetThreadContext): New macro.
9244 (Wow64GetThreadSelectorEntry): New macro.
9245 (windows_set_context_register_offsets): Add static.
9246 (windows_set_segment_register_p): Likewise.
9247 (windows_add_thread): Adapt for WOW64 processes.
9248 (windows_fetch_one_register): Likewise.
9249 (windows_nat_target::fetch_registers): Likewise.
9250 (windows_store_one_register): Likewise.
9251 (display_selector): Likewise.
9252 (display_selectors): Likewise.
9253 (handle_exception): Likewise.
9254 (windows_continue): Likewise.
9255 (windows_nat_target::resume): Likewise.
9256 (windows_add_all_dlls): Likewise.
9257 (do_initial_windows_stuff): Likewise.
9258 (windows_nat_target::attach): Likewise.
9259 (windows_get_exec_module_filename): Likewise.
9260 (windows_nat_target::create_inferior): Likewise.
9261 (windows_xfer_siginfo): Likewise.
9262 (_initialize_loadable): Initialize Wow64SuspendThread,
9263 Wow64GetThreadContext, Wow64SetThreadContext,
9264 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9265 * windows-nat.h (windows_set_context_register_offsets):
9266 Remove declaration.
9267 (windows_set_segment_register_p): Likewise.
9268 (i386_windows_segment_register_p): Add declaration.
9269 (amd64_windows_segment_register_p): Likewise.
9270
9271 2020-03-04 Luis Machado <luis.machado@linaro.org>
9272
9273 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9274 in "info registers" for AArch64/ARM.
9275
9276 The change caused "info registers" to not print GPR's.
9277
9278 gdb/ChangeLog:
9279
9280 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9281
9282 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9283 when reg->group is empty and reggroup is not.
9284
9285 2020-03-03 Tom Tromey <tromey@adacore.com>
9286
9287 * dwarf2/frame.c (struct dwarf2_frame_cache)
9288 <checked_tailcall_bottom, entry_cfa_sp_offset,
9289 entry_cfa_sp_offset_p>: Remove members.
9290 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9291 (dwarf2_frame_prev_register): Don't call
9292 dwarf2_tailcall_sniffer_first.
9293 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9294 * frame-unwind.c (add_unwinder): New fuction.
9295 (frame_unwind_init): Use it. Add tailcall unwinder.
9296
9297 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9298 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9299
9300 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9301 value should be printed as true.
9302
9303 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
9304
9305 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9306 (windows_init_abi): Set and use windows_so_ops.
9307
9308 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9309
9310 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9311 when verifying if dealing with a convenience variable.
9312
9313 2020-03-03 Luis Machado <luis.machado@linaro.org>
9314
9315 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9316
9317 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9318
9319 * infrun.c (gdbarch_supports_displaced_stepping): New.
9320 (use_displaced_stepping): Break up conditions in smaller pieces.
9321 Use gdbarch_supports_displaced_stepping.
9322 (displaced_step_prepare_throw): Use
9323 gdbarch_supports_displaced_stepping.
9324
9325 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9326
9327 * NEWS: Mention new behaviour of the history filename.
9328 * top.c (write_history_p): Add comment.
9329 (show_write_history_p): Add header comment, give a different
9330 message when history writing is on, but the history filename is
9331 empty.
9332 (history_filename): Add comment.
9333 (history_filename_empty): New function.
9334 (show_history_filename): Add header comment, give a different
9335 message when the filename is empty.
9336 (init_history): Compare history_filename against nullptr, and only
9337 read history if the filename is not empty.
9338 (set_history_filename): Add header comment, and only make
9339 non-empty filenames absolute.
9340 (init_main): Make the filename argument to 'set history filename'
9341 optional.
9342
9343 2020-03-02 Christian Biesinger <cbiesinger@google.com>
9344
9345 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9346 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9347 (fetch_fp_register): Update.
9348 (fetch_fp_regs): Update.
9349 (store_fp_register): Update.
9350 (store_fp_regs): Update.
9351 (arm_netbsd_nat_target::read_description): New function.
9352 (fetch_elfcore_registers): Update.
9353
9354 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9355
9356 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9357 general_thread if the stop reply is missing a thread-id.
9358 (remote_target::process_stop_reply): Use the first non-exited
9359 thread if the target didn't pass a thread-id.
9360 * infrun.c (do_target_wait): Move call to
9361 switch_to_inferior_no_thread to ....
9362 (do_target_wait_1): ... here.
9363
9364 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9365
9366 * debuginfod-support.c: Include defs.h first.
9367
9368 2020-02-28 Tom de Vries <tdevries@suse.de>
9369
9370 * symfile.c (set_initial_language): Use default language for lookup.
9371
9372 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
9373
9374 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9375 reader variable, pass `this` to read_cutu_die_from_dwo.
9376
9377 2020-02-27 Aaron Merey <amerey@redhat.com>
9378
9379 * source.c (open_source_file): Check for nullptr when computing
9380 srcpath.
9381
9382 2020-02-27 Tom Tromey <tromey@adacore.com>
9383
9384 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9385 member.
9386 (dwarf2_add_field): Don't update nfields.
9387 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9388
9389 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9390
9391 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9392 abs.
9393
9394 2020-02-26 Tom Tromey <tom@tromey.com>
9395
9396 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9397 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9398 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9399 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9400 per_cu_data.
9401
9402 2020-02-26 Tom Tromey <tom@tromey.com>
9403
9404 * dwarf2/index-write.c (psym_index_map): Change type.
9405 (add_address_entry_worker, write_one_signatured_type)
9406 (recursively_count_psymbols, recursively_write_psymbols)
9407 (class debug_names, psyms_seen_size, write_gdbindex)
9408 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9409
9410 2020-02-26 Aaron Merey <amerey@redhat.com>
9411
9412 * Makefile.in: Handle optional debuginfod support.
9413 * NEWS: Update.
9414 * README: Add --with-debuginfod summary.
9415 * config.in: Regenerate.
9416 * configure: Regenerate.
9417 * configure.ac: Handle optional debuginfod support.
9418 * debuginfod-support.c: debuginfod helper functions.
9419 * debuginfod-support.h: Ditto.
9420 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9421 summary.
9422 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9423 when a dwz file cannot be found.
9424 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9425 debuginfo file cannot be found.
9426 * source.c (open_source_file): Query debuginfod servers when a
9427 source file cannot be found.
9428 * top.c (print_gdb_configuration): Include
9429 --{with,without}-debuginfod in the output.
9430
9431 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9432
9433 * thread.c (thr_try_catch_cmd): Print thread name.
9434
9435 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9436
9437 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9438 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9439 dwarf2_fetch_die_type_sect_off): Move to...
9440 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9441 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9442 dwarf2_fetch_die_type_sect_off): ... here.
9443 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9444 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9445 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9446
9447 2020-02-26 Tom de Vries <tdevries@suse.de>
9448
9449 PR gdb/25603
9450 * symfile.c (set_initial_language): Exit-early if
9451 language_mode == language_mode_manual.
9452
9453 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9454
9455 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9456 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9457 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9458
9459 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9460
9461 * gdbtypes.c (create_array_type_with_stride): Handle negative
9462 array strides.
9463 * valarith.c (value_subscripted_rvalue): Likewise.
9464
9465 2020-02-25 Luis Machado <luis.machado@linaro.org>
9466
9467 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9468
9469 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9470
9471 * loc.h (dwarf2_get_die_type): Move to...
9472 * read.h (dwarf2_get_die_type): ... here.
9473 * read.c (dwarf2_get_die_type): Move doc to header.
9474
9475 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9476
9477 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9478 'gnulib/Makefile.in' to the list.
9479
9480 2020-02-24 Tom Tromey <tom@tromey.com>
9481
9482 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9483 Remove.
9484 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9485 XOBNEWVEC.
9486
9487 2020-02-24 Tom Tromey <tom@tromey.com>
9488
9489 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9490 New method.
9491 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9492 (dw2_do_instantiate_symtab, dw2_get_file_names)
9493 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9494
9495 2020-02-24 Tom Tromey <tom@tromey.com>
9496
9497 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9498 make_scoped_restore.
9499 (dwarf2_psymtab::read_symtab): Don't clear
9500 reading_partial_symbols.
9501
9502 2020-02-24 Tom de Vries <tdevries@suse.de>
9503
9504 PR gdb/25592
9505 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9506
9507 2020-02-24 Tom de Vries <tdevries@suse.de>
9508
9509 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9510 commands layout next/prev/regs.
9511
9512 2020-02-22 Tom Tromey <tom@tromey.com>
9513
9514 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9515 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9516
9517 2020-02-22 Tom Tromey <tom@tromey.com>
9518
9519 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9520
9521 2020-02-22 Tom Tromey <tom@tromey.com>
9522
9523 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9524 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9525 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9526 * tui/tui.c (_initialize_tui): Add usage text.
9527
9528 2020-02-22 Tom Tromey <tom@tromey.com>
9529
9530 * tui/tui-win.c (tui_set_focus_command)
9531 (tui_set_win_height_command): Use error_no_arg.
9532 (_initialize_tui_win): Update help text.
9533 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9534
9535 2020-02-22 Tom Tromey <tom@tromey.com>
9536
9537 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9538 * tui/tui-disasm.h (struct tui_disasm_window)
9539 <display_start_addr>: Declare.
9540 * tui/tui-source.h (struct tui_source_window)
9541 <display_start_addr>: Declare.
9542 * tui/tui-winsource.h (struct tui_source_window_base)
9543 <show_source_line, display_start_addr>: New methods.
9544 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9545 Rename and move to protected section.
9546 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9547 (tui_source_window_base::do_erase_source_content): Update.
9548 (tui_source_window_base::show_source_line): Now a method.
9549 (tui_source_window_base::show_source_content)
9550 (tui_source_window_base::tui_source_window_base)
9551 (tui_source_window_base::rerender)
9552 (tui_source_window_base::refill)
9553 (tui_source_window_base::do_scroll_horizontal)
9554 (tui_source_window_base::set_is_exec_point_at)
9555 (tui_source_window_base::update_breakpoint_info)
9556 (tui_source_window_base::update_exec_info): Update.
9557 * tui/tui-source.c (tui_source_window::set_contents)
9558 (tui_source_window::showing_source_p)
9559 (tui_source_window::do_scroll_vertical)
9560 (tui_source_window::location_matches_p)
9561 (tui_source_window::line_is_displayed): Update.
9562 (tui_source_window::display_start_addr): New method.
9563 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9564 (tui_disasm_window::do_scroll_vertical)
9565 (tui_disasm_window::location_matches_p): Update.
9566 (tui_disasm_window::display_start_addr): New method.
9567
9568 2020-02-22 Tom Tromey <tom@tromey.com>
9569
9570 * NEWS: Add entry for gdb.register_window_type.
9571 * tui/tui-layout.h (window_factory): New typedef.
9572 (tui_register_window): Declare.
9573 * tui/tui-layout.c (saved_tui_windows): New global.
9574 (tui_apply_current_layout): Use it.
9575 (tui_register_window): New function.
9576 * python/python.c (do_start_initialization): Call
9577 gdbpy_initialize_tui.
9578 (python_GdbMethods): Add "register_window_type" function.
9579 * python/python-internal.h (gdbpy_register_tui_window)
9580 (gdbpy_initialize_tui): Declare.
9581 * python/py-tui.c: New file.
9582 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9583
9584 2020-02-22 Tom Tromey <tom@tromey.com>
9585
9586 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9587
9588 2020-02-22 Tom Tromey <tom@tromey.com>
9589
9590 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9591 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9592 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9593 (tui_set_win_focus_to): Move from tui-win.c.
9594
9595 2020-02-22 Tom Tromey <tom@tromey.com>
9596
9597 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9598 functions.
9599 (known_window_types): New global.
9600 (tui_get_window_by_name): Reimplement.
9601 (initialize_known_windows): New function.
9602 (validate_window_name): Rewrite.
9603 (_initialize_tui_layout): Call initialize_known_windows.
9604
9605 2020-02-22 Tom Tromey <tom@tromey.com>
9606
9607 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9608 Remove constants.
9609 * tui/tui-winsource.h (struct tui_source_window_base)
9610 <tui_source_window_base>: Remove parameter.
9611 * tui/tui-winsource.c
9612 (tui_source_window_base::tui_source_window_base): Remove
9613 parameter.
9614 (tui_source_window_base::refill): Update.
9615 * tui/tui-stack.h (struct tui_locator_window)
9616 <tui_locator_window>: Update.
9617 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9618 Default the constructor.
9619 * tui/tui-regs.h (struct tui_data_item_window)
9620 <tui_data_item_window>: Default the constructor.
9621 (struct tui_data_window) <tui_data_window>: Likewise.
9622 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9623 Default the constructor.
9624 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9625 Default the constructor.
9626 <type>: Remove.
9627 (struct tui_win_info) <tui_win_info>: Default the constructor.
9628 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9629 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9630 Default the constructor.
9631
9632 2020-02-22 Tom Tromey <tom@tromey.com>
9633
9634 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9635 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9636 * tui/tui-win.c (tui_resize_all): Don't call
9637 tui_delete_invisible_windows.
9638 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9639 done.
9640 (tui_set_layout): Update.
9641 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9642 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9643 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9644
9645 2020-02-22 Tom Tromey <tom@tromey.com>
9646
9647 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9648 correctly.
9649
9650 2020-02-22 Tom Tromey <tom@tromey.com>
9651
9652 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9653
9654 2020-02-22 Tom Tromey <tom@tromey.com>
9655
9656 * tui/tui-winsource.h (struct tui_source_window_iterator)
9657 <inner_iterator>: New etytypedef.
9658 <tui_source_window_iterator>: Take "end" parameter.
9659 <tui_source_window_iterator>: Take iterator.
9660 <operator*, advance>: Update.
9661 <m_iter>: Change type.
9662 <m_end>: New field.
9663 (struct tui_source_windows) <begin, end>: Update.
9664 * tui/tui-layout.c (tui_windows): New global.
9665 (tui_apply_current_layout): Clear tui_windows.
9666 (tui_layout_window::apply): Update tui_windows.
9667 * tui/tui-data.h (tui_windows): Declare.
9668 (all_tui_windows): Now inline function.
9669 (class tui_window_iterator, struct all_tui_windows): Remove.
9670
9671 2020-02-22 Tom Tromey <tom@tromey.com>
9672
9673 PR tui/17850:
9674 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9675 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9676 "height" argument.
9677 (class tui_layout_window) <get_sizes>: Likewise.
9678 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9679 argument.
9680 <get_sizes>: Add "height" argument.
9681 <m_vertical>: New field.
9682 * tui/tui-layout.c (tui_layout_split::clone): Update.
9683 (tui_layout_split::get_sizes): Add "height" argument.
9684 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9685 (tui_new_layout_command): Parse "-horizontal".
9686 (_initialize_tui_layout): Update help string.
9687 (tui_layout_split::specification): Add "-horizontal" when needed.
9688 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9689 argument.
9690 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9691 New methods.
9692
9693 2020-02-22 Tom Tromey <tom@tromey.com>
9694
9695 * tui/tui-layout.h (enum tui_adjust_result): New.
9696 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9697 (class tui_layout_window) <adjust_size>: Return
9698 tui_adjust_result. Rewrite.
9699 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9700 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9701
9702 2020-02-22 Tom Tromey <tom@tromey.com>
9703
9704 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9705 parameter and return types.
9706 (class tui_layout_base) <specification>: Add "depth".
9707 (class tui_layout_window) <specification>: Add "depth".
9708 (class tui_layout_split) <specification>: Add "depth".
9709 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9710 and return types.
9711 (tui_new_layout_command): Parse sub-layouts.
9712 (_initialize_tui_layout): Update help string.
9713 (tui_layout_window::specification): Add "depth".
9714 (add_layout_command): Update.
9715
9716 2020-02-22 Tom Tromey <tom@tromey.com>
9717
9718 * NEWS: Add "tui new-layout" item.
9719 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9720 Add new-layout command to help text.
9721 (validate_window_name): New function.
9722 (tui_new_layout_command): New function.
9723 (_initialize_tui_layout): Register "new-layout".
9724 (tui_layout_window::specification): New method.
9725 (tui_layout_window::specification): New method.
9726 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9727 method.
9728 (class tui_layout_window) <specification>: New method.
9729 (class tui_layout_split) <specification>: New method.
9730
9731 2020-02-22 Tom Tromey <tom@tromey.com>
9732
9733 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9734 * tui/tui-win.c (window_name_completer): Update comment.
9735 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9736 Declare method.
9737 (class tui_layout_window) <replace_window>: Likewise.
9738 (class tui_layout_split) <replace_window>: Likewise.
9739 (tui_set_layout): Don't declare.
9740 (tui_set_initial_layout): Declare function.
9741 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9742 (asm_regs_layout): New globals.
9743 (tui_current_layout, show_layout): Remove.
9744 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9745 (find_layout, tui_apply_layout): New function.
9746 (layout_completer): Remove.
9747 (tui_next_layout): Reimplement.
9748 (tui_next_layout_command): New function.
9749 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9750 (tui_regs_layout): Reimplement.
9751 (tui_regs_layout_command): New function.
9752 (extract_display_start_addr): Rewrite.
9753 (next_layout, prev_layout): Remove.
9754 (tui_layout_window::replace_window): New method.
9755 (tui_layout_split::replace_window): New method.
9756 (destroy_layout): New function.
9757 (layout_list): New global.
9758 (add_layout_command): New function.
9759 (initialize_layouts): Update.
9760 (tui_layout_command): New function.
9761 (_initialize_tui_layout): Install "layout" commands.
9762 * tui/tui-data.h (enum tui_layout_type): Remove.
9763 (tui_current_layout): Don't declare.
9764
9765 2020-02-22 Tom Tromey <tom@tromey.com>
9766
9767 * tui/tui-regs.c (tui_reg_layout): Remove.
9768 (tui_reg_command): Use tui_regs_layout.
9769 * tui/tui-layout.h (tui_reg_command): Declare.
9770 * tui/tui-layout.c (tui_reg_command): New function.
9771
9772 2020-02-22 Tom Tromey <tom@tromey.com>
9773
9774 * tui/tui.c (tui_rl_delete_other_windows): Call
9775 tui_remove_some_windows.
9776 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9777 Declare method.
9778 (class tui_layout_window) <remove_windows>: New method.
9779 (class tui_layout_split) <remove_windows>: Declare.
9780 (tui_remove_some_windows): Declare.
9781 * tui/tui-layout.c (tui_remove_some_windows): New function.
9782 (tui_layout_split::remove_windows): New method.
9783
9784 2020-02-22 Tom Tromey <tom@tromey.com>
9785
9786 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9787 * tui/tui-layout.h (tui_next_layout): Declare.
9788 * tui/tui-layout.c (tui_next_layout): New function.
9789
9790 2020-02-22 Tom Tromey <tom@tromey.com>
9791
9792 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9793 correct coordinates.
9794
9795 2020-02-22 Tom Tromey <tom@tromey.com>
9796
9797 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9798 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9799 DATA_WIN case.
9800
9801 2020-02-22 Tom Tromey <tom@tromey.com>
9802
9803 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9804 TUI_DISASM_WIN, not tui_win_list.
9805
9806 2020-02-22 Tom Tromey <tom@tromey.com>
9807
9808 * valprint.c (generic_val_print_enum_1)
9809 (val_print_type_code_flags): Style member names.
9810 * rust-lang.c (val_print_struct, rust_print_enum)
9811 (rust_print_struct_def, rust_internal_print_type): Style member
9812 names.
9813 * p-valprint.c (pascal_object_print_value_fields): Style member
9814 names. Only call fprintf_symbol_filtered for static members.
9815 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9816 * f-valprint.c (f_val_print): Style member names.
9817 * f-typeprint.c (f_type_print_base): Style member names.
9818 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9819 call fprintf_symbol_filtered for static members.
9820 (cp_print_class_member): Style member names.
9821 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9822 member names.
9823 * ada-valprint.c (ada_print_scalar): Style enum names.
9824 (ada_val_print_enum): Likewise.
9825 * ada-typeprint.c (print_enum_type): Style enum names.
9826
9827 2020-02-21 Tom Tromey <tom@tromey.com>
9828
9829 * psympriv.h (struct partial_symtab): Update comment.
9830
9831 2020-02-21 Tom Tromey <tromey@adacore.com>
9832
9833 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9834 type is CORE_ADDR.
9835
9836 2020-02-21 Tom de Vries <tdevries@suse.de>
9837
9838 PR gdb/25534
9839 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9840 if dependencies[i]->user != NULL.
9841
9842 2020-02-21 Ali Tamur <tamur@google.com>
9843
9844 * dwarf2/read.c (dwarf2_name): Add null check.
9845
9846 2020-02-20 Tom Tromey <tom@tromey.com>
9847
9848 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9849 ">=", in binary search.
9850 (dwarf2_find_containing_comp_unit): New overload.
9851 (run_test): New self-test.
9852 (_initialize_dwarf2_read): Register new test.
9853
9854 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9855
9856 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9857 * riscv-tdep.h: Likewise.
9858 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9859 rv32-only CSR.
9860 * features/riscv/64bit-csr.xml: Regenerated.
9861
9862 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9863 Tom Tromey <tom@tromey.com>
9864
9865 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9866 of 'fputc_unfiltered'.
9867 (putchar_unfiltered): Call 'fputc_unfiltered'.
9868 (fputc_unfiltered): Call 'fputs_unfiltered'.
9869
9870 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9871
9872 * config.in: Regenerate.
9873 * configure: Regenerate.
9874 * configure.ac: Add --with-python-libdir option.
9875 * main.c: Use WITH_PYTHON_LIBDIR.
9876
9877 2020-02-19 Tom Tromey <tom@tromey.com>
9878
9879 * symtab.c (general_symbol_info::compute_and_set_names): Use
9880 obstack_strndup. Simplify call to symbol_set_demangled_name.
9881
9882 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9883
9884 * dwarf2/read.c (allocate_signatured_type_table,
9885 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9886 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9887 Remove objfile parameter, update all callers.
9888
9889 2020-02-19 Doug Evans <dje@google.com>
9890
9891 PR rust/25535
9892 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9893 rust_enum_variant calculation.
9894
9895 2020-02-19 Tom Tromey <tromey@adacore.com>
9896
9897 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9898
9899 2020-02-19 Tom Tromey <tromey@adacore.com>
9900
9901 * ada-lang.c (cache_symbol): Use obstack_strdup.
9902
9903 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9904
9905 * configure: Regenerate.
9906
9907 2020-02-19 Tom Tromey <tromey@adacore.com>
9908
9909 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9910 NULL check.
9911
9912 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9913
9914 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9915
9916 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9917
9918 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9919 if GDBSERVER is not defined.
9920 (riscv_tdesc_cache): Likewise, also store const target_desc.
9921 (STATIC_IN_GDB): Define.
9922 (riscv_create_target_description): Update declaration with
9923 STATIC_IN_GDB.
9924 (riscv_lookup_target_description): New function, only define if
9925 GDBSERVER is not defined.
9926 * arch/riscv.h (riscv_create_target_description): Declare only
9927 when GDBSERVER is defined.
9928 (riscv_lookup_target_description): New declaration when GDBSERVER
9929 is not defined.
9930 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9931 (riscv_linux_read_features): ...this, and return
9932 riscv_gdbarch_features instead of target_desc.
9933 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9934 (riscv_linux_read_description): Rename to...
9935 (riscv_linux_read_features): ...this.
9936 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9937 Update to use riscv_gdbarch_features and
9938 riscv_lookup_target_description.
9939 * riscv-tdep.c (riscv_find_default_target_description): Use
9940 riscv_lookup_target_description instead of
9941 riscv_create_target_description.
9942
9943 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9944
9945 * valprint.c (generic_val_print_enum_1): When printing a flag
9946 enum with value 0 and there is no enumerator with value 0, print
9947 just "0" instead of "(unknown: 0x0)".
9948
9949 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9950
9951 * valprint.c (generic_val_print_enum_1): Print unknown part of
9952 flag enum in hex.
9953
9954 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9955
9956 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9957 flag enums to contain duplicate enumerators.
9958 * valprint.c (generic_val_print_enum_1): Update comment.
9959
9960 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9961
9962 * dwarf2/read.c: Include "count-one-bits.h".
9963 (update_enumeration_type_from_children): If an enumerator has
9964 multiple bits set, don't treat the enumeration as a "flag enum".
9965 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9966 of flag enums have 0 or 1 bit set.
9967
9968 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9969
9970 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9971 conversion.
9972 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9973 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9974 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9975 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9976 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9977
9978 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9979
9980 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9981
9982 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9983
9984 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9985 displaced_step_closure_up.
9986 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9987 (struct displaced_step_closure_up):
9988 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9989 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9990 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9991 Likewise.
9992 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9993 * gdbarch.c, gdbarch.h: Re-generate.
9994 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9995 displaced_step_closure_up.
9996 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9997 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9998 * infrun.h (displaced_step_closure_up): New type alias.
9999 (struct displaced_step_inferior_state) <step_closure>: Change
10000 type to displaced_step_closure_up.
10001 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
10002 displaced_step_closure_up.
10003 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10004
10005 2020-02-14 Tom Tromey <tom@tromey.com>
10006
10007 * minidebug.c (gnu_debug_key): New global.
10008 (find_separate_debug_file_in_section): Use it.
10009
10010 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10011
10012 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
10013 std::unique_ptr.
10014 * gdbarch.c: Re-generate.
10015 * gdbarch.h: Re-generate.
10016 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
10017 change.
10018 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10019 type to std::unique_ptr.
10020 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
10021 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
10022 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
10023 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
10024 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
10025 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
10026 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
10027 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
10028 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
10029
10030 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10031
10032 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10033 std::unique_ptr.
10034 (displaced_step_clear): Rename to...
10035 (displaced_step_reset): ... this. Just call displaced->reset ().
10036 (displaced_step_clear_cleanup): Rename to...
10037 (displaced_step_reset_cleanup): ... this.
10038 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10039 (displaced_step_fixup): Likewise.
10040 (resume_1): Likewise.
10041 (handle_inferior_event): Restore child's memory before calling
10042 displaced_step_fixup on the parent.
10043 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10044 to std::unique_ptr.
10045 <step_closure>: Change type to std::unique_ptr.
10046
10047 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
10048
10049 * arm-tdep.c: Include count-one-bits.h.
10050 (cleanup_block_store_pc): Use count_one_bits.
10051 (cleanup_block_load_pc): Use count_one_bits.
10052 (arm_copy_block_xfer): Use count_one_bits.
10053 (thumb2_copy_block_xfer): Use count_one_bits.
10054 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10055 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10056 (thumb_get_next_pcs_raw): Use count_one_bits.
10057 (arm_get_next_pcs_raw): Use count_one_bits_l.
10058 * arch/arm.c (bitcount): Remove.
10059 * arch/arm.h (bitcount): Remove.
10060
10061 2020-02-14 Tom Tromey <tromey@adacore.com>
10062
10063 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10064 Update.
10065 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10066 * dwarf2/loc.c (call_site_find_chain_1): Return
10067 unique_xmalloc_ptr.
10068 (call_site_find_chain): Likewise.
10069
10070 2020-02-14 Richard Biener <rguenther@suse.de>
10071
10072 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10073 on expression with division operators.
10074
10075 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10076
10077 * MAINTAINERS (Write After Approval): Adding myself.
10078
10079 2020-02-12 Tom Tromey <tom@tromey.com>
10080
10081 * event-loop.c (event_data, gdb_event, event_handler_func):
10082 Remove.
10083
10084 2020-02-12 Tom Tromey <tom@tromey.com>
10085
10086 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10087 (dwarf2_frame_objfile_data): Add comment.
10088 (find_comp_unit, set_comp_unit): New functions.
10089 (dwarf2_frame_find_fde): Use find_comp_unit.
10090 (dwarf2_build_frame_info): Use set_comp_unit.
10091
10092 2020-02-12 Tom Tromey <tom@tromey.com>
10093
10094 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10095 (comp_unit): Don't initialize objfile.
10096 (execute_cfa_program): Add text_offset parameter.
10097 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10098 (dwarf2_frame_cache): Update.
10099 (dwarf2_build_frame_info): Don't set "objfile" member.
10100
10101 2020-02-12 Tom Tromey <tom@tromey.com>
10102
10103 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10104 (decode_frame_entry): Likewise.
10105 (dwarf2_build_frame_info): Update.
10106
10107 2020-02-12 Tom Tromey <tom@tromey.com>
10108
10109 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10110 (decode_frame_entry_1): Use the comp_unit obstack.
10111
10112 2020-02-12 Tom Tromey <tom@tromey.com>
10113
10114 * dwarf2/frame.c (struct comp_unit): Add initializers and
10115 constructor.
10116 (dwarf2_frame_objfile_data): Store a comp_unit.
10117 (dwarf2_frame_find_fde): Update.
10118 (dwarf2_build_frame_info): Use "new".
10119
10120 2020-02-12 Tom Tromey <tom@tromey.com>
10121
10122 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10123 (dwarf2_fde_table): Typedef for std::vector.
10124 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10125 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10126 (decode_frame_entry): Update.
10127 (dwarf2_build_frame_info): Use "new".
10128
10129 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10130
10131 * arm-tdep.c (arm_gdbarch_init): Update.
10132 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10133 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10134 have_neon, is_m>: Change to bool.
10135
10136 2020-02-12 Christian Biesinger <cbiesinger@google.com>
10137
10138 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10139
10140 2020-02-12 Tom Tromey <tom@tromey.com>
10141
10142 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10143
10144 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
10145
10146 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10147 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10148
10149 2020-02-11 Tom Tromey <tom@tromey.com>
10150
10151 * psymtab.h: Update comment.
10152
10153 2020-02-11 Tom Tromey <tom@tromey.com>
10154
10155 * gdb_obstack.h (struct auto_obstack): Use
10156 DISABLE_COPY_AND_ASSIGN.
10157
10158 2020-02-11 Tom Tromey <tom@tromey.com>
10159
10160 * dwarf2/frame.h (struct objfile): Don't forward declare.
10161
10162 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10163
10164 * cris-tdep.c (cris_supply_gregset): Change signature to match
10165 what struct regset expects.
10166 (cris_regset): New struct.
10167 (fetch_core_registers): Remove.
10168 (cris_iterate_over_regset_sections): New function.
10169 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10170 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10171
10172 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10173
10174 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10175 registers.
10176
10177 2020-02-11 Christian Biesinger <cbiesinger@google.com>
10178
10179 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10180
10181 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10182
10183 * configure: Re-generate.
10184
10185 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10186
10187 * configure: Re-generate.
10188
10189 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
10190
10191 * acinclude: Update warning.m4 path.
10192 * warning.m4: Move to gdbsupport.
10193
10194 2020-02-11 Tom Tromey <tromey@adacore.com>
10195
10196 * remote.c (remote_console_output): Update.
10197 * printcmd.c (printf_command): Update.
10198 * event-loop.c (gdb_wait_for_event): Update.
10199 * linux-nat.c (sigchld_handler): Update.
10200 * remote-sim.c (gdb_os_write_stdout): Update.
10201 (gdb_os_flush_stdout): Update.
10202 (gdb_os_flush_stderr): Update.
10203 (gdb_os_write_stderr): Update.
10204 * exceptions.c (print_exception): Update.
10205 * remote-fileio.c (remote_fileio_func_read): Update.
10206 (remote_fileio_func_write): Update.
10207 * tui/tui.c (tui_enable): Update.
10208 * tui/tui-interp.c (tui_interp::init): Update.
10209 * utils.c (init_page_info): Update.
10210 (putchar_unfiltered, fputc_unfiltered): Update.
10211 (gdb_flush): Update.
10212 (emit_style_escape): Update.
10213 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10214 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10215 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10216 (stderr_file::write): Update.
10217 (stderr_file::puts): Update.
10218 * ui-file.h (ui_file_isatty, ui_file_write)
10219 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10220 (ui_file_puts): Don't declare.
10221
10222 2020-02-10 Tom de Vries <tdevries@suse.de>
10223
10224 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10225 sentinel to char *.
10226
10227 2020-02-09 Tom de Vries <tdevries@suse.de>
10228
10229 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10230 filename if it matches "<artificial>".
10231
10232 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10233
10234 * windows-tdep.c (struct enum_value_name): New struct.
10235 (create_enum): New function.
10236 (windows_get_siginfo_type): Create and use enum types.
10237
10238 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
10239
10240 * NEWS: Mention $_siginfo support for Windows.
10241 * windows-nat.c (handle_exception): Set siginfo_er.
10242 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10243 (windows_xfer_siginfo): New function.
10244 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10245 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10246 (init_windows_gdbarch_data): New function.
10247 (get_windows_gdbarch_data): New function.
10248 (windows_get_siginfo_type): New function.
10249 (windows_init_abi): Register windows_get_siginfo_type.
10250 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10251
10252 2020-02-08 Tom Tromey <tom@tromey.com>
10253
10254 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10255 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10256 <keep>: Declare method.
10257 <m_keep>: Remove member.
10258 <~cutu_reader>: Remove.
10259 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10260 (cutu_reader::cutu_reader): Update.
10261 (cutu_reader::keep): Rename from ~cutu_reader.
10262 (process_psymtab_comp_unit, build_type_psymtabs_1)
10263 (process_skeletonless_type_unit, load_partial_comp_unit)
10264 (load_full_comp_unit, dwarf2_read_addr_index)
10265 (read_signatured_type): Update.
10266
10267 2020-02-08 Tom Tromey <tom@tromey.com>
10268
10269 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10270 "want_partial_unit" parameter.
10271 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10272 Inline check for DW_TAG_partial_unit.
10273 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10274
10275 2020-02-08 Tom Tromey <tom@tromey.com>
10276
10277 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10278 read.c.
10279 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10280 read.c.
10281
10282 2020-02-08 Tom Tromey <tom@tromey.com>
10283
10284 * dwarf2/read.c (read_address): Move to comp-unit.c.
10285 (dwarf2_rnglists_process, dwarf2_ranges_process)
10286 (read_attribute_value, dwarf_decode_lines_1)
10287 (var_decode_location, decode_locdesc): Update.
10288 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10289 read.c. Remove "cu" parameter.
10290 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10291 method.
10292
10293 2020-02-08 Tom Tromey <tom@tromey.com>
10294
10295 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10296 (read_indirect_line_string): Update.
10297 * dwarf2/comp-unit.c (read_offset): Remove.
10298 (read_comp_unit_head): Update.
10299 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10300 method.
10301 (read_offset): Don't declare.
10302
10303 2020-02-08 Tom Tromey <tom@tromey.com>
10304
10305 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10306 * dwarf2/read.c (struct comp_unit_head): Move to
10307 dwarf2/comp-unit.h.
10308 (enum class rcuh_kind): Move to comp-unit.h.
10309 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10310 (read_comp_unit_head, error_check_comp_unit_head)
10311 (read_and_check_comp_unit_head): Move to comp-unit.c.
10312 (read_offset, dwarf_unit_type_name): Likewise.
10313 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10314 (cutu_reader::cutu_reader, read_call_site_scope)
10315 (find_partial_die, follow_die_offset): Update.
10316 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10317
10318 2020-02-08 Tom Tromey <tom@tromey.com>
10319
10320 * dwarf2/read.c (read_offset_1): Move to leb.c.
10321 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10322 (dwarf_decode_macro_bytes): Update.
10323 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10324 * dwarf2/leb.h (read_offset): Declare.
10325
10326 2020-02-08 Tom Tromey <tom@tromey.com>
10327
10328 * dwarf2/read.c (dwarf2_section_size): Remove.
10329 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10330 Update.
10331 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10332
10333 2020-02-08 Tom Tromey <tom@tromey.com>
10334
10335 * dwarf2/read.c (read_initial_length): Move to leb.c.
10336 * dwarf2/leb.h (read_initial_length): Declare.
10337 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10338 handle_nonstd parameter.
10339 * dwarf2/frame.c (read_initial_length): Remove.
10340 (decode_frame_entry_1): Update.
10341
10342 2020-02-08 Tom Tromey <tom@tromey.com>
10343
10344 * dwarf2/loc.c (dwarf2_find_location_expression)
10345 (dwarf_evaluate_loc_desc::get_tls_address)
10346 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10347 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10348 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10349 (dwarf2_compile_property_to_c)
10350 (dwarf2_loc_desc_get_symbol_read_needs)
10351 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10352 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10353 (loclist_describe_location, loclist_tracepoint_var_ref)
10354 (loclist_generate_c_location): Update.
10355 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10356 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10357 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10358 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10359 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10360 (dwarf2_per_cu_data::addr_size)
10361 (dwarf2_per_cu_data::ref_addr_size)
10362 (dwarf2_per_cu_data::text_offset)
10363 (dwarf2_per_cu_data::addr_type): Now methods.
10364 (per_cu_header_read_in): Make per_cu "const".
10365 (dwarf2_version): Remove.
10366 (dwarf2_per_cu_data::int_type): Now a method.
10367 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10368 (set_die_type, read_array_type, read_subrange_index_type)
10369 (read_tag_string_type, read_subrange_type): Update.
10370 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10371 offset_size, ref_addr_size, text_offset, addr_type, version,
10372 objfile, int_type, addr_sized_int_type>: Declare methods.
10373
10374 2020-02-08 Tom Tromey <tom@tromey.com>
10375
10376 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10377 Move earlier.
10378
10379 2020-02-08 Tom Tromey <tom@tromey.com>
10380
10381 * dwarf2/read.h (dwarf_line_debug): Declare.
10382 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10383 * dwarf2/read.c: Move line_header code to new files.
10384 (dwarf_line_debug): No longer static.
10385 * dwarf2/line-header.c: New file.
10386 * dwarf2/line-header.h: New file.
10387
10388 2020-02-08 Tom Tromey <tom@tromey.com>
10389
10390 * dwarf2/read.c (struct line_header) <file_full_name,
10391 file_file_name>: Return unique_xmalloc_ptr.
10392 (line_header::file_file_name): Update.
10393 (line_header::file_full_name): Update.
10394 (dw2_get_file_names_reader): Update.
10395 (macro_start_file): Update.
10396
10397 2020-02-08 Tom Tromey <tom@tromey.com>
10398
10399 * dwarf2/read.c (struct line_header) <file_full_name,
10400 file_file_name>: Declare methods.
10401 (dw2_get_file_names_reader): Update.
10402 (file_file_name): Now a method.
10403 (file_full_name): Likewise.
10404 (macro_start_file): Update.
10405
10406 2020-02-08 Tom Tromey <tom@tromey.com>
10407
10408 * dwarf2/read.c (dwarf_always_disassemble)
10409 (show_dwarf_always_disassemble): Move to loc.c.
10410 (_initialize_dwarf2_read): Move "always-disassemble" registration
10411 to loc.c.
10412 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10413 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10414 static.
10415 (show_dwarf_always_disassemble): Move from read.c.
10416 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10417
10418 2020-02-08 Tom Tromey <tom@tromey.com>
10419
10420 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10421 (create_quick_file_names_table): Return htab_up.
10422 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10423 Update.
10424 * dwarf2/read.h (struct dwarf2_per_objfile)
10425 <quick_file_names_table>: Now htab_up.
10426
10427 2020-02-08 Tom Tromey <tom@tromey.com>
10428
10429 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10430
10431 2020-02-08 Tom Tromey <tom@tromey.com>
10432
10433 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10434 Rewrite.
10435 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10436 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10437 (abbrev_table::abbrev_table): No longer inline.
10438 (ABBREV_HASH_SIZE): Remove.
10439 (abbrev_table::m_abbrevs): Now an htab_up.
10440
10441 2020-02-08 Tom Tromey <tom@tromey.com>
10442
10443 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10444 (cutu_reader): Update.
10445 (build_type_psymtabs_1): Update.
10446 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10447 (abbrev_table::alloc_abbrev): Update.
10448 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10449 (abbrev_table::read): New static method, renamed from
10450 abbrev_table_read_table.
10451 (abbrev_table::alloc_abbrev)
10452 (abbrev_table::add_abbrev): Now private.
10453 (abbrev_table::abbrev_table): Now private.
10454 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10455
10456 2020-02-08 Tom Tromey <tom@tromey.com>
10457
10458 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10459 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10460 htab_up.
10461
10462 2020-02-08 Tom Tromey <tom@tromey.com>
10463
10464 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10465 htab_up.
10466 (lookup_dwo_unit_in_dwp): Update.
10467 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10468 on obstack.
10469
10470 2020-02-08 Tom Tromey <tom@tromey.com>
10471
10472 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10473 obstack.
10474
10475 2020-02-08 Tom Tromey <tom@tromey.com>
10476
10477 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10478 line_header_hash.
10479 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10480 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10481 Change type to htab_up.
10482
10483 2020-02-08 Tom Tromey <tom@tromey.com>
10484
10485 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10486 htab_up. Don't allocate on obstack.
10487 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10488 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10489 Change type to htab_up.
10490
10491 2020-02-08 Tom Tromey <tom@tromey.com>
10492
10493 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10494 Change type to htab_up.
10495 * dwarf2/read.c (create_signatured_type_table_from_index)
10496 (create_signatured_type_table_from_debug_names)
10497 (create_all_type_units, add_type_unit)
10498 (lookup_dwo_signatured_type, lookup_signatured_type)
10499 (process_skeletonless_type_unit): Update.
10500 (create_debug_type_hash_table, create_debug_types_hash_table):
10501 Change type of types_htab.
10502 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10503 htab_up. Don't allocate on obstack.
10504 (create_cus_hash_table): Change type of cus_htab parameter.
10505 (struct dwo_file) <cus, tus>: Now htab_up.
10506 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10507 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10508 (queue_and_load_all_dwo_tus): Update.
10509 * dwarf2/index-write.c (write_gdbindex): Update.
10510 (write_debug_names): Update.
10511
10512 2020-02-08 Tom Tromey <tom@tromey.com>
10513
10514 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10515 dwarf2/read.c. Remove "next" member. Add constructor ntad
10516 destructor.
10517 (struct dwarf2_per_objfile) <queue>: New member.
10518 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10519 dwarf2/read.h.
10520 (dwarf2_queue, dwarf2_queue_tail): Remove.
10521 (class dwarf2_queue_guard): Add parameter to constructor. Use
10522 DISABLE_COPY_AND_ASSIGN.
10523 <m_per_objfile>: New member.
10524 <~dwarf2_queue_guard>: Rewrite.
10525 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10526 Update.
10527 (~dwarf2_queue_item): New.
10528
10529 2020-02-08 Tom Tromey <tom@tromey.com>
10530
10531 * dwarf2/read.c (struct die_info) <has_children>: New member.
10532 (dw2_get_file_names_reader): Remove has_children.
10533 (dw2_get_file_names): Update.
10534 (read_cutu_die_from_dwo): Remove has_children.
10535 (cutu_reader::init_tu_and_read_dwo_dies)
10536 (cutu_reader::cutu_reader): Update.
10537 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10538 Remove has_children.
10539 (build_type_psymtabs_1, process_skeletonless_type_unit)
10540 (load_partial_comp_unit, load_full_comp_unit): Update.
10541 (create_dwo_cu_reader): Remove has_children.
10542 (create_cus_hash_table, read_die_and_children): Update.
10543 (read_full_die_1,read_full_die): Remove has_children.
10544 (read_signatured_type): Update.
10545 (class cutu_reader) <has_children>: Remove.
10546
10547 2020-02-08 Tom Tromey <tom@tromey.com>
10548
10549 * dwarf2/expr.c: Rename from dwarf2expr.c.
10550 * dwarf2/expr.h: Rename from dwarf2expr.h.
10551 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10552 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10553 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10554 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10555 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10556 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10557 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10558 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10559 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10560 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10561 * dwarf2/loc.c: Rename from dwarf2loc.c.
10562 * dwarf2/loc.h: Rename from dwarf2loc.h.
10563 * dwarf2/read.c: Rename from dwarf2read.c.
10564 * dwarf2/read.h: Rename from dwarf2read.h.
10565 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10566 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10567 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10568 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10569 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10570 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10571 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10572 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10573 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10574 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10575 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10576 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10577 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10578 Update.
10579 * Makefile.in (COMMON_SFILES): Update.
10580 (HFILES_NO_SRCDIR): Update.
10581
10582 2020-02-08 Tom Tromey <tom@tromey.com>
10583
10584 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10585 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10586
10587 2020-02-08 Tom Tromey <tom@tromey.com>
10588
10589 * dwarf2read.h (struct die_info): Don't declare.
10590
10591 2020-02-08 Tom Tromey <tom@tromey.com>
10592
10593 * dwarf2read.h (die_info_ptr): Remove typedef.
10594
10595 2020-02-08 Tom Tromey <tom@tromey.com>
10596
10597 * dwarf2read.c (read_call_site_scope)
10598 (handle_data_member_location, dwarf2_add_member_fn)
10599 (mark_common_block_symbol_computed, read_common_block)
10600 (attr_to_dynamic_prop, partial_die_info::read)
10601 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10602 (dwarf2_symbol_mark_computed, set_die_type): Update.
10603 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10604 method.
10605 (attr_form_is_block): Don't declare.
10606 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10607
10608 2020-02-08 Tom Tromey <tom@tromey.com>
10609
10610 * dwarf2read.c (dwarf2_find_base_address, )
10611 (read_call_site_scope, rust_containing_type)
10612 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10613 (handle_data_member_location, dwarf2_add_member_fn)
10614 (get_alignment, read_structure_type, process_structure_scope)
10615 (mark_common_block_symbol_computed, read_common_block)
10616 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10617 (partial_die_info::read, read_attribute_value, new_symbol)
10618 (lookup_die_type, dwarf2_get_ref_die_offset)
10619 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10620 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10621 (dwarf2_symbol_mark_computed): Update.
10622 * dwarf2/attribute.h (struct attribute) <value_as_address,
10623 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10624 methods.
10625 (value_as_address, attr_form_is_section_offset)
10626 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10627 * dwarf2/attribute.c (attribute::value_as_address)
10628 (attribute::form_is_section_offset, attribute::form_is_constant)
10629 (attribute::form_is_ref): Now methods.
10630
10631 2020-02-08 Tom Tromey <tom@tromey.com>
10632
10633 * dwarf2read.c (struct attribute, DW_STRING)
10634 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10635 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10636 (attr_form_is_block, attr_form_is_section_offset)
10637 (attr_form_is_constant, attr_form_is_ref): Move.
10638 * dwarf2/attribute.h: New file.
10639 * dwarf2/attribute.c: New file, from dwarf2read.c.
10640 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10641
10642 2020-02-08 Tom Tromey <tom@tromey.com>
10643
10644 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10645 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10646 Move.
10647 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10648 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10649 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10650 abbrev.c.
10651 * dwarf2/abbrev.h: New file.
10652 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10653 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10654
10655 2020-02-08 Tom Tromey <tom@tromey.com>
10656
10657 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10658 (dwarf2_section_size, dwarf2_get_section_info)
10659 (create_signatured_type_table_from_debug_names)
10660 (create_addrmap_from_aranges, read_debug_names_from_section)
10661 (get_gdb_index_contents_from_section, read_comp_unit_head)
10662 (error_check_comp_unit_head, read_abbrev_offset)
10663 (create_debug_type_hash_table, init_cu_die_reader)
10664 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10665 (read_comp_units_from_section, create_cus_hash_table)
10666 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10667 (create_dwp_v2_section, dwarf2_rnglists_process)
10668 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10669 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10670 (read_indirect_string_from_dwz, read_addr_index_1)
10671 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10672 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10673 (fill_in_loclist_baton): Update.
10674 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10675 get_containing_section, get_bfd_owner, get_bfd_section,
10676 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10677 (dwarf2_read_section, get_section_name, get_section_file_name)
10678 (get_containing_section, get_section_bfd_owner)
10679 (get_section_bfd_section, get_section_name, get_section_file_name)
10680 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10681 declare.
10682 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10683 (dwarf2_section_info::get_bfd_owner)
10684 (dwarf2_section_info::get_bfd_section)
10685 (dwarf2_section_info::get_name)
10686 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10687 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10688 (dwarf2_section_info::read): Now methods.
10689 * dwarf-index-write.c (class debug_names): Update.
10690
10691 2020-02-08 Tom Tromey <tom@tromey.com>
10692
10693 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10694 Move to dwarf2/section.h.
10695 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10696 (get_section_bfd_section, get_section_name)
10697 (get_section_file_name, get_section_id, get_section_flags)
10698 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10699 dwarf2/section.c.
10700 * dwarf2/section.h: New file.
10701 * dwarf2/section.c: New file, from dwarf2read.c.
10702 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10703
10704 2020-02-08 Tom Tromey <tom@tromey.com>
10705
10706 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10707 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10708 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10709 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10710 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10711 * dwarf2/leb.h: New file, from dwarf2read.c.
10712 * dwarf2/leb.c: New file, from dwarf2read.c.
10713 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10714 Remove.
10715 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10716 (COMMON_SFILES): Add dwarf2/leb.c.
10717
10718 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10719
10720 GDB 9.1 released.
10721
10722 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10723
10724 PR gdb/25190:
10725 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10726 * gdb/remote.c (remote_console_output): Update.
10727 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10728 (ui_file_puts): ...this.
10729 * gdb/ui-file.h (ui_file_puts): Add declaration.
10730 * gdb/utils.c (emit_style_escape): Update.
10731 (flush_wrap_buffer): Update.
10732 (fputs_maybe_filtered): Update.
10733 (fputs_unfiltered): Add function.
10734
10735 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10736
10737 * gdb/event-loop.c (gdb_wait_for_event): Update.
10738 * gdb/printcmd.c (printf_command): Update.
10739 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10740 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10741 (gdb_os_flush_stderr): Update.
10742 * gdb/remote.c (remote_console_output): Update.
10743 * gdb/ui-file.c (gdb_flush): Rename to...
10744 (ui_file_flush): ...this.
10745 (stderr_file::write): Update.
10746 (stderr_file::puts): Update.
10747 * gdb/ui-file.h (gdb_flush): Rename to...
10748 (ui_file_flush): ...this.
10749 * gdb/utils.c (gdb_flush): Add function.
10750 * gdb/utils.h (gdb_flush): Add declaration.
10751
10752 2020-02-07 Tom Tromey <tromey@adacore.com>
10753
10754 PR breakpoints/24915:
10755 * source.c (find_and_open_source): Do not check basenames_may_differ.
10756
10757 2020-02-07 Tom Tromey <tom@tromey.com>
10758
10759 * README: Update gdbserver documentation.
10760 * gdbserver: Move to top level.
10761 * configure.tgt (build_gdbserver): Remove.
10762 * configure.ac: Remove --enable-gdbserver.
10763 * configure: Rebuild.
10764 * Makefile.in (distclean): Don't mention gdbserver.
10765
10766 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10767
10768 * source-cache.c (source_cache::ensure): Surround
10769 get_plain_source_lines with a try/catch.
10770 (source_cache::get_line_charpos): Get rid of try/catch
10771 and only check for the return value of "ensure".
10772 * tui/tui-source.c (tui_source_window::set_contents):
10773 Simplify "nlines" calculation.
10774
10775 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10776
10777 * MAINTAINERS (Write After Approval): Add myself.
10778
10779 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10780
10781 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10782 function call.
10783
10784 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10785
10786 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10787
10788 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10789
10790 * nat/riscv-linux-tdesc.h: New file.
10791 * nat/riscv-linux-tdesc.c: New file, taking code from...
10792 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10793 ... here.
10794 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10795 NATDEPFILES.
10796
10797 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10798
10799 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10800 we don't set the fake simulator ptid to the null_ptid.
10801
10802 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10803
10804 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10805 * gdbthread.h (class thread_info) <resumed>: Likewise.
10806 * infrun.c (resume_1): Likewise.
10807 (proceed): Likewise.
10808 (infrun_thread_stop_requested): Likewise.
10809 (stop_all_threads): Likewise.
10810 (handle_inferior_event): Likewise.
10811 (restart_threads): Likewise.
10812 (finish_step_over): Likewise.
10813 (keep_going_stepped_thread): Likewise.
10814 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10815 (linux_handle_extended_wait): Likewise.
10816 * record-btrace.c (get_thread_current_frame_id): Likewise.
10817 * record-full.c (record_full_wait_1): Likewise.
10818 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10819 * target.c (target_resume): Likewise.
10820 * thread.c (set_running_thread): Likewise.
10821
10822 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10823
10824 * f-valprint.c (f77_print_array_1): Changed datatype of index
10825 variable to LONGEST from int to enable it to contain bound
10826 values correctly.
10827
10828 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10829
10830 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10831 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10832 offsets according to FLEN determined.
10833 (riscv_linux_nat_target::read_description): Determine FLEN
10834 dynamically.
10835 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10836 according to FLEN determined.
10837 (riscv_linux_nat_target::store_registers): Likewise.
10838
10839 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10840
10841 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10842 when reg->group is empty and reggroup is not.
10843
10844 2020-01-31 Tom Tromey <tromey@adacore.com>
10845
10846 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10847 Call beneath target's mourn_inferior after unpushing.
10848
10849 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10850
10851 PR tui/9765
10852 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10853 have enough lines to fill the screen, still return the lowest
10854 address we found.
10855
10856 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10857
10858 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10859 '-', '<', and '>' commands.
10860
10861 2020-01-29 Pedro Alves <palves@redhat.com>
10862 Sergio Durigan Junior <sergiodj@redhat.com>
10863
10864 * infcmd.c (construct_inferior_arguments): Assert that
10865 'argc' is greater than 0.
10866
10867 2020-01-29 Luis Machado <luis.machado@linaro.org>
10868
10869 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10870 (BRK_INSN_MASK): Define to 0xd4200000.
10871 (aarch64_program_breakpoint_here_p): New function.
10872 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10873 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10874 breakpoint.c.
10875 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10876 breakpoint.h
10877 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10878 call gdbarch_program_breakpoint_here_p.
10879 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10880 default_program_breakpoint_here_p, changed return type to bool and
10881 simplified.
10882 * breakpoint.h (program_breakpoint_here): Moved prototype to
10883 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10884 return type to bool.
10885 * gdbarch.c: Regenerate.
10886 * gdbarch.h: Regenerate.
10887 * gdbarch.sh (program_breakpoint_here_p): New method.
10888 * infrun.c (handle_signal_stop): Call
10889 gdbarch_program_breakpoint_here_p.
10890
10891 2020-01-26 Tom Tromey <tom@tromey.com>
10892
10893 * ctfread.c (struct ctf_fp_info): Reindent.
10894 (_initialize_ctfread): Remove.
10895
10896 2020-01-26 Tom Tromey <tom@tromey.com>
10897
10898 * psymtab.c (partial_map_expand_apply)
10899 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10900 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10901 (psym_print_stats, psym_expand_symtabs_for_function)
10902 (psym_map_symbol_filenames, psym_map_matching_symbols)
10903 (psym_expand_symtabs_matching)
10904 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10905 (maintenance_check_psymtabs): Use new methods.
10906 * psympriv.h (struct partial_symtab) <readin_p,
10907 get_compunit_symtab>: New methods.
10908 <readin, compunit_symtab>: Remove members.
10909 (struct standard_psymtab): New.
10910 (struct legacy_psymtab): Derive from standard_psymtab.
10911 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10912 standard_psymtab.
10913 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10914
10915 2020-01-26 Tom Tromey <tom@tromey.com>
10916
10917 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10918 read_dependencies. Add assert.
10919 * psymtab.c (partial_symtab::read_dependencies): New method.
10920 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10921 method.
10922 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10923 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10924 read_dependencies.
10925 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10926 Add assert.
10927
10928 2020-01-26 Tom Tromey <tom@tromey.com>
10929
10930 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10931 Call expand_psymtab.
10932 (xcoff_read_symtab): Call expand_psymtab.
10933 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10934 legacy_expand_psymtab.
10935 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10936 method.
10937 (struct legacy_psymtab) <expand_psymtab>: Implement.
10938 <legacy_expand_psymtab>: New member.
10939 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10940 (parse_partial_symbols): Set legacy_expand_psymtab.
10941 (psymtab_to_symtab_1): Change argument order. Call
10942 expand_psymtab.
10943 (new_psymtab): Set legacy_expand_psymtab.
10944 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10945 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10946 expand_psymtab.
10947 (dwarf2_psymtab::expand_psymtab): Rename from
10948 psymtab_to_symtab_1. Call expand_psymtab.
10949 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10950 (dbx_end_psymtab): Likewise.
10951 (dbx_psymtab_to_symtab_1): Change argument order. Call
10952 expand_psymtab.
10953 (dbx_read_symtab): Call expand_psymtab.
10954 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10955 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10956 (ctf_psymtab::read_symtab): Call expand_psymtab.
10957
10958 2020-01-26 Tom Tromey <tom@tromey.com>
10959
10960 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10961 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10962 messages.
10963 * mdebugread.c (mdebug_read_symtab): Remove prints.
10964 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10965 assert.
10966 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10967
10968 2020-01-26 Tom Tromey <tom@tromey.com>
10969
10970 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10971 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10972 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10973 legacy_symtab.
10974 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10975 * psymtab.c (psymtab_to_symtab): Call method.
10976 (dump_psymtab): Update.
10977 * psympriv.h (struct partial_symtab): Add virtual destructor.
10978 <read_symtab>: New method.
10979 (struct legacy_symtab): New.
10980 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10981 (struct pst_map) <pst>: Now a legacy_psymtab.
10982 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10983 (new_psymtab): Use legacy_psymtab.
10984 * dwarf2read.h (struct dwarf2_psymtab): New.
10985 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10986 * dwarf2read.c (dwarf2_create_include_psymtab)
10987 (dwarf2_build_include_psymtabs, create_type_unit_group)
10988 (create_partial_symtab, process_psymtab_comp_unit_reader)
10989 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10990 (set_partial_user): Use dwarf2_psymtab.
10991 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10992 (psymtab_to_symtab_1, process_full_comp_unit)
10993 (process_full_type_unit, dwarf2_ranges_read)
10994 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10995 (dwarf_decode_lines): Use dwarf2_psymtab.
10996 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10997 (add_address_entry_worker, write_one_signatured_type)
10998 (recursively_count_psymbols, recursively_write_psymbols)
10999 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
11000 (write_debug_names): Likewise.
11001 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
11002 <pst>: Now a legacy_psymtab.
11003 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
11004 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
11005 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
11006 * ctfread.c (struct ctf_psymtab): New.
11007 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
11008 ctf_psymtab.
11009 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
11010 (create_partial_symtab): Return a ctf_psymtab.
11011 (scan_partial_symbols): Update.
11012
11013 2020-01-26 Tom Tromey <tom@tromey.com>
11014
11015 * xcoffread.c (xcoff_start_psymtab): Use new.
11016 * psymtab.c (partial_symtab::partial_symtab): New constructor,
11017 renamed from start_psymtab_common.
11018 * psympriv.h (struct partial_symtab): Add new constructor.
11019 (start_psymtab_common): Don't declare.
11020 * mdebugread.c (parse_partial_symbols): Use new.
11021 * dwarf2read.c (create_partial_symtab): Use new.
11022 * dbxread.c (start_psymtab): Use new.
11023 * ctfread.c (create_partial_symtab): Use new.
11024
11025 2020-01-26 Tom Tromey <tom@tromey.com>
11026
11027 * xcoffread.c (xcoff_end_psymtab): Use new.
11028 * psymtab.c (start_psymtab_common): Use new.
11029 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
11030 Update.
11031 * psympriv.h (struct partial_symtab): Add parameters to
11032 constructor. Don't inline.
11033 (allocate_psymtab): Don't declare.
11034 * mdebugread.c (new_psymtab): Use new.
11035 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11036 * dbxread.c (dbx_end_psymtab): Use new.
11037
11038 2020-01-26 Tom Tromey <tom@tromey.com>
11039
11040 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11041 allocate_psymtab. Update documentation.
11042 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11043 allocate_psymtab. Do not use new.
11044 (allocate_psymtab): Use new. Update.
11045
11046 2020-01-26 Tom Tromey <tom@tromey.com>
11047
11048 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11049 * psymtab.c (psym_print_stats): Update.
11050 * psympriv.h (struct partial_symtab) <readin,
11051 psymtabs_addrmap_supported, anonymous>: Now bool.
11052 * mdebugread.c (psymtab_to_symtab_1): Update.
11053 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11054 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11055 (process_full_comp_unit, process_full_type_unit): Update.
11056 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11057 * ctfread.c (psymtab_to_symtab): Update.
11058
11059 2020-01-26 Tom Tromey <tom@tromey.com>
11060
11061 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11062 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11063 * psymtab.c (psymtab_storage): Delete psymtabs.
11064 (psymtab_storage::allocate_psymtab): Use new.
11065 (psymtab_storage::discard_psymtab): Use delete.
11066 * psympriv.h (struct partial_symtab): Add constructor and
11067 initializers.
11068
11069 2020-01-26 Tom Tromey <tom@tromey.com>
11070
11071 * machoread.c: Do not include psympriv.h.
11072
11073 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11074
11075 * NEWS: Mention the new option and the set/show commands.
11076
11077 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11078
11079 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11080 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11081 (validate_exec_file): New variables, enums, functions.
11082 (exec_file_locate_attach, print_section_info): Style the filenames.
11083 (_initialize_exec): Install show_exec_file_mismatch_command and
11084 set_exec_file_mismatch_command.
11085 * gdbcore.h (validate_exec_file): Declare.
11086 * infcmd.c (attach_command): Call validate_exec_file.
11087 * remote.c ( remote_target::remote_add_inferior): Likewise.
11088
11089 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11090
11091 * frame.c (find_frame_sal): Move call to get_next_frame into more
11092 inner scope.
11093 * inline-frame.c (inilne_state) <inline_state>: Update argument
11094 types.
11095 (inilne_state) <skipped_symbol>: Rename to...
11096 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11097 (skip_inline_frames): Build vector of skipped symbols and use this
11098 to reate the inline_state.
11099 (inline_skipped_symbol): Add a comment and some assertions, fetch
11100 skipped symbol from the list.
11101
11102 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11103
11104 * buildsym.c (lte_is_less_than): Delete.
11105 (buildsym_compunit::end_symtab_with_blockvector): Create local
11106 lambda function to sort line table entries, and use
11107 std::stable_sort instead of std::sort.
11108 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11109 markers when looking for a previous line.
11110
11111 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11112
11113 * dwarf2read.c (lnp_state_machine::record_line): Include
11114 end_sequence parameter in debug print out. Record the line if we
11115 are at an end_sequence marker even if it's not the start of a
11116 statement.
11117 * symmisc.c (maintenance_print_one_line_table): Print end of
11118 sequence markers with 'END' not '0'.
11119
11120 2020-01-24 Pedro Alves <palves@redhat.com>
11121
11122 PR gdb/25410
11123 * thread.c (scoped_restore_current_thread::restore): Use
11124 switch_to_inferior_no_thread.
11125 * exec.c: Include "progspace-and-thread.h".
11126 (add_target_sections, remove_target_sections):
11127 scoped_restore_current_pspace_and_thread instead of
11128 scoped_restore_current_thread.
11129 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11130 and aspace to the inferior before calling clone_program_space.
11131 Remove stale comment.
11132
11133 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11134
11135 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11136 (arm_netbsd_nat_target::fetch_registers): ...this.
11137 (arm_nbsd_nat_target::store_registers): Rename to...
11138 (arm_netbsd_nat_target::store_registers): ...this.
11139
11140 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11141
11142 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11143 register_t.
11144
11145 2020-01-24 Christian Biesinger <cbiesinger@google.com>
11146
11147 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11148 Update comment.
11149 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11150 Likewise.
11151 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11152 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11153 the correct replacement (iterate_over_regset_sections).
11154 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11155 Update comment.
11156
11157 2020-01-24 Graham Markall <graham.markall@embecosm.com>
11158
11159 PR gdb/23718
11160 * gdb/python/python.c (execute_gdb_command): Call
11161 async_enable_stdin in catch block.
11162
11163 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11164
11165 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11166 SWITCH_THRU_ALL_UIS.
11167
11168 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11169
11170 PR tui/9765
11171 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11172 comment, add extra parameter, and update to store previous symbol
11173 when appropriate.
11174 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11175 add extra parameter.
11176 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11177 remove unneeded parameter, add try/catch around gdb_print_insn,
11178 rewrite to add items to asm_lines vector.
11179 (tui_find_backward_disassembly_start_address): New function.
11180 (tui_find_disassembly_address): Updated throughout.
11181 (tui_disasm_window::set_contents): Update for changes to
11182 tui_disassemble.
11183 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11184 number of lines to scroll.
11185
11186 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11187
11188 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11189 (SECT_OFF_DATA): Likewise.
11190 (SECT_OFF_RODATA): Likewise.
11191 (SECT_OFF_TEXT): Likewise.
11192 (SECT_OFF_BSS): Likewise.
11193 (struct objfile) <text_section_offset, data_section_offset>: New
11194 methods.
11195 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11196 objfile::text_section_offset.
11197 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11198 * coffread.c (coff_symtab_read): Likewise.
11199 (enter_linenos): Likewise.
11200 (process_coff_symbol): Likewise.
11201 * ctfread.c (get_objfile_text_range): Likewise.
11202 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11203 Use objfile::data_section_offset.
11204 * dwarf2-frame.c (execute_cfa_program): Use
11205 objfile::text_section_offset.
11206 (dwarf2_frame_find_fde): Likewise.
11207 * dwarf2read.c (create_addrmap_from_index): Likewise.
11208 (create_addrmap_from_aranges): Likewise.
11209 (dw2_find_pc_sect_compunit_symtab): Likewise.
11210 (process_psymtab_comp_unit_reader): Likewise.
11211 (add_partial_symbol): Likewise.
11212 (add_partial_subprogram): Likewise.
11213 (process_full_comp_unit): Likewise.
11214 (read_file_scope): Likewise.
11215 (read_func_scope): Likewise.
11216 (read_lexical_block_scope): Likewise.
11217 (read_call_site_scope): Likewise.
11218 (dwarf2_rnglists_process): Likewise.
11219 (dwarf2_ranges_process): Likewise.
11220 (dwarf2_ranges_read): Likewise.
11221 (dwarf_decode_lines_1): Likewise.
11222 (new_symbol): Likewise.
11223 (dwarf2_fetch_die_loc_sect_off): Likewise.
11224 (dwarf2_per_cu_text_offset): Likewise.
11225 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11226 * hppa-tdep.c (read_unwind_info): Likewise.
11227 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11228 * psympriv.h (struct partial_symtab): Likewise.
11229 * psymtab.c (find_pc_sect_psymtab): Likewise.
11230 * solib-svr4.c (enable_break): Likewise.
11231 * stap-probe.c (relocate_address): Use
11232 objfile::data_section_offset.
11233 * xcoffread.c (enter_line_range): Use
11234 objfile::text_section_offset.
11235 (read_xcoff_symtab): Likewise.
11236
11237 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11238
11239 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11240 declaration to narrower scopes.
11241
11242 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
11243
11244 * darwin-nat.h (struct darwin_exception_msg, enum
11245 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11246 Move up.
11247 (class darwin_nat_target) <wait_1, check_new_threads,
11248 decode_exception_message, decode_message, stop_inferior,
11249 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11250 * darwin-nat.c (darwin_check_new_threads): Rename to...
11251 (darwin_nat_target::check_new_threads): ... this.
11252 (darwin_suspend_inferior_it): Remove.
11253 (darwin_decode_exception_message): Rename to...
11254 (darwin_nat_target::decode_exception_message): ... this.
11255 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11256 (darwin_decode_message): Rename to...
11257 (darwin_nat_target::decode_message): ... this.
11258 (cancel_breakpoint): Rename to...
11259 (darwin_nat_target::cancel_breakpoint): ... this.
11260 (darwin_wait): Rename to...
11261 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11262 instead of iterate_over_inferiors.
11263 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11264 (darwin_stop_inferior): Rename to...
11265 (darwin_nat_target::stop_inferior): ... this.
11266 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11267 (darwin_init_thread_list): Rename to...
11268 (darwin_nat_target::init_thread_list): ... this.
11269 (darwin_ptrace_him): Rename to...
11270 (darwin_nat_target::ptrace_him): ... this.
11271 (darwin_nat_target::create_inferior): Pass lambda function to
11272 fork_inferior.
11273 (darwin_nat_target::detach): Call stop_inferior instead of
11274 darwin_stop_inferior.
11275 * fork-inferior.h (fork_inferior): Change init_trace_fun
11276 parameter to gdb::function_view.
11277 * fork-inferior.c (fork_inferior): Likewise.
11278
11279 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
11280
11281 * i386-cygwin-tdep.c (core_process_module_section): Update.
11282 * windows-nat.c (struct lm_info_windows): Add text_offset.
11283 (windows_xfer_shared_libraries): Update.
11284 * windows-tdep.c (windows_xfer_shared_library):
11285 Add text_offset_cached argument.
11286 * windows-tdep.h (windows_xfer_shared_library): Update.
11287
11288 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11289
11290 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11291
11292 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11293
11294 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11295 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11296 replace with range-based for.
11297 (gdbsim_interrupt_inferior): Remove.
11298 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11299 with a range-based for. Inline code from
11300 gdbsim_interrupt_inferior.
11301
11302 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
11303
11304 * infrun.c (proceed): Fix indentation.
11305
11306 2020-01-21 Tom Tromey <tromey@adacore.com>
11307
11308 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11309 * python/python.c (python_extension_ops): Update.
11310 (gdbpy_colorize): New function.
11311 * python/lib/gdb/__init__.py (colorize): New function.
11312 * extension.h (ext_lang_colorize): Declare.
11313 * extension.c (ext_lang_colorize): New function.
11314 * extension-priv.h (struct extension_language_ops) <colorize>: New
11315 member.
11316 * cli/cli-style.c (_initialize_cli_style): Update help text.
11317
11318 2020-01-21 Luis Machado <luis.machado@linaro.org>
11319
11320 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11321 <cond>: Change type to bool.
11322 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11323 (aarch64_displaced_step_cb): Likewise.
11324 (aarch64_displaced_step_tb): Likewise.
11325
11326 2020-01-21 Luis Machado <luis.machado@linaro.org>
11327
11328 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11329 output.
11330
11331 2020-01-21 Luis Machado <luis.machado@linaro.org>
11332
11333 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11334 <pc_adjust>: Adjust the documentation.
11335 (aarch64_displaced_step_fixup): Check if PC really moved before
11336 adjusting it.
11337
11338 2020-01-19 Tom Tromey <tom@tromey.com>
11339
11340 * disasm.c (~gdb_disassembler): New destructor.
11341 (gdb_buffered_insn_length): Call disassemble_free_target.
11342 * disasm.h (class gdb_disassembler): Declare destructor. Use
11343 DISABLE_COPY_AND_ASSIGN.
11344
11345 2020-01-19 Tom Tromey <tom@tromey.com>
11346
11347 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11348 (die_reader_func_ftype): Remove.
11349 (cutu_reader): New class.
11350 (dw2_get_file_names_reader): Remove "data" parameter.
11351 (dw2_get_file_names): Use cutu_reader.
11352 (create_debug_type_hash_table): Update.
11353 (read_cutu_die_from_dwo): Update comment.
11354 (lookup_dwo_unit): Add dwo_name parameter.
11355 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11356 die_reader_func_ftype and data parameters.
11357 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11358 Remove die_reader_func_ftype and data parameters.
11359 (~cutu_reader): New; from init_cutu_and_read_dies.
11360 (cutu_reader::cutu_reader): Rename from
11361 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11362 and data parameters.
11363 (init_cutu_and_read_dies_simple): Remove.
11364 (struct process_psymtab_comp_unit_data): Remove.
11365 (process_psymtab_comp_unit_reader): Remove data parameter; add
11366 want_partial_unit and pretend_language parameters.
11367 (process_psymtab_comp_unit): Use cutu_reader.
11368 (build_type_psymtabs_reader): Remove data parameter.
11369 (build_type_psymtabs_1): Use cutu_reader.
11370 (process_skeletonless_type_unit): Likewise.
11371 (load_partial_comp_unit_reader): Remove.
11372 (load_partial_comp_unit): Use cutu_reader.
11373 (load_full_comp_unit_reader): Remove.
11374 (load_full_comp_unit): Use cutu_reader.
11375 (struct create_dwo_cu_data): Remove.
11376 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11377 dwo_unit parameters.
11378 (create_cus_hash_table): Use cutu_reader.
11379 (struct dwarf2_read_addr_index_data): Remove.
11380 (dwarf2_read_addr_index_reader): Remove.
11381 (dwarf2_read_addr_index): Use cutu_reader.
11382 (read_signatured_type_reader): Remove.
11383 (read_signatured_type): Use cutu_reader.
11384
11385 2020-01-19 Tom Tromey <tom@tromey.com>
11386
11387 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11388 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11389 (tui_wrefresh): Declare.
11390 * tui/tui-wingeneral.c (suppress_output): New global.
11391 (tui_suppress_output, ~tui_suppress_output): New constructor and
11392 destructor.
11393 (tui_wrefresh): New function.
11394 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11395 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11396 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11397 method.
11398 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11399 tui_wrefresh.
11400 (tui_data_window::no_refresh): New method.
11401 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11402 (tui_reg_command): Use tui_suppress_output
11403 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11404 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11405 method.
11406 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11407
11408 2020-01-19 Tom Tromey <tom@tromey.com>
11409
11410 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11411 Handle case where symtab is null.
11412
11413 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11414
11415 * linux-fork.c (one_fork_p): Simplify.
11416
11417 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11418
11419 * top.c (struct qt_args): Remove.
11420 (kill_or_detach): Change return type to void, replace `void *`
11421 parameter with a proper one.
11422 (print_inferior_quit_action): Likewise.
11423 (quit_confirm): Use range-based for loop to iterate over inferiors.
11424 (quit_force): Likewise.
11425
11426 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11427
11428 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11429 `void *` parameter with proper parameters.
11430 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11431 (print_one_inferior): Change return type to void, replace `void *`
11432 parameter with proper parameters.
11433 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11434 inferiors.
11435 (get_other_inferior): Remove.
11436 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11437 inferiors.
11438
11439 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11440
11441 * mi/mi-interp.c (report_initial_inferior): Remove.
11442 (mi_interp::init): Use range-based for to iterate over inferiors.
11443
11444 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11445
11446 * python/py-inferior.c (build_inferior_list): Remove.
11447 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11448
11449 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11450
11451 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11452 (btrace_stitch_trace): Likewise.
11453 * charset.c (intermediate_encoding): Likewise (vaild).
11454 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11455 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11456 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11457
11458 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11459
11460 * windows-tdep.c (windows_get_tlb_type):
11461 Add rtl_user_process_parameters type.
11462
11463 2020-01-16 Pedro Alves <palves@redhat.com>
11464 Norbert Lange <nolange79@gmail.com>
11465
11466 PR build/24805
11467 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11468 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11469 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11470 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11471 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11472 (ps_plog): Redeclare exported functions with default visibility.
11473
11474 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11475
11476 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11477 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11478
11479 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11480
11481 * infcmd.c (post_create_inferior): Use get_thread_regcache
11482 instead of get_current_regcache.
11483
11484 2020-01-14 Tom Tromey <tom@tromey.com>
11485
11486 PR symtab/12535:
11487 * python/python.c (gdbpy_decode_line): Treat empty string the same
11488 as no argument.
11489
11490 2020-01-14 Tom Tromey <tom@tromey.com>
11491
11492 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11493
11494 2020-01-14 Tom Tromey <tom@tromey.com>
11495
11496 * nat/linux-btrace.c: Don't include <config.h>.
11497 * nat/linux-ptrace.c: Don't include <config.h>.
11498 * nat/x86-linux-dregs.c: Don't include <config.h>.
11499
11500 2020-01-14 Tom Tromey <tom@tromey.com>
11501
11502 * configure: Rebuild.
11503 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11504
11505 2020-01-14 Tom Tromey <tom@tromey.com>
11506
11507 * nat/x86-linux-dregs.c: Include configh.h.
11508 * nat/linux-ptrace.c: Include configh.h.
11509 * nat/linux-btrace.c: Include configh.h.
11510 * defs.h: Include config.h, bfd.h.
11511 * configure.ac: Don't source common.host.
11512 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11513 * configure: Rebuild.
11514 * acinclude.m4: Update path.
11515 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11516 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11517 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11518 (CLIBS): Add LIBSUPPORT.
11519 (CDEPS): Likewise.
11520 (COMMON_SFILES): Remove gdbsupport files.
11521 (HFILES_NO_SRCDIR): Likewise.
11522 (stamp-version): Update path to create-version.sh.
11523 (ALLDEPFILES): Remove gdbsupport files.
11524
11525 2020-01-14 Tom Tromey <tom@tromey.com>
11526
11527 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11528 USE_WIN32API when needed.
11529 * configure.ac (USE_WIN32API): Don't define.
11530 (WIN32LIBS): Use WIN32APILIBS.
11531 * configure: Rebuild.
11532
11533 2020-01-14 Tom Tromey <tom@tromey.com>
11534
11535 * configure: Rebuild.
11536 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11537
11538 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11539
11540 * skip.c (skip_function_command): Make skip w/o arguments use the
11541 name of the inlined function if pc is inside any inlined function.
11542
11543 2020-01-14 Luis Machado <luis.machado@linaro.org>
11544
11545 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11546 * infrun.c (resume_1): Likewise.
11547 (handle_inferior_event): Remove stale comment.
11548 * linux-nat.c (linux_nat_target::resume): Update comments.
11549 (save_stop_reason): Likewise.
11550 (linux_nat_filter_event): Likewise.
11551 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11552
11553 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11554
11555 * elfread.c (record_minimal_symbol): Set section index to 0 for
11556 non-allocatable sections.
11557
11558
11559 2020-01-13 Ali Tamur <tamur@google.com>
11560
11561 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11562 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11563 to gdb::optional. Update comments.
11564 (dwo_file): Update comments.
11565 (read_attribute): Update API to take an additional out parameter,
11566 need_reprocess. This is used to mark attributes that need other
11567 attributes (e.g. str_offsets_base) for correct computation which may not
11568 have been read yet.
11569 (read_attribute_reprocess): New function declaration.
11570 (read_addr_index): Likewise.
11571 (read_dwo_str_index): Likewise.
11572 (read_stub_str_index): Likewise.
11573 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11574 (lookup_addr_base): New function definition.
11575 (lookup_ranges_base): Likewise.
11576 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11577 lookup_ranges_base.
11578 (init_cutu_and_read_dies): Update comments.
11579 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11580 unit. This is used to inherit parent's str_offsets_base and addr_base.
11581 Update comments.
11582 (init_cutu_and_read_dies_simple): Reflect API changes.
11583 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11584 (create_cus_hash_table): Change API to take parent compile unit.
11585 Reflect API changes.
11586 (open_and_init_dwo_file): Reflect API changes.
11587 (dwarf2_get_pc_bounds): Update comments.
11588 (dwarf2_record_block_ranges): Likewise.
11589 (read_full_die_1): Change implementation to reprocess attributes that
11590 need str_offsets_base and addr_base.
11591 (partial_die_info::read): Likewise.
11592 (read_attribute_reprocess): New function definition.
11593 (read_attribute_value): Change API to take an additional out parameter,
11594 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11595 when a non-dwo compile unit has index based attributes.
11596 (read_attribute): Reflect API changes.
11597 (read_addr_index_1): Reflect API changes. Update comments.
11598 (dwarf2_read_addr_index_data): Reflect API changes.
11599 (dwarf2_read_addr_index): Likewise.
11600 (read_str_index): Change API and implementation. This becomes a helper
11601 to be used by the new string index related methods. Update error
11602 message and comments.
11603 (read_dwo_str_index): New function definition.
11604 (read_stub_str_index): Likewise.
11605 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11606 * symfile.h (dwarf2_debug_sections): Likewise.
11607 * xcoffread.c (dwarf2_debug_sections): Likewise.
11608
11609 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11610
11611 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11612 core_reg_sect type to gdb_byte *.
11613 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11614 * cris-tdep.c (fetch_core_registers): Likewise.
11615 * corelow.c (core_target::get_core_register_section): Change
11616 type of `contents` to gdb::byte_vector.
11617
11618 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11619
11620 * tui/tui-wingeneral.c (box_win): Position the title in the center
11621 of the border.
11622
11623 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11624
11625 * corelow.c (core_target::get_core_register_section): Use
11626 std::vector instead of alloca.
11627
11628 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11629
11630 * warning.m4: Add -Wmissing-declarations to build_warnings.
11631 * configure: Re-generate.
11632
11633 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11634
11635 * python/python.c (init__gdb_module): Add declaration.
11636
11637 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11638
11639 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11640 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11641 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11642 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11643 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11644 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11645 * ada-exp.y (_initialize_ada_exp): Add declaration.
11646 * ada-lang.c (_initialize_ada_language): Add declaration.
11647 * ada-tasks.c (_initialize_tasks): Add declaration.
11648 * agent.c (_initialize_agent): Add declaration.
11649 * aix-thread.c (_initialize_aix_thread): Add declaration.
11650 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11651 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11652 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11653 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11654 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11655 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11656 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11657 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11658 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11659 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11660 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11661 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11662 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11663 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11664 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11665 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11666 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11667 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11668 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11669 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11670 * annotate.c (_initialize_annotate): Add declaration.
11671 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11672 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11673 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11674 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11675 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11676 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11677 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11678 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11679 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11680 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11681 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11682 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11683 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11684 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11685 * auto-load.c (_initialize_auto_load): Add declaration.
11686 * auxv.c (_initialize_auxv): Add declaration.
11687 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11688 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11689 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11690 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11691 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11692 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11693 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11694 * breakpoint.c (_initialize_breakpoint): Add declaration.
11695 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11696 * btrace.c (_initialize_btrace): Add declaration.
11697 * charset.c (_initialize_charset): Add declaration.
11698 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11699 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11700 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11701 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11702 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11703 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11704 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11705 * coffread.c (_initialize_coffread): Add declaration.
11706 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11707 * compile/compile.c (_initialize_compile): Add declaration.
11708 * complaints.c (_initialize_complaints): Add declaration.
11709 * completer.c (_initialize_completer): Add declaration.
11710 * copying.c (_initialize_copying): Add declaration.
11711 * corefile.c (_initialize_core): Add declaration.
11712 * corelow.c (_initialize_corelow): Add declaration.
11713 * cp-abi.c (_initialize_cp_abi): Add declaration.
11714 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11715 * cp-support.c (_initialize_cp_support): Add declaration.
11716 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11717 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11718 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11719 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11720 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11721 * ctfread.c (_initialize_ctfread): Add declaration.
11722 * d-lang.c (_initialize_d_language): Add declaration.
11723 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11724 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11725 * dbxread.c (_initialize_dbxread): Add declaration.
11726 * dcache.c (_initialize_dcache): Add declaration.
11727 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11728 * disasm.c (_initialize_disasm): Add declaration.
11729 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11730 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11731 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11732 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11733 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11734 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11735 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11736 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11737 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11738 * elfread.c (_initialize_elfread): Add declaration.
11739 * exec.c (_initialize_exec): Add declaration.
11740 * extension.c (_initialize_extension): Add declaration.
11741 * f-lang.c (_initialize_f_language): Add declaration.
11742 * f-valprint.c (_initialize_f_valprint): Add declaration.
11743 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11744 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11745 * filesystem.c (_initialize_filesystem): Add declaration.
11746 * findcmd.c (_initialize_mem_search): Add declaration.
11747 * findvar.c (_initialize_findvar): Add declaration.
11748 * fork-child.c (_initialize_fork_child): Add declaration.
11749 * frame-base.c (_initialize_frame_base): Add declaration.
11750 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11751 * frame.c (_initialize_frame): Add declaration.
11752 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11753 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11754 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11755 * gcore.c (_initialize_gcore): Add declaration.
11756 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11757 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11758 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11759 * gdbarch.c (_initialize_gdbarch): Add declaration.
11760 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11761 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11762 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11763 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11764 * go-lang.c (_initialize_go_language): Add declaration.
11765 * go32-nat.c (_initialize_go32_nat): Add declaration.
11766 * guile/guile.c (_initialize_guile): Add declaration.
11767 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11768 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11769 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11770 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11771 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11772 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11773 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11774 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11775 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11776 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11777 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11778 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11779 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11780 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11781 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11782 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11783 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11784 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11785 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11786 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11787 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11788 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11789 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11790 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11791 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11792 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11793 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11794 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11795 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11796 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11797 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11798 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11799 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11800 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11801 * infcall.c (_initialize_infcall): Add declaration.
11802 * infcmd.c (_initialize_infcmd): Add declaration.
11803 * inflow.c (_initialize_inflow): Add declaration.
11804 * infrun.c (_initialize_infrun): Add declaration.
11805 * interps.c (_initialize_interpreter): Add declaration.
11806 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11807 * jit.c (_initialize_jit): Add declaration.
11808 * language.c (_initialize_language): Add declaration.
11809 * linux-fork.c (_initialize_linux_fork): Add declaration.
11810 * linux-nat.c (_initialize_linux_nat): Add declaration.
11811 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11812 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11813 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11814 * m2-lang.c (_initialize_m2_language): Add declaration.
11815 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11816 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11817 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11818 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11819 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11820 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11821 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11822 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11823 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11824 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11825 * machoread.c (_initialize_machoread): Add declaration.
11826 * macrocmd.c (_initialize_macrocmd): Add declaration.
11827 * macroscope.c (_initialize_macroscope): Add declaration.
11828 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11829 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11830 * maint.c (_initialize_maint_cmds): Add declaration.
11831 * mdebugread.c (_initialize_mdebugread): Add declaration.
11832 * memattr.c (_initialize_mem): Add declaration.
11833 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11834 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11835 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11836 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11837 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11838 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11839 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11840 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11841 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11842 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11843 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11844 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11845 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11846 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11847 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11848 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11849 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11850 * mipsread.c (_initialize_mipsread): Add declaration.
11851 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11852 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11853 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11854 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11855 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11856 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11857 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11858 * nto-procfs.c (_initialize_procfs): Add declaration.
11859 * objc-lang.c (_initialize_objc_language): Add declaration.
11860 * observable.c (_initialize_observer): Add declaration.
11861 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11862 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11863 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11864 * osabi.c (_initialize_gdb_osabi): Add declaration.
11865 * osdata.c (_initialize_osdata): Add declaration.
11866 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11867 * parse.c (_initialize_parse): Add declaration.
11868 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11869 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11870 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11871 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11872 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11873 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11874 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11875 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11876 * printcmd.c (_initialize_printcmd): Add declaration.
11877 * probe.c (_initialize_probe): Add declaration.
11878 * proc-api.c (_initialize_proc_api): Add declaration.
11879 * proc-events.c (_initialize_proc_events): Add declaration.
11880 * proc-service.c (_initialize_proc_service): Add declaration.
11881 * procfs.c (_initialize_procfs): Add declaration.
11882 * producer.c (_initialize_producer): Add declaration.
11883 * psymtab.c (_initialize_psymtab): Add declaration.
11884 * python/python.c (_initialize_python): Add declaration.
11885 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11886 * record-btrace.c (_initialize_record_btrace): Add declaration.
11887 * record-full.c (_initialize_record_full): Add declaration.
11888 * record.c (_initialize_record): Add declaration.
11889 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11890 * regcache.c (_initialize_regcache): Add declaration.
11891 * reggroups.c (_initialize_reggroup): Add declaration.
11892 * remote-notif.c (_initialize_notif): Add declaration.
11893 * remote-sim.c (_initialize_remote_sim): Add declaration.
11894 * remote.c (_initialize_remote): Add declaration.
11895 * reverse.c (_initialize_reverse): Add declaration.
11896 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11897 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11898 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11899 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11900 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11901 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11902 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11903 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11904 Add declaration.
11905 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11906 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11907 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11908 * rust-exp.y (_initialize_rust_exp): Add declaration.
11909 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11910 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11911 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11912 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11913 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11914 * score-tdep.c (_initialize_score_tdep): Add declaration.
11915 * ser-go32.c (_initialize_ser_dos): Add declaration.
11916 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11917 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11918 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11919 * ser-uds.c (_initialize_ser_socket): Add declaration.
11920 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11921 * serial.c (_initialize_serial): Add declaration.
11922 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11923 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11924 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11925 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11926 * skip.c (_initialize_step_skip): Add declaration.
11927 * sol-thread.c (_initialize_sol_thread): Add declaration.
11928 * solib-aix.c (_initialize_solib_aix): Add declaration.
11929 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11930 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11931 * solib-frv.c (_initialize_frv_solib): Add declaration.
11932 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11933 * solib-target.c (_initialize_solib_target): Add declaration.
11934 * solib.c (_initialize_solib): Add declaration.
11935 * source-cache.c (_initialize_source_cache): Add declaration.
11936 * source.c (_initialize_source): Add declaration.
11937 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11938 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11939 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11940 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11941 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11942 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11943 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11944 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11945 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11946 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11947 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11948 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11949 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11950 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11951 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11952 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11953 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11954 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11955 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11956 * stabsread.c (_initialize_stabsread): Add declaration.
11957 * stack.c (_initialize_stack): Add declaration.
11958 * stap-probe.c (_initialize_stap_probe): Add declaration.
11959 * std-regs.c (_initialize_frame_reg): Add declaration.
11960 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11961 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11962 * symfile.c (_initialize_symfile): Add declaration.
11963 * symmisc.c (_initialize_symmisc): Add declaration.
11964 * symtab.c (_initialize_symtab): Add declaration.
11965 * target.c (_initialize_target): Add declaration.
11966 * target-connection.c (_initialize_target_connection): Add
11967 declaration.
11968 * target-dcache.c (_initialize_target_dcache): Add declaration.
11969 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11970 * thread.c (_initialize_thread): Add declaration.
11971 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11972 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11973 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11974 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11975 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11976 * tracectf.c (_initialize_ctf): Add declaration.
11977 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11978 * tracefile.c (_initialize_tracefile): Add declaration.
11979 * tracepoint.c (_initialize_tracepoint): Add declaration.
11980 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11981 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11982 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11983 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11984 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11985 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11986 * tui/tui.c (_initialize_tui): Add declaration.
11987 * typeprint.c (_initialize_typeprint): Add declaration.
11988 * ui-style.c (_initialize_ui_style): Add declaration.
11989 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11990 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11991 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11992 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11993 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11994 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11995 * unittests/filtered_iterator-selftests.c
11996 (_initialize_filtered_iterator_selftests): Add declaration.
11997 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11998 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11999 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
12000 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
12001 * unittests/main-thread-selftests.c
12002 (_initialize_main_thread_selftests): Add declaration.
12003 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
12004 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
12005 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
12006 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
12007 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
12008 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
12009 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
12010 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
12011 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
12012 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
12013 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
12014 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
12015 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
12016 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
12017 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
12018 declaration.
12019 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
12020 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
12021 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
12022 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
12023 * user-regs.c (_initialize_user_regs): Add declaration.
12024 * utils.c (_initialize_utils): Add declaration.
12025 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
12026 * valops.c (_initialize_valops): Add declaration.
12027 * valprint.c (_initialize_valprint): Add declaration.
12028 * value.c (_initialize_values): Add declaration.
12029 * varobj.c (_initialize_varobj): Add declaration.
12030 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
12031 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
12032 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12033 * windows-nat.c (_initialize_windows_nat): Add declaration.
12034 (_initialize_check_for_gdb_ini): Add declaration.
12035 (_initialize_loadable): Add declaration.
12036 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12037 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12038 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12039 * xcoffread.c (_initialize_xcoffread): Add declaration.
12040 * xml-support.c (_initialize_xml_support): Add declaration.
12041 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12042 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12043 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12044 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12045
12046 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12047
12048 * regformats/regdat.sh: Generate declaration for init function.
12049
12050 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12051
12052 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12053 up.
12054 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12055 close_one_inferior>: New methods.
12056 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12057 pass down target to find_inferior_pid.
12058 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12059 Pass down target to find_inferior_ptid.
12060 (gdbsim_target::create_inferior): Pass down target to
12061 add_thread_silent.
12062 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12063 target down to find_inferior_ptid and switch_to_thread.
12064 (gdbsim_target::close): Update to call close_one_inferior.
12065 (struct resume_data): Remove.
12066 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12067 directly, rather than through a void pointer.
12068 (gdbsim_target::resume): Update to call resume_one_inferior.
12069
12070 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12071
12072 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12073
12074 2020-01-12 Pedro Alves <palves@redhat.com>
12075
12076 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12077 directly for the current inferior instead of
12078 discard_all_inferiors.
12079 (discard_all_inferiors): Delete.
12080
12081 2020-01-11 Tom Tromey <tom@tromey.com>
12082
12083 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12084 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12085 deprecated_safe_get_selected_frame.
12086
12087 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12088
12089 * inferior.c (print_inferior): Switch inferior before printing it.
12090
12091 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12092 Pedro Alves <palves@redhat.com>
12093
12094 * progspace-and-thread.c (switch_to_program_space_and_thread):
12095 Assert there's an inferior for PSPACE. Use
12096 switch_to_inferior_no_thread to switch the inferior too.
12097 * progspace.c (program_space::~program_space): Call
12098 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12099 (program_space::free_all_objfiles): Don't call clear_symtab_users
12100 here.
12101 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12102
12103 2020-01-10 Pedro Alves <palves@redhat.com>
12104
12105 * NEWS: Mention multi-target debugging, "info connections", and
12106 "add-inferior -no-connection".
12107
12108 2020-01-10 Pedro Alves <palves@redhat.com>
12109
12110 * infrun.c: Include "target-connection.h".
12111 (check_multi_target_resumption): New.
12112 (proceed): Call it.
12113 * target-connection.c (make_target_connection_string): Make
12114 extern.
12115 * target-connection.h (make_target_connection_string): Declare.
12116
12117 2020-01-10 Pedro Alves <palves@redhat.com>
12118
12119 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12120 * inferior.c (uiout_field_connection): New function.
12121 (print_inferior): Add new "connection-id" column.
12122 (add_inferior_command): Show connection number/string of added
12123 inferior.
12124 * process-stratum-target.h
12125 (process_stratum_target::connection_string): New virtual method.
12126 (process_stratum_target::connection_number): New field.
12127 * remote.c (remote_target::connection_string): New override.
12128 * target-connection.c: New file.
12129 * target-connection.h: New file.
12130 * target.c (decref_target): Remove process_stratum targets from
12131 the connection list.
12132 (target_stack::push): Add process_stratum targets to the
12133 connection list.
12134
12135 2020-01-10 Pedro Alves <palves@redhat.com>
12136
12137 Revert:
12138 2016-04-12 Pedro Alves <palves@redhat.com>
12139 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12140 Remove references to name.
12141 * serial.h (struct serial) <name>: Delete.
12142
12143 2020-01-10 Pedro Alves <palves@redhat.com>
12144
12145 * gdbarch-selftests.c (register_to_value_test): Remove "target
12146 already pushed" check.
12147
12148 2020-01-10 Pedro Alves <palves@redhat.com>
12149 John Baldwin <jhb@FreeBSD.org>
12150
12151 * aarch64-linux-nat.c
12152 (aarch64_linux_nat_target::thread_architecture): Adjust.
12153 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12154 (task_command_1): Likewise.
12155 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12156 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12157 (aix_thread_target::store_registers)
12158 (aix_thread_target::thread_alive): Adjust.
12159 * amd64-fbsd-tdep.c: Include "inferior.h".
12160 (amd64fbsd_get_thread_local_address): Pass down target.
12161 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12162 thread's gdbarch instead of target_gdbarch.
12163 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12164 get_last_target_status.
12165 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12166 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12167 inferiors.
12168 (update_inserted_breakpoint_locations): Skip if inferiors with no
12169 execution.
12170 (update_global_location_list): When handling moribund locations,
12171 find representative inferior for location's pspace, and use thread
12172 count of its process_stratum target.
12173 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12174 * bsd-uthread.c (bsd_uthread_target::wait): Use
12175 as_process_stratum_target and adjust thread_change_ptid and
12176 add_thread calls.
12177 (bsd_uthread_target::update_thread_list): Use
12178 as_process_stratum_target and adjust find_thread_ptid,
12179 thread_change_ptid and add_thread calls.
12180 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12181 find_thread_ptid call.
12182 * corelow.c (add_to_thread_list): Adjust add_thread call.
12183 (core_target_open): Adjust add_thread_silent and thread_count
12184 calls.
12185 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12186 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12187 * event-top.c (async_disconnect): Pop targets from all inferiors.
12188 * exec.c (add_target_sections): Push exec target on all inferiors
12189 sharing the program space.
12190 (remove_target_sections): Remove the exec target from all
12191 inferiors sharing the program space.
12192 (exec_on_vfork): New.
12193 * exec.h (exec_on_vfork): Declare.
12194 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12195 Pass it down.
12196 (fbsd_nat_target::update_thread_list): Adjust.
12197 (fbsd_nat_target::resume): Adjust.
12198 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12199 down.
12200 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12201 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12202 get_thread_arch_regcache call.
12203 * fork-child.c (gdb_startup_inferior): Pass target down to
12204 startup_inferior and set_executing.
12205 * gdbthread.h (struct process_stratum_target): Forward declare.
12206 (add_thread, add_thread_silent, add_thread_with_info)
12207 (in_thread_list): Add process_stratum_target parameter.
12208 (find_thread_ptid(inferior*, ptid_t)): New overload.
12209 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12210 parameter.
12211 (all_threads()): Delete overload.
12212 (all_threads, all_non_exited_threads): Add process_stratum_target
12213 parameter.
12214 (all_threads_safe): Use brace initialization.
12215 (thread_count): Add process_stratum_target parameter.
12216 (set_resumed, set_running, set_stop_requested, set_executing)
12217 (threads_are_executing, finish_thread_state): Add
12218 process_stratum_target parameter.
12219 (switch_to_thread): Use is_current_thread.
12220 * i386-fbsd-tdep.c: Include "inferior.h".
12221 (i386fbsd_get_thread_local_address): Pass down target.
12222 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12223 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12224 have_inferiors check.
12225 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12226 (inf_ptrace_target::attach): Adjust.
12227 * infcall.c (run_inferior_call): Adjust.
12228 * infcmd.c (run_command_1): Pass target to
12229 scoped_finish_thread_state.
12230 (proceed_thread_callback): Skip inferiors with no execution.
12231 (continue_command): Rename 'all_threads' local to avoid hiding
12232 'all_threads' function. Adjust get_last_target_status call.
12233 (prepare_one_step): Adjust set_running call.
12234 (signal_command): Use user_visible_resume_target. Compare thread
12235 pointers instead of inferior_ptid.
12236 (info_program_command): Adjust to pass down target.
12237 (attach_command): Mark target's 'thread_executing' flag.
12238 (stop_current_target_threads_ns): New, factored out from ...
12239 (interrupt_target_1): ... this. Switch inferior before making
12240 target calls.
12241 * inferior-iter.h
12242 (struct all_inferiors_iterator, struct all_inferiors_range)
12243 (struct all_inferiors_safe_range)
12244 (struct all_non_exited_inferiors_range): Filter on
12245 process_stratum_target too. Remove explicit.
12246 * inferior.c (inferior::inferior): Push dummy target on target
12247 stack.
12248 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12249 Add process_stratum_target parameter, and pass it down.
12250 (have_live_inferiors): Adjust.
12251 (switch_to_inferior_and_push_target): New.
12252 (add_inferior_command, clone_inferior_command): Handle
12253 "-no-connection" parameter. Use
12254 switch_to_inferior_and_push_target.
12255 (_initialize_inferior): Mention "-no-connection" option in
12256 the help of "add-inferior" and "clone-inferior" commands.
12257 * inferior.h: Include "process-stratum-target.h".
12258 (interrupt_target_1): Use bool.
12259 (struct inferior) <push_target, unpush_target, target_is_pushed,
12260 find_target_beneath, top_target, process_target, target_at,
12261 m_stack>: New.
12262 (discard_all_inferiors): Delete.
12263 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12264 (all_inferiors, all_non_exited_inferiors): Add
12265 process_stratum_target parameter.
12266 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12267 (target_last_proc_target): New global.
12268 (follow_fork_inferior): Push target on new inferior. Pass target
12269 to add_thread_silent. Call exec_on_vfork. Handle target's
12270 reference count.
12271 (follow_fork): Adjust get_last_target_status call. Also consider
12272 target.
12273 (follow_exec): Push target on new inferior.
12274 (struct execution_control_state) <target>: New field.
12275 (user_visible_resume_target): New.
12276 (do_target_resume): Call target_async.
12277 (resume_1): Set target's threads_executing flag. Consider resume
12278 target.
12279 (commit_resume_all_targets): New.
12280 (proceed): Also consider resume target. Skip threads of inferiors
12281 with no execution. Commit resumtion in all targets.
12282 (start_remote): Pass current inferior to wait_for_inferior.
12283 (infrun_thread_stop_requested): Consider target as well. Pass
12284 thread_info pointer to clear_inline_frame_state instead of ptid.
12285 (infrun_thread_thread_exit): Consider target as well.
12286 (random_pending_event_thread): New inferior parameter. Use it.
12287 (do_target_wait): Rename to ...
12288 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12289 down.
12290 (threads_are_resumed_pending_p, do_target_wait): New.
12291 (prepare_for_detach): Adjust calls.
12292 (wait_for_inferior): New inferior parameter. Handle it. Use
12293 do_target_wait_1 instead of do_target_wait.
12294 (fetch_inferior_event): Adjust. Switch to representative
12295 inferior. Pass target down.
12296 (set_last_target_status): Add process_stratum_target parameter.
12297 Save target in global.
12298 (get_last_target_status): Add process_stratum_target parameter and
12299 handle it.
12300 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12301 (context_switch): Check inferior_ptid == null_ptid before calling
12302 inferior_thread().
12303 (get_inferior_stop_soon): Pass down target.
12304 (wait_one): Rename to ...
12305 (poll_one_curr_target): ... this.
12306 (struct wait_one_event): New.
12307 (wait_one): New.
12308 (stop_all_threads): Adjust.
12309 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12310 event's target.
12311 (switch_back_to_stepped_thread): Also consider target.
12312 (print_stop_event): Update.
12313 (normal_stop): Update. Also consider the resume target.
12314 * infrun.h (wait_for_inferior): Remove declaration.
12315 (user_visible_resume_target): New declaration.
12316 (get_last_target_status, set_last_target_status): New
12317 process_stratum_target parameter.
12318 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12319 process_stratum_target parameter, and use it.
12320 (clear_inline_frame_state (thread_info*)): New.
12321 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12322 process_stratum_target parameter.
12323 (clear_inline_frame_state (thread_info*)): Declare.
12324 * linux-fork.c (delete_checkpoint_command): Pass target down to
12325 find_thread_ptid.
12326 (checkpoint_command): Adjust.
12327 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12328 instead of just tweaking inferior_ptid.
12329 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12330 (exit_lwp): Pass target down to find_thread_ptid.
12331 (attach_proc_task_lwp_callback): Pass target down to
12332 add_thread/set_running/set_executing.
12333 (linux_nat_target::attach): Pass target down to
12334 thread_change_ptid.
12335 (get_detach_signal): Pass target down to find_thread_ptid.
12336 Consider last target status's target.
12337 (linux_resume_one_lwp_throw, resume_lwp)
12338 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12339 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12340 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12341 (linux_nat_target::async_wait_fd): New.
12342 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12343 target down.
12344 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12345 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12346 * linux-thread-db.c (struct thread_db_info::process_target): New
12347 field.
12348 (add_thread_db_info): Save target.
12349 (get_thread_db_info): New process_stratum_target parameter. Also
12350 match target.
12351 (delete_thread_db_info): New process_stratum_target parameter.
12352 Also match target.
12353 (thread_from_lwp): Adjust to pass down target.
12354 (thread_db_notice_clone): Pass down target.
12355 (check_thread_db_callback): Pass down target.
12356 (try_thread_db_load_1): Always push the thread_db target.
12357 (try_thread_db_load, record_thread): Pass target down.
12358 (thread_db_target::detach): Pass target down. Always unpush the
12359 thread_db target.
12360 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12361 target down. Always unpush the thread_db target.
12362 (find_new_threads_callback, thread_db_find_new_threads_2)
12363 (thread_db_target::update_thread_list): Pass target down.
12364 (thread_db_target::pid_to_str): Pass current inferior down.
12365 (thread_db_target::get_thread_local_address): Pass target down.
12366 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12367 target down.
12368 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12369 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12370 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12371 (procfs_init_inferior): Rename to ...
12372 (procfs_target::procfs_init_inferior): ... this and adjust.
12373 (procfs_target::create_inferior, procfs_notice_thread)
12374 (procfs_do_thread_registers): Adjust.
12375 * ppc-fbsd-tdep.c: Include "inferior.h".
12376 (ppcfbsd_get_thread_local_address): Pass down target.
12377 * proc-service.c (ps_xfer_memory): Switch current inferior and
12378 program space as well.
12379 (get_ps_regcache): Pass target down.
12380 * process-stratum-target.c
12381 (process_stratum_target::thread_address_space)
12382 (process_stratum_target::thread_architecture): Pass target down.
12383 * process-stratum-target.h
12384 (process_stratum_target::threads_executing): New field.
12385 (as_process_stratum_target): New.
12386 * ravenscar-thread.c
12387 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12388 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12389 down.
12390 * record-btrace.c (record_btrace_target::info_record): Adjust.
12391 (record_btrace_target::record_method)
12392 (record_btrace_target::record_is_replaying)
12393 (record_btrace_target::fetch_registers)
12394 (get_thread_current_frame_id, record_btrace_target::resume)
12395 (record_btrace_target::wait, record_btrace_target::stop): Pass
12396 target down.
12397 * record-full.c (record_full_wait_1): Switch to event thread.
12398 Pass target down.
12399 * regcache.c (regcache::regcache)
12400 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12401 process_stratum_target parameter and handle it.
12402 (current_thread_target): New global.
12403 (get_thread_regcache): Add process_stratum_target parameter and
12404 handle it. Switch inferior before calling target method.
12405 (get_thread_regcache): Pass target down.
12406 (get_thread_regcache_for_ptid): Pass target down.
12407 (registers_changed_ptid): Add process_stratum_target parameter and
12408 handle it.
12409 (registers_changed_thread, registers_changed): Pass target down.
12410 (test_get_thread_arch_aspace_regcache): New.
12411 (current_regcache_test): Define a couple local test_target_ops
12412 instances and use them for testing.
12413 (readwrite_regcache): Pass process_stratum_target parameter.
12414 (cooked_read_test, cooked_write_test): Pass mock_target down.
12415 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12416 (get_thread_arch_aspace_regcache): Add process_stratum_target
12417 parameter.
12418 (regcache::target): New method.
12419 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12420 (regcache::registers_changed_ptid): Add process_stratum_target
12421 parameter.
12422 (regcache::m_target): New field.
12423 (registers_changed_ptid): Add process_stratum_target parameter.
12424 * remote.c (remote_state::supports_vCont_probed): New field.
12425 (remote_target::async_wait_fd): New method.
12426 (remote_unpush_and_throw): Add remote_target parameter.
12427 (get_current_remote_target): Adjust.
12428 (remote_target::remote_add_inferior): Push target.
12429 (remote_target::remote_add_thread)
12430 (remote_target::remote_notice_new_inferior)
12431 (get_remote_thread_info): Pass target down.
12432 (remote_target::update_thread_list): Skip threads of inferiors
12433 bound to other targets. (remote_target::close): Don't discard
12434 inferiors. (remote_target::add_current_inferior_and_thread)
12435 (remote_target::process_initial_stop_replies)
12436 (remote_target::start_remote)
12437 (remote_target::remote_serial_quit_handler): Pass down target.
12438 (remote_target::remote_unpush_target): New remote_target
12439 parameter. Unpush the target from all inferiors.
12440 (remote_target::remote_unpush_and_throw): New remote_target
12441 parameter. Pass it down.
12442 (remote_target::open_1): Check whether the current inferior has
12443 execution instead of checking whether any inferior is live. Pass
12444 target down.
12445 (remote_target::remote_detach_1): Pass down target. Use
12446 remote_unpush_target.
12447 (extended_remote_target::attach): Pass down target.
12448 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12449 (remote_target::append_resumption): Pass down target.
12450 (remote_target::append_pending_thread_resumptions)
12451 (remote_target::remote_resume_with_hc, remote_target::resume)
12452 (remote_target::commit_resume): Pass down target.
12453 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12454 (remote_target::interrupt_query)
12455 (remote_target::remove_new_fork_children)
12456 (remote_target::check_pending_events_prevent_wildcard_vcont)
12457 (remote_target::remote_parse_stop_reply)
12458 (remote_target::process_stop_reply): Pass down target.
12459 (first_remote_resumed_thread): New remote_target parameter. Pass
12460 it down.
12461 (remote_target::wait_as): Pass down target.
12462 (unpush_and_perror): New remote_target parameter. Pass it down.
12463 (remote_target::readchar, remote_target::remote_serial_write)
12464 (remote_target::getpkt_or_notif_sane_1)
12465 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12466 down target.
12467 (remote_target::mourn_inferior): Pass down target. Use
12468 remote_unpush_target.
12469 (remote_target::core_of_thread)
12470 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12471 (remote_target::pid_to_exec_file)
12472 (remote_target::thread_handle_to_thread_info): Pass down target.
12473 (remote_target::async_wait_fd): New.
12474 * riscv-fbsd-tdep.c: Include "inferior.h".
12475 (riscv_fbsd_get_thread_local_address): Pass down target.
12476 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12477 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12478 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12479 Adjust.
12480 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12481 * solib-svr4.c (enable_break): Pass down target.
12482 * spu-multiarch.c (parse_spufs_run): Pass down target.
12483 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12484 * target-delegates.c: Regenerate.
12485 * target.c (g_target_stack): Delete.
12486 (current_top_target): Return the current inferior's top target.
12487 (target_has_execution_1): Refer to the passed-in inferior's top
12488 target.
12489 (target_supports_terminal_ours): Check whether the initial
12490 inferior was already created.
12491 (decref_target): New.
12492 (target_stack::push): Incref/decref the target.
12493 (push_target, push_target, unpush_target): Adjust.
12494 (target_stack::unpush): Defref target.
12495 (target_is_pushed): Return bool. Adjust to refer to the current
12496 inferior's target stack.
12497 (dispose_inferior): Delete, and inline parts ...
12498 (target_preopen): ... here. Only dispose of the current inferior.
12499 (target_detach): Hold strong target reference while detaching.
12500 Pass target down.
12501 (target_thread_name): Add assertion.
12502 (target_resume): Pass down target.
12503 (target_ops::beneath, find_target_at): Adjust to refer to the
12504 current inferior's target stack.
12505 (get_dummy_target): New.
12506 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12507 has a thread running.
12508 (initialize_targets): Rename to ...
12509 (_initialize_target): ... this.
12510 * target.h: Include "gdbsupport/refcounted-object.h".
12511 (struct target_ops): Inherit refcounted_object.
12512 (target_ops::shortname, target_ops::longname): Make const.
12513 (target_ops::async_wait_fd): New method.
12514 (decref_target): Declare.
12515 (struct target_ops_ref_policy): New.
12516 (target_ops_ref): New typedef.
12517 (get_dummy_target): Declare function.
12518 (target_is_pushed): Return bool.
12519 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12520 (all_matching_threads_iterator::all_matching_threads_iterator):
12521 Handle filter target.
12522 * thread-iter.h (struct all_matching_threads_iterator, struct
12523 all_matching_threads_range, class all_non_exited_threads_range):
12524 Filter by target too. Remove explicit.
12525 * thread.c (threads_executing): Delete.
12526 (inferior_thread): Pass down current inferior.
12527 (clear_thread_inferior_resources): Pass down thread pointer
12528 instead of ptid_t.
12529 (add_thread_silent, add_thread_with_info, add_thread): Add
12530 process_stratum_target parameter. Use it for thread and inferior
12531 searches.
12532 (is_current_thread): New.
12533 (thread_info::deletable): Use it.
12534 (find_thread_ptid, thread_count, in_thread_list)
12535 (thread_change_ptid, set_resumed, set_running): New
12536 process_stratum_target parameter. Pass it down.
12537 (set_executing): New process_stratum_target parameter. Pass it
12538 down. Adjust reference to 'threads_executing'.
12539 (threads_are_executing): New process_stratum_target parameter.
12540 Adjust reference to 'threads_executing'.
12541 (set_stop_requested, finish_thread_state): New
12542 process_stratum_target parameter. Pass it down.
12543 (switch_to_thread): Also match inferior.
12544 (switch_to_thread): New process_stratum_target parameter. Pass it
12545 down.
12546 (update_threads_executing): Reimplement.
12547 * top.c (quit_force): Pop targets from all inferior.
12548 (gdb_init): Don't call initialize_targets.
12549 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12550 Declare.
12551 (windows_add_thread, windows_delete_thread): Adjust.
12552 (get_windows_debug_event): Rename to ...
12553 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12554 * tracefile-tfile.c (tfile_target_open): Pass down target.
12555 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12556 Forward declare.
12557 (switch_to_thread): Add process_stratum_target parameter.
12558 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12559 parameter. Use it.
12560 (mi_on_resume): Pass target down.
12561 * nat/fork-inferior.c (startup_inferior): Add
12562 process_stratum_target parameter. Pass it down.
12563 * nat/fork-inferior.h (startup_inferior): Add
12564 process_stratum_target parameter.
12565 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12566
12567 2020-01-10 Pedro Alves <palves@redhat.com>
12568
12569 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12570 directly. Instead find the first thread in the thread list and
12571 use switch_to_thread.
12572
12573 2020-01-10 Pedro Alves <palves@redhat.com>
12574
12575 * remote.c (remote_target::remote_add_inferior): Don't bind a
12576 process to the current inferior if the current inferior is already
12577 bound to a process.
12578
12579 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12580 Pedro Alves <palves@redhat.com>
12581
12582 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12583 If no process is specified, return null_ptid instead of
12584 inferior_ptid.
12585 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12586 TARGET_WAITKIND_SIGNALLED with no pid.
12587
12588 2020-01-10 Pedro Alves <palves@redhat.com>
12589
12590 * remote.c (first_remote_resumed_thread): New.
12591 (remote_target::wait_as): Use it as default event_ptid instead of
12592 inferior_ptid.
12593
12594 2020-01-10 Pedro Alves <palves@redhat.com>
12595
12596 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12597
12598 2020-01-10 Pedro Alves <palves@redhat.com>
12599
12600 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12601 not -1.
12602
12603 2020-01-10 Pedro Alves <palves@redhat.com>
12604
12605 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12606 ptid to get_last_target_status.
12607 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12608 ptid to get_last_target_status.
12609 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12610 get_last_target_status.
12611 (info_program_command): Don't pass a target_waitstatus to
12612 get_last_target_status.
12613 * infrun.c (init_wait_for_inferior): Use
12614 nullify_last_target_wait_ptid.
12615 (get_last_target_status): Handle nullptr arguments.
12616 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12617 (print_stop_event): Don't pass a ptid to get_last_target_status.
12618 (normal_stop): Don't pass a ptid to get_last_target_status.
12619 * infrun.h (get_last_target_status, set_last_target_status): Move
12620 comments here and update.
12621 (nullify_last_target_wait_ptid): Declare.
12622 * linux-fork.c (fork_load_infrun_state): Remove local extern
12623 declaration of nullify_last_target_wait_ptid.
12624 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12625 to get_last_target_status.
12626
12627 2020-01-10 Pedro Alves <palves@redhat.com>
12628
12629 * gdbthread.h (scoped_restore_current_thread)
12630 <dont_restore, restore, m_dont_restore>: Declare.
12631 * thread.c (thread_alive): Add assertion. Return bool.
12632 (switch_to_thread_if_alive): New.
12633 (prune_threads): Switch inferior/thread.
12634 (print_thread_info_1): Switch thread before calling target methods.
12635 (scoped_restore_current_thread::restore): New, factored out from
12636 ...
12637 (scoped_restore_current_thread::~scoped_restore_current_thread):
12638 ... this.
12639 (scoped_restore_current_thread::scoped_restore_current_thread):
12640 Add assertion.
12641 (thread_apply_all_command, thread_select): Use
12642 switch_to_thread_if_alive.
12643 * infrun.c (proceed, restart_threads, handle_signal_stop)
12644 (switch_back_to_stepped_thread): Switch current thread before
12645 calling target methods.
12646
12647 2020-01-10 Pedro Alves <palves@redhat.com>
12648
12649 * inferior.c (switch_to_inferior_no_thread): New function,
12650 factored out from ...
12651 (inferior_command): ... here.
12652 * inferior.h (switch_to_inferior_no_thread): Declare.
12653 * mi/mi-main.c (run_one_inferior): Use
12654 switch_to_inferior_no_thread.
12655
12656 2020-01-10 Pedro Alves <palves@redhat.com>
12657
12658 * infcmd.c (kill_command): Remove dead code.
12659
12660 2020-01-10 Pedro Alves <palves@redhat.com>
12661
12662 * remote.c (remote_target::mourn_inferior): No longer check
12663 whether the target is running.
12664
12665 2020-01-10 Pedro Alves <palves@redhat.com>
12666
12667 * corelow.c (core_target::has_execution): Change parameter type to
12668 inferior pointer.
12669 * inferior.c (number_of_live_inferiors): Use
12670 inferior::has_execution instead of target_has_execution_1.
12671 * inferior.h (inferior::has_execution): New.
12672 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12673 inferior::has_execution instead of target_has_execution_1.
12674 * process-stratum-target.c
12675 (process_stratum_target::has_execution): Change parameter type to
12676 inferior pointer. Check the inferior's PID instead of
12677 inferior_ptid.
12678 * process-stratum-target.h
12679 (process_stratum_target::has_execution): Change parameter type to
12680 inferior pointer.
12681 * record-full.c (record_full_core_target::has_execution): Change
12682 parameter type to inferior pointer.
12683 * target.c (target_has_execution_1): Change parameter type to
12684 inferior pointer.
12685 (target_has_execution_current): Adjust.
12686 * target.h (target_ops::has_execution): Change parameter type to
12687 inferior pointer.
12688 (target_has_execution_1): Change parameter type to inferior
12689 pointer. Change return type to bool.
12690 * tracefile.h (tracefile_target::has_execution): Change parameter
12691 type to inferior pointer.
12692
12693 2020-01-10 Pedro Alves <palves@redhat.com>
12694
12695 * exceptions.c (print_flush): Remove current_top_target() check.
12696
12697 2020-01-10 Pedro Alves <palves@redhat.com>
12698
12699 * remote.c (show_remote_exec_file): Show the current inferior's
12700 exec-file instead of the command variable's value.
12701
12702 2020-01-10 Pedro Alves <palves@redhat.com>
12703
12704 * record-full.c (record_full_resume_ptid): New global.
12705 (record_full_target::resume): Set it.
12706 (record_full_wait_1): Use record_full_resume_ptid instead of
12707 inferior_ptid.
12708
12709 2020-01-10 Pedro Alves <palves@redhat.com>
12710
12711 * gdbthread.h (scoped_restore_current_thread)
12712 <dont_restore, restore, m_dont_restore>: Declare.
12713 * thread.c (thread_alive): Add assertion. Return bool.
12714 (switch_to_thread_if_alive): New.
12715 (prune_threads): Switch inferior/thread.
12716 (print_thread_info_1): Switch thread before calling target methods.
12717 (scoped_restore_current_thread::restore): New, factored out from
12718 ...
12719 (scoped_restore_current_thread::~scoped_restore_current_thread):
12720 ... this.
12721 (scoped_restore_current_thread::scoped_restore_current_thread):
12722 Add assertion.
12723 (thread_apply_all_command, thread_select): Use
12724 switch_to_thread_if_alive.
12725
12726 2020-01-10 George Barrett <bob@bob131.so>
12727
12728 * stap-probe.c (stap_modify_semaphore): Don't check for null
12729 semaphores.
12730 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12731 for null semaphores.
12732
12733 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12734
12735 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12736 all source windows, and maintain horizontal scroll status while
12737 doing so.
12738
12739 2020-01-09 Tom Tromey <tom@tromey.com>
12740
12741 PR tui/18932:
12742 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12743 update_source_window, not print_source_lines.
12744
12745 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12746
12747 * tui/tui.c (tui_enable): Register tui hooks after calling
12748 tui_display_main.
12749
12750 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12751
12752 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12753
12754 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12755
12756 * thread.c (print_thread_info_1): Fix indentation.
12757
12758 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12759
12760 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12761 unique_xmalloc_ptr outside the if to always free the demangled name.
12762
12763 2020-01-08 Tom Tromey <tromey@adacore.com>
12764
12765 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12766 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12767 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12768 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12769 Remove.
12770 (section_offsets): New typedef.
12771 * symtab.c (fixup_section, get_msymbol_address): Update.
12772 * symmisc.c (dump_msymbols): Update.
12773 * symfile.h (relative_addr_info_to_section_offsets)
12774 (symfile_map_offsets_to_segments): Update.
12775 * symfile.c (build_section_addr_info_from_objfile)
12776 (init_objfile_sect_indices): Update.
12777 (struct place_section_arg): Change type of "offsets".
12778 (place_section): Update.
12779 (relative_addr_info_to_section_offsets): Change type of
12780 "section_offsets". Remove "num_sections" parameter.
12781 (default_symfile_offsets, syms_from_objfile_1)
12782 (set_objfile_default_section_offset): Update.
12783 (reread_symbols): No need to preserve section offsets by hand.
12784 (symfile_map_offsets_to_segments): Change type of "offsets".
12785 * stap-probe.c (relocate_address): Update.
12786 * stabsread.h (process_one_symbol): Update.
12787 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12788 (solib_target_relocate_section_addresses): Update.
12789 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12790 Update.
12791 * solib-frv.c (frv_relocate_main_executable): Update.
12792 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12793 * solib-aix.c (solib_aix_get_section_offsets): Change return
12794 type.
12795 (solib_aix_solib_create_inferior_hook): Update.
12796 * remote.c (remote_target::get_offsets): Update.
12797 * psymtab.c (find_pc_sect_psymtab): Update.
12798 * psympriv.h (struct partial_symbol) <address, text_low,
12799 text_high>: Update.
12800 * objfiles.h (obj_section_offset): Update.
12801 (struct objfile) <section_offsets>: Change type.
12802 <num_sections>: Remove.
12803 (objfile_relocate): Update.
12804 * objfiles.c (entry_point_address_query): Update
12805 (relocate_one_symbol): Change type of "section_offsets".
12806 (objfile_relocate1, objfile_relocate1): Change type of
12807 "new_offsets".
12808 (objfile_rebase1): Update.
12809 * mipsread.c (mipscoff_symfile_read): Update.
12810 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12811 parameter.
12812 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12813 (parse_external, psymtab_to_symtab_1): Update.
12814 * machoread.c (macho_symfile_offsets): Update.
12815 * ia64-tdep.c (ia64_find_unwind_table): Update.
12816 * hppa-tdep.c (read_unwind_info): Update.
12817 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12818 * dwarf2read.c (create_addrmap_from_index)
12819 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12820 (process_psymtab_comp_unit_reader, add_partial_symbol)
12821 (add_partial_subprogram, process_full_comp_unit)
12822 (read_file_scope, read_func_scope, read_lexical_block_scope)
12823 (read_call_site_scope, dwarf2_rnglists_process)
12824 (dwarf2_ranges_process, dwarf2_ranges_read)
12825 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12826 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12827 Update.
12828 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12829 Update.
12830 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12831 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12832 (process_one_symbol): Change type of "section_offsets".
12833 * ctfread.c (get_objfile_text_range): Update.
12834 * coffread.c (coff_symtab_read, enter_linenos)
12835 (process_coff_symbol): Update.
12836 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12837 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12838
12839 2020-01-08 Tom Tromey <tromey@adacore.com>
12840
12841 * dwarf2read.c (parse_macro_definition): Use std::string.
12842 (parse_macro_definition): Likewise.
12843
12844 2020-01-08 Tom Tromey <tromey@adacore.com>
12845
12846 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12847 (ATTR_ALLOC_CHUNK): Remove.
12848
12849 2020-01-08 Tom Tromey <tromey@adacore.com>
12850
12851 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12852
12853 2020-01-08 Tom Tromey <tromey@adacore.com>
12854
12855 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12856 (dwarf2_compute_name, open_dwo_file): Likewise.
12857 (process_enumeration_scope): Use std::vector.
12858 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12859 (partial_die_info::fixup, dwarf2_start_subfile)
12860 (guess_full_die_structure_name, dwarf2_name): Likewise.
12861 (determine_prefix): Update.
12862 (guess_full_die_structure_name): Make return type const.
12863 (partial_die_full_name): Return unique_xmalloc_ptr.
12864 (DW_FIELD_ALLOC_CHUNK): Remove.
12865
12866 2020-01-07 Tom Tromey <tromey@adacore.com>
12867
12868 PR build/24937:
12869 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12870
12871 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12872
12873 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12874
12875 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12876
12877 * stack.c (print_frame_info): Move disassemble_next_line code
12878 inside source_print block.
12879
12880 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12881
12882 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12883 gdb/signals.h, as we are now using native signal symbols.
12884
12885 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12886
12887 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12888 overflow by an early check of content vs threshold.
12889 * tui/tui-source.c (tui_source_window::line_is_displayed):
12890 Likewise.
12891
12892 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12893
12894 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12895
12896 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12897
12898 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12899 export table if no section contains it's RVA.
12900
12901 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12902
12903 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12904
12905 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12906
12907 * source.c (print_source_lines_base): Set last_line_listed.
12908
12909 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12910
12911 * tui/tui-disasm.c: Remove trailing spaces.
12912
12913 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12914 Pedro Alves <palves@redhat.com>
12915
12916 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12917 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12918 (windows_gdb_signal_to_target): New function, uses the above
12919 enumeration to convert GDB internal signal codes to equivalent
12920 Windows codes.
12921 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12922 * windows-nat.c: Include "gdb_wait.h".
12923 (get_windows_debug_event): Extract the fatal exception from the
12924 exit status and convert to the equivalent Posix signal number.
12925 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12926 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12927 * gdbsupport/gdb_wait.c: New file, implements
12928 windows_status_to_termsig.
12929 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12930 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12931
12932 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12933
12934 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12935 show_layout.
12936
12937 2020-01-05 Luis Machado <luis.machado@linaro.org>
12938
12939 * aarch64-linux-nat.c
12940 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12941 and bfd_mach_aarch64.
12942
12943 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12944
12945 * ui-file.c (stdio_file::can_emit_style_escape)
12946 (tee_file::can_emit_style_escape): Ensure style is used also on
12947 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12948 to gdb_stdout.
12949 * main.c (set_gdb_data_directory): Use file style to output the
12950 warning that the given pathname is not a directory.
12951 * top.c (show_history_filename, gdb_safe_append_history)
12952 (show_gdb_datadir): Use file style.
12953
12954 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12955
12956 * solib-target.c (struct lm_info_target):
12957 Change offsets to be a unique_xmalloc_ptr.
12958 (solib_target_relocate_section_addresses): Update.
12959
12960 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12961
12962 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12963
12964 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12965
12966 * MAINTAINERS (Write After Approval): Add myself.
12967
12968 2020-01-02 Luis Machado <luis.machado@linaro.org>
12969
12970 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12971 Cell BE architecture.
12972 * target.h (struct target_ops) <thread_architecture>: Likewise.
12973
12974 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12975
12976 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12977
12978 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12979
12980 * MAINTAINERS (Write After Approval): Add myself.
12981
12982 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12983
12984 * gdbarch.sh: Update copyright year range of generated files.
12985
12986 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12987
12988 Update copyright year range in all GDB files.
12989
12990 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12991
12992 * copyright.py: Convert to Python 3.
12993
12994 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12995
12996 * copyright.py: Adapt after move of gnulib directory from gdb
12997 directory to toplevel directory.
12998
12999 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13000
13001 * copyright.py (main): Exit if run from the wrong directory.
13002
13003 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13004
13005 * top.c (print_gdb_version): Change copyright year to 2020.
13006
13007 2020-01-01 Joel Brobecker <brobecker@adacore.com>
13008
13009 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
13010
13011 For older changes see ChangeLog-2019.
13012 \f
13013 Local Variables:
13014 mode: change-log
13015 left-margin: 8
13016 fill-column: 74
13017 version-control: never
13018 coding: utf-8
13019 End: