]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
CRIS: fix PR ld/26589, a missing NULL check in fix for PR ld/22269
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e1044e6a
MM
12020-09-14 Michael Mullin <masmullin@gmail.com>
2
3 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4 Remove baton parameter.
5
04902b09
PA
62020-09-14 Pedro Alves <pedro@palves.net>
7
8 * Makefile.in (SELFTESTS_SRCS): Add
9 unittests/enum-flags-selftests.c.
10 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
11 btrace_function_flags instead of enum btrace_function_flag.
12 * compile/compile-c-types.c (convert_qualified): Use
13 enum_flags::raw.
14 * compile/compile-cplus-symbols.c (convert_one_symbol)
15 (convert_symbol_bmsym):
16 * compile/compile-cplus-types.c (compile_cplus_convert_method)
17 (compile_cplus_convert_struct_or_union_methods)
18 (compile_cplus_instance::convert_qualified_base):
19 * go-exp.y (parse_string_or_char): Add cast to int.
20 * unittests/enum-flags-selftests.c: New file.
21 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
22 type to btrace_thread_flags from btrace_thread_flag.
23 (record_btrace_cancel_resume, record_btrace_step_thread): Change
24 local's type to btrace_thread_flags from btrace_thread_flag. Add
25 cast in DEBUG call.
26
69896a2c
PA
272020-09-14 Pedro Alves <pedro@palves.net>
28
29 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
30 * gdbtypes.c (address_space_name_to_int): Rename to ...
31 (address_space_name_to_type_instance_flags): ... this.
32 (address_space_int_to_name): Rename to ...
33 (address_space_type_instance_flags_to_name): ... this.
34 * gdbtypes.h (address_space_name_to_int): Rename to ...
35 (address_space_name_to_type_instance_flags): ... this.
36 (address_space_int_to_name): Rename to ...
37 (address_space_type_instance_flags_to_name): ... this.
38 * type-stack.c (type_stack::insert): Adjust to rename.
39 * type-stack.h (type_stack::insert): Likewise.
40
314ad88d
PA
412020-09-14 Pedro Alves <pedro@palves.net>
42 Andrew Burgess <andrew.burgess@embecosm.com>
43
44 * avr-tdep.c (avr_address_class_type_flags): Return
45 type_instance_flags.
46 (avr_address_class_type_flags_to_name): Take a
47 type_instance_flags.
48 (avr_address_class_name_to_type_flags): Return bool and take a
49 type_instance_flags.
50 * d-lang.c (build_d_types): Use type::set_instance_flags.
51 * ft32-tdep.c (ft32_address_class_type_flags): Return
52 type_instance_flags.
53 (ft32_address_class_type_flags_to_name): Take a
54 type_instance_flags.
55 (ft32_address_class_name_to_type_flags): Return bool and take a
56 type_instance_flags.
57 (ft32_gdbarch_init): Use type::set_instance_flags.
58 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
59 * gdbarch.h, gdbarch.c: Regenerate.
60 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
61 (address_class_name_to_type_flags): Use type_instance_flags and
62 bool.
63 * gdbtypes.c (address_space_name_to_int)
64 (address_space_int_to_name, make_qualified_type): Use
65 type_instance_flags.
66 (make_qualified_type): Use type_instance_flags and
67 type::set_instance_flags.
68 (make_type_with_address_space, make_cv_type, make_vector_type)
69 (check_typedef): Use type_instance_flags.
70 (recursive_dump_type): Cast type_instance_flags to unsigned for
71 printing.
72 (copy_type_recursive): Use type::set_instance_flags.
73 (gdbtypes_post_init): Use type::set_instance_flags.
74 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
75 <m_instance_flags>: ... this.
76 <instance_flags, set_instance_flags>: New methods.
77 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
78 (SET_TYPE_INSTANCE_FLAGS): New.
79 (address_space_name_to_int, address_space_int_to_name)
80 (make_type_with_address_space): Pass flags using
81 type_instance_flags instead of int.
82 * stabsread.c (cleanup_undefined_types_noname): Use
83 type::set_instance_flags.
84 * s390-tdep.c (s390_address_class_type_flags): Return
85 type_instance_flags.
86 (s390_address_class_type_flags_to_name): Take a
87 type_instance_flags.
88 (s390_address_class_name_to_type_flags): Return bool and take a
89 type_instance_flags.
90 * type-stack.c (type_stack::follow_types): Use
91 type_instance_flags.
92 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
93
27087b7f
TT
942020-09-14 Tom Tromey <tromey@adacore.com>
95
96 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
97 * x86-tdep.c (x86_is_thunk_register_name)
98 (x86_in_indirect_branch_thunk): Update.
99 * sparc64-tdep.c (sparc64_fpu_register_names)
100 (sparc64_cp0_register_names, sparc64_register_names)
101 (sparc64_pseudo_register_names): Now const.
102 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
103 cp0_registers_num>: Now const.
104 * sparc-tdep.c (sparc_core_register_names)
105 (sparc32_fpu_register_names, sparc32_cp0_register_names)
106 (sparc32_pseudo_register_names): Now const.
107 (validate_tdesc_registers): Update.
108 * rust-lang.c (rust_extensions): Now const.
109 * p-lang.c (p_extensions): Now const.
110 * objc-lang.c (objc_extensions): Now const.
111 * nto-tdep.c (nto_thread_state_str): Now const.
112 * moxie-tdep.c (moxie_register_names): Now const.
113 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
114 Now const.
115 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
116 (mips_linux_reg_names): Now const.
117 (mips_gdbarch_init): Update.
118 * microblaze-tdep.c (microblaze_register_names): Now const.
119 * m68k-tdep.c (m68k_register_names): Now const.
120 * m32r-tdep.c (m32r_register_names): Now const.
121 * ia64-tdep.c (ia64_register_names): Now const.
122 * i386-tdep.h (struct gdbarch_tdep) <register_names,
123 ymmh_register_names, ymm16h_regnum, mpx_register_names,
124 k_register_names, zmmh_register_names, xmm_avx512_register_names,
125 ymm_avx512_register_names, pkeys_register_names>: Now const.
126 * i386-tdep.c (i386_register_names, i386_zmm_names)
127 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
128 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
129 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
130 * f-lang.c (f_extensions): Now const.
131 * d-lang.c (d_extensions): Now const.
132 * csky-tdep.c (csky_register_names): Now const.
133 * charset.c (default_charset_names, charset_enum): Now const.
134 (_initialize_charset): Update.
135 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
136 const.
137 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
138 (bsd_uthread_solib_loaded): Update.
139 (bsd_uthread_state): Now const.
140 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
141 (amd64_ymm_avx512_names, amd64_ymmh_names)
142 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
143 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
144 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
145 (amd64_dword_names): Now const.
146 * agent.c (can_use_agent_enum): Now const.
147 * ada-tasks.c (task_states, long_task_states): Now const.
148 * ada-lang.c (known_runtime_file_name_patterns)
149 (known_auxiliary_function_name_patterns, attribute_names)
150 (standard_exc, ada_extensions): Now const.
151
89806626
SM
1522020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
153
154 * bcache.h (struct bcache) <bcache>: Remove constructor.
155 <m_hash_function, m_compare_function>: Remove.
156 <~bcache>: Make virtual.
157 <compare>: Remove static method, introduce virtual method.
158 <default_hash>: Remove.
159 <hash>: New virtual method.
160 * bcache.c (bcache::expand_hash_table): Update.
161 (bcache::insert): Update.
162 (bcache::hash): New.
163 (bcache::compare): Update comment and parameter names.
164 * gdbtypes.c (types_deeply_equal): Update.
165 * psymtab.h (struct psymbol_bcache): New struct.
166 (class psymtab_storage) <psymtab_storage>: Make default.
167 <psymbol_cache>: Change type to psymbol_bcache.
168 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
169 (psymbol_hash): Change to...
170 (psymbol_bcache::hash): ... this.
171 (psymbol_compare): Change to...
172 (psymbol_bcache::compare): ... this.
173
677c92fe
SM
1742020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
175
176 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
177 checking for initial lwp.
178
3eba3a01
TT
1792020-09-14 Tom Tromey <tromey@adacore.com>
180
181 * m68k-tdep.c (m68k_extract_return_value): Use
182 pointer_result_regnum.
183 (m68k_store_return_value): Likewise.
184 (m68k_reg_struct_return_p): Handle vectors and arrays.
185 (m68k_return_value): Handle arrays.
186 (m68k_svr4_return_value): Fix single-element aggregate handling.
187 Handle long double. Adjust for embedded ABI.
188 (m68k_svr4_init_abi): Set pointer_result_regnum.
189 (m68k_embedded_init_abi): New function.
190 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
191 (m68k_osabi_sniffer): New function.
192 (_initialize_m68k_tdep): Register osabi sniffer.
193 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
194 member.
195
33f4dd48
SM
1962020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
197
198 * xml-support.c (xml_fetch_content_from_file): Replace xfree
199 with gdb::unique_xmalloc_ptr<char>.
200
8400a90d
SM
2012020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
202
203 * xml-support.h (xml_fetch_another): Change type to be a
204 function_view.
205 (xml_process_xincludes): Remove baton parameter.
206 (xml_fetch_content_from_file): Change baton parameter to
207 dirname.
208 * xml-support.c (struct xinclude_parsing_data)
209 <xinclude_parsing_data>: Remove baton parameter.
210 <fetcher_baton>: Remove.
211 (xinclude_start_include): Adjust.
212 (xml_process_xincludes): Adjust.
213 (xml_fetch_content_from_file): Replace baton parameter with
214 dirname.
215 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
216 (xml_init_syscalls_info): Use a lambda.
217 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
218 (file_read_description_xml): Use a lambda.
219 (fetch_available_features_from_target): Change baton parameter
220 to target_ops.
221 (target_read_description_xml): Use a lambda.
222 (target_fetch_description_xml): Use a lambda.
223 (string_read_description_xml): Update.
224
04f5bab2
SM
2252020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
226
227 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
228 uses with type::endianity_is_not_default.
229
db558e34
SM
2302020-09-14 Simon Marchi <simon.marchi@efficios.com>
231
232 * gdbtypes.h (struct type) <endianity_is_not_default,
233 set_endianity_is_not_default>: New methods.
234 (TYPE_ENDIANITY_NOT_DEFAULT): Use
235 type::endianity_is_not_default, change all write call sites to
236 use type::set_endianity_is_not_default.
237
22c4c60c
SM
2382020-09-14 Simon Marchi <simon.marchi@efficios.com>
239
240 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
241 uses with type::is_fixed_instance.
242
9cdd0d12
SM
2432020-09-14 Simon Marchi <simon.marchi@efficios.com>
244
245 * gdbtypes.h (struct type) <is_fixed_instance,
246 set_is_fixed_instance>: New methods.
247 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
248 write call sites to use type::set_is_fixed_instance.
249
0becda7a
SM
2502020-09-14 Simon Marchi <simon.marchi@efficios.com>
251
252 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
253 uses with type::is_gnu_ifunc.
254
03cc7249
SM
2552020-09-14 Simon Marchi <simon.marchi@efficios.com>
256
257 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
258 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
259 use type::set_is_gnu_ifunc.
260
3f46044c
SM
2612020-09-14 Simon Marchi <simon.marchi@efficios.com>
262
263 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
264 uses with type::stub_is_supported.
265
9baccff6
SM
2662020-09-14 Simon Marchi <simon.marchi@efficios.com>
267
268 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
269 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
270 use type::set_stub_is_supported.
271
bd63c870
SM
2722020-09-14 Simon Marchi <simon.marchi@efficios.com>
273
274 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
275 uses with type::is_vector.
276
2062087b
SM
2772020-09-14 Simon Marchi <simon.marchi@efficios.com>
278
279 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
280 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
281 use type::set_is_vector.
282
a409645d
SM
2832020-09-14 Simon Marchi <simon.marchi@efficios.com>
284
285 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
286 uses with type::has_varargs.
287
1d6286ed
SM
2882020-09-14 Simon Marchi <simon.marchi@efficios.com>
289
290 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
291 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
292 use type::set_has_varargs.
293
7f9f399b
SM
2942020-09-14 Simon Marchi <simon.marchi@efficios.com>
295
296 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
297 uses with type::is_prototyped.
298
27e69b7a
SM
2992020-09-14 Simon Marchi <simon.marchi@efficios.com>
300
301 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
302 New methods.
303 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
304 call sites to use type::set_is_prototyped.
305
d2183968
SM
3062020-09-14 Simon Marchi <simon.marchi@efficios.com>
307
308 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
309 uses with type::target_is_stub.
310
8f53807e
SM
3112020-09-14 Simon Marchi <simon.marchi@efficios.com>
312
313 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
314 New methods.
315 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
316 sites to use type::set_target_is_stub.
317
e46d3488
SM
3182020-09-14 Simon Marchi <simon.marchi@efficios.com>
319
320 * gdbtypes.h (TYPE_STUB): Remove, replace all
321 uses with type::is_stub.
322
b4b73759
SM
3232020-09-14 Simon Marchi <simon.marchi@efficios.com>
324
325 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
326 (TYPE_STUB): Use type::is_stub, change all write call sites to
327 use type::set_is_stub.
328
20ce4123
SM
3292020-09-14 Simon Marchi <simon.marchi@efficios.com>
330
331 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
332 type::has_no_signedness.
333
15152a54
SM
3342020-09-14 Simon Marchi <simon.marchi@efficios.com>
335
336 * gdbtypes.h (struct type) <has_no_signedness,
337 set_has_no_signedness>: New methods.
338 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
339 call sites to use type::set_has_no_signedness.
340
c6d940a9
SM
3412020-09-14 Simon Marchi <simon.marchi@efficios.com>
342
343 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
344 type::is_unsigned.
345
653223d3
SM
3462020-09-14 Simon Marchi <simon.marchi@efficios.com>
347
348 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
349 methods.
350 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
351 sites to use type::set_is_unsigned.
352
55ea94da
FH
3532020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
354 Adam Renquinha <arenquinha@cimeq.qc.ca>
355
356 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
357 pointer and stack frame offset when unwinding.
358
6791b117
PA
3592020-09-13 Pedro Alves <pedro@palves.net>
360
361 * NEWS: Document "-break-insert --qualified".
362 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
363
77f2120b
PA
3642020-09-13 Pedro Alves <pedro@palves.net>
365
366 * linespec.c (classify_mtype, compare_msyms): Delete.
367 (search_minsyms_for_name): Remove classification logic. Instead
368 filter out trampoline symbols if we also found an external
369 function of the same name.
370
ed6a896c
JB
3712020-09-13 Joel Brobecker <brobecker@adacore.com>
372
373 * NEWS: Create a new section for the next release branch.
374 Rename the section of the current branch, now that it has
375 been cut.
376
32aea73e
JB
3772020-09-13 Joel Brobecker <brobecker@adacore.com>
378
379 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
380 * version.in: Bump version to 11.0.50.DATE-git.
381
8087c3fa
JB
3822020-09-12 Joel Brobecker <brobecker@adacore.com>
383
384 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
385
2a67f09d
FW
3862020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
387 Felix Willgerodt <Felix.Willgerodt@intel.com>
388
389 * gdbarch.sh: Added bfloat16 type.
390 * gdbarch.c: Regenerated.
391 * gdbarch.h: Regenerated.
392 * gdbtypes.c (floatformats_bfloat16): New struct.
393 (gdbtypes_post_init): Add builtin_bfloat16.
394 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
395 (floatformats_bfloat16): New struct.
396 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
397 (i386_ymm_type): Add field "v16_bfloat16"
398 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
399 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
400 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
401 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
402 * features/i386/64bit-avx512.xml: Add bfloat16 type.
403 * features/i386/64bit-avx512.c: Regenerated.
404 * features/i386/64bit-sse.xml: Add bfloat16 type.
405 * features/i386/64bit-sse.c: Regenerated.
406
1347d111
FW
4072020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
408
409 * i386-tdep.c (i386_zmm_type): Fix field names.
410 (i386_ymm_type): Fix field names.
411
7a4e8e7d
TBA
4122020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
413
414 * breakpoint.c: Fix typo in the help message of the
415 "set breakpoint condition-evaluation" command.
416
cf4ac4be
KR
4172020-09-10 Kamil Rytarowski <n54@gmx.com>
418
419 * nbsd-nat.c: Include "nat/netbsd-nat.h".
420 * (nbsd_nat_target::pid_to_exec_file)
421 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
422 (nbsd_nat_target::post_startup_inferior)
423 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
424 (nbsd_add_threads): Switch local code to common gdb/nat functions.
425 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
426 * (nbsd_thread_lister): Remove.
427
f404573e
KR
4282020-09-10 Kamil Rytarowski <n54@gmx.com>
429
430 * fork-inferior.c (startup_inferior): Avoid double free.
431
1ccb2c17
KR
4322020-09-10 Kamil Rytarowski <n54@gmx.com>
433
434 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
435 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
436
feedfcc7
KR
4372020-09-10 Kamil Rytarowski <n54@gmx.com>
438
439 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
440 * netbsd-nat.c: Include <sys/ptrace.h>.
441 * (netbsd_nat::enable_proc_events): Add.
442
c489f8c6
KR
4432020-09-10 Kamil Rytarowski <n54@gmx.com>
444
445 * netbsd-nat.h: Include "gdbsupport/function-view.h".
446 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
447 (netbsd_nat::for_each_thread): Add.
448 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
449 "gdbsupport/common-debug.h".
450 * (netbsd_nat::netbsd_thread_lister)
451 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
452 (netbsd_nat::for_each_thread): Add.
453
330662f6
KR
4542020-09-10 Kamil Rytarowski <n54@gmx.com>
455
456 * netbsd-nat.h: Include <unistd.h>.
457 * (netbsd_nat::pid_to_exec_file): Add.
458 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
459 * (netbsd_nat::pid_to_exec_file) Add.
460
70b67307
KR
4612020-09-10 Kamil Rytarowski <n54@gmx.com>
462
463 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
464
99cf6da6
KR
4652020-09-10 Kamil Rytarowski <n54@gmx.com>
466
467 * netbsd-nat.h: New file.
468 * netbsd-nat.c: Likewise.
469
1b788fb6
TT
4702020-09-09 Tom Tromey <tromey@adacore.com>
471
472 * ada-lang.c (remove_extra_symbols): Do not increment when
473 removing an element
474
03b0a45f
TT
4752020-09-08 Tom Tromey <tromey@adacore.com>
476
477 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
478
3cae4447
TT
4792020-09-08 Tom Tromey <tromey@adacore.com>
480
481 PR win32/25302:
482 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
483 (gdb_bfd_init_data): New function.
484 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
485
7f08fd51
TBA
4862020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
487
488 * infrun.c (fetch_inferior_event): Use
489 `switch_to_target_no_thread` to switch the target.
490
3e6ff933
TT
4912020-09-06 Tom Tromey <tom@tromey.com>
492
493 * symfile.h (dwarf2_free_objfile): Don't declare.
494
e56798df
AKS
4952020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
496
497 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
498 to match 16 byte real/complex type generated by Flang compiler.
499
8f5c6526
TV
5002020-09-03 Tom de Vries <tdevries@suse.de>
501
502 PR breakpoint/26546
503 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
504 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
505
c5065df0
SM
5062020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
507
508 * maint.c (index_digits): New function.
509 (struct maint_print_section_data): Remove.
510 (print_bfd_section_info): Remove print_data parameter, add arg
511 and index_digits.
512 (print_objfile_section_info): Likewise.
513 (print_bfd_section_info_maybe_relocated): Likewise (plus
514 objfile).
515 (maintenance_info_sections): Adjust calls.
516
02c6f3f1
TT
5172020-09-02 Tom Tromey <tromey@adacore.com>
518
519 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
520 for null pointers.
521 (ada_varobj_adjust_for_child_access): Special-case null pointers.
522
ef5e5b0b
SM
5232020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
524
525 * bcache.h (struct bcache) <insert>: Change type of `added` to
526 pointer to bool.
527 * bcache.c (bcache::insert): Likewise.
528 * gdbtypes.c (check_types_worklist): Adjust.
529 * psymtab.c (add_psymbol_to_bcache): Adjust.
530
973695d6
KB
5312020-08-31 Kevin Buettner <kevinb@redhat.com>
532
533 * corelow.c (unordered_set): Include.
534 (class core_target): Add field 'm_core_unavailable_mappings'.
535 (core_target::build_file_mappings): Print only one warning
536 per inaccessible file. Add unavailable/broken mappings
537 to m_core_unavailable_mappings.
538 (core_target::xfer_partial): Call...
539 (core_target::xfer_memory_via_mappings): New method.
540
264fc0e2
SM
5412020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
542
543 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
544 type to bool.
545
2de01bdb
SM
5462020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
547
548 * dwarf2/read.c (struct field_info): Fix indentation.
549
f3bd50f1
SM
5502020-08-31 Simon Marchi <simon.marchi@efficios.com>
551
552 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
553 ordering in comment.
554 * frame.c (frame_id_eq): Fix indentation.
555
22b9b4b0
SL
5562020-08-31 Scott Linder <scott@scottlinder.com>
557 Simon Marchi <simon.marchi@efficios.com>
558
559 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
560 inline frame ids in outer frame.
561
84154d16
SM
5622020-08-31 Simon Marchi <simon.marchi@efficios.com>
563
564 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
565 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
566 (outer_frame_id): Use FID_STACK_OUTER instead of
567 FID_STACK_INVALID.
568 (frame_id_p): Don't check for outer_frame_id.
569
8efaf6b3
SM
5702020-08-31 Simon Marchi <simon.marchi@efficios.com>
571
572 * frame-unwind.c (frame_unwind_got_optimized): Don't set
573 regnum/frame in value. Call allocate_value_lazy.
574 * frame.c (frame_unwind_register_value): Use
575 val_print_not_saved.
576
fe1fe7ea
SM
5772020-08-31 Simon Marchi <simon.marchi@efficios.com>
578
579 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
580
f7c7700d
PA
5812020-08-29 Pedro Alves <pedro@palves.net>
582
583 * progspace.c (print_program_space): Use all_inferiors. Switch to
584 the inferior before calling target_pid_to_str.
585
e0814aae
TT
5862020-08-28 Tom Tromey <tom@tromey.com>
587
588 * xcoffread.c (xcoff_end_psymtab): Update comment.
589 * dbxread.c (dbx_end_psymtab): Update comment.
590
626d2320
TV
5912020-08-28 Tom de Vries <tdevries@suse.de>
592
593 PR breakpoint/26544
594 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
595 event_location.
596 (create_breakpoint): Same.
597 (base_breakpoint_decode_location): Same.
598 (bkpt_create_sals_from_location): Same.
599 (bkpt_decode_location): Same.
600 (bkpt_probe_create_sals_from_location): Same.
601 (bkpt_probe_decode_location): Same.
602 (tracepoint_create_sals_from_location): Same.
603 (tracepoint_decode_location): Same.
604 (tracepoint_probe_decode_location): Same.
605 (strace_marker_create_sals_from_location): Same.
606 (strace_marker_decode_location): Same.
607 (create_sals_from_location_default): Same.
608 (decode_location_default): Same.
609 * breakpoint.h (struct breakpoint_ops): Same.
610 (create_breakpoint): Same.
611 * linespec.h (decode_line_full): Same.
612 * linespec.c (decode_line_full): Same. Throw error if
613 result.size () == 0.
614
df631783
PA
6152020-08-27 Pedro Alves <pedro@palves.net>
616
617 PR gdb/26524
618 * breakpoint.c (until_break_fsm) <location_breakpoint,
619 caller_breakpoint>: Delete fields.
620 <breakpoints>: New field.
621 <until_break_fsm>: Adjust to save a breakpoint vector instead of
622 two individual breakpoints.
623 (until_break_fsm::should_stop): Loop over breakpoints in the
624 breakpoint vector.
625 (until_break_fsm::clean_up): Adjust to clear the breakpoints
626 vector.
627 (until_break_command): Handle location expanding into multiple
628 sals.
629
b2b38aa4
PA
6302020-08-27 Pedro Alves <pedro@palves.net>
631
632 PR gdb/26523
633 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
634 bp_until breakpoints user-specified locations. Update intro
635 comment.
636
b886559f
SM
6372020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
638
639 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
640 gdb_bfd_sections): New.
641 * maint.c (print_bfd_section_info): Change param type to
642 maint_print_section_data.
643 (print_objfile_section_info): Likewise.
644 (print_bfd_section_info_maybe_relocated): Likewise.
645 (maintenance_info_sections): Use gdb_bfd_sections.
646
4c6e63bf
SV
6472020-08-25 Shahab Vahedi <shahab@synopsys.com>
648
649 * MAINTAINERS: Add ARC target and maintainer.
650
8d7f0635
AK
6512020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
652
653 * configure.tgt: ARC support for GNU/Linux.
654 * Makefile.in (ALL_TARGET_OBJS): Likewise.
655 * arc-linux-tdep.c: New file.
656 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
657 * arc-tdep.c (arc_write_pc): Use it.
658
fdd8731b
SV
6592020-08-25 Shahab Vahedi <shahab@synopsys.com>
660
661 * arc-tdep.c (arc_check_for_hardware_loop): New.
662 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
663
22459524
SV
6642020-08-25 Shahab Vahedi <shahab@synopsys.com>
665
666 * arc-tdep.h: Include "gdbarch.h".
667
995d3a19
SV
6682020-08-25 Shahab Vahedi <shahab@synopsys.com>
669
670 * arch/arc.h
671 (arc_gdbarch_features): New class to stir the selection of target XML.
672 (arc_create_target_description): Use FEATURES to choose XML target.
673 (arc_lookup_target_description): Use arc_create_target_description
674 to create _new_ target descriptions or return the already created
675 ones if the FEATURES is the same.
676 * arch/arc.c: Implementation of prototypes described above.
677 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
678 (arc_gdbarch_features_init): Initialize the FEATURES struct.
679 * arc-tdep.c (*_feature_name): Make feature names consistent.
680 (arc_register_feature): A new struct to hold information about
681 registers of a particular target/feature.
682 (arc_check_tdesc_feature): Check if XML provides registers in
683 compliance with ARC_REGISTER_FEATURE structs.
684 (arc_update_acc_reg_names): Add aliases for r58 and r59.
685 (determine_*_reg_feature_set): Which feature name to look for.
686 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
687 (mach_type_to_arc_isa): Convert from a set of binutils machine types
688 to expected ISA enums to be used in arc_gdbarch_features structs.
689 * features/Makefile (FEATURE_XMLFILES): Add new files.
690 * gdb/features/arc/v1-aux.c: New file.
691 * gdb/features/arc/v1-aux.xml: Likewise.
692 * gdb/features/arc/v1-core.c: Likewise.
693 * gdb/features/arc/v1-core.xml: Likewise.
694 * gdb/features/arc/v2-aux.c: Likewise.
695 * gdb/features/arc/v2-aux.xml: Likewise.
696 * gdb/features/arc/v2-core.c: Likewise.
697 * gdb/features/arc/v2-core.xml: Likewise.
698 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
699
3945d2d7
GM
7002020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
701 Andrew Burgess <andrew.burgess@embecosm.com>
702
703 PR m2/26372
fc5d6901 704 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
705 an assert. Remove single element array indexing pattern as the
706 MULTI_SUBSCRIPT support will handle this case too.
707
2677f2d3
SM
7082020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
709
710 * value.h (valprint_check_validity): Move declaration from
711 here...
712 * valprint.h (valprint_check_validity): ... to here.
713
c426fddb
SM
7142020-08-24 Simon Marchi <simon.marchi@efficios.com>
715
716 * debug.h: New file.
717 * debug.c (debug_prefixed_vprintf): New function.
718 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
719 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
720
1eb8556f
SM
7212020-08-24 Simon Marchi <simon.marchi@efficios.com>
722
723 * infrun.h (infrun_debug_printf_1): New function declaration.
724 (infrun_debug_printf): New macro.
725 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
726 throughout.
727 (infrun_debug_printf): New function.
728 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
729 (handle_jit_event): Likewise.
730
b8fff44e
MW
7312020-08-21 Mark Wielaard <mark@klomp.org>
732
733 * ada-lex.l: Extend register warnings diagnostics comment for g++.
734
d19c3068
SM
7352020-08-22 Simon Marchi <simon.marchi@efficios.com>
736
737 * frame.c (enum class frame_id_status): New.
738 (struct frame_info) <this_id::p>: Change type to frame_id_status.
739 (fprintf_frame): Update.
740 (compute_frame_id): Set frame id status to "computing" on entry.
741 Set it back to "not_computed" on failure and to "computed" on
742 success.
743 (get_frame_id): Assert the frame id is not being computed.
744 (create_sentinel_frame): Use frame_id_status::COMPUTED.
745 (create_new_frame): Likewise.
746 (frame_cleanup_after_sniffer): Update assert.
747
b70e516e
SM
7482020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
749
750 * regcache.c (pid_ptid_regcache_map): New type.
751 (target_ptid_regcache_map): Remove.
752 (target_pid_ptid_regcache_map): New type.
753 (regcaches): Change type to target_pid_ptid_regcache_map.
754 (get_thread_arch_aspace_regcache): Update.
755 (regcache_thread_ptid_changed): Update, handle pid-like ptid
756 case.
757 (regcaches_size): Update.
758 (regcache_count): Update.
759 (registers_changed_ptid_target_pid_test): New.
760 (_initialize_regcache): Register new test.
761
cdd9148a
SM
7622020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
763
764 * regcache.c (regcache_count): New.
765 (struct regcache_test_data): New.
766 (regcache_test_data_up): New.
767 (populate_regcaches_for_test): New.
768 (regcaches_test): Remove.
769 (get_thread_arch_aspace_regcache_test): New.
770 (registers_changed_ptid_all_test): New.
771 (registers_changed_ptid_target_test): New.
772 (registers_changed_ptid_target_ptid_test): New.
773 (regcache_thread_ptid_changed): Remove regcache_count lambda.
774 (_initialize_regcache): Register new tests.
775
dd125343
SM
7762020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
777
778 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
779 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
780 gdbarch and aspace parameter. Use current inferior's aspace.
781 Validate regcache's arch value.
782 (regcaches_test): Update.
783
3ee93972
SM
7842020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
785
786 * regcache.c (regcaches_test): Call registers_changed.
787
33bf4c5c
TBA
7882020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
789
790 * infrun.c (process_event_stop_test): Fix typo "breapoint".
791
c2fd7fae
AKS
7922020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
793
794 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
795 to find the end of prologue for flang compiled binaries.
796 * arm-tdep.c (arm_skip_prologue): Likewise.
797 * i386-tdep.c (i386_skip_prologue): Likewise.
798 * producer.c (producer_is_llvm): New function.
799 (producer_parsing_tests): Added new tests for clang/flang.
800 * producer.h (producer_is_llvm): New declaration.
801
9327494e
SM
8022020-08-18 Simon Marchi <simon.marchi@efficios.com>
803
804 * linux-nat.c (linux_nat_debug_printf): New function.
805 (linux_nat_debug_printf_1): New macro. Use throughout the file.
806
d138725a
AM
8072020-08-18 Aaron Merey <amerey@redhat.com>
808
809 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
810 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
811 (CLIBS): Add DEBUGINFOD_LIBS.
812
f9b11e6b
ST
8132020-08-17 Sergei Trofimovich <siarheit@google.com>
814
815 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
816 'gdbarch_num_regs'.
817
3ae7ab99
TT
8182020-08-17 Tom Tromey <tromey@adacore.com>
819
820 * ada-varobj.c (ada_varobj_decode_var): Handle case where
821 ada_get_decoded_value returns NULL.
822
b017825f
TT
8232020-08-17 Tom Tromey <tromey@adacore.com>
824
825 * python/py-inferior.c (infpy_search_memory): Use
826 gdb_py_object_from_ulongest.
827 * python/py-infevents.c (create_inferior_call_event_object)
828 (create_memory_changed_event_object): Use
829 gdb_py_object_from_ulongest.
830 * python/py-linetable.c (ltpy_entry_get_pc): Use
831 gdb_py_object_from_ulongest.
832
7635cf79
SM
8332020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
834
835 * loc.c (class symbol_needs_eval_context): Fix indentation.
836
f54be24b
SM
8372020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
838
839 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
840 bool.
841
53d5a2a5
TV
8422020-08-17 Tom de Vries <tdevries@suse.de>
843
844 PR gdb/26393
845 * gdbtypes.c (dump_dynamic_prop): New function.
846 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
847
547ce8f0
TV
8482020-08-15 Tom de Vries <tdevries@suse.de>
849
850 PR backtrace/26390
851 * stack.c (print_frame_args): Temporarily set the selected
852 frame to FRAME while printing the frame's arguments.
853
6ea815e7
PFC
8542020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
855
856 PR breakpoints/26385
857 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
858 Always clear watchpoint with PTRACE_SET_DEBUGREG.
859
6e562fa3
PFC
8602020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
861
862 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
863 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
864 and >= to check return value instead of == -1 and != -1.
865
d369b608
SM
8662020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
867
868 * utils.h (class gdb_argv) <as_array_view>: New method.
869 * utils.c (gdb_argv_as_array_view_test): New.
870 (_initialize_utils): Register selftest.
871 * maint.c (maintenance_selftest): Use the new method.
872
b31488a3
KR
8732020-08-13 Kamil Rytarowski <n54@gmx.com>
874
875 * target.h (supports_dumpcore, dumpcore): New
876 function declarations.
877 * target.c (supports_dumpcore, dumpcore): New
878 functions.
879 * target-delegates.c: Rebuild.
880 * gcore.c (gcore_command): Use target_supports_dumpcore ()
881 and target_dumpcore ().
882
002a3166
AM
8832020-08-13 Aaron Merey <amerey@redhat.com>
884
885 * debuginfod-support.c: Replace global variables with user_data.
886
ece5bc8a
SM
8872020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
888
889 * maint.c (maintenance_selftest): Split args and pass array_view
890 to run_tests.
891
6d8a0a5e
LM
8922020-08-12 Luis Machado <luis.machado@linaro.org>
893
894 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
895 type's length.
896 Use %s and pulongest to print the length.
897
7cf663a9
PA
8982020-08-12 Pedro Alves <palves@redhat.com>
899
900 * NEWS: Move "Multi-target debugging support" item to the
901 "Changes since GDB 9" section.
902
27c7b875
PA
9032020-08-12 Pedro Alves <palves@redhat.com>
904
905 PR gdb/26336
906 * progspace.c (program_space::remove_objfile): Invalidate the
907 frame cache.
908
1796a2a1
TV
9092020-08-11 Tom de Vries <tdevries@suse.de>
910
911 * MAINTAINERS: Mark ms1 as deleted.
912
f8e3fe0d
LM
9132020-08-10 Luis Machado <luis.machado@linaro.org>
914
915 PR gdb/26310
916
917 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
918 act accordingly.
919 (aarch64_analyze_prologue_test): Add more unit tests to exercise
920 movz/str/stur/stp skipping behavior.
921
cc308722
LM
9222020-08-10 Luis Machado <luis.machado@linaro.org>
923
924 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
925 struct user_sve_header instead of struct sve_context.
926
041d9819
SM
9272020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
928
929 * read.h (dwarf2_fetch_die_loc_sect_off,
930 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
931 `void *` parameter with function_view.
932 * read.c (dwarf2_fetch_die_loc_sect_off,
933 dwarf2_fetch_die_loc_cu_off): Likewise.
934 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
935 (per_cu_dwarf_call): Adjust.
936 (get_frame_address_in_block_wrapper): Remove.
937 (indirect_synthetic_pointer): Adjust.
938 (get_ax_pc): Remove.
939 (dwarf2_compile_expr_to_ax): Adjust.
940
38f8aa06
TV
9412020-08-08 Tom de Vries <tdevries@suse.de>
942
943 PR build/26344
944 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
945 constructor.
946 * regcache.c (get_thread_arch_aspace_regcache): Same.
947
a52b3ae2
TT
9482020-08-07 Tom Tromey <tromey@adacore.com>
949
950 * ravenscar-thread.c
951 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
952 New method.
953 (ravenscar_thread_target::wait): Check
954 runtime_initialized.
955 (ravenscar_thread_target::prepare_to_store)
956 (ravenscar_thread_target::stopped_by_sw_breakpoint)
957 (ravenscar_thread_target::stopped_by_hw_breakpoint)
958 (ravenscar_thread_target::stopped_by_watchpoint)
959 (ravenscar_thread_target::stopped_data_address)
960 (ravenscar_thread_target::core_of_thread): Use
961 scoped_restore_current_thread and
962 set_base_thread_from_ravenscar_task.
963
0e29517d
TT
9642020-08-07 Tom Tromey <tromey@adacore.com>
965
966 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
967
592f9bd7
TT
9682020-08-07 Tom Tromey <tromey@adacore.com>
969
970 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
971 update_inferior_ptid before update_thread_list.
972 (temporarily_change_regcache_ptid): New class.
973 (ravenscar_thread_target::fetch_registers)
974 (ravenscar_thread_target::store_registers)
975 (ravenscar_thread_target::prepare_to_store): Use base thread when
976 forwarding operation.
977
39e2018a
TT
9782020-08-07 Tom Tromey <tromey@adacore.com>
979
980 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
981 "is_pid" case.
982
2080266b
TT
9832020-08-07 Tom Tromey <tromey@adacore.com>
984
985 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
986 New methods.
987 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
988 first.
989 (ravenscar_thread_target::add_thread): Rename from
990 ravenscar_add_thread.
991 (ravenscar_thread_target::update_thread_list): Use a lambda.
992 (ravenscar_thread_target::xfer_partial): New method.
993
78c02f21
TT
9942020-08-07 Tom Tromey <tromey@adacore.com>
995
996 * ada-lang.h (ada_task_list_iterator_ftype): Now a
997 gdb::function_view.
998 (iterate_over_live_ada_tasks): Change type of argument.
999 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
1000 of argument.
1001
d5d833af
TT
10022020-08-07 Tom Tromey <tromey@adacore.com>
1003
1004 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
1005 Remove.
1006 (ravenscar_thread_target::extra_thread_info): Remove.
1007 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
1008 defer to target beneath for non-Ravenscar threads.
1009
a8ac85bb
TT
10102020-08-07 Tom Tromey <tromey@adacore.com>
1011
1012 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
1013 get_base_thread_from_ravenscar_task>: Now methods.
1014 <m_cpu_map>: New member.
1015 (ravenscar_thread_target::get_thread_base_cpu): Rename from
1016 ravenscar_get_thread_base_cpu. Check m_cpu_map.
1017 (ravenscar_thread_target::task_is_currently_active): Update.
1018 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
1019 Now a method.
1020 (ravenscar_thread_target::add_active_thread): Put initial thread
1021 into the m_cpu_map.
1022
550ab58d
TT
10232020-08-07 Tom Tromey <tromey@adacore.com>
1024
1025 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
1026 event_ptid.
1027
e9546579
TT
10282020-08-07 Tom Tromey <tromey@adacore.com>
1029
1030 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
1031 runtime_initialized.
1032
3d4470e5
TT
10332020-08-07 Tom Tromey <tromey@adacore.com>
1034
1035 * ravenscar-thread.c (ravenscar_thread_target): Don't call
1036 add_active_thread.
1037 (ravenscar_thread_target::add_active_thread): Now public.
1038 (ravenscar_inferior_created): Call add_active_thread after pushing
1039 the target.
1040
888bdb2b
SM
10412020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1042
1043 * regcache.c (ptid_regcache_map): New type.
1044 (target_ptid_regcache_map): New type.
1045 (regcaches): Change type to target_ptid_regcache_map.
1046 (get_thread_arch_aspace_regcache): Update to regcaches' new
1047 type.
1048 (regcache_thread_ptid_changed): Likewise.
1049 (registers_changed_ptid): Likewise.
1050 (regcaches_size): Likewise.
1051 (regcaches_test): Update.
1052 (regcache_thread_ptid_changed): Update.
1053 * regcache.h (regcache_up): New type.
1054 * gdbsupport/ptid.h (hash_ptid): New struct.
1055
b161a60d
SM
10562020-08-07 Simon Marchi <simon.marchi@efficios.com>
1057
1058 * observable.h (thread_ptid_changed): Add parameter
1059 `process_stratum_target *`.
1060 * infrun.c (infrun_thread_ptid_changed): Add parameter
1061 `process_stratum_target *` and use it.
1062 (selftests): New namespace.
1063 (infrun_thread_ptid_changed): New function.
1064 (_initialize_infrun): Register selftest.
1065 * regcache.c (regcache_thread_ptid_changed): Add parameter
1066 `process_stratum_target *` and use it.
1067 (regcache_thread_ptid_changed): New function.
1068 (_initialize_regcache): Register selftest.
1069 * thread.c (thread_change_ptid): Pass target to
1070 thread_ptid_changed observable.
1071
d2854d8d
CT
10722020-08-06 Caroline Tice <cmtice@google.com>
1073
fe4c3d43
SM
1074 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1075 (struct dwp_sections): Update field comments. Add loclists and
1076 rnglists fields.
1077 (struct virtual_v2_dwo_sections): Rename struct to
1078 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1079 size & offset fields for loclists and rnglists.
1080 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1081 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1082 skipping dummy type units.
1083 (create_dwp_hash_table): Update the large comment above the function to
1084 discuss Version 5 DWP files as well, with references. Update all the
1085 version checks in the function to check for version 5 as well. Add new
1086 section at the end to create dwp hash table for version 5.
1087 (create_dwp_v2_section): Rename function to
1088 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1089 Add V5 to error message text.
1090 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1091 into calls to create_dwp_v2_or_v5_section.
1092 (create_dwo_unit_in_dwp_v5): New function.
1093 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1094 check for version2; add else clause to handle version 5.
1095 (open_and_init_dwo_file): Add code to check dwarf version & only call
1096 create_debug_types_hash_table (with sections.types) if version is not 5;
1097 else call create_debug_type_hash_table, with sections.info.
1098 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1099 version 5.
1100 (dwarf2_locate_v5_dwp_sections): New function.
1101 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1102 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 1103
159ed7d9
SM
11042020-08-06 Simon Marchi <simon.marchi@efficios.com>
1105
1106 * regcache.h (class regcache): Remove friend
1107 registers_changed_ptid.
1108 <regcache_thread_ptid_changed>: Remove.
1109 <regcaches>: Remove.
1110 * regcache.c (regcache::regcaches): Rename to...
1111 (regcaches): ... this. Make static.
1112 (get_thread_arch_aspace_regcache): Update.
1113 (regcache::regcache_thread_ptid_changed): Rename to...
1114 (regcache_thread_ptid_changed): ... this. Update.
1115 (class regcache_access): Remove.
1116 (regcaches_test): Update.
1117 (_initialize_regcache): Update.
1118 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1119 <forward_list>.
1120
174981ae
SM
11212020-08-06 Simon Marchi <simon.marchi@efficios.com>
1122
1123 * regcache.h (class regcache) <current_regcache>: Rename to...
1124 <regcaches>: ... this. Move doc here.
1125 * regcache.c (regcache::current_regcache) Rename to...
1126 (regcache::regcaches): ... this. Move doc to header.
1127 (get_thread_arch_aspace_regcache): Update.
1128 (regcache::regcache_thread_ptid_changed): Update.
1129 (registers_changed_ptid): Update.
1130 (class regcache_access) <current_regcache_size>: Rename to...
1131 <regcaches_size>: ... this.
1132 (current_regcache_test): Rename to...
1133 (regcaches_test): ... this.
1134 (_initialize_regcache): Update.
1135
ed908db6
VC
11362020-08-06 Victor Collod <vcollod@nvidia.com>
1137
1138 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1139
b5582ab7
KB
11402020-08-05 Kevin Buettner <kevinb@redhat.com>
1141
1142 * corelow.c (core_target::build_file_mappings): Don't output
1143 null pathname in warning.
1144
ea946b86
SM
11452020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1146
1147 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1148 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1149 gdb.dwarf2/dw2-single-line-discriminators.exp,
1150 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1151
57d02173
TT
11522020-08-05 Tom Tromey <tromey@adacore.com>
1153
1154 PR rust/26197:
1155 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1156 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1157 Fix off-by-one and type size errors in ordinary case.
1158
5555c86d
TV
11592020-08-05 Tom de Vries <tdevries@suse.de>
1160
1161 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1162 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1163
97916bfe
SM
11642020-08-04 Simon Marchi <simon.marchi@efficios.com>
1165
1166 * frame.h (frame_id_p): Return bool.
1167 (frame_id_artificial_p): Return bool.
1168 (frame_id_eq): Return bool.
1169 (has_stack_frames): Return bool.
1170 (get_selected_frame): Fix typo in comment.
1171 (get_frame_pc_if_available): Return bool.
1172 (get_frame_address_in_block_if_available): Return bool.
1173 (get_frame_func_if_available): Return bool.
1174 (read_frame_register_unsigned): Return bool.
1175 (get_frame_register_bytes): Return bool.
1176 (safe_frame_unwind_memory): Return bool.
1177 (deprecated_frame_register_read): Return bool.
1178 (frame_unwinder_is): Return bool.
1179 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1180 bool.
1181 <this_id::p>: Likewise.
1182 <prev_p>: Likewise.
1183 (frame_stash_add): Return bool.
1184 (get_frame_id): Use bool.
1185 (frame_id_build_special) Use bool.
1186 (frame_id_build_unavailable_stack): Use bool.
1187 (frame_id_build): Use bool.
1188 (frame_id_p): Return bool, use true/false instead of 1/0.
1189 (frame_id_artificial_p): Likewise.
1190 (frame_id_eq): Likewise.
1191 (frame_id_inner): Likewise.
1192 (get_frame_func_if_available): Likewise.
1193 (read_frame_register_unsigned): Likewise.
1194 (deprecated_frame_register_read): Likewise.
1195 (get_frame_register_bytes): Likewise.
1196 (has_stack_frames): Likewise.
1197 (inside_main_func): Likewise.
1198 (inside_entry_func): Likewise.
1199 (get_frame_pc_if_available): Likewise.
1200 (get_frame_address_in_block_if_available): Likewise.
1201 (frame_unwinder_is): Likewise.
1202 (safe_frame_unwind_memory): Likewise.
1203 (frame_unwind_arch): Likewise.
1204
fedfee88
SM
12052020-08-04 Simon Marchi <simon.marchi@efficios.com>
1206
1207 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1208 type to cached_copy_status.
1209 (fprintf_frame): Adjust.
1210 (get_frame_func_if_available): Adjust.
1211 (frame_cleanup_after_sniffer): Adjust.
1212
6cfa9b59
MW
12132020-08-04 Mark Wielaard <mark@klomp.org>
1214
1215 * MAINTAINERS (Write After Approval): Update email address.
1216
66d6346b
SM
12172020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1218
1219 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1220 dynamic_prop::const_val.
1221
8a6d5e35
SM
12222020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1223
1224 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1225 dynamic_prop::kind.
1226
51d6067d
SM
12272020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1228
1229 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1230
b26e2ae7
JM
12312020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1232
1233 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1234
39791af2
JM
12352020-08-04 Weimin Pan <weimin.pan@oracle.com>
1236 Jose E. Marchesi <jose.marchesi@oracle.com>
1237
1238 * configure.tgt: Add entry for bpf-*-*.
1239 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1240 (ALLDEPFILES): Add bpf-tdep.c.
1241 * bpf-tdep.c: New file.
1242 * MAINTAINERS: Add bpf target and maintainer.
1243 * NEWS: Mention the support for the new target.
1244
521894aa
TV
12452020-08-04 Tom de Vries <tdevries@suse.de>
1246
1247 PR symtab/23270
1248 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1249 Error.
1250
5d6356e9
JB
12512020-08-03 John Baldwin <jhb@FreeBSD.org>
1252
1253 * syscalls/freebsd.xml: Regenerate.
1254
0cf82b81
JB
12552020-08-03 John Baldwin <jhb@FreeBSD.org>
1256
1257 * syscalls/update-freebsd.sh: Fix usage and year range.
1258
8f34b746
TV
12592020-08-03 Tom de Vries <tdevries@suse.de>
1260
1261 PR symtab/26333
1262 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1263 DW_LNE_lo_user/DW_LNE_hi_user range.
1264
5e500d33
SM
12652020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1266
1267 PR ada/26318
1268 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1269 kind.
1270
78319c15
TBA
12712020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1272
1273 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1274
4c55e970
TBA
12752020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1276
1277 * breakpoint.c (set_breakpoint_condition): Update the condition
1278 expressions after checking that the input condition string parses
1279 successfully and does not contain junk at the end.
1280
1e620590
TBA
12812020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1282
1283 * breakpoint.c (set_breakpoint_condition): Update the
1284 condition string after parsing the new condition successfully.
1285
c8693053
RO
12862020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1287
1288 * proc-api.c (_STRUCTURED_PROC): Don't define.
1289 * proc-events.c: Likewise.
1290 * proc-flags.c: Likewise.
1291 * proc-why.c: Likewise.
1292 * procfs.c: Likewise.
1293
1294 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1295 * configure, config.in: Regenerate.
1296
5a99adb8
TV
12972020-07-30 Tom de Vries <tdevries@suse.de>
1298
1299 PR build/26320
1300 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1301 m_red/m_green/m_blue in a union.
1302
8ba83e91
TV
13032020-07-29 Tom de Vries <tdevries@suse.de>
1304
1305 PR tdep/26280
1306 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1307
f75a0693
AB
13082020-07-28 Tom Tromey <tromey@adacore.com>
1309
1310 PR symtab/26270:
1311 * symtab.h (find_pc_partial_function_sym): Declare.
1312 * cli/cli-cmds.c (disassemble_command): Use
1313 find_pc_partial_function_sym. Check asm_demangle.
1314 * blockframe.c (cache_pc_function_sym): New global.
1315 (cache_pc_function_name): Remove.
1316 (clear_pc_function_cache): Update.
1317 (find_pc_partial_function_sym): New function, from
1318 find_pc_partial_function.
1319 (find_pc_partial_function): Rewrite using
1320 find_pc_partial_function_sym.
1321
16f3242c
TT
13222020-07-28 Tom Tromey <tromey@adacore.com>
1323
1324 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1325 help. Add usage.
1326
4888741a
TT
13272020-07-28 Tom Tromey <tromey@adacore.com>
1328
1329 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1330 <DW_OP_GNU_variable_value>: Cast to address type.
1331
4d46f402
KR
13322020-07-28 Kamil Rytarowski <n54@gmx.com>
1333
1334 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1335 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1336 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1337 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1338 (nbsd_get_siginfo_type): New.
1339 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1340 (_initialize_nbsd_tdep): New.
1341
d70f978b
L
13422020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1343
1344 PR binutils/26301
1345 * configure: Regenerated.
1346
377170fa
L
13472020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1348
1349 PR binutils/26301
1350 * configure: Regenerated.
1351
43d5901d
AB
13522020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1353
1354 * python/py-frame.c: Remove 'user-regs.h' include.
1355 (frapy_read_register): Rewrite to make use of
1356 gdbpy_parse_register_id.
1357 * python/py-registers.c (gdbpy_parse_register_id): New function,
1358 moved here from python/py-unwind.c. Updated the return type, and
1359 also accepts register descriptor objects.
1360 * python/py-unwind.c: Remove 'user-regs.h' include.
1361 (pyuw_parse_register_id): Moved to python/py-registers.c.
1362 (unwind_infopy_add_saved_register): Update to use
1363 gdbpy_parse_register_id.
1364 (pending_framepy_read_register): Likewise.
1365 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1366
14fa8fb3
AB
13672020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1368
1369 * python/py-registers.c: Add 'user-regs.h' include.
1370 (register_descriptor_iter_find): New function.
1371 (register_descriptor_iterator_object_methods): New static global
1372 methods array.
1373 (register_descriptor_iterator_object_type): Add pointer to methods
1374 array.
1375
ddce1758
JB
13762020-07-27 John Baldwin <jhb@FreeBSD.org>
1377
1378 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1379 for all architectures on FreeBSD 11.3 and later.
1380
a4089f52
TT
13812020-07-27 Tom Tromey <tromey@adacore.com>
1382
1383 * gcore.h (load_corefile): Don't declare.
1384
95420d30
TV
13852020-07-27 Tom de Vries <tdevries@suse.de>
1386
1387 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1388 * config.in: Regenerate.
1389 * configure: Regenerate.
1390
05a6b8c2
EZ
13912020-07-26 Eli Zaretskii <eliz@gnu.org>
1392
1393 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1394 ws2tcpip.h. When checking whether socklen_t type is defined, use
1395 ws2tcpip.h if it is available and sys/socket.h isn't.
1396 * configure: Regenerate.
1397 * config.in: Regenerate.
1398
e79eb02f
AB
13992020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1400
1401 PR fortran/23051
1402 PR fortran/26139
1403 * valops.c (value_ind): Pass address to
1404 readjust_indirect_value_type.
1405 * value.c (readjust_indirect_value_type): Make parameter
1406 non-const, and add extra address parameter. Resolve original type
1407 before using it.
1408 * value.h (readjust_indirect_value_type): Update function
1409 signature and comment.
1410
876518dd
TV
14112020-07-25 Tom de Vries <tdevries@suse.de>
1412
1413 PR symtab/26243
1414 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1415 entries.
1416
f6720b1c
AM
14172020-07-24 Aaron Merey <amerey@redhat.com>
1418
1419 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1420 * configure: Rebuild.
1421
513487e1
KB
14222020-07-23 Kevin Buettner <kevinb@redhat.com>
1423
1424 PR corefiles/26294
1425 * corelow.c (_initialize_corelow): Add period to help text
1426 for "maintenance print core-file-backed-mappings".
1427
e7bc9db8
PA
14282020-07-23 Pedro Alves <pedro@palves.net>
1429
1430 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1431 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1432 meanwhile.
1433 * frame.c (frame_cache_generation, get_frame_cache_generation):
1434 New.
1435 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1436 (get_prev_frame_if_no_cycle): On exception, don't touch
1437 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1438 * frame.h (get_frame_cache_generation): Declare.
1439
90fcc466
TV
14402020-07-23 Tom de Vries <tdevries@suse.de>
1441
1442 PR tui/26282
1443 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1444 New default constructor.
1445
78344df7
AB
14462020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1447
1448 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1449 exclude non-statement entries.
1450
b089853a
KB
14512020-07-22 Kevin Buettner <kevinb@redhat.com>
1452
1453 * NEWS (New commands): Mention new command
1454 "maintenance print core-file-backed-mappings".
1455
09c2f5d4
KB
14562020-07-22 Kevin Buettner <kevinb@redhat.com>
1457
1458 * corelow.c (gdbcmd.h): Include.
1459 (core_target::info_proc_mappings): New method.
1460 (get_current_core_target): New function.
1461 (maintenance_print_core_file_backed_mappings): New function.
1462 (_initialize_corelow): Add core-file-backed-mappings to
1463 "maint print" commands.
1464
9c5ec5c2 14652020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1466
9c5ec5c2
KB
1467 * linux-tdep.c (dump_note_entry_p): New function.
1468 (linux_dump_mapping_p_ftype): New typedef.
1469 (linux_find_memory_regions_full): Add new parameter,
1470 should_dump_mapping_p.
1471 (linux_find_memory_regions): Adjust call to
1472 linux_find_memory_regions_full.
1473 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1474 call to linux_find_memory_regions_full.
1475
db082f59
KB
14762020-07-22 Kevin Buettner <kevinb@redhat.com>
1477
1478 * corelow.c (solist.h, unordered_map): Include.
1479 (class core_target): Add field m_core_file_mappings and
1480 method build_file_mappings.
1481 (core_target::core_target): Call build_file_mappings.
1482 (core_target::~core_target): Free memory associated with
1483 m_core_file_mappings.
1484 (core_target::build_file_mappings): New method.
1485 (core_target::xfer_partial): Use m_core_file_mappings
1486 for memory transfers.
1487 * linux-tdep.c (linux_read_core_file_mappings): New
1488 function.
1489 (linux_core_info_proc_mappings): Rewrite to use
1490 linux_read_core_file_mappings.
1491 (linux_init_abi): Register linux_read_core_file_mappings.
1492
7e183d27
KB
14932020-07-22 Kevin Buettner <kevinb@redhat.com>
1494
1495 * arch-utils.c (default_read_core_file_mappings): New function.
1496 * arch-utils.c (default_read_core_file_mappings): Declare.
1497 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1498 * gdbarch.h, gdbarch.c: Regenerate.
1499
2735d421
KB
15002020-07-22 Kevin Buettner <kevinb@redhat.com>
1501
1502 PR corefiles/25631
1503 * corelow.c (core_target:xfer_partial): Revise
1504 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1505 case after first checking the stratum beneath the core
1506 target.
1507 (has_all_memory): Return true.
1508 * target.c (raw_memory_xfer_partial): Revise comment
1509 regarding use of has_all_memory.
1510
e56cb451
KB
15112020-07-22 Kevin Buettner <kevinb@redhat.com>
1512
1513 * exec.h (section_table_xfer_memory): Revise declaration,
1514 replacing section name parameter with an optional callback
1515 predicate.
1516 * exec.c (section_table_xfer_memory): Likewise.
1517 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1518 of section_table_xfer_memory.
1519
32fa152e
TT
15202020-07-22 Tom Tromey <tromey@adacore.com>
1521
1522 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1523 lookup_symbol_search_name.
1524
a67a1c41
AB
15252020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1526
1527 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1528 redundant local variable.
1529 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1530 reference, not pointer, update code accordingly.
1531
a7b4ff4f
SM
15322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1533 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1534
1535 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1536 * jit.c (jit_breakpoint_re_set_internal): Use the
1537 `skip_jit_symbol_lookup` field.
1538
2340e834
SM
15392020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1540 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1541
1542 * jit.c (jit_read_descriptor): Define the descriptor address once,
1543 use twice.
1544 (jit_breakpoint_deleted): Move the declaration of the loop variable
1545 `iter` into the loop header.
1546 (jit_breakpoint_re_set_internal): Move the declaration of the local
1547 variable `objf_data` to the first point of definition.
1548 (jit_event_handler): Move the declaration of local variables
1549 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1550 Rename `objf` to `jited`.
1551
c1072906
SM
15522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1553
1554 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1555 Remove.
1556 * jit.c (get_jiter_objfile_data): Update.
1557
c8474dc3
TBA
15582020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1559 Simon Marchi <simon.marchi@polymtl.ca>
1560
1561 * jit.c (struct jit_program_space_data): Remove.
1562 (jit_program_space_key): Remove.
1563 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1564 stuff.
1565 (get_jit_program_space_data): Remove.
1566 (jit_breakpoint_deleted): Iterate on all of the program space's
1567 objfiles.
1568 (jit_inferior_init): Likewise.
1569 (jit_breakpoint_re_set_internal): Likewise. Also change return
1570 type to void.
1571 (jit_breakpoint_re_set): Pass current_program_space to
1572 jit_breakpoint_re_set_internal.
1573
77208eb7
SM
15742020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1575
1576 * jit.h (struct jiter_objfile_data) <cached_code_address,
1577 jit_breakpoint>: Move to here from ...
1578 * jit.c (jit_program_space_data): ... here.
1579 (jiter_objfile_data::~jiter_objfile_data): Update.
1580 (jit_breakpoint_deleted): Update.
1581 (jit_breakpoint_re_set_internal): Update.
1582
8c1c720f
SM
15832020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1584
1585 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1586 checks.
1587 (jit_read_descriptor): Remove NULL check.
1588 (jit_event_handler): Add an assertion.
1589
0e74a041
SM
15902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1591
1592 * jit.h (struct jit_objfile_data): Split into...
1593 (struct jiter_objfile_data): ... this ...
1594 (struct jited_objfile_data): ... and this.
1595 * objfiles.h (struct objfile) <jit_data>: Remove.
1596 <jiter_data, jited_data>: New fields.
1597 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1598 (jiter_objfile_data::~jiter_objfile_data): ... this.
1599 (get_jit_objfile_data): Rename to ...
1600 (get_jiter_objfile_data): ... this.
1601 (add_objfile_entry): Update.
1602 (jit_read_descriptor): Use get_jiter_objfile_data.
1603 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1604 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1605 (jit_inferior_exit_hook): Use objfile's jited_data field.
1606
238b5c9f
SM
16072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1608
1609 * jit.h: Forward-declare `struct minimal_symbol`.
1610 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1611 constructor, destructor, and an objfile* field.
1612 * jit.c (jit_objfile_data): Remove.
1613 (struct jit_objfile_data): Migrate from here to jit.h.
1614 (jit_objfile_data::~jit_objfile_data): New destructor
1615 implementation with code moved from free_objfile_data.
1616 (free_objfile_data): Delete.
1617 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1618 (jit_find_objf_with_entry_addr): Ditto.
1619 (jit_inferior_exit_hook): Ditto.
1620 (_initialize_jit): Remove the call to
1621 register_objfile_data_with_cleanup.
1622 * objfiles.h (struct objfile) <jit_data>: New field.
1623
fe053b9e
TBA
16242020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1625
1626 * jit.h: Forward-declare `struct objfile`.
1627 (jit_event_handler): Add a second parameter, the JITer objfile.
1628 * jit.c (jit_read_descriptor): Change the signature to take the
1629 JITer objfile as an argument instead of the jit_program_space_data.
1630 (jit_inferior_init): Update the call to jit_read_descriptor.
1631 (jit_event_handler): Use the new JITer objfile argument when calling
1632 jit_read_descriptor.
1633 * breakpoint.c (handle_jit_event): Update the call to
1634 jit_event_handler to pass the JITer objfile.
1635
4cec0c66
JB
16362020-07-21 John Baldwin <jhb@FreeBSD.org>
1637
1638 * gdbarch.c: Regenerate.
1639 * gdbarch.h: Regenerate.
1640 * gdbarch.sh (handle_segmentation_fault): Remove method.
1641 * infrun.c (handle_segmentation_fault): Remove.
1642 (print_signal_received_reason): Remove call to
1643 handle_segmentation_fault.
1644
0e42f66a
JB
16452020-07-21 John Baldwin <jhb@FreeBSD.org>
1646
1647 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1648 Rename to sparc64_linux_report_signal_info and add siggnal
1649 argument.
1650 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1651 instead of sparc64_linux_handle_segmentation_fault.
1652
77bdfeb2
JB
16532020-07-21 John Baldwin <jhb@FreeBSD.org>
1654
1655 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1656 i386_linux_report_signal_info instead of
1657 i386_linux_handle_segmentation_fault.
1658 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1659 to i386_linux_report_signal_info and add siggnal argument.
1660 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1661 of i386_linux_handle_segmentation_fault.
1662 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1663 to i386_linux_report_signal_info and add siggnal argument.
1664
ad97bfc5
JB
16652020-07-21 John Baldwin <jhb@FreeBSD.org>
1666
1667 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1668 hook if present.
1669
272bb05c
JB
16702020-07-21 John Baldwin <jhb@FreeBSD.org>
1671
1672 * gdbarch.c: Regenerate.
1673 * gdbarch.h: Regenerate.
1674 * gdbarch.sh (report_signal_info): New method.
1675 * infrun.c (print_signal_received_reason): Invoke gdbarch
1676 report_signal_info hook if present.
1677
baf8791e
AB
16782020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1679
1680 * python/py-registers.c : Add 'unordered_map' include.
1681 (gdbpy_new_reggroup): Renamed to...
1682 (gdbpy_get_reggroup): ...this. Update to only create register
1683 group descriptors when needed.
1684 (gdbpy_reggroup_iter_next): Update.
1685
f7306dac
AB
16862020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1687
1688 * python/py-registers.c (gdbpy_register_object_data): New static
1689 global.
1690 (gdbpy_register_object_data_init): New function.
1691 (gdbpy_new_register_descriptor): Renamed to...
1692 (gdbpy_get_register_descriptor): ...this, and update to reuse
1693 existing register descriptors where possible.
1694 (gdbpy_register_descriptor_iter_next): Update.
1695 (gdbpy_initialize_registers): Register new gdbarch data.
1696
05c309a8
SM
16972020-07-21 Simon Marchi <simon.marchi@efficios.com>
1698
1699 * linux-nat.c (stopped_pids): Make static.
1700
d1fd641e
SM
17012020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1702
1703 PR ada/26235
1704 * gdbtypes.c (ada_discrete_type_low_bound,
1705 ada_discrete_type_high_bound): Handle undefined bounds.
1706
1de14d77
KR
17072020-07-21 Kamil Rytarowski <n54@gmx.com>
1708
1709 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1710 declaration.
1711 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1712 function.
1713
ed810cc7
JB
17142020-07-20 John Baldwin <jhb@FreeBSD.org>
1715
1716 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1717 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1718 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1719 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1720 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1721 method.
1722
ae5369e7
LC
17232020-07-20 Ludovic Courtès <ludo@gnu.org>
1724
1725 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1726 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1727 which are deprecated in Guile 3.0.
1728 * configure.ac (try_guile_versions): Add "guile-3.0".
1729 * configure (try_guile_versions): Regenerate.
1730 * NEWS: Update entry.
1731
68cf161c
LC
17322020-07-20 Ludovic Courtès <ludo@gnu.org>
1733 Doug Evans <dje@google.com>
1734
1735 PR gdb/21104
1736 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1737 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1738 USING_GUILE_BEFORE_2_2.
1739 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1740 Change type to 'scm_t_port_type *'.
1741 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1742 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1743 parameter and honor it. Update callers.
1744 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1745 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1746 functions.
1747 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1748 USING_GUILE_BEFORE_2_2.
1749 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1750 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1751 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1752 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1753 and 'SCM_PORT_TYPE'.
1754 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1755 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1756 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1757 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1758 [!USING_GUILE_BEFORE_2_2]: New functions.
1759 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1760 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1761 'gdbscm_memory_port_read'.
1762 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1763 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1764 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1765 function.
1766 (ioscm_init_memory_port): Remove.
1767 (ioscm_init_memory_port_stream): New function
1768 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1769 function.
1770 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1771 Return scm_from_uint (0).
1772 (gdbscm_set_memory_port_read_buffer_size_x)
1773 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1774 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1775 Return scm_from_uint (0).
1776 (gdbscm_set_memory_port_write_buffer_size_x)
1777 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1778 * configure.ac (try_guile_versions): Add "guile-2.2".
1779 * configure: Regenerate.
1780 * NEWS: Add entry.
1781
aee91db3
TT
17822020-07-18 Tom Tromey <tom@tromey.com>
1783
1784 * linux-nat.c (linux_multi_process): Remove.
1785 (linux_nat_target::supports_multi_process): Return true.
1786
0e267416
AB
17872020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1788
1789 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1790 (riscv_lookup_target_description): Return pointer out of
1791 unique_ptr.
1792 * target-descriptions.c (allocate_target_description): Add
1793 comment.
1794 (target_desc_deleter::operator()): Likewise.
1795 * target-descriptions.h (struct target_desc_deleter): Moved to
1796 gdbsupport/tdesc.h.
1797 (target_desc_up): Likewise.
1798
f80c8ec4
TT
17992020-07-17 Tom Tromey <tromey@adacore.com>
1800
1801 * linux-nat.c (linux_nat_target::supports_non_stop)
1802 (linux_nat_target::always_non_stop_p): Use "true".
1803 (linux_nat_target::supports_disable_randomization): Use "true" and
1804 "false".
1805
d0ce17d8
CT
18062020-07-16 Caroline Tice <cmtice@google.com>
1807
1808 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1809 (RNGLIST_HEADER_SIZE64): New constant definition.
1810 (struct dwop_section_names): Add rnglists_dwo.
1811 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1812 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1813 (struct dwo_sections): Add rnglists field.
1814 (read_attribut_reprocess): Add tag parameter.
1815 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1816 (cu_debug_rnglists_section): New function (decl & definition).
1817 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1818 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1819 die whose range is being checked; get rnglist section from
1820 cu_debug_rnglists_section, to get from either objfile or dwo file as
1821 appropriate. Add cases for DW_RLE_base_addressx,
1822 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1823 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1824 test inside if-condition and updating complaint message.
1825 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1826 dwarf2_rnglists_process.
1827 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1828 dwarf2_ranges_process.
1829 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1830 need_ranges_base and update comment appropriately. Also pass die tag
1831 to dwarf2_ranges_read.
1832 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1833 need_ranges_base and update comment appropriately. Also pass die tag
1834 to dwarf2_ranges_process.
1835 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1836 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1837 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1838 need_ranges_base and update comment appropriately. Also pass die tag
1839 to read_attribute_reprocess and dwarf2_ranges_read.
1840 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1841 and update function comment appropriately.
1842 (read_loclist_index): Call read_loclists_rnglists_header instead of
1843 read_loclist_header.
1844 (read_rnglist_index): New function.
1845 (read_attribute_reprocess): Add tag parameter. Add code for
1846 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1847 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1848
3dcc261c
AB
18492020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1850
1851 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1852 being resolved.
1853
ccb9eba6
AB
18542020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1855
1856 * arch-utils.c (show_architecture): Update formatting of messages.
1857
cf88be68
SM
18582020-07-12 Simon Marchi <simon.marchi@efficios.com>
1859
1860 * gdbtypes.h (struct type) <bounds>: Handle array and string
1861 types.
1862 * ada-lang.c (assign_aggregate): Use type::bounds on
1863 array/string type.
1864 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1865 * c-varobj.c (c_number_of_children): Likewise.
1866 (c_describe_child): Likewise.
1867 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1868 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1869 (f_type_print_base): Likewise.
1870 * f-valprint.c (f77_array_offset_tbl): Likewise.
1871 (f77_get_upperbound): Likewise.
1872 (f77_print_array_1): Likewise.
1873 * guile/scm-type.c (gdbscm_type_range): Likewise.
1874 * m2-typeprint.c (m2_array): Likewise.
1875 (m2_is_long_set_of_type): Likewise.
1876 * m2-valprint.c (get_long_set_bounds): Likewise.
1877 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1878 * python/py-type.c (typy_range): Likewise.
1879 * rust-lang.c (rust_internal_print_type): Likewise.
1880 * type-stack.c (type_stack::follow_types): Likewise.
1881 * valarith.c (value_subscripted_rvalue): Likewise.
1882 * valops.c (value_cast): Likewise.
1883
509971ae
SM
18842020-07-12 Simon Marchi <simon.marchi@efficios.com>
1885
1886 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1887 callers to use the equivalent accessor methods.
1888
107406b7
SM
18892020-07-12 Simon Marchi <simon.marchi@efficios.com>
1890
1891 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1892 (struct type) <bit_stride>: New method.
1893 (TYPE_BIT_STRIDE): Remove.
1894 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1895
bb789949
SM
18962020-07-12 Simon Marchi <simon.marchi@efficios.com>
1897
1898 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1899 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1900 callers to use the equivalent accessor methods instead.
1901
39498edb
SM
19022020-07-12 Simon Marchi <simon.marchi@efficios.com>
1903
1904 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1905 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1906 callers to use the equivalent accessor methods instead.
1907
3b606f38
SM
19082020-07-12 Simon Marchi <simon.marchi@efficios.com>
1909
1910 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1911 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1912 to use dynamic_prop::kind.
1913
064d9cb9
SM
19142020-07-12 Simon Marchi <simon.marchi@efficios.com>
1915
1916 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1917 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1918 to get the bound property's kind and check against
1919 PROP_UNDEFINED.
1920
5537ddd0
SM
19212020-07-12 Simon Marchi <simon.marchi@efficios.com>
1922
1923 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1924 all callers to use type::range_bounds followed by
1925 dynamic_prop::{low,high}.
1926
8c2e4e06
SM
19272020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1928
1929 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1930 const_val, set_const_val, baton, set_locexpr, set_loclist,
1931 set_addr_offset, variant_parts, set_variant_parts,
1932 original_type, set_original_type>: New methods.
1933 <kind>: Rename to...
1934 <m_kind>: ... this. Update all users to use the new methods
1935 instead.
1936 <data>: Rename to...
1937 <m_data>: ... this. Update all users to use the new methods
1938 instead.
1939
7c6f2712
SM
19402020-07-12 Simon Marchi <simon.marchi@efficios.com>
1941
1942 * gdbtypes.c (get_discrete_bounds): Return failure if
1943 the range type's bounds are not both defined and constant
1944 values.
1945 (get_array_bounds): Update comment. Remove undefined bound check.
1946
599088e3
SM
19472020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1948
1949 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1950 the type::bounds method directly.
1951
c4dfcb36
SM
19522020-07-12 Simon Marchi <simon.marchi@efficios.com>
1953
1954 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1955 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1956 are used to set the range type's bounds to use set_bounds.
1957
0a278aa7
PW
19582020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1959
1960 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1961
cce20f10
PA
19622020-07-10 Pedro Alves <pedro@palves.net>
1963
1964 * gdbthread.h (inferior_ref): Define.
1965 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1966 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1967 * thread.c
1968 (scoped_restore_current_thread::restore):
1969 Adjust to gdb::ref_ptr.
1970 (scoped_restore_current_thread::~scoped_restore_current_thread):
1971 Remove manual decref handling.
1972 (scoped_restore_current_thread::scoped_restore_current_thread):
1973 Adjust to use
1974 inferior_ref::new_reference/thread_info_ref::new_reference.
1975 Incref the thread before calling get_frame_id instead of after.
1976 Let TARGET_CLOSE_ERROR propagate.
1977
6d7aa592
PA
19782020-07-10 Pedro Alves <pedro@palves.net>
1979
1980 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1981 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1982 NOT_AVAILABLE_ERROR.
1983 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1984 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1985
b3e3a4c1
SM
19862020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1987 Pedro Alves <pedro@palves.net>
1988
1989 PR gdb/26199
1990 * infrun.c (threads_are_resumed_pending_p): Delete.
1991 (do_target_wait): Remove threads_are_executing and
1992 threads_are_resumed_pending_p checks from the inferior_matches
1993 lambda. Update comments.
1994
d6cc5d98
PA
19952020-07-10 Pedro Alves <pedro@palves.net>
1996
1997 PR gdb/26199
1998 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1999 executing threads.
2000
7d3badc6
PA
20012020-07-10 Pedro Alves <pedro@palves.net>
2002
2003 PR gdb/26199
2004 * infrun.c (handle_no_resumed): Handle multiple targets.
2005
42bd97a6
PA
20062020-07-10 Pedro Alves <pedro@palves.net>
2007
2008 PR gdb/26199
2009 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
2010 target_is_async_p.
2011
43667cc6
PA
20122020-07-10 Pedro Alves <pedro@palves.net>
2013
2014 PR gdb/26199
2015 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
2016 threads, not all threads.
2017
96118d11
PA
20182020-07-10 Pedro Alves <pedro@palves.net>
2019
2020 PR gdb/26199
2021 * remote.c (remote_target::open_1): Pass remote target pointer as
2022 data to create_async_event_handler.
2023 (remote_async_inferior_event_handler): Mark async event handler
2024 before returning if the remote target still has either pending
2025 events or unacknowledged notifications.
2026
54904d81
JB
20272020-07-10 John Baldwin <jhb@FreeBSD.org>
2028
2029 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
2030 declaration.
2031 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
2032 function.
2033
f37e5866
JB
20342020-07-09 John Baldwin <jhb@FreeBSD.org>
2035
2036 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
2037 inferior_ptid.
2038
fc238d4a
JB
20392020-07-09 John Baldwin <jhb@FreeBSD.org>
2040
2041 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2042 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2043 AT_FREEBSD_PS_STRINGS.
2044
6e2469ff
HD
20452020-07-08 Hannes Domani <ssbssa@yahoo.de>
2046
2047 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2048 of debugfile path on Windows.
2049
d1076c41
JB
20502020-07-08 John Baldwin <jhb@FreeBSD.org>
2051
2052 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2053 argument to 'data'.
2054
15f3b077
TT
20552020-07-08 Tom Tromey <tromey@adacore.com>
2056
2057 * ada-lang.c (ada_exception_message_1): Use read_memory.
2058
9fc501fd
AB
20592020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2060
2061 PR python/22748
2062 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2063 special handling for inline frames.
2064 * findvar.c (value_of_register_lazy): Skip inline frames when
2065 creating lazy register values.
2066 * frame.c (frame_id_computed_p): Delete definition.
2067 * frame.h (frame_id_computed_p): Delete declaration.
2068
64cb3757
AB
20692020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * NEWS: Mention additions to Python API.
2072 * python/py-arch.c (archpy_register_groups): New function.
2073 (arch_object_methods): Add 'register_groups' method.
2074 * python/py-registers.c (reggroup_iterator_object): New struct.
2075 (reggroup_object): New struct.
2076 (gdbpy_new_reggroup): New function.
2077 (gdbpy_reggroup_to_string): New function.
2078 (gdbpy_reggroup_name): New function.
2079 (gdbpy_reggroup_iter): New function.
2080 (gdbpy_reggroup_iter_next): New function.
2081 (gdbpy_new_reggroup_iterator): New function
2082 (gdbpy_initialize_registers): Register new types.
2083 (reggroup_iterator_object_type): Define new Python type.
2084 (gdbpy_reggroup_getset): New static global.
2085 (reggroup_object_type): Define new Python type.
2086 * python/python-internal.h
2087
0f767f94
AB
20882020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2089
2090 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2091 * python/py-arch.c (archpy_registers): New function.
2092 (arch_object_methods): Add 'registers' method.
2093 * python/py-registers.c: New file.
2094 * python/python-internal.h
2095 (gdbpy_new_register_descriptor_iterator): Declare.
2096 (gdbpy_initialize_registers): Declare.
2097 * python/python.c (do_start_initialization): Call
2098 gdbpy_initialize_registers.
2099 * NEWS: Mention additions to the Python API.
2100
87dbc774
AB
21012020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2102
2103 * NEWS: Mention new Python API method.
2104 * python/py-unwind.c (pending_framepy_architecture): New function.
2105 (pending_frame_object_methods): Add architecture method.
2106
3bc98c0c
AB
21072020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2108
2109 * gdbarch.c: Regenerate.
2110 * gdbarch.h: Regenerate.
2111 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2112 (gdbarch_data): Use internal_error for the case where
2113 deprecated_set_gdbarch_data was originally needed.
2114 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2115 and use passed in obstack.
2116 (libunwind_frame_set_descr): Should no longer get back NULL from
2117 gdbarch_data.
2118 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2119 type.
2120 * user-regs.c (user_regs_init): Update parameters, and use passed
2121 in obstack.
2122 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2123 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2124
d8cc8af6
TV
21252020-07-06 Tom de Vries <tdevries@suse.de>
2126
2127 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2128 End-Of-Sequence in lte_is_less_than.
2129 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2130 "gdb: Don't reorder line table entries too much when sorting".
2131
947f7597
TV
21322020-07-06 Tom de Vries <tdevries@suse.de>
2133
2134 PR tui/26205
2135 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2136
1e7c1b22
TV
21372020-07-05 Tom de Vries <tdevries@suse.de>
2138
2139 PR build/26187
2140 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2141 std::uncaught_exceptions instead of deprecated
2142 std::uncaught_exception.
2143
a36158ec
SM
21442020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2145
2146 * macroexp.h (macro_stringify): Return
2147 gdb::unique_xmalloc_ptr<char>.
2148 * macroexp.c (macro_stringify): Likewise.
2149 * macrotab.c (fixup_definition): Update.
2150
14d960c8
SM
21512020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2152
2153 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2154 (lex_one_token): Update.
2155 * macroexp.c (struct macro_buffer) <release>: Return
2156 gdb::unique_xmalloc_ptr<char>.
2157 (macro_stringify): Update.
2158 (macro_expand): Update.
2159 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2160 * macroexp.h (macro_expand_next): Likewise.
2161
211d5b1c
SM
21622020-07-02 Simon Marchi <simon.marchi@efficios.com>
2163
2164 * macroexp.h (macro_lookup_ftype): Remove.
2165 (macro_expand, macro_expand_once, macro_expand_next): Remove
2166 lookup function parameters, add scope parameter.
2167 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2168 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2169 * macroscope.h (standard_macro_lookup): Change parameter type
2170 to macro_scope.
2171 * macroscope.c (standard_macro_lookup): Likewise.
2172 * c-exp.y (lex_one_token): Update.
2173 * macrocmd.c (macro_expand_command): Likewise.
2174 (macro_expand_once_command): Likewise.
2175
b1a35af2
SM
21762020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2177
2178 * inf-loop.c (inferior_event_handler): Remove client_data param.
2179 * inf-loop.h (inferior_event_handler): Likewise.
2180 * infcmd.c (step_1): Adjust.
2181 * infrun.c (proceed): Adjust.
2182 (fetch_inferior_event): Remove client_data param.
2183 (infrun_async_inferior_event_handler): Adjust.
2184 * infrun.h (fetch_inferior_event): Remove `void *` param.
2185 * linux-nat.c (handle_target_event): Adjust.
2186 * record-btrace.c (record_btrace_handle_async_inferior_event):
2187 Adjust.
2188 * record-full.c (record_full_async_inferior_event_handler):
2189 Adjust.
2190 * remote.c (remote_async_inferior_event_handler): Adjust.
2191
1cdf9e33
TT
21922020-07-01 Tom Tromey <tom@tromey.com>
2193
2194 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2195 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2196
32c1e210
TT
21972020-07-01 Tom Tromey <tom@tromey.com>
2198
2199 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2200 tui_gen_win_info.
2201 (tui_win_info::make_window): Merge with
2202 tui_gen_win_info::make_window.
2203 (tui_win_info::make_visible): Move from tui_gen_win_info.
2204 * tui/tui-win.c (tui_win_info::max_width): Move from
2205 tui_gen_win_info.
2206 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2207 type.
2208 <window_factory>: Likewise.
2209 * tui/tui-layout.c (tui_win_info::resize): Move from
2210 tui_gen_win_info.
2211 (make_standard_window): Change return type.
2212 (get_locator_window, tui_get_window_by_name): Likewise.
2213 (tui_layout_window::apply): Remove a cast.
2214 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2215 (struct tui_win_info): Merge with tui_gen_win_info.
2216 (struct tui_gen_win_info): Remove.
2217
a30cb6da
TT
22182020-07-01 Tom Tromey <tom@tromey.com>
2219
2220 * tui/tui-stack.h (struct tui_locator_window): Derive from
2221 tui_win_info.
2222 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2223 <can_box>: New method.
2224
1eb2161f
TT
22252020-07-01 Tom Tromey <tom@tromey.com>
2226
2227 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2228
7134f2eb
TT
22292020-07-01 Tom Tromey <tom@tromey.com>
2230
2231 * tui/tui-regs.c (tui_data_window::display_registers_from)
2232 (tui_data_window::display_registers_from)
2233 (tui_data_window::first_data_item_displayed)
2234 (tui_data_window::delete_data_content_windows): Update.
2235 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2236 Remove.
2237 (tui_data_window::check_register_values): Update.
2238 (tui_data_item_window::rerender): Add parameters. Update.
2239 (tui_data_item_window::refresh_window): Remove.
2240 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2241 virtual.
2242 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2243 tui_gen_win_info.
2244 <refresh_window, max_height, min_height>: Remove.
2245 <rerender>: Add parameters.
2246 <x, y, visible>: New members.
2247 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2248 <m_item_width>: New member.
2249
22b7b041
TT
22502020-07-01 Tom Tromey <tom@tromey.com>
2251
2252 * tui/tui-regs.c (tui_data_window::show_register_group)
2253 (tui_data_window::check_register_values): Update.
2254 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2255 from item_no.
2256
c9753adb
TT
22572020-07-01 Tom Tromey <tom@tromey.com>
2258
2259 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2260 useless "if".
2261
9ab26b4a
TT
22622020-07-01 Tom Tromey <tom@tromey.com>
2263
2264 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2265 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2266
e555083f
TT
22672020-07-01 Tom Tromey <tom@tromey.com>
2268
2269 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2270 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2271 (struct tui_line_or_address): Move from tui-data.h.
2272 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2273 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2274 (tui_cmd_window, tui_source_window_base, tui_source_window)
2275 (tui_disasm_window): Don't declare.
2276 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2277 to tui-winsource.h.
2278 (SINGLE_KEY): Move to tui-stack.c.
2279
7a02bab7
TT
22802020-07-01 Tom Tromey <tom@tromey.com>
2281
2282 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2283 std::string.
2284 * tui/tui-regs.c (class tab_expansion_file): New.
2285 (tab_expansion_file::write): New method.
2286 (tui_register_format): Change return type. Use
2287 tab_expansion_file.
2288 (tui_get_register, tui_data_window::display_registers_from)
2289 (tui_data_item_window::rerender): Update.
2290 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2291 * tui/tui-io.c (tui_expand_tabs): Remove.
2292
ea68593b
TT
22932020-07-01 Tom Tromey <tom@tromey.com>
2294
2295 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2296
a8caed5d
FS
22972020-07-01 Fangrui Song <maskray@google.com>
2298
2299 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2300
9cdf9820
AKS
23012020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2302
2303 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2304 forms for DW_AT_associated and DW_AT_allocated attributes,
2305 which is already checked in function attr_to_dynamic_prop.
2306
a1520ad8
TT
23072020-06-30 Tom Tromey <tromey@adacore.com>
2308
2309 * dwarf2/read.c (quirk_rust_enum): Correctly call
2310 alloc_rust_variant for default-less enum.
2311
5ac58899
TT
23122020-06-30 Tom Tromey <tromey@adacore.com>
2313
2314 PR build/26183:
2315 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2316 gdb::to_string.
2317
19b187a9
SM
23182020-06-29 Simon Marchi <simon.marchi@efficios.com>
2319
2320 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2321 * gdbarch.h: Re-generate.
2322
cd4c4c07
TT
23232020-06-28 Tom Tromey <tom@tromey.com>
2324
2325 * command.h (cmd_types): Remove.
2326 (cmd_type): Don't declare.
2327 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2328 typedef.
2329 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2330 * cli/cli-decode.c (cmd_type): Remove.
2331
05779d57
PA
23322020-06-27 Pedro Alves <palves@redhat.com>
2333
2334 * fork-child.c (prefork_hook): Adjust.
2335 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2336 Delete.
2337 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2338 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2339 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2340 Remove declarations.
2341 (struct inferior) <set_tty, tty>: New methods.
2342 (struct inferior) <terminal>: Rename to ...
2343 (struct inferior) <m_terminal>: ... this and make private.
2344 * main.c (captured_main_1): Adjust.
2345 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2346 (mi_cmd_inferior_tty_show): Adjust.
2347 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2348 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2349
1776e3e5
NA
23502020-06-26 Nick Alcock <nick.alcock@oracle.com>
2351
2352 * configure.ac: Add --enable-libctf: handle --disable-static
2353 properly.
2354 * acinclude.m4: sinclude ../config/enable.m4.
2355 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2356 (LIBCTF): Substitute in.
2357 (CTF_DEPS): New, likewise.
2358 (CLIBS): libctf needs symbols from libbfd: move earlier.
2359 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2360 flags.
2361 * ctfread.c: Surround in ENABLE_LIBCTF.
2362 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2363 * configure: Regenerate.
2364 * config.in: Likewise.
2365
58373b80
SM
23662020-06-25 Simon Marchi <simon.marchi@efficios.com>
2367
2368 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2369
277474ee
SM
23702020-06-25 Simon Marchi <simon.marchi@efficios.com>
2371
2372 * inferior.h (struct inferior) <terminal>: Change type to
2373 gdb::unique_xmalloc_ptr<char>.
2374 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2375 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2376 field, adjust to unique pointer.
2377 (get_inferior_io_terminal): Adjust to unique pointer.
2378
6d74da72
AB
23792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2380
2381 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2382 registers, not just the known core set of registers.
2383
2e52d038
AB
23842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2385
2386 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2387 fflags, frm, and fcsr registers.
2388 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2389 restore groups.
2390 (riscv_tdesc_unknown_reg): New function.
2391 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2392 tdesc_use_registers.
2393 * riscv-tdep.h (struct gdbarch_tdep): Add
2394 unknown_csrs_first_regnum, unknown_csrs_count,
2395 duplicate_fflags_regnum, duplicate_frm_regnum, and
2396 duplicate_fcsr_regnum fields.
2397
be64fd07
AB
23982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2399
2400 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2401 callback, use the callback (when not null) to help number unknown
2402 registers.
2403 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2404 (tdesc_use_registers): Add extra parameter to declaration.
2405
3b9fce96
AB
24062020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2407
2408 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2409 in the file.
2410 (class riscv_pending_register_alias): Likewise.
2411 (riscv_register_feature::register_info): Change 'required_p' field
2412 to 'required', and change its type. Add 'check' member function.
2413 (riscv_register_feature::register_info::check): Define new member
2414 function.
2415 (riscv_xreg_feature): Change initialisation of 'required' field.
2416 (riscv_freg_feature): Likewise.
2417 (riscv_virtual_feature): Likewise.
2418 (riscv_csr_feature): Likewise.
2419 (riscv_check_tdesc_feature): Take extra parameter, the csr
2420 tdesc_feature, rewrite the function to use the new
2421 riscv_register_feature::register_info::check function.
2422 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2423
865bad26
AB
24242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2425
2426 * features/Makefile: Remove all references to the deleted files
2427 below.
2428 * features/riscv/32bit-csr.c: Deleted.
2429 * features/riscv/32bit-csr.xml: Deleted.
2430 * features/riscv/64bit-csr.c: Deleted.
2431 * features/riscv/64bit-csr.xml: Deleted.
2432 * features/riscv/rebuild-csr-xml.sh: Deleted.
2433
ed69cbc8
AB
24342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2435
2436 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2437 whitespace error for declaration of names member variable.
2438 (struct riscv_register_feature): Add new prefer_first_name member
2439 variable, and fix whitespace error in declaration of registers.
2440 (riscv_xreg_feature): Initialize prefer_first_name field.
2441 (riscv_freg_feature): Likewise.
2442 (riscv_virtual_feature): Likewise.
2443 (riscv_csr_feature): Likewise.
2444 (riscv_register_name): Expand on comments. Remove register name
2445 modifications for CSR and virtual registers.
2446
4445e8f5
AB
24472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2448
2449 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2450 errors.
2451
767a879e
AB
24522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2453
2454 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2455 riscv-opc.h.
2456 (class riscv_pending_register_alias): New class.
2457 (riscv_check_tdesc_feature): Take vector of pending aliases and
2458 populate it as appropriate.
2459 (riscv_setup_register_aliases): Delete.
2460 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2461 to riscv_check_tdesc_feature in all cases. Use the vector to
2462 create the register aliases.
2463
bb6e55f3
RO
24642020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2465
2466 * sol2-tdep.c (sol2_static_transform_name): Remove.
2467 (sol2_init_abi): Don't register it.
2468 * gdbarch.sh (static_transform_name): Remove.
2469 * gdbarch.c, gdbarch.h: Regenerate.
2470
2471 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2472 gdbarch_static_transform_name.
2473 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2474 * stabsread.c (define_symbol) <'X'>: Remove.
2475 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2476 handling.
2477 <'V'>: Likewise.
2478 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2479 <'S'>: Remove call to gdbarch_static_transform_name.
2480
c6d36836
RO
24812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2482
2483 * procfs.c (procfs_pre_trace): New function.
2484 (procfs_target::create_inferior): Pass it to fork_inferior.
2485
a7e6196b
RO
24862020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2487
2488 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2489 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2490 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2491 sol2-tdep.o, sparc-sol2-tdep.o.
2492 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2493 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2494 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2495 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2496
d412e696
RO
24972020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2498
2499 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2500 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2501 Call sol2_init_abi.
2502 Remove calls to set_gdbarch_skip_solib_resolver,
2503 set_gdbarch_core_pid_to_str.
2504 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2505 (i386_sol2_static_transform_name): Remove.
2506 (i386_sol2_init_abi): Call sol2_init_abi.
2507 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2508 set_gdbarch_static_transform_name,
2509 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2510 Use sol2_sigtramp_p.
2511 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2512 (sol2_sigtramp_p): New function.
2513 (sol2_static_transform_name): New function.
2514 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2515 (sol2_init_abi): New function.
2516 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2517 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2518 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2519 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2520 (sparc_sol2_static_transform_name): Remove.
2521 (sparc32_sol2_init_abi): Call sol2_init_abi.
2522 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2523 set_gdbarch_static_transform_name,
2524 set_gdbarch_skip_solib_resolver,
2525 set_gdbarch_core_pid_to_str.
2526 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2527 (sparc_sol2_static_transform_name): Remove
2528 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2529 call sol2_sigtramp_p.
2530 (sparc64_sol2_init_abi): Call sol2_init_abi.
2531 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2532 set_gdbarch_static_transform_name,
2533 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2534
a8654e7d
PW
25352020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2536
2537 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2538 * exec.c (validate_exec_file): If from_tty, set both
2539 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2540 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2541 and from_tty, unconditionally ask a confirmation.
2542
caa7fd04
AB
25432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2544
2545 * target-descriptions.c (tdesc_architecture_name): Protect against
2546 NULL pointer dereference.
2547 (maint_print_xml_tdesc_cmd): New function.
2548 (_initialize_target_descriptions): Register new 'maint print
2549 xml-tdesc' command and give it the filename completer.
2550 * NEWS: Mention new 'maint print xml-tdesc' command.
2551
fbf42f4e
AB
25522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2553
2554 * target-descriptions.c (class tdesc_compatible_info): New class.
2555 (struct target_desc): Change type of compatible vector.
2556 (tdesc_compatible_p): Update for change in type of
2557 target_desc::compatible.
2558 (tdesc_compatible_info_list): New function.
2559 (tdesc_compatible_info_arch_name): New function.
2560 (tdesc_add_compatible): Update for change in type of
2561 target_desc::compatible.
2562 (print_c_tdesc::visit_pre): Likewise.
2563
20821f4e
AB
25642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2565
2566 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2567 whitespace to underscore.
2568 (maint_print_c_tdesc_cmd): Use fake filename for target
2569 descriptions that came from the target.
2570 (_initialize_target_descriptions): Add filename command completion
2571 for 'maint print c-tdesc'.
2572
1fb5ee62
SM
25732020-06-23 Simon Marchi <simon.marchi@efficios.com>
2574
2575 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2576 lines.
2577
fc3ecb3e
SM
25782020-06-23 Simon Marchi <simon.marchi@efficios.com>
2579
2580 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2581 lines.
2582 (dwarf2_find_location_expression): Likewise.
2583 (call_site_parameter_matches): Likewise.
2584 (dwarf2_compile_expr_to_ax): Likewise.
2585 (disassemble_dwarf_expression): Likewise.
2586 (loclist_describe_location): Likewise.
2587
236ef034
PA
25882020-06-23 Pedro Alves <palves@redhat.com>
2589
2590 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2591 progspace-and-thread.h. Include scoped-mock-context.h instead.
2592 (register_to_value_test): Use scoped_mock_context.
2593 * regcache.c: Include "scoped-mock-context.h".
2594 (cooked_read_test): Don't error out if a target is already pushed.
2595 Use scoped_mock_context. Adjust.
2596 * scoped-mock-context.h: New file.
2597
39e7ecca
AB
25982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2599
2600 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2601 initializer.
2602 (ada_language::is_string_type_p): New member function.
2603 * c-lang.c (c_language_data): Delete la_is_string_type_p
2604 initializer.
2605 (cplus_language_data): Likewise.
2606 (asm_language_data): Likewise.
2607 (minimal_language_data): Likewise.
2608 * d-lang.c (d_language_data): Likewise.
2609 * f-lang.c (f_is_string_type_p): Delete function, implementation
2610 moved to f_language::is_string_type_p.
2611 (f_language_data): Delete la_is_string_type_p initializer.
2612 (f_language::is_string_type_p): New member function,
2613 implementation from f_is_string_type_p.
2614 * go-lang.c (go_is_string_type_p): Delete function, implementation
2615 moved to go_language::is_string_type_p.
2616 (go_language_data): Delete la_is_string_type_p initializer.
2617 (go_language::is_string_type_p): New member function,
2618 implementation from go_is_string_type_p.
2619 * language.c (language_defn::is_string_type_p): Define new member
2620 function.
2621 (default_is_string_type_p): Make static, add comment copied from
2622 header file.
2623 (unknown_language_data): Delete la_is_string_type_p initializer.
2624 (unknown_language::is_string_type_p): New member function.
2625 (auto_language_data): Delete la_is_string_type_p initializer.
2626 (auto_language::is_string_type_p): New member function.
2627 * language.h (language_data): Delete la_is_string_type_p field.
2628 (language_defn::is_string_type_p): Declare new function.
2629 (default_is_string_type_p): Delete desclaration, move comment to
2630 definition.
2631 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2632 moved to m2_language::is_string_type_p.
2633 (m2_language_data): Delete la_is_string_type_p initializer.
2634 (m2_language::is_string_type_p): New member function,
2635 implementation from m2_is_string_type_p.
2636 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2637 initializer.
2638 * opencl-lang.c (opencl_language_data): Likewise.
2639 * p-lang.c (pascal_is_string_type_p): Delete function,
2640 implementation moved to pascal_language::is_string_type_p.
2641 (pascal_language_data): Delete la_is_string_type_p initializer.
2642 (pascal_language::is_string_type_p): New member function,
2643 implementation from pascal_is_string_type_p.
2644 * rust-lang.c (rust_is_string_type_p): Delete function,
2645 implementation moved to rust_language::is_string_type_p.
2646 (rust_language_data): Delete la_is_string_type_p initializer.
2647 (rust_language::is_string_type_p): New member function,
2648 implementation from rust_is_string_type_p.
2649 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2650 is_string_type_p.
2651
4ffc13fb
AB
26522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2653
2654 * ada-lang.c (ada_language_data): Delete la_print_typedef
2655 initializer.
2656 (ada_language::print_typedef): New member function.
2657 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2658 (cplus_language_data): Likewise.
2659 (asm_language_data): Likewise.
2660 (minimal_language_data): Likewise.
2661 * d-lang.c (d_language_data): Likewise.
2662 * f-lang.c (f_language_data): Likewise.
2663 (f_language::print_typedef): New member function.
2664 * go-lang.c (go_language_data): Delete la_print_typedef
2665 initializer.
2666 * language.c (language_defn::print_typedef): Define member
2667 function.
2668 (unknown_language_data): Delete la_print_typedef initializer.
2669 (unknown_language::print_typedef): New member function.
2670 (auto_language_data): Delete la_print_typedef initializer.
2671 (auto_language::print_typedef): New member function.
2672 * language.h (language_data): Delete la_print_typedef field.
2673 (language_defn::print_typedef): Declare new member function.
2674 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2675 (default_print_typedef): Delete declaration.
2676 * m2-lang.c (m2_language_data): Delete la_print_typedef
2677 initializer.
2678 (m2_language::print_typedef): New member function.
2679 * objc-lang.c (objc_language_data): Delete la_print_typedef
2680 initializer.
2681 * opencl-lang.c (opencl_language_data): Likewise.
2682 * p-lang.c (pascal_language_data): Likewise.
2683 (pascal_language::print_typedef): New member function.
2684 * rust-lang.c (rust_print_typedef): Delete function,
2685 implementation moved to rust_language::print_typedef.
2686 (rust_language): Delete la_print_typedef initializer.
2687 (rust_language::print_typedef): New member function,
2688 implementation from rust_print_typedef.
2689 * typeprint.c (default_print_typedef): Delete.
2690
d711ee67
AB
26912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2692
2693 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2694 (ada_language::printstr): New member function.
2695 * c-lang.c (c_language_data): Delete la_printstr initializer.
2696 (cplus_language_data): Likewise.
2697 (asm_language_data): Likewise.
2698 (minimal_language_data): Likewise.
2699 * d-lang.c (d_language_data): Likewise.
2700 * f-lang.c (f_printstr): Rename to f_language::printstr.
2701 (f_language_data): Delete la_printstr initializer.
2702 (f_language::printstr): New member function, implementation from
2703 f_printstr.
2704 * go-lang.c (go_language_data): Delete la_printstr initializer.
2705 * language.c (language_defn::printstr): Define new member
2706 function.
2707 (unk_lang_printstr): Delete.
2708 (unknown_language_data): Delete la_printstr initializer.
2709 (unknown_language::printstr): New member function.
2710 (auto_language_data): Delete la_printstr initializer.
2711 (auto_language::printstr): New member function.
2712 * language.h (language_data): Delete la_printstr field.
2713 (language_defn::printstr): Declare new member function.
2714 (LA_PRINT_STRING): Update call to printstr.
2715 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2716 (m2_language_data): Delete la_printstr initializer.
2717 (m2_language::printstr): New member function, implementation from
2718 m2_printstr.
2719 * objc-lang.c (objc_language_data): Delete la_printstr
2720 initializer.
2721 * opencl-lang.c (opencl_language_data): Likewise.
2722 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2723 (pascal_language_data): Delete la_printstr initializer.
2724 (pascal_language::printstr): New member function, implementation
2725 from pascal_printstr.
2726 * p-lang.h (pascal_printstr): Delete declaration.
2727 * rust-lang.c (rust_printstr): Update header comment.
2728 (rust_language_data): Delete la_printstr initializer.
2729 (rust_language::printstr): New member function.
2730
52b50f2c
AB
27312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2732
2733 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2734 (ada_language::printchar): New member function.
2735 * c-lang.c (c_language_data): Delete la_printchar initializer.
2736 (cplus_language_data): Likewise.
2737 (asm_language_data): Likewise.
2738 (minimal_language_data): Likewise.
2739 * d-lang.c (d_language_data): Likewise.
2740 * f-lang.c (f_printchar): Rename to f_language::printchar.
2741 (f_language_data): Delete la_printchar initializer.
2742 (f_language::printchar): New member function, implementation from
2743 f_printchar.
2744 * go-lang.c (go_language_data): Delete la_printchar initializer.
2745 * language.c (unk_lang_printchar): Delete.
2746 (language_defn::printchar): Define new member function.
2747 (unknown_language_data): Delete la_printchar initializer.
2748 (unknown_language::printchar): New member function.
2749 (auto_language_data): Delete la_printchar initializer.
2750 (auto_language::printchar): New member function.
2751 * language.h (language_data): Delete la_printchar field.
2752 (language_defn::printchar): Declare new member function.
2753 (LA_PRINT_CHAR): Update call to printchar.
2754 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2755 (m2_language::printchar): New member function.
2756 * objc-lang.c (objc_language_data): Delete la_printchar
2757 initializer.
2758 * opencl-lang.c (opencl_language_data): Likewise.
2759 * p-lang.c (pascal_language_data): Delete la_printchar
2760 initializer.
2761 (pascal_language::printchar): New member function.
2762 * rust-lang.c (rust_printchar): Rename to
2763 rust_language::printchar.
2764 (rust_language_data): Delete la_printchar initializer.
2765 (rust_language::printchar): New member function, implementation
2766 from rust_printchar.
2767
ec8cec5b
AB
27682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2769
2770 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2771 (ada_language_data): Delete la_emitchar initializer.
2772 (ada_language::emitchar): New member function, implementation from
2773 emit_char.
2774 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2775 (cplus_language_data): Likewise.
2776 (asm_language_data): Likewise.
2777 (minimal_language_data): Likewise.
2778 * d-lang.c (d_language_data): Likewise.
2779 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2780 (f_language_data): Delete la_emitchar initializer.
2781 (f_language::emitchar): New member function, implementation from
2782 f_emit_char.
2783 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2784 * language.c (unk_lang_emit_char): Delete.
2785 (language_defn::emitchar): New member function definition.
2786 (unknown_language_data): Delete la_emitchar initializer.
2787 (unknown_language::emitchar): New member function.
2788 (auto_language_data): Delete la_emitchar initializer.
2789 (auto_language::emitchar): New member function.
2790 * language.h (language_data): Delete la_emitchar field.
2791 (language_defn::emitchar): New member field declaration.
2792 (LA_EMIT_CHAR): Update call to emitchar.
2793 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2794 (m2_language_data): Delete la_emitchar initializer.
2795 (m2_language::emitchar): New member function, implementation from
2796 m2_emit_char.
2797 * objc-lang.c (objc_language_data): Delete la_emitchar
2798 initializer.
2799 * opencl-lang.c (opencl_language_data): Likewise.
2800 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2801 (pascal_language_data): Delete la_emitchar initializer.
2802 (pascal_language::emitchar): New member function, implementation
2803 from pascal_emit_char.
2804 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2805 (rust_language_data): Delete la_emitchar initializer.
2806 (rust_language::emitchar): New member function, implementation
2807 from rust_emitchar.
2808
1bf9c363
AB
28092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2810
2811 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2812 (ada_language_data): Delete la_post_parser initializer.
2813 (ada_language::post_parser): New member function.
2814 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2815 (cplus_language_data): Likewise.
2816 (asm_language_data): Likewise.
2817 (minimal_language_data): Likewise.
2818 * d-lang.c (d_language_data): Likewise.
2819 * f-lang.c (f_language_data): Likewise.
2820 * go-lang.c (go_language_data): Likewise.
2821 * language.c (unknown_language_data): Likewise.
2822 (auto_language_data): Likewise.
2823 * language.h (language_data): Delete la_post_parser field.
2824 (language_defn::post_parser): New member function.
2825 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2826 * objc-lang.c (objc_language_data): Likewise.
2827 * opencl-lang.c (opencl_language_data): Likewise.
2828 * p-lang.c (pascal_language_data): Likewise.
2829 * parse.c (parse_exp_in_context): Update call to post_parser.
2830 (null_post_parser): Delete definition.
2831 * parser-defs.h (null_post_parser): Delete declaration.
2832 * rust-lang.c (rust_language_data): Delete la_post_parser
2833 initializer.
2834
87afa652
AB
28352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2836
2837 * ada-lang.c (parse): Rename to ada_language::parser.
2838 (ada_language_data): Delete la_parser initializer.
2839 (ada_language::parser): New member function, implementation from
2840 parse.
2841 * c-lang.c (c_language_data): Delete la_parser initializer.
2842 (cplus_language_data): Likewise.
2843 (asm_language_data): Likewise.
2844 (minimal_language_data): Likewise.
2845 * d-lang.c (d_language_data): Likewise.
2846 (d_language::parser): New member function.
2847 * f-lang.c (f_language_data): Delete la_parser initializer.
2848 (f_language::parser): New member function.
2849 * go-lang.c (go_language_data): Delete la_parser initializer.
2850 (go_language::parser): New member function.
2851 * language.c (unk_lang_parser): Delete.
2852 (language_defn::parser): Define new member function.
2853 (unknown_language_data): Delete la_parser initializer.
2854 (unknown_language::parser): New member function.
2855 (auto_language_data): Delete la_parser initializer.
2856 (auto_language::parser): New member function.
2857 * language.h (language_data): Delete la_parser field.
2858 (language_defn::parser): Declare new member function.
2859 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2860 (m2_language::parser): New member function.
2861 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2862 * opencl-lang.c (opencl_language_data): Likewise.
2863 * p-lang.c (pascal_language_data): Likewise.
2864 (pascal_language::parser): New member function.
2865 * parse.c (parse_exp_in_context): Update call to parser.
2866 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2867 (rust_language::parser): New member function.
2868
37825800
AB
28692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2870
2871 * top.c (print_gdb_configuration): Print --with-python-libdir
2872 configuration value.
2873
5b860c93
PW
28742020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2875
2876 * NEWS: Mention change to the alias command.
2877
cf00cd6f
PW
28782020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2879
2880 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2881 (alias_command_completer)
2882 (make_alias_options_def_group): New functions.
2883 (alias_opts, alias_option_defs): New struct and array.
2884 (alias_usage_error): Update usage.
2885 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2886 Use option framework.
2887 (_initialize_cli_cmds): Update alias command help.
2888 Update aliases command help.
2889 (show_user):
2890 Add NULL for new default_args lookup_cmd argument.
2891 (valid_command_p): Rename to validate_aliased_command.
2892 Add NULL for new default_args lookup_cmd argument. Verify that the
2893 aliased_command has no default args.
2894 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2895 (lookup_cmd_1, lookup_cmd): New argument default_args.
2896 (add_alias_cmd):
2897 Add NULL for new default_args lookup_cmd argument.
2898 (print_help_for_command): Show default args under the layout
2899 alias some_alias = some_aliased_cmd some_alias_default_arg.
2900 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2901 xfree default_args in destructor.
2902 * cli/cli-script.c (process_next_line, do_define_command):
2903 Add NULL for new default_args lookup_cmd argument.
2904 * command.h: Declare new default_args argument in lookup_cmd
2905 and lookup_cmd_1.
2906 * completer.c (complete_line_internal_1):
2907 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2908 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2909 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2910 Likewise.
2911 * infcmd.c (_initialize_infcmd): Likewise.
2912 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2913 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2914 * python/py-param.c (add_setshow_generic): Likewise.
2915 * remote.c (_initialize_remote): Likewise.
2916 * top.c (execute_command): Prepend default_args if command has some.
2917 (set_verbose):
2918 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2919 * tracepoint.c (validate_actionline, encode_actions_1):
2920 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2921
bd920864
TBA
29222020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2923
2924 * jit.c (jit_read_descriptor): Use bool as the return type.
2925 (jit_breakpoint_re_set_internal): Use bool as the return type.
2926 Invert the return value logic; return true if the jit breakpoint
2927 has been successfully initialized.
2928 (jit_inferior_init): Update the call to
2929 jit_breakpoint_re_set_internal.
2930
f8098322
PA
29312020-06-22 Pedro Alves <palves@redhat.com>
2932
2933 PR gdb/25939
2934 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2935 Use the current inferior instead. Don't return
2936 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2937 wait again.
2938 * sol-thread.c (sol_thread_target::wait): Don't reference
2939 inferior_ptid.
2940 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2941 (sol_update_thread_list_callback): Use the current inferior's pid
2942 instead of inferior_ptid.
2943
196535a6
RO
29442020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2945
2946 * procfs.c: Cleanup many comments.
2947
2948 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2949 (AFTER_WATCHFLAG): Replace by value.
2950
2951 (MAIN_PROC_NAME_FORMAT): Inline ...
2952 (create_procinfo): ... here.
2953
2954 (procfs_debug_inferior): Remove SYS_exec handling.
2955 (syscall_is_exec): Likewise.
2956 (procfs_set_exec_trap): Likewise.
2957
2958 (syscall_is_lwp_exit): Inline in callers.
2959 (syscall_is_exit): Likewise.
2960 (syscall_is_exec): Likewise.
2961 (syscall_is_lwp_create): Likewise.
2962
2963 (invalidate_cache): Remove #if 0 code.
2964
2965 (make_signal_thread_runnable): Remove.
2966 (procfs_target::resume): Remove #if 0 code.
2967
cf6f3e86
RO
29682020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2969
2970 PR gdb/25939
2971 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2972 call ...
2973 (procfs_target::create_inferior): ... here.
2974
48e9cc84
PW
29752020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2976
2977 * exec.c (validate_exec_file): Ensure the build-id is up to
2978 date by calling reopen_exec_file (that checks file timestamp
2979 to decide to re-read the file).
2980
3922b302
PA
29812020-06-18 Pedro Alves <palves@redhat.com>
2982
2983 PR gdb/25412
2984 * gdbthread.h (delete_thread, delete_thread_silent)
2985 (find_thread_ptid): Update comments.
2986 * thread.c (current_thread_): New global.
2987 (is_current_thread): Move higher, and reimplement.
2988 (inferior_thread): Reimplement.
2989 (set_thread_exited): Use bool. Add assertions.
2990 (add_thread_silent): Simplify thread-reuse handling by always
2991 calling delete_thread.
2992 (delete_thread): Remove intro comment.
2993 (find_thread_ptid): Skip exited threads.
2994 (switch_to_thread_no_regs): Write to current_thread_.
2995 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2996 INFERIOR_PTID. Clear current_thread_.
2997
6dbdab44
PA
29982020-06-18 Pedro Alves <palves@redhat.com>
2999
3000 * aix-thread.c (pd_update): Use switch_to_thread.
3001
2da4b788
PA
30022020-06-18 Pedro Alves <palves@redhat.com>
3003
3004 * ravenscar-thread.c (ravenscar_thread_target): Update.
3005 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
3006 (ravenscar_thread_target::add_active_thread): ... this. Don't
3007 set m_base_ptid here. Update to avoid referencing inferior_ptid.
3008 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
3009
50838d1b
PA
30102020-06-18 Pedro Alves <palves@redhat.com>
3011
3012 * nat/windows-nat.c (current_windows_thread): Remove.
3013 * nat/windows-nat.h (current_windows_thread): Remove.
3014 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
3015 Adjust.
3016 (display_selectors): Adjust to fetch the current
3017 windows_thread_info based on inferior_ptid.
3018 (fake_create_process): No longer write to current_windows_thread.
3019 (windows_nat_target::get_windows_debug_event):
3020 Don't set inferior_ptid or current_windows_thread.
3021 (windows_nat_target::wait): Adjust to not rely on
3022 current_windows_thread.
3023 (do_initial_windows_stuff): Now a method of windows_nat_target.
3024 Switch to the last_ptid thread.
3025 (windows_nat_target::attach): Adjust.
3026 (windows_nat_target::detach): Use switch_to_no_thread instead of
3027 writing to inferior_ptid directly.
3028 (windows_nat_target::create_inferior): Adjust.
3029
31ce04e9
PA
30302020-06-18 Pedro Alves <palves@redhat.com>
3031
3032 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
3033
1ee1a363
PA
30342020-06-18 Pedro Alves <palves@redhat.com>
3035
3036 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
3037 after creating it, instead of writing to inferior_ptid. Don't
3038 write to inferior_ptid.
3039
6d350754
PA
30402020-06-18 Pedro Alves <palves@redhat.com>
3041
3042 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3043
5d971d48
PA
30442020-06-18 Pedro Alves <palves@redhat.com>
3045
3046 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3047 it, instead of writing to inferior_ptid.
3048
86e57d1b
PA
30492020-06-18 Pedro Alves <palves@redhat.com>
3050
3051 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3052 to inferior_ptid.
3053
f2e1c129
PA
30542020-06-18 Pedro Alves <palves@redhat.com>
3055
3056 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3057 instead of writing to inferior_ptid directly.
3058
60db1b85
PA
30592020-06-18 Pedro Alves <palves@redhat.com>
3060
3061 * corelow.c (core_target::close): Use switch_to_no_thread instead
3062 of writing to inferior_ptid directly.
3063 (add_to_thread_list, core_target_open): Use switch_to_thread
3064 instead of writing to inferior_ptid directly.
3065
fe7d6a8d
PA
30662020-06-18 Pedro Alves <palves@redhat.com>
3067
3068 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3069 inferior_ptid.
3070 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3071 inferior_ptid.
3072 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3073 inferior_ptid directly.
3074 (darwin_nat_target::init_thread_list): Switch to thread, instead
3075 of writing to inferior_ptid.
3076 (darwin_nat_target::attach): Don't write to inferior_ptid.
3077 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3078
975f8708
PA
30792020-06-18 Pedro Alves <palves@redhat.com>
3080
3081 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3082 thread.
3083 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3084 Instead use switch_to_thread.
3085 (gnu_nat_target::detach): Use switch_to_no_thread
3086 instead of writing to inferior_ptid directly. Used passed-in
3087 inferior instead of looking up the inferior by pid.
3088
1a204730
PA
30892020-06-18 Pedro Alves <palves@redhat.com>
3090
3091 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3092 inferior_ptid.
3093
ebe84f23
PA
30942020-06-18 Pedro Alves <palves@redhat.com>
3095
3096 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3097 inferior_ptid.
3098 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3099 thread.
3100 (nto_procfs_target::detach): Avoid referencing
3101 inferior_ptid. Use switch_to_no_thread instead of writing to
3102 inferior_ptid directly.
3103 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3104 instead of writing to inferior_ptid directly.
3105 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3106 to thread.
3107
191f02e5
PA
31082020-06-18 Pedro Alves <palves@redhat.com>
3109
3110 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3111 after creating it, instead of writing to inferior_ptid.
3112 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3113 to inferior_ptid directly.
3114 (gdbsim_target::wait): Don't write to inferior_ptid.
3115
0ac55310
PA
31162020-06-18 Pedro Alves <palves@redhat.com>
3117
3118 * remote.c (remote_target::remote_notice_new_inferior): Use
3119 switch_to_thread instead of writing to inferior_ptid directly.
3120 (remote_target::add_current_inferior_and_thread): Use
3121 switch_to_no_thread instead of writing to inferior_ptid directly.
3122 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3123 and switch_to_thread instead of using set_current_inferior or
3124 writing to inferior_ptid directly.
3125
5233f39b
PA
31262020-06-18 Pedro Alves <palves@redhat.com>
3127
3128 * tracectf.c (ctf_target_open): Switch to added thread instead of
3129 writing to inferior_ptid directly.
3130 (ctf_target::close): Use switch_to_no_thread instead of writing to
3131 inferior_ptid directly.
3132
087e161b
PA
31332020-06-18 Pedro Alves <palves@redhat.com>
3134
3135 * tracefile-tfile.c (tfile_target_open): Don't write to
3136 inferior_ptid directly, instead switch to added thread.
3137 (tfile_target::close): Use switch_to_no_thread instead of writing
3138 to inferior_ptid directly.
3139
7fb43e53
PA
31402020-06-18 Pedro Alves <palves@redhat.com>
3141
3142 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3143 (procfs_target::detach): Use switch_to_no_thread
3144 instead of writing to inferior_ptid directly.
3145 (do_attach): Change return type to void. Switch to the added
3146 thread.
3147 (procfs_target::create_inferior): Switch to the added thread.
3148 (procfs_do_thread_registers): Don't write to inferior_ptid.
3149
18493a00
PA
31502020-06-18 Pedro Alves <palves@redhat.com>
3151
3152 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3153 of writing to inferior_ptid.
3154 (scoped_restore_exited_inferior): Delete.
3155 (handle_vfork_child_exec_or_exit): Simplify using
3156 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3157 instead of writing to inferior_ptid.
3158 (THREAD_STOPPED_BY): Delete.
3159 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3160 (thread_stopped_by_hw_breakpoint): Delete.
3161 (save_waitstatus): Use
3162 scoped_restore_current_thread+switch_to_thread, and call
3163 target_stopped_by_watchpoint instead of
3164 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3165 instead of thread_stopped_by_sw_breakpoint, and
3166 target_stopped_by_hw_breakpoint instead of
3167 thread_stopped_by_hw_breakpoint.
3168 (handle_inferior_event)
3169 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3170 inferior_ptid directly, nor
3171 set_current_inferior/set_current_program_space. Use
3172 switch_to_thread / switch_to_inferior_no_thread instead.
3173
a0776b13
PA
31742020-06-18 Pedro Alves <palves@redhat.com>
3175
3176 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3177 instead of writing to inferior_ptid.
3178
6155c136
PA
31792020-06-18 Pedro Alves <palves@redhat.com>
3180
3181 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3182 added thread.
3183 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3184 to the added thread.
3185 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3186 instead of writing to inferior_ptid.
3187
c5316fc6
PA
31882020-06-18 Pedro Alves <palves@redhat.com>
3189
3190 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3191 (register_to_value_test): Mock a program_space too. Heap-allocate
3192 the address space. Don't write to inferior_ptid. Use
3193 switch_to_thread instead.
3194
8df01799
PA
31952020-06-18 Pedro Alves <palves@redhat.com>
3196
3197 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3198 Delete.
3199 (find_signalled_thread()): New, factored out from
3200 linux_make_corefile_notes and adjusted to handle exited threads.
3201 (linux_make_corefile_notes): Adjust to use the new
3202 find_signalled_thread.
3203
41792d68
PA
32042020-06-18 Pedro Alves <palves@redhat.com>
3205
3206 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3207 of saving/restoring inferior_ptid.
3208
612f258a
TT
32092020-06-17 Tom Tromey <tom@tromey.com>
3210
3211 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3212 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3213 declare.
3214 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3215
efb763a5
SM
32162020-06-15 Simon Marchi <simon.marchi@efficios.com>
3217
3218 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3219 of partial symtabs.
3220
2951f6c0
SM
32212020-06-17 Simon Marchi <simon.marchi@efficios.com>
3222
3223 * regformats/reg-arm.dat: Remove.
3224 * regformats/reg-bfin.dat: Remove.
3225 * regformats/reg-cris.dat: Remove.
3226 * regformats/reg-crisv32.dat: Remove.
3227 * regformats/reg-m32r.dat: Remove.
3228 * regformats/reg-tilegx.dat: Remove.
3229 * regformats/reg-tilegx32.dat: Remove.
3230
7d458ea5
SM
32312020-06-17 Simon Marchi <simon.marchi@efficios.com>
3232
3233 * features/Makefile (WHICH): Remove arm files.
3234 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3235 * regformats/arm/arm-with-neon.dat: Remove.
3236 * regformats/arm/arm-with-vfpv2.dat: Remove.
3237 * regformats/arm/arm-with-vfpv3.dat: Remove.
3238
3af96c0d
SM
32392020-06-17 Simon Marchi <simon.marchi@efficios.com>
3240
3241 * features/Makefile (XMLTOC): Remove rx.xml.
3242
b25e22fd
PA
32432020-06-17 Pedro Alves <palves@redhat.com>
3244
3245 * gdbthread.h (thread_control_state) <trap_expected> Update
3246 comments.
3247
a78a19b1
AB
32482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3249
3250 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3251 ada_language::lookup_symbol_nonlocal.
3252 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3253 (ada_language::lookup_symbol_nonlocal): New member function,
3254 implementation from ada_lookup_symbol_nonlocal.
3255 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3256 initializer.
3257 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3258 initializer.
3259 (cplus_language::lookup_symbol_nonlocal): New member function.
3260 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3261 (minimal_language_data) Likewise.
3262 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3263 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3264 initializer.
3265 (d_language::lookup_symbol_nonlocal): New member function.
3266 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3267 initializer.
3268 (f_language::lookup_symbol_nonlocal): New member function.
3269 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3270 initializer.
3271 * language.c (unknown_language_data): Likewise.
3272 (auto_language_data): Likewise.
3273 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3274 field.
3275 (language_defn::lookup_symbol_nonlocal): New member function.
3276 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3277 initializer.
3278 * objc-lang.c (objc_language_data): Likewise.
3279 * opencl-lang.c (opencl_language_data): Likewise.
3280 * p-lang.c (pascal_language_data): Likewise.
3281 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3282 rust_language::lookup_symbol_nonlocal.
3283 (rust_language_data): Delete la_lookup_symbol_nonlocal
3284 initializer.
3285 (rust_language::lookup_symbol_nonlocal): New member function,
3286 implementation from rust_lookup_symbol_nonlocal.
3287 * symtab.c (lookup_symbol_aux): Update call to
3288 lookup_symbol_nonlocal.
3289 (basic_lookup_symbol_nonlocal): Rename to...
3290 (language_defn::lookup_symbol_nonlocal): ...this, and update
3291 header comment. Remove language_defn parameter, and replace with
3292 uses of `this'.
3293 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3294
ebe2334e
AB
32952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3296
3297 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3298 initializer.
3299 (ada_language::value_print_inner): New member function.
3300 * c-lang.c (c_language_data): Delete la_value_print_inner
3301 initializer.
3302 (cplus_language_data): Likewise.
3303 (asm_language_data): Likewise.
3304 (minimal_language_data): Likewise.
3305 * d-lang.c (d_language_data): Likewise.
3306 (d_language::value_print_inner): New member function.
3307 * f-lang.c (f_language_data): Delete la_value_print_inner
3308 initializer.
3309 (f_language::value_print_inner): New member function.
3310 * f-lang.h (f_value_print_innner): Rename to...
3311 (f_value_print_inner): ...this (note spelling of 'inner').
3312 * f-valprint.c (f_value_print_innner): Rename to...
3313 (f_value_print_inner): ...this (note spelling of 'inner').
3314 * go-lang.c (go_language_data): Delete la_value_print_inner
3315 initializer.
3316 (go_language::value_print_inner): New member function.
3317 * language.c (language_defn::value_print_inner): Define new member
3318 function.
3319 (unk_lang_value_print_inner): Delete.
3320 (unknown_language_data): Delete la_value_print_inner initializer.
3321 (unknown_language::value_print_inner): New member function.
3322 (auto_language_data): Delete la_value_print_inner initializer.
3323 (auto_language::value_print_inner): New member function.
3324 * language.h (language_data): Delete la_value_print_inner field.
3325 (language_defn::value_print_inner): Delcare new member function.
3326 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3327 initializer.
3328 (m2_language::value_print_inner): New member function.
3329 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3330 initializer.
3331 * opencl-lang.c (opencl_language_data): Likewise.
3332 * p-lang.c (pascal_language_data): Likewise.
3333 (pascal_language::value_print_inner): New member function.
3334 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3335 initializer.
3336 (rust_language::value_print_inner): New member function.
3337 * valprint.c (do_val_print): Update call to value_print_inner.
3338
a1d1fa3e
AB
33392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3340
3341 * ada-lang.c (ada_language_data): Delete la_value_print
3342 initializer.
3343 (ada_language::value_print): New member function.
3344 * c-lang.c (c_language_data): Delete la_value_print initializer.
3345 (cplus_language_data): Likewise.
3346 (asm_language_data): Likewise.
3347 (minimal_language_data): Likewise.
3348 * d-lang.c (d_language_data): Likewise.
3349 * f-lang.c (f_language_data): Likewise.
3350 * go-lang.c (go_language_data): Likewise.
3351 * language.c (unk_lang_value_print): Delete.
3352 (language_defn::value_print): Define new member function.
3353 (unknown_language_data): Delete la_value_print initializer.
3354 (unknown_language::value_print): New member function.
3355 (auto_language_data): Delete la_value_print initializer.
3356 (auto_language::value_print): New member function.
3357 * language.h (language_data): Delete la_value_print field.
3358 (language_defn::value_print): Declare new member function.
3359 (LA_VALUE_PRINT): Update call to value_print.
3360 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3361 * objc-lang.c (objc_language_data): Likewise.
3362 * opencl-lang.c (opencl_language_data): Likewise.
3363 * p-lang.c (pascal_language_data): Likewise.
3364 (pascal_language::value_print): New member function.
3365 * rust-lang.c (rust_language_data): Delete la_value_print
3366 initializer.
3367
f16a9f57
AB
33682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3369
3370 * ada-lang.c (ada_watch_location_expression): Rename to
3371 ada_language::watch_location_expression.
3372 (ada_language_data): Delete la_watch_location_expression
3373 initializer.
3374 (ada_language::watch_location_expression): New member function,
3375 implementation from ada_watch_location_expression.
3376 * breakpoint.c (watch_command_1): Update call to
3377 watch_location_expression.
3378 * c-lang.c (c_watch_location_expression): Rename to
3379 language_defn::watch_location_expression.
3380 (c_language_data): Delete la_watch_location_expression
3381 initializer.
3382 (cplus_language_data): Likewise.
3383 (asm_language_data): Likewise.
3384 (minimal_language_data): Likewise.
3385 * c-lang.h (c_watch_location_expression): Delete declaration.
3386 * d-lang.c (d_language_data): Delete la_watch_location_expression
3387 initializer.
3388 * f-lang.c (f_language_data): Likewise.
3389 * go-lang.c (go_language_data): Likewise.
3390 * language.c (language_defn::watch_location_expression): Member
3391 function implementation from c_watch_location_expression.
3392 (unknown_language_data): Delete la_watch_location_expression
3393 initializer.
3394 (auto_language_data): Likewise.
3395 * language.h (language_data): Delete la_watch_location_expression
3396 field.
3397 (language_defn::watch_location_expression): Declare new member
3398 function.
3399 * m2-lang.c (m2_language_data): Delete
3400 la_watch_location_expression initializer.
3401 * objc-lang.c (objc_language_data): Likewise.
3402 * opencl-lang.c (opencl_language_data): Likewise.
3403 * p-lang.c (pascal_language_data): Likewise.
3404 * rust-lang.c (rust_watch_location_expression): Rename to
3405 rust_language::watch_location_expression.
3406 (rust_language_data): Delete la_watch_location_expression
3407 initializer.
3408 (rust_language::watch_location_expression): New member function,
3409 implementation from rust_watch_location_expression.
3410
7e56227d
AB
34112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3412
3413 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3414 ada_language::collect_symbol_completion_matches.
3415 (ada_language_data): Delete la_collect_symbol_completion_matches
3416 initializer.
3417 (ada_language::collect_symbol_completion_matches): New member
3418 function, implementation from
3419 ada_collect_symbol_completion_matches.
3420 * c-lang.c (c_language_data): Delete
3421 la_collect_symbol_completion_matches initializer.
3422 (cplus_language_data): Likewise.
3423 (asm_language_data): Likewise.
3424 (minimal_language_data): Likewise.
3425 * d-lang.c (d_language_data): Likewise.
3426 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3427 f_language::collect_symbol_completion_matches.
3428 (f_language_data): Delete la_collect_symbol_completion_matches
3429 initializer.
3430 (f_language::collect_symbol_completion_matches) New member
3431 function, implementation from f_collect_symbol_completion_matches.
3432 * go-lang.c (go_language_data): Delete
3433 la_collect_symbol_completion_matches initializer.
3434 * language.c (unknown_language_data): Likewise.
3435 (auto_language_data): Likewise.
3436 * language.h (language_data): Delete
3437 la_collect_symbol_completion_matches field.
3438 (language_defn::collect_symbol_completion_matches): New member
3439 function.
3440 * m2-lang.c (m2_language_data): Delete
3441 la_collect_symbol_completion_matches initializer.
3442 * objc-lang.c (objc_language_data): Likewise.
3443 * opencl-lang.c (opencl_language_data): Likewise.
3444 * p-lang.c (pascal_language_data): Likewise.
3445 * rust-lang.c (rust_language_data): Likewise.
3446 * symtab.c (default_collect_symbol_completion_matches): Delete.
3447 (collect_symbol_completion_matches): Update call to
3448 collect_symbol_completion_matches.
3449 (collect_symbol_completion_matches_type): Likewise.
3450 * symtab.h (default_collect_symbol_completion_matches): Delete
3451 declaration.
3452
53fc67f8
AB
34532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3454
3455 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3456 (ada_language_data): Delete la_word_break_characters initializer.
3457 (ada_language::word_break_characters): New member function.
3458 * c-lang.c (c_language_data): Delete la_word_break_characters
3459 initializer.
3460 (cplus_language_data): Likewise.
3461 (asm_language_data): Likewise.
3462 (minimal_language_data): Likewise.
3463 * completer.c: Update global comment.
3464 (advance_to_expression_complete_word_point): Update call to
3465 word_break_characters.
3466 (complete_files_symbols): Likewise.
3467 (complete_line_internal_1): Likewise.
3468 (default_completer_handle_brkchars): Likewise.
3469 (skip_quoted_chars): Likewise.
3470 * d-lang.c (d_language_data): Delete la_word_break_characters
3471 initializer.
3472 * f-lang.c (f_word_break_characters): Delete.
3473 (f_language_data): Delete la_word_break_characters initializer.
3474 (f_language::word_break_characters): New member function.
3475 * go-lang.c (go_language_data): Delete la_word_break_characters
3476 initializer.
3477 * language.c (unknown_language_data): Likewise.
3478 (auto_language_data): Likewise.
3479 * language.h (default_word_break_characters): Move declaration to
3480 earlier in the file.
3481 (language_data): Delete la_word_break_characters field.
3482 (language_defn::word_break_characters): New member function.
3483 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3484 initializer.
3485 * objc-lang.c (objc_language_data): Likewise.
3486 * opencl-lang.c (opencl_language_data): Likewise.
3487 * p-lang.c (pascal_language_data): Likewise.
3488 * rust-lang.c (rust_language_data): Likewise.
3489
c9debfb9
AB
34902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3491
3492 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3493 (ada_language_data): Delete la_get_symbol_name_matcher
3494 initializer.
3495 (language_defn::get_symbol_name_matcher_inner): New member
3496 function.
3497 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3498 initializer.
3499 (cplus_language_data): Likewise.
3500 (cplus_language::get_symbol_name_matcher_inner): New member
3501 function.
3502 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3503 (minimal_language_data): Likewise.
3504 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3505 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3506 initializer.
3507 * dictionary.c (iter_match_first_hashed): Update call to
3508 get_symbol_name_matcher.
3509 (iter_match_next_hashed): Likewise.
3510 (iter_match_next_linear): Likewise.
3511 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3512 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3513 initializer.
3514 (f_language::get_symbol_name_matcher_inner): New member function.
3515 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3516 initializer.
3517 * language.c (default_symbol_name_matcher): Update header comment,
3518 make static.
3519 (language_defn::get_symbol_name_matcher): New definition.
3520 (language_defn::get_symbol_name_matcher_inner): Likewise.
3521 (get_symbol_name_matcher): Delete.
3522 (unknown_language_data): Delete la_get_symbol_name_matcher
3523 initializer.
3524 (auto_language_data): Likewise.
3525 * language.h (language_data): Delete la_get_symbol_name_matcher
3526 field.
3527 (language_defn::get_symbol_name_matcher): New member function.
3528 (language_defn::get_symbol_name_matcher_inner): Likewise.
3529 (default_symbol_name_matcher): Delete declaration.
3530 * linespec.c (find_methods): Update call to
3531 get_symbol_name_matcher.
3532 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3533 initializer.
3534 * minsyms.c (lookup_minimal_symbol): Update call to
3535 get_symbol_name_matcher.
3536 (iterate_over_minimal_symbols): Likewise.
3537 * objc-lang.c (objc_language_data): Delete
3538 la_get_symbol_name_matcher initializer.
3539 * opencl-lang.c (opencl_language_data): Likewise.
3540 * p-lang.c (pascal_language_data): Likewise.
3541 * psymtab.c (psymbol_name_matches): Update call to
3542 get_symbol_name_matcher.
3543 * rust-lang.c (rust_language_data): Delete
3544 la_get_symbol_name_matcher initializer.
3545 * symtab.c (symbol_matches_search_name): Update call to
3546 get_symbol_name_matcher.
3547 (compare_symbol_name): Likewise.
3548
9a49ad8c
AB
35492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3550
3551 * ada-lang.c (ada_language_data): Delete la_compute_program
3552 initializer.
3553 * c-lang.c (c_language_data): Likewise.
3554 (c_language::compute_program): New member function.
3555 (cplus_language_data): Delete la_compute_program initializer.
3556 (cplus_language::compute_program): New member function.
3557 (asm_language_data): Delete la_compute_program initializer.
3558 (minimal_language_data): Likewise.
3559 * c-lang.h (c_compute_program): Update comment.
3560 (cplus_compute_program): Likewise.
3561 * compile/compile-c-support.c (c_compute_program): Likewise.
3562 (cplus_compute_program): Likewise.
3563 * compile/compile.c (compile_to_object): Update call to
3564 la_compute_program.
3565 * d-lang.c (d_language_data): Delete la_compute_program
3566 initializer.
3567 * f-lang.c (f_language_data): Likewise.
3568 * go-lang.c (go_language_data): Likewise.
3569 * language.c (unknown_language_data): Likewise.
3570 (auto_language_data): Likewise.
3571 * language.h (language_data): Delete la_compute_program field.
3572 (language_defn::compute_program): New member function.
3573 * m2-lang.c (m2_language_data): Delete la_compute_program
3574 initializer.
3575 * objc-lang.c (objc_language_data): Likewise.
3576 * opencl-lang.c (opencl_language_data): Likewise.
3577 * p-lang.c (pascal_language_data): Likewise.
3578 * rust-lang.c (rust_language_data): Likewise.
3579
eff93b4d
AB
35802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3581
3582 * ada-lang.c (ada_language_data) Delete
3583 la_class_name_from_physname initializer.
3584 * c-lang.c (c_language_data): Likewise.
3585 (cplus_language_data): Likewise.
3586 (cplus_language::class_name_from_physname): New member function.
3587 (asm_language_data): Delete la_class_name_from_physname
3588 initializer.
3589 (minimal_language_data): Likewise.
3590 * d-lang.c (d_language_data): Likewise.
3591 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3592 method on language_defn class.
3593 (guess_full_die_structure_name): Likewise.
3594 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3595 initializer.
3596 * go-lang.c (go_language_data): Likewise.
3597 * language.c (language_class_name_from_physname): Delete.
3598 (unk_lang_class_name): Delete.
3599 (unknown_language_data): Delete la_class_name_from_physname
3600 initializer.
3601 (auto_language_data): Likewise.
3602 * language.h (language_data): Delete la_class_name_from_physname
3603 field.
3604 (language_defn::class_name_from_physname): New function.
3605 (language_class_name_from_physname): Delete declaration.
3606 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
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
de543742
TT
36132020-06-16 Tom Tromey <tom@tromey.com>
3614
3615 * tui/tui-data.h (STATUS_NAME): New macro.
3616 * tui/tui-layout.c (tui_remove_some_windows)
3617 (initialize_known_windows, tui_register_window)
3618 (tui_layout_split::remove_windows, initialize_layouts)
3619 (tui_new_layout_command): Don't use hard-coded window names.
3620
a350efd4
TT
36212020-06-16 Tom Tromey <tom@tromey.com>
3622
3623 PR tui/25348:
3624 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3625 tui_initialize_readline. Only run once. Call rl_initialize.
3626 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3627 tui_initialize_readline.
3628 * tui/tui-io.c (tui_setup_io): Call
3629 tui_ensure_readline_initialized.
3630 * tui/tui-interp.c (tui_interp::init): Update.
3631
39ec0490
TT
36322020-06-16 Tom Tromey <tom@tromey.com>
3633
3634 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3635 Also preserve the status window.
3636
d2d1ea20
TT
36372020-06-16 Tom Tromey <tom@tromey.com>
3638
3639 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3640 where m_window==nullptr.
3641
66920317
TT
36422020-06-15 Tom Tromey <tromey@adacore.com>
3643
3644 * windows-nat.c (windows_nat::handle_output_debug_string):
3645 Update.
3646 (windows_nat::handle_ms_vc_exception): Update.
3647 * target.h (target_read_string): Change API.
3648 * target.c (target_read_string): Change API.
3649 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3650 Update.
3651 * solib-frv.c (frv_current_sos): Update.
3652 * solib-dsbt.c (dsbt_current_sos): Update.
3653 * solib-darwin.c (darwin_current_sos): Update.
3654 * linux-thread-db.c (inferior_has_bug): Update.
3655 * expprint.c (print_subexp_standard): Update.
3656 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3657 (ada_exception_message_1): Update.
3658
a5d871dd
TT
36592020-06-15 Tom Tromey <tromey@adacore.com>
3660
3661 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3662
670e35fa
TT
36632020-06-15 Tom Tromey <tromey@adacore.com>
3664
3665 * valprint.c (read_string): Update comment.
3666 * target.c (MIN): Remove.
3667 (target_read_string): Rewrite.
3668
f5272a3b
TT
36692020-06-15 Tom Tromey <tromey@adacore.com>
3670
3671 * corefile.c (read_memory_string): Remove.
3672 * ada-valprint.c (ada_value_print_ptr): Update.
3673 * ada-lang.h (ada_tag_name): Change return type.
3674 * ada-lang.c (type_from_tag): Update.
3675 (ada_tag_name_from_tsd): Change return type. Use
3676 target_read_string.
3677 (ada_tag_name): Likewise.
3678 * gdbcore.h (read_memory_string): Don't declare.
3679
2c074f49
HD
36802020-06-14 Hannes Domani <ssbssa@yahoo.de>
3681
3682 * symtab.c (rbreak_command): Ignore Windows drive colon.
3683
6a17d503
SM
36842020-06-12 Simon Marchi <simon.marchi@efficios.com>
3685
3686 * NEWS: Mention removed GDBserver host support.
3687
453c733f
NC
36882020-06-12 Nelson Chu <nelson.chu@sifive.com>
3689
3690 * features/riscv/rebuild-csr-xml.sh: Updated.
3691
2b4e6a3f
TT
36922020-06-11 Tom Tromey <tom@tromey.com>
3693
3694 PR gdb/18318:
3695 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3696
4412332f
JG
36972020-06-09 Jonny Grant <jg@jguk.org>
36982020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3699
3700 * main.c (captured_main_1): Don't print new line after help.
3701 (print_gdb_help): add mailing list and IRC channel information
3702 to --help. Add new lines between items in the footer. Remove
3703 quotes around bug url.
3704
2f33032a
KS
37052020-06-11 Keith Seitz <keiths@redhat.com>
3706
3707 PR gdb/21356
3708 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3709 Resolve typedefs for type length calculations.
3710
7ab96794
TV
37112020-06-10 Tom de Vries <tdevries@suse.de>
3712
3713 PR ada/24713
3714 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3715 (write_psymbols): Enable .gdb_index for ada.
3716 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3717 ada.
3718
e5f3ece2
TV
37192020-06-10 Tom de Vries <tdevries@suse.de>
3720
3721 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3722 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3723 namei" instead of "const char *name" argument.
3724 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3725 dw2_symtab_iter_init.
3726
940da03e
SM
37272020-06-08 Simon Marchi <simon.marchi@efficios.com>
3728
3729 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3730 to use type::field and field::type instead.
3731
b6cdac4b
SM
37322020-06-08 Simon Marchi <simon.marchi@efficios.com>
3733
3734 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3735 to use field::type instead.
3736
5d14b6e5
SM
37372020-06-08 Simon Marchi <simon.marchi@efficios.com>
3738
3739 * gdbtypes.h (struct field) <type, set_type>: New methods.
3740 Rename `type` field to...
3741 <m_type>: ... this. Change references throughout to use type or
3742 set_type methods.
3743 (FIELD_TYPE): Use field::type. Change call sites that modify
3744 the field's type to use field::set_type instead.
3745
3d967001
SM
37462020-06-08 Simon Marchi <simon.marchi@efficios.com>
3747
3748 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3749 to use type::index_type instead.
3750
262abc0d
SM
37512020-06-08 Simon Marchi <simon.marchi@efficios.com>
3752
3753 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3754 methods.
3755 (TYPE_INDEX_TYPE): Use type::index_type.
3756 * gdbtypes.c (create_array_type_with_stride): Likewise.
3757
82836c92
TT
37582020-06-07 Tom Tromey <tom@tromey.com>
3759
3760 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3761 parameter.
3762 (generic_value_print): Update.
3763
940dace9
AB
37642020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3765
3766 Revert commit 982a38f60b0.
3767 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3768
982a38f6
AB
37692020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3770
3771 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3772 avoid use after free.
3773
82f06518
TV
37742020-06-05 Tom de Vries <tdevries@suse.de>
3775
3776 * NEWS: Fix typos.
3777
f8c41851
SM
37782020-06-04 Simon Marchi <simon.marchi@efficios.com>
3779
3780 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3781 the per_bfd object.
3782 (dwarf2_read_debug_names): Likewise.
3783 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3784 object when re-using a per_bfd object with an index.
3785
f9b5d5ea
TV
37862020-06-03 Tom de Vries <tdevries@suse.de>
3787
3788 PR symtab/26046
3789 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3790 children for C++.
3791 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3792 DW_TAG_subprogram.
3793
f6eee2d0
AB
37942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3795
3796 * ada-lang.c (ada_language_data): Delete skip_trampoline
3797 initializer.
3798 * c-lang.c (c_language_data): Likewise.
3799 (cplus_language_data): Likewise.
3800 (cplus_language::skip_trampoline): New member function.
3801 (asm_language_data): Delete skip_trampoline initializer.
3802 (minimal_language_data): Likewise.
3803 * d-lang.c (d_language_data): Likewise.
3804 * f-lang.c (f_language_data): Likewise.
3805 * go-lang.c (go_language_data): Likewise.
3806 * language.c (unk_lang_trampoline): Delete function.
3807 (skip_language_trampoline): Update.
3808 (unknown_language_data): Delete skip_trampoline initializer.
3809 (auto_language_data): Likewise.
3810 * language.h (language_data): Delete skip_trampoline field.
3811 (language_defn::skip_trampoline): New function.
3812 * m2-lang.c (m2_language_data): Delete skip_trampoline
3813 initializer.
3814 * objc-lang.c (objc_skip_trampoline): Delete function, move
3815 implementation to objc_language::skip_trampoline.
3816 (objc_language_data): Delete skip_trampoline initializer.
3817 (objc_language::skip_trampoline): New member function with
3818 implementation from objc_skip_trampoline.
3819 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3820 initializer.
3821 * p-lang.c (pascal_language_data): Likewise.
3822 * rust-lang.c (rust_language_data): Likewise.
3823
0a50df5d
AB
38242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3825
3826 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3827 (ada_language::demangle): New member function.
3828 * c-lang.c (c_language_data): Delete la_demangle initializer.
3829 (cplus_language_data): Delete la_demangle initializer.
3830 (cplus_language::demangle): New member function.
3831 (asm_language_data): Delete la_demangle initializer.
3832 (minimal_language_data): Delete la_demangle initializer.
3833 * d-lang.c (d_language_data): Delete la_demangle initializer.
3834 (d_language::demangle): New member function.
3835 * f-lang.c (f_language_data): Delete la_demangle initializer.
3836 (f_language::demangle): New member function.
3837 * go-lang.c (go_language_data): Delete la_demangle initializer.
3838 (go_language::demangle): New member function.
3839 * language.c (language_demangle): Update.
3840 (unk_lang_demangle): Delete.
3841 (unknown_language_data): Delete la_demangle initializer.
3842 (unknown_language::demangle): New member function.
3843 (auto_language_data): Delete la_demangle initializer.
3844 (auto_language::demangle): New member function.
3845 * language.h (language_data): Delete la_demangle field.
3846 (language_defn::demangle): New function.
3847 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3848 * objc-lang.c (objc_language_data): Delete la_demangle
3849 initializer.
3850 (objc_language::demangle): New member function.
3851 * opencl-lang.c (opencl_language_data): Delete la_demangle
3852 initializer.
3853 * p-lang.c (pascal_language_data): Likewise.
3854 * rust-lang.c (rust_language_data): Likewise.
3855 (rust_language::demangle): New member function.
3856
fbfb0a46
AB
38572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3858
3859 * ada-lang.c (ada_language_data): Delete la_print_type
3860 initializer.
3861 (ada_language::print_type): New member function.
3862 * c-lang.c (c_language_data): Delete la_print_type initializer.
3863 (c_language::print_type): New member function.
3864 (cplus_language_data): Delete la_print_type initializer.
3865 (cplus_language::print_type): New member function.
3866 (asm_language_data): Delete la_print_type initializer.
3867 (asm_language::print_type): New member function.
3868 (minimal_language_data): Delete la_print_type initializer.
3869 (minimal_language::print_type): New member function.
3870 * d-lang.c (d_language_data): Delete la_print_type initializer.
3871 (d_language::print_type): New member function.
3872 * f-lang.c (f_language_data): Delete la_print_type initializer.
3873 (f_language::print_type): New member function.
3874 * go-lang.c (go_language_data): Delete la_print_type initializer.
3875 (go_language::print_type): New member function.
3876 * language.c (unk_lang_print_type): Delete.
3877 (unknown_language_data): Delete la_print_type initializer.
3878 (unknown_language::print_type): New member function.
3879 (auto_language_data): Delete la_print_type initializer.
3880 (auto_language::print_type): New member function.
3881 * language.h (language_data): Delete la_print_type field.
3882 (language_defn::print_type): New function.
3883 (LA_PRINT_TYPE): Update.
3884 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3885 (m2_language::print_type): New member function.
3886 * objc-lang.c (objc_language_data): Delete la_print_type
3887 initializer.
3888 (objc_language::print_type): New member function.
3889 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3890 to opencl_language::print_type.
3891 (opencl_language_data): Delete la_print_type initializer.
3892 (opencl_language::print_type): New member function, implementation
3893 from opencl_print_type.
3894 * p-lang.c (pascal_language_data): Delete la_print_type
3895 initializer.
3896 (pascal_language::print_type): New member function.
3897 * rust-lang.c (rust_print_type): Delete, implementation moved to
3898 rust_language::print_type.
3899 (rust_language_data): Delete la_print_type initializer.
3900 (rust_language::print_type): New member function, implementation
3901 from rust_print_type.
3902
6f827019
AB
39032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3904
3905 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3906 implementation moves to...
3907 (ada_language::sniff_from_mangled_name): ...here. Update return
3908 type.
3909 (ada_language_data): Delete la_sniff_from_mangled_name
3910 initializer.
3911 * c-lang.c (c_language_data): Likewise.
3912 (cplus_language_data): Likewise.
3913 (cplus_language::sniff_from_mangled_name): New member function,
3914 implementation taken from gdb_sniff_from_mangled_name.
3915 (asm_language_data): Delete la_sniff_from_mangled_name
3916 initializer.
3917 (minimal_language_data): Likewise.
3918 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3919 implementation moves to cplus_language::sniff_from_mangled_name.
3920 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3921 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3922 moves to...
3923 (d_language::sniff_from_mangled_name): ...here.
3924 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3925 * f-lang.c (f_language_data): Likewise.
3926 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3927 moves to...
3928 (go_language::sniff_from_mangled_name): ...here.
3929 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3930 * language.c (language_sniff_from_mangled_name): Delete.
3931 (unknown_language_data): Delete la_sniff_from_mangled_name
3932 initializer.
3933 (auto_language_data): Likewise.
3934 * language.h (language_data): Delete la_sniff_from_mangled_name
3935 field.
3936 (language_defn::sniff_from_mangled_name): New function.
3937 (language_sniff_from_mangled_name): Delete declaration.
3938 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3939 field.
3940 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3941 implementation moves to...
3942 (objc_language::sniff_from_mangled_name): ...here.
3943 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3944 * opencl-lang.c (opencl_language_data): Likewise.
3945 * p-lang.c (pascal_language_data): Likewise.
3946 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3947 implementation moves to...
3948 (rust_language::sniff_from_mangled_name): ...here.
3949 (rust_language_data): Delete la_sniff_from_mangled_name
3950 initializer.
3951 * symtab.c (symbol_find_demangled_name): Call
3952 sniff_from_mangled_name member function.
3953
fb8006fd
AB
39542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3955
3956 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3957 initializer.
3958 * c-lang.c (c_language_data): Likewise.
3959 (cplus_language_data): Likewise.
3960 (cplus_language::search_name_hash): New member function.
3961 (asm_language_data): Delete la_search_name_hash initializer.
3962 (minimal_language_data): Likewise.
3963 * d-lang.c (d_language_data): Likewise.
3964 * dictionary.c (default_search_name_hash): Rename to...
3965 (language_defn::search_name_hash): ...this.
3966 * f-lang.c (f_language_data): Likewise.
3967 (f_language::search_name_hash): New member function.
3968 * go-lang.c (go_language_data): Delete la_search_name_hash
3969 initializer.
3970 * language.c (unknown_language_data): Likewise.
3971 (auto_language_data): Likewise.
3972 * language.h (struct language_data): Delete la_search_name_hash
3973 field.
3974 (language_defn::search_name_hash): Declare new member function.
3975 (default_search_name_hash): Delete declaration.
3976 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3977 initializer.
3978 * objc-lang.c (objc_language_data): Likewise.
3979 * opencl-lang.c (opencl_language_data): Likewise.
3980 * p-lang.c (pascal_language_data): Likewise.
3981 * rust-lang.c (rust_language_data): Likewise.
3982 * symtab.c (search_name_hash): Update call.
3983
8e25bafe
AB
39842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3985
3986 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3987 initializer.
3988 * c-lang.c (class compile_instance): Declare.
3989 (c_language_data): Delete la_get_compile_instance initializer.
3990 (c_language::get_compile_instance): New member function.
3991 (cplus_language_data): Delete la_get_compile_instance initializer.
3992 (cplus_language::get_compile_instance): New member function.
3993 (asm_language_data): Delete la_get_compile_instance initializer.
3994 (minimal_language_data): Likewise.
3995 * c-lang.h (c_get_compile_context): Update comment.
3996 (cplus_get_compile_context): Update comment.
3997 * compile/compile.c (compile_to_object): Update calls, don't rely
3998 on function pointer being NULL.
3999 * d-lang.c (d_language_data): Delete la_get_compile_instance
4000 initializer.
4001 * f-lang.c (f_language_data): Likewise.
4002 * go-lang.c (go_language_data): Likewise.
4003 * language.c (unknown_language_data): Likewise.
4004 (auto_language_data): Likewise.
4005 * language.h (language_data): Delete la_get_compile_instance field.
4006 (language_defn::get_compile_instance): New member function.
4007 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
4008 initializer.
4009 * objc-lang.c (objc_language_data): Likewise.
4010 * opencl-lang.c (opencl_language_data): Likewise.
4011 * p-lang.c (pascal_language_data): Likewise.
4012 * rust-lang.c (rust_language_data): Likewise.
4013
4009ee92
AB
40142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4015
4016 * ada-lang.c (ada_add_all_symbols): Update comment.
4017 (ada_iterate_over_symbols): Delete, move implementation to...
4018 (ada_language::iterate_over_symbols): ...here, a new member
4019 function, rewrite to use range based for loop.
4020 (ada_language_data): Delete la_iterate_over_symbols initializer.
4021 * c-lang.c (c_language_data): Likewise.
4022 (cplus_language_data): Likewise.
4023 (asm_language_data): Likewise.
4024 (minimal_language_data): Likewise.
4025 * d-lang.c (d_language_data): Likewise.
4026 * f-lang.c (f_language_data): Likewise.
4027 * go-lang.c (go_language_data): Likewise.
4028 * language.c (unknown_language_data): Likewise.
4029 (auto_language_data): Likewise.
4030 * language.h (language_data): Delete la_iterate_over_symbols field.
4031 (language_defn::iterate_over_symbols): New member function.
4032 (LA_ITERATE_OVER_SYMBOLS): Update.
4033 * linespec.c (iterate_over_all_matching_symtabs): Update.
4034 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
4035 initializer.
4036 * objc-lang.c (objc_language_data): Likewise.
4037 * opencl-lang.c (opencl_language_data): Likewise.
4038 * p-lang.c (pascal_language_data): Likewise.
4039 * rust-lang.c (rust_language_data): Likewise.
4040
54f4ca46
AB
40412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4042
4043 * ada-lang.c (ada_language_data): Delete
4044 la_lookup_transparent_type initializer.
4045 * c-lang.c (c_language_data): Likewise.
4046 (cplus_language_data): Likewise.
4047 (cplus_language::lookup_transparent_type): New member function.
4048 (asm_language_data): Delete la_lookup_transparent_type
4049 initializer.
4050 (minimal_language_data): Likewise.
4051 * d-lang.c (d_language_data): Likewise.
4052 * f-lang.c (f_language_data): Likewise.
4053 * go-lang.c (go_language_data): Likewise.
4054 * language.c (unknown_language_data): Likewise.
4055 (auto_language_data): Likewise.
4056 * language.h (struct language_data): Delete
4057 la_lookup_transparent_type field.
4058 (language_defn::lookup_transparent_type): New member function.
4059 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4060 initializer.
4061 * objc-lang.c (objc_language_data): Likewise.
4062 * opencl-lang.c (opencl_language_data): Likewise.
4063 * p-lang.c (pascal_language_data): Likewise.
4064 * rust-lang.c (rust_language_data): Likewise.
4065 * symtab.c (symbol_matches_domain): Update call.
4066
1fb314aa
AB
40672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4068
4069 * ada-lang.c (ada_language_arch_info): Delete function, move
4070 implementation to...
4071 (ada_language::language_arch_info): ...here, a new member
4072 function.
4073 (ada_language_data): Delete la_language_arch_info.
4074 * c-lang.c (c_language_data): Likewise.
4075 (c_language::language_arch_info): New member function.
4076 (cplus_language_arch_info): Delete function, move
4077 implementation to...
4078 (cplus_language::language_arch_info): ...here, a new member
4079 function.
4080 (cplus_language_data): Delete la_language_arch_info.
4081 (asm_language_data): Likewise.
4082 (asm_language::language_arch_info): New member function.
4083 (minimal_language_data): Delete la_language_arch_info.
4084 (minimal_language::language_arch_info): New member function.
4085 * d-lang.c (d_language_arch_info): Delete function, move
4086 implementation to...
4087 (d_language::language_arch_info): ...here, a new member
4088 function.
4089 (d_language_data): Delete la_language_arch_info.
4090 * f-lang.c (f_language_arch_info): Delete function, move
4091 implementation to...
4092 (f_language::language_arch_info): ...here, a new member
4093 function.
4094 (f_language_data): Delete la_language_arch_info.
4095 * go-lang.c (go_language_arch_info): Delete function, move
4096 implementation to...
4097 (go_language::language_arch_info): ...here, a new member
4098 function.
4099 (go_language_data): Delete la_language_arch_info.
4100 * language.c (unknown_language_data): Likewise.
4101 (unknown_language::language_arch_info): New member function.
4102 (auto_language_data): Delete la_language_arch_info.
4103 (auto_language::language_arch_info): New member function.
4104 (language_gdbarch_post_init): Update call to
4105 la_language_arch_info.
4106 * language.h (language_data): Delete la_language_arch_info
4107 function pointer.
4108 (language_defn::language_arch_info): New function.
4109 * m2-lang.c (m2_language_arch_info): Delete function, move
4110 implementation to...
4111 (m2_language::language_arch_info): ...here, a new member
4112 function.
4113 (m2_language_data): Delete la_language_arch_info.
4114 * objc-lang.c (objc_language_arch_info): Delete function, move
4115 implementation to...
4116 (objc_language::language_arch_info): ...here, a new member
4117 function.
4118 (objc_language_data): Delete la_language_arch_info.
4119 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4120 implementation to...
4121 (opencl_language::language_arch_info): ...here, a new member
4122 function.
4123 (opencl_language_data): Delete la_language_arch_info.
4124 * p-lang.c (pascal_language_arch_info): Delete function, move
4125 implementation to...
4126 (pascal_language::language_arch_info): ...here, a new member
4127 function.
4128 (pascal_language_data): Delete la_language_arch_info.
4129 * rust-lang.c (rust_language_arch_info): Delete function, move
4130 implementation to...
4131 (rust_language::language_arch_info): ...here, a new member
4132 function.
4133 (rust_language_data): Delete la_language_arch_info.
4134
48448202
AB
41352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4136
4137 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4138 initializer.
4139 * c-lang.c (c_language_data): Likewise.
4140 (cplus_language_data): Likewise.
4141 (cplus_language::pass_by_reference_info): New method.
4142 (asm_language_data): Delete la_pass_by_reference initializer.
4143 (minimal_language_data): Likewise.
4144 * cp-abi.c (cp_pass_by_reference): Remove use of
4145 default_pass_by_reference.
4146 * d-lang.c (d_language_data): Likewise.
4147 * f-lang.c (f_language_data): Likewise.
4148 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4149 default_pass_by_reference.
4150 * go-lang.c (go_language_data): Likewise.
4151 * language.c (language_pass_by_reference): Update.
4152 (default_pass_by_reference): Delete.
4153 (unknown_language_data): Delete la_pass_by_reference
4154 initializer.
4155 (auto_language_data): Likewise.
4156 * language.h (struct language_data): Delete la_pass_by_reference
4157 field.
4158 (language_defn::pass_by_reference_info): New member function.
4159 (default_pass_by_reference): Delete declaration.
4160 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4161 initializer.
4162 * objc-lang.c (objc_language_data): Likewise.
4163 * opencl-lang.c (opencl_language_data): Likewise.
4164 * p-lang.c (pascal_language_data): Likewise.
4165 * rust-lang.c (rust_language_data): Likewise.
4166
15e5fd35
AB
41672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4168
4169 * ada-lang.c (ada_read_var_value): Delete function, move
4170 implementation to...
4171 (ada_language::read_var_value): ...here.
4172 (ada_language_data): Delete la_read_var_value initializer.
4173 * c-lang.c (c_language_data): Likewise.
4174 (cplus_language_data): Likewise.
4175 (minimal_language_data): Likewise.
4176 * d-lang.c (d_language_data): Likewise.
4177 * f-lang.c (f_language_data): Likewise.
4178 * findvar.c (default_read_var_value): Rename to...
4179 (language_defn::read_var_value): ...this.
4180 * findvar.c (read_var_value): Update header comment, and change to
4181 call member function instead of function pointer.
4182 * go-lang.c (go_language_data): Likewise.
4183 * language.c (unknown_language_data): Delete la_read_var_value
4184 initializer.
4185 (auto_language_data): Likewise.
4186 * language.h (struct language_data): Delete la_read_var_value
4187 field.
4188 (language_defn::read_var_value): New member function.
4189 (default_read_var_value): Delete declaration.
4190 * m2-lang.c (m2_language_data): Delete la_read_var_value
4191 initializer.
4192 * objc-lang.c (objc_language_data): Likewise.
4193 * opencl-lang.c (opencl_language_data): Likewise.
4194 * p-lang.c (pascal_language_data): Likewise.
4195 * rust-lang.c (rust_language_data): Likewise.
4196 * value.h (default_read_var_value): Delete declaration.
4197
5bd40f2a
AB
41982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4199
4200 * ada-lang.c (ada_print_array_index): Delete function, move
4201 implementation to...
4202 (ada_language::print_array_index): ...here.
4203 (ada_language_data): Delete la_print_array_index initializer.
4204 * c-lang.c (c_language_data): Likewise.
4205 (cplus_language_data): Likewise.
4206 (minimal_language_data): Likewise.
4207 * d-lang.c (d_language_data): Likewise.
4208 * f-lang.c (f_language_data): Likewise.
4209 * go-lang.c (go_language_data): Likewise.
4210 * language.c (default_print_array_index): Delete function, move
4211 implementation to...
4212 (language_defn::print_array_index): ...here.
4213 (unknown_language_data): Delete la_print_array_index initializer.
4214 (auto_language_data): Likewise.
4215 * language.h (struct language_data): Delete la_print_array_index
4216 field.
4217 (language_defn::print_array_index): New member function.
4218 (LA_PRINT_ARRAY_INDEX): Update.
4219 (default_print_array_index): Delete declaration.
4220 * m2-lang.c (m2_language_data): Delete la_print_array_index
4221 initializer.
4222 * objc-lang.c (objc_language_data): Likewise.
4223 * opencl-lang.c (opencl_language_data): Likewise.
4224 * p-lang.c (pascal_language_data): Likewise.
4225 * rust-lang.c (rust_language_data): Likewise.
4226
0874fd07
AB
42272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4228
4229 * gdb/ada-lang.c (ada_language_defn): Convert to...
4230 (ada_language_data): ...this.
4231 (class ada_language): New class.
4232 (ada_language_defn): New static global.
4233 * gdb/c-lang.c (c_language_defn): Convert to...
4234 (c_language_data): ...this.
4235 (class c_language): New class.
4236 (c_language_defn): New static global.
4237 (cplus_language_defn): Convert to...
4238 (cplus_language_data): ...this.
4239 (class cplus_language): New class.
4240 (cplus_language_defn): New static global.
4241 (asm_language_defn): Convert to...
4242 (asm_language_data): ...this.
4243 (class asm_language): New class.
4244 (asm_language_defn): New static global.
4245 (minimal_language_defn): Convert to...
4246 (minimal_language_data): ...this.
4247 (class minimal_language): New class.
4248 (minimal_language_defn): New static global.
4249 * gdb/d-lang.c (d_language_defn): Convert to...
4250 (d_language_data): ...this.
4251 (class d_language): New class.
4252 (d_language_defn): New static global.
4253 * gdb/f-lang.c (f_language_defn): Convert to...
4254 (f_language_data): ...this.
4255 (class f_language): New class.
4256 (f_language_defn): New static global.
4257 * gdb/go-lang.c (go_language_defn): Convert to...
4258 (go_language_data): ...this.
4259 (class go_language): New class.
4260 (go_language_defn): New static global.
4261 * gdb/language.c (unknown_language_defn): Remove declaration.
4262 (current_language): Initialize to nullptr, real initialization is
4263 moved to _initialize_language.
4264 (languages): Delete global.
4265 (language_defn::languages): Define.
4266 (set_language_command): Use language_defn::languages.
4267 (set_language): Likewise.
4268 (range_error): Likewise.
4269 (language_enum): Likewise.
4270 (language_def): Likewise.
4271 (add_set_language_command): Use language_def::languages for the
4272 language list, and language_def to lookup language pointers.
4273 (skip_language_trampoline): Use language_defn::languages.
4274 (unknown_language_defn): Convert to...
4275 (unknown_language_data): ...this.
4276 (class unknown_language): New class.
4277 (unknown_language_defn): New static global.
4278 (auto_language_defn): Convert to...
4279 (auto_language_data): ...this.
4280 (class auto_language): New class.
4281 (auto_language_defn): New static global.
4282 (language_gdbarch_post_init): Use language_defn::languages.
4283 (_initialize_language): Initialize current_language.
4284 * gdb/language.h (struct language_defn): Rename to...
4285 (struct language_data): ...this.
4286 (struct language_defn): New.
4287 (auto_language_defn): Delete.
4288 (unknown_language_defn): Delete.
4289 (minimal_language_defn): Delete.
4290 (ada_language_defn): Delete.
4291 (asm_language_defn): Delete.
4292 (c_language_defn): Delete.
4293 (cplus_language_defn): Delete.
4294 (d_language_defn): Delete.
4295 (f_language_defn): Delete.
4296 (go_language_defn): Delete.
4297 (m2_language_defn): Delete.
4298 (objc_language_defn): Delete.
4299 (opencl_language_defn): Delete.
4300 (pascal_language_defn): Delete.
4301 (rust_language_defn): Delete.
4302 * gdb/m2-lang.c (m2_language_defn): Convert to...
4303 (m2_language_data): ...this.
4304 (class m2_language): New class.
4305 (m2_language_defn): New static global.
4306 * gdb/objc-lang.c (objc_language_defn): Convert to...
4307 (objc_language_data): ...this.
4308 (class objc_language): New class.
4309 (objc_language_defn): New static global.
4310 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4311 (opencl_language_data): ...this.
4312 (class opencl_language): New class.
4313 (opencl_language_defn): New static global.
4314 * gdb/p-lang.c (pascal_language_defn): Convert to...
4315 (pascal_language_data): ...this.
4316 (class pascal_language): New class.
4317 (pascal_language_defn): New static global.
4318 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4319 language pointer, update comment format.
4320 * gdb/rust-lang.c (rust_language_defn): Convert to...
4321 (rust_language_data): ...this.
4322 (class rust_language): New class.
4323 (rust_language_defn): New static global.
4324
1313c56e
AB
43252020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4326
4327 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4328 member variable.
4329 <m_stmt_at_address>: New member variable.
4330 (lnp_state_machine::record_line): Don't record some lines, update
4331 tracking of is_stmt at the same address.
4332 (lnp_state_machine::lnp_state_machine): Initialise new member
4333 variables.
4334
b7ed9f3d
ST
43352020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4336
4337 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4338 "-include gnu-nat-mig.h".
4339 * gnu-nat-mig.h: New file.
4340 * gnu-nat.c: Include "gnu-nat-mig.h".
4341 (exc_server, msg_reply_server, notify_server,
4342 process_reply_server): Remove declarations.
4343
14a8ad62
ST
43442020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4345
4346 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4347 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4348 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4349 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4350 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4351 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4352 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4353 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4354 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4355 to gnu_nat_target class.
4356 * gnu-nat.c: Likewise.
4357 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4358 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4359 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4360 object.
4361 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4362 instead of `gnu_target'.
4363
0af5e106
ST
43642020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4365
4366 * i386-gnu-tdep.c: Include "gdbcore.h"
4367 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4368 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4369 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4370 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4371 i386_gnu_sigcontext_addr): New functions
4372 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4373 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4374 tdep.
4375
078f2fc9
ST
43762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4377
4378 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4379 before fork_inferior call. Avoid calling it if target_is_pushed returns
4380 true.
4381
53dff92c
ST
43822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4383
4384 * gnu-nat.h (gnu_target): New variable declaration.
4385 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4386 gnu_target.
4387 * gnu-nat.c (gnu_target): New variable.
4388 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4389 add_thread_silent, and add_thread calls.
4390 (gnu_nat_target::create_inferior): Pass gnu_target to
4391 add_thread_silent, thread_change_ptid call.
4392 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4393 call.
4394
5a8b8627
ST
43952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4396
4397 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4398 (gnu_nat_target::find_memory_regions): Remove unused
4399 `old_address' variable.
4400
366f550a
ST
44012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4402
4403 * gnu-nat.c: Include "gdbarch.h".
4404
f14871bf
ST
44052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4406
4407 * reply_mig_hack.awk (Error return): Cast function through
4408 void *, to bypass compiler function call check.
4409
c6887cfb
ST
44102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4411
4412 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4413 $(srcdir)/reply_mig_hack.awk.
4414
6930bffe
ST
44152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4416
4417 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4418
112c22ed
JG
44192020-05-30 Jonny Grant <jg@jguk.org>
4420
4421 * configure.ac (ACX_BUGURL): change bug URL to https.
4422
f68f85b5
PA
44232020-05-30 Pedro Alves <palves@redhat.com>
4424
4425 * cp-support.c (replace_typedefs_template): New.
4426 (replace_typedefs_qualified_name): Handle
4427 DEMANGLE_COMPONENT_TEMPLATE.
4428
976ca316
SM
44292020-05-29 Simon Marchi <simon.marchi@efficios.com>
4430
4431 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4432 dwarf2/index-cache.h, dwarf2/index-write.c,
4433 dwarf2/index-write.h, dwarf2/line-header.c,
4434 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4435 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4436 variables and fields from `dwarf2_per_objfile` to just
4437 `per_objfile` throughout.
4438
989ade05
SM
44392020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4440
4441 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4442 <push_dwarf_reg_entry_value>: Add comment.
4443
c47bae85
KB
44442020-05-28 Kevin Buettner <kevinb@redhat.com>
4445 Keith Seitz <keiths@redhat.com>
4446
4447 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4448 instead of PyEval_ReleaseLock.
4449 (class gdbpy_gil): Move to earlier in file.
4450 (finalize_python): Set gdb_python_initialized.
4451 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4452 when not initialized.
4453
44486dcf
SM
44542020-05-28 Simon Marchi <simon.marchi@efficios.com>
4455
4456 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4457 <push_dwarf_reg_entry_value>: Remove assert. Override
4458 per_objfile with caller_per_objfile.
4459
f030440d
TV
44602020-05-28 Tom de Vries <tdevries@suse.de>
4461
4462 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4463 PR gold/15646 workaround to symbol kind "type".
4464
f0fbb768
TT
44652020-05-27 Tom Tromey <tromey@adacore.com>
4466
4467 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4468
af0b2a3e
TT
44692020-05-27 Tom Tromey <tromey@adacore.com>
4470
4471 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4472 Use htab_find_with_hash.
4473 <add_abbrev>: Remove "abbrev_number" parameter.
4474 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4475 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4476 (hash_abbrev): Add comment.
4477 (abbrev_table::lookup_abbrev): Move to header file.
4478 (abbrev_table::read): Update.
4479
7d00ffec
TT
44802020-05-27 Tom Tromey <tromey@adacore.com>
4481
4482 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4483 method.
4484 <canonical_name>: New member.
4485 <raw_name>: Rename from "name".
4486 (partial_die_info): Initialize canonical_name.
4487 (scan_partial_symbols): Check raw_name.
4488 (partial_die_parent_scope, partial_die_full_name)
4489 (add_partial_symbol, add_partial_subprogram)
4490 (add_partial_enumeration, load_partial_dies): Use "name" method.
4491 (partial_die_info::name): New method.
4492 (partial_die_info::read, guess_partial_die_structure_name)
4493 (partial_die_info::fixup): Update.
4494
697bba18
TT
44952020-05-27 Tom Tromey <tromey@adacore.com>
4496
4497 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4498 <get_ref_die_offset>: Inline.
4499 <get_ref_die_offset_complaint>: New method.
4500 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4501 (attribute::get_ref_die_offset_complaint): Rename from
4502 get_ref_die_offset. Just issue complaint.
4503
c17ace43
HD
45042020-05-27 Hannes Domani <ssbssa@yahoo.de>
4505
4506 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4507
96445f0b
HD
45082020-05-27 Hannes Domani <ssbssa@yahoo.de>
4509
4510 * exec.c (exec_file_attach): Use errno value of first openp failure.
4511
ac637ec3
HD
45122020-05-27 Hannes Domani <ssbssa@yahoo.de>
4513
4514 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4515 Don't close thread handle.
4516
17ee85fc
TT
45172020-05-27 Tom Tromey <tom@tromey.com>
4518 Simon Marchi <simon.marchi@efficios.com>
4519
4520 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4521 shared_ptr.
4522 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4523 member.
4524 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4525 dwarf2_per_bfd_objfile_data_key>: New globals.
4526 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4527 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4528 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4529 shared.
4530 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4531 short-circuit when sharing.
4532 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4533 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4534
39b16f87
SM
45352020-05-27 Simon Marchi <simon.marchi@efficios.com>
4536
4537 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4538 to...
4539 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4540 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4541
fcf23d5b
SM
45422020-05-27 Simon Marchi <simon.marchi@efficios.com>
4543
4544 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4545 build_name_components, find_name_components_bounds>:
4546 Add per_objfile parameter.
4547 (struct mapped_index) <symbol_name_at>: Likewise.
4548 (struct mapped_debug_names): Remove constructor.
4549 <dwarf2_per_objfile>: Remove field.
4550 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4551 (mapped_index_base::find_name_components_bounds,
4552 mapped_index_base::build_name_components,
4553 dw2_expand_symtabs_matching_symbol): Likewise.
4554 (class mock_mapped_index) <symbol_name_at>: Likewise.
4555 (check_match): Likewise.
4556 (check_find_bounds_finds): Likewise.
4557 (test_mapped_index_find_name_component_bounds): Update.
4558 (CHECK_MATCH): Update.
4559 (dw2_expand_symtabs_matching): Update.
4560 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4561 per_objfile parameter.
4562 <find_vec_in_debug_names>: Likewise.
4563 <m_per_objfile>: New field.
4564 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4565 parameter.
4566 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4567 (dw2_debug_names_iterator::next): Update.
4568 (dw2_debug_names_lookup_symbol): Update.
4569 (dw2_debug_names_expand_symtabs_for_function): Update.
4570 (dw2_debug_names_map_matching_symbols): Update.
4571 (dw2_debug_names_expand_symtabs_matching): Update.
4572 (dwarf2_read_debug_names): Update.
4573
7188ed02
SM
45742020-05-27 Simon Marchi <simon.marchi@efficios.com>
4575
4576 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4577 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4578 move to dwarf2_per_objfile.
4579 <read_in_chain>: Remove.
4580 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4581 remove_all_cus, age_comp_units>: New methods.
4582 <m_dwarf2_cus>: New member.
4583 (struct dwarf2_per_cu_data) <cu>: Remove.
4584 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4585 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4586 moved to methods of dwarf2_per_objfile.
4587 (dwarf2_clear_marks): Remove.
4588 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4589 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4590 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4591 (dwarf2_per_objfile::remove_all_cus): New.
4592 (class free_cached_comp_units) <~free_cached_comp_units>:
4593 Update.
4594 (load_cu): Update.
4595 (dw2_do_instantiate_symtab): Adjust.
4596 (fill_in_sig_entry_from_dwo_entry): Adjust.
4597 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4598 (cutu_reader::cutu_reader): Likewise.
4599 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4600 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4601 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4602 and dwarf2_per_objfile::age_comp_units.
4603 (load_partial_comp_unit): Update.
4604 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4605 (process_queue): Likewise.
4606 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4607 backlink.
4608 (dwarf2_read_addr_index): Likewise.
4609 (follow_die_offset): Likewise.
4610 (dwarf2_fetch_die_loc_sect_off): Likewise.
4611 (dwarf2_fetch_constant_bytes): Likewise.
4612 (dwarf2_fetch_die_type_sect_off): Likewise.
4613 (follow_die_sig_1): Likewise.
4614 (load_full_type_unit): Likewise.
4615 (read_signatured_type): Likewise.
4616 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4617 (dwarf2_cu::~dwarf2_cu): Remove.
4618 (dwarf2_per_objfile::get_cu): New.
4619 (dwarf2_per_objfile::set_cu): New.
4620 (age_cached_comp_units): Rename to...
4621 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4622 to std::unordered_map.
4623 (free_one_cached_comp_unit): Rename to...
4624 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4625 to std::unordered_map.
4626 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4627 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4628 a dwarf2_per_objfile in data.
4629 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4630 (dwarf2_clear_marks): Remove.
4631
2e671100
SM
46322020-05-27 Simon Marchi <simon.marchi@efficios.com>
4633
4634 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4635 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4636 (init_tu_and_read_dwo_dies): Likewise.
4637 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4638 (cutu_reader::cutu_reader): Likewise.
4639 (load_partial_comp_unit): Likewise.
4640 (process_psymtab_comp_unit): Update.
4641 (build_type_psymtabs_1): Update.
4642 (process_skeletonless_type_unit): Update.
4643 (load_full_comp_unit): Update.
4644 (find_partial_die): Update.
4645 (dwarf2_read_addr_index): Update.
4646 (read_signatured_type): Update.
4647
2e6a9f79
SM
46482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4649
4650 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4651 m_header_read_in>: New fields.
4652 <get_header>: New method.
4653 * dwarf2/read.c (per_cu_header_read_in): Remove.
4654 (dwarf2_per_cu_data::get_header): New.
4655 (dwarf2_per_cu_data::addr_size): Update.
4656 (dwarf2_per_cu_data::offset_size): Update.
4657 (dwarf2_per_cu_data::ref_addr_size): Update.
4658
1b555f17
SM
46592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4660
4661 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4662 (dw2_do_instantiate_symtab): Update.
4663 (queue_and_load_all_dwo_tus): Change parameter from
4664 dwarf2_per_cu_data to dwarf2_cu.
4665 (dwarf2_fetch_die_loc_sect_off): Update.
4666 (dwarf2_fetch_constant_bytes): Update.
4667 (dwarf2_fetch_die_type_sect_off): Update.
4668
8fc0b21d
SM
46692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4670
4671 * dwarf2/read.c (process_full_comp_unit,
4672 process_full_type_unit): Remove per_cu, per_objfile paramters.
4673 Add dwarf2_cu parameter.
4674 (process_queue): Update.
4675
168c9250
SM
46762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4677
4678 * dwarf2/read.c (create_cu_from_index_list): Replace
4679 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4680 (create_cus_from_index_list): Likewise.
4681 (create_cus_from_index): Likewise.
4682 (create_signatured_type_table_from_index): Likewise.
4683 (create_cus_from_debug_names_list): Likewise.
4684 (create_cus_from_debug_names): Likewise.
4685 (dwarf2_read_gdb_index): Update.
4686 (dwarf2_read_debug_names): Update.
4687
e286671b
TT
46882020-05-27 Tom Tromey <tom@tromey.com>
4689 Simon Marchi <simon.marchi@efficios.com>
4690
4691 * dwarf2/read.h (struct dwarf2_per_objfile)
4692 <get_type_for_signatured_type, set_type_for_signatured_type>:
4693 New methods.
4694 <m_type_map>: New member.
4695 (struct signatured_type) <type>: Remove.
4696 * dwarf2/read.c
4697 (dwarf2_per_objfile::get_type_for_signatured_type,
4698 dwarf2_per_objfile::set_type_for_signatured_type): New.
4699 (get_signatured_type): Use new methods.
4700
8adb8487
TT
47012020-05-27 Tom Tromey <tom@tromey.com>
4702 Simon Marchi <simon.marchi@efficios.com>
4703
4704 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4705 (struct dwarf2_per_objfile) <type_units>: New member.
4706 <get_type_unit_group_unshareable>: New method.
4707 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4708 num_symtabs, symtabs>: Remove; move to
4709 type_unit_group_unshareable.
4710 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4711 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4712 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4713
127bbf4b
SM
47142020-05-27 Simon Marchi <simon.marchi@efficios.com>
4715
4716 * dwarf2/read.h (struct dwarf2_per_cu_data):
4717 <dwarf2_per_objfile>: Remove.
4718 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4719 dwarf2_per_objfile.
4720 (create_signatured_type_table_from_index): Likewise.
4721 (create_signatured_type_table_from_debug_names): Likewise.
4722 (create_debug_type_hash_table): Likewise.
4723 (fill_in_sig_entry_from_dwo_entry): Likewise.
4724 (create_type_unit_group): Likewise.
4725 (read_comp_units_from_section): Likewise.
4726 (create_cus_hash_table): Likewise.
4727
f6e649dd
SM
47282020-05-27 Simon Marchi <simon.marchi@efficios.com>
4729
4730 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4731 dwarf2_per_cu_data::dwarf2_per_objfile.
4732 (compute_compunit_symtab_includes): Likewise.
4733 (dwarf2_cu::start_symtab): Likewise.
4734
aa66c379
SM
47352020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4736
4737 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4738 parameter.
4739 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4740 (read_namespace_alias): Update.
4741 (lookup_die_type): Update.
4742 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4743 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4744 Update.
4745 (disassemble_dwarf_expression): Update.
4746
120ce1b5
SM
47472020-05-27 Simon Marchi <simon.marchi@efficios.com>
4748
4749 * dwarf2/read.h (struct dwarf2_queue_item): Add
4750 dwarf2_per_objfile parameter, assign new parameter.
4751 <per_objfile>: New field.
4752 * dwarf2/read.c (free_one_cached_comp_unit): Add
4753 dwarf2_per_objfile parameter.
4754 (queue_comp_unit): Likewise.
4755 (dw2_do_instantiate_symtab): Update.
4756 (process_psymtab_comp_unit): Update.
4757 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4758 (process_imported_unit_die): Update.
4759 (queue_and_load_dwo_tu): Update.
4760 (follow_die_offset): Update.
4761 (follow_die_sig_1): Update.
4762
9f47c707
SM
47632020-05-27 Simon Marchi <simon.marchi@efficios.com>
4764
4765 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4766 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4767 (read_call_site_scope): Assign per_objfile.
4768 (dwarf2_per_cu_data::objfile): Remove.
4769 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4770 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4771 dwarf2_per_objfile parameter.
4772 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4773 dwarf2_per_objfile parameter.
4774 (dwarf_expr_reg_to_entry_parameter): Add output
4775 dwarf2_per_objfile parameter.
4776 (locexpr_get_frame_base): Update.
4777 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4778 <push_dwarf_reg_entry_value>: Update.
4779 <call_site_to_target_addr>: Update.
4780 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4781 parameter.
4782 (value_of_dwarf_reg_entry): Update.
4783 (rw_pieced_value): Update.
4784 (indirect_synthetic_pointer): Update.
4785 (dwarf2_evaluate_property): Update.
4786 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4787 parameter.
4788 (locexpr_read_variable): Update.
4789 (locexpr_get_symbol_read_needs): Update.
4790 (loclist_read_variable): Update.
4791
14095eb3
SM
47922020-05-27 Simon Marchi <simon.marchi@efficios.com>
4793
4794 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4795 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4796 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4797 parameter.
4798 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4799 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4800 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4801 parameter.
4802 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4803 sect_variable_value): Add dwarf2_per_objfile parameter.
4804 (class dwarf_evaluate_loc_desc) <dwarf_call,
4805 dwarf_variable_value>: Update.
4806 (fetch_const_value_from_synthetic_pointer): Add
4807 dwarf2_per_objfile parameter.
4808 (fetch_const_value_from_synthetic_pointer): Update.
4809 (coerced_pieced_ref): Update.
4810 (class symbol_needs_eval_context) <dwarf_call,
4811 dwarf_variable_value>: Update.
4812 (dwarf2_compile_expr_to_ax): Update.
4813
3c3cd3d4
SM
48142020-05-27 Simon Marchi <simon.marchi@efficios.com>
4815
4816 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4817 parameter.
4818 (dwarf2_evaluate_loc_desc_full): Update.
4819
82ca3f51
SM
48202020-05-27 Simon Marchi <simon.marchi@efficios.com>
4821
4822 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4823 parameter.
4824 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4825 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4826 dwarf2_per_objfile parameter.
4827 (decode_debug_loc_dwo_addresses): Likewise.
4828 (dwarf2_find_location_expression): Update.
4829 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4830 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4831 parameter.
4832 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4833 parameter.
4834 (locexpr_describe_location_1): Likewise.
4835 (locexpr_describe_location): Update.
4836
4b167ea1
SM
48372020-05-27 Simon Marchi <simon.marchi@efficios.com>
4838
4839 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4840 Remove.
4841 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4842 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4843 (dwarf2_compile_property_to_c): Update.
4844 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4845 use text offset from objfile.
4846 (locexpr_tracepoint_var_ref): Update.
4847 (locexpr_generate_c_location): Update.
4848 (loclist_describe_location): Update.
4849 (loclist_tracepoint_var_ref): Update.
4850 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4851 dwarf2_per_objfile parameter.
4852 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4853 use text offset from objfile.
4854 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4855
89b07335
SM
48562020-05-27 Simon Marchi <simon.marchi@efficios.com>
4857
4858 * dwarf2/expr.h (struct dwarf_expr_context)
4859 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4860 <offset>: Remove.
4861 <per_objfile>: New member.
4862 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4863 dwarf2_per_objfile parameter. Don't set offset, set
4864 per_objfile.
4865 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4866 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4867 a dwarf2_per_objfile object instead of an offset.
4868 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4869 constructor.
4870 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4871 to dwarf2_expr_executor constructor. Don't set offset.
4872 (dwarf2_fetch_cfa_info): Update.
4873 (struct dwarf2_frame_cache) <text_offset>: Remove.
4874 <per_objfile>: New field.
4875 (dwarf2_frame_cache): Update.
4876 (dwarf2_frame_prev_register): Update.
4877 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4878 <dwarf_evaluate_loc_desc>: Add constructor.
4879 (dwarf2_evaluate_loc_desc_full): Update.
4880 (dwarf2_locexpr_baton_eval): Update.
4881 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4882 Add constructor.
4883 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4884
293e7e51
SM
48852020-05-27 Simon Marchi <simon.marchi@efficios.com>
4886
4887 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4888 addr_sized_int_type>: Move to dwarf2_cu.
4889 <int_type>: Move to dwarf2_per_objfile.
4890 (struct dwarf2_per_objfile) <int_type>: Move here.
4891 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4892 addr_sized_int_type>: Move here.
4893 (read_func_scope): Update.
4894 (read_array_type): Update.
4895 (read_tag_string_type): Update.
4896 (attr_to_dynamic_prop): Update.
4897 (dwarf2_per_cu_data::int_type): Rename to...
4898 (dwarf2_per_objfile::int_type): ... this.
4899 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4900 (dwarf2_cu::addr_sized_int_type): ... this.
4901 (read_subrange_type): Update.
4902 (dwarf2_per_cu_data::addr_type): Rename to...
4903 (dwarf2_cu::addr_type): ... this.
4904 (set_die_type): Update.
4905
64874a40
SM
49062020-05-27 Simon Marchi <simon.marchi@efficios.com>
4907
4908 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4909 data through per_cu->cu.
4910
4ab09049
SM
49112020-05-27 Simon Marchi <simon.marchi@efficios.com>
4912
4913 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4914 dwarf2_per_cu_data parameter fo dwarf2_cu.
4915 (lookup_dwo_type_unit): Likewise.
4916 (read_cutu_die_from_dwo): Likewise.
4917 (lookup_dwo_unit): Likewise.
4918 (open_and_init_dwo_file): Likewise.
4919 (lookup_dwo_cutu): Likewise.
4920 (lookup_dwo_comp_unit): Likewise.
4921 (lookup_dwo_type_unit): Likewise.
4922 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4923 (cutu_reader::cutu_reader): Update.
4924
47b14e86
SM
49252020-05-27 Simon Marchi <simon.marchi@efficios.com>
4926
4927 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4928 parameter.
4929 (process_full_type_unit): Likewise.
4930 (process_queue): Update.
4931
43182c09
SM
49322020-05-27 Simon Marchi <simon.marchi@efficios.com>
4933
4934 * dwarf2/read.c (recursively_compute_inclusions): Add
4935 dwarf2_per_objfile parameter.
4936 (compute_compunit_symtab_includes): Likewise.
4937 (process_cu_includes): Update.
4938
7aa104c4
SM
49392020-05-27 Simon Marchi <simon.marchi@efficios.com>
4940
4941 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4942 parameter.
4943 (create_type_unit_group): Update.
4944 (process_psymtab_comp_unit_reader): Update.
4945 (build_type_psymtabs_reader): Update.
4946
e3beb21d
SM
49472020-05-27 Simon Marchi <simon.marchi@efficios.com>
4948
4949 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4950 object through m_this_cu->cu.
4951
d460f660
SM
49522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4953
4954 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4955 the info parameter.
4956 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4957
ab432490
SM
49582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4959
4960 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4961 per_objfile parameter.
4962 (load_full_type_unit): Add per_objfile parameter.
4963 (read_signatured_type): Likewise.
4964 (load_full_comp_unit): Likewise.
4965 (load_cu): Likewise.
4966 (dw2_do_instantiate_symtab): Likewise.
4967 (dw2_get_file_names): Likewise.
4968 (dw2_map_symtabs_matching_filename): Update.
4969 (dw_expand_symtabs_matching_file_matcher): Update.
4970 (dw2_map_symbol_filenames): Update.
4971 (process_psymtab_comp_unit): Add per_objfile parameter.
4972 (build_type_psymtabs_1): Update.
4973 (process_skeletonless_type_unit): Update.
4974 (dwarf2_build_psymtabs_hard): Update.
4975 (load_partial_comp_unit): Add per_objfile parameter.
4976 (scan_partial_symbols): Update.
4977 (load_full_comp_unit): Add per_objfile parameter.
4978 (process_imported_unit_die): Update.
4979 (create_cus_hash_table): Update.
4980 (find_partial_die): Update.
4981 (dwarf2_read_addr_index): Update.
4982 (follow_die_offset): Update.
4983 (dwarf2_fetch_die_loc_sect_off): Update.
4984 (dwarf2_fetch_constant_bytes): Update.
4985 (dwarf2_fetch_die_type_sect_off): Update.
4986 (follow_die_sig_1): Update.
4987 (load_full_type_unit): Add per_objfile parameter.
4988 (read_signatured_type): Likewise.
4989
313bad1b
SM
49902020-05-27 Simon Marchi <simon.marchi@efficios.com>
4991
4992 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4993 of objfile_name.
4994
c3699833
SM
49952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4996
4997 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4998 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4999 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
5000 field.
5001 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
5002 (create_cus_from_index): Update.
5003 (dwarf2_read_gdb_index): Update.
5004 (create_cus_from_debug_names): Update.
5005 (dwarf2_read_debug_names): Update.
5006 (get_abbrev_section_for_cu): Update.
5007 (create_all_comp_units): Update.
5008 (read_attribute_value): Update.
5009 (get_debug_line_section): Update.
5010 * dwarf2/index-cache.c (index_cache::store): Update.
5011 * dwarf2/index-write.c (save_gdb_index_command): Update.
5012 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5013
1859c670
SM
50142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5015
5016 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
5017 member.
5018 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
5019 dwarf2_per_cu_data::per_bfd.
5020 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
5021 (create_type_unit_group): Likewise.
5022 (queue_comp_unit): Remove reference to
5023 per_cu->dwarf2_per_objfile.
5024 (maybe_queue_comp_unit): Likewise.
5025 (fill_in_sig_entry_from_dwo_entry): Assign new field.
5026 (create_cus_hash_table): Assign new field.
5027
5e22e966
SM
50282020-05-27 Simon Marchi <simon.marchi@efficios.com>
5029
5030 * dwarf2/read.c: Replace
5031 dwarf2_cu->per_cu->dwarf2_per_objfile references with
5032 dwarf2_cu->per_objfile throughout.
5033
97a1449a
SM
50342020-05-27 Simon Marchi <simon.marchi@efficios.com>
5035
5036 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
5037 parameter, don't use per_cu->dwarf2_per_objfile.
5038 (dw2_instantiate_symtab): Likewise.
5039 (dw2_find_last_source_symtab): Update.
5040 (dw2_map_expand_apply): Update.
5041 (dw2_lookup_symbol): Update.
5042 (dw2_expand_symtabs_for_function): Update.
5043 (dw2_expand_all_symtabs): Update.
5044 (dw2_expand_symtabs_with_fullname): Update.
5045 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5046 don't use per_cu->dwarf2_per_objfile.
5047 (dw2_expand_marked_cus): Update.
5048 (dw2_find_pc_sect_compunit_symtab): Update.
5049 (dw2_debug_names_lookup_symbol): Update.
5050 (dw2_debug_names_expand_symtabs_for_function): Update.
5051 (dw2_debug_names_map_matching_symbols): Update.
5052 (dwarf2_psymtab::expand_psymtab): Update.
5053
9e021579
SM
50542020-05-27 Simon Marchi <simon.marchi@efficios.com>
5055
5056 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5057 <per_objfile>: New member.
5058 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5059 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5060 call to dwarf2_cu.
5061 (cutu_reader::cutu_reader): Update.
5062 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5063
ae090bdb
SM
50642020-05-27 Simon Marchi <simon.marchi@efficios.com>
5065
5066 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5067 struct dwarf2_per_objfile.
5068 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5069 dwarf2_per_bfd.
5070 * dwarf2/read.c (set_die_type): Update.
5071 (get_die_type_at_offset): Update.
5072
af758d11
SM
50732020-05-27 Tom Tromey <tom@tromey.com>
5074 Simon Marchi <simon.marchi@efficios.com>
5075
5076 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5077 method.
5078 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5079 get_symtab, set_symtab>: New methods.
5080 <m_symtabs>: New field.
5081 (struct dwarf2_psymtab): Derive from partial_symtab.
5082 <readin_p, get_compunit_symtab>: Declare methods.
5083 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5084 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5085 New methods.
5086 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5087 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5088 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5089 (dw2_symtab_iter_next, dw2_print_stats)
5090 (dw2_expand_symtabs_with_fullname)
5091 (dw2_expand_symtabs_matching_one)
5092 (dw_expand_symtabs_matching_file_matcher)
5093 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5094 (dw2_debug_names_iterator::next)
5095 (dw2_debug_names_map_matching_symbols)
5096 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5097 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5098 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5099 New methods.
5100 (get_compunit_symtab, process_full_comp_unit)
5101 (process_full_type_unit): Update.
5102 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5103
5989a64e
SM
51042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5105
5106 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5107 then introduce a new dwarf2_per_objfile type.
5108 <read_line_string>: Move to the new dwarf2_per_objfile type.
5109 <objfile>: Likewise.
5110 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5111 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5112 dwarf2_per_objfile->per_bfd.
5113 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5114 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5115 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5116 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5117 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5118 (dwarf2_per_objfile::locate_sections): Rename to...
5119 (dwarf2_per_bfd::locate_sections): ... this.
5120 (dwarf2_per_objfile::get_cutu): Rename to...
5121 (dwarf2_per_bfd::get_cutu): ... this.
5122 (dwarf2_per_objfile::get_cu): Rename to...
5123 (dwarf2_per_bfd::get_cu): ... this.
5124 (dwarf2_per_objfile::get_tu): Rename to...
5125 (dwarf2_per_bfd::get_tu): ... this.
5126 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5127 (dwarf2_per_bfd::allocate_per_cu): ... this.
5128 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5129 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5130 (get_gdb_index_contents_ftype): Change parameter from
5131 dwarf2_per_objfile to dwarf2_per_bfd.
5132 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5133 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5134
a50264ba
TT
51352020-05-27 Tom Tromey <tom@tromey.com>
5136 Simon Marchi <simon.marchi@efficios.com>
5137
5138 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5139 (allocate_piece_closure): Set "per_objfile" member.
5140 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5141 (locexpr_describe_location, loclist_describe_location): Use new
5142 member.
5143 * dwarf2/read.c (read_call_site_scope)
5144 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5145 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5146 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5147 handle_data_member_location): Set per_objfile member.
5148 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5149 member.
5150 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5151
d3473f0c
TT
51522020-05-27 Tom Tromey <tom@tromey.com>
5153
5154 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5155 allocate_signatured_type>: Declare new methods.
5156 <m_num_psymtabs>: New member.
5157 (struct dwarf2_per_cu_data) <index>: New member.
5158 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5159 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5160 (create_cu_from_index_list): Use allocate_per_cu.
5161 (create_signatured_type_table_from_index)
5162 (create_signatured_type_table_from_debug_names)
5163 (create_debug_type_hash_table, add_type_unit)
5164 (read_comp_units_from_section): Use allocate_signatured_type.
5165
5717c425
TT
51662020-05-27 Tom Tromey <tom@tromey.com>
5167
5168 * psymtab.c (partial_map_expand_apply)
5169 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5170 (psym_lookup_global_symbol_language)
5171 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5172 (psym_print_stats, psym_expand_symtabs_for_function)
5173 (psym_map_symbol_filenames, psym_map_matching_symbols)
5174 (psym_expand_symtabs_matching)
5175 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5176 (maintenance_check_psymtabs): Update.
5177 * psympriv.h (struct partial_symtab) <readin_p,
5178 get_compunit_symtab>: Add objfile parameter.
5179 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5180 Likewise.
5181 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5182 get_compunit_symtab>: Likewise.
5183 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5184
45940949
TT
51852020-05-27 Tom Tromey <tom@tromey.com>
5186
5187 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5188 member.
5189 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5190 (create_cu_from_index_list)
5191 (create_signatured_type_table_from_index)
5192 (create_signatured_type_table_from_debug_names)
5193 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5194 (dwarf2_create_include_psymtab)
5195 (create_debug_type_hash_table, add_type_unit)
5196 (create_type_unit_group, read_comp_units_from_section)
5197 (dwarf2_compute_name, create_cus_hash_table)
5198 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5199 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5200 obstack.
5201 (dw2_get_real_path): Likewise. Change argument to
5202 dwarf2_per_objfile.
5203
f8c6d152
LM
52042020-05-27 Luis Machado <luis.machado@linaro.org>
5205
5206 PR tdep/26000
5207 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5208 for ldrd (immediate).
5209
e98d2e6d
PW
52102020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5211
5212 * command.h: Add comment giving the name of class_tui.
5213 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5214 create the fake command for the help for class_tui.
5215
53a47a3e
TT
52162020-05-26 Tom Tromey <tromey@adacore.com>
5217
5218 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5219 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5220 (val_atr): New function.
5221 (value_val_atr): Use it.
5222 * ada-valprint.c (print_optional_low_bound): Change low bound
5223 handling for enums.
5224 (val_print_packed_array_elements): Don't call discrete_position.
5225 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5226 discrete_position for enum types.
5227 * language.c (default_print_array_index): Change type.
5228 * language.h (struct language_defn) <la_print_array_index>: Add
5229 index_type parameter, change type of index_value.
5230 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5231 (default_print_array_index): Update.
5232 * valprint.c (maybe_print_array_index): Don't call
5233 value_from_longest. Update.
5234 (value_print_array_elements): Don't call discrete_position.
5235
0bc2354b
TT
52362020-05-26 Tom Tromey <tromey@adacore.com>
5237
5238 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5239 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5240
1218a4bf
CDA
52412020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5242
5243 PR gdb/13519
5244 * avr-tdep.c (avr_integer_to_address): Return data or code
5245 address accordingly to the second 'type' argument of the
5246 function.
5247
92651b1d
MW
52482020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5249
5250 * infcmd.c, inferior.h: (construct_inferior_arguments):
5251 Moved function from here to gdbsupport/common-inferior.{h,cc}
5252
0a4f5f8c
TT
52532020-05-23 Tom Tromey <tom@tromey.com>
5254
5255 Revert commit eca1f90c:
5256 * NEWS: Remove entry for completion styling.
5257 * completer.c (_rl_completion_prefix_display_length): Move
5258 declaration later.
5259 (gdb_fnprint): Revert.
5260 (gdb_display_match_list_1): Likewise.
5261 * cli/cli-style.c (completion_prefix_style)
5262 (completion_difference_style, completion_suffix_style): Remove.
5263 (_initialize_cli_style): Revert.
5264 * cli/cli-style.h (completion_prefix_style)
5265 (completion_difference_style, completion_suffix_style): Don't
5266 declare.
5267
e08bd6c5
PA
52682020-05-24 Pedro Alves <palves@redhat.com>
5269
5270 * symtab.c (completion_list_add_name): Return boolean indication
5271 of whether the symbol matched.
5272 (completion_list_add_symbol): Don't try to remove C++ aliases if
5273 the symbol didn't match in the first place.
5274 * symtab.h (completion_list_add_name): Return bool.
5275
ceacbf6e
SM
52762020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5277
5278 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5279 type::field.
5280
26f16254
JB
52812020-05-23 Joel Brobecker <brobecker@adacore.com>
5282
5283 GDB 9.2 released.
5284
eca1f90c
TT
52852020-05-23 Tom Tromey <tom@tromey.com>
5286
5287 * NEWS: Add entry for completion styling.
5288 * completer.c (_rl_completion_prefix_display_length): Move
5289 declaration earlier.
5290 (gdb_fnprint): Use completion_style.
5291 (gdb_display_match_list_1): Likewise.
5292 * cli/cli-style.c (completion_prefix_style)
5293 (completion_difference_style, completion_suffix_style): New
5294 globals.
5295 (_initialize_cli_style): Register new globals.
5296 * cli/cli-style.h (completion_prefix_style)
5297 (completion_difference_style, completion_suffix_style): Declare.
5298
51e2cfa2
PA
52992020-05-23 Pedro Alves <palves@redhat.com>
5300
5301 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5302 (parse_escape): Use ISDIGIT instead of isdigit.
5303 (puts_debug): Use gdb_isprint instead of isprint.
5304 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5305 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5306 ISSPACE instead of isspace.
5307 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5308 instead of isspace.
5309 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5310 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5311 instead of isxdigit and ISDIGIT instead of isdigit.
5312
80fc5e77
SM
53132020-05-22 Simon Marchi <simon.marchi@efficios.com>
5314
5315 * gdbtypes.h (struct type) <field>: New method.
5316 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5317 or type::field.
5318
3cabb6b0
SM
53192020-05-22 Simon Marchi <simon.marchi@efficios.com>
5320
5321 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5322 (TYPE_FIELDS): Use type::fields. Change all call sites that
5323 modify the propery to use type::set_fields instead.
5324
1f704f76
SM
53252020-05-22 Simon Marchi <simon.marchi@efficios.com>
5326
5327 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5328 type::num_fields instead.
5329
5e33d5f4
SM
53302020-05-22 Simon Marchi <simon.marchi@efficios.com>
5331
5332 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5333 methods.
5334 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5335 that modify the number of fields to use type::set_num_fields
5336 instead.
5337
9392ebb3
TT
53382020-05-22 Tom Tromey <tromey@adacore.com>
5339
5340 * compile/compile-object-load.h (munmap_list_free): Don't
5341 declare.
5342
7c13f4e8
AB
53432020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5344
5345 * annotate.c (annotate_source_line): Update return type, add call
5346 to update current symtab and line.
5347 * annotate.h (annotate_source_line): Update return type, and
5348 extend header comment.
5349 * source.c (info_line_command): Check annotation_level before
5350 calling annotate_source_line.
5351 * stack.c (print_frame_info): If calling annotate_source_line
5352 returns true, then don't print any other source line information.
5353
aa370940
SM
53542020-05-21 Simon Marchi <simon.marchi@efficios.com>
5355
5356 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5357
84d53fa9
SM
53582020-05-21 Simon Marchi <simon.marchi@efficios.com>
5359
5360 * coffread.c (patch_type): Remove NULL check before xfree.
5361 * corefile.c (set_gnutarget): Likewise.
5362 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5363 * exec.c (build_section_table): Likewise.
5364 * remote.c (remote_target::pass_signals): Likewise.
5365 * utils.c (n_spaces): Likewise.
5366 * cli/cli-script.c (document_command): Likewise.
5367 * i386-windows-tdep.c (core_process_module_section): Likewise.
5368 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5369
9d428aae
SM
53702020-05-20 Simon Marchi <simon.marchi@efficios.com>
5371
5372 * symfile.c (reread_symbols): Clear objfile's section_offsets
5373 vector and section indices, re-compute them by calling
5374 sym_offsets.
5375
250106a7
TT
53762020-05-20 Tom Tromey <tromey@adacore.com>
5377
5378 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5379 (desc_one_bound, desc_index_type): Compute field name.
250106a7 5380
9a0bacfb
TV
53812020-05-20 Tom de Vries <tdevries@suse.de>
5382
5383 PR symtab/25833
5384 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5385
7b958a48
AM
53862020-05-20 Alan Modra <amodra@gmail.com>
5387
5388 PR 25993
5389 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5390 bfd_set_filename.
5391 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5392 passed to bfd_set_filename.
5393 * symfile-mem.c (add_vsyscall_page): Likewise for string
5394 passed to symbol_file_add_from_memory.
5395 (symbol_file_add_from_memory): Make name param a const char* and
5396 don't strdup.
5397
c7e97679
AM
53982020-05-20 Alan Modra <amodra@gmail.com>
5399
5400 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5401 rather than accessing bfd->filename directly.
5402 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5403 and use bfd_section_name.
5404 * dwarf2/frame.c (decode_frame_entry): Likewise.
5405 * exec.c (exec_set_section_address): Likewise.
5406 * solib-aix.c (solib_aix_bfd_open): Likewise.
5407 * stap-probe.c (get_stap_base_address): Likewise.
5408 * symfile.c (reread_symbols): Likewise.
5409
563c591b
TT
54102020-05-19 Tom Tromey <tromey@adacore.com>
5411
5412 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5413
f408d82c
SM
54142020-05-19 Simon Marchi <simon.marchi@efficios.com>
5415
5416 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5417
98c59b52
PA
54182020-05-19 Pedro Alves <palves@redhat.com>
5419
5420 * NEWS (set exec-file-mismatch): Adjust entry.
5421 * exec.c: Include "build-id.h".
5422 (validate_exec_file): Try to match build IDs instead of filenames.
5423 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5424 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5425 and pass down 'warn_if_slow'.
5426 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5427 gdb_bfd_open_closure to pass it down.
5428 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5429
4111f652
PA
54302020-05-19 Pedro Alves <palves@redhat.com>
5431
5432 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5433 * target.c (target_fileio_open_1): Rename to target_fileio_open
5434 and make extern. Use bool.
5435 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5436 (target_fileio_read_alloc_1): Adjust.
5437 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5438 (target_fileio_open_warn_if_slow): Delete declaration.
5439
ad80db5b
PA
54402020-05-19 Pedro Alves <palves@redhat.com>
5441
5442 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5443 Adjust all callers.
5444
1d6ce4d3
YS
54452020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5446
5447 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5448 whether disp is negative.
5449
9005fbbb
SM
54502020-05-19 Simon Marchi <simon.marchi@efficios.com>
5451
5452 * symfile.h (struct symfile_segment_data)
5453 <~symfile_segment_data>: Remove.
5454 <segment_info>: Change to std::vector.
5455 * symfile.c (default_symfile_segments): Update.
5456 * elfread.c (elf_symfile_segments): Update.
5457
68b888ff
SM
54582020-05-19 Simon Marchi <simon.marchi@efficios.com>
5459
5460 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5461 <segments>: New.
5462 <segment_bases, segment_sizes>: Remove.
5463 * symfile.c (default_symfile_segments): Update.
5464 * elfread.c (elf_symfile_segments): Update.
5465 * remote.c (remote_target::get_offsets): Update.
5466 * solib-target.c (solib_target_relocate_section_addresses):
5467 Update.
5468
62982abd
SM
54692020-05-19 Simon Marchi <simon.marchi@efficios.com>
5470
5471 * symfile.h (struct symfile_segment_data): Initialize fields.
5472 <~symfile_segment_data>: Add.
5473 (symfile_segment_data_up): New.
5474 (struct sym_fns) <sym_segments>: Return a
5475 symfile_segment_data_up.
5476 (default_symfile_segments): Return a symfile_segment_data_up.
5477 (free_symfile_segment_data): Remove.
5478 (get_symfile_segment_data): Return a symfile_segment_data_up.
5479 * symfile.c (default_symfile_segments): Likewise.
5480 (get_symfile_segment_data): Likewise.
5481 (free_symfile_segment_data): Remove.
5482 (symfile_find_segment_sections): Update.
5483 * elfread.c (elf_symfile_segments): Return a
5484 symfile_segment_data_up.
5485 * remote.c (remote_target::get_offsets): Update.
5486 * solib-target.c (solib_target_relocate_section_addresses):
5487 Update.
5488 * symfile-debug.c (debug_sym_segments): Return a
5489 symfile_segment_data_up.
5490
7f204339
RO
54912020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5492
e52a0f1b
RO
5493 PR build/25981
5494 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5495 Hardcode register numbers.
5496
7f204339
RO
5497 PR build/25981
5498 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5499 procfs_find_LDT_entry): Remove.
5500 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5501 procfs_find_LDT_entry): Remove.
5502 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5503 Remove.
5504
7f32a4d5
PA
55052020-05-17 Pedro Alves <palves@redhat.com>
5506 Andrew Burgess <andrew.burgess@embecosm.com>
5507 Keno Fischer <keno@juliacomputing.com>
5508
5509 PR gdb/25741
5510 * breakpoint.c (build_target_condition_list): Update comments.
5511 (build_target_command_list): Update comments and skip matching
5512 locations.
5513 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5514 a separate function. Simplify "set breakpoint auto-hw off"
5515 handling.
5516 (insert_breakpoints): Update comment.
5517 (tracepoint_locations_match): New parameter. For breakpoints,
5518 compare location types too, if the caller wants to.
5519 (handle_automatic_hardware_breakpoints): New functions.
5520 (bp_location_is_less_than): Also sort by location type and
5521 hardware breakpoint length.
5522 (update_global_location_list): Handle "set breakpoint auto-hw on"
5523 here.
5524 (update_breakpoint_locations): Ask breakpoint_locations_match to
5525 ignore location types.
5526
7d93a1e0
SM
55272020-05-16 Simon Marchi <simon.marchi@efficios.com>
5528
5529 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5530 type::name instead.
5531
d0e39ea2
SM
55322020-05-16 Simon Marchi <simon.marchi@efficios.com>
5533
5534 * gdbtypes.h (struct type) <name, set_name>: New methods.
5535 (TYPE_CODE): Use type::name. Change all call sites used to set
5536 the name to use type::set_name instead.
5537
2dab0c7b
TT
55382020-05-16 Tom Tromey <tom@tromey.com>
5539
5540 * top.c (quit_force): Update.
5541 * infrun.c (handle_no_resumed): Update.
5542 * top.h (all_uis): New function.
5543 (ALL_UIS): Remove.
5544
59f7bd8d
SM
55452020-05-16 Simon Marchi <simon.marchi@efficios.com>
5546
5547 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5548
9bf058f0
PA
55492020-05-16 Pedro Alves <palves@redhat.com>
5550
5551 * ia64-linux-nat.c
5552 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5553 Declare method.
5554 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5555
8f86ae1a
SM
55562020-05-15 Simon Marchi <simon.marchi@efficios.com>
5557
5558 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5559 (sparc64_adi_info): Likewise.
5560
d6bc0792
TT
55612020-05-15 Tom Tromey <tom@tromey.com>
5562
5563 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5564 block_objfile.
5565 (lookup_objfile_from_block): Remove.
5566 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5567 (lookup_global_symbol): Use block_objfile.
5568 * symtab.h (lookup_objfile_from_block): Don't declare.
5569 * printcmd.c (clear_dangling_display_expressions): Use
5570 block_objfile.
5571 * parse.c (operator_check_standard): Use block_objfile.
5572
8c14c3a3
TT
55732020-05-15 Tom Tromey <tom@tromey.com>
5574
5575 * language.c (language_alloc_type_symbol): Set
5576 SYMBOL_SECTION.
5577 * symtab.c (initialize_objfile_symbol): Remove.
5578 (allocate_symbol): Remove.
5579 (allocate_template_symbol): Remove.
5580 * dwarf2/read.c (fixup_go_packaging): Use "new".
5581 (new_symbol): Use "new".
5582 (read_variable): Don't call initialize_objfile_symbol. Use
5583 "new".
5584 (read_func_scope): Use "new".
5585 * xcoffread.c (process_xcoff_symbol): Don't call
5586 initialize_objfile_symbol.
5587 (SYMBOL_DUP): Remove.
5588 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5589 "new".
5590 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5591 (allocate_template_symbol): Don't declare.
5592 (struct symbol): Add copy constructor. Change defaults.
5593 * jit.c (finalize_symtab): Use "new".
5594 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5595 Use "new".
5596 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5597 (common_block_end): Use "new".
5598 * mdebugread.c (parse_symbol): Use "new".
5599 (new_symbol): Likewise.
5600
5b4a1a8d
PW
56012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5602
5603 * NEWS: Mention changes to help and apropos.
5604
57b4f16e
PW
56052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5606
5607 * command.h (enum command_class): Improve comments, document
5608 that class_alias is for user-defined aliases, give the class
5609 name for each class, remove unused class_xdb.
5610 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5611 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5612 by a precise class.
5613 * infcmd.c (_initialize_infcmd): Likewise.
5614 * reverse.c (_initialize_reverse): Likewise.
5615 * stack.c (_initialize_stack): Likewise.
5616 * symfile.c (_initialize_symfile): Likewise.
5617 * tracepoint.c (_initialize_tracepoint): Likewise.
5618
7c05caf7
PW
56192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5620
5621 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5622 when their aliased command is traversed.
5623 (help_cmd): Add fput_command_names_styled call to
5624 output command name and aliases when command has an alias.
5625
3b3aaacb
PW
56262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5627
5628 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5629 * cli/cli-decode.c (help_cmd_list): Declare as static,
5630 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5631 a command together with the command.
5632 (fput_command_name_styled, fput_command_names_styled): New functions.
5633 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5634 fput_command_name_styled.
5635 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5636 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5637
7aa1b46f
PW
56382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5639
5640 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5641 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5642 * command.h (cmd_show_list): Likewise.
5643 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5644 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5645
89bcba74
PW
56462020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5647
5648 * unittests/command-def-selftests.c (traverse_command_structure):
5649 Verify all commands of a list have the same prefix command and
5650 that only the top cmdlist commands have a null prefix.
5651
3f4d92eb
PW
56522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5653
5654 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5655 as prefix, not one of its aliases.
5656 (set_cmd_prefix): Remove.
5657 (do_add_cmd): Centralize the setting of the prefix of a command, when
5658 command is defined after its full chain of prefix commands.
5659 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5660 (add_setshow_cmd_full): Likewise.
5661 (update_prefix_field_of_prefixed_commands): New function.
5662 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5663 update_prefix_field_of_prefixed_commands.
5664 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5665 addresses of remote_set_cmdlist and remote_show_cmdlist given
5666 as argument, not the address of an argument.
5667 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5668 * gdb/remote.c (_initialize_remote): Likewise.
5669
0605465f
PW
56702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5671
5672 * cli/cli-cmds.c (alias_command): Check for an existing alias
5673 using lookup_cmd_composition, as valid_command_p is too strict
5674 and forbids aliases that are the prefix of an existing alias
5675 or command.
5676 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5677 command is properly recognised as a valid command.
5678
58e6ac70
PW
56792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5680
5681 * unittests/help-doc-selftests.c: Rename to
5682 unittests/command-def-selftests.c
5683 * unittests/command-def-selftests.c (help_doc_tests): Update some
5684 comments.
5685 (command_structure_tests, traverse_command_structure): New namespace
5686 and function.
5687 (command_structure_invariants_tests): New function.
5688 (_initialize_command_def_selftests) Renamed from
5689 _initialize_help_doc_selftests, register command_structure_invariants
5690 selftest.
5691
a7b9ceb8
PW
56922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5693
5694 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5695 an alias of 'show'.
5696
b2188a06
JB
56972020-05-15 Joel Brobecker <brobecker@adacore.com>
5698
5699 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5700 ada_is_fixed_point_type. Update all callers.
5701 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5702 all callers.
5703 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5704 Update all callers.
5705 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5706 print_fixed_point_type. Update all callers.
5707 * ada-valprint.c (ada_value_print_num): Replace call to
5708 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5709
a51951c2
KB
57102020-05-14 Kevin Buettner <kevinb@redhat.com>
5711
5712 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5713 processors.
5714 (cpu_supports_bts): Add CV_AMD case.
5715
29d6859f
LM
57162020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5717 Simon Marchi <simon.marchi@efficios.com>
5718
5719 * infrun.c (stop_all_threads): Collect multiple wait events at
5720 each pass.
5721
78134374
SM
57222020-05-14 Simon Marchi <simon.marchi@efficios.com>
5723
5724 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5725 type::code instead.
5726
67607e24
SM
57272020-05-14 Simon Marchi <simon.marchi@efficios.com>
5728
5729 * gdbtypes.h (struct type) <code, set_code>: New methods.
5730 (TYPE_CODE): Use type::code. Change all call sites used to set
5731 the code to use type::set_code instead.
5732
a05575d3
TBA
57332020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5734 Tom de Vries <tdevries@suse.de>
5735 Pedro Alves <palves@redhat.com>
5736
5737 PR threads/25478
5738 * infrun.c (stop_all_threads): Do NOT ignore
5739 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5740 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5741 received.
5742 (handle_no_resumed): Remove code handling a live inferior with no
5743 threads.
5744 * remote.c (has_single_non_exited_thread): New.
5745 (remote_target::update_thread_list): Do not delete a thread if is
5746 the last thread of the process.
5747 * thread.c (thread_select): Call delete_exited_threads instead of
5748 prune_threads.
5749
6ad82919
TBA
57502020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5751
5752 * infrun.c (stop_all_threads): Enable/disable thread events of all
5753 targets. Move a debug message denoting the end of the function
5754 into the SCOPED_EXIT block.
5755
d890404b
TBA
57562020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5757
5758 * process-stratum-target.h: Include <set>.
5759 (all_non_exited_process_targets, switch_to_target_no_thread): New
5760 function declarations.
5761 * process-stratum-target.c (all_non_exited_process_targets)
5762 (switch_to_target_no_thread): New function implementations.
5763
293b3ebc
TBA
57642020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5765
5766 * infrun.c (handle_inferior_event): Extract out a piece of code
5767 into...
5768 (mark_non_executing_threads): ...this new function.
5769
7ca9b62a
TBA
57702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5771
5772 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5773 use.
5774
fc75c28b
TBA
57752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5776
5777 * regcache.c (regcache_read_pc_protected): New function
5778 implementation that returns 0 if the PC cannot read via
5779 'regcache_read_pc'.
5780 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5781 instead of 'regcache_read_pc'.
5782 (keep_going_pass_signal): Ditto.
5783
a89febbd
TT
57842020-05-13 Tom Tromey <tromey@adacore.com>
5785
5786 * ada-lang.c (align_value): Remove.
5787 (ada_template_to_fixed_record_type_1): Use align_up.
5788
f7e23710
TBA
57892020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5790
5791 * async-event.c: Update the copyright year.
5792 * async-event.h: Update the copyright year.
5793
02ff80c2
SM
57942020-05-12 Simon Marchi <simon.marchi@efficios.com>
5795
5796 * objfiles.h (is_addr_in_objfile,
5797 shared_objfile_contains_address_p): Return bool.
5798 * objfile.c (is_addr_in_objfile,
5799 shared_objfile_contains_address_p): Return bool.
5800
4fd6c7e8
TT
58012020-05-11 Tom Tromey <tromey@adacore.com>
5802
5803 * cli/cli-cmds.c (info_command): Restore.
5804 (_initialize_cli_cmds): Use add_prefix_command for "info".
5805 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5806
5eb68a39
TT
58072020-05-11 Tom Tromey <tromey@adacore.com>
5808
5809 * ada-lang.c (ada_value_primitive_field): Now public.
5810 * ada-lang.h (ada_value_primitive_field): Declare.
5811 * ada-valprint.c (print_field_values): Use
5812 ada_value_primitive_field for wrapper fields.
5813
7666722f
TV
58142020-05-11 Tom de Vries <tdevries@suse.de>
5815
5816 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5817 MODULE_DOMAIN.
5818
3ee6bb11
TV
58192020-05-11 Tom de Vries <tdevries@suse.de>
5820
5821 PR symtab/25941
5822 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5823 with length 0, if not gdb-produced.
5824 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5825
43434996
TV
58262020-05-09 Tom de Vries <tdevries@suse.de>
5827
5828 PR gdb/25955
5829 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5830 calculation.
5831
2f78cffc
TT
58322020-05-09 Tom Tromey <tom@tromey.com>
5833
5834 * top.c (server_command): Now bool.
5835 * top.h (server_command): Now bool.
5836
4f7bc5ed
TT
58372020-05-08 Tom Tromey <tromey@adacore.com>
5838
5839 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5840 already being processed.
5841
8be4b118
TT
58422020-05-08 Tom Tromey <tom@tromey.com>
5843
5844 * printcmd.c (struct display) <next>: Remove.
5845 <display>: New constructor.
5846 <exp_string>: Now a std::string.
5847 <enabled_p>: Now a bool.
5848 (display_number): Move definition earlier.
5849 (displays): Rename from display_chain. Now a std::vector.
5850 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5851 (display_command): Update.
5852 (do_one_display, disable_display)
5853 (enable_disable_display_command, do_enable_disable_display):
5854 Update.
5855 (free_display): Remove.
5856 (clear_displays): Rewrite.
5857 (delete_display): Update.
5858 (map_display_numbers): Use function_view. Remove "data"
5859 parameter. Update.
5860 (do_delete_display): Remove.
5861 (undisplay_command): Update.
5862 (do_one_display, do_displays, disable_display)
5863 (info_display_command): Update.
5864 (do_enable_disable_display): Remove.
5865 (enable_disable_display_command)
5866 (clear_dangling_display_expressions): Update.
5867
94c93c35
TT
58682020-05-08 Tom Tromey <tom@tromey.com>
5869
5870 * symtab.c (set_symbol_cache_size)
5871 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5872 (maintenance_print_symbol_cache_statistics): Update.
5873 * symmisc.c (print_symbol_bcache_statistics)
5874 (print_objfile_statistics, maintenance_print_objfiles)
5875 (maintenance_info_symtabs, maintenance_check_symtabs)
5876 (maintenance_expand_symtabs, maintenance_info_line_tables):
5877 Update.
5878 * symfile-debug.c (set_debug_symfile): Update.
5879 * source.c (forget_cached_source_info): Update.
5880 * python/python.c (gdbpy_progspaces): Update.
5881 * psymtab.c (maintenance_info_psymtabs): Update.
5882 * probe.c (parse_probes): Update.
5883 * linespec.c (iterate_over_all_matching_symtabs)
5884 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5885 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5886 * exec.c (exec_target::close): Update.
5887 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5888 * breakpoint.c (print_one_breakpoint_location)
5889 (create_longjmp_master_breakpoint)
5890 (create_std_terminate_master_breakpoint): Update.
5891 * progspace.c (program_spaces): Now a std::vector.
5892 (maybe_new_address_space): Update.
5893 (add_program_space): Remove.
5894 (program_space::program_space): Update.
5895 (remove_program_space): Update.
5896 (number_of_program_spaces): Remove.
5897 (print_program_space, update_address_spaces): Update.
5898 * progspace.h (program_spaces): Change type.
5899 (ALL_PSPACES): Remove.
5900 (number_of_program_spaces): Don't declare.
5901 (struct program_space) <next>: Remove.
5902
a1fd1ac9
TT
59032020-05-08 Tom Tromey <tom@tromey.com>
5904
5905 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5906 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5907 (enable_break): Update.
5908 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5909 (frv_fdpic_find_canonical_descriptor): Update.
5910 (frv_fetch_objfile_link_map): Update.
5911 * progspace.c (program_space::free_all_objfiles): Update.
5912 (program_space::solibs): New method.
5913 * progspace.h (struct program_space) <solibs>: New method.
5914 * solist.h (master_so_list): Don't declare.
5915 (ALL_SO_LIBS): Remove.
5916 * solib.h (so_list_head): Remove.
5917 (update_solib_list): Update comment.
5918 * solib.c (master_so_list): Remove.
5919 (solib_used, update_solib_list, solib_add)
5920 (info_sharedlibrary_command, clear_solib)
5921 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5922
38eae084
TT
59232020-05-08 Tom Tromey <tom@tromey.com>
5924
5925 * extension.c (extension_languages): Now a std::array.
5926 (ALL_EXTENSION_LANGUAGES): Remove.
5927 (get_ext_lang_defn, get_ext_lang_of_file)
5928 (eval_ext_lang_from_control_command): Update.
5929 (finish_ext_lang_initialization)
5930 (auto_load_ext_lang_scripts_for_objfile)
5931 (ext_lang_type_printers::ext_lang_type_printers)
5932 (apply_ext_lang_type_printers)
5933 (ext_lang_type_printers::~ext_lang_type_printers)
5934 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5935 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5936 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5937 (get_matching_xmethod_workers, ext_lang_colorize)
5938 (ext_lang_before_prompt): Update.
5939 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5940
596dc4ad
TT
59412020-05-08 Tom Tromey <tom@tromey.com>
5942
5943 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5944 overload.
5945 <swap_string, m_string>: Remove.
5946 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5947 Update.
5948 * stabsread.c (define_symbol, read_type): Update.
5949 * linespec.c (find_linespec_symbols): Update.
5950 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5951 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5952 * dbxread.c (read_dbx_symtab): Update.
5953 * cp-support.h (cp_canonicalize_string_full)
5954 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5955 Return unique_xmalloc_ptr.
5956 * cp-support.c (inspect_type): Update.
5957 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5958 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5959 Likewise.
5960 * c-typeprint.c (print_name_maybe_canonical): Update.
5961 * break-catch-throw.c (check_status_exception_catchpoint):
5962 Update.
5963
bf4cb9be
TV
59642020-05-08 Tom de Vries <tdevries@suse.de>
5965
5966 * infrun.c (follow_fork): Copy current_line and current_symtab to
5967 child thread.
5968
a1b68f28
SM
59692020-05-07 Simon Marchi <simon.marchi@efficios.com>
5970
5971 * async-event.c (struct async_signal_handler, struct
5972 async_event_handler): Reformat, remove typedef.
5973
98d48915
SM
59742020-05-07 Simon Marchi <simon.marchi@efficios.com>
5975
5976 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5977 access thistype->main_type->dyn_prop_list directly.
5978
7aa91313
SM
59792020-05-07 Simon Marchi <simon.marchi@efficios.com>
5980
5981 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5982 (remove_dyn_prop): Remove. Update all users to use
5983 type::remove_dyn_prop.
5984 * gdbtypes.c (remove_dyn_prop): Rename to...
5985 (type::remove_dyn_prop): ... this.
5986
5c54719c
SM
59872020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5988
5989 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5990 (add_dyn_prop): Remove. Update all users to use
5991 type::add_dyn_prop.
5992 * gdbtypes.c (add_dyn_prop): Rename to...
5993 (type::add_dyn_prop): ... this.
5994
24e99c6c
SM
59952020-05-07 Simon Marchi <simon.marchi@efficios.com>
5996
5997 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5998 (get_dyn_prop): Remove. Update all users to use
5999 type::dyn_prop.
6000 * gdbtypes.c (get_dyn_prop): Rename to...
6001 (type::dyn_prop): ... this.
6002
0d4bf016
SM
60032020-05-06 Simon Marchi <simon.marchi@efficios.com>
6004
6005 * gdbtypes.h (struct main_type) <flag_static>: Remove.
6006
ac4a4f1c
SM
60072020-05-06 Simon Marchi <simon.marchi@efficios.com>
6008
6009 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
6010 instruction, skip it if it's there.
6011
a3bbacc1
SM
60122020-05-05 Simon Marchi <simon.marchi@efficios.com>
6013
6014 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
6015
c3236f84
SM
60162020-05-04 Simon Marchi <simon.marchi@efficios.com>
6017
6018 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
6019 * gdbtypes.c (recursive_dump_type): Remove use of
6020 TYPE_INCOMPLETE.
6021
3b6acaee
TT
60222020-05-03 Tom Tromey <tom@tromey.com>
6023
6024 * breakpoint.c (catch_command, tcatch_command): Remove.
6025 (_initialize_breakpoint): Use add_basic_prefix_cmd,
6026 add_show_prefix_cmd.
6027 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
6028 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
6029 Remove.
6030 (add_internal_problem_command): Use add_basic_prefix_cmd,
6031 add_show_prefix_cmd.
6032 * mips-tdep.c (set_mipsfpu_command): Remove.
6033 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
6034 * dwarf2/index-cache.c (set_index_cache_command): Remove.
6035 (_initialize_index_cache): Use add_basic_prefix_cmd.
6036 * memattr.c (dummy_cmd): Remove.
6037 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
6038 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
6039 (_initialize_tui_win): Use add_basic_prefix_cmd,
6040 add_show_prefix_cmd.
6041 * cli/cli-logging.c (set_logging_command): Remove.
6042 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6043 add_show_prefix_cmd.
6044 (show_logging_command): Remove.
6045 * target.c (target_command): Remove.
6046 (add_target): Use add_basic_prefix_cmd.
6047
a51119cd
HD
60482020-05-02 Hannes Domani <ssbssa@yahoo.de>
6049
6050 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6051
652fc23a 60522020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6053
652fc23a
PW
6054 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6055 info_command.
6056
117539e6
KR
60572020-04-30 Kamil Rytarowski <n54@gmx.com>
6058
6059 * nbsd-nat.c (nbsd_enable_proc_events)
6060 (nbsd_nat_target::post_startup_inferior): Add.
6061 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6062 (nbsd_nat_target::update_thread_list): Rewrite.
6063 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6064 "PTRACE_LWP_CREATE".
6065 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6066
102e38eb 60672020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6068
102e38eb
PW
6069 * stack.c (_initialize_stack): Remove duplicated creation
6070 of "frame" command and "f" alias.
6071
ee9d1e5f
HD
60722020-04-30 Hannes Domani <ssbssa@yahoo.de>
6073
6074 PR gdb/18706
6075 * gdbtypes.c (check_typedef): Calculate size of array of
6076 stubbed type.
6077
627c7fb8
HD
60782020-04-30 Hannes Domani <ssbssa@yahoo.de>
6079
6080 PR gdb/15559
6081 * i386-tdep.c (i386_push_dummy_call): Call
6082 i386_thiscall_push_dummy_call.
6083 (i386_thiscall_push_dummy_call): New function.
6084 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6085 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6086 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6087
ffc2844e
SM
60882020-04-29 Simon Marchi <simon.marchi@efficios.com>
6089
6090 * gdbarch.sh (do_read): Add shellcheck disable directive for
6091 warning SC2162.
6092
1207375d
SM
60932020-04-29 Simon Marchi <simon.marchi@efficios.com>
6094
6095 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6096 "referenced but not assigned" warning.
6097
9fdb2916
SM
60982020-04-29 Simon Marchi <simon.marchi@efficios.com>
6099
6100 * gdbarch.sh: Remove code that sets fallbackdefault.
6101
759cea5e
SM
61022020-04-29 Simon Marchi <simon.marchi@efficios.com>
6103
6104 * gdbarch.sh: Use shell operators && and || instead of
6105 -a and -o.
6106
cb02ab24
SM
61072020-04-29 Simon Marchi <simon.marchi@efficios.com>
6108
6109 * gdbarch.sh: Use $(...) instead of `...`.
6110
a6fc5ffc
SM
61112020-04-29 Simon Marchi <simon.marchi@efficios.com>
6112
6113 * gdbarch.sh: Use double quotes around variables.
6114
8d113d13
SM
61152020-04-29 Simon Marchi <simon.marchi@efficios.com>
6116
6117 * gdbarch.sh: Use %s with printf, instead of variables in the
6118 format string.
6119
ed6acedd
TT
61202020-04-29 Tom Tromey <tromey@adacore.com>
6121
6122 PR ada/25875:
6123 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6124 type fields here.
6125 (read_enumeration_type): Call
6126 update_enumeration_type_from_children later. Update comments.
6127 (process_enumeration_scope): Don't create type fields.
6128
b68b1b58
KR
61292020-04-29 Kamil Rytarowski <n54@gmx.com>
6130
6131 * nbsd-tdep.c: Include "xml-syscall.h".
6132 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6133
f94b2e03
KR
61342020-04-29 Kamil Rytarowski <n54@gmx.com>
6135
6136 * nbsd-nat.c: Include "sys/wait.h".
6137 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6138 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6139 (nbsd_nat_target::remove_exec_catchpoint)
6140 (nbsd_nat_target::set_syscall_catchpoint): Add.
6141 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6142 (nbsd_nat_target::insert_exec_catchpoint)
6143 (nbsd_nat_target::remove_exec_catchpoint)
6144 (nbsd_nat_target::set_syscall_catchpoint): Add.
6145 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6146 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6147 `nbsd_get_syscall_number'.
6148
fc49bc72
TT
61492020-04-29 Tom Tromey <tom@tromey.com>
6150
6151 * stack.c (print_block_frame_labels): Remove.
6152
d642b692
HD
61532020-04-29 Hannes Domani <ssbssa@yahoo.de>
6154
6155 PR gdb/17320
6156 * ada-valprint.c (val_print_packed_array_elements): Move array
6157 end bracket to new line.
6158 (ada_val_print_string): Remove extra spaces before first array
6159 element.
6160 * c-valprint.c (c_value_print_array): Likewise.
6161 * m2-valprint.c (m2_print_array_contents): Likewise.
6162 (m2_value_print_inner): Likewise.
6163 * p-valprint.c (pascal_value_print_inner): Likewise.
6164 * valprint.c (generic_val_print_array): Likewise.
6165 (value_print_array_elements): Move first array element and array
6166 end bracket to new line.
6167
ea90f227
TV
61682020-04-29 Tom de Vries <tdevries@suse.de>
6169
6170 PR symtab/25889
6171 * linespec.c (find_method): Fix ix calculation.
6172
4498ef4f
KR
61732020-04-28 Kamil Rytarowski <n54@gmx.com>
6174
6175 * syscalls/update-netbsd.sh: New file.
6176 * syscalls/netbsd.xml: Regenerate.
6177 * data-directory/Makefile.in: Register `netbsd.xml' in
6178 `SYSCALLS_FILES'.
6179
a55e30b5
SM
61802020-04-28 Simon Marchi <simon.marchi@efficios.com>
6181
6182 * syscalls/update-freebsd.sh: Add double quotes.
6183
2b2fbab8
TT
61842020-04-28 Tom Tromey <tom@tromey.com>
6185
6186 * NEWS: Update.
6187 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6188 (cmdpy_init): Allow class_tui.
6189
a65189c9
TV
61902020-04-28 Mark Williams <mark@myosotissp.com>
6191
6192 PR gdb/24480
6193 * dwarf2read.c: Add missing assingments to list_in_scope when
6194 start_symtab was already called.
6195
1b95cdb7
SM
61962020-04-28 Simon Marchi <simon.marchi@efficios.com>
6197
6198 PR gdb/25881
6199 * dwarf2/read.c (offset_map_type): Use
6200 gdb:hash_enum<sect_offset> as hash function.
6201
15cd93d0
TV
62022020-04-28 Tom de Vries <tdevries@suse.de>
6203
6204 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6205 with DW_AT_signature.
6206
1eb39914
SM
62072020-04-27 Simon Marchi <simon.marchi@efficios.com>
6208
6209 * configure.ac: Remove check for fs_base/gs_base in
6210 user_regs_struct.
6211 * configure: Re-generate.
6212 * config.in: Re-generate.
6213 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6214 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6215 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6216
991a3e2e
LM
62172020-04-27 Luis Machado <luis.machado@linaro.org>
6218
6219 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6220 problematic inline frame unwinding situation.
6221 * frame.c (frame_id_computed_p): New function.
6222 * frame.h (frame_id_computed_p): New prototype.
6223
361ba0e8
TT
62242020-04-26 Tom Tromey <tom@tromey.com>
6225
6226 * command.h (enum command_class) <class_pseudo>: Remove.
6227
bc3609fd
PW
62282020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6229
6230 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6231 and whitespace.
6232
b9771db7
KR
62332020-04-25 Kamil Rytarowski <n54@gmx.com>
6234
ec16513e
SM
6235 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6236 `PT_GET_PROCESS_STATE' block.
b9771db7 6237
7151c1af
TT
62382020-04-24 Tom Tromey <tom@tromey.com>
6239
6240 * symtab.h (symbol_get_demangled_name): Don't declare.
6241 * symtab.c (symbol_get_demangled_name): Remove.
6242 (general_symbol_info::natural_name)
6243 (general_symbol_info::demangled_name): Update.
6244
906bb4c5
TT
62452020-04-24 Tom Tromey <tom@tromey.com>
6246
6247 PR rust/25025:
6248 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6249
bcfe6157
TT
62502020-04-24 Tom Tromey <tom@tromey.com>
6251
6252 PR symtab/12707:
6253 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6254 exists.
6255 (new_symbol): Likewise.
6256 * compile/compile-object-load.c (get_out_value_type): Use
6257 symbol_matches_search_name.
6258
f049a313
TT
62592020-04-24 Tom Tromey <tom@tromey.com>
6260
6261 * dwarf2/read.c (add_partial_symbol): Do not call
6262 compute_and_set_names.
6263
76e288d1
TT
62642020-04-24 Tom Tromey <tom@tromey.com>
6265
6266 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6267 overload.
6268
2467f4f6
TT
62692020-04-24 Tom Tromey <tom@tromey.com>
6270
6271 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6272 (add_psymbol_to_list): New overload. Make old overload call new
6273 one.
6274 * psympriv.h (add_psymbol_to_list): New overload.
6275
e61108c9
TT
62762020-04-24 Tom Tromey <tom@tromey.com>
6277
6278 * dwarf2/read.c (partial_die_info::read) <case
6279 DW_AT_linkage_name>: Use value_as_string.
6280 (dwarf2_string_attr): Use value_as_string.
6281 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6282 method.
6283 * dwarf2/attribute.c (attribute::value_as_string): New method.
6284
8c87a452
TT
62852020-04-24 Tom Tromey <tom@tromey.com>
6286
6287 * symtab.c (general_symbol_info::natural_name)
6288 (general_symbol_info::demangled_name): Check for language_rust.
6289
787de330
TT
62902020-04-24 Tom Tromey <tom@tromey.com>
6291
6292 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6293 (dwarf2_physname): ... from here.
6294 (partial_die_info::read): Add Rust "{" hack.
6295
ff985671
TT
62962020-04-24 Tom Tromey <tom@tromey.com>
6297
6298 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6299 method.
6300 (symbol_set_demangled_name): Don't declare.
6301 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6302 symbol_set_demangled_name.
6303 (general_symbol_info::set_language)
6304 (general_symbol_info::compute_and_set_names): Update.
6305 * minsyms.c (minimal_symbol_reader::install): Update.
6306 * dwarf2/read.c (new_symbol): Update.
6307
1acda803
TT
63082020-04-24 Tom Tromey <tromey@adacore.com>
6309
6310 PR python/23662:
6311 * python/py-type.c (convert_field): Handle
6312 FIELD_LOC_KIND_DWARF_BLOCK.
6313 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6314 (typy_get_dynamic): Nw function.
6315 (type_object_getset): Add "dynamic".
6316 * NEWS: Add entry.
6317
d656f129
TT
63182020-04-24 Tom Tromey <tromey@adacore.com>
6319
6320 * ada-typeprint.c (print_choices, print_variant_part)
6321 (print_record_field_types_dynamic): New functions.
6322 (print_record_field_types): Use print_record_field_types_dynamic.
6323
7d79de9a
TT
63242020-04-24 Tom Tromey <tromey@adacore.com>
6325
6326 * dwarf2/read.c (handle_data_member_location): New overload.
6327 (dwarf2_add_field): Use it.
6328 (decode_locdesc): Add "computed" parameter. Update comment.
6329 * gdbtypes.c (is_dynamic_type_internal): Also look for
6330 FIELD_LOC_KIND_DWARF_BLOCK.
6331 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6332 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6333 virtual base classes.
6334 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6335 FIELD_LOC_KIND_DWARF_BLOCK.
6336
f8e89861
TT
63372020-04-24 Tom Tromey <tromey@adacore.com>
6338
6339 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6340 * gdbtypes.c (is_dynamic_type_internal): Check
6341 TYPE_HAS_DYNAMIC_LENGTH.
6342 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6343 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6344 New macros.
6345 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6346 constant.
6347
9c6a1327
TT
63482020-04-24 Tom Tromey <tromey@adacore.com>
6349
6350 * dwarf2/read.c (struct variant_field): Rewrite.
6351 (struct variant_part_builder): New.
6352 (struct nextfield): Remove "variant" field. Add "offset".
6353 (struct field_info): Add "current_variant_part" and
6354 "variant_parts".
6355 (alloc_discriminant_info): Remove.
6356 (alloc_rust_variant): New function.
6357 (quirk_rust_enum): Update.
6358 (dwarf2_add_field): Set "offset" member. Don't handle
6359 DW_TAG_variant_part.
6360 (offset_map_type): New typedef.
6361 (convert_variant_range, create_one_variant)
6362 (create_one_variant_part, create_variant_parts)
6363 (add_variant_property): New functions.
6364 (dwarf2_attach_fields_to_type): Call add_variant_property.
6365 (read_structure_type): Don't handle DW_TAG_variant_part.
6366 (handle_variant_part, handle_variant): New functions.
6367 (handle_struct_member_die): Use them.
6368 (process_structure_scope): Don't handle variant parts.
6369 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6370 (struct discriminant_info): Remove.
6371 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6372 (struct main_type) <flag_discriminated_union>: Remove.
6373 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6374 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6375 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6376 Update.
6377 * valops.c (value_union_variant): Remove.
6378 * value.h (value_union_variant): Don't declare.
6379
b249d2c2
TT
63802020-04-24 Tom Tromey <tromey@adacore.com>
6381
6382 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6383 (ada_value_primitive_packed_val): Update.
6384 * ada-valprint.c (ada_value_print_1): Update.
6385 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6386 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6387 just an address. Use evaluate_for_locexpr_baton.
6388 (dwarf2_evaluate_property): Update.
6389 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6390 array_view.
6391 * findvar.c (default_read_var_value): Update.
6392 * gdbtypes.c (compute_variant_fields_inner)
6393 (resolve_dynamic_type_internal): Update.
6394 (resolve_dynamic_type): Change type of valaddr parameter.
6395 * gdbtypes.h (resolve_dynamic_type): Update.
6396 * valarith.c (value_subscripted_rvalue): Update.
6397 * value.c (value_from_contents_and_address): Update.
6398
61122aa9
TT
63992020-04-24 Tom Tromey <tromey@adacore.com>
6400
6401 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6402 "push_initial_value" parameter.
6403 (dwarf2_evaluate_property): Likewise.
6404 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6405
ef83a141
TT
64062020-04-24 Tom Tromey <tromey@adacore.com>
6407
6408 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6409 (variant::matches, compute_variant_fields_recurse)
6410 (compute_variant_fields_inner, compute_variant_fields): New
6411 functions.
6412 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6413 Use resolved_type after type is made.
6414 (operator==): Add new cases.
6415 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6416 (struct discriminant_range, struct variant, struct variant_part):
6417 New.
6418 (union dynamic_prop_data) <variant_parts, original_type>: New
6419 members.
6420 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6421 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6422 constants.
6423 * value.c (unpack_bits_as_long): Now public.
6424 * value.h (unpack_bits_as_long): Declare.
6425
675127ec
TT
64262020-04-24 Tom Tromey <tromey@adacore.com>
6427
6428 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6429 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6430
9852ceef
HD
64312020-04-24 Hannes Domani <ssbssa@yahoo.de>
6432
6433 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6434
7632c6ce
KR
64352020-04-24 Kamil Rytarowski <n54@gmx.com>
6436
6437 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6438 (remove_fork_catchpoint, post_startup_inferior)
6439 (post_attach): Move...
6440 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6441 (remove_fork_catchpoint, post_startup_inferior)
6442 (post_attach): ...here.
6443 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6444 (remove_fork_catchpoint, post_startup_inferior)
6445 (post_attach): Move...
6446 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6447 (remove_fork_catchpoint, post_startup_inferior)
6448 (post_attach): ...here.
6449
7be2bb4f
TT
64502020-04-24 Tom Tromey <tromey@adacore.com>
6451
6452 * nat/windows-nat.h (struct windows_thread_info)
6453 <pc_adjusted>: New member.
6454 * windows-nat.c (windows_fetch_one_register): Check
6455 pc_adjusted.
6456 (windows_nat_target::get_windows_debug_event)
6457 (windows_nat_target::wait): Set pc_adjusted.
6458
f80cb3b4
TV
64592020-04-24 Tom de Vries <tdevries@suse.de>
6460
6461 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6462 Run gdb-add-index inside temp dir.
6463
29514b87
TT
64642020-04-23 Tom Tromey <tromey@adacore.com>
6465
6466 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6467 in loop.
6468
5939967b
LM
64692020-04-23 Luis Machado <luis.machado@linaro.org>
6470
6471 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6472 get_frame_register instead of gdbarch_unwind_pc.
6473
70bc38f5
TV
64742020-04-23 Tom de Vries <tdevries@suse.de>
6475
6476 * symtab.c (lookup_global_symbol): Prefer def over decl.
6477
de82891c
TV
64782020-04-23 Tom de Vries <tdevries@suse.de>
6479
6480 PR symtab/25807
6481 * block.c (best_symbol, better_symbol): Promote to external.
6482 * block.h (best_symbol, better_symbol): Declare.
6483 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6484 decl.
6485
ecc6c606
TT
64862020-04-23 Tom Tromey <tromey@adacore.com>
6487
6488 PR ada/25837:
6489 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6490 "const char *", not a "const std::string &".
6491 <name_and_matcher::operator==>: Update.
6492 * unittests/lookup_name_info-selftests.c: Change type of
6493 "result".
6494
740480b8
TT
64952020-04-23 Tom Tromey <tom@tromey.com>
6496
6497 * inferior.h (iterate_over_inferiors): Don't declare.
6498 * inferior.c (iterate_over_inferiors): Remove.
6499 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6500 Remove.
6501 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6502 use iterate_over_inferiors.
6503 (darwin_resume_inferior_it)
6504 (struct resume_inferior_threads_param)
6505 (darwin_resume_inferior_threads_it): Remove.
6506 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6507
ae3ab1f0
TV
65082020-04-23 Tom de Vries <tdevries@suse.de>
6509
6510 * blockframe.c (find_pc_partial_function): Use
6511 find_pc_sect_compunit_symtab rather than
6512 objfile->sf->qf->find_pc_sect_compunit_symtab.
6513
317d2668
TV
65142020-04-22 Tom de Vries <tdevries@suse.de>
6515
6516 PR symtab/25764
6517 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6518 in psymtabs.
6519
eea9e357
TV
65202020-04-22 Tom de Vries <tdevries@suse.de>
6521
6522 PR symtab/25801
6523 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6524 symtabs.
6525
3d5afab3
TV
65262020-04-22 Tom de Vries <tdevries@suse.de>
6527
6528 PR symtab/25700
6529 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6530 CU if already created.
6531
d43b7a2d
TBA
65322020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6533
6534 * infrun.c (displaced_step_fixup): Switch to the event_thread
6535 before calling displaced_step_restore, not after.
6536
d89edf9b
MM
65372020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6538
6539 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6540 its inferior is not recorded by us.
6541 (record_btrace_target_open): Replace call to
6542 all_non_exited_threads () with call to current_inferior
6543 ()->non_exited_threads ().
6544 (record_btrace_target::stop_recording): Likewise.
6545 (record_btrace_target::close): Likewise.
6546 (record_btrace_target::wait): Likewise.
6547 (record_btrace_target::record_stop_replaying): Likewise.
6548
5897fd49
MM
65492020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6550
6551 * btrace.c (btrace_enable): Throw an error on double enables and
6552 when enabling recording fails.
6553 (btrace_disable): Throw an error if the thread is not recorded.
6554
1a476b6d
MM
65552020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6556
6557 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6558 request if we do not have a thread_info.
6559
4778a5f8
TV
65602020-04-21 Tom de Vries <tdevries@suse.de>
6561
6562 PR gdb/25471
6563 * thread.c
6564 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6565 exception in get_frame_id.
6566
0fa7617d
TT
65672020-04-20 Tom Tromey <tromey@adacore.com>
6568
6569 * python/python.c (struct gdbpy_event): Mark move constructor as
6570 noexcept.
6571 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6572 constructor as noexcept.
6573 * completer.h (struct completion_result): Mark move constructor as
6574 noexcept.
6575 * completer.c (completion_result::completion_result): Use
6576 initialization style. Don't call reset_match_list.
6577
ad23bda0
MS
65782020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6579
6580 * MAINTAINERS (Write After Approval): Add myself.
6581
45e1f031
TT
65822020-04-18 Tom Tromey <tom@tromey.com>
6583
6584 * windows-tdep.c (init_w32_command_list)
6585 (w32_prefix_command_valid): Restore.
6586 (_initialize_windows_tdep): Call init_w32_command_list.
6587
08feed99
TT
65882020-04-18 Tom Tromey <tom@tromey.com>
6589
6590 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6591 * value.c (value_fn_field): Update.
6592 * valops.c (find_function_in_inferior)
6593 (value_allocate_space_in_inferior): Update.
6594 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6595 Update.
6596 * tui/tui-source.c (tui_source_window::set_contents): Update.
6597 * symtab.c (lookup_global_or_static_symbol)
6598 (find_function_start_sal_1, skip_prologue_sal)
6599 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6600 * symmisc.c (dump_msymbols, dump_symtab_1)
6601 (maintenance_print_one_line_table): Update.
6602 * symfile.c (init_entry_point_info, section_is_mapped)
6603 (list_overlays_command, simple_read_overlay_table)
6604 (simple_overlay_update_1): Update.
6605 * stap-probe.c (handle_stap_probe): Update.
6606 * stabsread.c (dbx_init_float_type, define_symbol)
6607 (read_one_struct_field, read_enum_type, read_range_type): Update.
6608 * source.c (info_line_command): Update.
6609 * python/python.c (gdbpy_source_objfile_script)
6610 (gdbpy_execute_objfile_script): Update.
6611 * python/py-type.c (save_objfile_types): Update.
6612 * python/py-objfile.c (py_free_objfile): Update.
6613 * python/py-inferior.c (python_new_objfile): Update.
6614 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6615 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6616 (maintenance_check_psymtabs): Update.
6617 * printcmd.c (info_address_command): Update.
6618 * objfiles.h (struct objfile) <arch>: New method, from
6619 get_objfile_arch.
6620 (get_objfile_arch): Don't declare.
6621 * objfiles.c (get_objfile_arch): Remove.
6622 (filter_overlapping_sections): Update.
6623 * minsyms.c (msymbol_is_function): Update.
6624 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6625 (output_nondebug_symbol): Update.
6626 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6627 (mdebug_expand_psymtab): Update.
6628 * machoread.c (macho_add_oso_symfile): Update.
6629 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6630 Update.
6631 * linux-fork.c (checkpoint_command): Update.
6632 * linespec.c (convert_linespec_to_sals): Update.
6633 * jit.c (finalize_symtab): Update.
6634 * infrun.c (insert_exception_resume_from_probe): Update.
6635 * ia64-tdep.c (ia64_find_unwind_table): Update.
6636 * hppa-tdep.c (internalize_unwinds): Update.
6637 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6638 Update.
6639 * gcore.c (call_target_sbrk): Update.
6640 * elfread.c (record_minimal_symbol, elf_symtab_read)
6641 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6642 (elf_gnu_ifunc_resolve_by_got): Update.
6643 * dwarf2/read.c (create_addrmap_from_index)
6644 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6645 (read_debug_names_from_section)
6646 (process_psymtab_comp_unit_reader, add_partial_symbol)
6647 (add_partial_subprogram, process_full_comp_unit)
6648 (read_file_scope, read_func_scope, read_lexical_block_scope)
6649 (read_call_site_scope, dwarf2_ranges_read)
6650 (dwarf2_record_block_ranges, dwarf2_add_field)
6651 (mark_common_block_symbol_computed, read_tag_pointer_type)
6652 (read_tag_string_type, dwarf2_init_float_type)
6653 (dwarf2_init_complex_target_type, read_base_type)
6654 (partial_die_info::read, partial_die_info::read)
6655 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6656 (dwarf2_fetch_die_loc_sect_off): Update.
6657 * dwarf2/loc.c (dwarf2_find_location_expression)
6658 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6659 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6660 (dwarf2_loc_desc_get_symbol_read_needs)
6661 (locexpr_describe_location_piece, locexpr_describe_location_1)
6662 (loclist_describe_location): Update.
6663 * dwarf2/index-write.c (write_debug_names): Update.
6664 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6665 * dtrace-probe.c (dtrace_process_dof): Update.
6666 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6667 (process_one_symbol): Update.
6668 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6669 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6670 (coff_read_enum_type): Update.
6671 * cli/cli-cmds.c (edit_command, list_command): Update.
6672 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6673 * breakpoint.c (create_overlay_event_breakpoint)
6674 (create_longjmp_master_breakpoint)
6675 (create_std_terminate_master_breakpoint)
6676 (create_exception_master_breakpoint, get_sal_arch): Update.
6677 * block.c (block_gdbarch): Update.
6678 * annotate.c (annotate_source_line): Update.
6679
0743fc83
TT
66802020-04-17 Tom Tromey <tromey@adacore.com>
6681
6682 * auto-load.c (show_auto_load_cmd): Remove.
6683 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6684 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6685 (maintenance_print_arc_command): Remove.
6686 * tui/tui-win.c (tui_command): Remove.
6687 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6688 * tui/tui-layout.c (tui_layout_command): Remove.
6689 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6690 * python/python.c (user_set_python, user_show_python): Remove.
6691 (_initialize_python): Use add_basic_prefix_cmd,
6692 add_show_prefix_cmd.
6693 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6694 (install_gdb_commands): Use add_basic_prefix_cmd,
6695 add_show_prefix_cmd.
6696 (info_guile_command): Remove.
6697 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6698 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6699 add_show_prefix_cmd.
6700 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6701 Remove do_set and do_show parameters.
6702 * cli/cli-style.c (set_style, show_style): Remove.
6703 (_initialize_cli_style): Use add_basic_prefix_cmd,
6704 add_show_prefix_cmd.
6705 (cli_style_option::add_setshow_commands): Remove do_set and
6706 do_show parameters.
6707 (cli_style_option::add_setshow_commands): Use
6708 add_basic_prefix_cmd, add_show_prefix_cmd.
6709 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6710 (set_style_name): Remove.
6711 * cli/cli-dump.c (dump_command, append_command): Remove.
6712 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6713 (tekhex_dump_command, binary_dump_command)
6714 (binary_append_command): Remove.
6715 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6716 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6717 (init_w32_command_list): Remove; move into ...
6718 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6719 * valprint.c (set_print, show_print, set_print_raw)
6720 (show_print_raw): Remove.
6721 (_initialize_valprint): Use add_basic_prefix_cmd,
6722 add_show_prefix_cmd.
6723 * typeprint.c (set_print_type, show_print_type): Remove.
6724 (_initialize_typeprint): Use add_basic_prefix_cmd,
6725 add_show_prefix_cmd.
6726 * record.c (set_record_command, show_record_command): Remove.
6727 (_initialize_record): Use add_basic_prefix_cmd,
6728 add_show_prefix_cmd.
6729 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6730 add_show_prefix_cmd.
6731 (info_command, show_command, set_debug, show_debug): Remove.
6732 * top.h (set_history, show_history): Don't declare.
6733 * top.c (set_history, show_history): Remove.
6734 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6735 (unset_tdesc_cmd): Remove.
6736 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6737 add_show_prefix_cmd.
6738 * symtab.c (info_module_command): Remove.
6739 (_initialize_symtab): Use add_basic_prefix_cmd.
6740 * symfile.c (overlay_command): Remove.
6741 (_initialize_symfile): Use add_basic_prefix_cmd.
6742 * sparc64-tdep.c (info_adi_command): Remove.
6743 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6744 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6745 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6746 add_show_prefix_cmd.
6747 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6748 (_initialize_serial): Use add_basic_prefix_cmd,
6749 add_show_prefix_cmd.
6750 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6751 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6752 add_show_prefix_cmd.
6753 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6754 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6755 add_show_prefix_cmd.
6756 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6757 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6758 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6759 add_show_prefix_cmd.
6760 * remote.c (remote_command, set_remote_cmd): Remove.
6761 (_initialize_remote): Use add_basic_prefix_cmd.
6762 * record-full.c (set_record_full_command)
6763 (show_record_full_command): Remove.
6764 (_initialize_record_full): Use add_basic_prefix_cmd,
6765 add_show_prefix_cmd.
6766 * record-btrace.c (cmd_set_record_btrace)
6767 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6768 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6769 (cmd_show_record_btrace_pt): Remove.
6770 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6771 add_show_prefix_cmd.
6772 * ravenscar-thread.c (set_ravenscar_command)
6773 (show_ravenscar_command): Remove.
6774 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6775 add_show_prefix_cmd.
6776 * mips-tdep.c (show_mips_command, set_mips_command)
6777 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6778 add_show_prefix_cmd.
6779 * maint.c (maintenance_command, maintenance_info_command)
6780 (maintenance_check_command, maintenance_print_command)
6781 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6782 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6783 add_show_prefix_cmd.
6784 (show_per_command_cmd): Remove.
6785 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6786 Remove.
6787 (maintenance_show_test_settings_cmd): Remove.
6788 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6789 add_show_prefix_cmd.
6790 * maint-test-options.c (maintenance_test_options_command):
6791 Remove.
6792 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6793 * macrocmd.c (macro_command): Remove
6794 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6795 * language.c (set_check, show_check): Remove.
6796 (_initialize_language): Use add_basic_prefix_cmd,
6797 add_show_prefix_cmd.
6798 * infcmd.c (unset_command): Remove.
6799 (_initialize_infcmd): Use add_basic_prefix_cmd.
6800 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6801 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6802 add_show_prefix_cmd.
6803 * go32-nat.c (go32_info_dos_command): Remove.
6804 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6805 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6806 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6807 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6808 (_initialize_frame): Use add_basic_prefix_cmd,
6809 add_show_prefix_cmd.
6810 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6811 (_initialize_dcache): Use add_basic_prefix_cmd,
6812 add_show_prefix_cmd.
6813 * cp-support.c (maint_cplus_command): Remove.
6814 (_initialize_cp_support): Use add_basic_prefix_cmd.
6815 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6816 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6817 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6818 add_basic_prefix_cmd, add_show_prefix_cmd.
6819 * breakpoint.c (save_command): Remove.
6820 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6821 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6822 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6823 add_show_prefix_cmd.
6824 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6825 (set_ada_command, show_ada_command): Remove.
6826 (_initialize_ada_language): Use add_basic_prefix_cmd,
6827 add_show_prefix_cmd.
6828 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6829
3557f442
KR
68302020-04-16 Kamil Rytarowski <n54@gmx.com>
6831
6832 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6833 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6834
16197208
SM
68352020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6836
6837 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6838 warning messages.
6839
00ac85d3
SM
68402020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6841
6842 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6843 import table is not at beginning of .idata section.
6844
381ce63f
PA
68452020-04-16 Pedro Alves <palves@redhat.com>
6846
6847 * inferior.c (delete_inferior): Use delete operator directly
6848 instead of delete_program_space.
6849 * progspace.c (add_program_space): New, factored out from
6850 program_space::program_space.
6851 (remove_program_space): New, factored out from
6852 delete_program_space.
6853 (program_space::program_space): Remove intro comment. Rewrite.
6854 (program_space::~program_space): Remove intro comment. Call
6855 remove_program_space.
6856 (delete_program_space): Delete.
6857 * progspace.h (program_space::program_space): Make explicit. Move
6858 intro comment here, adjusted.
6859 (program_space::~program_space): Move intro comment here,
6860 adjusted.
6861 (delete_program_space): Remove.
6862
a010605f
TT
68632020-04-16 Tom Tromey <tromey@adacore.com>
6864
6865 * windows-nat.c (windows_nat::handle_access_violation): New
6866 function.
6867 * nat/windows-nat.h (handle_access_violation): Declare.
6868 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6869 windows-nat.c. Call handle_access_violation.
6870
efba5c23
TV
68712020-04-16 Tom de Vries <tdevries@suse.de>
6872
6873 PR symtab/25791
6874 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6875 CUs without psymtab.
6876
97ed802d
KB
68772020-04-16 Kevin Buettner <kevinb@redhat.com>
6878
6879 * python/python.c (do_start_initialization): Don't call
6880 PyEval_InitThreads for Python 3.9 and beyond.
6881
c7d64809
KR
68822020-04-15 Kamil Rytarowski <n54@gmx.com>
6883
6884 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6885 thread functions.
6886 (obsd_nat_target::wait): Likewise.
6887
ce127a96
TT
68882020-04-15 Tom Tromey <tromey@adacore.com>
6889
6890 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6891 (DEBUG_EXCEPT): Use debug_printf.
6892
99f1bc6a
AB
68932020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6894
6895 * completer.c (class completion_tracker::completion_hash_entry)
6896 <hash_name>: New member function.
6897 (completion_tracker::discard_completions): New callback to hash a
6898 completion_hash_entry, pass this to htab_create_alloc.
6899
a0e9b532
JT
69002016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6901
6902 * windows-nat.c (windows_make_so): Warn rather than stopping with
6903 an error if realpath() fails.
6904
06ca5dd4
KR
69052020-04-14 Kamil Rytarowski <n54@gmx.com>
6906
6907 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6908 (nbsd_nat_target::info_proc): Add do_status.
6909
194d088f
TV
69102020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6911 Tom de Vries <tdevries@suse.de>
6912
6913 PR symtab/25718
6914 * psympriv.h (struct partial_symtab::read_symtab)
6915 (struct partial_symtab::expand_psymtab)
6916 (struct partial_symtab::read_dependencies): Update comments.
6917 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6918 read_symtab for includer.
6919 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6920 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6921 (struct dwarf2_include_psymtab::m_readin): Remove.
6922 (struct dwarf2_include_psymtab::includer): New member function.
6923 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6924
c1a66c06
TV
69252020-04-14 Tom de Vries <tdevries@suse.de>
6926
6927 PR symtab/25720
6928 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6929 with NULL symbol_matcher and lookup_name.
6930 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6931 and lookup_name.
6932 * dwarf2/read.c (dw2_expand_symtabs_matching)
6933 (dw2_debug_names_expand_symtabs_matching): Same.
6934 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6935 Make lookup_name a pointer. Update comment.
6936 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6937 lookup_name being a pointer.
6938 * symfile.c (expand_symtabs_matching): Same.
6939 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6940 * linespec.c (iterate_over_all_matching_symtabs): Same.
6941
400b5eca
TT
69422020-04-13 Tom Tromey <tom@tromey.com>
6943
6944 * run-on-main-thread.c: Update include.
6945 * unittests/main-thread-selftests.c: Update include.
6946 * tui/tui-win.c: Update include.
6947 * tui/tui-io.c: Update include.
6948 * tui/tui-interp.c: Update include.
6949 * tui/tui-hooks.c: Update include.
6950 * top.h: Update include.
6951 * top.c: Update include.
6952 * ser-base.c: Update include.
6953 * remote.c: Update include.
6954 * remote-notif.c: Update include.
6955 * remote-fileio.c: Update include.
6956 * record-full.c: Update include.
6957 * record-btrace.c: Update include.
6958 * python/python.c: Update include.
6959 * posix-hdep.c: Update include.
6960 * mingw-hdep.c: Update include.
6961 * mi/mi-main.c: Update include.
6962 * mi/mi-interp.c: Update include.
6963 * main.c: Update include.
6964 * linux-nat.c: Update include.
6965 * interps.c: Update include.
6966 * infrun.c: Update include.
6967 * inf-loop.c: Update include.
6968 * event-top.c: Update include.
6969 * event-loop.c: Move to ../gdbsupport/.
6970 * event-loop.h: Move to ../gdbsupport/.
6971 * async-event.h: Update include.
6972 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6973
93b54c8e
TT
69742020-04-13 Tom Tromey <tom@tromey.com>
6975
6976 * tui/tui-win.c: Include async-event.h.
6977 * remote.c: Include async-event.h.
6978 * remote-notif.c: Include async-event.h.
6979 * record-full.c: Include async-event.h.
6980 * record-btrace.c: Include async-event.h.
6981 * infrun.c: Include async-event.h.
6982 * event-top.c: Include async-event.h.
6983 * event-loop.h: Move some declarations to async-event.h.
6984 * event-loop.c: Don't include ser-event.h or top.h. Move some
6985 code to async-event.c.
6986 * async-event.h: New file.
6987 * async-event.c: New file.
6988 * Makefile.in (COMMON_SFILES): Add async-event.c.
6989 (HFILES_NO_SRCDIR): Add async-event.h.
6990
c1cd3163
TT
69912020-04-13 Tom Tromey <tom@tromey.com>
6992
6993 * utils.c (flush_streams): New function.
6994 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6995
29f2bf4f
TT
69962020-04-13 Tom Tromey <tom@tromey.com>
6997
6998 * event-loop.c (handle_file_event): Use warning, not
6999 printf_unfiltered.
7000
98029d02
TT
70012020-04-13 Tom Tromey <tom@tromey.com>
7002
7003 * event-loop.c: Include <chrono>.
7004
06cc9596
TT
70052020-04-13 Tom Tromey <tom@tromey.com>
7006
7007 * gdb_select.h: Move to ../gdbsupport/.
7008 * event-loop.c: Update include path.
7009 * top.c: Update include path.
7010 * ser-base.c: Update include path.
7011 * ui-file.c: Update include path.
7012 * ser-tcp.c: Update include path.
7013 * guile/scm-ports.c: Update include path.
7014 * posix-hdep.c: Update include path.
7015 * ser-unix.c: Update include path.
7016 * gdb_usleep.c: Update include path.
7017 * mingw-hdep.c: Update include path.
7018 * inflow.c: Update include path.
7019 * infrun.c: Update include path.
7020 * event-top.c: Update include path.
7021
8ae8e197
TT
70222020-04-13 Tom Tromey <tom@tromey.com>
7023
7024 * configure: Rebuild.
7025 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
7026
58cf28e8
TT
70272020-04-13 Tom Tromey <tom@tromey.com>
7028
7029 * event-loop.h (start_event_loop): Don't declare.
7030 * event-loop.c (start_event_loop): Move...
7031 * main.c (start_event_loop): ...here. Now static.
7032
b7f999ae
SDJ
70332020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
7034
7035 * MAINTAINERS: Update my email address.
7036
1085dfd4
KR
70372020-04-12 Kamil Rytarowski <n54@gmx.com>
7038
7039 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7040 IP_ALL.
7041
49d1d1f5
KR
70422020-04-12 Kamil Rytarowski <n54@gmx.com>
7043
7044 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 7045 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 7046
b4848d2a
KR
70472020-04-12 Kamil Rytarowski <n54@gmx.com>
7048
7049 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 7050 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 7051
51c133d5
KR
70522020-04-12 Kamil Rytarowski <n54@gmx.com>
7053
7054 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7055
54b8cbd0
KR
70562020-04-11 Kamil Rytarowski <n54@gmx.com>
7057
7058 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7059 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7060 (nbsd_nat_target::info_proc): New functions.
7061 * nbsd-nat.c (kinfo_get_vmmap): New function.
7062 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7063 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7064 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7065 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7066 functions.
7067 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7068 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7069 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7070 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7071 (KINFO_VME_FLAG_GROWS_DOWN): New.
7072
cf83625d
AS
70732020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7074
7075 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7076 bit shift.
7077
0c4311ab
TT
70782020-04-10 Tom Tromey <tromey@adacore.com>
7079
7080 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7081
3e65b3e9
TT
70822020-04-10 Tom Tromey <tromey@adacore.com>
7083
7084 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7085 separate debug files.
7086
13302e95
HD
70872020-04-10 Hannes Domani <ssbssa@yahoo.de>
7088
7089 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7090 Move to...
7091 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7092 ... here.
7093 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7094 Check for STATUS_WX86_BREAKPOINT.
7095 (windows_nat_target::wait): Same.
7096
bdfc1e8a
TV
70972020-04-10 Tom de Vries <tdevries@suse.de>
7098
7099 PR cli/25808
7100 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7101
f4460aec
SM
71022020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7103
7104 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7105 (Write After Approval): Remove Tom de Vries.
7106
a25198bb
BE
71072020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7108
7109 revert partially:
7110 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7111
aac66a4c
SM
7112 * buildsym.c (record_line): Fix undefined behavior and preserve
7113 lines at eof.
a25198bb 7114
206c98a6
KR
71152020-04-09 Kamil Rytarowski <n54@gmx.com>
7116
7117 * auxv.h (svr4_auxv_parse): New.
7118 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7119 and generic_auxv_parse.
7120 (svr4_auxv_parse): Add.
7121 * obsd-tdep.c: Include "auxv.h".
7122 (obsd_auxv_parse): Remove.
7123 (obsd_init_abi): Remove comment.
7124 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7125 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7126 * nbsd-tdep.c: Include "auxv.h".
7127 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7128
71fbdbaf
TT
71292020-04-08 Tom Tromey <tromey@adacore.com>
7130
7131 * nat/windows-nat.h (last_wait_event): Don't declare.
7132 (wait_for_debug_event): Update comment.
7133 * nat/windows-nat.c (last_wait_event): Now static.
7134
2c1d95e8
TT
71352020-04-08 Tom Tromey <tromey@adacore.com>
7136
7137 * windows-nat.c (wait_for_debug_event): Move to
7138 nat/windows-nat.c.
7139 * nat/windows-nat.h (wait_for_debug_event): Declare.
7140 * nat/windows-nat.c (wait_for_debug_event): Move from
7141 windows-nat.c. No longer static.
7142
d2977bc4
TT
71432020-04-08 Tom Tromey <tromey@adacore.com>
7144
7145 * windows-nat.c (get_windows_debug_event): Use
7146 fetch_pending_stop.
7147 * nat/windows-nat.h (fetch_pending_stop): Declare.
7148 * nat/windows-nat.c (fetch_pending_stop): New function.
7149
e758e19c
TT
71502020-04-08 Tom Tromey <tromey@adacore.com>
7151
7152 * windows-nat.c (windows_continue): Use matching_pending_stop and
7153 continue_last_debug_event.
7154 * nat/windows-nat.h (matching_pending_stop)
7155 (continue_last_debug_event): Declare.
7156 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7157 (matching_pending_stop, continue_last_debug_event): New
7158 functions.
7159
8d30e395
TT
71602020-04-08 Tom Tromey <tromey@adacore.com>
7161
7162 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7163 (handle_exception_result): Move to nat/windows-nat.h.
7164 (DEBUG_EXCEPTION_SIMPLE): Remove.
7165 (windows_nat::handle_ms_vc_exception): New function.
7166 (handle_exception): Move to nat/windows-nat.c.
7167 (get_windows_debug_event): Update.
7168 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7169 nat/windows-nat.c.
7170 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7171 (handle_exception_result): Move from windows-nat.c.
7172 (handle_exception): Declare.
7173 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7174 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7175 windows-nat.c.
7176
29de418d
TT
71772020-04-08 Tom Tromey <tromey@adacore.com>
7178
7179 * windows-nat.c (exception_count, event_count): Remove.
7180 (handle_exception, get_windows_debug_event)
7181 (do_initial_windows_stuff): Update.
7182
a816ba18
TT
71832020-04-08 Tom Tromey <tromey@adacore.com>
7184
7185 * windows-nat.c (windows_nat::handle_load_dll)
7186 (windows_nat::handle_unload_dll): Rename. No longer static.
7187 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7188 Declare.
7189
a00caa12
TT
71902020-04-08 Tom Tromey <tromey@adacore.com>
7191
7192 * complaints.h (stop_whining): Declare at top-level.
7193 (complaint): Don't declare stop_whining.
7194
d41b524f
TT
71952020-04-08 Tom Tromey <tromey@adacore.com>
7196
7197 * windows-nat.c (windows_nat::handle_output_debug_string):
7198 Rename. No longer static.
7199 * nat/windows-nat.h (handle_output_debug_string): Declare.
7200
3c76026d
TT
72012020-04-08 Tom Tromey <tromey@adacore.com>
7202
7203 * windows-nat.c (current_process_handle, current_process_id)
7204 (main_thread_id, last_sig, current_event, last_wait_event)
7205 (current_windows_thread, desired_stop_thread_id, pending_stops)
7206 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7207 (display_selectors, fake_create_process)
7208 (get_windows_debug_event): Update.
7209 * nat/windows-nat.h (current_process_handle, current_process_id)
7210 (main_thread_id, last_sig, current_event, last_wait_event)
7211 (current_windows_thread, desired_stop_thread_id, pending_stops)
7212 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7213 * nat/windows-nat.c (current_process_handle, current_process_id)
7214 (main_thread_id, last_sig, current_event, last_wait_event)
7215 (current_windows_thread, desired_stop_thread_id, pending_stops)
7216 (siginfo_er): New globals. Move from windows-nat.c.
7217
9d8679cc
TT
72182020-04-08 Tom Tromey <tromey@adacore.com>
7219
7220 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7221 (handle_load_dll): Update.
7222 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7223
28688adf
TT
72242020-04-08 Tom Tromey <tromey@adacore.com>
7225
7226 * windows-nat.c (enum thread_disposition_type): Move to
7227 nat/windows-nat.h.
7228 (windows_nat::thread_rec): Rename from thread_rec. No longer
7229 static.
7230 (windows_add_thread, windows_nat_target::fetch_registers)
7231 (windows_nat_target::store_registers, handle_exception)
7232 (windows_nat_target::resume, get_windows_debug_event)
7233 (windows_nat_target::get_tib_address)
7234 (windows_nat_target::thread_name)
7235 (windows_nat_target::thread_alive): Update.
7236 * nat/windows-nat.h (enum thread_disposition_type): Move from
7237 windows-nat.c.
7238 (thread_rec): Declare.
7239
4834dad0
TT
72402020-04-08 Tom Tromey <tromey@adacore.com>
7241
7242 * windows-nat.c: Add "using namespace".
7243 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7244 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7245
65bafd5b
TT
72462020-04-08 Tom Tromey <tromey@adacore.com>
7247
7248 * nat/windows-nat.h (struct windows_thread_info): Declare
7249 destructor.
7250 * nat/windows-nat.c (~windows_thread_info): New.
7251
0a4afda3
TT
72522020-04-08 Tom Tromey <tromey@adacore.com>
7253
7254 PR gdb/22992
7255 * windows-nat.c (current_event): Update comment.
7256 (last_wait_event, desired_stop_thread_id): New globals.
7257 (struct pending_stop): New.
7258 (pending_stops): New global.
7259 (windows_nat_target) <stopped_by_sw_breakpoint>
7260 <supports_stopped_by_sw_breakpoint>: New methods.
7261 (windows_fetch_one_register): Add assertions. Adjust PC.
7262 (windows_continue): Handle pending stops. Suspend other threads
7263 when stepping. Use last_wait_event
7264 (wait_for_debug_event): New function.
7265 (get_windows_debug_event): Use wait_for_debug_event. Handle
7266 pending stops. Queue spurious stops.
7267 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7268 (windows_nat_target::kill): Use wait_for_debug_event.
7269 * nat/windows-nat.h (struct windows_thread_info)
7270 <stopped_at_software_breakpoint>: New field.
7271 * nat/windows-nat.c (windows_thread_info::resume): Clear
7272 stopped_at_software_breakpoint.
7273
8e61ebec
TT
72742020-04-08 Tom Tromey <tromey@adacore.com>
7275
7276 * windows-nat.c (enum thread_disposition_type): New.
7277 (thread_rec): Replace "get_context" parameter with "disposition";
7278 change type.
7279 (windows_add_thread, windows_nat_target::fetch_registers)
7280 (windows_nat_target::store_registers, handle_exception)
7281 (windows_nat_target::resume, get_windows_debug_event)
7282 (windows_nat_target::get_tib_address)
7283 (windows_nat_target::thread_name)
7284 (windows_nat_target::thread_alive): Update.
7285
98a03287
TT
72862020-04-08 Tom Tromey <tromey@adacore.com>
7287
7288 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7289 (windows_continue): Use windows_continue::resume.
7290 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7291 resume>: Declare new methods.
7292 * nat/windows-nat.c: New file.
7293 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7294
7c7411bc
TT
72952020-04-08 Tom Tromey <tromey@adacore.com>
7296
7297 * windows-nat.c (windows_add_thread, windows_delete_thread)
7298 (windows_nat_target::fetch_registers)
7299 (windows_nat_target::store_registers, fake_create_process)
7300 (windows_nat_target::resume, windows_nat_target::resume)
7301 (get_windows_debug_event, windows_nat_target::wait)
7302 (windows_nat_target::pid_to_str)
7303 (windows_nat_target::get_tib_address)
7304 (windows_nat_target::get_ada_task_ptid)
7305 (windows_nat_target::thread_name)
7306 (windows_nat_target::thread_alive): Use lwp, not tid.
7307
2950fdf7
TT
73082020-04-08 Tom Tromey <tromey@adacore.com>
7309
7310 * windows-nat.c (handle_exception)
7311 (windows_nat_target::thread_name): Update.
7312 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7313 <name>: Now unique_xmalloc_ptr.
7314
62fe396b
TT
73152020-04-08 Tom Tromey <tromey@adacore.com>
7316
7317 * windows-nat.c (thread_rec)
7318 (windows_nat_target::fetch_registers): Update.
7319 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7320 Update comment.
7321 <debug_registers_changed, reload_context>: Now bool.
7322
e9534bd2
TT
73232020-04-08 Tom Tromey <tromey@adacore.com>
7324
7325 * windows-nat.c (windows_add_thread): Use new.
7326 (windows_init_thread_list, windows_delete_thread): Use delete.
7327 (get_windows_debug_event): Update.
7328 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7329 destructor, and initializers.
7330
ae1f8880
TT
73312020-04-08 Tom Tromey <tromey@adacore.com>
7332
7333 * windows-nat.c (struct windows_thread_info): Remove.
7334 * nat/windows-nat.h: New file.
7335
55a1e039
TT
73362020-04-08 Tom Tromey <tromey@adacore.com>
7337
7338 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7339 (thread_rec, windows_add_thread, windows_delete_thread)
7340 (windows_continue): Update.
7341
93366324
TT
73422020-04-08 Tom Tromey <tromey@adacore.com>
7343
7344 * windows-nat.c (struct windows_thread_info): Remove typedef.
7345 (thread_head): Remove.
7346 (thread_list): New global.
7347 (thread_rec, windows_add_thread, windows_init_thread_list)
7348 (windows_delete_thread, windows_continue): Update.
7349
0f2265e2
SM
73502020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7351
7352 * windows-tdep.h (windows_init_abi): Add comment.
7353 (cygwin_init_abi): New declaration.
7354 * windows-tdep.c: Split signal enumeration in two, one for
7355 Windows and one for Cygwin.
7356 (windows_gdb_signal_to_target): Only deal with signal of the
7357 Windows OS ABI.
7358 (cygwin_gdb_signal_to_target): New function.
7359 (windows_init_abi): Rename to windows_init_abi_common, don't set
7360 gdb_signal_to_target gdbarch method. Add new new function with
7361 this name.
7362 (cygwin_init_abi): New function.
7363 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7364 comment. Don't call windows_init_abi.
7365 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7366 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7367 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7368 i386_windows_init_abi_common, don't call windows_init_abi. Add
7369 a new function of this name.
7370 (i386_cygwin_init_abi): New function.
7371 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7372 OS ABI Cygwin.
7373
3810f182
SM
73742020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7375
7376 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7377 parameter.c.
7378 (dwarf2_read_gdb_index): Update.
7379
063f8e80
KR
73802020-04-07 Kamil Rytarowski <n54@gmx.com>
7381
7382 * nbsd-tdep.c: Include "objfiles.h".
7383 (nbsd_skip_solib_resolver): New.
7384 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7385
85a9510c 73862020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7387
7388 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7389 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7390 with DW_LLE_base_addressx are being emitted in DWARFv5.
7391 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7392 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7393 unsigned integer.
7394
9fc3eaae 73952020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7396
7397 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7398 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7399 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7400 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7401 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7402 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7403 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7404
7405
41144253 74062020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7407
7408 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7409 (read_loclist_index): New function definition.
7410 (lookup_loclist_base): New function definition.
7411 (read_loclist_header): New function definition.
7412 (dwarf2_cu): Add loclist_base and loclist_header field.
7413 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7414 (read_full_die_1): Read the value of DW_AT_loclists_base.
7415 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7416 (read_attribute_value): Handle DW_FORM_loclistx.
7417 (skip_one_die): Handle DW_FORM_loclistx.
7418 (loclist_header): New structure declaration.
7419 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7420
9f4e76a4
SM
74212020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7422
7423 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7424 constructor. Remove `addr` parameter from other constructor and
7425 add `per_cu` parameter.
7426 * dwarf2/read.c (create_partial_symtab): Update.
7427
25c11aca
TV
74282020-04-07 Tom de Vries <tdevries@suse.de>
7429
7430 PR symtab/25796
7431 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7432 (partial_die_info::fixup): Inherit has_const_value.
7433
5707e24b
TV
74342020-04-07 Tom de Vries <tdevries@suse.de>
7435
7436 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7437 symbols without address.
7438
05f00e22
KR
74392020-04-06 Kamil Rytarowski <n54@gmx.com>
7440
7441 * nbsd-nat.h (struct thread_info): Add forward declaration.
7442 (nbsd_nat_target::thread_alive): Add.
7443 (nbsd_nat_target::thread_name): Likewise.
7444 (nbsd_nat_target::update_thread_list): Likewise.
7445 (update_thread_list::post_attach): Likewise.
7446 (post_attach::pid_to_str): Likewise.
7447 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7448 (nbsd_thread_lister): Add.
7449 (nbsd_nat_target::thread_alive): Likewise.
7450 (nbsd_nat_target::thread_name): Likewise.
7451 (nbsd_add_threads): Likewise.
7452 (update_thread_list::post_attach): Likewise.
7453 (nbsd_nat_target::update_thread_list): Likewise.
7454 (post_attach::pid_to_str): Likewise.
7455
6ee448cc
TT
74562020-04-06 Tom Tromey <tromey@adacore.com>
7457
7458 * ada-valprint.c (print_variant_part): Extract the variant field.
7459 (print_field_values): Use the field as the outer value when
7460 recursing.
7461
dea34e8c
TT
74622020-04-06 Tom Tromey <tromey@adacore.com>
7463
7464 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7465 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7466 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7467 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7468 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7469
93689ce9
TT
74702020-04-06 Tom Tromey <tromey@adacore.com>
7471
7472 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7473 TYPE_CODE_ERROR.
7474
79743962
KR
74752020-04-06 Kamil Rytarowski <n54@gmx.com>
7476
7477 * nbsd-tdep.c: Include "gdbarch.h".
7478 Define enum with NetBSD signal numbers.
7479 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7480 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7481 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7482 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7483 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7484 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7485 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7486 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7487 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7488 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7489 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7490 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7491
9e7c9a03
HD
74922020-04-03 Hannes Domani <ssbssa@yahoo.de>
7493
7494 PR gdb/25325
7495 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7496
d9e49b61
TT
74972020-04-03 Tom Tromey <tromey@adacore.com>
7498
7499 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7500 Read constant block.
7501
e0fc5c3f
SM
75022020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7503
7504 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7505 (gdb_bfd_get_full_section_contents): New declaration.
7506 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7507 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7508 gdb_bfd_get_full_section_contents.
7509
e2ff18a0
SM
75102020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7511
7512 * exec.c (build_section_table): Replace internal_error with
7513 gdb_assert.
7514 (section_table_xfer_memory_partial): Likewise.
7515 * mdebugread.c (parse_partial_symbols): Likewise.
7516 * psymtab.c (lookup_partial_symbol): Likewise.
7517 * utils.c (wrap_here): Likewise.
7518
0830d301
TT
75192020-04-02 Tom Tromey <tromey@adacore.com>
7520
7521 * f-lang.c (build_fortran_types): Use arch_type to initialize
7522 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7523
e7da7f8f
TT
75242020-04-02 Tom Tromey <tromey@adacore.com>
7525
7526 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7527 of attributes.
7528
c90d28ac
AB
75292020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7530 Bernd Edlinger <bernd.edlinger@hotmail.de>
7531 Tom Tromey <tromey@adacore.com>
7532
7533 * buildsym.c (buildsym_compunit::record_line): Remove
7534 deduplication code.
7535
1aa98955
TV
75362020-04-02 Tom de Vries <tdevries@suse.de>
7537
7538 PR ada/24671
7539 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7540
d3214198
TV
75412020-04-02 Tom de Vries <tdevries@suse.de>
7542
7543 * dwarf2/read.c (dwarf2_gdb_index_functions,
7544 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7545 NULL.
7546 * psymtab.c (psym_lookup_global_symbol_language): New function.
7547 (psym_functions): Init psym_lookup_global_symbol_language with
7548 psym_lookup_global_symbol_language.
7549 * symfile-debug.c (debug_sym_quick_functions): Init
7550 lookup_global_symbol_language with NULL.
7551 * symfile.c (set_initial_language): Remove fixme comment.
7552 * symfile.h (struct quick_symbol_functions): Add
7553 lookup_global_symbol_language.
7554 * symtab.c (find_quick_global_symbol_language): New function.
7555 (find_main_name): Use find_quick_global_symbol_language.
7556
2836752f
SM
75572020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7558
7559 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7560
64dc2d4b
BE
75612020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7562
7563 * buildsym.c (record_line): Fix undefined behavior and preserve
7564 lines at eof.
7565
bbe3dc41
BE
75662020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7567
7568 * buildsym.c (record_line): Fix the resizing condition.
7569
6b4a335b
TT
75702020-04-01 Tom Tromey <tom@tromey.com>
7571
7572 * value.h (value_literal_complex): Add comment.
7573 * valops.c (value_literal_complex): Refer to value.h.
7574
3638a098
TT
75752020-04-01 Tom Tromey <tom@tromey.com>
7576
7577 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7578 (scalar_type): New rule, from typebase.
7579 (typebase): Use scalar_type. Recognize complex types.
7580 (field_name): Handle FLOAT_KEYWORD.
7581 (ident_tokens): Add _Complex and __complex__.
7582
c34e8714
TT
75832020-04-01 Tom Tromey <tom@tromey.com>
7584
7585 PR exp/25299:
7586 * valarith.c (promotion_type, complex_binop): New functions.
7587 (scalar_binop): Handle complex numbers. Use promotion_type.
7588 (value_pos, value_neg, value_complement): Handle complex numbers.
7589
fa649bb7
TT
75902020-04-01 Tom Tromey <tom@tromey.com>
7591
7592 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7593 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7594 (parse_number): Handle complex numbers.
7595
981c08ce
TT
75962020-04-01 Tom Tromey <tom@tromey.com>
7597
7598 * c-valprint.c (c_decorations): Change complex suffix to "i".
7599
4c99290d
TT
76002020-04-01 Tom Tromey <tom@tromey.com>
7601
7602 * valprint.c (generic_value_print_complex): Use accessors.
7603 * value.h (value_real_part, value_imaginary_part): Declare.
7604 * valops.c (value_real_part, value_imaginary_part): New
7605 functions.
7606 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7607
5b930b45
TT
76082020-04-01 Tom Tromey <tom@tromey.com>
7609
7610 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7611 (read_range_type): Update.
7612 * mdebugread.c (basic_type): Update.
7613 * go-lang.c (build_go_types): Use init_complex_type.
7614 * gdbtypes.h (struct main_type) <complex_type>: New member.
7615 (init_complex_type): Update.
7616 (arch_complex_type): Don't declare.
7617 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7618 Make name if none given. Use alloc_type_copy. Look for cached
7619 complex type.
7620 (arch_complex_type): Remove.
7621 (gdbtypes_post_init): Use init_complex_type.
7622 * f-lang.c (build_fortran_types): Use init_complex_type.
7623 * dwarf2/read.c (read_base_type): Update.
7624 * d-lang.c (build_d_types): Use init_complex_type.
7625 * ctfread.c (read_base_type): Update.
7626
53cccef1
TBA
76272020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7628
7629 * infrun.c (stop_all_threads): Update assertion, plus when
7630 stopping threads, take into account that we might be trying
7631 to stop an all-stop target.
7632 (stop_waiting): Call 'stop_all_threads' if there exists a
7633 non-stop target.
7634
a0714d30
TBA
76352020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7636
7637 * target.h (exists_non_stop_target): New function declaration.
7638 * target.c (exists_non_stop_target): New function.
7639
60e22c1e
HD
76402020-04-01 Hannes Domani <ssbssa@yahoo.de>
7641
7642 PR gdb/24789
7643 * eval.c (is_integral_or_integral_reference): New function.
7644 (evaluate_subexp_standard): Allow integer references in
7645 pointer arithmetic.
7646
e139a727
TBA
76472020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7648
7649 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7650 check for no ptid in the stop reply when the target is non-stop.
7651
e0802d59
TT
76522020-04-01 Tom Tromey <tromey@adacore.com>
7653
7654 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7655 "name" parameter to rvalue reference. Initialize m_name_holder.
7656 <lookup_name_info>: New overloads.
7657 <name>: Return gdb::string_view.
7658 <c_str>: New method.
7659 <make_ignore_params>: Update.
7660 <search_name_hash>: Update.
7661 <language_lookup_name>: Return const char *.
7662 <m_name>: Change type.
7663 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7664 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7665 (lookup_name_info::match_any): Update.
7666 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7667 Update.
7668 * minsyms.c (linkage_name_str): Update.
7669 * language.c (default_symbol_name_matcher): Update.
7670 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7671 Update.
7672 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7673 (ada_lookup_name_info::ada_lookup_name_info): Update.
7674 (literal_symbol_name_matcher): Update.
7675
8c072cb6
TT
76762020-04-01 Tom Tromey <tromey@adacore.com>
7677
7678 * psymtab.c (psymtab_search_name): Remove function.
7679 (psym_lookup_symbol): Create search name and lookup name here.
7680 (lookup_partial_symbol): Remove "name" parameter; add
7681 lookup_name.
7682 (psym_expand_symtabs_for_function): Update.
7683
6f29a534
TT
76842020-03-31 Joel Jones <joelkevinjones@gmail.com>
7685
7686 PR tui/25597:
7687 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7688
af62665e
TT
76892020-03-31 Tom Tromey <tromey@adacore.com>
7690
7691 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7692 memcpy.
7693
d1a89da5
NC
76942020-03-30 Nelson Chu <nelson.chu@sifive.com>
7695
7696 * features/riscv/32bit-csr.xml: Regenerated.
7697 * features/riscv/64bit-csr.xml: Regenerated.
7698
d8af9068
TT
76992020-03-30 Tom Tromey <tromey@adacore.com>
7700
7701 * ada-valprint.c (print_variant_part): Update.
7702 * ada-lang.h (ada_which_variant_applies): Update.
7703 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7704 outer_valaddr parameters; replace with "outer" value parameter.
7705 (to_fixed_variant_branch_type): Update.
7706
227c0bf4
PFC
77072020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7708
7709 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7710 <list>. Remove inclusion of observable.h.
7711 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7712 (struct arch_lwp_info): New struct.
7713 (class ppc_linux_dreg_interface): New class.
7714 (struct ppc_linux_process_info): New struct.
7715 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7716 <low_new_clone, low_forget_process, low_prepare_to_resume>
7717 <copy_thread_dreg_state, mark_thread_stale>
7718 <mark_debug_registers_changed, register_hw_breakpoint>
7719 <clear_hw_breakpoint, register_wp, clear_wp>
7720 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7721 <num_memory_accesses, get_trigger_type>
7722 <create_watchpoint_request, hwdebug_point_cmp>
7723 <init_arch_lwp_info, get_arch_lwp_info>
7724 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7725 methods.
7726 <struct ptid_hash>: New inner struct.
7727 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7728 members.
7729 (saved_dabr_value, hwdebug_info, max_slots_number)
7730 (struct hw_break_tuple, struct thread_points, ppc_threads)
7731 (have_ptrace_hwdebug_interface)
7732 (hwdebug_find_thread_points_by_tid)
7733 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7734 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7735 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7736 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7737 use m_dreg_interface.
7738 (hwdebug_point_cmp): Change to...
7739 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7740 reference arguments instead of pointers.
7741 (ppc_linux_nat_target::ranged_break_num_registers): Use
7742 m_dreg_interface.
7743 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7744 m_dreg_interface. Call register_hw_breakpoint.
7745 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7746 m_dreg_interface. Call clear_hw_breakpoint.
7747 (get_trigger_type): Change to...
7748 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7749 comment.
7750 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7751 use m_dreg_interface. Call register_hw_breakpoint.
7752 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7753 use m_dreg_interface. Call clear_hw_breakpoint.
7754 (can_use_watchpoint_cond_accel): Change to...
7755 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7756 method. Update comment, use m_dreg_interface and
7757 m_process_info.
7758 (calculate_dvc): Change to...
7759 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7760 m_dreg_interface.
7761 (num_memory_accesses): Change to...
7762 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7763 (check_condition): Change to...
7764 (ppc_linux_nat_target::check_condition): ...this method.
7765 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7766 comment, use m_dreg_interface.
7767 (create_watchpoint_request): Change to...
7768 (ppc_linux_nat_target::create_watchpoint_request): ...this
7769 method. Use m_dreg_interface.
7770 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7771 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7772 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7773 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7774 (ppc_linux_nat_target::low_forget_process)
7775 (ppc_linux_nat_target::low_new_fork)
7776 (ppc_linux_nat_target::low_new_clone)
7777 (ppc_linux_nat_target::low_delete_thread)
7778 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7779 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7780 only call mark_thread_stale.
7781 (ppc_linux_thread_exit): Remove.
7782 (ppc_linux_nat_target::stopped_data_address): Change to...
7783 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7784 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7785 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7786 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7787 comment. Call low_stopped_data_address.
7788 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7789 m_dreg_interface.
7790 (ppc_linux_nat_target::masked_watch_num_registers): Use
7791 m_dreg_interface.
7792 (ppc_linux_nat_target::copy_thread_dreg_state)
7793 (ppc_linux_nat_target::mark_thread_stale)
7794 (ppc_linux_nat_target::mark_debug_registers_changed)
7795 (ppc_linux_nat_target::register_hw_breakpoint)
7796 (ppc_linux_nat_target::clear_hw_breakpoint)
7797 (ppc_linux_nat_target::register_wp)
7798 (ppc_linux_nat_target::clear_wp)
7799 (ppc_linux_nat_target::init_arch_lwp_info)
7800 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7801 (_initialize_ppc_linux_nat): Remove observer callback.
7802
4db10d8f
PFC
78032020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7804
7805 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7806 (ppc_linux_nat_target::auxv_parse)
7807 (ppc_linux_nat_target::read_description)
7808 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7809 Move up.
7810
1310c1b0
PFC
78112020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7812
7813 * linux-nat.h (low_new_clone): New method.
7814 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7815
69b037c3
SM
78162020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7817
7818 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7819 (dbx_expand_psymtab): ... this.
7820 (start_psymtab): Update.
7821 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7822 (mdebug_expand_psymtab): ... this.
7823 (parse_partial_symbols): Update.
7824 (new_psymtab): Update.
7825 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7826 (xcoff_expand_psymtab): ... this.
7827 (xcoff_start_psymtab): Update.
7828
48993951
SM
78292020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7830
7831 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7832 <expand_dependencies>: ... this.
7833 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7834 (partial_symtab::expand_dependencies): ... this.
7835 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7836 Update.
7837 (dwarf2_psymtab::expand_psymtab): Update.
7838 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7839 * mdebugread.c (psymtab_to_symtab_1): Update.
7840 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7841
3ad83046
SM
78422020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7843
7844 * psympriv.h (discard_psymtab): Remove.
7845 * dbxread.c (dbx_end_psymtab): Update.
7846 * xcoffread.c (xcoff_end_psymtab): Update.
7847
4d1b9ab6
TT
78482020-03-28 Tom Tromey <tom@tromey.com>
7849
7850 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7851 comment.
7852
f1749218
TT
78532020-03-28 Tom Tromey <tom@tromey.com>
7854
7855 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7856
ebea7626
HD
78572020-03-27 Hannes Domani <ssbssa@yahoo.de>
7858
7859 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7860
a879b4d5
JB
78612020-03-26 John Baldwin <jhb@FreeBSD.org>
7862
7863 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7864
0826b30a
TT
78652020-03-26 Tom Tromey <tom@tromey.com>
7866
7867 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7868 (mark_common_block_symbol_computed, read_tag_string_type)
7869 (attr_to_dynamic_prop, read_subrange_type): Update.
7870 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7871 to be methods on struct attribute.
7872 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7873 (read_call_site_scope, partial_die_info::read)
7874 (partial_die_info::read, lookup_die_type, follow_die_ref):
7875 Update.
7876 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7877 from dwarf2_get_ref_die_offset.
7878 (attribute::constant_value): New method, from
7879 dwarf2_get_attr_constant_value.
7880 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7881 Declare method.
7882 <constant_value>: New method.
7883
2b2558bf
TT
78842020-03-26 Tom Tromey <tom@tromey.com>
7885
7886 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7887 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7888 (dwarf_type_encoding_name): Move to stringify.c.
7889 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7890 * dwarf2/stringify.c: New file.
7891 * dwarf2/stringify.h: New file.
7892
eeb64781
TT
78932020-03-26 Tom Tromey <tom@tromey.com>
7894
7895 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7896 Rewrite.
7897
a39fdb41
TT
78982020-03-26 Tom Tromey <tom@tromey.com>
7899
7900 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7901 methods.
7902 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7903 (lookup_ranges_base): Likewise.
7904 (read_cutu_die_from_dwo, read_full_die_1): Update.
7905
436c571c
TT
79062020-03-26 Tom Tromey <tom@tromey.com>
7907
7908 * dwarf2/read.c (read_import_statement, read_file_scope)
7909 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7910 (read_lexical_block_scope, read_call_site_scope)
7911 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7912 (handle_struct_member_die, process_structure_scope)
7913 (update_enumeration_type_from_children)
7914 (process_enumeration_scope, read_array_type, read_common_block)
7915 (read_namespace, read_module, read_subroutine_type): Update.
7916 (sibling_die): Remove.
7917
052c8bb8
TT
79182020-03-26 Tom Tromey <tom@tromey.com>
7919
7920 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7921 (build_type_psymtabs_reader, read_structure_type)
7922 (read_enumeration_type, read_full_die_1): Update.
7923 (dwarf2_attr_no_follow): Move to die.h.
7924 * dwarf2/die.h (struct die_info) <attr>: New method.
7925
2b24b6e4
TT
79262020-03-26 Tom Tromey <tom@tromey.com>
7927
7928 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7929 <base_address>: Now an optional.
7930 (dwarf2_find_base_address, dwarf2_rnglists_process)
7931 (dwarf2_ranges_process, fill_in_loclist_baton)
7932 (dwarf2_symbol_mark_computed): Update.
7933
c2d50fd0
TT
79342020-03-26 Tom Tromey <tom@tromey.com>
7935
7936 * dwarf2/read.c (struct die_info): Move to die.h.
7937 * dwarf2/die.h: New file.
7938
0df7ad3a
TT
79392020-03-26 Tom Tromey <tom@tromey.com>
7940
7941 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7942 * dwarf2/read.c
7943 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7944 Move to line-header.c.
7945 (read_checked_initial_length_and_offset, read_formatted_entries):
7946 Likewise.
7947 (dwarf_decode_line_header): Split into two.
7948 * dwarf2/line-header.c
7949 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7950 Move from read.c.
7951 (read_checked_initial_length_and_offset, read_formatted_entries):
7952 Likewise.
7953 (dwarf_decode_line_header): New function, split from read.c.
7954
86c0bb4c
TT
79552020-03-26 Tom Tromey <tom@tromey.com>
7956
7957 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7958 Declare method.
7959 * dwarf2/read.c (read_attribute_value): Update.
7960 (dwarf2_per_objfile::read_line_string): Rename from
7961 read_indirect_line_string.
7962 (read_formatted_entries): Update.
7963
2ef46c2f
TT
79642020-03-26 Tom Tromey <tom@tromey.com>
7965
7966 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7967 variable.
7968
4f9c1eda
TT
79692020-03-26 Tom Tromey <tom@tromey.com>
7970
7971 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7972 const.
7973 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7974 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7975 parameter const.
7976
5a0e026f
TT
79772020-03-26 Tom Tromey <tom@tromey.com>
7978
7979 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7980 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7981 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7982 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7983
8844c11b
TT
79842020-03-26 Tom Tromey <tom@tromey.com>
7985
7986 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7987 file_names_size, file_full_name, file_file_name>: Use const.
7988 <file_name_at, file_names>: Add const overload.
7989 * dwarf2/line-header.c (line_header::file_file_name)
7990 (line_header::file_full_name): Update.
7991
c90ec28a
TT
79922020-03-26 Tom Tromey <tom@tromey.com>
7993
7994 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7995 (macro_start_file, consume_improper_spaces)
7996 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7997 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7998 (dwarf_decode_macros): Move to macro.c.
7999 * dwarf2/macro.c: New file.
8000 * dwarf2/macro.h: New file.
8001 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
8002
4f44ae6c
TT
80032020-03-26 Tom Tromey <tom@tromey.com>
8004
8005 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
8006 method.
8007 * dwarf2/section.c: New method. From
8008 read_indirect_string_at_offset_from.
8009 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
8010 (read_indirect_string_at_offset_from): Move to section.c.
8011 (read_indirect_string_at_offset): Rewrite.
8012 (read_indirect_line_string_at_offset): Remove.
8013 (read_indirect_string, read_indirect_line_string)
8014 (dwarf_decode_macro_bytes): Update.
8015
a0194fa8
TT
80162020-03-26 Tom Tromey <tom@tromey.com>
8017
8018 * dwarf2/section.h (struct dwarf2_section_info)
8019 <overload_complaint>: Declare.
8020 (dwarf2_section_buffer_overflow_complaint): Don't declare.
8021 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
8022 Rename from dwarf2_section_buffer_overflow_complaint.
8023 * dwarf2/read.c (skip_one_die, partial_die_info::read)
8024 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
8025
3d27bbdb
TT
80262020-03-26 Tom Tromey <tom@tromey.com>
8027
8028 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
8029 Declare.
8030 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
8031 Move from read.c.
8032 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
8033 to section.c.
8034
9eac9650
TT
80352020-03-26 Tom Tromey <tom@tromey.com>
8036
8037 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
8038
bf80d710
TT
80392020-03-26 Tom Tromey <tom@tromey.com>
8040
8041 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8042 "builder".
8043 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8044 parameter.
8045 (dwarf_decode_macros): Update.
8046
0314b390
TT
80472020-03-26 Tom Tromey <tom@tromey.com>
8048
8049 * dwarf2/read.c (read_attribute_value): Update.
8050 (read_indirect_string_from_dwz): Move to dwz.c; change into
8051 method.
8052 (dwarf_decode_macro_bytes): Update.
8053 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8054 * dwarf2/dwz.c: New file.
8055 * Makefile.in (COMMON_SFILES): Add dwz.c.
8056
9fda78b6
TT
80572020-03-26 Tom Tromey <tom@tromey.com>
8058
8059 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8060 * dwarf2/read.c: Add include.
8061 * dwarf2/index-write.c: Add include.
8062 * dwarf2/index-cache.c: Add include.
8063 * dwarf2/dwz.h: New file.
8064
33aa3c10
TT
80652020-03-25 Tom Tromey <tom@tromey.com>
8066
8067 * compile/compile-object-load.c (get_out_value_type): Mention
8068 correct symbol name in error message.
8069
d503b685
HD
80702020-03-25 Hannes Domani <ssbssa@yahoo.de>
8071
8072 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8073
7b1eff95
TV
80742020-03-25 Tom de Vries <tdevries@suse.de>
8075
8076 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8077 * symmisc.c (dump_symtab_1): Print user and includes fields.
8078 (maintenance_info_symtabs): Same.
8079
dd895392
AB
80802020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8081
8082 PR gdb/25534
8083 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8084 (riscv_regcache_cooked_write): New function.
8085 (riscv_push_dummy_call): Use new function.
8086 (riscv_return_value): Likewise.
8087
5ab2fbf1
SM
80882020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8089
8090 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8091 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8092 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8093 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8094 * infrun.c (follow_fork): Likewise.
8095 (follow_fork_inferior): Likewise.
8096 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8097 * linux-nat.h (class linux_nat_target): Likewise.
8098 * remote.c (class remote_target) <follow_fork>: Likewise.
8099 (remote_target::follow_fork): Likewise.
8100 * target-delegates.c: Re-generate.
8101 * target.c (default_follow_fork): Likewise.
8102 (target_follow_fork): Likewise.
8103 * target.h (struct target_ops) <follow_fork>: Likewise.
8104 (target_follow_fork): Likewise.
8105
a64fafb5
TV
81062020-03-24 Tom de Vries <tdevries@suse.de>
8107
8108 * psymtab.c (maintenance_info_psymtabs): Print user field.
8109
fe26d3a3
TT
81102020-03-20 Tom Tromey <tromey@adacore.com>
8111
8112 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8113 const.
8114 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8115 const.
8116
c884cc46
SM
81172020-03-20 Simon Marchi <simon.marchi@efficios.com>
8118
8119 * ptrace.m4: Don't check for ptrace declaration.
8120 * config.in: Re-generate.
8121 * configure: Re-generate.
8122 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8123 not defined.
8124
1ff700c2
KR
81252020-03-20 Kamil Rytarowski <n54@gmx.com>
8126
8127 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8128 `PTRACE_TYPE_RET'.
8129 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8130 * sparc-nat.c (gdb_ptrace): Likewise.
8131 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8132
f7d4f0b1
TT
81332020-03-20 Tom Tromey <tromey@adacore.com>
8134
8135 * c-exp.y (lex_one_token): Fix assert.
8136
f67210ff
TT
81372020-03-20 Tom Tromey <tromey@adacore.com>
8138
8139 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8140 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8141 strncpy call.
8142
1773be9e
TT
81432020-03-20 Tom Tromey <tromey@adacore.com>
8144
8145 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8146
70304be9
TT
81472020-03-20 Tom Tromey <tromey@adacore.com>
8148
8149 * ada-valprint.c (print_variant_part): Remove parameters; switch
8150 to value-based API.
8151 (print_field_values): Likewise.
8152 (ada_val_print_struct_union): Likewise.
8153 (ada_value_print_1): Update.
8154
9faa006d
KR
81552020-03-20 Kamil Rytarowski <n54@gmx.com>
8156
8157 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8158 nbsd_nat_target instead of inf_ptrace_target.
8159 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8160 nbsd_nat_target.
8161
4a90f062
KR
81622020-03-20 Kamil Rytarowski <n54@gmx.com>
8163
8164 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8165 it to the ptrace call.
8166 * (store_registers): Likewise.
8167
81682020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
8169
8170 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8171 it to the ptrace call.
8172 * (store_registers): Likewise.
8173
2d07da27
LM
81742020-03-19 Luis Machado <luis.machado@linaro.org>
8175
8176 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8177 valid, fetch vg value from ptrace.
8178
f09db380
KR
81792020-03-19 Kamil Rytarowski <n54@gmx.com>
8180 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8181 * inf-ptrace.c: Likewise.
8182 * (gdb_ptrace): Add.
8183 * (inf_ptrace_target::resume): Update.
8184 * (inf_ptrace_target::xfer_partial): Likewise.
8185 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8186 * (inf_ptrace_peek_poke): Update.
8187
fcc7376e
KR
81882020-03-19 Kamil Rytarowski <n54@gmx.com>
8189
8190 * x86-bsd-nat.c (gdb_ptrace): New.
8191 * (x86bsd_dr_set): Add new argument `ptid'.
8192 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8193 x86bsd_dr_set_addr): Update.
8194
cada5fc9
AB
81952020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8196
8197 * remote.c (remote_target::process_stop_reply): Handle events for
8198 all threads differently.
8199
19a2740f
AB
82002020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8201
8202 * completer.c (completion_tracker::remove_completion): Define new
8203 function.
8204 * completer.h (completion_tracker::remove_completion): Declare new
8205 function.
8206 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8207 when adding a C++ function symbol.
8208
724fd9ba
AB
82092020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8210
8211 * completer.c (completion_tracker::completion_hash_entry): Define
8212 new class.
8213 (advance_to_filename_complete_word_point): Call
8214 recompute_lowest_common_denominator.
8215 (completion_tracker::completion_tracker): Call discard_completions
8216 to setup the hash table.
8217 (completion_tracker::discard_completions): Allow for being called
8218 from the constructor, pass new equal function, and element deleter
8219 when constructing the hash table. Initialise new class member
8220 variables.
8221 (completion_tracker::maybe_add_completion): Remove use of
8222 m_entries_vec, and store more information into m_entries_hash.
8223 (completion_tracker::recompute_lcd_visitor): New function, most
8224 content taken from...
8225 (completion_tracker::recompute_lowest_common_denominator):
8226 ...here, this now just visits each item in the hash calling the
8227 above visitor.
8228 (completion_tracker::build_completion_result): Remove use of
8229 m_entries_vec, call recompute_lowest_common_denominator.
8230 * completer.h (completion_tracker::have_completions): Remove use
8231 of m_entries_vec.
8232 (completion_tracker::completion_hash_entry): Declare new class.
8233 (completion_tracker::recompute_lowest_common_denominator): Change
8234 function signature.
8235 (completion_tracker::recompute_lcd_visitor): Declare new function.
8236 (completion_tracker::m_entries_vec): Delete.
8237 (completion_tracker::m_entries_hash): Initialize to NULL.
8238 (completion_tracker::m_lowest_common_denominator_valid): New
8239 member variable.
8240 (completion_tracker::m_lowest_common_denominator_max_length): New
8241 member variable.
8242
5a82b8a1
KR
82432020-03-17 Kamil Rytarowski <n54@gmx.com>
8244
8245 * regformats/regdef.h: Put reg in gdb namespace.
8246
fb516a69
KR
82472020-03-17 Kamil Rytarowski <n54@gmx.com>
8248
8249 * i386-bsd-nat.c (gdb_ptrace): New.
8250 * (i386bsd_fetch_inferior_registers,
8251 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8252 * (i386bsd_fetch_inferior_registers,
8253 i386bsd_store_inferior_registers) Use gdb_ptrace.
8254
1c0aa1fb
KR
82552020-03-17 Kamil Rytarowski <n54@gmx.com>
8256
8257 * amd64-bsd-nat.c (gdb_ptrace): New.
8258 * (amd64bsd_fetch_inferior_registers,
8259 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8260 * (amd64bsd_fetch_inferior_registers,
8261 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8262
5ccd2fb7
KR
82632020-03-17 Kamil Rytarowski <n54@gmx.com>
8264
8265 * user-regs.c (user_reg::read): Rename to...
8266 (user_reg::xread): ...this.
8267 * (append_user_reg): Rename argument `read' to `xread'.
8268 * (user_reg_add_builtin): Likewise.
8269 * (user_reg_add): Likewise.
8270 * (value_of_user_reg): Likewise.
8271
2108a63a
KR
82722020-03-17 Kamil Rytarowski <n54@gmx.com>
8273
8274 * sparc-nat.c (gdb_ptrace): New.
8275 * sparc-nat.c (sparc_fetch_inferior_registers)
8276 (sparc_store_inferior_registers) Remove obsolete comment.
8277 * sparc-nat.c (sparc_fetch_inferior_registers)
8278 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8279 * sparc-nat.c (sparc_fetch_inferior_registers)
8280 (sparc_store_inferior_registers) Use gdb_ptrace.
8281
a225c9a8
KR
82822020-03-17 Kamil Rytarowski <n54@gmx.com>
8283
8284 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8285 it to the ptrace call.
8286 * sh-nbsd-nat.c (store_registers): Likewise.
8287
98097623
KR
82882020-03-17 Kamil Rytarowski <n54@gmx.com>
8289
8290 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8291 nbsd_nat_target instead of inf_ptrace_target.
8292 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8293 nbsd_nat_target.
8294
9e38d619
KR
82952020-03-17 Kamil Rytarowski <n54@gmx.com>
8296
8297 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8298
a2ecbe9f
KR
82992020-03-17 Kamil Rytarowski <n54@gmx.com>
8300
8301 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8302 <sys/sysctl.h>.
8303 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8304
58990295
TV
83052020-03-17 Tom de Vries <tdevries@suse.de>
8306
8307 PR gdb/23710
8308 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8309 fields.
8310 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8311 fields.
8312 (process_imported_unit_die): Skip import of c++ CUs.
8313
771dd3a8
TT
83142020-03-16 Tom Tromey <tom@tromey.com>
8315
8316 * p-valprint.c (pascal_object_print_value): Initialize
8317 base_value.
8318
817a7585
AK
83192020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8320 Shahab Vahedi <shahab@synopsys.com>
8321
8322 * Makefile.in: Add arch/arc.o
8323 * configure.tgt: Likewise.
8324 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8325 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 8326 (arc_read_description): New function to cache target descriptions.
817a7585
AK
8327 * arc-tdep.h (arc_read_description): Add proto type.
8328 * arch/arc.c: New file.
8329 * arch/arc.h: Likewise.
8330 * features/Makefile: Replace old target descriptions with new.
8331 * features/arc-arcompact.c: Remove.
8332 * features/arc-arcompact.xml: Likewise.
8333 * features/arc-v2.c: Likewise
8334 * features/arc-v2.xml: Likewise
8335 * features/arc/aux-arcompact.xml: New file.
8336 * features/arc/aux-v2.xml: Likewise.
8337 * features/arc/core-arcompact.xml: Likewise.
8338 * features/arc/core-v2.xml: Likewise.
8339 * features/arc/aux-arcompact.c: Generate.
8340 * features/arc/aux-v2.c: Likewise.
8341 * features/arc/core-arcompact.c: Likewise.
8342 * features/arc/core-v2.c: Likewise.
8343 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8344
67430cd0
TT
83452020-03-16 Tom Tromey <tromey@adacore.com>
8346
8347 PR gdb/25663:
8348 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8349 putting value into bcache.
8350
30efb6c7
SM
83512020-03-16 Simon Marchi <simon.marchi@efficios.com>
8352
8353 PR gdb/21500
8354 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8355 to...
8356 (amd64_windows_init_abi_common): ... this. Don't set size of
8357 long type.
8358 (amd64_windows_init_abi): New function.
8359 (amd64_cygwin_init_abi): New function.
8360 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8361 the Cygwin OS ABI.
8362 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8363 comment.
8364
8db52437
SM
83652020-03-16 Simon Marchi <simon.marchi@efficios.com>
8366
8367 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8368 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8369 (pe_import_directory_entry): New struct type.
8370 (is_linked_with_cygwin_dll): New function.
8371 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8372 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8373 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8374
5982a56a
SM
83752020-03-16 Simon Marchi <simon.marchi@efficios.com>
8376
8377 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8378 i386_cygwin_core_osabi_sniffer.
8379
7a1998df
SM
83802020-03-16 Simon Marchi <simon.marchi@efficios.com>
8381
8382 * i386-cygwin-tdep.c: Rename to...
8383 * i386-windows-tdep.c: ... this.
8384 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8385 i386-windows-tdep.c.
8386 * configure.tgt: Likewise.
8387
053205cc
SM
83882020-03-16 Simon Marchi <simon.marchi@efficios.com>
8389
8390 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8391 * osabi.c (gdb_osabi_names): Add "Windows".
8392 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8393 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8394 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8395 i386_cygwin_osabi_sniffer.
8396 (_initialize_i386_cygwin_tdep): Register OS ABI
8397 GDB_OSABI_WINDOWS for i386.
8398 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8399 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8400 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8401 for x86-64.
8402 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8403 when the target matches '*-*-mingw*'.
8404
fe4b2ee6
SM
84052020-03-16 Simon Marchi <simon.marchi@efficios.com>
8406
8407 * defs.h (enum gdb_osabi): Move to...
8408 * osabi.h (enum gdb_osabi): ... here.
8409 * gdbarch.sh: Include osabi.h in gdbarch.h.
8410 * gdbarch.h: Re-generate.
8411
cb9b645d
SM
84122020-03-16 Simon Marchi <simon.marchi@efficios.com>
8413
8414 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8415 function.
8416 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8417
3293bbaf
TT
84182020-03-14 Tom Tromey <tom@tromey.com>
8419
8420 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8421 for C++.
8422 (c_type_print_modifier): Likewise. Add "language" parameter.
8423 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8424 (c_type_print_base_1): Update.
8425 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8426 constants.
8427 * type-stack.c (type_stack::insert): Handle tp_atomic and
8428 tp_restrict.
8429 (type_stack::follow_type_instance_flags): Likewise.
8430 (type_stack::follow_types): Likewise. Merge type-following code.
8431 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8432 (space_identifier, cv_with_space_id)
8433 (const_or_volatile_or_space_identifier_noopt)
8434 (const_or_volatile_or_space_identifier): Remove.
8435 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8436 rules.
8437 (ptr_operator, typebase): Update.
8438 (enum token_flag) <FLAG_C>: New constant.
8439 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8440 "_Atomic".
8441 (lex_one_token): Handle FLAG_C.
8442
154151a6
KR
84432020-03-14 Kamil Rytarowski <n54@gmx.com>
8444
8445 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8446 it to the ptrace call.
8447 * m68k-bsd-nat.c (store_registers): Likewise.
8448
bc107784
KR
84492020-03-14 Kamil Rytarowski <n54@gmx.com>
8450
8451 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8452 gdb_byte *.
8453 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8454 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8455 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8456
01a80117
KR
84572020-03-14 Kamil Rytarowski <n54@gmx.com>
8458
8459 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8460 nbsd_nat_target instead of inf_ptrace_target.
8461 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8462 nbsd_nat_target.
8463
f90280ca
KR
84642020-03-14 Kamil Rytarowski <n54@gmx.com>
8465
8466 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8467 register_t.
8468
6def66f1
KR
84692020-03-14 Kamil Rytarowski <n54@gmx.com>
8470
8471 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8472 it to the ptrace call.
8473 * alpha-bsd-nat.c (store_registers): Likewise.
8474
66eaca97
KR
84752020-03-14 Kamil Rytarowski <n54@gmx.com>
8476
8477 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8478 includes.
8479 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8480 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8481 fill_fpregset): Likewise.
8482
4fed520b
KR
84832020-03-14 Kamil Rytarowski <n54@gmx.com>
8484
8485 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8486 nbsd_nat_target instead of inf_ptrace_target.
8487 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8488 nbsd_nat_target.
8489
2190cf06
KR
84902020-03-14 Kamil Rytarowski <n54@gmx.com>
8491
8492 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8493 register_t.
8494
75c56d3d
KR
84952020-03-14 Kamil Rytarowski <n54@gmx.com>
8496
8497 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8498 it to the ptrace call.
8499 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8500 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8501 * arm-nbsd-nat.c (store_register): Likewise.
8502 * arm-nbsd-nat.c (store_regs): Likewise.
8503 * arm-nbsd-nat.c (store_fp_register): Likewise.
8504 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8505
6018d381
KR
85062020-03-14 Kamil Rytarowski <n54@gmx.com>
8507
8508 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8509 nbsd_nat_target instead of inf_ptrace_target.
8510 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8511 nbsd_nat_target.
8512
013f99f0
KR
85132020-03-14 Kamil Rytarowski <n54@gmx.com>
8514
8515 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8516 it to the ptrace call.
8517 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8518
12753073
KR
85192020-03-14 Kamil Rytarowski <n54@gmx.com>
8520
6227b330
KR
8521 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8522 it to the ptrace call.
8523 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8524
85252020-03-14 Kamil Rytarowski <n54@gmx.com>
8526
8527 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8528 gdb_byte *.
12753073
KR
8529 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8530
d5be5fa4
KR
85312020-03-14 Kamil Rytarowski <n54@gmx.com>
8532
8533 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8534 instead of inf_ptrace_target.
8535 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8536 nbsd_nat_target.
8537
8110f842
KR
85382020-03-14 Kamil Rytarowski <n54@gmx.com>
8539
8540 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8541 register_t.
8542
52feded7
KR
85432020-03-14 Kamil Rytarowski <n54@gmx.com>
8544
8545 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8546 register_t.
8547
25567eee
KR
85482020-03-14 Kamil Rytarowski <n54@gmx.com>
8549
8550 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8551 register_t.
8552
426a9c18
TT
85532020-03-13 Tom Tromey <tom@tromey.com>
8554
8555 * value.h (val_print): Don't declare.
8556 * valprint.h (val_print_array_elements)
8557 (val_print_scalar_formatted, generic_val_print): Don't declare.
8558 * valprint.c (generic_val_print_array): Take a struct value.
8559 (generic_val_print_ptr, generic_val_print_memberptr)
8560 (generic_val_print_bool, generic_val_print_int)
8561 (generic_val_print_char, generic_val_print_complex)
8562 (generic_val_print): Remove.
8563 (generic_value_print): Update.
8564 (do_val_print): Remove unused parameters. Don't call
8565 la_val_print.
8566 (val_print): Remove.
8567 (common_val_print): Update. Don't call value_check_printable.
8568 (val_print_scalar_formatted, val_print_array_elements): Remove.
8569 * rust-lang.c (rust_val_print): Remove.
8570 (rust_language_defn): Update.
8571 * p-valprint.c (pascal_val_print): Remove.
8572 (pascal_value_print_inner): Update.
8573 (pascal_object_print_val_fields, pascal_object_print_val):
8574 Remove.
8575 (pascal_object_print_static_field): Update.
8576 * p-lang.h (pascal_val_print): Don't declare.
8577 * p-lang.c (pascal_language_defn): Update.
8578 * opencl-lang.c (opencl_language_defn): Update.
8579 * objc-lang.c (objc_language_defn): Update.
8580 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8581 * m2-lang.h (m2_val_print): Don't declare.
8582 * m2-lang.c (m2_language_defn): Update.
8583 * language.h (struct language_defn) <la_val_print>: Remove.
8584 * language.c (unk_lang_value_print_inner): Rename. Change
8585 argument types.
8586 (unknown_language_defn, auto_language_defn): Update.
8587 * go-valprint.c (go_val_print): Remove.
8588 * go-lang.h (go_val_print): Don't declare.
8589 * go-lang.c (go_language_defn): Update.
8590 * f-valprint.c (f_val_print): Remove.
8591 * f-lang.h (f_value_print): Don't declare.
8592 * f-lang.c (f_language_defn): Update.
8593 * d-valprint.c (d_val_print): Remove.
8594 * d-lang.h (d_value_print): Don't declare.
8595 * d-lang.c (d_language_defn): Update.
8596 * cp-valprint.c (cp_print_value_fields)
8597 (cp_print_value_fields_rtti, cp_print_value): Remove.
8598 (cp_print_static_field): Update.
8599 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8600 (c_val_print_struct, c_val_print_union, c_val_print_int)
8601 (c_val_print_memberptr, c_val_print): Remove.
8602 * c-lang.h (c_val_print_array, cp_print_value_fields)
8603 (cp_print_value_fields_rtti): Don't declare.
8604 * c-lang.c (c_language_defn, cplus_language_defn)
8605 (asm_language_defn, minimal_language_defn): Update.
8606 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8607 (ada_val_print_enum): Take a struct value.
8608 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8609 (ada_val_print): Remove.
8610 (ada_value_print_1): Update.
8611 (printable_val_type): Remove.
8612 * ada-lang.h (ada_val_print): Don't declare.
8613 * ada-lang.c (ada_language_defn): Update.
8614
42331a1e
TT
86152020-03-13 Tom Tromey <tom@tromey.com>
8616
8617 * valprint.c (do_val_print): Update.
8618 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8619 a struct value.
8620 (value_to_value_object_no_release): Declare.
8621 * python/py-value.c (value_to_value_object_no_release): New
8622 function.
8623 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8624 struct value.
8625 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8626 function.
8627 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8628 a struct value.
8629 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8630 Declare.
8631 (gdbscm_apply_val_pretty_printer): Take a struct value.
8632 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8633 value.
8634 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8635 value.
8636 * extension-priv.h (struct extension_language_ops)
8637 <apply_val_pretty_printer>: Take a struct value.
8638 * cp-valprint.c (cp_print_value): Create a struct value.
8639 (cp_print_value): Update.
8640
3a916a97
TT
86412020-03-13 Tom Tromey <tom@tromey.com>
8642
8643 * ada-valprint.c (print_field_values): Call common_val_print.
8644
b59eac37
TT
86452020-03-13 Tom Tromey <tom@tromey.com>
8646
8647 * ada-valprint.c (val_print_packed_array_elements): Remove
8648 bitoffset and val parameters. Call common_val_print.
8649 (ada_val_print_string): Remove offset, address, and original_value
8650 parameters.
8651 (ada_val_print_array): Update.
8652 (ada_value_print_array): New function.
8653 (ada_value_print_1): Call it.
8654
03371129
TT
86552020-03-13 Tom Tromey <tom@tromey.com>
8656
8657 * ada-valprint.c (ada_value_print): Use common_val_print.
8658
2e088f8b
TT
86592020-03-13 Tom Tromey <tom@tromey.com>
8660
8661 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8662
39ef85a8
TT
86632020-03-13 Tom Tromey <tom@tromey.com>
8664
8665 * ada-valprint.c (ada_value_print_num): New function.
8666 (ada_value_print_1): Use it.
8667
b9fa6e07
TT
86682020-03-13 Tom Tromey <tom@tromey.com>
8669
8670 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8671
416595d6
TT
86722020-03-13 Tom Tromey <tom@tromey.com>
8673
8674 * ada-valprint.c (ada_value_print_ptr): New function.
8675 (ada_value_print_1): Use it.
8676
5b5e15ec
TT
86772020-03-13 Tom Tromey <tom@tromey.com>
8678
8679 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8680 call common_val_print.
8681 (ada_val_print_1): Update.
8682 (ada_value_print_1): New function.
8683 (ada_value_print_inner): Rewrite.
8684
fbf54e75
TT
86852020-03-13 Tom Tromey <tom@tromey.com>
8686
8687 * cp-valprint.c (cp_print_value_fields): Update.
8688 (cp_print_value): New function.
8689
64b653ca
TT
86902020-03-13 Tom Tromey <tom@tromey.com>
8691
8692 * m2-valprint.c (m2_value_print_inner): Use
8693 cp_print_value_fields.
8694 * cp-valprint.c (cp_print_value_fields): New function.
8695 * c-valprint.c (c_value_print_struct): New function.
8696 (c_value_print_inner): Use c_value_print_struct.
8697 * c-lang.h (cp_print_value_fields): Declare.
8698
6999f067
TT
86992020-03-13 Tom Tromey <tom@tromey.com>
8700
8701 * c-valprint.c (c_value_print_array): New function.
8702 (c_value_print_inner): Use it.
8703
ce80b8bd
TT
87042020-03-13 Tom Tromey <tom@tromey.com>
8705
8706 * c-valprint.c (c_value_print_memberptr): New function.
8707 (c_value_print_inner): Use it.
8708
2faac269
TT
87092020-03-13 Tom Tromey <tom@tromey.com>
8710
8711 * c-valprint.c (c_value_print_int): New function.
8712 (c_value_print_inner): Use it.
8713
da3e2c29
TT
87142020-03-13 Tom Tromey <tom@tromey.com>
8715
8716 * c-valprint.c (c_value_print_ptr): New function.
8717 (c_value_print_inner): Use it.
8718
50836231
TT
87192020-03-13 Tom Tromey <tom@tromey.com>
8720
8721 * c-valprint.c (c_value_print_inner): Rewrite.
8722
4f412b6e
TT
87232020-03-13 Tom Tromey <tom@tromey.com>
8724
8725 * valprint.c (generic_value_print_complex): New function.
8726 (generic_value_print): Use it.
8727
f5354008
TT
87282020-03-13 Tom Tromey <tom@tromey.com>
8729
8730 * valprint.c (generic_val_print_float): Don't call
8731 val_print_scalar_formatted.
8732 (generic_val_print, generic_value_print): Update.
8733
3eec3b05
TT
87342020-03-13 Tom Tromey <tom@tromey.com>
8735
8736 * valprint.c (generic_value_print_char): New function
8737 (generic_value_print): Use it.
8738
fdddfccb
TT
87392020-03-13 Tom Tromey <tom@tromey.com>
8740
8741 * valprint.c (generic_value_print_int): New function.
8742 (generic_value_print): Use it.
8743
6dde7521
TT
87442020-03-13 Tom Tromey <tom@tromey.com>
8745
8746 * valprint.c (generic_value_print_bool): New function.
8747 (generic_value_print): Use it.
8748
4112d2e6
TT
87492020-03-13 Tom Tromey <tom@tromey.com>
8750
8751 * valprint.c (generic_val_print_func): Simplify.
8752 (generic_val_print, generic_value_print): Update.
8753
65786af6
TT
87542020-03-13 Tom Tromey <tom@tromey.com>
8755
8756 * valprint.c (generic_val_print_flags): Remove.
8757 (generic_val_print, generic_value_print): Update.
8758 (val_print_type_code_flags): Add original_value parameter.
8759
40f3ce18
TT
87602020-03-13 Tom Tromey <tom@tromey.com>
8761
8762 * valprint.c (generic_val_print): Update.
8763 (generic_value_print): Update.
8764 * valprint.c (generic_val_print_enum): Don't call
8765 val_print_scalar_formatted.
8766
2a5b130b
TT
87672020-03-13 Tom Tromey <tom@tromey.com>
8768
8769 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8770 * valprint.c (generic_value_print_ptr): New function.
8771
abc66ce9
TT
87722020-03-13 Tom Tromey <tom@tromey.com>
8773
8774 * valprint.c (generic_value_print): Rewrite.
8775
07a32858
TT
87762020-03-13 Tom Tromey <tom@tromey.com>
8777
8778 * p-valprint.c (pascal_object_print_value_fields)
8779 (pascal_object_print_value): New functions.
8780
64d64d3a
TT
87812020-03-13 Tom Tromey <tom@tromey.com>
8782
8783 * p-valprint.c (pascal_value_print_inner): Rewrite.
8784
6a95a1f5
TT
87852020-03-13 Tom Tromey <tom@tromey.com>
8786
8787 * f-valprint.c (f_value_print_innner): Rewrite.
8788
59fcdac6
TT
87892020-03-13 Tom Tromey <tom@tromey.com>
8790
8791 * m2-valprint.c (m2_print_unbounded_array): New overload.
8792 (m2_print_unbounded_array): Update.
8793 (m2_print_array_contents): Take a struct value.
8794 (m2_value_print_inner): Rewrite.
8795
d133c3e1
TT
87962020-03-13 Tom Tromey <tom@tromey.com>
8797
8798 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8799 (d_value_print_inner): New function.
8800 * d-lang.h (d_value_print_inner): Declare.
8801 * d-lang.c (d_language_defn): Use d_value_print_inner.
8802
23b0f06b
TT
88032020-03-13 Tom Tromey <tom@tromey.com>
8804
8805 * go-valprint.c (go_value_print_inner): New function.
8806 * go-lang.h (go_value_print_inner): Declare.
8807 * go-lang.c (go_language_defn): Use go_value_print_inner.
8808
5f56f7cb
TT
88092020-03-13 Tom Tromey <tom@tromey.com>
8810
8811 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8812 API.
8813 (rust_val_print): Rewrite.
8814 (rust_value_print_inner): New function, from rust_val_print.
8815 (rust_language_defn): Use rust_value_print_inner.
8816
26792ee0
TT
88172020-03-13 Tom Tromey <tom@tromey.com>
8818
8819 * ada-valprint.c (ada_value_print_inner): New function.
8820 * ada-lang.h (ada_value_print_inner): Declare.
8821 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8822
24051bbe
TT
88232020-03-13 Tom Tromey <tom@tromey.com>
8824
8825 * f-valprint.c (f_value_print_innner): New function.
8826 * f-lang.h (f_value_print_innner): Declare.
8827 * f-lang.c (f_language_defn): Use f_value_print_innner.
8828
c0941be6
TT
88292020-03-13 Tom Tromey <tom@tromey.com>
8830
8831 * p-valprint.c (pascal_value_print_inner): New function.
8832 * p-lang.h (pascal_value_print_inner): Declare.
8833 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8834
62c4663d
TT
88352020-03-13 Tom Tromey <tom@tromey.com>
8836
8837 * m2-valprint.c (m2_value_print_inner): New function.
8838 * m2-lang.h (m2_value_print_inner): Declare.
8839 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8840
62182190
TT
88412020-03-13 Tom Tromey <tom@tromey.com>
8842
8843 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8844 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8845 * c-valprint.c (c_value_print_inner): New function.
8846 * c-lang.h (c_value_print_inner): Declare.
8847 * c-lang.c (c_language_defn, cplus_language_defn)
8848 (asm_language_defn, minimal_language_defn): Use
8849 c_value_print_inner.
8850
1e592a8a
TT
88512020-03-13 Tom Tromey <tom@tromey.com>
8852
8853 * p-valprint.c (pascal_object_print_value_fields): Now static.
8854 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8855
7fe471e9
TT
88562020-03-13 Tom Tromey <tom@tromey.com>
8857
8858 * c-valprint.c (c_val_print_array): Simplify.
8859
d121c6ce
TT
88602020-03-13 Tom Tromey <tom@tromey.com>
8861
8862 * valprint.c (value_print_array_elements): New function.
8863 * valprint.h (value_print_array_elements): Declare.
8864
4dba70ee
TT
88652020-03-13 Tom Tromey <tom@tromey.com>
8866
8867 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8868 * mips-tdep.c (mips_print_register): Use
8869 value_print_scalar_formatted.
8870
4f9ae810
TT
88712020-03-13 Tom Tromey <tom@tromey.com>
8872
8873 * valprint.h (value_print_scalar_formatted): Declare.
8874 * valprint.c (value_print_scalar_formatted): New function.
8875
156bfec9
TT
88762020-03-13 Tom Tromey <tom@tromey.com>
8877
8878 * valprint.h (generic_value_print): Declare.
8879 * valprint.c (generic_value_print): New function.
8880
2b4e573d
TT
88812020-03-13 Tom Tromey <tom@tromey.com>
8882
8883 * valprint.c (do_val_print): Call la_value_print_inner, if
8884 available.
8885 * rust-lang.c (rust_language_defn): Update.
8886 * p-lang.c (pascal_language_defn): Update.
8887 * opencl-lang.c (opencl_language_defn): Update.
8888 * objc-lang.c (objc_language_defn): Update.
8889 * m2-lang.c (m2_language_defn): Update.
8890 * language.h (struct language_defn) <la_value_print_inner>: New
8891 member.
8892 * language.c (unknown_language_defn, auto_language_defn): Update.
8893 * go-lang.c (go_language_defn): Update.
8894 * f-lang.c (f_language_defn): Update.
8895 * d-lang.c (d_language_defn): Update.
8896 * c-lang.c (c_language_defn, cplus_language_defn)
8897 (asm_language_defn, minimal_language_defn): Update.
8898 * ada-lang.c (ada_language_defn): Update.
8899
a1f6a07c
TT
89002020-03-13 Tom Tromey <tom@tromey.com>
8901
8902 * c-valprint.c (c_value_print): Use common_val_print.
8903
410cf315
TT
89042020-03-13 Tom Tromey <tom@tromey.com>
8905
8906 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8907
72a45c93
TT
89082020-03-13 Tom Tromey <tom@tromey.com>
8909
8910 * f-valprint.c (f77_print_array_1, f_val_print): Use
8911 common_val_print.
8912
040f66bd
TT
89132020-03-13 Tom Tromey <tom@tromey.com>
8914
8915 * riscv-tdep.c (riscv_print_one_register_info): Use
8916 common_val_print.
8917
a6e05a6c
TT
89182020-03-13 Tom Tromey <tom@tromey.com>
8919
8920 * mi/mi-main.c (output_register): Use common_val_print.
8921
3444c526
TT
89222020-03-13 Tom Tromey <tom@tromey.com>
8923
8924 * infcmd.c (default_print_one_register_info): Use
8925 common_val_print.
8926
c2a44efe
TT
89272020-03-13 Tom Tromey <tom@tromey.com>
8928
8929 * valprint.h (common_val_print_checked): Declare.
8930 * valprint.c (common_val_print_checked): New function.
8931 * stack.c (print_frame_arg): Use common_val_print_checked.
8932
b0c26e99
TT
89332020-03-13 Tom Tromey <tom@tromey.com>
8934
8935 * valprint.c (do_val_print): New function, from val_print.
8936 (val_print): Use do_val_print.
8937 (common_val_print): Use do_val_print.
8938
ce3acbe9
TT
89392020-03-13 Tom Tromey <tom@tromey.com>
8940
8941 * valprint.c (value_print): Use scoped_value_mark.
8942
96c7f873
TV
89432020-03-13 Tom de Vries <tdevries@suse.de>
8944
8945 PR symtab/25646
8946 * psymtab.c (partial_symtab::partial_symtab): Don't set
8947 globals_offset and statics_offset. Push element onto
8948 current_global_psymbols and current_static_psymbols stacks.
8949 (concat): New function.
8950 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8951 element from current_global_psymbols and current_static_psymbols
8952 stacks. Concat popped elements to global_psymbols and
8953 static_symbols.
8954 (add_psymbol_to_list): Use current_global_psymbols and
8955 current_static_psymbols stacks.
8956 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8957 current_static_psymbols fields.
8958
6ba0a321
CB
89592020-03-12 Christian Biesinger <cbiesinger@google.com>
8960
8961 * corelow.c (sniff_core_bfd): Remove.
8962 (class core_target) <m_core_vec>: Remove.
8963 (core_target::core_target): Update.
8964 (core_file_fns): Remove.
8965 (deprecated_add_core_fns): Remove.
8966 (default_core_sniffer): Remove.
8967 (sniff_core_bfd): Remove.
8968 (default_check_format): Remove.
8969 (gdb_check_format): Remove.
8970 (core_target_open): Update.
8971 (core_target::get_core_register_section): Update.
8972 (get_core_registers_cb): Update.
8973 (core_target::fetch_registers): Update.
8974 * gdbcore.h (struct core_fns): Remove.
8975 (deprecated_add_core_fns): Remove.
8976 (default_core_sniffer): Remove.
8977 (default_check_format): Remove.
8978
227031b2
TT
89792020-03-12 Tom Tromey <tom@tromey.com>
8980
8981 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8982 CORE_ADDR.
8983 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8984
53807e9f
TT
89852020-03-12 Tom Tromey <tom@tromey.com>
8986
8987 * remote.c (remote_target::download_tracepoint)
8988 (remote_target::enable_tracepoint)
8989 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8990 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8991 sprintf_vma.
8992
64f25102
TT
89932020-03-12 Tom Tromey <tom@tromey.com>
8994
8995 * symfile-mem.c: Update CORE_ADDR size assert.
8996
272cd5a3
SM
89972020-03-12 Simon Marchi <simon.marchi@efficios.com>
8998
8999 * selftest.m4: Move to gdbsupport/.
9000 * acinclude.m4: Update path to selftest.m4.
9001
74cd3f9d
SM
90022020-03-12 Simon Marchi <simon.marchi@efficios.com>
9003
9004 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
9005 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
9006 gdbarch-selfselftests.c and selftest-arch.c.
9007 (SUBDIR_UNITTESTS_OBS): Rename to...
9008 (SELFTESTS_OBS): ... this.
9009 (COMMON_SFILES): Remove disasm-selftests.c and
9010 gdbarch-selftests.c.
9011 * configure.ac: Don't add selftest-arch.{c,o} to
9012 CONFIG_{SRCS,OBS}.
9013 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
9014 preprocessor conditions.
9015
db6878ac
SM
90162020-03-12 Simon Marchi <simon.marchi@efficios.com>
9017
9018 * configure.ac: Don't source bfd/development.sh.
9019 * selftest.m4: Modify comment.
9020 * configure: Re-generate.
9021
4d696a5c
SM
90222020-03-12 Simon Marchi <simon.marchi@efficios.com>
9023
9024 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
9025 not "true" or "false".
9026 * configure: Re-generate.
9027
8dd8e1c7
CB
90282020-03-12 Christian Biesinger <cbiesinger@google.com>
9029
9030 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
9031 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
9032 renamed to arm_nbsd_supply_gregset.
9033 (fetch_register): Update to call arm_nbsd_supply_gregset.
9034 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
9035 (arm_netbsd_nat_target::fetch_registers): Update.
9036 (fetch_elfcore_registers): Removed.
9037 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
9038 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
9039 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9040 not require NetBSD system headers.
9041 (arm_nbsd_regset): New struct.
9042 (arm_nbsd_iterate_over_regset_sections): New function.
9043 (arm_netbsd_init_abi_common): Updated to call
9044 set_gdbarch_iterate_over_regset_sections.
9045 * arm-nbsd-tdep.h: New file.
9046
dd69bf7a
KB
90472020-03-11 Kevin Buettner <kevinb@redhat.com>
9048
9049 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9050 recursion.
9051
a0761e34
SM
90522020-03-11 Simon Marchi <simon.marchi@efficios.com>
9053
9054 * configure: Re-generate.
9055
e7a82140
TT
90562020-03-11 Tom Tromey <tromey@adacore.com>
9057
9058 * ada-typeprint.c (print_choices): Fix comment.
9059
dcc050c8
AB
90602020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9061
9062 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9063 previous item in the list, when the list has no items.
9064
1c33af77
TV
90652020-03-11 Tom de Vries <tdevries@suse.de>
9066
9067 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9068 PROP_LOCLIST handling code.
9069
8c95582d
AB
90702020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9071
9072 * buildsym-legacy.c (record_line): Pass extra parameter to
9073 record_line.
9074 * buildsym.c (buildsym_compunit::record_line): Take an extra
9075 parameter, reduce duplication in the line table, and record the
9076 is_stmt flag in the line table.
9077 * buildsym.h (buildsym_compunit::record_line): Add extra
9078 parameter.
9079 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9080 non-statement lines.
9081 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9082 this to the symtab builder.
9083 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9084 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9085 through to dwarf_record_line_1.
9086 * infrun.c (process_event_stop_test): When stepping, don't stop at
9087 a non-statement instruction, and only refresh the step info when
9088 we land in the middle of a line's range. Also add an extra
9089 comment.
9090 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9091 field.
9092 * record-btrace.c (btrace_find_line_range): Only record lines
9093 marked as is-statement.
9094 * stack.c (frame_show_address): Show the frame address if we are
9095 in a non-statement sal.
9096 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9097 (maintenance_print_one_line_table): Print a header for the is_stmt
9098 column, and include is_stmt information in the output.
9099 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9100 preference to non-statements.
9101 (find_pcs_for_symtab_line): Prefer is-statement entries.
9102 (find_line_common): Likewise.
9103 * symtab.h (struct linetable_entry): Add is_stmt field.
9104 (struct symtab_and_line): Likewise.
9105 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9106 arranging the line table.
9107
e4003a34
TV
91082020-03-07 Tom de Vries <tdevries@suse.de>
9109
9110 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9111 DIE.
9112
e8932576
TT
91132020-03-07 Tom Tromey <tom@tromey.com>
9114
9115 * valops.c (value_literal_complex): Remove obsolete comment.
9116 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9117 comment.
9118
29734269
SM
91192020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9120
9121 * infrun.h: Forward-declare thread_info.
9122 (set_step_info): Add thread_info parameter, add doc.
9123 * infrun.c (set_step_info): Add thread_info parameter, move doc
9124 to header.
9125 * infrun.c (process_event_stop_test): Pass thread to
9126 set_step_info call.
9127 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9128 set_step_info.
9129 (prepare_one_step): Add thread_info parameter, pass it to
9130 set_step_frame and prepare_one_step (recursive) call.
9131 (step_1): Pass thread to prepare_one_step call.
9132 (step_command_fsm::should_stop): Pass thread to
9133 prepare_one_step.
9134 (until_next_fsm): Pass thread to set_step_frame call.
9135 (finish_command): Pass thread to set_step_info call.
9136
b7d64b29
HD
91372020-03-06 Hannes Domani <ssbssa@yahoo.de>
9138
9139 * windows-tdep.c (windows_solib_create_inferior_hook):
9140 Check if inferior is running.
9141
09f2921c
TV
91422020-03-06 Tom de Vries <tdevries@suse.de>
9143
9144 * NEWS: Fix "the the".
9145 * ctfread.c: Same.
9146
fd760e79
TV
91472020-03-06 Tom de Vries <tdevries@suse.de>
9148
9149 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9150
20ea4a60
AB
91512020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9152
9153 * .dir-locals.el: Add a comment referencing the other copies of
9154 this file.
9155
0afbabf0
JB
91562020-03-05 John Baldwin <jhb@FreeBSD.org>
9157
9158 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9159 psargs.
9160
842806cb
TBA
91612020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9162
9163 * .gitattributes: New file.
9164
be1e3d3e
TT
91652020-03-04 Tom Tromey <tom@tromey.com>
9166
9167 * symmisc.c (print_symbol_bcache_statistics)
9168 (print_objfile_statistics): Update.
9169 * symfile.c (allocate_symtab): Use intern.
9170 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9171 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9172 macro_cache>: Remove.
9173 <string_cache>: New member.
9174 (struct objfile) <intern>: New methods.
9175 * elfread.c (elf_symtab_read): Use intern.
9176 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9177 (dwarf2_compute_name, dwarf2_physname)
9178 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9179 names.
9180 (guess_partial_die_structure_name): Update.
9181 (partial_die_info::fixup): Intern name.
9182 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9183 name.
9184 (dwarf2_name): Intern name. Update.
9185 * buildsym.c (buildsym_compunit::get_macro_table): Use
9186 string_cache.
9187
4e7625fd
TT
91882020-03-04 Tom Tromey <tom@tromey.com>
9189
9190 * jit.c (bfd_open_from_target_memory): Make "target" const.
9191 * corefile.c (gnutarget): Now const.
9192 * gdbcore.h (gnutarget): Now const.
9193
46f9f931
HD
91942020-03-04 Hannes Domani <ssbssa@yahoo.de>
9195
9196 * NEWS: Mention support for WOW64 processes.
9197 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9198 (amd64_windows_segment_register_p): Remove static.
9199 (_initialize_amd64_windows_nat): Update.
9200 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9201 * i386-windows-nat.c (context_offset): Update.
9202 (i386_mappings): Rename and remove static.
9203 (i386_windows_segment_register_p): Remove static.
9204 (_initialize_i386_windows_nat): Update.
9205 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9206 (STATUS_WX86_SINGLE_STEP): New macro.
9207 (EnumProcessModulesEx): New macro.
9208 (Wow64SuspendThread): New macro.
9209 (Wow64GetThreadContext): New macro.
9210 (Wow64SetThreadContext): New macro.
9211 (Wow64GetThreadSelectorEntry): New macro.
9212 (windows_set_context_register_offsets): Add static.
9213 (windows_set_segment_register_p): Likewise.
9214 (windows_add_thread): Adapt for WOW64 processes.
9215 (windows_fetch_one_register): Likewise.
9216 (windows_nat_target::fetch_registers): Likewise.
9217 (windows_store_one_register): Likewise.
9218 (display_selector): Likewise.
9219 (display_selectors): Likewise.
9220 (handle_exception): Likewise.
9221 (windows_continue): Likewise.
9222 (windows_nat_target::resume): Likewise.
9223 (windows_add_all_dlls): Likewise.
9224 (do_initial_windows_stuff): Likewise.
9225 (windows_nat_target::attach): Likewise.
9226 (windows_get_exec_module_filename): Likewise.
9227 (windows_nat_target::create_inferior): Likewise.
9228 (windows_xfer_siginfo): Likewise.
9229 (_initialize_loadable): Initialize Wow64SuspendThread,
9230 Wow64GetThreadContext, Wow64SetThreadContext,
9231 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9232 * windows-nat.h (windows_set_context_register_offsets):
9233 Remove declaration.
9234 (windows_set_segment_register_p): Likewise.
9235 (i386_windows_segment_register_p): Add declaration.
9236 (amd64_windows_segment_register_p): Likewise.
9237
440cf44e
LM
92382020-03-04 Luis Machado <luis.machado@linaro.org>
9239
9240 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9241 in "info registers" for AArch64/ARM.
9242
9243 The change caused "info registers" to not print GPR's.
9244
9245 gdb/ChangeLog:
9246
9247 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9248
9249 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9250 when reg->group is empty and reggroup is not.
9251
1009d92f
TT
92522020-03-03 Tom Tromey <tromey@adacore.com>
9253
9254 * dwarf2/frame.c (struct dwarf2_frame_cache)
9255 <checked_tailcall_bottom, entry_cfa_sp_offset,
9256 entry_cfa_sp_offset_p>: Remove members.
9257 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9258 (dwarf2_frame_prev_register): Don't call
9259 dwarf2_tailcall_sniffer_first.
9260 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9261 * frame-unwind.c (add_unwinder): New fuction.
9262 (frame_unwind_init): Use it. Add tailcall unwinder.
9263
5e5d66b6
AB
92642020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9265 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9266
9267 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9268 value should be printed as true.
9269
584cf46d
HD
92702020-03-03 Hannes Domani <ssbssa@yahoo.de>
9271
9272 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9273 (windows_init_abi): Set and use windows_so_ops.
9274
7b973adc
SDJ
92752020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9276
9277 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9278 when verifying if dealing with a convenience variable.
9279
bb7b70ab
LM
92802020-03-03 Luis Machado <luis.machado@linaro.org>
9281
9282 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9283
9822cb57
SM
92842020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9285
9286 * infrun.c (gdbarch_supports_displaced_stepping): New.
9287 (use_displaced_stepping): Break up conditions in smaller pieces.
9288 Use gdbarch_supports_displaced_stepping.
9289 (displaced_step_prepare_throw): Use
9290 gdbarch_supports_displaced_stepping.
9291
63e163f2
AB
92922020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9293
9294 * NEWS: Mention new behaviour of the history filename.
9295 * top.c (write_history_p): Add comment.
9296 (show_write_history_p): Add header comment, give a different
9297 message when history writing is on, but the history filename is
9298 empty.
9299 (history_filename): Add comment.
9300 (history_filename_empty): New function.
9301 (show_history_filename): Add header comment, give a different
9302 message when the filename is empty.
9303 (init_history): Compare history_filename against nullptr, and only
9304 read history if the filename is not empty.
9305 (set_history_filename): Add header comment, and only make
9306 non-empty filenames absolute.
9307 (init_main): Make the filename argument to 'set history filename'
9308 optional.
9309
81b86b97
CB
93102020-03-02 Christian Biesinger <cbiesinger@google.com>
9311
9312 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9313 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9314 (fetch_fp_register): Update.
9315 (fetch_fp_regs): Update.
9316 (store_fp_register): Update.
9317 (store_fp_regs): Update.
9318 (arm_netbsd_nat_target::read_description): New function.
9319 (fetch_elfcore_registers): Update.
9320
24ed6739
AB
93212020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9322
9323 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9324 general_thread if the stop reply is missing a thread-id.
9325 (remote_target::process_stop_reply): Use the first non-exited
9326 thread if the target didn't pass a thread-id.
9327 * infrun.c (do_target_wait): Move call to
9328 switch_to_inferior_no_thread to ....
9329 (do_target_wait_1): ... here.
9330
a84bb2a0
JT
93312020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9332
9333 * debuginfod-support.c: Include defs.h first.
9334
658dadf0
TV
93352020-02-28 Tom de Vries <tdevries@suse.de>
9336
9337 * symfile.c (set_initial_language): Use default language for lookup.
9338
4ebe4877
SM
93392020-02-28 Simon Marchi <simon.marchi@efficios.com>
9340
9341 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9342 reader variable, pass `this` to read_cutu_die_from_dwo.
9343
e5da1139
AM
93442020-02-27 Aaron Merey <amerey@redhat.com>
9345
9346 * source.c (open_source_file): Check for nullptr when computing
9347 srcpath.
9348
317f7127
TT
93492020-02-27 Tom Tromey <tromey@adacore.com>
9350
9351 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9352 member.
9353 (dwarf2_add_field): Don't update nfields.
9354 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9355
3104d9ee
AB
93562020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9357
9358 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9359 abs.
9360
b83470bf
TT
93612020-02-26 Tom Tromey <tom@tromey.com>
9362
9363 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9364 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9365 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9366 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9367 per_cu_data.
9368
edfe0a0c
TT
93692020-02-26 Tom Tromey <tom@tromey.com>
9370
9371 * dwarf2/index-write.c (psym_index_map): Change type.
9372 (add_address_entry_worker, write_one_signatured_type)
9373 (recursively_count_psymbols, recursively_write_psymbols)
9374 (class debug_names, psyms_seen_size, write_gdbindex)
9375 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9376
0d79cdc4
AM
93772020-02-26 Aaron Merey <amerey@redhat.com>
9378
9379 * Makefile.in: Handle optional debuginfod support.
9380 * NEWS: Update.
9381 * README: Add --with-debuginfod summary.
9382 * config.in: Regenerate.
9383 * configure: Regenerate.
9384 * configure.ac: Handle optional debuginfod support.
9385 * debuginfod-support.c: debuginfod helper functions.
9386 * debuginfod-support.h: Ditto.
9387 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9388 summary.
9389 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9390 when a dwz file cannot be found.
9391 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9392 debuginfo file cannot be found.
9393 * source.c (open_source_file): Query debuginfod servers when a
9394 source file cannot be found.
9395 * top.c (print_gdb_configuration): Include
9396 --{with,without}-debuginfod in the output.
9397
b65ce565
JG
93982020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9399
9400 * thread.c (thr_try_catch_cmd): Print thread name.
9401
d4c9a4f8
SM
94022020-02-26 Simon Marchi <simon.marchi@efficios.com>
9403
9404 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9405 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9406 dwarf2_fetch_die_type_sect_off): Move to...
9407 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9408 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9409 dwarf2_fetch_die_type_sect_off): ... here.
9410 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9411 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9412 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9413
0dce4280
TV
94142020-02-26 Tom de Vries <tdevries@suse.de>
9415
9416 PR gdb/25603
9417 * symfile.c (set_initial_language): Exit-early if
9418 language_mode == language_mode_manual.
9419
450a1bfc
SM
94202020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9421
9422 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9423 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9424 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9425
9e80cfa1
AB
94262020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9427
9428 * gdbtypes.c (create_array_type_with_stride): Handle negative
9429 array strides.
9430 * valarith.c (value_subscripted_rvalue): Likewise.
9431
09624f1f
LM
94322020-02-25 Luis Machado <luis.machado@linaro.org>
9433
9434 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9435
8cb5117c
SM
94362020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9437
9438 * loc.h (dwarf2_get_die_type): Move to...
9439 * read.h (dwarf2_get_die_type): ... here.
9440 * read.c (dwarf2_get_die_type): Move doc to header.
9441
c325c44e
JB
94422020-02-25 Joel Brobecker <brobecker@adacore.com>
9443
9444 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9445 'gnulib/Makefile.in' to the list.
9446
4ac93832
TT
94472020-02-24 Tom Tromey <tom@tromey.com>
9448
9449 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9450 Remove.
9451 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9452 XOBNEWVEC.
9453
197400e8
TT
94542020-02-24 Tom Tromey <tom@tromey.com>
9455
9456 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9457 New method.
9458 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9459 (dw2_do_instantiate_symtab, dw2_get_file_names)
9460 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9461
76935768
TT
94622020-02-24 Tom Tromey <tom@tromey.com>
9463
9464 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9465 make_scoped_restore.
9466 (dwarf2_psymtab::read_symtab): Don't clear
9467 reading_partial_symbols.
9468
a88ef40d
TV
94692020-02-24 Tom de Vries <tdevries@suse.de>
9470
9471 PR gdb/25592
9472 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9473
c9af6521
TV
94742020-02-24 Tom de Vries <tdevries@suse.de>
9475
9476 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9477 commands layout next/prev/regs.
9478
5707a07a
TT
94792020-02-22 Tom Tromey <tom@tromey.com>
9480
9481 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9482 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9483
3b0fb49e
TT
94842020-02-22 Tom Tromey <tom@tromey.com>
9485
9486 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9487
283be8bf
TT
94882020-02-22 Tom Tromey <tom@tromey.com>
9489
9490 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9491 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9492 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9493 * tui/tui.c (_initialize_tui): Add usage text.
9494
ca793b96
TT
94952020-02-22 Tom Tromey <tom@tromey.com>
9496
9497 * tui/tui-win.c (tui_set_focus_command)
9498 (tui_set_win_height_command): Use error_no_arg.
9499 (_initialize_tui_win): Update help text.
9500 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9501
432b5c40
TT
95022020-02-22 Tom Tromey <tom@tromey.com>
9503
9504 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9505 * tui/tui-disasm.h (struct tui_disasm_window)
9506 <display_start_addr>: Declare.
9507 * tui/tui-source.h (struct tui_source_window)
9508 <display_start_addr>: Declare.
9509 * tui/tui-winsource.h (struct tui_source_window_base)
9510 <show_source_line, display_start_addr>: New methods.
9511 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9512 Rename and move to protected section.
9513 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9514 (tui_source_window_base::do_erase_source_content): Update.
9515 (tui_source_window_base::show_source_line): Now a method.
9516 (tui_source_window_base::show_source_content)
9517 (tui_source_window_base::tui_source_window_base)
9518 (tui_source_window_base::rerender)
9519 (tui_source_window_base::refill)
9520 (tui_source_window_base::do_scroll_horizontal)
9521 (tui_source_window_base::set_is_exec_point_at)
9522 (tui_source_window_base::update_breakpoint_info)
9523 (tui_source_window_base::update_exec_info): Update.
9524 * tui/tui-source.c (tui_source_window::set_contents)
9525 (tui_source_window::showing_source_p)
9526 (tui_source_window::do_scroll_vertical)
9527 (tui_source_window::location_matches_p)
9528 (tui_source_window::line_is_displayed): Update.
9529 (tui_source_window::display_start_addr): New method.
9530 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9531 (tui_disasm_window::do_scroll_vertical)
9532 (tui_disasm_window::location_matches_p): Update.
9533 (tui_disasm_window::display_start_addr): New method.
9534
01b1af32
TT
95352020-02-22 Tom Tromey <tom@tromey.com>
9536
9537 * NEWS: Add entry for gdb.register_window_type.
9538 * tui/tui-layout.h (window_factory): New typedef.
9539 (tui_register_window): Declare.
9540 * tui/tui-layout.c (saved_tui_windows): New global.
9541 (tui_apply_current_layout): Use it.
9542 (tui_register_window): New function.
9543 * python/python.c (do_start_initialization): Call
9544 gdbpy_initialize_tui.
9545 (python_GdbMethods): Add "register_window_type" function.
9546 * python/python-internal.h (gdbpy_register_tui_window)
9547 (gdbpy_initialize_tui): Declare.
9548 * python/py-tui.c: New file.
9549 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9550
fc96d20b
TT
95512020-02-22 Tom Tromey <tom@tromey.com>
9552
9553 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9554
935c78c0
TT
95552020-02-22 Tom Tromey <tom@tromey.com>
9556
9557 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9558 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9559 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9560 (tui_set_win_focus_to): Move from tui-win.c.
9561
0240c8f1
TT
95622020-02-22 Tom Tromey <tom@tromey.com>
9563
9564 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9565 functions.
9566 (known_window_types): New global.
9567 (tui_get_window_by_name): Reimplement.
9568 (initialize_known_windows): New function.
9569 (validate_window_name): Rewrite.
9570 (_initialize_tui_layout): Call initialize_known_windows.
9571
fdb01f0c
TT
95722020-02-22 Tom Tromey <tom@tromey.com>
9573
9574 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9575 Remove constants.
9576 * tui/tui-winsource.h (struct tui_source_window_base)
9577 <tui_source_window_base>: Remove parameter.
9578 * tui/tui-winsource.c
9579 (tui_source_window_base::tui_source_window_base): Remove
9580 parameter.
9581 (tui_source_window_base::refill): Update.
9582 * tui/tui-stack.h (struct tui_locator_window)
9583 <tui_locator_window>: Update.
9584 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9585 Default the constructor.
9586 * tui/tui-regs.h (struct tui_data_item_window)
9587 <tui_data_item_window>: Default the constructor.
9588 (struct tui_data_window) <tui_data_window>: Likewise.
9589 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9590 Default the constructor.
9591 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9592 Default the constructor.
9593 <type>: Remove.
9594 (struct tui_win_info) <tui_win_info>: Default the constructor.
9595 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9596 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9597 Default the constructor.
9598
865a5aec
TT
95992020-02-22 Tom Tromey <tom@tromey.com>
9600
9601 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9602 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9603 * tui/tui-win.c (tui_resize_all): Don't call
9604 tui_delete_invisible_windows.
9605 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9606 done.
9607 (tui_set_layout): Update.
9608 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9609 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9610 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9611
e098d18c
TT
96122020-02-22 Tom Tromey <tom@tromey.com>
9613
9614 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9615 correctly.
9616
eb9c8874
TT
96172020-02-22 Tom Tromey <tom@tromey.com>
9618
9619 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9620
7eed1a8e
TT
96212020-02-22 Tom Tromey <tom@tromey.com>
9622
9623 * tui/tui-winsource.h (struct tui_source_window_iterator)
9624 <inner_iterator>: New etytypedef.
9625 <tui_source_window_iterator>: Take "end" parameter.
9626 <tui_source_window_iterator>: Take iterator.
9627 <operator*, advance>: Update.
9628 <m_iter>: Change type.
9629 <m_end>: New field.
9630 (struct tui_source_windows) <begin, end>: Update.
9631 * tui/tui-layout.c (tui_windows): New global.
9632 (tui_apply_current_layout): Clear tui_windows.
9633 (tui_layout_window::apply): Update tui_windows.
9634 * tui/tui-data.h (tui_windows): Declare.
9635 (all_tui_windows): Now inline function.
9636 (class tui_window_iterator, struct all_tui_windows): Remove.
9637
7c043ba6
TT
96382020-02-22 Tom Tromey <tom@tromey.com>
9639
9640 PR tui/17850:
9641 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9642 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9643 "height" argument.
9644 (class tui_layout_window) <get_sizes>: Likewise.
9645 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9646 argument.
9647 <get_sizes>: Add "height" argument.
9648 <m_vertical>: New field.
9649 * tui/tui-layout.c (tui_layout_split::clone): Update.
9650 (tui_layout_split::get_sizes): Add "height" argument.
9651 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9652 (tui_new_layout_command): Parse "-horizontal".
9653 (_initialize_tui_layout): Update help string.
9654 (tui_layout_split::specification): Add "-horizontal" when needed.
9655 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9656 argument.
9657 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9658 New methods.
9659
6bc56648
TT
96602020-02-22 Tom Tromey <tom@tromey.com>
9661
9662 * tui/tui-layout.h (enum tui_adjust_result): New.
9663 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9664 (class tui_layout_window) <adjust_size>: Return
9665 tui_adjust_result. Rewrite.
9666 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9667 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9668
c22fef7e
TT
96692020-02-22 Tom Tromey <tom@tromey.com>
9670
9671 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9672 parameter and return types.
9673 (class tui_layout_base) <specification>: Add "depth".
9674 (class tui_layout_window) <specification>: Add "depth".
9675 (class tui_layout_split) <specification>: Add "depth".
9676 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9677 and return types.
9678 (tui_new_layout_command): Parse sub-layouts.
9679 (_initialize_tui_layout): Update help string.
9680 (tui_layout_window::specification): Add "depth".
9681 (add_layout_command): Update.
9682
ee325b61
TT
96832020-02-22 Tom Tromey <tom@tromey.com>
9684
9685 * NEWS: Add "tui new-layout" item.
9686 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9687 Add new-layout command to help text.
9688 (validate_window_name): New function.
9689 (tui_new_layout_command): New function.
9690 (_initialize_tui_layout): Register "new-layout".
9691 (tui_layout_window::specification): New method.
9692 (tui_layout_window::specification): New method.
9693 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9694 method.
9695 (class tui_layout_window) <specification>: New method.
9696 (class tui_layout_split) <specification>: New method.
9697
416eb92d
TT
96982020-02-22 Tom Tromey <tom@tromey.com>
9699
9700 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9701 * tui/tui-win.c (window_name_completer): Update comment.
9702 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9703 Declare method.
9704 (class tui_layout_window) <replace_window>: Likewise.
9705 (class tui_layout_split) <replace_window>: Likewise.
9706 (tui_set_layout): Don't declare.
9707 (tui_set_initial_layout): Declare function.
9708 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9709 (asm_regs_layout): New globals.
9710 (tui_current_layout, show_layout): Remove.
9711 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9712 (find_layout, tui_apply_layout): New function.
9713 (layout_completer): Remove.
9714 (tui_next_layout): Reimplement.
9715 (tui_next_layout_command): New function.
9716 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9717 (tui_regs_layout): Reimplement.
9718 (tui_regs_layout_command): New function.
9719 (extract_display_start_addr): Rewrite.
9720 (next_layout, prev_layout): Remove.
9721 (tui_layout_window::replace_window): New method.
9722 (tui_layout_split::replace_window): New method.
9723 (destroy_layout): New function.
9724 (layout_list): New global.
9725 (add_layout_command): New function.
9726 (initialize_layouts): Update.
9727 (tui_layout_command): New function.
9728 (_initialize_tui_layout): Install "layout" commands.
9729 * tui/tui-data.h (enum tui_layout_type): Remove.
9730 (tui_current_layout): Don't declare.
9731
0dbc2fc7
TT
97322020-02-22 Tom Tromey <tom@tromey.com>
9733
9734 * tui/tui-regs.c (tui_reg_layout): Remove.
9735 (tui_reg_command): Use tui_regs_layout.
9736 * tui/tui-layout.h (tui_reg_command): Declare.
9737 * tui/tui-layout.c (tui_reg_command): New function.
9738
5afe342e
TT
97392020-02-22 Tom Tromey <tom@tromey.com>
9740
9741 * tui/tui.c (tui_rl_delete_other_windows): Call
9742 tui_remove_some_windows.
9743 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9744 Declare method.
9745 (class tui_layout_window) <remove_windows>: New method.
9746 (class tui_layout_split) <remove_windows>: Declare.
9747 (tui_remove_some_windows): Declare.
9748 * tui/tui-layout.c (tui_remove_some_windows): New function.
9749 (tui_layout_split::remove_windows): New method.
9750
427326a8
TT
97512020-02-22 Tom Tromey <tom@tromey.com>
9752
9753 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9754 * tui/tui-layout.h (tui_next_layout): Declare.
9755 * tui/tui-layout.c (tui_next_layout): New function.
9756
3fe12b6d
TT
97572020-02-22 Tom Tromey <tom@tromey.com>
9758
9759 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9760 correct coordinates.
9761
59b8b5d2
TT
97622020-02-22 Tom Tromey <tom@tromey.com>
9763
9764 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9765 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9766 DATA_WIN case.
9767
2a3d458b
TT
97682020-02-22 Tom Tromey <tom@tromey.com>
9769
9770 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9771 TUI_DISASM_WIN, not tui_win_list.
9772
3f0cbb04
TT
97732020-02-22 Tom Tromey <tom@tromey.com>
9774
9775 * valprint.c (generic_val_print_enum_1)
9776 (val_print_type_code_flags): Style member names.
9777 * rust-lang.c (val_print_struct, rust_print_enum)
9778 (rust_print_struct_def, rust_internal_print_type): Style member
9779 names.
9780 * p-valprint.c (pascal_object_print_value_fields): Style member
9781 names. Only call fprintf_symbol_filtered for static members.
9782 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9783 * f-valprint.c (f_val_print): Style member names.
9784 * f-typeprint.c (f_type_print_base): Style member names.
9785 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9786 call fprintf_symbol_filtered for static members.
9787 (cp_print_class_member): Style member names.
9788 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9789 member names.
9790 * ada-valprint.c (ada_print_scalar): Style enum names.
9791 (ada_val_print_enum): Likewise.
9792 * ada-typeprint.c (print_enum_type): Style enum names.
9793
d4d947ae
TT
97942020-02-21 Tom Tromey <tom@tromey.com>
9795
9796 * psympriv.h (struct partial_symtab): Update comment.
9797
e94e944b
TT
97982020-02-21 Tom Tromey <tromey@adacore.com>
9799
9800 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9801 type is CORE_ADDR.
9802
1eb73179
TV
98032020-02-21 Tom de Vries <tdevries@suse.de>
9804
9805 PR gdb/25534
9806 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9807 if dependencies[i]->user != NULL.
9808
4f180d53
AT
98092020-02-21 Ali Tamur <tamur@google.com>
9810
9811 * dwarf2/read.c (dwarf2_name): Add null check.
9812
22b6cd70
TT
98132020-02-20 Tom Tromey <tom@tromey.com>
9814
9815 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9816 ">=", in binary search.
9817 (dwarf2_find_containing_comp_unit): New overload.
9818 (run_test): New self-test.
9819 (_initialize_dwarf2_read): Register new test.
9820
bd0cf5a6
NC
98212020-02-20 Nelson Chu <nelson.chu@sifive.com>
9822
9823 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9824 * riscv-tdep.h: Likewise.
9825 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9826 rv32-only CSR.
9827 * features/riscv/64bit-csr.xml: Regenerated.
9828
3f702acd
SDJ
98292020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9830 Tom Tromey <tom@tromey.com>
9831
9832 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9833 of 'fputc_unfiltered'.
9834 (putchar_unfiltered): Call 'fputc_unfiltered'.
9835 (fputc_unfiltered): Call 'fputs_unfiltered'.
9836
d13c7322
AB
98372020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9838
9839 * config.in: Regenerate.
9840 * configure: Regenerate.
9841 * configure.ac: Add --with-python-libdir option.
9842 * main.c: Use WITH_PYTHON_LIBDIR.
9843
869d8950
TT
98442020-02-19 Tom Tromey <tom@tromey.com>
9845
9846 * symtab.c (general_symbol_info::compute_and_set_names): Use
9847 obstack_strndup. Simplify call to symbol_set_demangled_name.
9848
298e9637
SM
98492020-02-19 Simon Marchi <simon.marchi@efficios.com>
9850
9851 * dwarf2/read.c (allocate_signatured_type_table,
9852 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9853 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9854 Remove objfile parameter, update all callers.
9855
08410482
DE
98562020-02-19 Doug Evans <dje@google.com>
9857
9858 PR rust/25535
9859 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9860 rust_enum_variant calculation.
9861
dfdeeca1
TT
98622020-02-19 Tom Tromey <tromey@adacore.com>
9863
9864 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9865
2ef5453b
TT
98662020-02-19 Tom Tromey <tromey@adacore.com>
9867
9868 * ada-lang.c (cache_symbol): Use obstack_strdup.
9869
9f1528a1
AB
98702020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9871
9872 * configure: Regenerate.
9873
d3c22fa8
TT
98742020-02-19 Tom Tromey <tromey@adacore.com>
9875
9876 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9877 NULL check.
9878
bf84f706
MR
98792020-02-19 Maciej W. Rozycki <macro@wdc.com>
9880
9881 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9882
d1c9b20f
AB
98832020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9884
9885 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9886 if GDBSERVER is not defined.
9887 (riscv_tdesc_cache): Likewise, also store const target_desc.
9888 (STATIC_IN_GDB): Define.
9889 (riscv_create_target_description): Update declaration with
9890 STATIC_IN_GDB.
9891 (riscv_lookup_target_description): New function, only define if
9892 GDBSERVER is not defined.
9893 * arch/riscv.h (riscv_create_target_description): Declare only
9894 when GDBSERVER is defined.
9895 (riscv_lookup_target_description): New declaration when GDBSERVER
9896 is not defined.
9897 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9898 (riscv_linux_read_features): ...this, and return
9899 riscv_gdbarch_features instead of target_desc.
9900 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9901 (riscv_linux_read_description): Rename to...
9902 (riscv_linux_read_features): ...this.
9903 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9904 Update to use riscv_gdbarch_features and
9905 riscv_lookup_target_description.
9906 * riscv-tdep.c (riscv_find_default_target_description): Use
9907 riscv_lookup_target_description instead of
9908 riscv_create_target_description.
9909
373d7ac0
SM
99102020-02-18 Simon Marchi <simon.marchi@efficios.com>
9911
9912 * valprint.c (generic_val_print_enum_1): When printing a flag
9913 enum with value 0 and there is no enumerator with value 0, print
9914 just "0" instead of "(unknown: 0x0)".
9915
b29a2df0
SM
99162020-02-18 Simon Marchi <simon.marchi@efficios.com>
9917
9918 * valprint.c (generic_val_print_enum_1): Print unknown part of
9919 flag enum in hex.
9920
6740f0cc
SM
99212020-02-18 Simon Marchi <simon.marchi@efficios.com>
9922
9923 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9924 flag enums to contain duplicate enumerators.
9925 * valprint.c (generic_val_print_enum_1): Update comment.
9926
edd45eb0
SM
99272020-02-18 Simon Marchi <simon.marchi@efficios.com>
9928
9929 * dwarf2/read.c: Include "count-one-bits.h".
9930 (update_enumeration_type_from_children): If an enumerator has
9931 multiple bits set, don't treat the enumeration as a "flag enum".
9932 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9933 of flag enums have 0 or 1 bit set.
9934
6d0cf446
BE
99352020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9936
9937 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9938 conversion.
9939 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9940 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9941 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9942 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9943 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9944
7001c1b7
SM
99452020-02-18 Simon Marchi <simon.marchi@efficios.com>
9946
9947 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9948
fdb61c6c
SM
99492020-02-14 Simon Marchi <simon.marchi@efficios.com>
9950
9951 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9952 displaced_step_closure_up.
9953 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9954 (struct displaced_step_closure_up):
9955 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9956 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9957 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9958 Likewise.
9959 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9960 * gdbarch.c, gdbarch.h: Re-generate.
9961 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9962 displaced_step_closure_up.
9963 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9964 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9965 * infrun.h (displaced_step_closure_up): New type alias.
9966 (struct displaced_step_inferior_state) <step_closure>: Change
9967 type to displaced_step_closure_up.
9968 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9969 displaced_step_closure_up.
9970 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9971
a4a38eb4
TT
99722020-02-14 Tom Tromey <tom@tromey.com>
9973
9974 * minidebug.c (gnu_debug_key): New global.
9975 (find_separate_debug_file_in_section): Use it.
9976
e8217e61
SM
99772020-02-14 Simon Marchi <simon.marchi@efficios.com>
9978
9979 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9980 std::unique_ptr.
9981 * gdbarch.c: Re-generate.
9982 * gdbarch.h: Re-generate.
9983 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9984 change.
9985 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9986 type to std::unique_ptr.
9987 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
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): Likewise.
9991 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9992 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9993 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9994 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9995 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9996
d8d83535
SM
99972020-02-14 Simon Marchi <simon.marchi@efficios.com>
9998
9999 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
10000 std::unique_ptr.
10001 (displaced_step_clear): Rename to...
10002 (displaced_step_reset): ... this. Just call displaced->reset ().
10003 (displaced_step_clear_cleanup): Rename to...
10004 (displaced_step_reset_cleanup): ... this.
10005 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
10006 (displaced_step_fixup): Likewise.
10007 (resume_1): Likewise.
10008 (handle_inferior_event): Restore child's memory before calling
10009 displaced_step_fixup on the parent.
10010 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
10011 to std::unique_ptr.
10012 <step_closure>: Change type to std::unique_ptr.
10013
5f661e03
SM
100142020-02-14 Simon Marchi <simon.marchi@efficios.com>
10015
10016 * arm-tdep.c: Include count-one-bits.h.
10017 (cleanup_block_store_pc): Use count_one_bits.
10018 (cleanup_block_load_pc): Use count_one_bits.
10019 (arm_copy_block_xfer): Use count_one_bits.
10020 (thumb2_copy_block_xfer): Use count_one_bits.
10021 (thumb_copy_pop_pc_16bit): Use count_one_bits.
10022 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
10023 (thumb_get_next_pcs_raw): Use count_one_bits.
10024 (arm_get_next_pcs_raw): Use count_one_bits_l.
10025 * arch/arm.c (bitcount): Remove.
10026 * arch/arm.h (bitcount): Remove.
10027
8084e579
TT
100282020-02-14 Tom Tromey <tromey@adacore.com>
10029
10030 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
10031 Update.
10032 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
10033 * dwarf2/loc.c (call_site_find_chain_1): Return
10034 unique_xmalloc_ptr.
10035 (call_site_find_chain): Likewise.
10036
258bf0ee
RB
100372020-02-14 Richard Biener <rguenther@suse.de>
10038
10039 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10040 on expression with division operators.
10041
f98a8458
AKS
100422020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10043
10044 * MAINTAINERS (Write After Approval): Adding myself.
10045
d1437c0e
TT
100462020-02-12 Tom Tromey <tom@tromey.com>
10047
10048 * event-loop.c (event_data, gdb_event, event_handler_func):
10049 Remove.
10050
3d4560f7
TT
100512020-02-12 Tom Tromey <tom@tromey.com>
10052
10053 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10054 (dwarf2_frame_objfile_data): Add comment.
10055 (find_comp_unit, set_comp_unit): New functions.
10056 (dwarf2_frame_find_fde): Use find_comp_unit.
10057 (dwarf2_build_frame_info): Use set_comp_unit.
10058
21982304
TT
100592020-02-12 Tom Tromey <tom@tromey.com>
10060
10061 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10062 (comp_unit): Don't initialize objfile.
10063 (execute_cfa_program): Add text_offset parameter.
10064 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10065 (dwarf2_frame_cache): Update.
10066 (dwarf2_build_frame_info): Don't set "objfile" member.
10067
4debb237
TT
100682020-02-12 Tom Tromey <tom@tromey.com>
10069
10070 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10071 (decode_frame_entry): Likewise.
10072 (dwarf2_build_frame_info): Update.
10073
0d404d44
TT
100742020-02-12 Tom Tromey <tom@tromey.com>
10075
10076 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10077 (decode_frame_entry_1): Use the comp_unit obstack.
10078
a7a3ae5c
TT
100792020-02-12 Tom Tromey <tom@tromey.com>
10080
10081 * dwarf2/frame.c (struct comp_unit): Add initializers and
10082 constructor.
10083 (dwarf2_frame_objfile_data): Store a comp_unit.
10084 (dwarf2_frame_find_fde): Update.
10085 (dwarf2_build_frame_info): Use "new".
10086
a9d65418
TT
100872020-02-12 Tom Tromey <tom@tromey.com>
10088
10089 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10090 (dwarf2_fde_table): Typedef for std::vector.
10091 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10092 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10093 (decode_frame_entry): Update.
10094 (dwarf2_build_frame_info): Use "new".
10095
7559c217
CB
100962020-02-12 Christian Biesinger <cbiesinger@google.com>
10097
10098 * arm-tdep.c (arm_gdbarch_init): Update.
10099 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10100 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10101 have_neon, is_m>: Change to bool.
10102
aeefc73c
CB
101032020-02-12 Christian Biesinger <cbiesinger@google.com>
10104
10105 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10106
d27b8e5f
TT
101072020-02-12 Tom Tromey <tom@tromey.com>
10108
10109 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10110
cd5900f3
HD
101112020-02-12 Hannes Domani <ssbssa@yahoo.de>
10112
10113 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10114 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10115
f056b22b
TT
101162020-02-11 Tom Tromey <tom@tromey.com>
10117
10118 * psymtab.h: Update comment.
10119
f92ff6b5
TT
101202020-02-11 Tom Tromey <tom@tromey.com>
10121
10122 * gdb_obstack.h (struct auto_obstack): Use
10123 DISABLE_COPY_AND_ASSIGN.
10124
3fd6912b
TT
101252020-02-11 Tom Tromey <tom@tromey.com>
10126
10127 * dwarf2/frame.h (struct objfile): Don't forward declare.
10128
69ed9b74
CB
101292020-02-11 Christian Biesinger <cbiesinger@google.com>
10130
10131 * cris-tdep.c (cris_supply_gregset): Change signature to match
10132 what struct regset expects.
10133 (cris_regset): New struct.
10134 (fetch_core_registers): Remove.
10135 (cris_iterate_over_regset_sections): New function.
10136 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10137 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10138
bda874f6
CB
101392020-02-11 Christian Biesinger <cbiesinger@google.com>
10140
10141 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10142 registers.
10143
754e1564
CB
101442020-02-11 Christian Biesinger <cbiesinger@google.com>
10145
10146 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10147
8ddd8e0e
SM
101482020-02-11 Simon Marchi <simon.marchi@efficios.com>
10149
10150 * configure: Re-generate.
10151
898e7f60
SM
101522020-02-11 Simon Marchi <simon.marchi@efficios.com>
10153
10154 * configure: Re-generate.
10155
58df732b
SM
101562020-02-11 Simon Marchi <simon.marchi@efficios.com>
10157
10158 * acinclude: Update warning.m4 path.
10159 * warning.m4: Move to gdbsupport.
10160
da5bd37e
TT
101612020-02-11 Tom Tromey <tromey@adacore.com>
10162
10163 * remote.c (remote_console_output): Update.
10164 * printcmd.c (printf_command): Update.
10165 * event-loop.c (gdb_wait_for_event): Update.
10166 * linux-nat.c (sigchld_handler): Update.
10167 * remote-sim.c (gdb_os_write_stdout): Update.
10168 (gdb_os_flush_stdout): Update.
10169 (gdb_os_flush_stderr): Update.
10170 (gdb_os_write_stderr): Update.
10171 * exceptions.c (print_exception): Update.
10172 * remote-fileio.c (remote_fileio_func_read): Update.
10173 (remote_fileio_func_write): Update.
10174 * tui/tui.c (tui_enable): Update.
10175 * tui/tui-interp.c (tui_interp::init): Update.
10176 * utils.c (init_page_info): Update.
10177 (putchar_unfiltered, fputc_unfiltered): Update.
10178 (gdb_flush): Update.
10179 (emit_style_escape): Update.
10180 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10181 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10182 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10183 (stderr_file::write): Update.
10184 (stderr_file::puts): Update.
10185 * ui-file.h (ui_file_isatty, ui_file_write)
10186 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10187 (ui_file_puts): Don't declare.
10188
85f0dd3c
TV
101892020-02-10 Tom de Vries <tdevries@suse.de>
10190
10191 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10192 sentinel to char *.
10193
2e927613
TV
101942020-02-09 Tom de Vries <tdevries@suse.de>
10195
10196 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10197 filename if it matches "<artificial>".
10198
6bafc845
HD
101992020-02-09 Hannes Domani <ssbssa@yahoo.de>
10200
10201 * windows-tdep.c (struct enum_value_name): New struct.
10202 (create_enum): New function.
10203 (windows_get_siginfo_type): Create and use enum types.
10204
7928d571
HD
102052020-02-09 Hannes Domani <ssbssa@yahoo.de>
10206
10207 * NEWS: Mention $_siginfo support for Windows.
10208 * windows-nat.c (handle_exception): Set siginfo_er.
10209 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10210 (windows_xfer_siginfo): New function.
10211 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10212 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10213 (init_windows_gdbarch_data): New function.
10214 (get_windows_gdbarch_data): New function.
10215 (windows_get_siginfo_type): New function.
10216 (windows_init_abi): Register windows_get_siginfo_type.
10217 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10218
6751ebae
TT
102192020-02-08 Tom Tromey <tom@tromey.com>
10220
10221 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10222 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10223 <keep>: Declare method.
10224 <m_keep>: Remove member.
10225 <~cutu_reader>: Remove.
10226 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10227 (cutu_reader::cutu_reader): Update.
10228 (cutu_reader::keep): Rename from ~cutu_reader.
10229 (process_psymtab_comp_unit, build_type_psymtabs_1)
10230 (process_skeletonless_type_unit, load_partial_comp_unit)
10231 (load_full_comp_unit, dwarf2_read_addr_index)
10232 (read_signatured_type): Update.
10233
135f5437
TT
102342020-02-08 Tom Tromey <tom@tromey.com>
10235
10236 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10237 "want_partial_unit" parameter.
10238 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10239 Inline check for DW_TAG_partial_unit.
10240 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10241
9f66ff1c
TT
102422020-02-08 Tom Tromey <tom@tromey.com>
10243
10244 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10245 read.c.
10246 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10247 read.c.
10248
c8a7a66f
TT
102492020-02-08 Tom Tromey <tom@tromey.com>
10250
10251 * dwarf2/read.c (read_address): Move to comp-unit.c.
10252 (dwarf2_rnglists_process, dwarf2_ranges_process)
10253 (read_attribute_value, dwarf_decode_lines_1)
10254 (var_decode_location, decode_locdesc): Update.
10255 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10256 read.c. Remove "cu" parameter.
10257 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10258 method.
10259
8266302d
TT
102602020-02-08 Tom Tromey <tom@tromey.com>
10261
10262 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10263 (read_indirect_line_string): Update.
10264 * dwarf2/comp-unit.c (read_offset): Remove.
10265 (read_comp_unit_head): Update.
10266 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10267 method.
10268 (read_offset): Don't declare.
10269
4057dfde
TT
102702020-02-08 Tom Tromey <tom@tromey.com>
10271
10272 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10273 * dwarf2/read.c (struct comp_unit_head): Move to
10274 dwarf2/comp-unit.h.
10275 (enum class rcuh_kind): Move to comp-unit.h.
10276 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10277 (read_comp_unit_head, error_check_comp_unit_head)
10278 (read_and_check_comp_unit_head): Move to comp-unit.c.
10279 (read_offset, dwarf_unit_type_name): Likewise.
10280 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10281 (cutu_reader::cutu_reader, read_call_site_scope)
10282 (find_partial_die, follow_die_offset): Update.
10283 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10284
24aa364d
TT
102852020-02-08 Tom Tromey <tom@tromey.com>
10286
10287 * dwarf2/read.c (read_offset_1): Move to leb.c.
10288 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10289 (dwarf_decode_macro_bytes): Update.
10290 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10291 * dwarf2/leb.h (read_offset): Declare.
10292
2c7d5afc
TT
102932020-02-08 Tom Tromey <tom@tromey.com>
10294
10295 * dwarf2/read.c (dwarf2_section_size): Remove.
10296 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10297 Update.
10298 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10299
4075cb26
TT
103002020-02-08 Tom Tromey <tom@tromey.com>
10301
10302 * dwarf2/read.c (read_initial_length): Move to leb.c.
10303 * dwarf2/leb.h (read_initial_length): Declare.
10304 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10305 handle_nonstd parameter.
10306 * dwarf2/frame.c (read_initial_length): Remove.
10307 (decode_frame_entry_1): Update.
10308
09ba997f
TT
103092020-02-08 Tom Tromey <tom@tromey.com>
10310
10311 * dwarf2/loc.c (dwarf2_find_location_expression)
10312 (dwarf_evaluate_loc_desc::get_tls_address)
10313 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10314 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10315 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10316 (dwarf2_compile_property_to_c)
10317 (dwarf2_loc_desc_get_symbol_read_needs)
10318 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10319 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10320 (loclist_describe_location, loclist_tracepoint_var_ref)
10321 (loclist_generate_c_location): Update.
10322 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10323 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10324 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10325 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10326 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10327 (dwarf2_per_cu_data::addr_size)
10328 (dwarf2_per_cu_data::ref_addr_size)
10329 (dwarf2_per_cu_data::text_offset)
10330 (dwarf2_per_cu_data::addr_type): Now methods.
10331 (per_cu_header_read_in): Make per_cu "const".
10332 (dwarf2_version): Remove.
10333 (dwarf2_per_cu_data::int_type): Now a method.
10334 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10335 (set_die_type, read_array_type, read_subrange_index_type)
10336 (read_tag_string_type, read_subrange_type): Update.
10337 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10338 offset_size, ref_addr_size, text_offset, addr_type, version,
10339 objfile, int_type, addr_sized_int_type>: Declare methods.
10340
96c738c0
TT
103412020-02-08 Tom Tromey <tom@tromey.com>
10342
10343 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10344 Move earlier.
10345
8fdd972c
TT
103462020-02-08 Tom Tromey <tom@tromey.com>
10347
10348 * dwarf2/read.h (dwarf_line_debug): Declare.
10349 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10350 * dwarf2/read.c: Move line_header code to new files.
10351 (dwarf_line_debug): No longer static.
10352 * dwarf2/line-header.c: New file.
10353 * dwarf2/line-header.h: New file.
10354
03075812
TT
103552020-02-08 Tom Tromey <tom@tromey.com>
10356
10357 * dwarf2/read.c (struct line_header) <file_full_name,
10358 file_file_name>: Return unique_xmalloc_ptr.
10359 (line_header::file_file_name): Update.
10360 (line_header::file_full_name): Update.
10361 (dw2_get_file_names_reader): Update.
10362 (macro_start_file): Update.
10363
bb822404
TT
103642020-02-08 Tom Tromey <tom@tromey.com>
10365
10366 * dwarf2/read.c (struct line_header) <file_full_name,
10367 file_file_name>: Declare methods.
10368 (dw2_get_file_names_reader): Update.
10369 (file_file_name): Now a method.
10370 (file_full_name): Likewise.
10371 (macro_start_file): Update.
10372
009b64fc
TT
103732020-02-08 Tom Tromey <tom@tromey.com>
10374
10375 * dwarf2/read.c (dwarf_always_disassemble)
10376 (show_dwarf_always_disassemble): Move to loc.c.
10377 (_initialize_dwarf2_read): Move "always-disassemble" registration
10378 to loc.c.
10379 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10380 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10381 static.
10382 (show_dwarf_always_disassemble): Move from read.c.
10383 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10384
5895093f
TT
103852020-02-08 Tom Tromey <tom@tromey.com>
10386
10387 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10388 (create_quick_file_names_table): Return htab_up.
10389 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10390 Update.
10391 * dwarf2/read.h (struct dwarf2_per_objfile)
10392 <quick_file_names_table>: Now htab_up.
10393
b3b32279
TT
103942020-02-08 Tom Tromey <tom@tromey.com>
10395
10396 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10397
1d33d811
TT
103982020-02-08 Tom Tromey <tom@tromey.com>
10399
10400 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10401 Rewrite.
10402 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10403 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10404 (abbrev_table::abbrev_table): No longer inline.
10405 (ABBREV_HASH_SIZE): Remove.
10406 (abbrev_table::m_abbrevs): Now an htab_up.
10407
86de1d91
TT
104082020-02-08 Tom Tromey <tom@tromey.com>
10409
10410 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10411 (cutu_reader): Update.
10412 (build_type_psymtabs_1): Update.
10413 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10414 (abbrev_table::alloc_abbrev): Update.
10415 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10416 (abbrev_table::read): New static method, renamed from
10417 abbrev_table_read_table.
10418 (abbrev_table::alloc_abbrev)
10419 (abbrev_table::add_abbrev): Now private.
10420 (abbrev_table::abbrev_table): Now private.
10421 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10422
0335378b
TT
104232020-02-08 Tom Tromey <tom@tromey.com>
10424
10425 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10426 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10427 htab_up.
10428
48b490f2
TT
104292020-02-08 Tom Tromey <tom@tromey.com>
10430
10431 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10432 htab_up.
10433 (lookup_dwo_unit_in_dwp): Update.
10434 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10435 on obstack.
10436
bc68fb19
TT
104372020-02-08 Tom Tromey <tom@tromey.com>
10438
10439 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10440 obstack.
10441
d15acc42
TT
104422020-02-08 Tom Tromey <tom@tromey.com>
10443
10444 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10445 line_header_hash.
10446 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10447 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10448 Change type to htab_up.
10449
eaa5fa8b
TT
104502020-02-08 Tom Tromey <tom@tromey.com>
10451
10452 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10453 htab_up. Don't allocate on obstack.
10454 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10455 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10456 Change type to htab_up.
10457
b0b6a987
TT
104582020-02-08 Tom Tromey <tom@tromey.com>
10459
10460 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10461 Change type to htab_up.
10462 * dwarf2/read.c (create_signatured_type_table_from_index)
10463 (create_signatured_type_table_from_debug_names)
10464 (create_all_type_units, add_type_unit)
10465 (lookup_dwo_signatured_type, lookup_signatured_type)
10466 (process_skeletonless_type_unit): Update.
10467 (create_debug_type_hash_table, create_debug_types_hash_table):
10468 Change type of types_htab.
10469 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10470 htab_up. Don't allocate on obstack.
10471 (create_cus_hash_table): Change type of cus_htab parameter.
10472 (struct dwo_file) <cus, tus>: Now htab_up.
10473 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10474 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10475 (queue_and_load_all_dwo_tus): Update.
10476 * dwarf2/index-write.c (write_gdbindex): Update.
10477 (write_debug_names): Update.
10478
39856def
TT
104792020-02-08 Tom Tromey <tom@tromey.com>
10480
10481 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10482 dwarf2/read.c. Remove "next" member. Add constructor ntad
10483 destructor.
10484 (struct dwarf2_per_objfile) <queue>: New member.
10485 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10486 dwarf2/read.h.
10487 (dwarf2_queue, dwarf2_queue_tail): Remove.
10488 (class dwarf2_queue_guard): Add parameter to constructor. Use
10489 DISABLE_COPY_AND_ASSIGN.
10490 <m_per_objfile>: New member.
10491 <~dwarf2_queue_guard>: Rewrite.
10492 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10493 Update.
10494 (~dwarf2_queue_item): New.
10495
3e225074
TT
104962020-02-08 Tom Tromey <tom@tromey.com>
10497
10498 * dwarf2/read.c (struct die_info) <has_children>: New member.
10499 (dw2_get_file_names_reader): Remove has_children.
10500 (dw2_get_file_names): Update.
10501 (read_cutu_die_from_dwo): Remove has_children.
10502 (cutu_reader::init_tu_and_read_dwo_dies)
10503 (cutu_reader::cutu_reader): Update.
10504 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10505 Remove has_children.
10506 (build_type_psymtabs_1, process_skeletonless_type_unit)
10507 (load_partial_comp_unit, load_full_comp_unit): Update.
10508 (create_dwo_cu_reader): Remove has_children.
10509 (create_cus_hash_table, read_die_and_children): Update.
10510 (read_full_die_1,read_full_die): Remove has_children.
10511 (read_signatured_type): Update.
10512 (class cutu_reader) <has_children>: Remove.
10513
82ca8957
TT
105142020-02-08 Tom Tromey <tom@tromey.com>
10515
10516 * dwarf2/expr.c: Rename from dwarf2expr.c.
10517 * dwarf2/expr.h: Rename from dwarf2expr.h.
10518 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10519 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10520 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10521 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10522 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10523 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10524 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10525 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10526 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10527 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10528 * dwarf2/loc.c: Rename from dwarf2loc.c.
10529 * dwarf2/loc.h: Rename from dwarf2loc.h.
10530 * dwarf2/read.c: Rename from dwarf2read.c.
10531 * dwarf2/read.h: Rename from dwarf2read.h.
10532 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10533 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10534 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10535 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10536 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10537 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10538 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10539 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10540 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10541 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10542 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10543 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10544 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10545 Update.
10546 * Makefile.in (COMMON_SFILES): Update.
10547 (HFILES_NO_SRCDIR): Update.
10548
9e35d499
TT
105492020-02-08 Tom Tromey <tom@tromey.com>
10550
10551 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10552 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10553
1eba2311
TT
105542020-02-08 Tom Tromey <tom@tromey.com>
10555
10556 * dwarf2read.h (struct die_info): Don't declare.
10557
e41c2da2
TT
105582020-02-08 Tom Tromey <tom@tromey.com>
10559
10560 * dwarf2read.h (die_info_ptr): Remove typedef.
10561
4fc6c0d5
TT
105622020-02-08 Tom Tromey <tom@tromey.com>
10563
10564 * dwarf2read.c (read_call_site_scope)
10565 (handle_data_member_location, dwarf2_add_member_fn)
10566 (mark_common_block_symbol_computed, read_common_block)
10567 (attr_to_dynamic_prop, partial_die_info::read)
10568 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10569 (dwarf2_symbol_mark_computed, set_die_type): Update.
10570 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10571 method.
10572 (attr_form_is_block): Don't declare.
10573 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10574
cd6c91b4
TT
105752020-02-08 Tom Tromey <tom@tromey.com>
10576
10577 * dwarf2read.c (dwarf2_find_base_address, )
10578 (read_call_site_scope, rust_containing_type)
10579 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10580 (handle_data_member_location, dwarf2_add_member_fn)
10581 (get_alignment, read_structure_type, process_structure_scope)
10582 (mark_common_block_symbol_computed, read_common_block)
10583 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10584 (partial_die_info::read, read_attribute_value, new_symbol)
10585 (lookup_die_type, dwarf2_get_ref_die_offset)
10586 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10587 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10588 (dwarf2_symbol_mark_computed): Update.
10589 * dwarf2/attribute.h (struct attribute) <value_as_address,
10590 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10591 methods.
10592 (value_as_address, attr_form_is_section_offset)
10593 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10594 * dwarf2/attribute.c (attribute::value_as_address)
10595 (attribute::form_is_section_offset, attribute::form_is_constant)
10596 (attribute::form_is_ref): Now methods.
10597
162dce55
TT
105982020-02-08 Tom Tromey <tom@tromey.com>
10599
10600 * dwarf2read.c (struct attribute, DW_STRING)
10601 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10602 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10603 (attr_form_is_block, attr_form_is_section_offset)
10604 (attr_form_is_constant, attr_form_is_ref): Move.
10605 * dwarf2/attribute.h: New file.
10606 * dwarf2/attribute.c: New file, from dwarf2read.c.
10607 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10608
3054dd54
TT
106092020-02-08 Tom Tromey <tom@tromey.com>
10610
10611 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10612 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10613 Move.
10614 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10615 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10616 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10617 abbrev.c.
10618 * dwarf2/abbrev.h: New file.
10619 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10620 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10621
96b79293
TT
106222020-02-08 Tom Tromey <tom@tromey.com>
10623
10624 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10625 (dwarf2_section_size, dwarf2_get_section_info)
10626 (create_signatured_type_table_from_debug_names)
10627 (create_addrmap_from_aranges, read_debug_names_from_section)
10628 (get_gdb_index_contents_from_section, read_comp_unit_head)
10629 (error_check_comp_unit_head, read_abbrev_offset)
10630 (create_debug_type_hash_table, init_cu_die_reader)
10631 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10632 (read_comp_units_from_section, create_cus_hash_table)
10633 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10634 (create_dwp_v2_section, dwarf2_rnglists_process)
10635 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10636 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10637 (read_indirect_string_from_dwz, read_addr_index_1)
10638 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10639 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10640 (fill_in_loclist_baton): Update.
10641 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10642 get_containing_section, get_bfd_owner, get_bfd_section,
10643 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10644 (dwarf2_read_section, get_section_name, get_section_file_name)
10645 (get_containing_section, get_section_bfd_owner)
10646 (get_section_bfd_section, get_section_name, get_section_file_name)
10647 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10648 declare.
10649 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10650 (dwarf2_section_info::get_bfd_owner)
10651 (dwarf2_section_info::get_bfd_section)
10652 (dwarf2_section_info::get_name)
10653 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10654 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10655 (dwarf2_section_info::read): Now methods.
10656 * dwarf-index-write.c (class debug_names): Update.
10657
2c86cff9
TT
106582020-02-08 Tom Tromey <tom@tromey.com>
10659
10660 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10661 Move to dwarf2/section.h.
10662 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10663 (get_section_bfd_section, get_section_name)
10664 (get_section_file_name, get_section_id, get_section_flags)
10665 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10666 dwarf2/section.c.
10667 * dwarf2/section.h: New file.
10668 * dwarf2/section.c: New file, from dwarf2read.c.
10669 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10670
f4382c45
TT
106712020-02-08 Tom Tromey <tom@tromey.com>
10672
10673 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10674 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10675 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10676 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10677 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10678 * dwarf2/leb.h: New file, from dwarf2read.c.
10679 * dwarf2/leb.c: New file, from dwarf2read.c.
10680 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10681 Remove.
10682 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10683 (COMMON_SFILES): Add dwarf2/leb.c.
10684
01840b7a
JB
106852020-02-08 Joel Brobecker <brobecker@adacore.com>
10686
10687 GDB 9.1 released.
10688
dfcb27e4
IB
106892020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10690
10691 PR gdb/25190:
aac66a4c
SM
10692 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10693 * gdb/remote.c (remote_console_output): Update.
10694 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10695 (ui_file_puts): ...this.
10696 * gdb/ui-file.h (ui_file_puts): Add declaration.
10697 * gdb/utils.c (emit_style_escape): Update.
10698 (flush_wrap_buffer): Update.
10699 (fputs_maybe_filtered): Update.
10700 (fputs_unfiltered): Add function.
dfcb27e4 10701
faa17681
IB
107022020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10703
aac66a4c
SM
10704 * gdb/event-loop.c (gdb_wait_for_event): Update.
10705 * gdb/printcmd.c (printf_command): Update.
10706 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10707 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10708 (gdb_os_flush_stderr): Update.
10709 * gdb/remote.c (remote_console_output): Update.
10710 * gdb/ui-file.c (gdb_flush): Rename to...
10711 (ui_file_flush): ...this.
10712 (stderr_file::write): Update.
10713 (stderr_file::puts): Update.
10714 * gdb/ui-file.h (gdb_flush): Rename to...
10715 (ui_file_flush): ...this.
10716 * gdb/utils.c (gdb_flush): Add function.
10717 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10718
5abbbe1d
TT
107192020-02-07 Tom Tromey <tromey@adacore.com>
10720
10721 PR breakpoints/24915:
10722 * source.c (find_and_open_source): Do not check basenames_may_differ.
10723
919adfe8
TT
107242020-02-07 Tom Tromey <tom@tromey.com>
10725
10726 * README: Update gdbserver documentation.
10727 * gdbserver: Move to top level.
10728 * configure.tgt (build_gdbserver): Remove.
10729 * configure.ac: Remove --enable-gdbserver.
10730 * configure: Rebuild.
10731 * Makefile.in (distclean): Don't mention gdbserver.
10732
1d5d29e7
SV
107332020-02-06 Shahab Vahedi <shahab@synopsys.com>
10734
10735 * source-cache.c (source_cache::ensure): Surround
10736 get_plain_source_lines with a try/catch.
10737 (source_cache::get_line_charpos): Get rid of try/catch
10738 and only check for the return value of "ensure".
10739 * tui/tui-source.c (tui_source_window::set_contents):
10740 Simplify "nlines" calculation.
10741
6eb1129c
SV
107422020-02-06 Shahab Vahedi <shahab@synopsys.com>
10743
10744 * MAINTAINERS (Write After Approval): Add myself.
10745
c6a42d11
CB
107462020-02-05 Christian Biesinger <cbiesinger@google.com>
10747
10748 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10749 function call.
10750
c8ecdda6
CB
107512020-02-05 Christian Biesinger <cbiesinger@google.com>
10752
10753 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10754
f6480e70
MR
107552020-02-05 Maciej W. Rozycki <macro@wdc.com>
10756
10757 * nat/riscv-linux-tdesc.h: New file.
10758 * nat/riscv-linux-tdesc.c: New file, taking code from...
10759 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10760 ... here.
10761 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10762 NATDEPFILES.
10763
dcc9fbc6
AB
107642020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10765
10766 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10767 we don't set the fake simulator ptid to the null_ptid.
10768
719546c4
SM
107692020-02-03 Simon Marchi <simon.marchi@efficios.com>
10770
10771 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10772 * gdbthread.h (class thread_info) <resumed>: Likewise.
10773 * infrun.c (resume_1): Likewise.
10774 (proceed): Likewise.
10775 (infrun_thread_stop_requested): Likewise.
10776 (stop_all_threads): Likewise.
10777 (handle_inferior_event): Likewise.
10778 (restart_threads): Likewise.
10779 (finish_step_over): Likewise.
10780 (keep_going_stepped_thread): Likewise.
10781 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10782 (linux_handle_extended_wait): Likewise.
10783 * record-btrace.c (get_thread_current_frame_id): Likewise.
10784 * record-full.c (record_full_wait_1): Likewise.
10785 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10786 * target.c (target_resume): Likewise.
10787 * thread.c (set_running_thread): Likewise.
10788
e409c542
AKS
107892020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10790
10791 * f-valprint.c (f77_print_array_1): Changed datatype of index
10792 variable to LONGEST from int to enable it to contain bound
10793 values correctly.
10794
ee98c0da
MR
107952020-02-03 Maciej W. Rozycki <macro@wdc.com>
10796
10797 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10798 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10799 offsets according to FLEN determined.
10800 (riscv_linux_nat_target::read_description): Determine FLEN
10801 dynamically.
10802 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10803 according to FLEN determined.
10804 (riscv_linux_nat_target::store_registers): Likewise.
10805
aa66aac4
SV
108062020-02-01 Shahab Vahedi <shahab@synopsys.com>
10807
10808 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10809 when reg->group is empty and reggroup is not.
10810
fd9faca8
TT
108112020-01-31 Tom Tromey <tromey@adacore.com>
10812
10813 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10814 Call beneath target's mourn_inferior after unpushing.
10815
42330a68
AB
108162020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10817
10818 PR tui/9765
10819 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10820 have enough lines to fill the screen, still return the lowest
10821 address we found.
10822
7a27a45b
AB
108232020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10824
10825 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10826 '-', '<', and '>' commands.
10827
c47f70e2
PA
108282020-01-29 Pedro Alves <palves@redhat.com>
10829 Sergio Durigan Junior <sergiodj@redhat.com>
10830
10831 * infcmd.c (construct_inferior_arguments): Assert that
10832 'argc' is greater than 0.
10833
5133a315
LM
108342020-01-29 Luis Machado <luis.machado@linaro.org>
10835
10836 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10837 (BRK_INSN_MASK): Define to 0xd4200000.
10838 (aarch64_program_breakpoint_here_p): New function.
10839 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10840 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10841 breakpoint.c.
10842 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10843 breakpoint.h
10844 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10845 call gdbarch_program_breakpoint_here_p.
10846 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10847 default_program_breakpoint_here_p, changed return type to bool and
10848 simplified.
10849 * breakpoint.h (program_breakpoint_here): Moved prototype to
10850 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10851 return type to bool.
10852 * gdbarch.c: Regenerate.
10853 * gdbarch.h: Regenerate.
10854 * gdbarch.sh (program_breakpoint_here_p): New method.
10855 * infrun.c (handle_signal_stop): Call
10856 gdbarch_program_breakpoint_here_p.
10857
168f8c6b
TT
108582020-01-26 Tom Tromey <tom@tromey.com>
10859
10860 * ctfread.c (struct ctf_fp_info): Reindent.
10861 (_initialize_ctfread): Remove.
10862
128a391f
TT
108632020-01-26 Tom Tromey <tom@tromey.com>
10864
10865 * psymtab.c (partial_map_expand_apply)
10866 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10867 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10868 (psym_print_stats, psym_expand_symtabs_for_function)
10869 (psym_map_symbol_filenames, psym_map_matching_symbols)
10870 (psym_expand_symtabs_matching)
10871 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10872 (maintenance_check_psymtabs): Use new methods.
10873 * psympriv.h (struct partial_symtab) <readin_p,
10874 get_compunit_symtab>: New methods.
10875 <readin, compunit_symtab>: Remove members.
10876 (struct standard_psymtab): New.
10877 (struct legacy_psymtab): Derive from standard_psymtab.
10878 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10879 standard_psymtab.
10880 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10881
0494dbec
TT
108822020-01-26 Tom Tromey <tom@tromey.com>
10883
10884 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10885 read_dependencies. Add assert.
10886 * psymtab.c (partial_symtab::read_dependencies): New method.
10887 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10888 method.
10889 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10890 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10891 read_dependencies.
10892 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10893 Add assert.
10894
8566b89b
TT
108952020-01-26 Tom Tromey <tom@tromey.com>
10896
10897 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10898 Call expand_psymtab.
10899 (xcoff_read_symtab): Call expand_psymtab.
10900 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10901 legacy_expand_psymtab.
10902 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10903 method.
10904 (struct legacy_psymtab) <expand_psymtab>: Implement.
10905 <legacy_expand_psymtab>: New member.
10906 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10907 (parse_partial_symbols): Set legacy_expand_psymtab.
10908 (psymtab_to_symtab_1): Change argument order. Call
10909 expand_psymtab.
10910 (new_psymtab): Set legacy_expand_psymtab.
10911 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10912 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10913 expand_psymtab.
10914 (dwarf2_psymtab::expand_psymtab): Rename from
10915 psymtab_to_symtab_1. Call expand_psymtab.
10916 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10917 (dbx_end_psymtab): Likewise.
10918 (dbx_psymtab_to_symtab_1): Change argument order. Call
10919 expand_psymtab.
10920 (dbx_read_symtab): Call expand_psymtab.
10921 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10922 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10923 (ctf_psymtab::read_symtab): Call expand_psymtab.
10924
077cbab2
TT
109252020-01-26 Tom Tromey <tom@tromey.com>
10926
10927 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10928 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10929 messages.
10930 * mdebugread.c (mdebug_read_symtab): Remove prints.
10931 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10932 assert.
10933 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10934
891813be
TT
109352020-01-26 Tom Tromey <tom@tromey.com>
10936
10937 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10938 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10939 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10940 legacy_symtab.
10941 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10942 * psymtab.c (psymtab_to_symtab): Call method.
10943 (dump_psymtab): Update.
10944 * psympriv.h (struct partial_symtab): Add virtual destructor.
10945 <read_symtab>: New method.
10946 (struct legacy_symtab): New.
10947 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10948 (struct pst_map) <pst>: Now a legacy_psymtab.
10949 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10950 (new_psymtab): Use legacy_psymtab.
10951 * dwarf2read.h (struct dwarf2_psymtab): New.
10952 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10953 * dwarf2read.c (dwarf2_create_include_psymtab)
10954 (dwarf2_build_include_psymtabs, create_type_unit_group)
10955 (create_partial_symtab, process_psymtab_comp_unit_reader)
10956 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10957 (set_partial_user): Use dwarf2_psymtab.
10958 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10959 (psymtab_to_symtab_1, process_full_comp_unit)
10960 (process_full_type_unit, dwarf2_ranges_read)
10961 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10962 (dwarf_decode_lines): Use dwarf2_psymtab.
10963 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10964 (add_address_entry_worker, write_one_signatured_type)
10965 (recursively_count_psymbols, recursively_write_psymbols)
10966 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10967 (write_debug_names): Likewise.
10968 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10969 <pst>: Now a legacy_psymtab.
10970 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10971 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10972 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10973 * ctfread.c (struct ctf_psymtab): New.
10974 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10975 ctf_psymtab.
10976 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10977 (create_partial_symtab): Return a ctf_psymtab.
10978 (scan_partial_symbols): Update.
10979
c3693a1d
TT
109802020-01-26 Tom Tromey <tom@tromey.com>
10981
10982 * xcoffread.c (xcoff_start_psymtab): Use new.
10983 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10984 renamed from start_psymtab_common.
10985 * psympriv.h (struct partial_symtab): Add new constructor.
10986 (start_psymtab_common): Don't declare.
10987 * mdebugread.c (parse_partial_symbols): Use new.
10988 * dwarf2read.c (create_partial_symtab): Use new.
10989 * dbxread.c (start_psymtab): Use new.
10990 * ctfread.c (create_partial_symtab): Use new.
10991
32caafd0
TT
109922020-01-26 Tom Tromey <tom@tromey.com>
10993
10994 * xcoffread.c (xcoff_end_psymtab): Use new.
10995 * psymtab.c (start_psymtab_common): Use new.
10996 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10997 Update.
10998 * psympriv.h (struct partial_symtab): Add parameters to
10999 constructor. Don't inline.
11000 (allocate_psymtab): Don't declare.
11001 * mdebugread.c (new_psymtab): Use new.
11002 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
11003 * dbxread.c (dbx_end_psymtab): Use new.
11004
abaa2f23
TT
110052020-01-26 Tom Tromey <tom@tromey.com>
11006
11007 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
11008 allocate_psymtab. Update documentation.
11009 * psymtab.c (psymtab_storage::install_psymtab): Rename from
11010 allocate_psymtab. Do not use new.
11011 (allocate_psymtab): Use new. Update.
11012
6d94535f
TT
110132020-01-26 Tom Tromey <tom@tromey.com>
11014
11015 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
11016 * psymtab.c (psym_print_stats): Update.
11017 * psympriv.h (struct partial_symtab) <readin,
11018 psymtabs_addrmap_supported, anonymous>: Now bool.
11019 * mdebugread.c (psymtab_to_symtab_1): Update.
11020 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
11021 (build_type_psymtabs_reader, psymtab_to_symtab_1)
11022 (process_full_comp_unit, process_full_type_unit): Update.
11023 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
11024 * ctfread.c (psymtab_to_symtab): Update.
11025
6f17252b
TT
110262020-01-26 Tom Tromey <tom@tromey.com>
11027
11028 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
11029 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
11030 * psymtab.c (psymtab_storage): Delete psymtabs.
11031 (psymtab_storage::allocate_psymtab): Use new.
11032 (psymtab_storage::discard_psymtab): Use delete.
11033 * psympriv.h (struct partial_symtab): Add constructor and
11034 initializers.
11035
f6f1cebc
TT
110362020-01-26 Tom Tromey <tom@tromey.com>
11037
11038 * machoread.c: Do not include psympriv.h.
11039
e47e48f6
PW
110402020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11041
11042 * NEWS: Mention the new option and the set/show commands.
11043
a2fedca9
PW
110442020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11045
11046 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11047 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11048 (validate_exec_file): New variables, enums, functions.
11049 (exec_file_locate_attach, print_section_info): Style the filenames.
11050 (_initialize_exec): Install show_exec_file_mismatch_command and
11051 set_exec_file_mismatch_command.
11052 * gdbcore.h (validate_exec_file): Declare.
11053 * infcmd.c (attach_command): Call validate_exec_file.
11054 * remote.c ( remote_target::remote_add_inferior): Likewise.
11055
7ffa82e1
AB
110562020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11057
11058 * frame.c (find_frame_sal): Move call to get_next_frame into more
11059 inner scope.
11060 * inline-frame.c (inilne_state) <inline_state>: Update argument
11061 types.
11062 (inilne_state) <skipped_symbol>: Rename to...
11063 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11064 (skip_inline_frames): Build vector of skipped symbols and use this
11065 to reate the inline_state.
11066 (inline_skipped_symbol): Add a comment and some assertions, fetch
11067 skipped symbol from the list.
11068
3d92a3e3
AB
110692020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11070
11071 * buildsym.c (lte_is_less_than): Delete.
11072 (buildsym_compunit::end_symtab_with_blockvector): Create local
11073 lambda function to sort line table entries, and use
11074 std::stable_sort instead of std::sort.
11075 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11076 markers when looking for a previous line.
11077
94a72be7
AB
110782020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11079
11080 * dwarf2read.c (lnp_state_machine::record_line): Include
11081 end_sequence parameter in debug print out. Record the line if we
11082 are at an end_sequence marker even if it's not the start of a
11083 statement.
11084 * symmisc.c (maintenance_print_one_line_table): Print end of
11085 sequence markers with 'END' not '0'.
11086
53af73bf
PA
110872020-01-24 Pedro Alves <palves@redhat.com>
11088
11089 PR gdb/25410
11090 * thread.c (scoped_restore_current_thread::restore): Use
11091 switch_to_inferior_no_thread.
11092 * exec.c: Include "progspace-and-thread.h".
11093 (add_target_sections, remove_target_sections):
11094 scoped_restore_current_pspace_and_thread instead of
11095 scoped_restore_current_thread.
11096 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11097 and aspace to the inferior before calling clone_program_space.
11098 Remove stale comment.
11099
3050c6f4
CB
111002020-01-24 Christian Biesinger <cbiesinger@google.com>
11101
11102 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11103 (arm_netbsd_nat_target::fetch_registers): ...this.
11104 (arm_nbsd_nat_target::store_registers): Rename to...
11105 (arm_netbsd_nat_target::store_registers): ...this.
11106
73685c7e
CB
111072020-01-24 Christian Biesinger <cbiesinger@google.com>
11108
11109 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11110 register_t.
11111
89203d40
CB
111122020-01-24 Christian Biesinger <cbiesinger@google.com>
11113
11114 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11115 Update comment.
11116 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11117 Likewise.
11118 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11119 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11120 the correct replacement (iterate_over_regset_sections).
11121 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11122 Update comment.
11123
1ba1ac88
AB
111242020-01-24 Graham Markall <graham.markall@embecosm.com>
11125
11126 PR gdb/23718
11127 * gdb/python/python.c (execute_gdb_command): Call
11128 async_enable_stdin in catch block.
11129
f3364a6d
AB
111302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11131
11132 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11133 SWITCH_THRU_ALL_UIS.
11134
733d0a67
AB
111352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11136
11137 PR tui/9765
11138 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11139 comment, add extra parameter, and update to store previous symbol
11140 when appropriate.
11141 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11142 add extra parameter.
11143 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11144 remove unneeded parameter, add try/catch around gdb_print_insn,
11145 rewrite to add items to asm_lines vector.
11146 (tui_find_backward_disassembly_start_address): New function.
11147 (tui_find_disassembly_address): Updated throughout.
11148 (tui_disasm_window::set_contents): Update for changes to
11149 tui_disassemble.
11150 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11151 number of lines to scroll.
11152
b3b3bada
SM
111532020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11154
11155 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11156 (SECT_OFF_DATA): Likewise.
11157 (SECT_OFF_RODATA): Likewise.
11158 (SECT_OFF_TEXT): Likewise.
11159 (SECT_OFF_BSS): Likewise.
11160 (struct objfile) <text_section_offset, data_section_offset>: New
11161 methods.
11162 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11163 objfile::text_section_offset.
11164 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11165 * coffread.c (coff_symtab_read): Likewise.
11166 (enter_linenos): Likewise.
11167 (process_coff_symbol): Likewise.
11168 * ctfread.c (get_objfile_text_range): Likewise.
11169 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11170 Use objfile::data_section_offset.
11171 * dwarf2-frame.c (execute_cfa_program): Use
11172 objfile::text_section_offset.
11173 (dwarf2_frame_find_fde): Likewise.
11174 * dwarf2read.c (create_addrmap_from_index): Likewise.
11175 (create_addrmap_from_aranges): Likewise.
11176 (dw2_find_pc_sect_compunit_symtab): Likewise.
11177 (process_psymtab_comp_unit_reader): Likewise.
11178 (add_partial_symbol): Likewise.
11179 (add_partial_subprogram): Likewise.
11180 (process_full_comp_unit): Likewise.
11181 (read_file_scope): Likewise.
11182 (read_func_scope): Likewise.
11183 (read_lexical_block_scope): Likewise.
11184 (read_call_site_scope): Likewise.
11185 (dwarf2_rnglists_process): Likewise.
11186 (dwarf2_ranges_process): Likewise.
11187 (dwarf2_ranges_read): Likewise.
11188 (dwarf_decode_lines_1): Likewise.
11189 (new_symbol): Likewise.
11190 (dwarf2_fetch_die_loc_sect_off): Likewise.
11191 (dwarf2_per_cu_text_offset): Likewise.
11192 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11193 * hppa-tdep.c (read_unwind_info): Likewise.
11194 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11195 * psympriv.h (struct partial_symtab): Likewise.
11196 * psymtab.c (find_pc_sect_psymtab): Likewise.
11197 * solib-svr4.c (enable_break): Likewise.
11198 * stap-probe.c (relocate_address): Use
11199 objfile::data_section_offset.
11200 * xcoffread.c (enter_line_range): Use
11201 objfile::text_section_offset.
11202 (read_xcoff_symtab): Likewise.
11203
ab53f382
SM
112042020-01-23 Simon Marchi <simon.marchi@efficios.com>
11205
11206 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11207 declaration to narrower scopes.
11208
e7eee665
SM
112092020-01-23 Simon Marchi <simon.marchi@efficios.com>
11210
11211 * darwin-nat.h (struct darwin_exception_msg, enum
11212 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11213 Move up.
11214 (class darwin_nat_target) <wait_1, check_new_threads,
11215 decode_exception_message, decode_message, stop_inferior,
11216 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11217 * darwin-nat.c (darwin_check_new_threads): Rename to...
11218 (darwin_nat_target::check_new_threads): ... this.
11219 (darwin_suspend_inferior_it): Remove.
11220 (darwin_decode_exception_message): Rename to...
11221 (darwin_nat_target::decode_exception_message): ... this.
11222 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11223 (darwin_decode_message): Rename to...
11224 (darwin_nat_target::decode_message): ... this.
11225 (cancel_breakpoint): Rename to...
11226 (darwin_nat_target::cancel_breakpoint): ... this.
11227 (darwin_wait): Rename to...
11228 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11229 instead of iterate_over_inferiors.
11230 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11231 (darwin_stop_inferior): Rename to...
11232 (darwin_nat_target::stop_inferior): ... this.
11233 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11234 (darwin_init_thread_list): Rename to...
11235 (darwin_nat_target::init_thread_list): ... this.
11236 (darwin_ptrace_him): Rename to...
11237 (darwin_nat_target::ptrace_him): ... this.
11238 (darwin_nat_target::create_inferior): Pass lambda function to
11239 fork_inferior.
11240 (darwin_nat_target::detach): Call stop_inferior instead of
11241 darwin_stop_inferior.
11242 * fork-inferior.h (fork_inferior): Change init_trace_fun
11243 parameter to gdb::function_view.
11244 * fork-inferior.c (fork_inferior): Likewise.
11245
c162ed3e
HD
112462020-01-23 Hannes Domani <ssbssa@yahoo.de>
11247
11248 * i386-cygwin-tdep.c (core_process_module_section): Update.
11249 * windows-nat.c (struct lm_info_windows): Add text_offset.
11250 (windows_xfer_shared_libraries): Update.
11251 * windows-tdep.c (windows_xfer_shared_library):
11252 Add text_offset_cached argument.
11253 * windows-tdep.h (windows_xfer_shared_library): Update.
11254
a1237872
SM
112552020-01-21 Simon Marchi <simon.marchi@efficios.com>
11256
11257 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11258
b3ee6dd9
SM
112592020-01-21 Simon Marchi <simon.marchi@efficios.com>
11260
11261 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11262 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11263 replace with range-based for.
11264 (gdbsim_interrupt_inferior): Remove.
11265 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11266 with a range-based for. Inline code from
11267 gdbsim_interrupt_inferior.
11268
f9fac3c8
SM
112692020-01-21 Simon Marchi <simon.marchi@efficios.com>
11270
11271 * infrun.c (proceed): Fix indentation.
11272
f6474de9
TT
112732020-01-21 Tom Tromey <tromey@adacore.com>
11274
11275 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11276 * python/python.c (python_extension_ops): Update.
11277 (gdbpy_colorize): New function.
11278 * python/lib/gdb/__init__.py (colorize): New function.
11279 * extension.h (ext_lang_colorize): Declare.
11280 * extension.c (ext_lang_colorize): New function.
11281 * extension-priv.h (struct extension_language_ops) <colorize>: New
11282 member.
11283 * cli/cli-style.c (_initialize_cli_style): Update help text.
11284
f0c702d4
LM
112852020-01-21 Luis Machado <luis.machado@linaro.org>
11286
11287 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11288 <cond>: Change type to bool.
11289 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11290 (aarch64_displaced_step_cb): Likewise.
11291 (aarch64_displaced_step_tb): Likewise.
11292
1ab139e5
LM
112932020-01-21 Luis Machado <luis.machado@linaro.org>
11294
11295 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11296 output.
11297
0c271889
LM
112982020-01-21 Luis Machado <luis.machado@linaro.org>
11299
11300 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11301 <pc_adjust>: Adjust the documentation.
11302 (aarch64_displaced_step_fixup): Check if PC really moved before
11303 adjusting it.
11304
4d89c1c7
TT
113052020-01-19 Tom Tromey <tom@tromey.com>
11306
11307 * disasm.c (~gdb_disassembler): New destructor.
11308 (gdb_buffered_insn_length): Call disassemble_free_target.
11309 * disasm.h (class gdb_disassembler): Declare destructor. Use
11310 DISABLE_COPY_AND_ASSIGN.
11311
c0ab21c2
TT
113122020-01-19 Tom Tromey <tom@tromey.com>
11313
11314 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11315 (die_reader_func_ftype): Remove.
11316 (cutu_reader): New class.
11317 (dw2_get_file_names_reader): Remove "data" parameter.
11318 (dw2_get_file_names): Use cutu_reader.
11319 (create_debug_type_hash_table): Update.
11320 (read_cutu_die_from_dwo): Update comment.
11321 (lookup_dwo_unit): Add dwo_name parameter.
11322 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11323 die_reader_func_ftype and data parameters.
11324 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11325 Remove die_reader_func_ftype and data parameters.
11326 (~cutu_reader): New; from init_cutu_and_read_dies.
11327 (cutu_reader::cutu_reader): Rename from
11328 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11329 and data parameters.
11330 (init_cutu_and_read_dies_simple): Remove.
11331 (struct process_psymtab_comp_unit_data): Remove.
11332 (process_psymtab_comp_unit_reader): Remove data parameter; add
11333 want_partial_unit and pretend_language parameters.
11334 (process_psymtab_comp_unit): Use cutu_reader.
11335 (build_type_psymtabs_reader): Remove data parameter.
11336 (build_type_psymtabs_1): Use cutu_reader.
11337 (process_skeletonless_type_unit): Likewise.
11338 (load_partial_comp_unit_reader): Remove.
11339 (load_partial_comp_unit): Use cutu_reader.
11340 (load_full_comp_unit_reader): Remove.
11341 (load_full_comp_unit): Use cutu_reader.
11342 (struct create_dwo_cu_data): Remove.
11343 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11344 dwo_unit parameters.
11345 (create_cus_hash_table): Use cutu_reader.
11346 (struct dwarf2_read_addr_index_data): Remove.
11347 (dwarf2_read_addr_index_reader): Remove.
11348 (dwarf2_read_addr_index): Use cutu_reader.
11349 (read_signatured_type_reader): Remove.
11350 (read_signatured_type): Use cutu_reader.
11351
45bbae5c
TT
113522020-01-19 Tom Tromey <tom@tromey.com>
11353
11354 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11355 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11356 (tui_wrefresh): Declare.
11357 * tui/tui-wingeneral.c (suppress_output): New global.
11358 (tui_suppress_output, ~tui_suppress_output): New constructor and
11359 destructor.
11360 (tui_wrefresh): New function.
11361 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11362 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11363 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11364 method.
11365 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11366 tui_wrefresh.
11367 (tui_data_window::no_refresh): New method.
11368 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11369 (tui_reg_command): Use tui_suppress_output
11370 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11371 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11372 method.
11373 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11374
4f13c1c0
TT
113752020-01-19 Tom Tromey <tom@tromey.com>
11376
11377 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11378 Handle case where symtab is null.
11379
fa47e446
SM
113802020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11381
11382 * linux-fork.c (one_fork_p): Simplify.
11383
26f42329
SM
113842020-01-17 Simon Marchi <simon.marchi@efficios.com>
11385
11386 * top.c (struct qt_args): Remove.
11387 (kill_or_detach): Change return type to void, replace `void *`
11388 parameter with a proper one.
11389 (print_inferior_quit_action): Likewise.
11390 (quit_confirm): Use range-based for loop to iterate over inferiors.
11391 (quit_force): Likewise.
11392
a9ac81b1
SM
113932020-01-17 Simon Marchi <simon.marchi@efficios.com>
11394
11395 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11396 `void *` parameter with proper parameters.
11397 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11398 (print_one_inferior): Change return type to void, replace `void *`
11399 parameter with proper parameters.
11400 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11401 inferiors.
11402 (get_other_inferior): Remove.
11403 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11404 inferiors.
11405
788eca49
SM
114062020-01-17 Simon Marchi <simon.marchi@efficios.com>
11407
11408 * mi/mi-interp.c (report_initial_inferior): Remove.
11409 (mi_interp::init): Use range-based for to iterate over inferiors.
11410
d9bc85b6
SM
114112020-01-17 Simon Marchi <simon.marchi@efficios.com>
11412
11413 * python/py-inferior.c (build_inferior_list): Remove.
11414 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11415
40c94099
CB
114162020-01-16 Christian Biesinger <cbiesinger@google.com>
11417
11418 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11419 (btrace_stitch_trace): Likewise.
11420 * charset.c (intermediate_encoding): Likewise (vaild).
11421 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11422 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11423 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11424
e0cdfe3c
HD
114252020-01-16 Hannes Domani <ssbssa@yahoo.de>
11426
11427 * windows-tdep.c (windows_get_tlb_type):
11428 Add rtl_user_process_parameters type.
11429
790f1718 114302020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11431 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11432
11433 PR build/24805
11434 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11435 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11436 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11437 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11438 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11439 (ps_plog): Redeclare exported functions with default visibility.
11440
3112ed97
NA
114412020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11442
11443 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11444 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11445
8dc3273e
SM
114462020-01-15 Simon Marchi <simon.marchi@efficios.com>
11447
11448 * infcmd.c (post_create_inferior): Use get_thread_regcache
11449 instead of get_current_regcache.
11450
ff47f4f0
TT
114512020-01-14 Tom Tromey <tom@tromey.com>
11452
11453 PR symtab/12535:
11454 * python/python.c (gdbpy_decode_line): Treat empty string the same
11455 as no argument.
11456
975f45b7
TT
114572020-01-14 Tom Tromey <tom@tromey.com>
11458
11459 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11460
25e57356
TT
114612020-01-14 Tom Tromey <tom@tromey.com>
11462
11463 * nat/linux-btrace.c: Don't include <config.h>.
11464 * nat/linux-ptrace.c: Don't include <config.h>.
11465 * nat/x86-linux-dregs.c: Don't include <config.h>.
11466
05ea2a05
TT
114672020-01-14 Tom Tromey <tom@tromey.com>
11468
11469 * configure: Rebuild.
11470 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11471
01027315
TT
114722020-01-14 Tom Tromey <tom@tromey.com>
11473
11474 * nat/x86-linux-dregs.c: Include configh.h.
11475 * nat/linux-ptrace.c: Include configh.h.
11476 * nat/linux-btrace.c: Include configh.h.
11477 * defs.h: Include config.h, bfd.h.
11478 * configure.ac: Don't source common.host.
11479 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11480 * configure: Rebuild.
11481 * acinclude.m4: Update path.
11482 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11483 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11484 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11485 (CLIBS): Add LIBSUPPORT.
11486 (CDEPS): Likewise.
11487 (COMMON_SFILES): Remove gdbsupport files.
11488 (HFILES_NO_SRCDIR): Likewise.
11489 (stamp-version): Update path to create-version.sh.
11490 (ALLDEPFILES): Remove gdbsupport files.
11491
b2ceabe8
TT
114922020-01-14 Tom Tromey <tom@tromey.com>
11493
11494 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11495 USE_WIN32API when needed.
11496 * configure.ac (USE_WIN32API): Don't define.
11497 (WIN32LIBS): Use WIN32APILIBS.
11498 * configure: Rebuild.
11499
25c51f71
TT
115002020-01-14 Tom Tromey <tom@tromey.com>
11501
11502 * configure: Rebuild.
11503 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11504
717c684d
BE
115052020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11506
11507 * skip.c (skip_function_command): Make skip w/o arguments use the
11508 name of the inlined function if pc is inside any inlined function.
11509
7da6a5b9
LM
115102020-01-14 Luis Machado <luis.machado@linaro.org>
11511
11512 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11513 * infrun.c (resume_1): Likewise.
11514 (handle_inferior_event): Remove stale comment.
11515 * linux-nat.c (linux_nat_target::resume): Update comments.
11516 (save_stop_reason): Likewise.
11517 (linux_nat_filter_event): Likewise.
11518 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11519
44e4c775
AB
115202020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11521
11522 * elfread.c (record_minimal_symbol): Set section index to 0 for
11523 non-allocatable sections.
11524
18a8505e
AT
11525
115262020-01-13 Ali Tamur <tamur@google.com>
11527
11528 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11529 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11530 to gdb::optional. Update comments.
11531 (dwo_file): Update comments.
11532 (read_attribute): Update API to take an additional out parameter,
11533 need_reprocess. This is used to mark attributes that need other
11534 attributes (e.g. str_offsets_base) for correct computation which may not
11535 have been read yet.
11536 (read_attribute_reprocess): New function declaration.
11537 (read_addr_index): Likewise.
11538 (read_dwo_str_index): Likewise.
11539 (read_stub_str_index): Likewise.
11540 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11541 (lookup_addr_base): New function definition.
11542 (lookup_ranges_base): Likewise.
11543 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11544 lookup_ranges_base.
11545 (init_cutu_and_read_dies): Update comments.
11546 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11547 unit. This is used to inherit parent's str_offsets_base and addr_base.
11548 Update comments.
11549 (init_cutu_and_read_dies_simple): Reflect API changes.
11550 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11551 (create_cus_hash_table): Change API to take parent compile unit.
11552 Reflect API changes.
11553 (open_and_init_dwo_file): Reflect API changes.
11554 (dwarf2_get_pc_bounds): Update comments.
11555 (dwarf2_record_block_ranges): Likewise.
11556 (read_full_die_1): Change implementation to reprocess attributes that
11557 need str_offsets_base and addr_base.
11558 (partial_die_info::read): Likewise.
11559 (read_attribute_reprocess): New function definition.
11560 (read_attribute_value): Change API to take an additional out parameter,
11561 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11562 when a non-dwo compile unit has index based attributes.
11563 (read_attribute): Reflect API changes.
11564 (read_addr_index_1): Reflect API changes. Update comments.
11565 (dwarf2_read_addr_index_data): Reflect API changes.
11566 (dwarf2_read_addr_index): Likewise.
11567 (read_str_index): Change API and implementation. This becomes a helper
11568 to be used by the new string index related methods. Update error
11569 message and comments.
11570 (read_dwo_str_index): New function definition.
11571 (read_stub_str_index): Likewise.
11572 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11573 * symfile.h (dwarf2_debug_sections): Likewise.
11574 * xcoffread.c (dwarf2_debug_sections): Likewise.
11575
0cac9354
SM
115762020-01-13 Simon Marchi <simon.marchi@efficios.com>
11577
11578 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11579 core_reg_sect type to gdb_byte *.
11580 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11581 * cris-tdep.c (fetch_core_registers): Likewise.
11582 * corelow.c (core_target::get_core_register_section): Change
11583 type of `contents` to gdb::byte_vector.
11584
9a6d629c
AB
115852020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11586
11587 * tui/tui-wingeneral.c (box_win): Position the title in the center
11588 of the border.
11589
d8b2f9e3
SM
115902020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11591
11592 * corelow.c (core_target::get_core_register_section): Use
11593 std::vector instead of alloca.
11594
bb564c58
SM
115952020-01-13 Simon Marchi <simon.marchi@efficios.com>
11596
11597 * warning.m4: Add -Wmissing-declarations to build_warnings.
11598 * configure: Re-generate.
11599
6b366111
SM
116002020-01-13 Simon Marchi <simon.marchi@efficios.com>
11601
11602 * python/python.c (init__gdb_module): Add declaration.
11603
6c265988
SM
116042020-01-13 Simon Marchi <simon.marchi@efficios.com>
11605
11606 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11607 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11608 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11609 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11610 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11611 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11612 * ada-exp.y (_initialize_ada_exp): Add declaration.
11613 * ada-lang.c (_initialize_ada_language): Add declaration.
11614 * ada-tasks.c (_initialize_tasks): Add declaration.
11615 * agent.c (_initialize_agent): Add declaration.
11616 * aix-thread.c (_initialize_aix_thread): Add declaration.
11617 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11618 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11619 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11620 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11621 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11622 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11623 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11624 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11625 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11626 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11627 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11628 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11629 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11630 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11631 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11632 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11633 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11634 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11635 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11636 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11637 * annotate.c (_initialize_annotate): Add declaration.
11638 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11639 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11640 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11641 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11642 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11643 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11644 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11645 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11646 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11647 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11648 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11649 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11650 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11651 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11652 * auto-load.c (_initialize_auto_load): Add declaration.
11653 * auxv.c (_initialize_auxv): Add declaration.
11654 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11655 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11656 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11657 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11658 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11659 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11660 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11661 * breakpoint.c (_initialize_breakpoint): Add declaration.
11662 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11663 * btrace.c (_initialize_btrace): Add declaration.
11664 * charset.c (_initialize_charset): Add declaration.
11665 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11666 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11667 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11668 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11669 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11670 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11671 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11672 * coffread.c (_initialize_coffread): Add declaration.
11673 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11674 * compile/compile.c (_initialize_compile): Add declaration.
11675 * complaints.c (_initialize_complaints): Add declaration.
11676 * completer.c (_initialize_completer): Add declaration.
11677 * copying.c (_initialize_copying): Add declaration.
11678 * corefile.c (_initialize_core): Add declaration.
11679 * corelow.c (_initialize_corelow): Add declaration.
11680 * cp-abi.c (_initialize_cp_abi): Add declaration.
11681 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11682 * cp-support.c (_initialize_cp_support): Add declaration.
11683 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11684 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11685 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11686 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11687 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11688 * ctfread.c (_initialize_ctfread): Add declaration.
11689 * d-lang.c (_initialize_d_language): Add declaration.
11690 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11691 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11692 * dbxread.c (_initialize_dbxread): Add declaration.
11693 * dcache.c (_initialize_dcache): Add declaration.
11694 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11695 * disasm.c (_initialize_disasm): Add declaration.
11696 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11697 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11698 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11699 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11700 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11701 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11702 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11703 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11704 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11705 * elfread.c (_initialize_elfread): Add declaration.
11706 * exec.c (_initialize_exec): Add declaration.
11707 * extension.c (_initialize_extension): Add declaration.
11708 * f-lang.c (_initialize_f_language): Add declaration.
11709 * f-valprint.c (_initialize_f_valprint): Add declaration.
11710 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11711 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11712 * filesystem.c (_initialize_filesystem): Add declaration.
11713 * findcmd.c (_initialize_mem_search): Add declaration.
11714 * findvar.c (_initialize_findvar): Add declaration.
11715 * fork-child.c (_initialize_fork_child): Add declaration.
11716 * frame-base.c (_initialize_frame_base): Add declaration.
11717 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11718 * frame.c (_initialize_frame): Add declaration.
11719 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11720 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11721 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11722 * gcore.c (_initialize_gcore): Add declaration.
11723 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11724 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11725 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11726 * gdbarch.c (_initialize_gdbarch): Add declaration.
11727 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11728 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11729 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11730 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11731 * go-lang.c (_initialize_go_language): Add declaration.
11732 * go32-nat.c (_initialize_go32_nat): Add declaration.
11733 * guile/guile.c (_initialize_guile): Add declaration.
11734 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11735 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11736 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11737 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11738 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11739 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11740 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11741 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11742 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11743 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11744 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11745 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11746 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11747 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11748 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11749 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11750 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11751 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11752 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11753 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11754 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11755 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11756 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11757 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11758 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11759 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11760 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11761 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11762 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11763 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11764 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11765 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11766 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11767 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11768 * infcall.c (_initialize_infcall): Add declaration.
11769 * infcmd.c (_initialize_infcmd): Add declaration.
11770 * inflow.c (_initialize_inflow): Add declaration.
11771 * infrun.c (_initialize_infrun): Add declaration.
11772 * interps.c (_initialize_interpreter): Add declaration.
11773 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11774 * jit.c (_initialize_jit): Add declaration.
11775 * language.c (_initialize_language): Add declaration.
11776 * linux-fork.c (_initialize_linux_fork): Add declaration.
11777 * linux-nat.c (_initialize_linux_nat): Add declaration.
11778 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11779 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11780 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11781 * m2-lang.c (_initialize_m2_language): Add declaration.
11782 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11783 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11784 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11785 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11786 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11787 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11788 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11789 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11790 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11791 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11792 * machoread.c (_initialize_machoread): Add declaration.
11793 * macrocmd.c (_initialize_macrocmd): Add declaration.
11794 * macroscope.c (_initialize_macroscope): Add declaration.
11795 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11796 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11797 * maint.c (_initialize_maint_cmds): Add declaration.
11798 * mdebugread.c (_initialize_mdebugread): Add declaration.
11799 * memattr.c (_initialize_mem): Add declaration.
11800 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11801 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11802 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11803 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11804 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11805 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11806 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11807 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11808 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11809 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11810 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11811 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11812 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11813 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11814 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11815 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11816 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11817 * mipsread.c (_initialize_mipsread): Add declaration.
11818 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11819 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11820 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11821 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11822 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11823 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11824 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11825 * nto-procfs.c (_initialize_procfs): Add declaration.
11826 * objc-lang.c (_initialize_objc_language): Add declaration.
11827 * observable.c (_initialize_observer): Add declaration.
11828 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11829 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11830 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11831 * osabi.c (_initialize_gdb_osabi): Add declaration.
11832 * osdata.c (_initialize_osdata): Add declaration.
11833 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11834 * parse.c (_initialize_parse): Add declaration.
11835 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11836 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11837 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11838 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11839 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11840 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11841 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11842 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11843 * printcmd.c (_initialize_printcmd): Add declaration.
11844 * probe.c (_initialize_probe): Add declaration.
11845 * proc-api.c (_initialize_proc_api): Add declaration.
11846 * proc-events.c (_initialize_proc_events): Add declaration.
11847 * proc-service.c (_initialize_proc_service): Add declaration.
11848 * procfs.c (_initialize_procfs): Add declaration.
11849 * producer.c (_initialize_producer): Add declaration.
11850 * psymtab.c (_initialize_psymtab): Add declaration.
11851 * python/python.c (_initialize_python): Add declaration.
11852 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11853 * record-btrace.c (_initialize_record_btrace): Add declaration.
11854 * record-full.c (_initialize_record_full): Add declaration.
11855 * record.c (_initialize_record): Add declaration.
11856 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11857 * regcache.c (_initialize_regcache): Add declaration.
11858 * reggroups.c (_initialize_reggroup): Add declaration.
11859 * remote-notif.c (_initialize_notif): Add declaration.
11860 * remote-sim.c (_initialize_remote_sim): Add declaration.
11861 * remote.c (_initialize_remote): Add declaration.
11862 * reverse.c (_initialize_reverse): Add declaration.
11863 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11864 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11865 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11866 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11867 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11868 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11869 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11870 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11871 Add declaration.
11872 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11873 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11874 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11875 * rust-exp.y (_initialize_rust_exp): Add declaration.
11876 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11877 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11878 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11879 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11880 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11881 * score-tdep.c (_initialize_score_tdep): Add declaration.
11882 * ser-go32.c (_initialize_ser_dos): Add declaration.
11883 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11884 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11885 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11886 * ser-uds.c (_initialize_ser_socket): Add declaration.
11887 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11888 * serial.c (_initialize_serial): Add declaration.
11889 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11890 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11891 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11892 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11893 * skip.c (_initialize_step_skip): Add declaration.
11894 * sol-thread.c (_initialize_sol_thread): Add declaration.
11895 * solib-aix.c (_initialize_solib_aix): Add declaration.
11896 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11897 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11898 * solib-frv.c (_initialize_frv_solib): Add declaration.
11899 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11900 * solib-target.c (_initialize_solib_target): Add declaration.
11901 * solib.c (_initialize_solib): Add declaration.
11902 * source-cache.c (_initialize_source_cache): Add declaration.
11903 * source.c (_initialize_source): Add declaration.
11904 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11905 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11906 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11907 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11908 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11909 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11910 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11911 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11912 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11913 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11914 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11915 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11916 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11917 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11918 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11919 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11920 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11921 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11922 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11923 * stabsread.c (_initialize_stabsread): Add declaration.
11924 * stack.c (_initialize_stack): Add declaration.
11925 * stap-probe.c (_initialize_stap_probe): Add declaration.
11926 * std-regs.c (_initialize_frame_reg): Add declaration.
11927 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11928 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11929 * symfile.c (_initialize_symfile): Add declaration.
11930 * symmisc.c (_initialize_symmisc): Add declaration.
11931 * symtab.c (_initialize_symtab): Add declaration.
11932 * target.c (_initialize_target): Add declaration.
11933 * target-connection.c (_initialize_target_connection): Add
11934 declaration.
11935 * target-dcache.c (_initialize_target_dcache): Add declaration.
11936 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11937 * thread.c (_initialize_thread): Add declaration.
11938 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11939 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11940 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11941 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11942 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11943 * tracectf.c (_initialize_ctf): Add declaration.
11944 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11945 * tracefile.c (_initialize_tracefile): Add declaration.
11946 * tracepoint.c (_initialize_tracepoint): Add declaration.
11947 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11948 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11949 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11950 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11951 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11952 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11953 * tui/tui.c (_initialize_tui): Add declaration.
11954 * typeprint.c (_initialize_typeprint): Add declaration.
11955 * ui-style.c (_initialize_ui_style): Add declaration.
11956 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11957 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11958 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11959 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11960 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11961 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11962 * unittests/filtered_iterator-selftests.c
11963 (_initialize_filtered_iterator_selftests): Add declaration.
11964 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11965 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11966 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11967 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11968 * unittests/main-thread-selftests.c
11969 (_initialize_main_thread_selftests): Add declaration.
11970 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11971 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11972 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11973 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11974 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11975 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11976 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11977 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11978 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11979 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11980 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11981 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11982 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11983 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11984 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11985 declaration.
11986 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11987 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11988 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11989 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11990 * user-regs.c (_initialize_user_regs): Add declaration.
11991 * utils.c (_initialize_utils): Add declaration.
11992 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11993 * valops.c (_initialize_valops): Add declaration.
11994 * valprint.c (_initialize_valprint): Add declaration.
11995 * value.c (_initialize_values): Add declaration.
11996 * varobj.c (_initialize_varobj): Add declaration.
11997 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11998 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11999 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
12000 * windows-nat.c (_initialize_windows_nat): Add declaration.
12001 (_initialize_check_for_gdb_ini): Add declaration.
12002 (_initialize_loadable): Add declaration.
12003 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
12004 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
12005 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
12006 * xcoffread.c (_initialize_xcoffread): Add declaration.
12007 * xml-support.c (_initialize_xml_support): Add declaration.
12008 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
12009 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
12010 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
12011 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
12012
e2de1eec
SM
120132020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12014
12015 * regformats/regdat.sh: Generate declaration for init function.
12016
e0037b4c
SM
120172020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12018
12019 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
12020 up.
12021 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
12022 close_one_inferior>: New methods.
12023 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
12024 pass down target to find_inferior_pid.
12025 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
12026 Pass down target to find_inferior_ptid.
12027 (gdbsim_target::create_inferior): Pass down target to
12028 add_thread_silent.
12029 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
12030 target down to find_inferior_ptid and switch_to_thread.
12031 (gdbsim_target::close): Update to call close_one_inferior.
12032 (struct resume_data): Remove.
12033 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
12034 directly, rather than through a void pointer.
12035 (gdbsim_target::resume): Update to call resume_one_inferior.
12036
58920b5b
SM
120372020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
12038
12039 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12040
4ec89149
PA
120412020-01-12 Pedro Alves <palves@redhat.com>
12042
12043 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12044 directly for the current inferior instead of
12045 discard_all_inferiors.
12046 (discard_all_inferiors): Delete.
12047
7c392d1d
TT
120482020-01-11 Tom Tromey <tom@tromey.com>
12049
12050 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12051 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12052 deprecated_safe_get_selected_frame.
12053
d9ebdab7
TBA
120542020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12055
12056 * inferior.c (print_inferior): Switch inferior before printing it.
12057
f3c469b9
PA
120582020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12059 Pedro Alves <palves@redhat.com>
12060
12061 * progspace-and-thread.c (switch_to_program_space_and_thread):
12062 Assert there's an inferior for PSPACE. Use
12063 switch_to_inferior_no_thread to switch the inferior too.
12064 * progspace.c (program_space::~program_space): Call
12065 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12066 (program_space::free_all_objfiles): Don't call clear_symtab_users
12067 here.
12068 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12069
65c574f6
PA
120702020-01-10 Pedro Alves <palves@redhat.com>
12071
12072 * NEWS: Mention multi-target debugging, "info connections", and
12073 "add-inferior -no-connection".
12074
2f4fcf00
PA
120752020-01-10 Pedro Alves <palves@redhat.com>
12076
12077 * infrun.c: Include "target-connection.h".
12078 (check_multi_target_resumption): New.
12079 (proceed): Call it.
12080 * target-connection.c (make_target_connection_string): Make
12081 extern.
12082 * target-connection.h (make_target_connection_string): Declare.
12083
121b3efd
PA
120842020-01-10 Pedro Alves <palves@redhat.com>
12085
12086 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12087 * inferior.c (uiout_field_connection): New function.
12088 (print_inferior): Add new "connection-id" column.
12089 (add_inferior_command): Show connection number/string of added
12090 inferior.
12091 * process-stratum-target.h
12092 (process_stratum_target::connection_string): New virtual method.
12093 (process_stratum_target::connection_number): New field.
12094 * remote.c (remote_target::connection_string): New override.
12095 * target-connection.c: New file.
12096 * target-connection.h: New file.
12097 * target.c (decref_target): Remove process_stratum targets from
12098 the connection list.
12099 (target_stack::push): Add process_stratum targets to the
12100 connection list.
12101
4f837581
PA
121022020-01-10 Pedro Alves <palves@redhat.com>
12103
12104 Revert:
12105 2016-04-12 Pedro Alves <palves@redhat.com>
12106 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12107 Remove references to name.
12108 * serial.h (struct serial) <name>: Delete.
12109
f4ec508e
PA
121102020-01-10 Pedro Alves <palves@redhat.com>
12111
12112 * gdbarch-selftests.c (register_to_value_test): Remove "target
12113 already pushed" check.
12114
5b6d1e4f
PA
121152020-01-10 Pedro Alves <palves@redhat.com>
12116 John Baldwin <jhb@FreeBSD.org>
12117
12118 * aarch64-linux-nat.c
12119 (aarch64_linux_nat_target::thread_architecture): Adjust.
12120 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12121 (task_command_1): Likewise.
12122 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12123 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12124 (aix_thread_target::store_registers)
12125 (aix_thread_target::thread_alive): Adjust.
12126 * amd64-fbsd-tdep.c: Include "inferior.h".
12127 (amd64fbsd_get_thread_local_address): Pass down target.
12128 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12129 thread's gdbarch instead of target_gdbarch.
12130 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12131 get_last_target_status.
12132 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12133 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12134 inferiors.
12135 (update_inserted_breakpoint_locations): Skip if inferiors with no
12136 execution.
12137 (update_global_location_list): When handling moribund locations,
12138 find representative inferior for location's pspace, and use thread
12139 count of its process_stratum target.
12140 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12141 * bsd-uthread.c (bsd_uthread_target::wait): Use
12142 as_process_stratum_target and adjust thread_change_ptid and
12143 add_thread calls.
12144 (bsd_uthread_target::update_thread_list): Use
12145 as_process_stratum_target and adjust find_thread_ptid,
12146 thread_change_ptid and add_thread calls.
12147 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12148 find_thread_ptid call.
12149 * corelow.c (add_to_thread_list): Adjust add_thread call.
12150 (core_target_open): Adjust add_thread_silent and thread_count
12151 calls.
12152 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12153 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12154 * event-top.c (async_disconnect): Pop targets from all inferiors.
12155 * exec.c (add_target_sections): Push exec target on all inferiors
12156 sharing the program space.
12157 (remove_target_sections): Remove the exec target from all
12158 inferiors sharing the program space.
12159 (exec_on_vfork): New.
12160 * exec.h (exec_on_vfork): Declare.
12161 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12162 Pass it down.
12163 (fbsd_nat_target::update_thread_list): Adjust.
12164 (fbsd_nat_target::resume): Adjust.
12165 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12166 down.
12167 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12168 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12169 get_thread_arch_regcache call.
12170 * fork-child.c (gdb_startup_inferior): Pass target down to
12171 startup_inferior and set_executing.
12172 * gdbthread.h (struct process_stratum_target): Forward declare.
12173 (add_thread, add_thread_silent, add_thread_with_info)
12174 (in_thread_list): Add process_stratum_target parameter.
12175 (find_thread_ptid(inferior*, ptid_t)): New overload.
12176 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12177 parameter.
12178 (all_threads()): Delete overload.
12179 (all_threads, all_non_exited_threads): Add process_stratum_target
12180 parameter.
12181 (all_threads_safe): Use brace initialization.
12182 (thread_count): Add process_stratum_target parameter.
12183 (set_resumed, set_running, set_stop_requested, set_executing)
12184 (threads_are_executing, finish_thread_state): Add
12185 process_stratum_target parameter.
12186 (switch_to_thread): Use is_current_thread.
12187 * i386-fbsd-tdep.c: Include "inferior.h".
12188 (i386fbsd_get_thread_local_address): Pass down target.
12189 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12190 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12191 have_inferiors check.
12192 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12193 (inf_ptrace_target::attach): Adjust.
12194 * infcall.c (run_inferior_call): Adjust.
12195 * infcmd.c (run_command_1): Pass target to
12196 scoped_finish_thread_state.
12197 (proceed_thread_callback): Skip inferiors with no execution.
12198 (continue_command): Rename 'all_threads' local to avoid hiding
12199 'all_threads' function. Adjust get_last_target_status call.
12200 (prepare_one_step): Adjust set_running call.
12201 (signal_command): Use user_visible_resume_target. Compare thread
12202 pointers instead of inferior_ptid.
12203 (info_program_command): Adjust to pass down target.
12204 (attach_command): Mark target's 'thread_executing' flag.
12205 (stop_current_target_threads_ns): New, factored out from ...
12206 (interrupt_target_1): ... this. Switch inferior before making
12207 target calls.
12208 * inferior-iter.h
12209 (struct all_inferiors_iterator, struct all_inferiors_range)
12210 (struct all_inferiors_safe_range)
12211 (struct all_non_exited_inferiors_range): Filter on
12212 process_stratum_target too. Remove explicit.
12213 * inferior.c (inferior::inferior): Push dummy target on target
12214 stack.
12215 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12216 Add process_stratum_target parameter, and pass it down.
12217 (have_live_inferiors): Adjust.
12218 (switch_to_inferior_and_push_target): New.
12219 (add_inferior_command, clone_inferior_command): Handle
12220 "-no-connection" parameter. Use
12221 switch_to_inferior_and_push_target.
12222 (_initialize_inferior): Mention "-no-connection" option in
12223 the help of "add-inferior" and "clone-inferior" commands.
12224 * inferior.h: Include "process-stratum-target.h".
12225 (interrupt_target_1): Use bool.
12226 (struct inferior) <push_target, unpush_target, target_is_pushed,
12227 find_target_beneath, top_target, process_target, target_at,
12228 m_stack>: New.
12229 (discard_all_inferiors): Delete.
12230 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12231 (all_inferiors, all_non_exited_inferiors): Add
12232 process_stratum_target parameter.
12233 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12234 (target_last_proc_target): New global.
12235 (follow_fork_inferior): Push target on new inferior. Pass target
12236 to add_thread_silent. Call exec_on_vfork. Handle target's
12237 reference count.
12238 (follow_fork): Adjust get_last_target_status call. Also consider
12239 target.
12240 (follow_exec): Push target on new inferior.
12241 (struct execution_control_state) <target>: New field.
12242 (user_visible_resume_target): New.
12243 (do_target_resume): Call target_async.
12244 (resume_1): Set target's threads_executing flag. Consider resume
12245 target.
12246 (commit_resume_all_targets): New.
12247 (proceed): Also consider resume target. Skip threads of inferiors
12248 with no execution. Commit resumtion in all targets.
12249 (start_remote): Pass current inferior to wait_for_inferior.
12250 (infrun_thread_stop_requested): Consider target as well. Pass
12251 thread_info pointer to clear_inline_frame_state instead of ptid.
12252 (infrun_thread_thread_exit): Consider target as well.
12253 (random_pending_event_thread): New inferior parameter. Use it.
12254 (do_target_wait): Rename to ...
12255 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12256 down.
12257 (threads_are_resumed_pending_p, do_target_wait): New.
12258 (prepare_for_detach): Adjust calls.
12259 (wait_for_inferior): New inferior parameter. Handle it. Use
12260 do_target_wait_1 instead of do_target_wait.
12261 (fetch_inferior_event): Adjust. Switch to representative
12262 inferior. Pass target down.
12263 (set_last_target_status): Add process_stratum_target parameter.
12264 Save target in global.
12265 (get_last_target_status): Add process_stratum_target parameter and
12266 handle it.
12267 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12268 (context_switch): Check inferior_ptid == null_ptid before calling
12269 inferior_thread().
12270 (get_inferior_stop_soon): Pass down target.
12271 (wait_one): Rename to ...
12272 (poll_one_curr_target): ... this.
12273 (struct wait_one_event): New.
12274 (wait_one): New.
12275 (stop_all_threads): Adjust.
12276 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12277 event's target.
12278 (switch_back_to_stepped_thread): Also consider target.
12279 (print_stop_event): Update.
12280 (normal_stop): Update. Also consider the resume target.
12281 * infrun.h (wait_for_inferior): Remove declaration.
12282 (user_visible_resume_target): New declaration.
12283 (get_last_target_status, set_last_target_status): New
12284 process_stratum_target parameter.
12285 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12286 process_stratum_target parameter, and use it.
12287 (clear_inline_frame_state (thread_info*)): New.
12288 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12289 process_stratum_target parameter.
12290 (clear_inline_frame_state (thread_info*)): Declare.
12291 * linux-fork.c (delete_checkpoint_command): Pass target down to
12292 find_thread_ptid.
12293 (checkpoint_command): Adjust.
12294 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12295 instead of just tweaking inferior_ptid.
12296 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12297 (exit_lwp): Pass target down to find_thread_ptid.
12298 (attach_proc_task_lwp_callback): Pass target down to
12299 add_thread/set_running/set_executing.
12300 (linux_nat_target::attach): Pass target down to
12301 thread_change_ptid.
12302 (get_detach_signal): Pass target down to find_thread_ptid.
12303 Consider last target status's target.
12304 (linux_resume_one_lwp_throw, resume_lwp)
12305 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12306 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12307 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12308 (linux_nat_target::async_wait_fd): New.
12309 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12310 target down.
12311 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12312 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12313 * linux-thread-db.c (struct thread_db_info::process_target): New
12314 field.
12315 (add_thread_db_info): Save target.
12316 (get_thread_db_info): New process_stratum_target parameter. Also
12317 match target.
12318 (delete_thread_db_info): New process_stratum_target parameter.
12319 Also match target.
12320 (thread_from_lwp): Adjust to pass down target.
12321 (thread_db_notice_clone): Pass down target.
12322 (check_thread_db_callback): Pass down target.
12323 (try_thread_db_load_1): Always push the thread_db target.
12324 (try_thread_db_load, record_thread): Pass target down.
12325 (thread_db_target::detach): Pass target down. Always unpush the
12326 thread_db target.
12327 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12328 target down. Always unpush the thread_db target.
12329 (find_new_threads_callback, thread_db_find_new_threads_2)
12330 (thread_db_target::update_thread_list): Pass target down.
12331 (thread_db_target::pid_to_str): Pass current inferior down.
12332 (thread_db_target::get_thread_local_address): Pass target down.
12333 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12334 target down.
12335 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12336 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12337 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12338 (procfs_init_inferior): Rename to ...
12339 (procfs_target::procfs_init_inferior): ... this and adjust.
12340 (procfs_target::create_inferior, procfs_notice_thread)
12341 (procfs_do_thread_registers): Adjust.
12342 * ppc-fbsd-tdep.c: Include "inferior.h".
12343 (ppcfbsd_get_thread_local_address): Pass down target.
12344 * proc-service.c (ps_xfer_memory): Switch current inferior and
12345 program space as well.
12346 (get_ps_regcache): Pass target down.
12347 * process-stratum-target.c
12348 (process_stratum_target::thread_address_space)
12349 (process_stratum_target::thread_architecture): Pass target down.
12350 * process-stratum-target.h
12351 (process_stratum_target::threads_executing): New field.
12352 (as_process_stratum_target): New.
12353 * ravenscar-thread.c
12354 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12355 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12356 down.
12357 * record-btrace.c (record_btrace_target::info_record): Adjust.
12358 (record_btrace_target::record_method)
12359 (record_btrace_target::record_is_replaying)
12360 (record_btrace_target::fetch_registers)
12361 (get_thread_current_frame_id, record_btrace_target::resume)
12362 (record_btrace_target::wait, record_btrace_target::stop): Pass
12363 target down.
12364 * record-full.c (record_full_wait_1): Switch to event thread.
12365 Pass target down.
12366 * regcache.c (regcache::regcache)
12367 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12368 process_stratum_target parameter and handle it.
12369 (current_thread_target): New global.
12370 (get_thread_regcache): Add process_stratum_target parameter and
12371 handle it. Switch inferior before calling target method.
12372 (get_thread_regcache): Pass target down.
12373 (get_thread_regcache_for_ptid): Pass target down.
12374 (registers_changed_ptid): Add process_stratum_target parameter and
12375 handle it.
12376 (registers_changed_thread, registers_changed): Pass target down.
12377 (test_get_thread_arch_aspace_regcache): New.
12378 (current_regcache_test): Define a couple local test_target_ops
12379 instances and use them for testing.
12380 (readwrite_regcache): Pass process_stratum_target parameter.
12381 (cooked_read_test, cooked_write_test): Pass mock_target down.
12382 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12383 (get_thread_arch_aspace_regcache): Add process_stratum_target
12384 parameter.
12385 (regcache::target): New method.
12386 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12387 (regcache::registers_changed_ptid): Add process_stratum_target
12388 parameter.
12389 (regcache::m_target): New field.
12390 (registers_changed_ptid): Add process_stratum_target parameter.
12391 * remote.c (remote_state::supports_vCont_probed): New field.
12392 (remote_target::async_wait_fd): New method.
12393 (remote_unpush_and_throw): Add remote_target parameter.
12394 (get_current_remote_target): Adjust.
12395 (remote_target::remote_add_inferior): Push target.
12396 (remote_target::remote_add_thread)
12397 (remote_target::remote_notice_new_inferior)
12398 (get_remote_thread_info): Pass target down.
12399 (remote_target::update_thread_list): Skip threads of inferiors
12400 bound to other targets. (remote_target::close): Don't discard
12401 inferiors. (remote_target::add_current_inferior_and_thread)
12402 (remote_target::process_initial_stop_replies)
12403 (remote_target::start_remote)
12404 (remote_target::remote_serial_quit_handler): Pass down target.
12405 (remote_target::remote_unpush_target): New remote_target
12406 parameter. Unpush the target from all inferiors.
12407 (remote_target::remote_unpush_and_throw): New remote_target
12408 parameter. Pass it down.
12409 (remote_target::open_1): Check whether the current inferior has
12410 execution instead of checking whether any inferior is live. Pass
12411 target down.
12412 (remote_target::remote_detach_1): Pass down target. Use
12413 remote_unpush_target.
12414 (extended_remote_target::attach): Pass down target.
12415 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12416 (remote_target::append_resumption): Pass down target.
12417 (remote_target::append_pending_thread_resumptions)
12418 (remote_target::remote_resume_with_hc, remote_target::resume)
12419 (remote_target::commit_resume): Pass down target.
12420 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12421 (remote_target::interrupt_query)
12422 (remote_target::remove_new_fork_children)
12423 (remote_target::check_pending_events_prevent_wildcard_vcont)
12424 (remote_target::remote_parse_stop_reply)
12425 (remote_target::process_stop_reply): Pass down target.
12426 (first_remote_resumed_thread): New remote_target parameter. Pass
12427 it down.
12428 (remote_target::wait_as): Pass down target.
12429 (unpush_and_perror): New remote_target parameter. Pass it down.
12430 (remote_target::readchar, remote_target::remote_serial_write)
12431 (remote_target::getpkt_or_notif_sane_1)
12432 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12433 down target.
12434 (remote_target::mourn_inferior): Pass down target. Use
12435 remote_unpush_target.
12436 (remote_target::core_of_thread)
12437 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12438 (remote_target::pid_to_exec_file)
12439 (remote_target::thread_handle_to_thread_info): Pass down target.
12440 (remote_target::async_wait_fd): New.
12441 * riscv-fbsd-tdep.c: Include "inferior.h".
12442 (riscv_fbsd_get_thread_local_address): Pass down target.
12443 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12444 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12445 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12446 Adjust.
12447 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12448 * solib-svr4.c (enable_break): Pass down target.
12449 * spu-multiarch.c (parse_spufs_run): Pass down target.
12450 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12451 * target-delegates.c: Regenerate.
12452 * target.c (g_target_stack): Delete.
12453 (current_top_target): Return the current inferior's top target.
12454 (target_has_execution_1): Refer to the passed-in inferior's top
12455 target.
12456 (target_supports_terminal_ours): Check whether the initial
12457 inferior was already created.
12458 (decref_target): New.
12459 (target_stack::push): Incref/decref the target.
12460 (push_target, push_target, unpush_target): Adjust.
12461 (target_stack::unpush): Defref target.
12462 (target_is_pushed): Return bool. Adjust to refer to the current
12463 inferior's target stack.
12464 (dispose_inferior): Delete, and inline parts ...
12465 (target_preopen): ... here. Only dispose of the current inferior.
12466 (target_detach): Hold strong target reference while detaching.
12467 Pass target down.
12468 (target_thread_name): Add assertion.
12469 (target_resume): Pass down target.
12470 (target_ops::beneath, find_target_at): Adjust to refer to the
12471 current inferior's target stack.
12472 (get_dummy_target): New.
12473 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12474 has a thread running.
12475 (initialize_targets): Rename to ...
12476 (_initialize_target): ... this.
12477 * target.h: Include "gdbsupport/refcounted-object.h".
12478 (struct target_ops): Inherit refcounted_object.
12479 (target_ops::shortname, target_ops::longname): Make const.
12480 (target_ops::async_wait_fd): New method.
12481 (decref_target): Declare.
12482 (struct target_ops_ref_policy): New.
12483 (target_ops_ref): New typedef.
12484 (get_dummy_target): Declare function.
12485 (target_is_pushed): Return bool.
12486 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12487 (all_matching_threads_iterator::all_matching_threads_iterator):
12488 Handle filter target.
12489 * thread-iter.h (struct all_matching_threads_iterator, struct
12490 all_matching_threads_range, class all_non_exited_threads_range):
12491 Filter by target too. Remove explicit.
12492 * thread.c (threads_executing): Delete.
12493 (inferior_thread): Pass down current inferior.
12494 (clear_thread_inferior_resources): Pass down thread pointer
12495 instead of ptid_t.
12496 (add_thread_silent, add_thread_with_info, add_thread): Add
12497 process_stratum_target parameter. Use it for thread and inferior
12498 searches.
12499 (is_current_thread): New.
12500 (thread_info::deletable): Use it.
12501 (find_thread_ptid, thread_count, in_thread_list)
12502 (thread_change_ptid, set_resumed, set_running): New
12503 process_stratum_target parameter. Pass it down.
12504 (set_executing): New process_stratum_target parameter. Pass it
12505 down. Adjust reference to 'threads_executing'.
12506 (threads_are_executing): New process_stratum_target parameter.
12507 Adjust reference to 'threads_executing'.
12508 (set_stop_requested, finish_thread_state): New
12509 process_stratum_target parameter. Pass it down.
12510 (switch_to_thread): Also match inferior.
12511 (switch_to_thread): New process_stratum_target parameter. Pass it
12512 down.
12513 (update_threads_executing): Reimplement.
12514 * top.c (quit_force): Pop targets from all inferior.
12515 (gdb_init): Don't call initialize_targets.
12516 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12517 Declare.
12518 (windows_add_thread, windows_delete_thread): Adjust.
12519 (get_windows_debug_event): Rename to ...
12520 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12521 * tracefile-tfile.c (tfile_target_open): Pass down target.
12522 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12523 Forward declare.
12524 (switch_to_thread): Add process_stratum_target parameter.
12525 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12526 parameter. Use it.
12527 (mi_on_resume): Pass target down.
12528 * nat/fork-inferior.c (startup_inferior): Add
12529 process_stratum_target parameter. Pass it down.
12530 * nat/fork-inferior.h (startup_inferior): Add
12531 process_stratum_target parameter.
12532 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12533
75c6c844
PA
125342020-01-10 Pedro Alves <palves@redhat.com>
12535
12536 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12537 directly. Instead find the first thread in the thread list and
12538 use switch_to_thread.
12539
78f2c40a
PA
125402020-01-10 Pedro Alves <palves@redhat.com>
12541
12542 * remote.c (remote_target::remote_add_inferior): Don't bind a
12543 process to the current inferior if the current inferior is already
12544 bound to a process.
12545
e7af6c70
TBA
125462020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12547 Pedro Alves <palves@redhat.com>
12548
12549 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12550 If no process is specified, return null_ptid instead of
12551 inferior_ptid.
12552 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12553 TARGET_WAITKIND_SIGNALLED with no pid.
12554
31ba933e
PA
125552020-01-10 Pedro Alves <palves@redhat.com>
12556
12557 * remote.c (first_remote_resumed_thread): New.
12558 (remote_target::wait_as): Use it as default event_ptid instead of
12559 inferior_ptid.
12560
735fc2ca
PA
125612020-01-10 Pedro Alves <palves@redhat.com>
12562
12563 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12564
c17e02e1
PA
125652020-01-10 Pedro Alves <palves@redhat.com>
12566
12567 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12568 not -1.
12569
ab1ddbcf
PA
125702020-01-10 Pedro Alves <palves@redhat.com>
12571
12572 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12573 ptid to get_last_target_status.
12574 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12575 ptid to get_last_target_status.
12576 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12577 get_last_target_status.
12578 (info_program_command): Don't pass a target_waitstatus to
12579 get_last_target_status.
12580 * infrun.c (init_wait_for_inferior): Use
12581 nullify_last_target_wait_ptid.
12582 (get_last_target_status): Handle nullptr arguments.
12583 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12584 (print_stop_event): Don't pass a ptid to get_last_target_status.
12585 (normal_stop): Don't pass a ptid to get_last_target_status.
12586 * infrun.h (get_last_target_status, set_last_target_status): Move
12587 comments here and update.
12588 (nullify_last_target_wait_ptid): Declare.
12589 * linux-fork.c (fork_load_infrun_state): Remove local extern
12590 declaration of nullify_last_target_wait_ptid.
12591 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12592 to get_last_target_status.
12593
f3f8ece4
PA
125942020-01-10 Pedro Alves <palves@redhat.com>
12595
12596 * gdbthread.h (scoped_restore_current_thread)
12597 <dont_restore, restore, m_dont_restore>: Declare.
12598 * thread.c (thread_alive): Add assertion. Return bool.
12599 (switch_to_thread_if_alive): New.
12600 (prune_threads): Switch inferior/thread.
12601 (print_thread_info_1): Switch thread before calling target methods.
12602 (scoped_restore_current_thread::restore): New, factored out from
12603 ...
12604 (scoped_restore_current_thread::~scoped_restore_current_thread):
12605 ... this.
12606 (scoped_restore_current_thread::scoped_restore_current_thread):
12607 Add assertion.
12608 (thread_apply_all_command, thread_select): Use
12609 switch_to_thread_if_alive.
12610 * infrun.c (proceed, restart_threads, handle_signal_stop)
12611 (switch_back_to_stepped_thread): Switch current thread before
12612 calling target methods.
12613
db2d40f7
PA
126142020-01-10 Pedro Alves <palves@redhat.com>
12615
12616 * inferior.c (switch_to_inferior_no_thread): New function,
12617 factored out from ...
12618 (inferior_command): ... here.
12619 * inferior.h (switch_to_inferior_no_thread): Declare.
12620 * mi/mi-main.c (run_one_inferior): Use
12621 switch_to_inferior_no_thread.
12622
bd420a2d
PA
126232020-01-10 Pedro Alves <palves@redhat.com>
12624
12625 * infcmd.c (kill_command): Remove dead code.
12626
ddf5db90
PA
126272020-01-10 Pedro Alves <palves@redhat.com>
12628
12629 * remote.c (remote_target::mourn_inferior): No longer check
12630 whether the target is running.
12631
5018ce90
PA
126322020-01-10 Pedro Alves <palves@redhat.com>
12633
12634 * corelow.c (core_target::has_execution): Change parameter type to
12635 inferior pointer.
12636 * inferior.c (number_of_live_inferiors): Use
12637 inferior::has_execution instead of target_has_execution_1.
12638 * inferior.h (inferior::has_execution): New.
12639 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12640 inferior::has_execution instead of target_has_execution_1.
12641 * process-stratum-target.c
12642 (process_stratum_target::has_execution): Change parameter type to
12643 inferior pointer. Check the inferior's PID instead of
12644 inferior_ptid.
12645 * process-stratum-target.h
12646 (process_stratum_target::has_execution): Change parameter type to
12647 inferior pointer.
12648 * record-full.c (record_full_core_target::has_execution): Change
12649 parameter type to inferior pointer.
12650 * target.c (target_has_execution_1): Change parameter type to
12651 inferior pointer.
12652 (target_has_execution_current): Adjust.
12653 * target.h (target_ops::has_execution): Change parameter type to
12654 inferior pointer.
12655 (target_has_execution_1): Change parameter type to inferior
12656 pointer. Change return type to bool.
12657 * tracefile.h (tracefile_target::has_execution): Change parameter
12658 type to inferior pointer.
12659
74375d18
PA
126602020-01-10 Pedro Alves <palves@redhat.com>
12661
12662 * exceptions.c (print_flush): Remove current_top_target() check.
12663
acdf84a6
PA
126642020-01-10 Pedro Alves <palves@redhat.com>
12665
12666 * remote.c (show_remote_exec_file): Show the current inferior's
12667 exec-file instead of the command variable's value.
12668
ec506636
PA
126692020-01-10 Pedro Alves <palves@redhat.com>
12670
12671 * record-full.c (record_full_resume_ptid): New global.
12672 (record_full_target::resume): Set it.
12673 (record_full_wait_1): Use record_full_resume_ptid instead of
12674 inferior_ptid.
12675
873657b9
PA
126762020-01-10 Pedro Alves <palves@redhat.com>
12677
12678 * gdbthread.h (scoped_restore_current_thread)
12679 <dont_restore, restore, m_dont_restore>: Declare.
12680 * thread.c (thread_alive): Add assertion. Return bool.
12681 (switch_to_thread_if_alive): New.
12682 (prune_threads): Switch inferior/thread.
12683 (print_thread_info_1): Switch thread before calling target methods.
12684 (scoped_restore_current_thread::restore): New, factored out from
12685 ...
12686 (scoped_restore_current_thread::~scoped_restore_current_thread):
12687 ... this.
12688 (scoped_restore_current_thread::scoped_restore_current_thread):
12689 Add assertion.
12690 (thread_apply_all_command, thread_select): Use
12691 switch_to_thread_if_alive.
12692
7f0ae84c
GB
126932020-01-10 George Barrett <bob@bob131.so>
12694
12695 * stap-probe.c (stap_modify_semaphore): Don't check for null
12696 semaphores.
12697 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12698 for null semaphores.
12699
f5a7c406
AB
127002020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12701
12702 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12703 all source windows, and maintain horizontal scroll status while
12704 doing so.
12705
9ae6bf64
TT
127062020-01-09 Tom Tromey <tom@tromey.com>
12707
12708 PR tui/18932:
12709 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12710 update_source_window, not print_source_lines.
12711
b2efe70c
AB
127122020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12713
12714 * tui/tui.c (tui_enable): Register tui hooks after calling
12715 tui_display_main.
12716
5f23a082
CB
127172020-01-09 Christian Biesinger <cbiesinger@google.com>
12718
12719 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12720
3061113b
SM
127212020-01-08 Simon Marchi <simon.marchi@efficios.com>
12722
12723 * thread.c (print_thread_info_1): Fix indentation.
12724
57d75002
CB
127252020-01-09 Christian Biesinger <cbiesinger@google.com>
12726
12727 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12728 unique_xmalloc_ptr outside the if to always free the demangled name.
12729
6a053cb1
TT
127302020-01-08 Tom Tromey <tromey@adacore.com>
12731
12732 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12733 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12734 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12735 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12736 Remove.
12737 (section_offsets): New typedef.
12738 * symtab.c (fixup_section, get_msymbol_address): Update.
12739 * symmisc.c (dump_msymbols): Update.
12740 * symfile.h (relative_addr_info_to_section_offsets)
12741 (symfile_map_offsets_to_segments): Update.
12742 * symfile.c (build_section_addr_info_from_objfile)
12743 (init_objfile_sect_indices): Update.
12744 (struct place_section_arg): Change type of "offsets".
12745 (place_section): Update.
12746 (relative_addr_info_to_section_offsets): Change type of
12747 "section_offsets". Remove "num_sections" parameter.
12748 (default_symfile_offsets, syms_from_objfile_1)
12749 (set_objfile_default_section_offset): Update.
12750 (reread_symbols): No need to preserve section offsets by hand.
12751 (symfile_map_offsets_to_segments): Change type of "offsets".
12752 * stap-probe.c (relocate_address): Update.
12753 * stabsread.h (process_one_symbol): Update.
12754 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12755 (solib_target_relocate_section_addresses): Update.
12756 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12757 Update.
12758 * solib-frv.c (frv_relocate_main_executable): Update.
12759 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12760 * solib-aix.c (solib_aix_get_section_offsets): Change return
12761 type.
12762 (solib_aix_solib_create_inferior_hook): Update.
12763 * remote.c (remote_target::get_offsets): Update.
12764 * psymtab.c (find_pc_sect_psymtab): Update.
12765 * psympriv.h (struct partial_symbol) <address, text_low,
12766 text_high>: Update.
12767 * objfiles.h (obj_section_offset): Update.
12768 (struct objfile) <section_offsets>: Change type.
12769 <num_sections>: Remove.
12770 (objfile_relocate): Update.
12771 * objfiles.c (entry_point_address_query): Update
12772 (relocate_one_symbol): Change type of "section_offsets".
12773 (objfile_relocate1, objfile_relocate1): Change type of
12774 "new_offsets".
12775 (objfile_rebase1): Update.
12776 * mipsread.c (mipscoff_symfile_read): Update.
12777 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12778 parameter.
12779 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12780 (parse_external, psymtab_to_symtab_1): Update.
12781 * machoread.c (macho_symfile_offsets): Update.
12782 * ia64-tdep.c (ia64_find_unwind_table): Update.
12783 * hppa-tdep.c (read_unwind_info): Update.
12784 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12785 * dwarf2read.c (create_addrmap_from_index)
12786 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12787 (process_psymtab_comp_unit_reader, add_partial_symbol)
12788 (add_partial_subprogram, process_full_comp_unit)
12789 (read_file_scope, read_func_scope, read_lexical_block_scope)
12790 (read_call_site_scope, dwarf2_rnglists_process)
12791 (dwarf2_ranges_process, dwarf2_ranges_read)
12792 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12793 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12794 Update.
12795 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12796 Update.
12797 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12798 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12799 (process_one_symbol): Change type of "section_offsets".
12800 * ctfread.c (get_objfile_text_range): Update.
12801 * coffread.c (coff_symtab_read, enter_linenos)
12802 (process_coff_symbol): Update.
12803 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12804 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12805
456e800a
TT
128062020-01-08 Tom Tromey <tromey@adacore.com>
12807
12808 * dwarf2read.c (parse_macro_definition): Use std::string.
12809 (parse_macro_definition): Likewise.
12810
6dfa2fc2
TT
128112020-01-08 Tom Tromey <tromey@adacore.com>
12812
12813 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12814 (ATTR_ALLOC_CHUNK): Remove.
12815
421d1616
TT
128162020-01-08 Tom Tromey <tromey@adacore.com>
12817
12818 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12819
43816ebc
TT
128202020-01-08 Tom Tromey <tromey@adacore.com>
12821
12822 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12823 (dwarf2_compute_name, open_dwo_file): Likewise.
12824 (process_enumeration_scope): Use std::vector.
12825 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12826 (partial_die_info::fixup, dwarf2_start_subfile)
12827 (guess_full_die_structure_name, dwarf2_name): Likewise.
12828 (determine_prefix): Update.
12829 (guess_full_die_structure_name): Make return type const.
12830 (partial_die_full_name): Return unique_xmalloc_ptr.
12831 (DW_FIELD_ALLOC_CHUNK): Remove.
12832
4212d509
TT
128332020-01-07 Tom Tromey <tromey@adacore.com>
12834
12835 PR build/24937:
12836 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12837
06a6207a
JT
128382020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12839
12840 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12841
153d79c4
AB
128422020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12843
12844 * stack.c (print_frame_info): Move disassemble_next_line code
12845 inside source_print block.
12846
66182876
EZ
128472020-01-06 Eli Zaretskii <eliz@gnu.org>
12848
12849 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12850 gdb/signals.h, as we are now using native signal symbols.
12851
cbfa8581
SV
128522020-01-06 Shahab Vahedi <shahab@synopsys.com>
12853
12854 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12855 overflow by an early check of content vs threshold.
aac66a4c 12856 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12857 Likewise.
12858
3f602821
EZ
128592020-01-06 Eli Zaretskii <eliz@gnu.org>
12860
12861 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12862
a08c904d
JT
128632020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12864
12865 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12866 export table if no section contains it's RVA.
12867
89a65580
EZ
128682020-01-06 Eli Zaretskii <eliz@gnu.org>
12869
12870 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12871
8b7fcda2
HD
128722020-01-06 Hannes Domani <ssbssa@yahoo.de>
12873
12874 * source.c (print_source_lines_base): Set last_line_listed.
12875
a61b4f69
SV
128762020-01-06 Shahab Vahedi <shahab@synopsys.com>
12877
12878 * tui/tui-disasm.c: Remove trailing spaces.
12879
559e7e50
EZ
128802020-01-06 Eli Zaretskii <eliz@gnu.org>
12881 Pedro Alves <palves@redhat.com>
12882
12883 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12884 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12885 (windows_gdb_signal_to_target): New function, uses the above
12886 enumeration to convert GDB internal signal codes to equivalent
12887 Windows codes.
12888 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12889 * windows-nat.c: Include "gdb_wait.h".
12890 (get_windows_debug_event): Extract the fatal exception from the
12891 exit status and convert to the equivalent Posix signal number.
12892 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12893 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12894 * gdbsupport/gdb_wait.c: New file, implements
12895 windows_status_to_termsig.
12896 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12897 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12898
f2302a34
AB
128992020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12900
12901 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12902 show_layout.
12903
6a5206eb
LM
129042020-01-05 Luis Machado <luis.machado@linaro.org>
12905
12906 * aarch64-linux-nat.c
12907 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12908 and bfd_mach_aarch64.
12909
6ec1d75e
PW
129102020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12911
12912 * ui-file.c (stdio_file::can_emit_style_escape)
12913 (tee_file::can_emit_style_escape): Ensure style is used also on
12914 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12915 to gdb_stdout.
12916 * main.c (set_gdb_data_directory): Use file style to output the
12917 warning that the given pathname is not a directory.
12918 * top.c (show_history_filename, gdb_safe_append_history)
12919 (show_gdb_datadir): Use file style.
12920
44f81a76
HD
129212020-01-03 Hannes Domani <ssbssa@yahoo.de>
12922
12923 * solib-target.c (struct lm_info_target):
12924 Change offsets to be a unique_xmalloc_ptr.
12925 (solib_target_relocate_section_addresses): Update.
12926
25057eb0
HD
129272020-01-03 Hannes Domani <ssbssa@yahoo.de>
12928
12929 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12930
6e2118f5
BE
129312020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12932
12933 * MAINTAINERS (Write After Approval): Add myself.
12934
8133c7dc
LM
129352020-01-02 Luis Machado <luis.machado@linaro.org>
12936
12937 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12938 Cell BE architecture.
12939 * target.h (struct target_ops) <thread_architecture>: Likewise.
12940
48189bec
HD
129412020-01-01 Hannes Domani <ssbssa@yahoo.de>
12942
12943 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12944
ead1063b
HD
129452020-01-01 Hannes Domani <ssbssa@yahoo.de>
12946
12947 * MAINTAINERS (Write After Approval): Add myself.
12948
e5d78223
JB
129492020-01-01 Joel Brobecker <brobecker@adacore.com>
12950
12951 * gdbarch.sh: Update copyright year range of generated files.
12952
b811d2c2
JB
129532020-01-01 Joel Brobecker <brobecker@adacore.com>
12954
12955 Update copyright year range in all GDB files.
12956
5f4def5c
JB
129572020-01-01 Joel Brobecker <brobecker@adacore.com>
12958
12959 * copyright.py: Convert to Python 3.
12960
51fd4002
JB
129612020-01-01 Joel Brobecker <brobecker@adacore.com>
12962
12963 * copyright.py: Adapt after move of gnulib directory from gdb
12964 directory to toplevel directory.
12965
5fb651f2
JB
129662020-01-01 Joel Brobecker <brobecker@adacore.com>
12967
12968 * copyright.py (main): Exit if run from the wrong directory.
12969
5dd8bf88
JB
129702020-01-01 Joel Brobecker <brobecker@adacore.com>
12971
12972 * top.c (print_gdb_version): Change copyright year to 2020.
12973
9f71dacb 129742020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12975
9f71dacb 12976 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12977
9f71dacb 12978For older changes see ChangeLog-2019.
c906108c
SS
12979\f
12980Local Variables:
12981mode: change-log
12982left-margin: 8
12983fill-column: 74
12984version-control: never
57da7796 12985coding: utf-8
c906108c 12986End: