]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Use type_instance_flags more throughout
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
314ad88d
PA
12020-09-14 Pedro Alves <pedro@palves.net>
2 Andrew Burgess <andrew.burgess@embecosm.com>
3
4 * avr-tdep.c (avr_address_class_type_flags): Return
5 type_instance_flags.
6 (avr_address_class_type_flags_to_name): Take a
7 type_instance_flags.
8 (avr_address_class_name_to_type_flags): Return bool and take a
9 type_instance_flags.
10 * d-lang.c (build_d_types): Use type::set_instance_flags.
11 * ft32-tdep.c (ft32_address_class_type_flags): Return
12 type_instance_flags.
13 (ft32_address_class_type_flags_to_name): Take a
14 type_instance_flags.
15 (ft32_address_class_name_to_type_flags): Return bool and take a
16 type_instance_flags.
17 (ft32_gdbarch_init): Use type::set_instance_flags.
18 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
19 * gdbarch.h, gdbarch.c: Regenerate.
20 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
21 (address_class_name_to_type_flags): Use type_instance_flags and
22 bool.
23 * gdbtypes.c (address_space_name_to_int)
24 (address_space_int_to_name, make_qualified_type): Use
25 type_instance_flags.
26 (make_qualified_type): Use type_instance_flags and
27 type::set_instance_flags.
28 (make_type_with_address_space, make_cv_type, make_vector_type)
29 (check_typedef): Use type_instance_flags.
30 (recursive_dump_type): Cast type_instance_flags to unsigned for
31 printing.
32 (copy_type_recursive): Use type::set_instance_flags.
33 (gdbtypes_post_init): Use type::set_instance_flags.
34 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
35 <m_instance_flags>: ... this.
36 <instance_flags, set_instance_flags>: New methods.
37 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
38 (SET_TYPE_INSTANCE_FLAGS): New.
39 (address_space_name_to_int, address_space_int_to_name)
40 (make_type_with_address_space): Pass flags using
41 type_instance_flags instead of int.
42 * stabsread.c (cleanup_undefined_types_noname): Use
43 type::set_instance_flags.
44 * s390-tdep.c (s390_address_class_type_flags): Return
45 type_instance_flags.
46 (s390_address_class_type_flags_to_name): Take a
47 type_instance_flags.
48 (s390_address_class_name_to_type_flags): Return bool and take a
49 type_instance_flags.
50 * type-stack.c (type_stack::follow_types): Use
51 type_instance_flags.
52 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
53
27087b7f
TT
542020-09-14 Tom Tromey <tromey@adacore.com>
55
56 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
57 * x86-tdep.c (x86_is_thunk_register_name)
58 (x86_in_indirect_branch_thunk): Update.
59 * sparc64-tdep.c (sparc64_fpu_register_names)
60 (sparc64_cp0_register_names, sparc64_register_names)
61 (sparc64_pseudo_register_names): Now const.
62 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
63 cp0_registers_num>: Now const.
64 * sparc-tdep.c (sparc_core_register_names)
65 (sparc32_fpu_register_names, sparc32_cp0_register_names)
66 (sparc32_pseudo_register_names): Now const.
67 (validate_tdesc_registers): Update.
68 * rust-lang.c (rust_extensions): Now const.
69 * p-lang.c (p_extensions): Now const.
70 * objc-lang.c (objc_extensions): Now const.
71 * nto-tdep.c (nto_thread_state_str): Now const.
72 * moxie-tdep.c (moxie_register_names): Now const.
73 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
74 Now const.
75 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
76 (mips_linux_reg_names): Now const.
77 (mips_gdbarch_init): Update.
78 * microblaze-tdep.c (microblaze_register_names): Now const.
79 * m68k-tdep.c (m68k_register_names): Now const.
80 * m32r-tdep.c (m32r_register_names): Now const.
81 * ia64-tdep.c (ia64_register_names): Now const.
82 * i386-tdep.h (struct gdbarch_tdep) <register_names,
83 ymmh_register_names, ymm16h_regnum, mpx_register_names,
84 k_register_names, zmmh_register_names, xmm_avx512_register_names,
85 ymm_avx512_register_names, pkeys_register_names>: Now const.
86 * i386-tdep.c (i386_register_names, i386_zmm_names)
87 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
88 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
89 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
90 * f-lang.c (f_extensions): Now const.
91 * d-lang.c (d_extensions): Now const.
92 * csky-tdep.c (csky_register_names): Now const.
93 * charset.c (default_charset_names, charset_enum): Now const.
94 (_initialize_charset): Update.
95 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
96 const.
97 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
98 (bsd_uthread_solib_loaded): Update.
99 (bsd_uthread_state): Now const.
100 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
101 (amd64_ymm_avx512_names, amd64_ymmh_names)
102 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
103 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
104 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
105 (amd64_dword_names): Now const.
106 * agent.c (can_use_agent_enum): Now const.
107 * ada-tasks.c (task_states, long_task_states): Now const.
108 * ada-lang.c (known_runtime_file_name_patterns)
109 (known_auxiliary_function_name_patterns, attribute_names)
110 (standard_exc, ada_extensions): Now const.
111
89806626
SM
1122020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
113
114 * bcache.h (struct bcache) <bcache>: Remove constructor.
115 <m_hash_function, m_compare_function>: Remove.
116 <~bcache>: Make virtual.
117 <compare>: Remove static method, introduce virtual method.
118 <default_hash>: Remove.
119 <hash>: New virtual method.
120 * bcache.c (bcache::expand_hash_table): Update.
121 (bcache::insert): Update.
122 (bcache::hash): New.
123 (bcache::compare): Update comment and parameter names.
124 * gdbtypes.c (types_deeply_equal): Update.
125 * psymtab.h (struct psymbol_bcache): New struct.
126 (class psymtab_storage) <psymtab_storage>: Make default.
127 <psymbol_cache>: Change type to psymbol_bcache.
128 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
129 (psymbol_hash): Change to...
130 (psymbol_bcache::hash): ... this.
131 (psymbol_compare): Change to...
132 (psymbol_bcache::compare): ... this.
133
677c92fe
SM
1342020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
135
136 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
137 checking for initial lwp.
138
3eba3a01
TT
1392020-09-14 Tom Tromey <tromey@adacore.com>
140
141 * m68k-tdep.c (m68k_extract_return_value): Use
142 pointer_result_regnum.
143 (m68k_store_return_value): Likewise.
144 (m68k_reg_struct_return_p): Handle vectors and arrays.
145 (m68k_return_value): Handle arrays.
146 (m68k_svr4_return_value): Fix single-element aggregate handling.
147 Handle long double. Adjust for embedded ABI.
148 (m68k_svr4_init_abi): Set pointer_result_regnum.
149 (m68k_embedded_init_abi): New function.
150 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
151 (m68k_osabi_sniffer): New function.
152 (_initialize_m68k_tdep): Register osabi sniffer.
153 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
154 member.
155
33f4dd48
SM
1562020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
157
158 * xml-support.c (xml_fetch_content_from_file): Replace xfree
159 with gdb::unique_xmalloc_ptr<char>.
160
8400a90d
SM
1612020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
162
163 * xml-support.h (xml_fetch_another): Change type to be a
164 function_view.
165 (xml_process_xincludes): Remove baton parameter.
166 (xml_fetch_content_from_file): Change baton parameter to
167 dirname.
168 * xml-support.c (struct xinclude_parsing_data)
169 <xinclude_parsing_data>: Remove baton parameter.
170 <fetcher_baton>: Remove.
171 (xinclude_start_include): Adjust.
172 (xml_process_xincludes): Adjust.
173 (xml_fetch_content_from_file): Replace baton parameter with
174 dirname.
175 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
176 (xml_init_syscalls_info): Use a lambda.
177 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
178 (file_read_description_xml): Use a lambda.
179 (fetch_available_features_from_target): Change baton parameter
180 to target_ops.
181 (target_read_description_xml): Use a lambda.
182 (target_fetch_description_xml): Use a lambda.
183 (string_read_description_xml): Update.
184
04f5bab2
SM
1852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
186
187 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
188 uses with type::endianity_is_not_default.
189
db558e34
SM
1902020-09-14 Simon Marchi <simon.marchi@efficios.com>
191
192 * gdbtypes.h (struct type) <endianity_is_not_default,
193 set_endianity_is_not_default>: New methods.
194 (TYPE_ENDIANITY_NOT_DEFAULT): Use
195 type::endianity_is_not_default, change all write call sites to
196 use type::set_endianity_is_not_default.
197
22c4c60c
SM
1982020-09-14 Simon Marchi <simon.marchi@efficios.com>
199
200 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
201 uses with type::is_fixed_instance.
202
9cdd0d12
SM
2032020-09-14 Simon Marchi <simon.marchi@efficios.com>
204
205 * gdbtypes.h (struct type) <is_fixed_instance,
206 set_is_fixed_instance>: New methods.
207 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
208 write call sites to use type::set_is_fixed_instance.
209
0becda7a
SM
2102020-09-14 Simon Marchi <simon.marchi@efficios.com>
211
212 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
213 uses with type::is_gnu_ifunc.
214
03cc7249
SM
2152020-09-14 Simon Marchi <simon.marchi@efficios.com>
216
217 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
218 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
219 use type::set_is_gnu_ifunc.
220
3f46044c
SM
2212020-09-14 Simon Marchi <simon.marchi@efficios.com>
222
223 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
224 uses with type::stub_is_supported.
225
9baccff6
SM
2262020-09-14 Simon Marchi <simon.marchi@efficios.com>
227
228 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
229 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
230 use type::set_stub_is_supported.
231
bd63c870
SM
2322020-09-14 Simon Marchi <simon.marchi@efficios.com>
233
234 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
235 uses with type::is_vector.
236
2062087b
SM
2372020-09-14 Simon Marchi <simon.marchi@efficios.com>
238
239 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
240 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
241 use type::set_is_vector.
242
a409645d
SM
2432020-09-14 Simon Marchi <simon.marchi@efficios.com>
244
245 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
246 uses with type::has_varargs.
247
1d6286ed
SM
2482020-09-14 Simon Marchi <simon.marchi@efficios.com>
249
250 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
251 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
252 use type::set_has_varargs.
253
7f9f399b
SM
2542020-09-14 Simon Marchi <simon.marchi@efficios.com>
255
256 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
257 uses with type::is_prototyped.
258
27e69b7a
SM
2592020-09-14 Simon Marchi <simon.marchi@efficios.com>
260
261 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
262 New methods.
263 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
264 call sites to use type::set_is_prototyped.
265
d2183968
SM
2662020-09-14 Simon Marchi <simon.marchi@efficios.com>
267
268 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
269 uses with type::target_is_stub.
270
8f53807e
SM
2712020-09-14 Simon Marchi <simon.marchi@efficios.com>
272
273 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
274 New methods.
275 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
276 sites to use type::set_target_is_stub.
277
e46d3488
SM
2782020-09-14 Simon Marchi <simon.marchi@efficios.com>
279
280 * gdbtypes.h (TYPE_STUB): Remove, replace all
281 uses with type::is_stub.
282
b4b73759
SM
2832020-09-14 Simon Marchi <simon.marchi@efficios.com>
284
285 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
286 (TYPE_STUB): Use type::is_stub, change all write call sites to
287 use type::set_is_stub.
288
20ce4123
SM
2892020-09-14 Simon Marchi <simon.marchi@efficios.com>
290
291 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
292 type::has_no_signedness.
293
15152a54
SM
2942020-09-14 Simon Marchi <simon.marchi@efficios.com>
295
296 * gdbtypes.h (struct type) <has_no_signedness,
297 set_has_no_signedness>: New methods.
298 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
299 call sites to use type::set_has_no_signedness.
300
c6d940a9
SM
3012020-09-14 Simon Marchi <simon.marchi@efficios.com>
302
303 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
304 type::is_unsigned.
305
653223d3
SM
3062020-09-14 Simon Marchi <simon.marchi@efficios.com>
307
308 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
309 methods.
310 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
311 sites to use type::set_is_unsigned.
312
55ea94da
FH
3132020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
314 Adam Renquinha <arenquinha@cimeq.qc.ca>
315
316 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
317 pointer and stack frame offset when unwinding.
318
6791b117
PA
3192020-09-13 Pedro Alves <pedro@palves.net>
320
321 * NEWS: Document "-break-insert --qualified".
322 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
323
77f2120b
PA
3242020-09-13 Pedro Alves <pedro@palves.net>
325
326 * linespec.c (classify_mtype, compare_msyms): Delete.
327 (search_minsyms_for_name): Remove classification logic. Instead
328 filter out trampoline symbols if we also found an external
329 function of the same name.
330
ed6a896c
JB
3312020-09-13 Joel Brobecker <brobecker@adacore.com>
332
333 * NEWS: Create a new section for the next release branch.
334 Rename the section of the current branch, now that it has
335 been cut.
336
32aea73e
JB
3372020-09-13 Joel Brobecker <brobecker@adacore.com>
338
339 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
340 * version.in: Bump version to 11.0.50.DATE-git.
341
8087c3fa
JB
3422020-09-12 Joel Brobecker <brobecker@adacore.com>
343
344 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
345
2a67f09d
FW
3462020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
347 Felix Willgerodt <Felix.Willgerodt@intel.com>
348
349 * gdbarch.sh: Added bfloat16 type.
350 * gdbarch.c: Regenerated.
351 * gdbarch.h: Regenerated.
352 * gdbtypes.c (floatformats_bfloat16): New struct.
353 (gdbtypes_post_init): Add builtin_bfloat16.
354 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
355 (floatformats_bfloat16): New struct.
356 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
357 (i386_ymm_type): Add field "v16_bfloat16"
358 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
359 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
360 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
361 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
362 * features/i386/64bit-avx512.xml: Add bfloat16 type.
363 * features/i386/64bit-avx512.c: Regenerated.
364 * features/i386/64bit-sse.xml: Add bfloat16 type.
365 * features/i386/64bit-sse.c: Regenerated.
366
1347d111
FW
3672020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
368
369 * i386-tdep.c (i386_zmm_type): Fix field names.
370 (i386_ymm_type): Fix field names.
371
7a4e8e7d
TBA
3722020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
373
374 * breakpoint.c: Fix typo in the help message of the
375 "set breakpoint condition-evaluation" command.
376
cf4ac4be
KR
3772020-09-10 Kamil Rytarowski <n54@gmx.com>
378
379 * nbsd-nat.c: Include "nat/netbsd-nat.h".
380 * (nbsd_nat_target::pid_to_exec_file)
381 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
382 (nbsd_nat_target::post_startup_inferior)
383 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
384 (nbsd_add_threads): Switch local code to common gdb/nat functions.
385 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
386 * (nbsd_thread_lister): Remove.
387
f404573e
KR
3882020-09-10 Kamil Rytarowski <n54@gmx.com>
389
390 * fork-inferior.c (startup_inferior): Avoid double free.
391
1ccb2c17
KR
3922020-09-10 Kamil Rytarowski <n54@gmx.com>
393
394 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
395 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
396
feedfcc7
KR
3972020-09-10 Kamil Rytarowski <n54@gmx.com>
398
399 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
400 * netbsd-nat.c: Include <sys/ptrace.h>.
401 * (netbsd_nat::enable_proc_events): Add.
402
c489f8c6
KR
4032020-09-10 Kamil Rytarowski <n54@gmx.com>
404
405 * netbsd-nat.h: Include "gdbsupport/function-view.h".
406 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
407 (netbsd_nat::for_each_thread): Add.
408 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
409 "gdbsupport/common-debug.h".
410 * (netbsd_nat::netbsd_thread_lister)
411 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
412 (netbsd_nat::for_each_thread): Add.
413
330662f6
KR
4142020-09-10 Kamil Rytarowski <n54@gmx.com>
415
416 * netbsd-nat.h: Include <unistd.h>.
417 * (netbsd_nat::pid_to_exec_file): Add.
418 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
419 * (netbsd_nat::pid_to_exec_file) Add.
420
70b67307
KR
4212020-09-10 Kamil Rytarowski <n54@gmx.com>
422
423 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
424
99cf6da6
KR
4252020-09-10 Kamil Rytarowski <n54@gmx.com>
426
427 * netbsd-nat.h: New file.
428 * netbsd-nat.c: Likewise.
429
1b788fb6
TT
4302020-09-09 Tom Tromey <tromey@adacore.com>
431
432 * ada-lang.c (remove_extra_symbols): Do not increment when
433 removing an element
434
03b0a45f
TT
4352020-09-08 Tom Tromey <tromey@adacore.com>
436
437 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
438
3cae4447
TT
4392020-09-08 Tom Tromey <tromey@adacore.com>
440
441 PR win32/25302:
442 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
443 (gdb_bfd_init_data): New function.
444 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
445
7f08fd51
TBA
4462020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
447
448 * infrun.c (fetch_inferior_event): Use
449 `switch_to_target_no_thread` to switch the target.
450
3e6ff933
TT
4512020-09-06 Tom Tromey <tom@tromey.com>
452
453 * symfile.h (dwarf2_free_objfile): Don't declare.
454
e56798df
AKS
4552020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
456
457 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
458 to match 16 byte real/complex type generated by Flang compiler.
459
8f5c6526
TV
4602020-09-03 Tom de Vries <tdevries@suse.de>
461
462 PR breakpoint/26546
463 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
464 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
465
c5065df0
SM
4662020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
467
468 * maint.c (index_digits): New function.
469 (struct maint_print_section_data): Remove.
470 (print_bfd_section_info): Remove print_data parameter, add arg
471 and index_digits.
472 (print_objfile_section_info): Likewise.
473 (print_bfd_section_info_maybe_relocated): Likewise (plus
474 objfile).
475 (maintenance_info_sections): Adjust calls.
476
02c6f3f1
TT
4772020-09-02 Tom Tromey <tromey@adacore.com>
478
479 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
480 for null pointers.
481 (ada_varobj_adjust_for_child_access): Special-case null pointers.
482
ef5e5b0b
SM
4832020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
484
485 * bcache.h (struct bcache) <insert>: Change type of `added` to
486 pointer to bool.
487 * bcache.c (bcache::insert): Likewise.
488 * gdbtypes.c (check_types_worklist): Adjust.
489 * psymtab.c (add_psymbol_to_bcache): Adjust.
490
973695d6
KB
4912020-08-31 Kevin Buettner <kevinb@redhat.com>
492
493 * corelow.c (unordered_set): Include.
494 (class core_target): Add field 'm_core_unavailable_mappings'.
495 (core_target::build_file_mappings): Print only one warning
496 per inaccessible file. Add unavailable/broken mappings
497 to m_core_unavailable_mappings.
498 (core_target::xfer_partial): Call...
499 (core_target::xfer_memory_via_mappings): New method.
500
264fc0e2
SM
5012020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
502
503 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
504 type to bool.
505
2de01bdb
SM
5062020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
507
508 * dwarf2/read.c (struct field_info): Fix indentation.
509
f3bd50f1
SM
5102020-08-31 Simon Marchi <simon.marchi@efficios.com>
511
512 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
513 ordering in comment.
514 * frame.c (frame_id_eq): Fix indentation.
515
22b9b4b0
SL
5162020-08-31 Scott Linder <scott@scottlinder.com>
517 Simon Marchi <simon.marchi@efficios.com>
518
519 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
520 inline frame ids in outer frame.
521
84154d16
SM
5222020-08-31 Simon Marchi <simon.marchi@efficios.com>
523
524 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
525 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
526 (outer_frame_id): Use FID_STACK_OUTER instead of
527 FID_STACK_INVALID.
528 (frame_id_p): Don't check for outer_frame_id.
529
8efaf6b3
SM
5302020-08-31 Simon Marchi <simon.marchi@efficios.com>
531
532 * frame-unwind.c (frame_unwind_got_optimized): Don't set
533 regnum/frame in value. Call allocate_value_lazy.
534 * frame.c (frame_unwind_register_value): Use
535 val_print_not_saved.
536
fe1fe7ea
SM
5372020-08-31 Simon Marchi <simon.marchi@efficios.com>
538
539 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
540
f7c7700d
PA
5412020-08-29 Pedro Alves <pedro@palves.net>
542
543 * progspace.c (print_program_space): Use all_inferiors. Switch to
544 the inferior before calling target_pid_to_str.
545
e0814aae
TT
5462020-08-28 Tom Tromey <tom@tromey.com>
547
548 * xcoffread.c (xcoff_end_psymtab): Update comment.
549 * dbxread.c (dbx_end_psymtab): Update comment.
550
626d2320
TV
5512020-08-28 Tom de Vries <tdevries@suse.de>
552
553 PR breakpoint/26544
554 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
555 event_location.
556 (create_breakpoint): Same.
557 (base_breakpoint_decode_location): Same.
558 (bkpt_create_sals_from_location): Same.
559 (bkpt_decode_location): Same.
560 (bkpt_probe_create_sals_from_location): Same.
561 (bkpt_probe_decode_location): Same.
562 (tracepoint_create_sals_from_location): Same.
563 (tracepoint_decode_location): Same.
564 (tracepoint_probe_decode_location): Same.
565 (strace_marker_create_sals_from_location): Same.
566 (strace_marker_decode_location): Same.
567 (create_sals_from_location_default): Same.
568 (decode_location_default): Same.
569 * breakpoint.h (struct breakpoint_ops): Same.
570 (create_breakpoint): Same.
571 * linespec.h (decode_line_full): Same.
572 * linespec.c (decode_line_full): Same. Throw error if
573 result.size () == 0.
574
df631783
PA
5752020-08-27 Pedro Alves <pedro@palves.net>
576
577 PR gdb/26524
578 * breakpoint.c (until_break_fsm) <location_breakpoint,
579 caller_breakpoint>: Delete fields.
580 <breakpoints>: New field.
581 <until_break_fsm>: Adjust to save a breakpoint vector instead of
582 two individual breakpoints.
583 (until_break_fsm::should_stop): Loop over breakpoints in the
584 breakpoint vector.
585 (until_break_fsm::clean_up): Adjust to clear the breakpoints
586 vector.
587 (until_break_command): Handle location expanding into multiple
588 sals.
589
b2b38aa4
PA
5902020-08-27 Pedro Alves <pedro@palves.net>
591
592 PR gdb/26523
593 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
594 bp_until breakpoints user-specified locations. Update intro
595 comment.
596
b886559f
SM
5972020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
598
599 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
600 gdb_bfd_sections): New.
601 * maint.c (print_bfd_section_info): Change param type to
602 maint_print_section_data.
603 (print_objfile_section_info): Likewise.
604 (print_bfd_section_info_maybe_relocated): Likewise.
605 (maintenance_info_sections): Use gdb_bfd_sections.
606
4c6e63bf
SV
6072020-08-25 Shahab Vahedi <shahab@synopsys.com>
608
609 * MAINTAINERS: Add ARC target and maintainer.
610
8d7f0635
AK
6112020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
612
613 * configure.tgt: ARC support for GNU/Linux.
614 * Makefile.in (ALL_TARGET_OBJS): Likewise.
615 * arc-linux-tdep.c: New file.
616 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
617 * arc-tdep.c (arc_write_pc): Use it.
618
fdd8731b
SV
6192020-08-25 Shahab Vahedi <shahab@synopsys.com>
620
621 * arc-tdep.c (arc_check_for_hardware_loop): New.
622 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
623
22459524
SV
6242020-08-25 Shahab Vahedi <shahab@synopsys.com>
625
626 * arc-tdep.h: Include "gdbarch.h".
627
995d3a19
SV
6282020-08-25 Shahab Vahedi <shahab@synopsys.com>
629
630 * arch/arc.h
631 (arc_gdbarch_features): New class to stir the selection of target XML.
632 (arc_create_target_description): Use FEATURES to choose XML target.
633 (arc_lookup_target_description): Use arc_create_target_description
634 to create _new_ target descriptions or return the already created
635 ones if the FEATURES is the same.
636 * arch/arc.c: Implementation of prototypes described above.
637 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
638 (arc_gdbarch_features_init): Initialize the FEATURES struct.
639 * arc-tdep.c (*_feature_name): Make feature names consistent.
640 (arc_register_feature): A new struct to hold information about
641 registers of a particular target/feature.
642 (arc_check_tdesc_feature): Check if XML provides registers in
643 compliance with ARC_REGISTER_FEATURE structs.
644 (arc_update_acc_reg_names): Add aliases for r58 and r59.
645 (determine_*_reg_feature_set): Which feature name to look for.
646 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
647 (mach_type_to_arc_isa): Convert from a set of binutils machine types
648 to expected ISA enums to be used in arc_gdbarch_features structs.
649 * features/Makefile (FEATURE_XMLFILES): Add new files.
650 * gdb/features/arc/v1-aux.c: New file.
651 * gdb/features/arc/v1-aux.xml: Likewise.
652 * gdb/features/arc/v1-core.c: Likewise.
653 * gdb/features/arc/v1-core.xml: Likewise.
654 * gdb/features/arc/v2-aux.c: Likewise.
655 * gdb/features/arc/v2-aux.xml: Likewise.
656 * gdb/features/arc/v2-core.c: Likewise.
657 * gdb/features/arc/v2-core.xml: Likewise.
658 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
659
3945d2d7
GM
6602020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
661 Andrew Burgess <andrew.burgess@embecosm.com>
662
663 PR m2/26372
fc5d6901 664 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
665 an assert. Remove single element array indexing pattern as the
666 MULTI_SUBSCRIPT support will handle this case too.
667
2677f2d3
SM
6682020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
669
670 * value.h (valprint_check_validity): Move declaration from
671 here...
672 * valprint.h (valprint_check_validity): ... to here.
673
c426fddb
SM
6742020-08-24 Simon Marchi <simon.marchi@efficios.com>
675
676 * debug.h: New file.
677 * debug.c (debug_prefixed_vprintf): New function.
678 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
679 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
680
1eb8556f
SM
6812020-08-24 Simon Marchi <simon.marchi@efficios.com>
682
683 * infrun.h (infrun_debug_printf_1): New function declaration.
684 (infrun_debug_printf): New macro.
685 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
686 throughout.
687 (infrun_debug_printf): New function.
688 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
689 (handle_jit_event): Likewise.
690
b8fff44e
MW
6912020-08-21 Mark Wielaard <mark@klomp.org>
692
693 * ada-lex.l: Extend register warnings diagnostics comment for g++.
694
d19c3068
SM
6952020-08-22 Simon Marchi <simon.marchi@efficios.com>
696
697 * frame.c (enum class frame_id_status): New.
698 (struct frame_info) <this_id::p>: Change type to frame_id_status.
699 (fprintf_frame): Update.
700 (compute_frame_id): Set frame id status to "computing" on entry.
701 Set it back to "not_computed" on failure and to "computed" on
702 success.
703 (get_frame_id): Assert the frame id is not being computed.
704 (create_sentinel_frame): Use frame_id_status::COMPUTED.
705 (create_new_frame): Likewise.
706 (frame_cleanup_after_sniffer): Update assert.
707
b70e516e
SM
7082020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
709
710 * regcache.c (pid_ptid_regcache_map): New type.
711 (target_ptid_regcache_map): Remove.
712 (target_pid_ptid_regcache_map): New type.
713 (regcaches): Change type to target_pid_ptid_regcache_map.
714 (get_thread_arch_aspace_regcache): Update.
715 (regcache_thread_ptid_changed): Update, handle pid-like ptid
716 case.
717 (regcaches_size): Update.
718 (regcache_count): Update.
719 (registers_changed_ptid_target_pid_test): New.
720 (_initialize_regcache): Register new test.
721
cdd9148a
SM
7222020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
723
724 * regcache.c (regcache_count): New.
725 (struct regcache_test_data): New.
726 (regcache_test_data_up): New.
727 (populate_regcaches_for_test): New.
728 (regcaches_test): Remove.
729 (get_thread_arch_aspace_regcache_test): New.
730 (registers_changed_ptid_all_test): New.
731 (registers_changed_ptid_target_test): New.
732 (registers_changed_ptid_target_ptid_test): New.
733 (regcache_thread_ptid_changed): Remove regcache_count lambda.
734 (_initialize_regcache): Register new tests.
735
dd125343
SM
7362020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
737
738 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
739 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
740 gdbarch and aspace parameter. Use current inferior's aspace.
741 Validate regcache's arch value.
742 (regcaches_test): Update.
743
3ee93972
SM
7442020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
745
746 * regcache.c (regcaches_test): Call registers_changed.
747
33bf4c5c
TBA
7482020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
749
750 * infrun.c (process_event_stop_test): Fix typo "breapoint".
751
c2fd7fae
AKS
7522020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
753
754 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
755 to find the end of prologue for flang compiled binaries.
756 * arm-tdep.c (arm_skip_prologue): Likewise.
757 * i386-tdep.c (i386_skip_prologue): Likewise.
758 * producer.c (producer_is_llvm): New function.
759 (producer_parsing_tests): Added new tests for clang/flang.
760 * producer.h (producer_is_llvm): New declaration.
761
9327494e
SM
7622020-08-18 Simon Marchi <simon.marchi@efficios.com>
763
764 * linux-nat.c (linux_nat_debug_printf): New function.
765 (linux_nat_debug_printf_1): New macro. Use throughout the file.
766
d138725a
AM
7672020-08-18 Aaron Merey <amerey@redhat.com>
768
769 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
770 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
771 (CLIBS): Add DEBUGINFOD_LIBS.
772
f9b11e6b
ST
7732020-08-17 Sergei Trofimovich <siarheit@google.com>
774
775 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
776 'gdbarch_num_regs'.
777
3ae7ab99
TT
7782020-08-17 Tom Tromey <tromey@adacore.com>
779
780 * ada-varobj.c (ada_varobj_decode_var): Handle case where
781 ada_get_decoded_value returns NULL.
782
b017825f
TT
7832020-08-17 Tom Tromey <tromey@adacore.com>
784
785 * python/py-inferior.c (infpy_search_memory): Use
786 gdb_py_object_from_ulongest.
787 * python/py-infevents.c (create_inferior_call_event_object)
788 (create_memory_changed_event_object): Use
789 gdb_py_object_from_ulongest.
790 * python/py-linetable.c (ltpy_entry_get_pc): Use
791 gdb_py_object_from_ulongest.
792
7635cf79
SM
7932020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
794
795 * loc.c (class symbol_needs_eval_context): Fix indentation.
796
f54be24b
SM
7972020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
798
799 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
800 bool.
801
53d5a2a5
TV
8022020-08-17 Tom de Vries <tdevries@suse.de>
803
804 PR gdb/26393
805 * gdbtypes.c (dump_dynamic_prop): New function.
806 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
807
547ce8f0
TV
8082020-08-15 Tom de Vries <tdevries@suse.de>
809
810 PR backtrace/26390
811 * stack.c (print_frame_args): Temporarily set the selected
812 frame to FRAME while printing the frame's arguments.
813
6ea815e7
PFC
8142020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
815
816 PR breakpoints/26385
817 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
818 Always clear watchpoint with PTRACE_SET_DEBUGREG.
819
6e562fa3
PFC
8202020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
821
822 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
823 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
824 and >= to check return value instead of == -1 and != -1.
825
d369b608
SM
8262020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
827
828 * utils.h (class gdb_argv) <as_array_view>: New method.
829 * utils.c (gdb_argv_as_array_view_test): New.
830 (_initialize_utils): Register selftest.
831 * maint.c (maintenance_selftest): Use the new method.
832
b31488a3
KR
8332020-08-13 Kamil Rytarowski <n54@gmx.com>
834
835 * target.h (supports_dumpcore, dumpcore): New
836 function declarations.
837 * target.c (supports_dumpcore, dumpcore): New
838 functions.
839 * target-delegates.c: Rebuild.
840 * gcore.c (gcore_command): Use target_supports_dumpcore ()
841 and target_dumpcore ().
842
002a3166
AM
8432020-08-13 Aaron Merey <amerey@redhat.com>
844
845 * debuginfod-support.c: Replace global variables with user_data.
846
ece5bc8a
SM
8472020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
848
849 * maint.c (maintenance_selftest): Split args and pass array_view
850 to run_tests.
851
6d8a0a5e
LM
8522020-08-12 Luis Machado <luis.machado@linaro.org>
853
854 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
855 type's length.
856 Use %s and pulongest to print the length.
857
7cf663a9
PA
8582020-08-12 Pedro Alves <palves@redhat.com>
859
860 * NEWS: Move "Multi-target debugging support" item to the
861 "Changes since GDB 9" section.
862
27c7b875
PA
8632020-08-12 Pedro Alves <palves@redhat.com>
864
865 PR gdb/26336
866 * progspace.c (program_space::remove_objfile): Invalidate the
867 frame cache.
868
1796a2a1
TV
8692020-08-11 Tom de Vries <tdevries@suse.de>
870
871 * MAINTAINERS: Mark ms1 as deleted.
872
f8e3fe0d
LM
8732020-08-10 Luis Machado <luis.machado@linaro.org>
874
875 PR gdb/26310
876
877 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
878 act accordingly.
879 (aarch64_analyze_prologue_test): Add more unit tests to exercise
880 movz/str/stur/stp skipping behavior.
881
cc308722
LM
8822020-08-10 Luis Machado <luis.machado@linaro.org>
883
884 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
885 struct user_sve_header instead of struct sve_context.
886
041d9819
SM
8872020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
888
889 * read.h (dwarf2_fetch_die_loc_sect_off,
890 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
891 `void *` parameter with function_view.
892 * read.c (dwarf2_fetch_die_loc_sect_off,
893 dwarf2_fetch_die_loc_cu_off): Likewise.
894 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
895 (per_cu_dwarf_call): Adjust.
896 (get_frame_address_in_block_wrapper): Remove.
897 (indirect_synthetic_pointer): Adjust.
898 (get_ax_pc): Remove.
899 (dwarf2_compile_expr_to_ax): Adjust.
900
38f8aa06
TV
9012020-08-08 Tom de Vries <tdevries@suse.de>
902
903 PR build/26344
904 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
905 constructor.
906 * regcache.c (get_thread_arch_aspace_regcache): Same.
907
a52b3ae2
TT
9082020-08-07 Tom Tromey <tromey@adacore.com>
909
910 * ravenscar-thread.c
911 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
912 New method.
913 (ravenscar_thread_target::wait): Check
914 runtime_initialized.
915 (ravenscar_thread_target::prepare_to_store)
916 (ravenscar_thread_target::stopped_by_sw_breakpoint)
917 (ravenscar_thread_target::stopped_by_hw_breakpoint)
918 (ravenscar_thread_target::stopped_by_watchpoint)
919 (ravenscar_thread_target::stopped_data_address)
920 (ravenscar_thread_target::core_of_thread): Use
921 scoped_restore_current_thread and
922 set_base_thread_from_ravenscar_task.
923
0e29517d
TT
9242020-08-07 Tom Tromey <tromey@adacore.com>
925
926 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
927
592f9bd7
TT
9282020-08-07 Tom Tromey <tromey@adacore.com>
929
930 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
931 update_inferior_ptid before update_thread_list.
932 (temporarily_change_regcache_ptid): New class.
933 (ravenscar_thread_target::fetch_registers)
934 (ravenscar_thread_target::store_registers)
935 (ravenscar_thread_target::prepare_to_store): Use base thread when
936 forwarding operation.
937
39e2018a
TT
9382020-08-07 Tom Tromey <tromey@adacore.com>
939
940 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
941 "is_pid" case.
942
2080266b
TT
9432020-08-07 Tom Tromey <tromey@adacore.com>
944
945 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
946 New methods.
947 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
948 first.
949 (ravenscar_thread_target::add_thread): Rename from
950 ravenscar_add_thread.
951 (ravenscar_thread_target::update_thread_list): Use a lambda.
952 (ravenscar_thread_target::xfer_partial): New method.
953
78c02f21
TT
9542020-08-07 Tom Tromey <tromey@adacore.com>
955
956 * ada-lang.h (ada_task_list_iterator_ftype): Now a
957 gdb::function_view.
958 (iterate_over_live_ada_tasks): Change type of argument.
959 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
960 of argument.
961
d5d833af
TT
9622020-08-07 Tom Tromey <tromey@adacore.com>
963
964 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
965 Remove.
966 (ravenscar_thread_target::extra_thread_info): Remove.
967 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
968 defer to target beneath for non-Ravenscar threads.
969
a8ac85bb
TT
9702020-08-07 Tom Tromey <tromey@adacore.com>
971
972 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
973 get_base_thread_from_ravenscar_task>: Now methods.
974 <m_cpu_map>: New member.
975 (ravenscar_thread_target::get_thread_base_cpu): Rename from
976 ravenscar_get_thread_base_cpu. Check m_cpu_map.
977 (ravenscar_thread_target::task_is_currently_active): Update.
978 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
979 Now a method.
980 (ravenscar_thread_target::add_active_thread): Put initial thread
981 into the m_cpu_map.
982
550ab58d
TT
9832020-08-07 Tom Tromey <tromey@adacore.com>
984
985 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
986 event_ptid.
987
e9546579
TT
9882020-08-07 Tom Tromey <tromey@adacore.com>
989
990 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
991 runtime_initialized.
992
3d4470e5
TT
9932020-08-07 Tom Tromey <tromey@adacore.com>
994
995 * ravenscar-thread.c (ravenscar_thread_target): Don't call
996 add_active_thread.
997 (ravenscar_thread_target::add_active_thread): Now public.
998 (ravenscar_inferior_created): Call add_active_thread after pushing
999 the target.
1000
888bdb2b
SM
10012020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
1002
1003 * regcache.c (ptid_regcache_map): New type.
1004 (target_ptid_regcache_map): New type.
1005 (regcaches): Change type to target_ptid_regcache_map.
1006 (get_thread_arch_aspace_regcache): Update to regcaches' new
1007 type.
1008 (regcache_thread_ptid_changed): Likewise.
1009 (registers_changed_ptid): Likewise.
1010 (regcaches_size): Likewise.
1011 (regcaches_test): Update.
1012 (regcache_thread_ptid_changed): Update.
1013 * regcache.h (regcache_up): New type.
1014 * gdbsupport/ptid.h (hash_ptid): New struct.
1015
b161a60d
SM
10162020-08-07 Simon Marchi <simon.marchi@efficios.com>
1017
1018 * observable.h (thread_ptid_changed): Add parameter
1019 `process_stratum_target *`.
1020 * infrun.c (infrun_thread_ptid_changed): Add parameter
1021 `process_stratum_target *` and use it.
1022 (selftests): New namespace.
1023 (infrun_thread_ptid_changed): New function.
1024 (_initialize_infrun): Register selftest.
1025 * regcache.c (regcache_thread_ptid_changed): Add parameter
1026 `process_stratum_target *` and use it.
1027 (regcache_thread_ptid_changed): New function.
1028 (_initialize_regcache): Register selftest.
1029 * thread.c (thread_change_ptid): Pass target to
1030 thread_ptid_changed observable.
1031
d2854d8d
CT
10322020-08-06 Caroline Tice <cmtice@google.com>
1033
fe4c3d43
SM
1034 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
1035 (struct dwp_sections): Update field comments. Add loclists and
1036 rnglists fields.
1037 (struct virtual_v2_dwo_sections): Rename struct to
1038 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
1039 size & offset fields for loclists and rnglists.
1040 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
1041 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
1042 skipping dummy type units.
1043 (create_dwp_hash_table): Update the large comment above the function to
1044 discuss Version 5 DWP files as well, with references. Update all the
1045 version checks in the function to check for version 5 as well. Add new
1046 section at the end to create dwp hash table for version 5.
1047 (create_dwp_v2_section): Rename function to
1048 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
1049 Add V5 to error message text.
1050 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
1051 into calls to create_dwp_v2_or_v5_section.
1052 (create_dwo_unit_in_dwp_v5): New function.
1053 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1054 check for version2; add else clause to handle version 5.
1055 (open_and_init_dwo_file): Add code to check dwarf version & only call
1056 create_debug_types_hash_table (with sections.types) if version is not 5;
1057 else call create_debug_type_hash_table, with sections.info.
1058 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1059 version 5.
1060 (dwarf2_locate_v5_dwp_sections): New function.
1061 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1062 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 1063
159ed7d9
SM
10642020-08-06 Simon Marchi <simon.marchi@efficios.com>
1065
1066 * regcache.h (class regcache): Remove friend
1067 registers_changed_ptid.
1068 <regcache_thread_ptid_changed>: Remove.
1069 <regcaches>: Remove.
1070 * regcache.c (regcache::regcaches): Rename to...
1071 (regcaches): ... this. Make static.
1072 (get_thread_arch_aspace_regcache): Update.
1073 (regcache::regcache_thread_ptid_changed): Rename to...
1074 (regcache_thread_ptid_changed): ... this. Update.
1075 (class regcache_access): Remove.
1076 (regcaches_test): Update.
1077 (_initialize_regcache): Update.
1078 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1079 <forward_list>.
1080
174981ae
SM
10812020-08-06 Simon Marchi <simon.marchi@efficios.com>
1082
1083 * regcache.h (class regcache) <current_regcache>: Rename to...
1084 <regcaches>: ... this. Move doc here.
1085 * regcache.c (regcache::current_regcache) Rename to...
1086 (regcache::regcaches): ... this. Move doc to header.
1087 (get_thread_arch_aspace_regcache): Update.
1088 (regcache::regcache_thread_ptid_changed): Update.
1089 (registers_changed_ptid): Update.
1090 (class regcache_access) <current_regcache_size>: Rename to...
1091 <regcaches_size>: ... this.
1092 (current_regcache_test): Rename to...
1093 (regcaches_test): ... this.
1094 (_initialize_regcache): Update.
1095
ed908db6
VC
10962020-08-06 Victor Collod <vcollod@nvidia.com>
1097
1098 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1099
b5582ab7
KB
11002020-08-05 Kevin Buettner <kevinb@redhat.com>
1101
1102 * corelow.c (core_target::build_file_mappings): Don't output
1103 null pathname in warning.
1104
ea946b86
SM
11052020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1106
1107 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1108 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1109 gdb.dwarf2/dw2-single-line-discriminators.exp,
1110 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1111
57d02173
TT
11122020-08-05 Tom Tromey <tromey@adacore.com>
1113
1114 PR rust/26197:
1115 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1116 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1117 Fix off-by-one and type size errors in ordinary case.
1118
5555c86d
TV
11192020-08-05 Tom de Vries <tdevries@suse.de>
1120
1121 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1122 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1123
97916bfe
SM
11242020-08-04 Simon Marchi <simon.marchi@efficios.com>
1125
1126 * frame.h (frame_id_p): Return bool.
1127 (frame_id_artificial_p): Return bool.
1128 (frame_id_eq): Return bool.
1129 (has_stack_frames): Return bool.
1130 (get_selected_frame): Fix typo in comment.
1131 (get_frame_pc_if_available): Return bool.
1132 (get_frame_address_in_block_if_available): Return bool.
1133 (get_frame_func_if_available): Return bool.
1134 (read_frame_register_unsigned): Return bool.
1135 (get_frame_register_bytes): Return bool.
1136 (safe_frame_unwind_memory): Return bool.
1137 (deprecated_frame_register_read): Return bool.
1138 (frame_unwinder_is): Return bool.
1139 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1140 bool.
1141 <this_id::p>: Likewise.
1142 <prev_p>: Likewise.
1143 (frame_stash_add): Return bool.
1144 (get_frame_id): Use bool.
1145 (frame_id_build_special) Use bool.
1146 (frame_id_build_unavailable_stack): Use bool.
1147 (frame_id_build): Use bool.
1148 (frame_id_p): Return bool, use true/false instead of 1/0.
1149 (frame_id_artificial_p): Likewise.
1150 (frame_id_eq): Likewise.
1151 (frame_id_inner): Likewise.
1152 (get_frame_func_if_available): Likewise.
1153 (read_frame_register_unsigned): Likewise.
1154 (deprecated_frame_register_read): Likewise.
1155 (get_frame_register_bytes): Likewise.
1156 (has_stack_frames): Likewise.
1157 (inside_main_func): Likewise.
1158 (inside_entry_func): Likewise.
1159 (get_frame_pc_if_available): Likewise.
1160 (get_frame_address_in_block_if_available): Likewise.
1161 (frame_unwinder_is): Likewise.
1162 (safe_frame_unwind_memory): Likewise.
1163 (frame_unwind_arch): Likewise.
1164
fedfee88
SM
11652020-08-04 Simon Marchi <simon.marchi@efficios.com>
1166
1167 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1168 type to cached_copy_status.
1169 (fprintf_frame): Adjust.
1170 (get_frame_func_if_available): Adjust.
1171 (frame_cleanup_after_sniffer): Adjust.
1172
6cfa9b59
MW
11732020-08-04 Mark Wielaard <mark@klomp.org>
1174
1175 * MAINTAINERS (Write After Approval): Update email address.
1176
66d6346b
SM
11772020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1178
1179 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1180 dynamic_prop::const_val.
1181
8a6d5e35
SM
11822020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1183
1184 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1185 dynamic_prop::kind.
1186
51d6067d
SM
11872020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1188
1189 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1190
b26e2ae7
JM
11912020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1192
1193 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1194
39791af2
JM
11952020-08-04 Weimin Pan <weimin.pan@oracle.com>
1196 Jose E. Marchesi <jose.marchesi@oracle.com>
1197
1198 * configure.tgt: Add entry for bpf-*-*.
1199 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1200 (ALLDEPFILES): Add bpf-tdep.c.
1201 * bpf-tdep.c: New file.
1202 * MAINTAINERS: Add bpf target and maintainer.
1203 * NEWS: Mention the support for the new target.
1204
521894aa
TV
12052020-08-04 Tom de Vries <tdevries@suse.de>
1206
1207 PR symtab/23270
1208 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1209 Error.
1210
5d6356e9
JB
12112020-08-03 John Baldwin <jhb@FreeBSD.org>
1212
1213 * syscalls/freebsd.xml: Regenerate.
1214
0cf82b81
JB
12152020-08-03 John Baldwin <jhb@FreeBSD.org>
1216
1217 * syscalls/update-freebsd.sh: Fix usage and year range.
1218
8f34b746
TV
12192020-08-03 Tom de Vries <tdevries@suse.de>
1220
1221 PR symtab/26333
1222 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1223 DW_LNE_lo_user/DW_LNE_hi_user range.
1224
5e500d33
SM
12252020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1226
1227 PR ada/26318
1228 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1229 kind.
1230
78319c15
TBA
12312020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1232
1233 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1234
4c55e970
TBA
12352020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1236
1237 * breakpoint.c (set_breakpoint_condition): Update the condition
1238 expressions after checking that the input condition string parses
1239 successfully and does not contain junk at the end.
1240
1e620590
TBA
12412020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1242
1243 * breakpoint.c (set_breakpoint_condition): Update the
1244 condition string after parsing the new condition successfully.
1245
c8693053
RO
12462020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1247
1248 * proc-api.c (_STRUCTURED_PROC): Don't define.
1249 * proc-events.c: Likewise.
1250 * proc-flags.c: Likewise.
1251 * proc-why.c: Likewise.
1252 * procfs.c: Likewise.
1253
1254 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1255 * configure, config.in: Regenerate.
1256
5a99adb8
TV
12572020-07-30 Tom de Vries <tdevries@suse.de>
1258
1259 PR build/26320
1260 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1261 m_red/m_green/m_blue in a union.
1262
8ba83e91
TV
12632020-07-29 Tom de Vries <tdevries@suse.de>
1264
1265 PR tdep/26280
1266 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1267
f75a0693
AB
12682020-07-28 Tom Tromey <tromey@adacore.com>
1269
1270 PR symtab/26270:
1271 * symtab.h (find_pc_partial_function_sym): Declare.
1272 * cli/cli-cmds.c (disassemble_command): Use
1273 find_pc_partial_function_sym. Check asm_demangle.
1274 * blockframe.c (cache_pc_function_sym): New global.
1275 (cache_pc_function_name): Remove.
1276 (clear_pc_function_cache): Update.
1277 (find_pc_partial_function_sym): New function, from
1278 find_pc_partial_function.
1279 (find_pc_partial_function): Rewrite using
1280 find_pc_partial_function_sym.
1281
16f3242c
TT
12822020-07-28 Tom Tromey <tromey@adacore.com>
1283
1284 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1285 help. Add usage.
1286
4888741a
TT
12872020-07-28 Tom Tromey <tromey@adacore.com>
1288
1289 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1290 <DW_OP_GNU_variable_value>: Cast to address type.
1291
4d46f402
KR
12922020-07-28 Kamil Rytarowski <n54@gmx.com>
1293
1294 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1295 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1296 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1297 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1298 (nbsd_get_siginfo_type): New.
1299 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1300 (_initialize_nbsd_tdep): New.
1301
d70f978b
L
13022020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1303
1304 PR binutils/26301
1305 * configure: Regenerated.
1306
377170fa
L
13072020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1308
1309 PR binutils/26301
1310 * configure: Regenerated.
1311
43d5901d
AB
13122020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1313
1314 * python/py-frame.c: Remove 'user-regs.h' include.
1315 (frapy_read_register): Rewrite to make use of
1316 gdbpy_parse_register_id.
1317 * python/py-registers.c (gdbpy_parse_register_id): New function,
1318 moved here from python/py-unwind.c. Updated the return type, and
1319 also accepts register descriptor objects.
1320 * python/py-unwind.c: Remove 'user-regs.h' include.
1321 (pyuw_parse_register_id): Moved to python/py-registers.c.
1322 (unwind_infopy_add_saved_register): Update to use
1323 gdbpy_parse_register_id.
1324 (pending_framepy_read_register): Likewise.
1325 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1326
14fa8fb3
AB
13272020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1328
1329 * python/py-registers.c: Add 'user-regs.h' include.
1330 (register_descriptor_iter_find): New function.
1331 (register_descriptor_iterator_object_methods): New static global
1332 methods array.
1333 (register_descriptor_iterator_object_type): Add pointer to methods
1334 array.
1335
ddce1758
JB
13362020-07-27 John Baldwin <jhb@FreeBSD.org>
1337
1338 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1339 for all architectures on FreeBSD 11.3 and later.
1340
a4089f52
TT
13412020-07-27 Tom Tromey <tromey@adacore.com>
1342
1343 * gcore.h (load_corefile): Don't declare.
1344
95420d30
TV
13452020-07-27 Tom de Vries <tdevries@suse.de>
1346
1347 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1348 * config.in: Regenerate.
1349 * configure: Regenerate.
1350
05a6b8c2
EZ
13512020-07-26 Eli Zaretskii <eliz@gnu.org>
1352
1353 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1354 ws2tcpip.h. When checking whether socklen_t type is defined, use
1355 ws2tcpip.h if it is available and sys/socket.h isn't.
1356 * configure: Regenerate.
1357 * config.in: Regenerate.
1358
e79eb02f
AB
13592020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1360
1361 PR fortran/23051
1362 PR fortran/26139
1363 * valops.c (value_ind): Pass address to
1364 readjust_indirect_value_type.
1365 * value.c (readjust_indirect_value_type): Make parameter
1366 non-const, and add extra address parameter. Resolve original type
1367 before using it.
1368 * value.h (readjust_indirect_value_type): Update function
1369 signature and comment.
1370
876518dd
TV
13712020-07-25 Tom de Vries <tdevries@suse.de>
1372
1373 PR symtab/26243
1374 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1375 entries.
1376
f6720b1c
AM
13772020-07-24 Aaron Merey <amerey@redhat.com>
1378
1379 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1380 * configure: Rebuild.
1381
513487e1
KB
13822020-07-23 Kevin Buettner <kevinb@redhat.com>
1383
1384 PR corefiles/26294
1385 * corelow.c (_initialize_corelow): Add period to help text
1386 for "maintenance print core-file-backed-mappings".
1387
e7bc9db8
PA
13882020-07-23 Pedro Alves <pedro@palves.net>
1389
1390 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1391 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1392 meanwhile.
1393 * frame.c (frame_cache_generation, get_frame_cache_generation):
1394 New.
1395 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1396 (get_prev_frame_if_no_cycle): On exception, don't touch
1397 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1398 * frame.h (get_frame_cache_generation): Declare.
1399
90fcc466
TV
14002020-07-23 Tom de Vries <tdevries@suse.de>
1401
1402 PR tui/26282
1403 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1404 New default constructor.
1405
78344df7
AB
14062020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1407
1408 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1409 exclude non-statement entries.
1410
b089853a
KB
14112020-07-22 Kevin Buettner <kevinb@redhat.com>
1412
1413 * NEWS (New commands): Mention new command
1414 "maintenance print core-file-backed-mappings".
1415
09c2f5d4
KB
14162020-07-22 Kevin Buettner <kevinb@redhat.com>
1417
1418 * corelow.c (gdbcmd.h): Include.
1419 (core_target::info_proc_mappings): New method.
1420 (get_current_core_target): New function.
1421 (maintenance_print_core_file_backed_mappings): New function.
1422 (_initialize_corelow): Add core-file-backed-mappings to
1423 "maint print" commands.
1424
9c5ec5c2 14252020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1426
9c5ec5c2
KB
1427 * linux-tdep.c (dump_note_entry_p): New function.
1428 (linux_dump_mapping_p_ftype): New typedef.
1429 (linux_find_memory_regions_full): Add new parameter,
1430 should_dump_mapping_p.
1431 (linux_find_memory_regions): Adjust call to
1432 linux_find_memory_regions_full.
1433 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1434 call to linux_find_memory_regions_full.
1435
db082f59
KB
14362020-07-22 Kevin Buettner <kevinb@redhat.com>
1437
1438 * corelow.c (solist.h, unordered_map): Include.
1439 (class core_target): Add field m_core_file_mappings and
1440 method build_file_mappings.
1441 (core_target::core_target): Call build_file_mappings.
1442 (core_target::~core_target): Free memory associated with
1443 m_core_file_mappings.
1444 (core_target::build_file_mappings): New method.
1445 (core_target::xfer_partial): Use m_core_file_mappings
1446 for memory transfers.
1447 * linux-tdep.c (linux_read_core_file_mappings): New
1448 function.
1449 (linux_core_info_proc_mappings): Rewrite to use
1450 linux_read_core_file_mappings.
1451 (linux_init_abi): Register linux_read_core_file_mappings.
1452
7e183d27
KB
14532020-07-22 Kevin Buettner <kevinb@redhat.com>
1454
1455 * arch-utils.c (default_read_core_file_mappings): New function.
1456 * arch-utils.c (default_read_core_file_mappings): Declare.
1457 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1458 * gdbarch.h, gdbarch.c: Regenerate.
1459
2735d421
KB
14602020-07-22 Kevin Buettner <kevinb@redhat.com>
1461
1462 PR corefiles/25631
1463 * corelow.c (core_target:xfer_partial): Revise
1464 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1465 case after first checking the stratum beneath the core
1466 target.
1467 (has_all_memory): Return true.
1468 * target.c (raw_memory_xfer_partial): Revise comment
1469 regarding use of has_all_memory.
1470
e56cb451
KB
14712020-07-22 Kevin Buettner <kevinb@redhat.com>
1472
1473 * exec.h (section_table_xfer_memory): Revise declaration,
1474 replacing section name parameter with an optional callback
1475 predicate.
1476 * exec.c (section_table_xfer_memory): Likewise.
1477 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1478 of section_table_xfer_memory.
1479
32fa152e
TT
14802020-07-22 Tom Tromey <tromey@adacore.com>
1481
1482 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1483 lookup_symbol_search_name.
1484
a67a1c41
AB
14852020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1486
1487 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1488 redundant local variable.
1489 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1490 reference, not pointer, update code accordingly.
1491
a7b4ff4f
SM
14922020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1493 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1494
1495 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1496 * jit.c (jit_breakpoint_re_set_internal): Use the
1497 `skip_jit_symbol_lookup` field.
1498
2340e834
SM
14992020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1500 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1501
1502 * jit.c (jit_read_descriptor): Define the descriptor address once,
1503 use twice.
1504 (jit_breakpoint_deleted): Move the declaration of the loop variable
1505 `iter` into the loop header.
1506 (jit_breakpoint_re_set_internal): Move the declaration of the local
1507 variable `objf_data` to the first point of definition.
1508 (jit_event_handler): Move the declaration of local variables
1509 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1510 Rename `objf` to `jited`.
1511
c1072906
SM
15122020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1513
1514 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1515 Remove.
1516 * jit.c (get_jiter_objfile_data): Update.
1517
c8474dc3
TBA
15182020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1519 Simon Marchi <simon.marchi@polymtl.ca>
1520
1521 * jit.c (struct jit_program_space_data): Remove.
1522 (jit_program_space_key): Remove.
1523 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1524 stuff.
1525 (get_jit_program_space_data): Remove.
1526 (jit_breakpoint_deleted): Iterate on all of the program space's
1527 objfiles.
1528 (jit_inferior_init): Likewise.
1529 (jit_breakpoint_re_set_internal): Likewise. Also change return
1530 type to void.
1531 (jit_breakpoint_re_set): Pass current_program_space to
1532 jit_breakpoint_re_set_internal.
1533
77208eb7
SM
15342020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1535
1536 * jit.h (struct jiter_objfile_data) <cached_code_address,
1537 jit_breakpoint>: Move to here from ...
1538 * jit.c (jit_program_space_data): ... here.
1539 (jiter_objfile_data::~jiter_objfile_data): Update.
1540 (jit_breakpoint_deleted): Update.
1541 (jit_breakpoint_re_set_internal): Update.
1542
8c1c720f
SM
15432020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1544
1545 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1546 checks.
1547 (jit_read_descriptor): Remove NULL check.
1548 (jit_event_handler): Add an assertion.
1549
0e74a041
SM
15502020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1551
1552 * jit.h (struct jit_objfile_data): Split into...
1553 (struct jiter_objfile_data): ... this ...
1554 (struct jited_objfile_data): ... and this.
1555 * objfiles.h (struct objfile) <jit_data>: Remove.
1556 <jiter_data, jited_data>: New fields.
1557 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1558 (jiter_objfile_data::~jiter_objfile_data): ... this.
1559 (get_jit_objfile_data): Rename to ...
1560 (get_jiter_objfile_data): ... this.
1561 (add_objfile_entry): Update.
1562 (jit_read_descriptor): Use get_jiter_objfile_data.
1563 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1564 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1565 (jit_inferior_exit_hook): Use objfile's jited_data field.
1566
238b5c9f
SM
15672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1568
1569 * jit.h: Forward-declare `struct minimal_symbol`.
1570 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1571 constructor, destructor, and an objfile* field.
1572 * jit.c (jit_objfile_data): Remove.
1573 (struct jit_objfile_data): Migrate from here to jit.h.
1574 (jit_objfile_data::~jit_objfile_data): New destructor
1575 implementation with code moved from free_objfile_data.
1576 (free_objfile_data): Delete.
1577 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1578 (jit_find_objf_with_entry_addr): Ditto.
1579 (jit_inferior_exit_hook): Ditto.
1580 (_initialize_jit): Remove the call to
1581 register_objfile_data_with_cleanup.
1582 * objfiles.h (struct objfile) <jit_data>: New field.
1583
fe053b9e
TBA
15842020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1585
1586 * jit.h: Forward-declare `struct objfile`.
1587 (jit_event_handler): Add a second parameter, the JITer objfile.
1588 * jit.c (jit_read_descriptor): Change the signature to take the
1589 JITer objfile as an argument instead of the jit_program_space_data.
1590 (jit_inferior_init): Update the call to jit_read_descriptor.
1591 (jit_event_handler): Use the new JITer objfile argument when calling
1592 jit_read_descriptor.
1593 * breakpoint.c (handle_jit_event): Update the call to
1594 jit_event_handler to pass the JITer objfile.
1595
4cec0c66
JB
15962020-07-21 John Baldwin <jhb@FreeBSD.org>
1597
1598 * gdbarch.c: Regenerate.
1599 * gdbarch.h: Regenerate.
1600 * gdbarch.sh (handle_segmentation_fault): Remove method.
1601 * infrun.c (handle_segmentation_fault): Remove.
1602 (print_signal_received_reason): Remove call to
1603 handle_segmentation_fault.
1604
0e42f66a
JB
16052020-07-21 John Baldwin <jhb@FreeBSD.org>
1606
1607 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1608 Rename to sparc64_linux_report_signal_info and add siggnal
1609 argument.
1610 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1611 instead of sparc64_linux_handle_segmentation_fault.
1612
77bdfeb2
JB
16132020-07-21 John Baldwin <jhb@FreeBSD.org>
1614
1615 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1616 i386_linux_report_signal_info instead of
1617 i386_linux_handle_segmentation_fault.
1618 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1619 to i386_linux_report_signal_info and add siggnal argument.
1620 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1621 of i386_linux_handle_segmentation_fault.
1622 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1623 to i386_linux_report_signal_info and add siggnal argument.
1624
ad97bfc5
JB
16252020-07-21 John Baldwin <jhb@FreeBSD.org>
1626
1627 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1628 hook if present.
1629
272bb05c
JB
16302020-07-21 John Baldwin <jhb@FreeBSD.org>
1631
1632 * gdbarch.c: Regenerate.
1633 * gdbarch.h: Regenerate.
1634 * gdbarch.sh (report_signal_info): New method.
1635 * infrun.c (print_signal_received_reason): Invoke gdbarch
1636 report_signal_info hook if present.
1637
baf8791e
AB
16382020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1639
1640 * python/py-registers.c : Add 'unordered_map' include.
1641 (gdbpy_new_reggroup): Renamed to...
1642 (gdbpy_get_reggroup): ...this. Update to only create register
1643 group descriptors when needed.
1644 (gdbpy_reggroup_iter_next): Update.
1645
f7306dac
AB
16462020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1647
1648 * python/py-registers.c (gdbpy_register_object_data): New static
1649 global.
1650 (gdbpy_register_object_data_init): New function.
1651 (gdbpy_new_register_descriptor): Renamed to...
1652 (gdbpy_get_register_descriptor): ...this, and update to reuse
1653 existing register descriptors where possible.
1654 (gdbpy_register_descriptor_iter_next): Update.
1655 (gdbpy_initialize_registers): Register new gdbarch data.
1656
05c309a8
SM
16572020-07-21 Simon Marchi <simon.marchi@efficios.com>
1658
1659 * linux-nat.c (stopped_pids): Make static.
1660
d1fd641e
SM
16612020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1662
1663 PR ada/26235
1664 * gdbtypes.c (ada_discrete_type_low_bound,
1665 ada_discrete_type_high_bound): Handle undefined bounds.
1666
1de14d77
KR
16672020-07-21 Kamil Rytarowski <n54@gmx.com>
1668
1669 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1670 declaration.
1671 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1672 function.
1673
ed810cc7
JB
16742020-07-20 John Baldwin <jhb@FreeBSD.org>
1675
1676 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1677 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1678 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1679 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1680 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1681 method.
1682
ae5369e7
LC
16832020-07-20 Ludovic Courtès <ludo@gnu.org>
1684
1685 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1686 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1687 which are deprecated in Guile 3.0.
1688 * configure.ac (try_guile_versions): Add "guile-3.0".
1689 * configure (try_guile_versions): Regenerate.
1690 * NEWS: Update entry.
1691
68cf161c
LC
16922020-07-20 Ludovic Courtès <ludo@gnu.org>
1693 Doug Evans <dje@google.com>
1694
1695 PR gdb/21104
1696 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1697 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1698 USING_GUILE_BEFORE_2_2.
1699 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1700 Change type to 'scm_t_port_type *'.
1701 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1702 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1703 parameter and honor it. Update callers.
1704 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1705 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1706 functions.
1707 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1708 USING_GUILE_BEFORE_2_2.
1709 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1710 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1711 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1712 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1713 and 'SCM_PORT_TYPE'.
1714 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1715 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1716 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1717 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1718 [!USING_GUILE_BEFORE_2_2]: New functions.
1719 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1720 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1721 'gdbscm_memory_port_read'.
1722 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1723 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1724 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1725 function.
1726 (ioscm_init_memory_port): Remove.
1727 (ioscm_init_memory_port_stream): New function
1728 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1729 function.
1730 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1731 Return scm_from_uint (0).
1732 (gdbscm_set_memory_port_read_buffer_size_x)
1733 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1734 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1735 Return scm_from_uint (0).
1736 (gdbscm_set_memory_port_write_buffer_size_x)
1737 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1738 * configure.ac (try_guile_versions): Add "guile-2.2".
1739 * configure: Regenerate.
1740 * NEWS: Add entry.
1741
aee91db3
TT
17422020-07-18 Tom Tromey <tom@tromey.com>
1743
1744 * linux-nat.c (linux_multi_process): Remove.
1745 (linux_nat_target::supports_multi_process): Return true.
1746
0e267416
AB
17472020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1748
1749 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1750 (riscv_lookup_target_description): Return pointer out of
1751 unique_ptr.
1752 * target-descriptions.c (allocate_target_description): Add
1753 comment.
1754 (target_desc_deleter::operator()): Likewise.
1755 * target-descriptions.h (struct target_desc_deleter): Moved to
1756 gdbsupport/tdesc.h.
1757 (target_desc_up): Likewise.
1758
f80c8ec4
TT
17592020-07-17 Tom Tromey <tromey@adacore.com>
1760
1761 * linux-nat.c (linux_nat_target::supports_non_stop)
1762 (linux_nat_target::always_non_stop_p): Use "true".
1763 (linux_nat_target::supports_disable_randomization): Use "true" and
1764 "false".
1765
d0ce17d8
CT
17662020-07-16 Caroline Tice <cmtice@google.com>
1767
1768 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1769 (RNGLIST_HEADER_SIZE64): New constant definition.
1770 (struct dwop_section_names): Add rnglists_dwo.
1771 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1772 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1773 (struct dwo_sections): Add rnglists field.
1774 (read_attribut_reprocess): Add tag parameter.
1775 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1776 (cu_debug_rnglists_section): New function (decl & definition).
1777 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1778 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1779 die whose range is being checked; get rnglist section from
1780 cu_debug_rnglists_section, to get from either objfile or dwo file as
1781 appropriate. Add cases for DW_RLE_base_addressx,
1782 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1783 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1784 test inside if-condition and updating complaint message.
1785 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1786 dwarf2_rnglists_process.
1787 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1788 dwarf2_ranges_process.
1789 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1790 need_ranges_base and update comment appropriately. Also pass die tag
1791 to dwarf2_ranges_read.
1792 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1793 need_ranges_base and update comment appropriately. Also pass die tag
1794 to dwarf2_ranges_process.
1795 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1796 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1797 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1798 need_ranges_base and update comment appropriately. Also pass die tag
1799 to read_attribute_reprocess and dwarf2_ranges_read.
1800 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1801 and update function comment appropriately.
1802 (read_loclist_index): Call read_loclists_rnglists_header instead of
1803 read_loclist_header.
1804 (read_rnglist_index): New function.
1805 (read_attribute_reprocess): Add tag parameter. Add code for
1806 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1807 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1808
3dcc261c
AB
18092020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1810
1811 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1812 being resolved.
1813
ccb9eba6
AB
18142020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1815
1816 * arch-utils.c (show_architecture): Update formatting of messages.
1817
cf88be68
SM
18182020-07-12 Simon Marchi <simon.marchi@efficios.com>
1819
1820 * gdbtypes.h (struct type) <bounds>: Handle array and string
1821 types.
1822 * ada-lang.c (assign_aggregate): Use type::bounds on
1823 array/string type.
1824 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1825 * c-varobj.c (c_number_of_children): Likewise.
1826 (c_describe_child): Likewise.
1827 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1828 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1829 (f_type_print_base): Likewise.
1830 * f-valprint.c (f77_array_offset_tbl): Likewise.
1831 (f77_get_upperbound): Likewise.
1832 (f77_print_array_1): Likewise.
1833 * guile/scm-type.c (gdbscm_type_range): Likewise.
1834 * m2-typeprint.c (m2_array): Likewise.
1835 (m2_is_long_set_of_type): Likewise.
1836 * m2-valprint.c (get_long_set_bounds): Likewise.
1837 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1838 * python/py-type.c (typy_range): Likewise.
1839 * rust-lang.c (rust_internal_print_type): Likewise.
1840 * type-stack.c (type_stack::follow_types): Likewise.
1841 * valarith.c (value_subscripted_rvalue): Likewise.
1842 * valops.c (value_cast): Likewise.
1843
509971ae
SM
18442020-07-12 Simon Marchi <simon.marchi@efficios.com>
1845
1846 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1847 callers to use the equivalent accessor methods.
1848
107406b7
SM
18492020-07-12 Simon Marchi <simon.marchi@efficios.com>
1850
1851 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1852 (struct type) <bit_stride>: New method.
1853 (TYPE_BIT_STRIDE): Remove.
1854 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1855
bb789949
SM
18562020-07-12 Simon Marchi <simon.marchi@efficios.com>
1857
1858 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1859 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1860 callers to use the equivalent accessor methods instead.
1861
39498edb
SM
18622020-07-12 Simon Marchi <simon.marchi@efficios.com>
1863
1864 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1865 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1866 callers to use the equivalent accessor methods instead.
1867
3b606f38
SM
18682020-07-12 Simon Marchi <simon.marchi@efficios.com>
1869
1870 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1871 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1872 to use dynamic_prop::kind.
1873
064d9cb9
SM
18742020-07-12 Simon Marchi <simon.marchi@efficios.com>
1875
1876 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1877 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1878 to get the bound property's kind and check against
1879 PROP_UNDEFINED.
1880
5537ddd0
SM
18812020-07-12 Simon Marchi <simon.marchi@efficios.com>
1882
1883 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1884 all callers to use type::range_bounds followed by
1885 dynamic_prop::{low,high}.
1886
8c2e4e06
SM
18872020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1888
1889 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1890 const_val, set_const_val, baton, set_locexpr, set_loclist,
1891 set_addr_offset, variant_parts, set_variant_parts,
1892 original_type, set_original_type>: New methods.
1893 <kind>: Rename to...
1894 <m_kind>: ... this. Update all users to use the new methods
1895 instead.
1896 <data>: Rename to...
1897 <m_data>: ... this. Update all users to use the new methods
1898 instead.
1899
7c6f2712
SM
19002020-07-12 Simon Marchi <simon.marchi@efficios.com>
1901
1902 * gdbtypes.c (get_discrete_bounds): Return failure if
1903 the range type's bounds are not both defined and constant
1904 values.
1905 (get_array_bounds): Update comment. Remove undefined bound check.
1906
599088e3
SM
19072020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1908
1909 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1910 the type::bounds method directly.
1911
c4dfcb36
SM
19122020-07-12 Simon Marchi <simon.marchi@efficios.com>
1913
1914 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1915 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1916 are used to set the range type's bounds to use set_bounds.
1917
0a278aa7
PW
19182020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1919
1920 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1921
cce20f10
PA
19222020-07-10 Pedro Alves <pedro@palves.net>
1923
1924 * gdbthread.h (inferior_ref): Define.
1925 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1926 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1927 * thread.c
1928 (scoped_restore_current_thread::restore):
1929 Adjust to gdb::ref_ptr.
1930 (scoped_restore_current_thread::~scoped_restore_current_thread):
1931 Remove manual decref handling.
1932 (scoped_restore_current_thread::scoped_restore_current_thread):
1933 Adjust to use
1934 inferior_ref::new_reference/thread_info_ref::new_reference.
1935 Incref the thread before calling get_frame_id instead of after.
1936 Let TARGET_CLOSE_ERROR propagate.
1937
6d7aa592
PA
19382020-07-10 Pedro Alves <pedro@palves.net>
1939
1940 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1941 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1942 NOT_AVAILABLE_ERROR.
1943 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1944 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1945
b3e3a4c1
SM
19462020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1947 Pedro Alves <pedro@palves.net>
1948
1949 PR gdb/26199
1950 * infrun.c (threads_are_resumed_pending_p): Delete.
1951 (do_target_wait): Remove threads_are_executing and
1952 threads_are_resumed_pending_p checks from the inferior_matches
1953 lambda. Update comments.
1954
d6cc5d98
PA
19552020-07-10 Pedro Alves <pedro@palves.net>
1956
1957 PR gdb/26199
1958 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1959 executing threads.
1960
7d3badc6
PA
19612020-07-10 Pedro Alves <pedro@palves.net>
1962
1963 PR gdb/26199
1964 * infrun.c (handle_no_resumed): Handle multiple targets.
1965
42bd97a6
PA
19662020-07-10 Pedro Alves <pedro@palves.net>
1967
1968 PR gdb/26199
1969 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1970 target_is_async_p.
1971
43667cc6
PA
19722020-07-10 Pedro Alves <pedro@palves.net>
1973
1974 PR gdb/26199
1975 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1976 threads, not all threads.
1977
96118d11
PA
19782020-07-10 Pedro Alves <pedro@palves.net>
1979
1980 PR gdb/26199
1981 * remote.c (remote_target::open_1): Pass remote target pointer as
1982 data to create_async_event_handler.
1983 (remote_async_inferior_event_handler): Mark async event handler
1984 before returning if the remote target still has either pending
1985 events or unacknowledged notifications.
1986
54904d81
JB
19872020-07-10 John Baldwin <jhb@FreeBSD.org>
1988
1989 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1990 declaration.
1991 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1992 function.
1993
f37e5866
JB
19942020-07-09 John Baldwin <jhb@FreeBSD.org>
1995
1996 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1997 inferior_ptid.
1998
fc238d4a
JB
19992020-07-09 John Baldwin <jhb@FreeBSD.org>
2000
2001 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
2002 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
2003 AT_FREEBSD_PS_STRINGS.
2004
6e2469ff
HD
20052020-07-08 Hannes Domani <ssbssa@yahoo.de>
2006
2007 * auto-load.c (auto_load_objfile_script_1): Convert drive part
2008 of debugfile path on Windows.
2009
d1076c41
JB
20102020-07-08 John Baldwin <jhb@FreeBSD.org>
2011
2012 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
2013 argument to 'data'.
2014
15f3b077
TT
20152020-07-08 Tom Tromey <tromey@adacore.com>
2016
2017 * ada-lang.c (ada_exception_message_1): Use read_memory.
2018
9fc501fd
AB
20192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2020
2021 PR python/22748
2022 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
2023 special handling for inline frames.
2024 * findvar.c (value_of_register_lazy): Skip inline frames when
2025 creating lazy register values.
2026 * frame.c (frame_id_computed_p): Delete definition.
2027 * frame.h (frame_id_computed_p): Delete declaration.
2028
64cb3757
AB
20292020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2030
2031 * NEWS: Mention additions to Python API.
2032 * python/py-arch.c (archpy_register_groups): New function.
2033 (arch_object_methods): Add 'register_groups' method.
2034 * python/py-registers.c (reggroup_iterator_object): New struct.
2035 (reggroup_object): New struct.
2036 (gdbpy_new_reggroup): New function.
2037 (gdbpy_reggroup_to_string): New function.
2038 (gdbpy_reggroup_name): New function.
2039 (gdbpy_reggroup_iter): New function.
2040 (gdbpy_reggroup_iter_next): New function.
2041 (gdbpy_new_reggroup_iterator): New function
2042 (gdbpy_initialize_registers): Register new types.
2043 (reggroup_iterator_object_type): Define new Python type.
2044 (gdbpy_reggroup_getset): New static global.
2045 (reggroup_object_type): Define new Python type.
2046 * python/python-internal.h
2047
0f767f94
AB
20482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2049
2050 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
2051 * python/py-arch.c (archpy_registers): New function.
2052 (arch_object_methods): Add 'registers' method.
2053 * python/py-registers.c: New file.
2054 * python/python-internal.h
2055 (gdbpy_new_register_descriptor_iterator): Declare.
2056 (gdbpy_initialize_registers): Declare.
2057 * python/python.c (do_start_initialization): Call
2058 gdbpy_initialize_registers.
2059 * NEWS: Mention additions to the Python API.
2060
87dbc774
AB
20612020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2062
2063 * NEWS: Mention new Python API method.
2064 * python/py-unwind.c (pending_framepy_architecture): New function.
2065 (pending_frame_object_methods): Add architecture method.
2066
3bc98c0c
AB
20672020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2068
2069 * gdbarch.c: Regenerate.
2070 * gdbarch.h: Regenerate.
2071 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2072 (gdbarch_data): Use internal_error for the case where
2073 deprecated_set_gdbarch_data was originally needed.
2074 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2075 and use passed in obstack.
2076 (libunwind_frame_set_descr): Should no longer get back NULL from
2077 gdbarch_data.
2078 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2079 type.
2080 * user-regs.c (user_regs_init): Update parameters, and use passed
2081 in obstack.
2082 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2083 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2084
d8cc8af6
TV
20852020-07-06 Tom de Vries <tdevries@suse.de>
2086
2087 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2088 End-Of-Sequence in lte_is_less_than.
2089 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2090 "gdb: Don't reorder line table entries too much when sorting".
2091
947f7597
TV
20922020-07-06 Tom de Vries <tdevries@suse.de>
2093
2094 PR tui/26205
2095 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2096
1e7c1b22
TV
20972020-07-05 Tom de Vries <tdevries@suse.de>
2098
2099 PR build/26187
2100 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2101 std::uncaught_exceptions instead of deprecated
2102 std::uncaught_exception.
2103
a36158ec
SM
21042020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2105
2106 * macroexp.h (macro_stringify): Return
2107 gdb::unique_xmalloc_ptr<char>.
2108 * macroexp.c (macro_stringify): Likewise.
2109 * macrotab.c (fixup_definition): Update.
2110
14d960c8
SM
21112020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2112
2113 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2114 (lex_one_token): Update.
2115 * macroexp.c (struct macro_buffer) <release>: Return
2116 gdb::unique_xmalloc_ptr<char>.
2117 (macro_stringify): Update.
2118 (macro_expand): Update.
2119 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2120 * macroexp.h (macro_expand_next): Likewise.
2121
211d5b1c
SM
21222020-07-02 Simon Marchi <simon.marchi@efficios.com>
2123
2124 * macroexp.h (macro_lookup_ftype): Remove.
2125 (macro_expand, macro_expand_once, macro_expand_next): Remove
2126 lookup function parameters, add scope parameter.
2127 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2128 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2129 * macroscope.h (standard_macro_lookup): Change parameter type
2130 to macro_scope.
2131 * macroscope.c (standard_macro_lookup): Likewise.
2132 * c-exp.y (lex_one_token): Update.
2133 * macrocmd.c (macro_expand_command): Likewise.
2134 (macro_expand_once_command): Likewise.
2135
b1a35af2
SM
21362020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2137
2138 * inf-loop.c (inferior_event_handler): Remove client_data param.
2139 * inf-loop.h (inferior_event_handler): Likewise.
2140 * infcmd.c (step_1): Adjust.
2141 * infrun.c (proceed): Adjust.
2142 (fetch_inferior_event): Remove client_data param.
2143 (infrun_async_inferior_event_handler): Adjust.
2144 * infrun.h (fetch_inferior_event): Remove `void *` param.
2145 * linux-nat.c (handle_target_event): Adjust.
2146 * record-btrace.c (record_btrace_handle_async_inferior_event):
2147 Adjust.
2148 * record-full.c (record_full_async_inferior_event_handler):
2149 Adjust.
2150 * remote.c (remote_async_inferior_event_handler): Adjust.
2151
1cdf9e33
TT
21522020-07-01 Tom Tromey <tom@tromey.com>
2153
2154 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2155 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2156
32c1e210
TT
21572020-07-01 Tom Tromey <tom@tromey.com>
2158
2159 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2160 tui_gen_win_info.
2161 (tui_win_info::make_window): Merge with
2162 tui_gen_win_info::make_window.
2163 (tui_win_info::make_visible): Move from tui_gen_win_info.
2164 * tui/tui-win.c (tui_win_info::max_width): Move from
2165 tui_gen_win_info.
2166 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2167 type.
2168 <window_factory>: Likewise.
2169 * tui/tui-layout.c (tui_win_info::resize): Move from
2170 tui_gen_win_info.
2171 (make_standard_window): Change return type.
2172 (get_locator_window, tui_get_window_by_name): Likewise.
2173 (tui_layout_window::apply): Remove a cast.
2174 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2175 (struct tui_win_info): Merge with tui_gen_win_info.
2176 (struct tui_gen_win_info): Remove.
2177
a30cb6da
TT
21782020-07-01 Tom Tromey <tom@tromey.com>
2179
2180 * tui/tui-stack.h (struct tui_locator_window): Derive from
2181 tui_win_info.
2182 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2183 <can_box>: New method.
2184
1eb2161f
TT
21852020-07-01 Tom Tromey <tom@tromey.com>
2186
2187 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2188
7134f2eb
TT
21892020-07-01 Tom Tromey <tom@tromey.com>
2190
2191 * tui/tui-regs.c (tui_data_window::display_registers_from)
2192 (tui_data_window::display_registers_from)
2193 (tui_data_window::first_data_item_displayed)
2194 (tui_data_window::delete_data_content_windows): Update.
2195 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2196 Remove.
2197 (tui_data_window::check_register_values): Update.
2198 (tui_data_item_window::rerender): Add parameters. Update.
2199 (tui_data_item_window::refresh_window): Remove.
2200 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2201 virtual.
2202 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2203 tui_gen_win_info.
2204 <refresh_window, max_height, min_height>: Remove.
2205 <rerender>: Add parameters.
2206 <x, y, visible>: New members.
2207 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2208 <m_item_width>: New member.
2209
22b7b041
TT
22102020-07-01 Tom Tromey <tom@tromey.com>
2211
2212 * tui/tui-regs.c (tui_data_window::show_register_group)
2213 (tui_data_window::check_register_values): Update.
2214 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2215 from item_no.
2216
c9753adb
TT
22172020-07-01 Tom Tromey <tom@tromey.com>
2218
2219 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2220 useless "if".
2221
9ab26b4a
TT
22222020-07-01 Tom Tromey <tom@tromey.com>
2223
2224 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2225 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2226
e555083f
TT
22272020-07-01 Tom Tromey <tom@tromey.com>
2228
2229 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2230 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2231 (struct tui_line_or_address): Move from tui-data.h.
2232 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2233 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2234 (tui_cmd_window, tui_source_window_base, tui_source_window)
2235 (tui_disasm_window): Don't declare.
2236 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2237 to tui-winsource.h.
2238 (SINGLE_KEY): Move to tui-stack.c.
2239
7a02bab7
TT
22402020-07-01 Tom Tromey <tom@tromey.com>
2241
2242 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2243 std::string.
2244 * tui/tui-regs.c (class tab_expansion_file): New.
2245 (tab_expansion_file::write): New method.
2246 (tui_register_format): Change return type. Use
2247 tab_expansion_file.
2248 (tui_get_register, tui_data_window::display_registers_from)
2249 (tui_data_item_window::rerender): Update.
2250 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2251 * tui/tui-io.c (tui_expand_tabs): Remove.
2252
ea68593b
TT
22532020-07-01 Tom Tromey <tom@tromey.com>
2254
2255 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2256
a8caed5d
FS
22572020-07-01 Fangrui Song <maskray@google.com>
2258
2259 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2260
9cdf9820
AKS
22612020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2262
2263 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2264 forms for DW_AT_associated and DW_AT_allocated attributes,
2265 which is already checked in function attr_to_dynamic_prop.
2266
a1520ad8
TT
22672020-06-30 Tom Tromey <tromey@adacore.com>
2268
2269 * dwarf2/read.c (quirk_rust_enum): Correctly call
2270 alloc_rust_variant for default-less enum.
2271
5ac58899
TT
22722020-06-30 Tom Tromey <tromey@adacore.com>
2273
2274 PR build/26183:
2275 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2276 gdb::to_string.
2277
19b187a9
SM
22782020-06-29 Simon Marchi <simon.marchi@efficios.com>
2279
2280 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2281 * gdbarch.h: Re-generate.
2282
cd4c4c07
TT
22832020-06-28 Tom Tromey <tom@tromey.com>
2284
2285 * command.h (cmd_types): Remove.
2286 (cmd_type): Don't declare.
2287 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2288 typedef.
2289 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2290 * cli/cli-decode.c (cmd_type): Remove.
2291
05779d57
PA
22922020-06-27 Pedro Alves <palves@redhat.com>
2293
2294 * fork-child.c (prefork_hook): Adjust.
2295 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2296 Delete.
2297 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2298 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2299 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2300 Remove declarations.
2301 (struct inferior) <set_tty, tty>: New methods.
2302 (struct inferior) <terminal>: Rename to ...
2303 (struct inferior) <m_terminal>: ... this and make private.
2304 * main.c (captured_main_1): Adjust.
2305 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2306 (mi_cmd_inferior_tty_show): Adjust.
2307 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2308 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2309
1776e3e5
NA
23102020-06-26 Nick Alcock <nick.alcock@oracle.com>
2311
2312 * configure.ac: Add --enable-libctf: handle --disable-static
2313 properly.
2314 * acinclude.m4: sinclude ../config/enable.m4.
2315 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2316 (LIBCTF): Substitute in.
2317 (CTF_DEPS): New, likewise.
2318 (CLIBS): libctf needs symbols from libbfd: move earlier.
2319 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2320 flags.
2321 * ctfread.c: Surround in ENABLE_LIBCTF.
2322 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2323 * configure: Regenerate.
2324 * config.in: Likewise.
2325
58373b80
SM
23262020-06-25 Simon Marchi <simon.marchi@efficios.com>
2327
2328 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2329
277474ee
SM
23302020-06-25 Simon Marchi <simon.marchi@efficios.com>
2331
2332 * inferior.h (struct inferior) <terminal>: Change type to
2333 gdb::unique_xmalloc_ptr<char>.
2334 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2335 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2336 field, adjust to unique pointer.
2337 (get_inferior_io_terminal): Adjust to unique pointer.
2338
6d74da72
AB
23392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2340
2341 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2342 registers, not just the known core set of registers.
2343
2e52d038
AB
23442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2345
2346 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2347 fflags, frm, and fcsr registers.
2348 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2349 restore groups.
2350 (riscv_tdesc_unknown_reg): New function.
2351 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2352 tdesc_use_registers.
2353 * riscv-tdep.h (struct gdbarch_tdep): Add
2354 unknown_csrs_first_regnum, unknown_csrs_count,
2355 duplicate_fflags_regnum, duplicate_frm_regnum, and
2356 duplicate_fcsr_regnum fields.
2357
be64fd07
AB
23582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2359
2360 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2361 callback, use the callback (when not null) to help number unknown
2362 registers.
2363 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2364 (tdesc_use_registers): Add extra parameter to declaration.
2365
3b9fce96
AB
23662020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2367
2368 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2369 in the file.
2370 (class riscv_pending_register_alias): Likewise.
2371 (riscv_register_feature::register_info): Change 'required_p' field
2372 to 'required', and change its type. Add 'check' member function.
2373 (riscv_register_feature::register_info::check): Define new member
2374 function.
2375 (riscv_xreg_feature): Change initialisation of 'required' field.
2376 (riscv_freg_feature): Likewise.
2377 (riscv_virtual_feature): Likewise.
2378 (riscv_csr_feature): Likewise.
2379 (riscv_check_tdesc_feature): Take extra parameter, the csr
2380 tdesc_feature, rewrite the function to use the new
2381 riscv_register_feature::register_info::check function.
2382 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2383
865bad26
AB
23842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2385
2386 * features/Makefile: Remove all references to the deleted files
2387 below.
2388 * features/riscv/32bit-csr.c: Deleted.
2389 * features/riscv/32bit-csr.xml: Deleted.
2390 * features/riscv/64bit-csr.c: Deleted.
2391 * features/riscv/64bit-csr.xml: Deleted.
2392 * features/riscv/rebuild-csr-xml.sh: Deleted.
2393
ed69cbc8
AB
23942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2395
2396 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2397 whitespace error for declaration of names member variable.
2398 (struct riscv_register_feature): Add new prefer_first_name member
2399 variable, and fix whitespace error in declaration of registers.
2400 (riscv_xreg_feature): Initialize prefer_first_name field.
2401 (riscv_freg_feature): Likewise.
2402 (riscv_virtual_feature): Likewise.
2403 (riscv_csr_feature): Likewise.
2404 (riscv_register_name): Expand on comments. Remove register name
2405 modifications for CSR and virtual registers.
2406
4445e8f5
AB
24072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2408
2409 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2410 errors.
2411
767a879e
AB
24122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2413
2414 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2415 riscv-opc.h.
2416 (class riscv_pending_register_alias): New class.
2417 (riscv_check_tdesc_feature): Take vector of pending aliases and
2418 populate it as appropriate.
2419 (riscv_setup_register_aliases): Delete.
2420 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2421 to riscv_check_tdesc_feature in all cases. Use the vector to
2422 create the register aliases.
2423
bb6e55f3
RO
24242020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2425
2426 * sol2-tdep.c (sol2_static_transform_name): Remove.
2427 (sol2_init_abi): Don't register it.
2428 * gdbarch.sh (static_transform_name): Remove.
2429 * gdbarch.c, gdbarch.h: Regenerate.
2430
2431 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2432 gdbarch_static_transform_name.
2433 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2434 * stabsread.c (define_symbol) <'X'>: Remove.
2435 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2436 handling.
2437 <'V'>: Likewise.
2438 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2439 <'S'>: Remove call to gdbarch_static_transform_name.
2440
c6d36836
RO
24412020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2442
2443 * procfs.c (procfs_pre_trace): New function.
2444 (procfs_target::create_inferior): Pass it to fork_inferior.
2445
a7e6196b
RO
24462020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2447
2448 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2449 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2450 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2451 sol2-tdep.o, sparc-sol2-tdep.o.
2452 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2453 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2454 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2455 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2456
d412e696
RO
24572020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2458
2459 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2460 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2461 Call sol2_init_abi.
2462 Remove calls to set_gdbarch_skip_solib_resolver,
2463 set_gdbarch_core_pid_to_str.
2464 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2465 (i386_sol2_static_transform_name): Remove.
2466 (i386_sol2_init_abi): Call sol2_init_abi.
2467 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2468 set_gdbarch_static_transform_name,
2469 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2470 Use sol2_sigtramp_p.
2471 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2472 (sol2_sigtramp_p): New function.
2473 (sol2_static_transform_name): New function.
2474 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2475 (sol2_init_abi): New function.
2476 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2477 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2478 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2479 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2480 (sparc_sol2_static_transform_name): Remove.
2481 (sparc32_sol2_init_abi): Call sol2_init_abi.
2482 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2483 set_gdbarch_static_transform_name,
2484 set_gdbarch_skip_solib_resolver,
2485 set_gdbarch_core_pid_to_str.
2486 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2487 (sparc_sol2_static_transform_name): Remove
2488 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2489 call sol2_sigtramp_p.
2490 (sparc64_sol2_init_abi): Call sol2_init_abi.
2491 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2492 set_gdbarch_static_transform_name,
2493 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2494
a8654e7d
PW
24952020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2496
2497 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2498 * exec.c (validate_exec_file): If from_tty, set both
2499 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2500 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2501 and from_tty, unconditionally ask a confirmation.
2502
caa7fd04
AB
25032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2504
2505 * target-descriptions.c (tdesc_architecture_name): Protect against
2506 NULL pointer dereference.
2507 (maint_print_xml_tdesc_cmd): New function.
2508 (_initialize_target_descriptions): Register new 'maint print
2509 xml-tdesc' command and give it the filename completer.
2510 * NEWS: Mention new 'maint print xml-tdesc' command.
2511
fbf42f4e
AB
25122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2513
2514 * target-descriptions.c (class tdesc_compatible_info): New class.
2515 (struct target_desc): Change type of compatible vector.
2516 (tdesc_compatible_p): Update for change in type of
2517 target_desc::compatible.
2518 (tdesc_compatible_info_list): New function.
2519 (tdesc_compatible_info_arch_name): New function.
2520 (tdesc_add_compatible): Update for change in type of
2521 target_desc::compatible.
2522 (print_c_tdesc::visit_pre): Likewise.
2523
20821f4e
AB
25242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2525
2526 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2527 whitespace to underscore.
2528 (maint_print_c_tdesc_cmd): Use fake filename for target
2529 descriptions that came from the target.
2530 (_initialize_target_descriptions): Add filename command completion
2531 for 'maint print c-tdesc'.
2532
1fb5ee62
SM
25332020-06-23 Simon Marchi <simon.marchi@efficios.com>
2534
2535 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2536 lines.
2537
fc3ecb3e
SM
25382020-06-23 Simon Marchi <simon.marchi@efficios.com>
2539
2540 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2541 lines.
2542 (dwarf2_find_location_expression): Likewise.
2543 (call_site_parameter_matches): Likewise.
2544 (dwarf2_compile_expr_to_ax): Likewise.
2545 (disassemble_dwarf_expression): Likewise.
2546 (loclist_describe_location): Likewise.
2547
236ef034
PA
25482020-06-23 Pedro Alves <palves@redhat.com>
2549
2550 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2551 progspace-and-thread.h. Include scoped-mock-context.h instead.
2552 (register_to_value_test): Use scoped_mock_context.
2553 * regcache.c: Include "scoped-mock-context.h".
2554 (cooked_read_test): Don't error out if a target is already pushed.
2555 Use scoped_mock_context. Adjust.
2556 * scoped-mock-context.h: New file.
2557
39e7ecca
AB
25582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2559
2560 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2561 initializer.
2562 (ada_language::is_string_type_p): New member function.
2563 * c-lang.c (c_language_data): Delete la_is_string_type_p
2564 initializer.
2565 (cplus_language_data): Likewise.
2566 (asm_language_data): Likewise.
2567 (minimal_language_data): Likewise.
2568 * d-lang.c (d_language_data): Likewise.
2569 * f-lang.c (f_is_string_type_p): Delete function, implementation
2570 moved to f_language::is_string_type_p.
2571 (f_language_data): Delete la_is_string_type_p initializer.
2572 (f_language::is_string_type_p): New member function,
2573 implementation from f_is_string_type_p.
2574 * go-lang.c (go_is_string_type_p): Delete function, implementation
2575 moved to go_language::is_string_type_p.
2576 (go_language_data): Delete la_is_string_type_p initializer.
2577 (go_language::is_string_type_p): New member function,
2578 implementation from go_is_string_type_p.
2579 * language.c (language_defn::is_string_type_p): Define new member
2580 function.
2581 (default_is_string_type_p): Make static, add comment copied from
2582 header file.
2583 (unknown_language_data): Delete la_is_string_type_p initializer.
2584 (unknown_language::is_string_type_p): New member function.
2585 (auto_language_data): Delete la_is_string_type_p initializer.
2586 (auto_language::is_string_type_p): New member function.
2587 * language.h (language_data): Delete la_is_string_type_p field.
2588 (language_defn::is_string_type_p): Declare new function.
2589 (default_is_string_type_p): Delete desclaration, move comment to
2590 definition.
2591 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2592 moved to m2_language::is_string_type_p.
2593 (m2_language_data): Delete la_is_string_type_p initializer.
2594 (m2_language::is_string_type_p): New member function,
2595 implementation from m2_is_string_type_p.
2596 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2597 initializer.
2598 * opencl-lang.c (opencl_language_data): Likewise.
2599 * p-lang.c (pascal_is_string_type_p): Delete function,
2600 implementation moved to pascal_language::is_string_type_p.
2601 (pascal_language_data): Delete la_is_string_type_p initializer.
2602 (pascal_language::is_string_type_p): New member function,
2603 implementation from pascal_is_string_type_p.
2604 * rust-lang.c (rust_is_string_type_p): Delete function,
2605 implementation moved to rust_language::is_string_type_p.
2606 (rust_language_data): Delete la_is_string_type_p initializer.
2607 (rust_language::is_string_type_p): New member function,
2608 implementation from rust_is_string_type_p.
2609 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2610 is_string_type_p.
2611
4ffc13fb
AB
26122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2613
2614 * ada-lang.c (ada_language_data): Delete la_print_typedef
2615 initializer.
2616 (ada_language::print_typedef): New member function.
2617 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2618 (cplus_language_data): Likewise.
2619 (asm_language_data): Likewise.
2620 (minimal_language_data): Likewise.
2621 * d-lang.c (d_language_data): Likewise.
2622 * f-lang.c (f_language_data): Likewise.
2623 (f_language::print_typedef): New member function.
2624 * go-lang.c (go_language_data): Delete la_print_typedef
2625 initializer.
2626 * language.c (language_defn::print_typedef): Define member
2627 function.
2628 (unknown_language_data): Delete la_print_typedef initializer.
2629 (unknown_language::print_typedef): New member function.
2630 (auto_language_data): Delete la_print_typedef initializer.
2631 (auto_language::print_typedef): New member function.
2632 * language.h (language_data): Delete la_print_typedef field.
2633 (language_defn::print_typedef): Declare new member function.
2634 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2635 (default_print_typedef): Delete declaration.
2636 * m2-lang.c (m2_language_data): Delete la_print_typedef
2637 initializer.
2638 (m2_language::print_typedef): New member function.
2639 * objc-lang.c (objc_language_data): Delete la_print_typedef
2640 initializer.
2641 * opencl-lang.c (opencl_language_data): Likewise.
2642 * p-lang.c (pascal_language_data): Likewise.
2643 (pascal_language::print_typedef): New member function.
2644 * rust-lang.c (rust_print_typedef): Delete function,
2645 implementation moved to rust_language::print_typedef.
2646 (rust_language): Delete la_print_typedef initializer.
2647 (rust_language::print_typedef): New member function,
2648 implementation from rust_print_typedef.
2649 * typeprint.c (default_print_typedef): Delete.
2650
d711ee67
AB
26512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2652
2653 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2654 (ada_language::printstr): New member function.
2655 * c-lang.c (c_language_data): Delete la_printstr initializer.
2656 (cplus_language_data): Likewise.
2657 (asm_language_data): Likewise.
2658 (minimal_language_data): Likewise.
2659 * d-lang.c (d_language_data): Likewise.
2660 * f-lang.c (f_printstr): Rename to f_language::printstr.
2661 (f_language_data): Delete la_printstr initializer.
2662 (f_language::printstr): New member function, implementation from
2663 f_printstr.
2664 * go-lang.c (go_language_data): Delete la_printstr initializer.
2665 * language.c (language_defn::printstr): Define new member
2666 function.
2667 (unk_lang_printstr): Delete.
2668 (unknown_language_data): Delete la_printstr initializer.
2669 (unknown_language::printstr): New member function.
2670 (auto_language_data): Delete la_printstr initializer.
2671 (auto_language::printstr): New member function.
2672 * language.h (language_data): Delete la_printstr field.
2673 (language_defn::printstr): Declare new member function.
2674 (LA_PRINT_STRING): Update call to printstr.
2675 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2676 (m2_language_data): Delete la_printstr initializer.
2677 (m2_language::printstr): New member function, implementation from
2678 m2_printstr.
2679 * objc-lang.c (objc_language_data): Delete la_printstr
2680 initializer.
2681 * opencl-lang.c (opencl_language_data): Likewise.
2682 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2683 (pascal_language_data): Delete la_printstr initializer.
2684 (pascal_language::printstr): New member function, implementation
2685 from pascal_printstr.
2686 * p-lang.h (pascal_printstr): Delete declaration.
2687 * rust-lang.c (rust_printstr): Update header comment.
2688 (rust_language_data): Delete la_printstr initializer.
2689 (rust_language::printstr): New member function.
2690
52b50f2c
AB
26912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2692
2693 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2694 (ada_language::printchar): New member function.
2695 * c-lang.c (c_language_data): Delete la_printchar 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_printchar): Rename to f_language::printchar.
2701 (f_language_data): Delete la_printchar initializer.
2702 (f_language::printchar): New member function, implementation from
2703 f_printchar.
2704 * go-lang.c (go_language_data): Delete la_printchar initializer.
2705 * language.c (unk_lang_printchar): Delete.
2706 (language_defn::printchar): Define new member function.
2707 (unknown_language_data): Delete la_printchar initializer.
2708 (unknown_language::printchar): New member function.
2709 (auto_language_data): Delete la_printchar initializer.
2710 (auto_language::printchar): New member function.
2711 * language.h (language_data): Delete la_printchar field.
2712 (language_defn::printchar): Declare new member function.
2713 (LA_PRINT_CHAR): Update call to printchar.
2714 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2715 (m2_language::printchar): New member function.
2716 * objc-lang.c (objc_language_data): Delete la_printchar
2717 initializer.
2718 * opencl-lang.c (opencl_language_data): Likewise.
2719 * p-lang.c (pascal_language_data): Delete la_printchar
2720 initializer.
2721 (pascal_language::printchar): New member function.
2722 * rust-lang.c (rust_printchar): Rename to
2723 rust_language::printchar.
2724 (rust_language_data): Delete la_printchar initializer.
2725 (rust_language::printchar): New member function, implementation
2726 from rust_printchar.
2727
ec8cec5b
AB
27282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2729
2730 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2731 (ada_language_data): Delete la_emitchar initializer.
2732 (ada_language::emitchar): New member function, implementation from
2733 emit_char.
2734 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2735 (cplus_language_data): Likewise.
2736 (asm_language_data): Likewise.
2737 (minimal_language_data): Likewise.
2738 * d-lang.c (d_language_data): Likewise.
2739 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2740 (f_language_data): Delete la_emitchar initializer.
2741 (f_language::emitchar): New member function, implementation from
2742 f_emit_char.
2743 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2744 * language.c (unk_lang_emit_char): Delete.
2745 (language_defn::emitchar): New member function definition.
2746 (unknown_language_data): Delete la_emitchar initializer.
2747 (unknown_language::emitchar): New member function.
2748 (auto_language_data): Delete la_emitchar initializer.
2749 (auto_language::emitchar): New member function.
2750 * language.h (language_data): Delete la_emitchar field.
2751 (language_defn::emitchar): New member field declaration.
2752 (LA_EMIT_CHAR): Update call to emitchar.
2753 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2754 (m2_language_data): Delete la_emitchar initializer.
2755 (m2_language::emitchar): New member function, implementation from
2756 m2_emit_char.
2757 * objc-lang.c (objc_language_data): Delete la_emitchar
2758 initializer.
2759 * opencl-lang.c (opencl_language_data): Likewise.
2760 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2761 (pascal_language_data): Delete la_emitchar initializer.
2762 (pascal_language::emitchar): New member function, implementation
2763 from pascal_emit_char.
2764 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2765 (rust_language_data): Delete la_emitchar initializer.
2766 (rust_language::emitchar): New member function, implementation
2767 from rust_emitchar.
2768
1bf9c363
AB
27692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2770
2771 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2772 (ada_language_data): Delete la_post_parser initializer.
2773 (ada_language::post_parser): New member function.
2774 * c-lang.c (c_language_data): Delete la_post_parser 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_language_data): Likewise.
2780 * go-lang.c (go_language_data): Likewise.
2781 * language.c (unknown_language_data): Likewise.
2782 (auto_language_data): Likewise.
2783 * language.h (language_data): Delete la_post_parser field.
2784 (language_defn::post_parser): New member function.
2785 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2786 * objc-lang.c (objc_language_data): Likewise.
2787 * opencl-lang.c (opencl_language_data): Likewise.
2788 * p-lang.c (pascal_language_data): Likewise.
2789 * parse.c (parse_exp_in_context): Update call to post_parser.
2790 (null_post_parser): Delete definition.
2791 * parser-defs.h (null_post_parser): Delete declaration.
2792 * rust-lang.c (rust_language_data): Delete la_post_parser
2793 initializer.
2794
87afa652
AB
27952020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2796
2797 * ada-lang.c (parse): Rename to ada_language::parser.
2798 (ada_language_data): Delete la_parser initializer.
2799 (ada_language::parser): New member function, implementation from
2800 parse.
2801 * c-lang.c (c_language_data): Delete la_parser initializer.
2802 (cplus_language_data): Likewise.
2803 (asm_language_data): Likewise.
2804 (minimal_language_data): Likewise.
2805 * d-lang.c (d_language_data): Likewise.
2806 (d_language::parser): New member function.
2807 * f-lang.c (f_language_data): Delete la_parser initializer.
2808 (f_language::parser): New member function.
2809 * go-lang.c (go_language_data): Delete la_parser initializer.
2810 (go_language::parser): New member function.
2811 * language.c (unk_lang_parser): Delete.
2812 (language_defn::parser): Define new member function.
2813 (unknown_language_data): Delete la_parser initializer.
2814 (unknown_language::parser): New member function.
2815 (auto_language_data): Delete la_parser initializer.
2816 (auto_language::parser): New member function.
2817 * language.h (language_data): Delete la_parser field.
2818 (language_defn::parser): Declare new member function.
2819 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2820 (m2_language::parser): New member function.
2821 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2822 * opencl-lang.c (opencl_language_data): Likewise.
2823 * p-lang.c (pascal_language_data): Likewise.
2824 (pascal_language::parser): New member function.
2825 * parse.c (parse_exp_in_context): Update call to parser.
2826 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2827 (rust_language::parser): New member function.
2828
37825800
AB
28292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2830
2831 * top.c (print_gdb_configuration): Print --with-python-libdir
2832 configuration value.
2833
5b860c93
PW
28342020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2835
2836 * NEWS: Mention change to the alias command.
2837
cf00cd6f
PW
28382020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2839
2840 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2841 (alias_command_completer)
2842 (make_alias_options_def_group): New functions.
2843 (alias_opts, alias_option_defs): New struct and array.
2844 (alias_usage_error): Update usage.
2845 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2846 Use option framework.
2847 (_initialize_cli_cmds): Update alias command help.
2848 Update aliases command help.
2849 (show_user):
2850 Add NULL for new default_args lookup_cmd argument.
2851 (valid_command_p): Rename to validate_aliased_command.
2852 Add NULL for new default_args lookup_cmd argument. Verify that the
2853 aliased_command has no default args.
2854 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2855 (lookup_cmd_1, lookup_cmd): New argument default_args.
2856 (add_alias_cmd):
2857 Add NULL for new default_args lookup_cmd argument.
2858 (print_help_for_command): Show default args under the layout
2859 alias some_alias = some_aliased_cmd some_alias_default_arg.
2860 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2861 xfree default_args in destructor.
2862 * cli/cli-script.c (process_next_line, do_define_command):
2863 Add NULL for new default_args lookup_cmd argument.
2864 * command.h: Declare new default_args argument in lookup_cmd
2865 and lookup_cmd_1.
2866 * completer.c (complete_line_internal_1):
2867 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2868 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2869 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2870 Likewise.
2871 * infcmd.c (_initialize_infcmd): Likewise.
2872 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2873 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2874 * python/py-param.c (add_setshow_generic): Likewise.
2875 * remote.c (_initialize_remote): Likewise.
2876 * top.c (execute_command): Prepend default_args if command has some.
2877 (set_verbose):
2878 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2879 * tracepoint.c (validate_actionline, encode_actions_1):
2880 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2881
bd920864
TBA
28822020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2883
2884 * jit.c (jit_read_descriptor): Use bool as the return type.
2885 (jit_breakpoint_re_set_internal): Use bool as the return type.
2886 Invert the return value logic; return true if the jit breakpoint
2887 has been successfully initialized.
2888 (jit_inferior_init): Update the call to
2889 jit_breakpoint_re_set_internal.
2890
f8098322
PA
28912020-06-22 Pedro Alves <palves@redhat.com>
2892
2893 PR gdb/25939
2894 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2895 Use the current inferior instead. Don't return
2896 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2897 wait again.
2898 * sol-thread.c (sol_thread_target::wait): Don't reference
2899 inferior_ptid.
2900 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2901 (sol_update_thread_list_callback): Use the current inferior's pid
2902 instead of inferior_ptid.
2903
196535a6
RO
29042020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2905
2906 * procfs.c: Cleanup many comments.
2907
2908 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2909 (AFTER_WATCHFLAG): Replace by value.
2910
2911 (MAIN_PROC_NAME_FORMAT): Inline ...
2912 (create_procinfo): ... here.
2913
2914 (procfs_debug_inferior): Remove SYS_exec handling.
2915 (syscall_is_exec): Likewise.
2916 (procfs_set_exec_trap): Likewise.
2917
2918 (syscall_is_lwp_exit): Inline in callers.
2919 (syscall_is_exit): Likewise.
2920 (syscall_is_exec): Likewise.
2921 (syscall_is_lwp_create): Likewise.
2922
2923 (invalidate_cache): Remove #if 0 code.
2924
2925 (make_signal_thread_runnable): Remove.
2926 (procfs_target::resume): Remove #if 0 code.
2927
cf6f3e86
RO
29282020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2929
2930 PR gdb/25939
2931 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2932 call ...
2933 (procfs_target::create_inferior): ... here.
2934
48e9cc84
PW
29352020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2936
2937 * exec.c (validate_exec_file): Ensure the build-id is up to
2938 date by calling reopen_exec_file (that checks file timestamp
2939 to decide to re-read the file).
2940
3922b302
PA
29412020-06-18 Pedro Alves <palves@redhat.com>
2942
2943 PR gdb/25412
2944 * gdbthread.h (delete_thread, delete_thread_silent)
2945 (find_thread_ptid): Update comments.
2946 * thread.c (current_thread_): New global.
2947 (is_current_thread): Move higher, and reimplement.
2948 (inferior_thread): Reimplement.
2949 (set_thread_exited): Use bool. Add assertions.
2950 (add_thread_silent): Simplify thread-reuse handling by always
2951 calling delete_thread.
2952 (delete_thread): Remove intro comment.
2953 (find_thread_ptid): Skip exited threads.
2954 (switch_to_thread_no_regs): Write to current_thread_.
2955 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2956 INFERIOR_PTID. Clear current_thread_.
2957
6dbdab44
PA
29582020-06-18 Pedro Alves <palves@redhat.com>
2959
2960 * aix-thread.c (pd_update): Use switch_to_thread.
2961
2da4b788
PA
29622020-06-18 Pedro Alves <palves@redhat.com>
2963
2964 * ravenscar-thread.c (ravenscar_thread_target): Update.
2965 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2966 (ravenscar_thread_target::add_active_thread): ... this. Don't
2967 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2968 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2969
50838d1b
PA
29702020-06-18 Pedro Alves <palves@redhat.com>
2971
2972 * nat/windows-nat.c (current_windows_thread): Remove.
2973 * nat/windows-nat.h (current_windows_thread): Remove.
2974 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2975 Adjust.
2976 (display_selectors): Adjust to fetch the current
2977 windows_thread_info based on inferior_ptid.
2978 (fake_create_process): No longer write to current_windows_thread.
2979 (windows_nat_target::get_windows_debug_event):
2980 Don't set inferior_ptid or current_windows_thread.
2981 (windows_nat_target::wait): Adjust to not rely on
2982 current_windows_thread.
2983 (do_initial_windows_stuff): Now a method of windows_nat_target.
2984 Switch to the last_ptid thread.
2985 (windows_nat_target::attach): Adjust.
2986 (windows_nat_target::detach): Use switch_to_no_thread instead of
2987 writing to inferior_ptid directly.
2988 (windows_nat_target::create_inferior): Adjust.
2989
31ce04e9
PA
29902020-06-18 Pedro Alves <palves@redhat.com>
2991
2992 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2993
1ee1a363
PA
29942020-06-18 Pedro Alves <palves@redhat.com>
2995
2996 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2997 after creating it, instead of writing to inferior_ptid. Don't
2998 write to inferior_ptid.
2999
6d350754
PA
30002020-06-18 Pedro Alves <palves@redhat.com>
3001
3002 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
3003
5d971d48
PA
30042020-06-18 Pedro Alves <palves@redhat.com>
3005
3006 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
3007 it, instead of writing to inferior_ptid.
3008
86e57d1b
PA
30092020-06-18 Pedro Alves <palves@redhat.com>
3010
3011 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
3012 to inferior_ptid.
3013
f2e1c129
PA
30142020-06-18 Pedro Alves <palves@redhat.com>
3015
3016 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
3017 instead of writing to inferior_ptid directly.
3018
60db1b85
PA
30192020-06-18 Pedro Alves <palves@redhat.com>
3020
3021 * corelow.c (core_target::close): Use switch_to_no_thread instead
3022 of writing to inferior_ptid directly.
3023 (add_to_thread_list, core_target_open): Use switch_to_thread
3024 instead of writing to inferior_ptid directly.
3025
fe7d6a8d
PA
30262020-06-18 Pedro Alves <palves@redhat.com>
3027
3028 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
3029 inferior_ptid.
3030 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
3031 inferior_ptid.
3032 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
3033 inferior_ptid directly.
3034 (darwin_nat_target::init_thread_list): Switch to thread, instead
3035 of writing to inferior_ptid.
3036 (darwin_nat_target::attach): Don't write to inferior_ptid.
3037 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
3038
975f8708
PA
30392020-06-18 Pedro Alves <palves@redhat.com>
3040
3041 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
3042 thread.
3043 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
3044 Instead use switch_to_thread.
3045 (gnu_nat_target::detach): Use switch_to_no_thread
3046 instead of writing to inferior_ptid directly. Used passed-in
3047 inferior instead of looking up the inferior by pid.
3048
1a204730
PA
30492020-06-18 Pedro Alves <palves@redhat.com>
3050
3051 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
3052 inferior_ptid.
3053
ebe84f23
PA
30542020-06-18 Pedro Alves <palves@redhat.com>
3055
3056 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3057 inferior_ptid.
3058 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3059 thread.
3060 (nto_procfs_target::detach): Avoid referencing
3061 inferior_ptid. Use switch_to_no_thread instead of writing to
3062 inferior_ptid directly.
3063 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3064 instead of writing to inferior_ptid directly.
3065 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3066 to thread.
3067
191f02e5
PA
30682020-06-18 Pedro Alves <palves@redhat.com>
3069
3070 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3071 after creating it, instead of writing to inferior_ptid.
3072 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3073 to inferior_ptid directly.
3074 (gdbsim_target::wait): Don't write to inferior_ptid.
3075
0ac55310
PA
30762020-06-18 Pedro Alves <palves@redhat.com>
3077
3078 * remote.c (remote_target::remote_notice_new_inferior): Use
3079 switch_to_thread instead of writing to inferior_ptid directly.
3080 (remote_target::add_current_inferior_and_thread): Use
3081 switch_to_no_thread instead of writing to inferior_ptid directly.
3082 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3083 and switch_to_thread instead of using set_current_inferior or
3084 writing to inferior_ptid directly.
3085
5233f39b
PA
30862020-06-18 Pedro Alves <palves@redhat.com>
3087
3088 * tracectf.c (ctf_target_open): Switch to added thread instead of
3089 writing to inferior_ptid directly.
3090 (ctf_target::close): Use switch_to_no_thread instead of writing to
3091 inferior_ptid directly.
3092
087e161b
PA
30932020-06-18 Pedro Alves <palves@redhat.com>
3094
3095 * tracefile-tfile.c (tfile_target_open): Don't write to
3096 inferior_ptid directly, instead switch to added thread.
3097 (tfile_target::close): Use switch_to_no_thread instead of writing
3098 to inferior_ptid directly.
3099
7fb43e53
PA
31002020-06-18 Pedro Alves <palves@redhat.com>
3101
3102 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3103 (procfs_target::detach): Use switch_to_no_thread
3104 instead of writing to inferior_ptid directly.
3105 (do_attach): Change return type to void. Switch to the added
3106 thread.
3107 (procfs_target::create_inferior): Switch to the added thread.
3108 (procfs_do_thread_registers): Don't write to inferior_ptid.
3109
18493a00
PA
31102020-06-18 Pedro Alves <palves@redhat.com>
3111
3112 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3113 of writing to inferior_ptid.
3114 (scoped_restore_exited_inferior): Delete.
3115 (handle_vfork_child_exec_or_exit): Simplify using
3116 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3117 instead of writing to inferior_ptid.
3118 (THREAD_STOPPED_BY): Delete.
3119 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3120 (thread_stopped_by_hw_breakpoint): Delete.
3121 (save_waitstatus): Use
3122 scoped_restore_current_thread+switch_to_thread, and call
3123 target_stopped_by_watchpoint instead of
3124 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3125 instead of thread_stopped_by_sw_breakpoint, and
3126 target_stopped_by_hw_breakpoint instead of
3127 thread_stopped_by_hw_breakpoint.
3128 (handle_inferior_event)
3129 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3130 inferior_ptid directly, nor
3131 set_current_inferior/set_current_program_space. Use
3132 switch_to_thread / switch_to_inferior_no_thread instead.
3133
a0776b13
PA
31342020-06-18 Pedro Alves <palves@redhat.com>
3135
3136 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3137 instead of writing to inferior_ptid.
3138
6155c136
PA
31392020-06-18 Pedro Alves <palves@redhat.com>
3140
3141 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3142 added thread.
3143 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3144 to the added thread.
3145 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3146 instead of writing to inferior_ptid.
3147
c5316fc6
PA
31482020-06-18 Pedro Alves <palves@redhat.com>
3149
3150 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3151 (register_to_value_test): Mock a program_space too. Heap-allocate
3152 the address space. Don't write to inferior_ptid. Use
3153 switch_to_thread instead.
3154
8df01799
PA
31552020-06-18 Pedro Alves <palves@redhat.com>
3156
3157 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3158 Delete.
3159 (find_signalled_thread()): New, factored out from
3160 linux_make_corefile_notes and adjusted to handle exited threads.
3161 (linux_make_corefile_notes): Adjust to use the new
3162 find_signalled_thread.
3163
41792d68
PA
31642020-06-18 Pedro Alves <palves@redhat.com>
3165
3166 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3167 of saving/restoring inferior_ptid.
3168
612f258a
TT
31692020-06-17 Tom Tromey <tom@tromey.com>
3170
3171 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3172 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3173 declare.
3174 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3175
efb763a5
SM
31762020-06-15 Simon Marchi <simon.marchi@efficios.com>
3177
3178 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3179 of partial symtabs.
3180
2951f6c0
SM
31812020-06-17 Simon Marchi <simon.marchi@efficios.com>
3182
3183 * regformats/reg-arm.dat: Remove.
3184 * regformats/reg-bfin.dat: Remove.
3185 * regformats/reg-cris.dat: Remove.
3186 * regformats/reg-crisv32.dat: Remove.
3187 * regformats/reg-m32r.dat: Remove.
3188 * regformats/reg-tilegx.dat: Remove.
3189 * regformats/reg-tilegx32.dat: Remove.
3190
7d458ea5
SM
31912020-06-17 Simon Marchi <simon.marchi@efficios.com>
3192
3193 * features/Makefile (WHICH): Remove arm files.
3194 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3195 * regformats/arm/arm-with-neon.dat: Remove.
3196 * regformats/arm/arm-with-vfpv2.dat: Remove.
3197 * regformats/arm/arm-with-vfpv3.dat: Remove.
3198
3af96c0d
SM
31992020-06-17 Simon Marchi <simon.marchi@efficios.com>
3200
3201 * features/Makefile (XMLTOC): Remove rx.xml.
3202
b25e22fd
PA
32032020-06-17 Pedro Alves <palves@redhat.com>
3204
3205 * gdbthread.h (thread_control_state) <trap_expected> Update
3206 comments.
3207
a78a19b1
AB
32082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3209
3210 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3211 ada_language::lookup_symbol_nonlocal.
3212 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3213 (ada_language::lookup_symbol_nonlocal): New member function,
3214 implementation from ada_lookup_symbol_nonlocal.
3215 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3216 initializer.
3217 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3218 initializer.
3219 (cplus_language::lookup_symbol_nonlocal): New member function.
3220 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3221 (minimal_language_data) Likewise.
3222 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3223 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3224 initializer.
3225 (d_language::lookup_symbol_nonlocal): New member function.
3226 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3227 initializer.
3228 (f_language::lookup_symbol_nonlocal): New member function.
3229 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3230 initializer.
3231 * language.c (unknown_language_data): Likewise.
3232 (auto_language_data): Likewise.
3233 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3234 field.
3235 (language_defn::lookup_symbol_nonlocal): New member function.
3236 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3237 initializer.
3238 * objc-lang.c (objc_language_data): Likewise.
3239 * opencl-lang.c (opencl_language_data): Likewise.
3240 * p-lang.c (pascal_language_data): Likewise.
3241 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3242 rust_language::lookup_symbol_nonlocal.
3243 (rust_language_data): Delete la_lookup_symbol_nonlocal
3244 initializer.
3245 (rust_language::lookup_symbol_nonlocal): New member function,
3246 implementation from rust_lookup_symbol_nonlocal.
3247 * symtab.c (lookup_symbol_aux): Update call to
3248 lookup_symbol_nonlocal.
3249 (basic_lookup_symbol_nonlocal): Rename to...
3250 (language_defn::lookup_symbol_nonlocal): ...this, and update
3251 header comment. Remove language_defn parameter, and replace with
3252 uses of `this'.
3253 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3254
ebe2334e
AB
32552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3256
3257 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3258 initializer.
3259 (ada_language::value_print_inner): New member function.
3260 * c-lang.c (c_language_data): Delete la_value_print_inner
3261 initializer.
3262 (cplus_language_data): Likewise.
3263 (asm_language_data): Likewise.
3264 (minimal_language_data): Likewise.
3265 * d-lang.c (d_language_data): Likewise.
3266 (d_language::value_print_inner): New member function.
3267 * f-lang.c (f_language_data): Delete la_value_print_inner
3268 initializer.
3269 (f_language::value_print_inner): New member function.
3270 * f-lang.h (f_value_print_innner): Rename to...
3271 (f_value_print_inner): ...this (note spelling of 'inner').
3272 * f-valprint.c (f_value_print_innner): Rename to...
3273 (f_value_print_inner): ...this (note spelling of 'inner').
3274 * go-lang.c (go_language_data): Delete la_value_print_inner
3275 initializer.
3276 (go_language::value_print_inner): New member function.
3277 * language.c (language_defn::value_print_inner): Define new member
3278 function.
3279 (unk_lang_value_print_inner): Delete.
3280 (unknown_language_data): Delete la_value_print_inner initializer.
3281 (unknown_language::value_print_inner): New member function.
3282 (auto_language_data): Delete la_value_print_inner initializer.
3283 (auto_language::value_print_inner): New member function.
3284 * language.h (language_data): Delete la_value_print_inner field.
3285 (language_defn::value_print_inner): Delcare new member function.
3286 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3287 initializer.
3288 (m2_language::value_print_inner): New member function.
3289 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3290 initializer.
3291 * opencl-lang.c (opencl_language_data): Likewise.
3292 * p-lang.c (pascal_language_data): Likewise.
3293 (pascal_language::value_print_inner): New member function.
3294 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3295 initializer.
3296 (rust_language::value_print_inner): New member function.
3297 * valprint.c (do_val_print): Update call to value_print_inner.
3298
a1d1fa3e
AB
32992020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3300
3301 * ada-lang.c (ada_language_data): Delete la_value_print
3302 initializer.
3303 (ada_language::value_print): New member function.
3304 * c-lang.c (c_language_data): Delete la_value_print initializer.
3305 (cplus_language_data): Likewise.
3306 (asm_language_data): Likewise.
3307 (minimal_language_data): Likewise.
3308 * d-lang.c (d_language_data): Likewise.
3309 * f-lang.c (f_language_data): Likewise.
3310 * go-lang.c (go_language_data): Likewise.
3311 * language.c (unk_lang_value_print): Delete.
3312 (language_defn::value_print): Define new member function.
3313 (unknown_language_data): Delete la_value_print initializer.
3314 (unknown_language::value_print): New member function.
3315 (auto_language_data): Delete la_value_print initializer.
3316 (auto_language::value_print): New member function.
3317 * language.h (language_data): Delete la_value_print field.
3318 (language_defn::value_print): Declare new member function.
3319 (LA_VALUE_PRINT): Update call to value_print.
3320 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3321 * objc-lang.c (objc_language_data): Likewise.
3322 * opencl-lang.c (opencl_language_data): Likewise.
3323 * p-lang.c (pascal_language_data): Likewise.
3324 (pascal_language::value_print): New member function.
3325 * rust-lang.c (rust_language_data): Delete la_value_print
3326 initializer.
3327
f16a9f57
AB
33282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3329
3330 * ada-lang.c (ada_watch_location_expression): Rename to
3331 ada_language::watch_location_expression.
3332 (ada_language_data): Delete la_watch_location_expression
3333 initializer.
3334 (ada_language::watch_location_expression): New member function,
3335 implementation from ada_watch_location_expression.
3336 * breakpoint.c (watch_command_1): Update call to
3337 watch_location_expression.
3338 * c-lang.c (c_watch_location_expression): Rename to
3339 language_defn::watch_location_expression.
3340 (c_language_data): Delete la_watch_location_expression
3341 initializer.
3342 (cplus_language_data): Likewise.
3343 (asm_language_data): Likewise.
3344 (minimal_language_data): Likewise.
3345 * c-lang.h (c_watch_location_expression): Delete declaration.
3346 * d-lang.c (d_language_data): Delete la_watch_location_expression
3347 initializer.
3348 * f-lang.c (f_language_data): Likewise.
3349 * go-lang.c (go_language_data): Likewise.
3350 * language.c (language_defn::watch_location_expression): Member
3351 function implementation from c_watch_location_expression.
3352 (unknown_language_data): Delete la_watch_location_expression
3353 initializer.
3354 (auto_language_data): Likewise.
3355 * language.h (language_data): Delete la_watch_location_expression
3356 field.
3357 (language_defn::watch_location_expression): Declare new member
3358 function.
3359 * m2-lang.c (m2_language_data): Delete
3360 la_watch_location_expression 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 * rust-lang.c (rust_watch_location_expression): Rename to
3365 rust_language::watch_location_expression.
3366 (rust_language_data): Delete la_watch_location_expression
3367 initializer.
3368 (rust_language::watch_location_expression): New member function,
3369 implementation from rust_watch_location_expression.
3370
7e56227d
AB
33712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3372
3373 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3374 ada_language::collect_symbol_completion_matches.
3375 (ada_language_data): Delete la_collect_symbol_completion_matches
3376 initializer.
3377 (ada_language::collect_symbol_completion_matches): New member
3378 function, implementation from
3379 ada_collect_symbol_completion_matches.
3380 * c-lang.c (c_language_data): Delete
3381 la_collect_symbol_completion_matches initializer.
3382 (cplus_language_data): Likewise.
3383 (asm_language_data): Likewise.
3384 (minimal_language_data): Likewise.
3385 * d-lang.c (d_language_data): Likewise.
3386 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3387 f_language::collect_symbol_completion_matches.
3388 (f_language_data): Delete la_collect_symbol_completion_matches
3389 initializer.
3390 (f_language::collect_symbol_completion_matches) New member
3391 function, implementation from f_collect_symbol_completion_matches.
3392 * go-lang.c (go_language_data): Delete
3393 la_collect_symbol_completion_matches initializer.
3394 * language.c (unknown_language_data): Likewise.
3395 (auto_language_data): Likewise.
3396 * language.h (language_data): Delete
3397 la_collect_symbol_completion_matches field.
3398 (language_defn::collect_symbol_completion_matches): New member
3399 function.
3400 * m2-lang.c (m2_language_data): Delete
3401 la_collect_symbol_completion_matches initializer.
3402 * objc-lang.c (objc_language_data): Likewise.
3403 * opencl-lang.c (opencl_language_data): Likewise.
3404 * p-lang.c (pascal_language_data): Likewise.
3405 * rust-lang.c (rust_language_data): Likewise.
3406 * symtab.c (default_collect_symbol_completion_matches): Delete.
3407 (collect_symbol_completion_matches): Update call to
3408 collect_symbol_completion_matches.
3409 (collect_symbol_completion_matches_type): Likewise.
3410 * symtab.h (default_collect_symbol_completion_matches): Delete
3411 declaration.
3412
53fc67f8
AB
34132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3414
3415 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3416 (ada_language_data): Delete la_word_break_characters initializer.
3417 (ada_language::word_break_characters): New member function.
3418 * c-lang.c (c_language_data): Delete la_word_break_characters
3419 initializer.
3420 (cplus_language_data): Likewise.
3421 (asm_language_data): Likewise.
3422 (minimal_language_data): Likewise.
3423 * completer.c: Update global comment.
3424 (advance_to_expression_complete_word_point): Update call to
3425 word_break_characters.
3426 (complete_files_symbols): Likewise.
3427 (complete_line_internal_1): Likewise.
3428 (default_completer_handle_brkchars): Likewise.
3429 (skip_quoted_chars): Likewise.
3430 * d-lang.c (d_language_data): Delete la_word_break_characters
3431 initializer.
3432 * f-lang.c (f_word_break_characters): Delete.
3433 (f_language_data): Delete la_word_break_characters initializer.
3434 (f_language::word_break_characters): New member function.
3435 * go-lang.c (go_language_data): Delete la_word_break_characters
3436 initializer.
3437 * language.c (unknown_language_data): Likewise.
3438 (auto_language_data): Likewise.
3439 * language.h (default_word_break_characters): Move declaration to
3440 earlier in the file.
3441 (language_data): Delete la_word_break_characters field.
3442 (language_defn::word_break_characters): New member function.
3443 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3444 initializer.
3445 * objc-lang.c (objc_language_data): Likewise.
3446 * opencl-lang.c (opencl_language_data): Likewise.
3447 * p-lang.c (pascal_language_data): Likewise.
3448 * rust-lang.c (rust_language_data): Likewise.
3449
c9debfb9
AB
34502020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3451
3452 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3453 (ada_language_data): Delete la_get_symbol_name_matcher
3454 initializer.
3455 (language_defn::get_symbol_name_matcher_inner): New member
3456 function.
3457 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3458 initializer.
3459 (cplus_language_data): Likewise.
3460 (cplus_language::get_symbol_name_matcher_inner): New member
3461 function.
3462 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3463 (minimal_language_data): Likewise.
3464 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3465 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3466 initializer.
3467 * dictionary.c (iter_match_first_hashed): Update call to
3468 get_symbol_name_matcher.
3469 (iter_match_next_hashed): Likewise.
3470 (iter_match_next_linear): Likewise.
3471 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3472 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3473 initializer.
3474 (f_language::get_symbol_name_matcher_inner): New member function.
3475 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3476 initializer.
3477 * language.c (default_symbol_name_matcher): Update header comment,
3478 make static.
3479 (language_defn::get_symbol_name_matcher): New definition.
3480 (language_defn::get_symbol_name_matcher_inner): Likewise.
3481 (get_symbol_name_matcher): Delete.
3482 (unknown_language_data): Delete la_get_symbol_name_matcher
3483 initializer.
3484 (auto_language_data): Likewise.
3485 * language.h (language_data): Delete la_get_symbol_name_matcher
3486 field.
3487 (language_defn::get_symbol_name_matcher): New member function.
3488 (language_defn::get_symbol_name_matcher_inner): Likewise.
3489 (default_symbol_name_matcher): Delete declaration.
3490 * linespec.c (find_methods): Update call to
3491 get_symbol_name_matcher.
3492 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3493 initializer.
3494 * minsyms.c (lookup_minimal_symbol): Update call to
3495 get_symbol_name_matcher.
3496 (iterate_over_minimal_symbols): Likewise.
3497 * objc-lang.c (objc_language_data): Delete
3498 la_get_symbol_name_matcher initializer.
3499 * opencl-lang.c (opencl_language_data): Likewise.
3500 * p-lang.c (pascal_language_data): Likewise.
3501 * psymtab.c (psymbol_name_matches): Update call to
3502 get_symbol_name_matcher.
3503 * rust-lang.c (rust_language_data): Delete
3504 la_get_symbol_name_matcher initializer.
3505 * symtab.c (symbol_matches_search_name): Update call to
3506 get_symbol_name_matcher.
3507 (compare_symbol_name): Likewise.
3508
9a49ad8c
AB
35092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3510
3511 * ada-lang.c (ada_language_data): Delete la_compute_program
3512 initializer.
3513 * c-lang.c (c_language_data): Likewise.
3514 (c_language::compute_program): New member function.
3515 (cplus_language_data): Delete la_compute_program initializer.
3516 (cplus_language::compute_program): New member function.
3517 (asm_language_data): Delete la_compute_program initializer.
3518 (minimal_language_data): Likewise.
3519 * c-lang.h (c_compute_program): Update comment.
3520 (cplus_compute_program): Likewise.
3521 * compile/compile-c-support.c (c_compute_program): Likewise.
3522 (cplus_compute_program): Likewise.
3523 * compile/compile.c (compile_to_object): Update call to
3524 la_compute_program.
3525 * d-lang.c (d_language_data): Delete la_compute_program
3526 initializer.
3527 * f-lang.c (f_language_data): Likewise.
3528 * go-lang.c (go_language_data): Likewise.
3529 * language.c (unknown_language_data): Likewise.
3530 (auto_language_data): Likewise.
3531 * language.h (language_data): Delete la_compute_program field.
3532 (language_defn::compute_program): New member function.
3533 * m2-lang.c (m2_language_data): Delete la_compute_program
3534 initializer.
3535 * objc-lang.c (objc_language_data): Likewise.
3536 * opencl-lang.c (opencl_language_data): Likewise.
3537 * p-lang.c (pascal_language_data): Likewise.
3538 * rust-lang.c (rust_language_data): Likewise.
3539
eff93b4d
AB
35402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3541
3542 * ada-lang.c (ada_language_data) Delete
3543 la_class_name_from_physname initializer.
3544 * c-lang.c (c_language_data): Likewise.
3545 (cplus_language_data): Likewise.
3546 (cplus_language::class_name_from_physname): New member function.
3547 (asm_language_data): Delete la_class_name_from_physname
3548 initializer.
3549 (minimal_language_data): Likewise.
3550 * d-lang.c (d_language_data): Likewise.
3551 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3552 method on language_defn class.
3553 (guess_full_die_structure_name): Likewise.
3554 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3555 initializer.
3556 * go-lang.c (go_language_data): Likewise.
3557 * language.c (language_class_name_from_physname): Delete.
3558 (unk_lang_class_name): Delete.
3559 (unknown_language_data): Delete la_class_name_from_physname
3560 initializer.
3561 (auto_language_data): Likewise.
3562 * language.h (language_data): Delete la_class_name_from_physname
3563 field.
3564 (language_defn::class_name_from_physname): New function.
3565 (language_class_name_from_physname): Delete declaration.
3566 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3567 initializer.
3568 * objc-lang.c (objc_language_data): Likewise.
3569 * opencl-lang.c (opencl_language_data): Likewise.
3570 * p-lang.c (pascal_language_data): Likewise.
3571 * rust-lang.c (rust_language_data): Likewise.
3572
de543742
TT
35732020-06-16 Tom Tromey <tom@tromey.com>
3574
3575 * tui/tui-data.h (STATUS_NAME): New macro.
3576 * tui/tui-layout.c (tui_remove_some_windows)
3577 (initialize_known_windows, tui_register_window)
3578 (tui_layout_split::remove_windows, initialize_layouts)
3579 (tui_new_layout_command): Don't use hard-coded window names.
3580
a350efd4
TT
35812020-06-16 Tom Tromey <tom@tromey.com>
3582
3583 PR tui/25348:
3584 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3585 tui_initialize_readline. Only run once. Call rl_initialize.
3586 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3587 tui_initialize_readline.
3588 * tui/tui-io.c (tui_setup_io): Call
3589 tui_ensure_readline_initialized.
3590 * tui/tui-interp.c (tui_interp::init): Update.
3591
39ec0490
TT
35922020-06-16 Tom Tromey <tom@tromey.com>
3593
3594 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3595 Also preserve the status window.
3596
d2d1ea20
TT
35972020-06-16 Tom Tromey <tom@tromey.com>
3598
3599 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3600 where m_window==nullptr.
3601
66920317
TT
36022020-06-15 Tom Tromey <tromey@adacore.com>
3603
3604 * windows-nat.c (windows_nat::handle_output_debug_string):
3605 Update.
3606 (windows_nat::handle_ms_vc_exception): Update.
3607 * target.h (target_read_string): Change API.
3608 * target.c (target_read_string): Change API.
3609 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3610 Update.
3611 * solib-frv.c (frv_current_sos): Update.
3612 * solib-dsbt.c (dsbt_current_sos): Update.
3613 * solib-darwin.c (darwin_current_sos): Update.
3614 * linux-thread-db.c (inferior_has_bug): Update.
3615 * expprint.c (print_subexp_standard): Update.
3616 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3617 (ada_exception_message_1): Update.
3618
a5d871dd
TT
36192020-06-15 Tom Tromey <tromey@adacore.com>
3620
3621 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3622
670e35fa
TT
36232020-06-15 Tom Tromey <tromey@adacore.com>
3624
3625 * valprint.c (read_string): Update comment.
3626 * target.c (MIN): Remove.
3627 (target_read_string): Rewrite.
3628
f5272a3b
TT
36292020-06-15 Tom Tromey <tromey@adacore.com>
3630
3631 * corefile.c (read_memory_string): Remove.
3632 * ada-valprint.c (ada_value_print_ptr): Update.
3633 * ada-lang.h (ada_tag_name): Change return type.
3634 * ada-lang.c (type_from_tag): Update.
3635 (ada_tag_name_from_tsd): Change return type. Use
3636 target_read_string.
3637 (ada_tag_name): Likewise.
3638 * gdbcore.h (read_memory_string): Don't declare.
3639
2c074f49
HD
36402020-06-14 Hannes Domani <ssbssa@yahoo.de>
3641
3642 * symtab.c (rbreak_command): Ignore Windows drive colon.
3643
6a17d503
SM
36442020-06-12 Simon Marchi <simon.marchi@efficios.com>
3645
3646 * NEWS: Mention removed GDBserver host support.
3647
453c733f
NC
36482020-06-12 Nelson Chu <nelson.chu@sifive.com>
3649
3650 * features/riscv/rebuild-csr-xml.sh: Updated.
3651
2b4e6a3f
TT
36522020-06-11 Tom Tromey <tom@tromey.com>
3653
3654 PR gdb/18318:
3655 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3656
4412332f
JG
36572020-06-09 Jonny Grant <jg@jguk.org>
36582020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3659
3660 * main.c (captured_main_1): Don't print new line after help.
3661 (print_gdb_help): add mailing list and IRC channel information
3662 to --help. Add new lines between items in the footer. Remove
3663 quotes around bug url.
3664
2f33032a
KS
36652020-06-11 Keith Seitz <keiths@redhat.com>
3666
3667 PR gdb/21356
3668 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3669 Resolve typedefs for type length calculations.
3670
7ab96794
TV
36712020-06-10 Tom de Vries <tdevries@suse.de>
3672
3673 PR ada/24713
3674 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3675 (write_psymbols): Enable .gdb_index for ada.
3676 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3677 ada.
3678
e5f3ece2
TV
36792020-06-10 Tom de Vries <tdevries@suse.de>
3680
3681 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3682 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3683 namei" instead of "const char *name" argument.
3684 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3685 dw2_symtab_iter_init.
3686
940da03e
SM
36872020-06-08 Simon Marchi <simon.marchi@efficios.com>
3688
3689 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3690 to use type::field and field::type instead.
3691
b6cdac4b
SM
36922020-06-08 Simon Marchi <simon.marchi@efficios.com>
3693
3694 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3695 to use field::type instead.
3696
5d14b6e5
SM
36972020-06-08 Simon Marchi <simon.marchi@efficios.com>
3698
3699 * gdbtypes.h (struct field) <type, set_type>: New methods.
3700 Rename `type` field to...
3701 <m_type>: ... this. Change references throughout to use type or
3702 set_type methods.
3703 (FIELD_TYPE): Use field::type. Change call sites that modify
3704 the field's type to use field::set_type instead.
3705
3d967001
SM
37062020-06-08 Simon Marchi <simon.marchi@efficios.com>
3707
3708 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3709 to use type::index_type instead.
3710
262abc0d
SM
37112020-06-08 Simon Marchi <simon.marchi@efficios.com>
3712
3713 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3714 methods.
3715 (TYPE_INDEX_TYPE): Use type::index_type.
3716 * gdbtypes.c (create_array_type_with_stride): Likewise.
3717
82836c92
TT
37182020-06-07 Tom Tromey <tom@tromey.com>
3719
3720 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3721 parameter.
3722 (generic_value_print): Update.
3723
940dace9
AB
37242020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3725
3726 Revert commit 982a38f60b0.
3727 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3728
982a38f6
AB
37292020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3730
3731 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3732 avoid use after free.
3733
82f06518
TV
37342020-06-05 Tom de Vries <tdevries@suse.de>
3735
3736 * NEWS: Fix typos.
3737
f8c41851
SM
37382020-06-04 Simon Marchi <simon.marchi@efficios.com>
3739
3740 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3741 the per_bfd object.
3742 (dwarf2_read_debug_names): Likewise.
3743 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3744 object when re-using a per_bfd object with an index.
3745
f9b5d5ea
TV
37462020-06-03 Tom de Vries <tdevries@suse.de>
3747
3748 PR symtab/26046
3749 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3750 children for C++.
3751 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3752 DW_TAG_subprogram.
3753
f6eee2d0
AB
37542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3755
3756 * ada-lang.c (ada_language_data): Delete skip_trampoline
3757 initializer.
3758 * c-lang.c (c_language_data): Likewise.
3759 (cplus_language_data): Likewise.
3760 (cplus_language::skip_trampoline): New member function.
3761 (asm_language_data): Delete skip_trampoline initializer.
3762 (minimal_language_data): Likewise.
3763 * d-lang.c (d_language_data): Likewise.
3764 * f-lang.c (f_language_data): Likewise.
3765 * go-lang.c (go_language_data): Likewise.
3766 * language.c (unk_lang_trampoline): Delete function.
3767 (skip_language_trampoline): Update.
3768 (unknown_language_data): Delete skip_trampoline initializer.
3769 (auto_language_data): Likewise.
3770 * language.h (language_data): Delete skip_trampoline field.
3771 (language_defn::skip_trampoline): New function.
3772 * m2-lang.c (m2_language_data): Delete skip_trampoline
3773 initializer.
3774 * objc-lang.c (objc_skip_trampoline): Delete function, move
3775 implementation to objc_language::skip_trampoline.
3776 (objc_language_data): Delete skip_trampoline initializer.
3777 (objc_language::skip_trampoline): New member function with
3778 implementation from objc_skip_trampoline.
3779 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3780 initializer.
3781 * p-lang.c (pascal_language_data): Likewise.
3782 * rust-lang.c (rust_language_data): Likewise.
3783
0a50df5d
AB
37842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3785
3786 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3787 (ada_language::demangle): New member function.
3788 * c-lang.c (c_language_data): Delete la_demangle initializer.
3789 (cplus_language_data): Delete la_demangle initializer.
3790 (cplus_language::demangle): New member function.
3791 (asm_language_data): Delete la_demangle initializer.
3792 (minimal_language_data): Delete la_demangle initializer.
3793 * d-lang.c (d_language_data): Delete la_demangle initializer.
3794 (d_language::demangle): New member function.
3795 * f-lang.c (f_language_data): Delete la_demangle initializer.
3796 (f_language::demangle): New member function.
3797 * go-lang.c (go_language_data): Delete la_demangle initializer.
3798 (go_language::demangle): New member function.
3799 * language.c (language_demangle): Update.
3800 (unk_lang_demangle): Delete.
3801 (unknown_language_data): Delete la_demangle initializer.
3802 (unknown_language::demangle): New member function.
3803 (auto_language_data): Delete la_demangle initializer.
3804 (auto_language::demangle): New member function.
3805 * language.h (language_data): Delete la_demangle field.
3806 (language_defn::demangle): New function.
3807 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3808 * objc-lang.c (objc_language_data): Delete la_demangle
3809 initializer.
3810 (objc_language::demangle): New member function.
3811 * opencl-lang.c (opencl_language_data): Delete la_demangle
3812 initializer.
3813 * p-lang.c (pascal_language_data): Likewise.
3814 * rust-lang.c (rust_language_data): Likewise.
3815 (rust_language::demangle): New member function.
3816
fbfb0a46
AB
38172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3818
3819 * ada-lang.c (ada_language_data): Delete la_print_type
3820 initializer.
3821 (ada_language::print_type): New member function.
3822 * c-lang.c (c_language_data): Delete la_print_type initializer.
3823 (c_language::print_type): New member function.
3824 (cplus_language_data): Delete la_print_type initializer.
3825 (cplus_language::print_type): New member function.
3826 (asm_language_data): Delete la_print_type initializer.
3827 (asm_language::print_type): New member function.
3828 (minimal_language_data): Delete la_print_type initializer.
3829 (minimal_language::print_type): New member function.
3830 * d-lang.c (d_language_data): Delete la_print_type initializer.
3831 (d_language::print_type): New member function.
3832 * f-lang.c (f_language_data): Delete la_print_type initializer.
3833 (f_language::print_type): New member function.
3834 * go-lang.c (go_language_data): Delete la_print_type initializer.
3835 (go_language::print_type): New member function.
3836 * language.c (unk_lang_print_type): Delete.
3837 (unknown_language_data): Delete la_print_type initializer.
3838 (unknown_language::print_type): New member function.
3839 (auto_language_data): Delete la_print_type initializer.
3840 (auto_language::print_type): New member function.
3841 * language.h (language_data): Delete la_print_type field.
3842 (language_defn::print_type): New function.
3843 (LA_PRINT_TYPE): Update.
3844 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3845 (m2_language::print_type): New member function.
3846 * objc-lang.c (objc_language_data): Delete la_print_type
3847 initializer.
3848 (objc_language::print_type): New member function.
3849 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3850 to opencl_language::print_type.
3851 (opencl_language_data): Delete la_print_type initializer.
3852 (opencl_language::print_type): New member function, implementation
3853 from opencl_print_type.
3854 * p-lang.c (pascal_language_data): Delete la_print_type
3855 initializer.
3856 (pascal_language::print_type): New member function.
3857 * rust-lang.c (rust_print_type): Delete, implementation moved to
3858 rust_language::print_type.
3859 (rust_language_data): Delete la_print_type initializer.
3860 (rust_language::print_type): New member function, implementation
3861 from rust_print_type.
3862
6f827019
AB
38632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3864
3865 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3866 implementation moves to...
3867 (ada_language::sniff_from_mangled_name): ...here. Update return
3868 type.
3869 (ada_language_data): Delete la_sniff_from_mangled_name
3870 initializer.
3871 * c-lang.c (c_language_data): Likewise.
3872 (cplus_language_data): Likewise.
3873 (cplus_language::sniff_from_mangled_name): New member function,
3874 implementation taken from gdb_sniff_from_mangled_name.
3875 (asm_language_data): Delete la_sniff_from_mangled_name
3876 initializer.
3877 (minimal_language_data): Likewise.
3878 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3879 implementation moves to cplus_language::sniff_from_mangled_name.
3880 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3881 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3882 moves to...
3883 (d_language::sniff_from_mangled_name): ...here.
3884 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3885 * f-lang.c (f_language_data): Likewise.
3886 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3887 moves to...
3888 (go_language::sniff_from_mangled_name): ...here.
3889 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3890 * language.c (language_sniff_from_mangled_name): Delete.
3891 (unknown_language_data): Delete la_sniff_from_mangled_name
3892 initializer.
3893 (auto_language_data): Likewise.
3894 * language.h (language_data): Delete la_sniff_from_mangled_name
3895 field.
3896 (language_defn::sniff_from_mangled_name): New function.
3897 (language_sniff_from_mangled_name): Delete declaration.
3898 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3899 field.
3900 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3901 implementation moves to...
3902 (objc_language::sniff_from_mangled_name): ...here.
3903 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3904 * opencl-lang.c (opencl_language_data): Likewise.
3905 * p-lang.c (pascal_language_data): Likewise.
3906 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3907 implementation moves to...
3908 (rust_language::sniff_from_mangled_name): ...here.
3909 (rust_language_data): Delete la_sniff_from_mangled_name
3910 initializer.
3911 * symtab.c (symbol_find_demangled_name): Call
3912 sniff_from_mangled_name member function.
3913
fb8006fd
AB
39142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3915
3916 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3917 initializer.
3918 * c-lang.c (c_language_data): Likewise.
3919 (cplus_language_data): Likewise.
3920 (cplus_language::search_name_hash): New member function.
3921 (asm_language_data): Delete la_search_name_hash initializer.
3922 (minimal_language_data): Likewise.
3923 * d-lang.c (d_language_data): Likewise.
3924 * dictionary.c (default_search_name_hash): Rename to...
3925 (language_defn::search_name_hash): ...this.
3926 * f-lang.c (f_language_data): Likewise.
3927 (f_language::search_name_hash): New member function.
3928 * go-lang.c (go_language_data): Delete la_search_name_hash
3929 initializer.
3930 * language.c (unknown_language_data): Likewise.
3931 (auto_language_data): Likewise.
3932 * language.h (struct language_data): Delete la_search_name_hash
3933 field.
3934 (language_defn::search_name_hash): Declare new member function.
3935 (default_search_name_hash): Delete declaration.
3936 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3937 initializer.
3938 * objc-lang.c (objc_language_data): Likewise.
3939 * opencl-lang.c (opencl_language_data): Likewise.
3940 * p-lang.c (pascal_language_data): Likewise.
3941 * rust-lang.c (rust_language_data): Likewise.
3942 * symtab.c (search_name_hash): Update call.
3943
8e25bafe
AB
39442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3945
3946 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3947 initializer.
3948 * c-lang.c (class compile_instance): Declare.
3949 (c_language_data): Delete la_get_compile_instance initializer.
3950 (c_language::get_compile_instance): New member function.
3951 (cplus_language_data): Delete la_get_compile_instance initializer.
3952 (cplus_language::get_compile_instance): New member function.
3953 (asm_language_data): Delete la_get_compile_instance initializer.
3954 (minimal_language_data): Likewise.
3955 * c-lang.h (c_get_compile_context): Update comment.
3956 (cplus_get_compile_context): Update comment.
3957 * compile/compile.c (compile_to_object): Update calls, don't rely
3958 on function pointer being NULL.
3959 * d-lang.c (d_language_data): Delete la_get_compile_instance
3960 initializer.
3961 * f-lang.c (f_language_data): Likewise.
3962 * go-lang.c (go_language_data): Likewise.
3963 * language.c (unknown_language_data): Likewise.
3964 (auto_language_data): Likewise.
3965 * language.h (language_data): Delete la_get_compile_instance field.
3966 (language_defn::get_compile_instance): New member function.
3967 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3968 initializer.
3969 * objc-lang.c (objc_language_data): Likewise.
3970 * opencl-lang.c (opencl_language_data): Likewise.
3971 * p-lang.c (pascal_language_data): Likewise.
3972 * rust-lang.c (rust_language_data): Likewise.
3973
4009ee92
AB
39742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3975
3976 * ada-lang.c (ada_add_all_symbols): Update comment.
3977 (ada_iterate_over_symbols): Delete, move implementation to...
3978 (ada_language::iterate_over_symbols): ...here, a new member
3979 function, rewrite to use range based for loop.
3980 (ada_language_data): Delete la_iterate_over_symbols initializer.
3981 * c-lang.c (c_language_data): Likewise.
3982 (cplus_language_data): Likewise.
3983 (asm_language_data): Likewise.
3984 (minimal_language_data): Likewise.
3985 * d-lang.c (d_language_data): Likewise.
3986 * f-lang.c (f_language_data): Likewise.
3987 * go-lang.c (go_language_data): Likewise.
3988 * language.c (unknown_language_data): Likewise.
3989 (auto_language_data): Likewise.
3990 * language.h (language_data): Delete la_iterate_over_symbols field.
3991 (language_defn::iterate_over_symbols): New member function.
3992 (LA_ITERATE_OVER_SYMBOLS): Update.
3993 * linespec.c (iterate_over_all_matching_symtabs): Update.
3994 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3995 initializer.
3996 * objc-lang.c (objc_language_data): Likewise.
3997 * opencl-lang.c (opencl_language_data): Likewise.
3998 * p-lang.c (pascal_language_data): Likewise.
3999 * rust-lang.c (rust_language_data): Likewise.
4000
54f4ca46
AB
40012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4002
4003 * ada-lang.c (ada_language_data): Delete
4004 la_lookup_transparent_type initializer.
4005 * c-lang.c (c_language_data): Likewise.
4006 (cplus_language_data): Likewise.
4007 (cplus_language::lookup_transparent_type): New member function.
4008 (asm_language_data): Delete la_lookup_transparent_type
4009 initializer.
4010 (minimal_language_data): Likewise.
4011 * d-lang.c (d_language_data): Likewise.
4012 * f-lang.c (f_language_data): Likewise.
4013 * go-lang.c (go_language_data): Likewise.
4014 * language.c (unknown_language_data): Likewise.
4015 (auto_language_data): Likewise.
4016 * language.h (struct language_data): Delete
4017 la_lookup_transparent_type field.
4018 (language_defn::lookup_transparent_type): New member function.
4019 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
4020 initializer.
4021 * objc-lang.c (objc_language_data): Likewise.
4022 * opencl-lang.c (opencl_language_data): Likewise.
4023 * p-lang.c (pascal_language_data): Likewise.
4024 * rust-lang.c (rust_language_data): Likewise.
4025 * symtab.c (symbol_matches_domain): Update call.
4026
1fb314aa
AB
40272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4028
4029 * ada-lang.c (ada_language_arch_info): Delete function, move
4030 implementation to...
4031 (ada_language::language_arch_info): ...here, a new member
4032 function.
4033 (ada_language_data): Delete la_language_arch_info.
4034 * c-lang.c (c_language_data): Likewise.
4035 (c_language::language_arch_info): New member function.
4036 (cplus_language_arch_info): Delete function, move
4037 implementation to...
4038 (cplus_language::language_arch_info): ...here, a new member
4039 function.
4040 (cplus_language_data): Delete la_language_arch_info.
4041 (asm_language_data): Likewise.
4042 (asm_language::language_arch_info): New member function.
4043 (minimal_language_data): Delete la_language_arch_info.
4044 (minimal_language::language_arch_info): New member function.
4045 * d-lang.c (d_language_arch_info): Delete function, move
4046 implementation to...
4047 (d_language::language_arch_info): ...here, a new member
4048 function.
4049 (d_language_data): Delete la_language_arch_info.
4050 * f-lang.c (f_language_arch_info): Delete function, move
4051 implementation to...
4052 (f_language::language_arch_info): ...here, a new member
4053 function.
4054 (f_language_data): Delete la_language_arch_info.
4055 * go-lang.c (go_language_arch_info): Delete function, move
4056 implementation to...
4057 (go_language::language_arch_info): ...here, a new member
4058 function.
4059 (go_language_data): Delete la_language_arch_info.
4060 * language.c (unknown_language_data): Likewise.
4061 (unknown_language::language_arch_info): New member function.
4062 (auto_language_data): Delete la_language_arch_info.
4063 (auto_language::language_arch_info): New member function.
4064 (language_gdbarch_post_init): Update call to
4065 la_language_arch_info.
4066 * language.h (language_data): Delete la_language_arch_info
4067 function pointer.
4068 (language_defn::language_arch_info): New function.
4069 * m2-lang.c (m2_language_arch_info): Delete function, move
4070 implementation to...
4071 (m2_language::language_arch_info): ...here, a new member
4072 function.
4073 (m2_language_data): Delete la_language_arch_info.
4074 * objc-lang.c (objc_language_arch_info): Delete function, move
4075 implementation to...
4076 (objc_language::language_arch_info): ...here, a new member
4077 function.
4078 (objc_language_data): Delete la_language_arch_info.
4079 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4080 implementation to...
4081 (opencl_language::language_arch_info): ...here, a new member
4082 function.
4083 (opencl_language_data): Delete la_language_arch_info.
4084 * p-lang.c (pascal_language_arch_info): Delete function, move
4085 implementation to...
4086 (pascal_language::language_arch_info): ...here, a new member
4087 function.
4088 (pascal_language_data): Delete la_language_arch_info.
4089 * rust-lang.c (rust_language_arch_info): Delete function, move
4090 implementation to...
4091 (rust_language::language_arch_info): ...here, a new member
4092 function.
4093 (rust_language_data): Delete la_language_arch_info.
4094
48448202
AB
40952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4096
4097 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4098 initializer.
4099 * c-lang.c (c_language_data): Likewise.
4100 (cplus_language_data): Likewise.
4101 (cplus_language::pass_by_reference_info): New method.
4102 (asm_language_data): Delete la_pass_by_reference initializer.
4103 (minimal_language_data): Likewise.
4104 * cp-abi.c (cp_pass_by_reference): Remove use of
4105 default_pass_by_reference.
4106 * d-lang.c (d_language_data): Likewise.
4107 * f-lang.c (f_language_data): Likewise.
4108 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4109 default_pass_by_reference.
4110 * go-lang.c (go_language_data): Likewise.
4111 * language.c (language_pass_by_reference): Update.
4112 (default_pass_by_reference): Delete.
4113 (unknown_language_data): Delete la_pass_by_reference
4114 initializer.
4115 (auto_language_data): Likewise.
4116 * language.h (struct language_data): Delete la_pass_by_reference
4117 field.
4118 (language_defn::pass_by_reference_info): New member function.
4119 (default_pass_by_reference): Delete declaration.
4120 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4121 initializer.
4122 * objc-lang.c (objc_language_data): Likewise.
4123 * opencl-lang.c (opencl_language_data): Likewise.
4124 * p-lang.c (pascal_language_data): Likewise.
4125 * rust-lang.c (rust_language_data): Likewise.
4126
15e5fd35
AB
41272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4128
4129 * ada-lang.c (ada_read_var_value): Delete function, move
4130 implementation to...
4131 (ada_language::read_var_value): ...here.
4132 (ada_language_data): Delete la_read_var_value initializer.
4133 * c-lang.c (c_language_data): Likewise.
4134 (cplus_language_data): Likewise.
4135 (minimal_language_data): Likewise.
4136 * d-lang.c (d_language_data): Likewise.
4137 * f-lang.c (f_language_data): Likewise.
4138 * findvar.c (default_read_var_value): Rename to...
4139 (language_defn::read_var_value): ...this.
4140 * findvar.c (read_var_value): Update header comment, and change to
4141 call member function instead of function pointer.
4142 * go-lang.c (go_language_data): Likewise.
4143 * language.c (unknown_language_data): Delete la_read_var_value
4144 initializer.
4145 (auto_language_data): Likewise.
4146 * language.h (struct language_data): Delete la_read_var_value
4147 field.
4148 (language_defn::read_var_value): New member function.
4149 (default_read_var_value): Delete declaration.
4150 * m2-lang.c (m2_language_data): Delete la_read_var_value
4151 initializer.
4152 * objc-lang.c (objc_language_data): Likewise.
4153 * opencl-lang.c (opencl_language_data): Likewise.
4154 * p-lang.c (pascal_language_data): Likewise.
4155 * rust-lang.c (rust_language_data): Likewise.
4156 * value.h (default_read_var_value): Delete declaration.
4157
5bd40f2a
AB
41582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4159
4160 * ada-lang.c (ada_print_array_index): Delete function, move
4161 implementation to...
4162 (ada_language::print_array_index): ...here.
4163 (ada_language_data): Delete la_print_array_index initializer.
4164 * c-lang.c (c_language_data): Likewise.
4165 (cplus_language_data): Likewise.
4166 (minimal_language_data): Likewise.
4167 * d-lang.c (d_language_data): Likewise.
4168 * f-lang.c (f_language_data): Likewise.
4169 * go-lang.c (go_language_data): Likewise.
4170 * language.c (default_print_array_index): Delete function, move
4171 implementation to...
4172 (language_defn::print_array_index): ...here.
4173 (unknown_language_data): Delete la_print_array_index initializer.
4174 (auto_language_data): Likewise.
4175 * language.h (struct language_data): Delete la_print_array_index
4176 field.
4177 (language_defn::print_array_index): New member function.
4178 (LA_PRINT_ARRAY_INDEX): Update.
4179 (default_print_array_index): Delete declaration.
4180 * m2-lang.c (m2_language_data): Delete la_print_array_index
4181 initializer.
4182 * objc-lang.c (objc_language_data): Likewise.
4183 * opencl-lang.c (opencl_language_data): Likewise.
4184 * p-lang.c (pascal_language_data): Likewise.
4185 * rust-lang.c (rust_language_data): Likewise.
4186
0874fd07
AB
41872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4188
4189 * gdb/ada-lang.c (ada_language_defn): Convert to...
4190 (ada_language_data): ...this.
4191 (class ada_language): New class.
4192 (ada_language_defn): New static global.
4193 * gdb/c-lang.c (c_language_defn): Convert to...
4194 (c_language_data): ...this.
4195 (class c_language): New class.
4196 (c_language_defn): New static global.
4197 (cplus_language_defn): Convert to...
4198 (cplus_language_data): ...this.
4199 (class cplus_language): New class.
4200 (cplus_language_defn): New static global.
4201 (asm_language_defn): Convert to...
4202 (asm_language_data): ...this.
4203 (class asm_language): New class.
4204 (asm_language_defn): New static global.
4205 (minimal_language_defn): Convert to...
4206 (minimal_language_data): ...this.
4207 (class minimal_language): New class.
4208 (minimal_language_defn): New static global.
4209 * gdb/d-lang.c (d_language_defn): Convert to...
4210 (d_language_data): ...this.
4211 (class d_language): New class.
4212 (d_language_defn): New static global.
4213 * gdb/f-lang.c (f_language_defn): Convert to...
4214 (f_language_data): ...this.
4215 (class f_language): New class.
4216 (f_language_defn): New static global.
4217 * gdb/go-lang.c (go_language_defn): Convert to...
4218 (go_language_data): ...this.
4219 (class go_language): New class.
4220 (go_language_defn): New static global.
4221 * gdb/language.c (unknown_language_defn): Remove declaration.
4222 (current_language): Initialize to nullptr, real initialization is
4223 moved to _initialize_language.
4224 (languages): Delete global.
4225 (language_defn::languages): Define.
4226 (set_language_command): Use language_defn::languages.
4227 (set_language): Likewise.
4228 (range_error): Likewise.
4229 (language_enum): Likewise.
4230 (language_def): Likewise.
4231 (add_set_language_command): Use language_def::languages for the
4232 language list, and language_def to lookup language pointers.
4233 (skip_language_trampoline): Use language_defn::languages.
4234 (unknown_language_defn): Convert to...
4235 (unknown_language_data): ...this.
4236 (class unknown_language): New class.
4237 (unknown_language_defn): New static global.
4238 (auto_language_defn): Convert to...
4239 (auto_language_data): ...this.
4240 (class auto_language): New class.
4241 (auto_language_defn): New static global.
4242 (language_gdbarch_post_init): Use language_defn::languages.
4243 (_initialize_language): Initialize current_language.
4244 * gdb/language.h (struct language_defn): Rename to...
4245 (struct language_data): ...this.
4246 (struct language_defn): New.
4247 (auto_language_defn): Delete.
4248 (unknown_language_defn): Delete.
4249 (minimal_language_defn): Delete.
4250 (ada_language_defn): Delete.
4251 (asm_language_defn): Delete.
4252 (c_language_defn): Delete.
4253 (cplus_language_defn): Delete.
4254 (d_language_defn): Delete.
4255 (f_language_defn): Delete.
4256 (go_language_defn): Delete.
4257 (m2_language_defn): Delete.
4258 (objc_language_defn): Delete.
4259 (opencl_language_defn): Delete.
4260 (pascal_language_defn): Delete.
4261 (rust_language_defn): Delete.
4262 * gdb/m2-lang.c (m2_language_defn): Convert to...
4263 (m2_language_data): ...this.
4264 (class m2_language): New class.
4265 (m2_language_defn): New static global.
4266 * gdb/objc-lang.c (objc_language_defn): Convert to...
4267 (objc_language_data): ...this.
4268 (class objc_language): New class.
4269 (objc_language_defn): New static global.
4270 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4271 (opencl_language_data): ...this.
4272 (class opencl_language): New class.
4273 (opencl_language_defn): New static global.
4274 * gdb/p-lang.c (pascal_language_defn): Convert to...
4275 (pascal_language_data): ...this.
4276 (class pascal_language): New class.
4277 (pascal_language_defn): New static global.
4278 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4279 language pointer, update comment format.
4280 * gdb/rust-lang.c (rust_language_defn): Convert to...
4281 (rust_language_data): ...this.
4282 (class rust_language): New class.
4283 (rust_language_defn): New static global.
4284
1313c56e
AB
42852020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4286
4287 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4288 member variable.
4289 <m_stmt_at_address>: New member variable.
4290 (lnp_state_machine::record_line): Don't record some lines, update
4291 tracking of is_stmt at the same address.
4292 (lnp_state_machine::lnp_state_machine): Initialise new member
4293 variables.
4294
b7ed9f3d
ST
42952020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4296
4297 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4298 "-include gnu-nat-mig.h".
4299 * gnu-nat-mig.h: New file.
4300 * gnu-nat.c: Include "gnu-nat-mig.h".
4301 (exc_server, msg_reply_server, notify_server,
4302 process_reply_server): Remove declarations.
4303
14a8ad62
ST
43042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4305
4306 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4307 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4308 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4309 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4310 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4311 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4312 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4313 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4314 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4315 to gnu_nat_target class.
4316 * gnu-nat.c: Likewise.
4317 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4318 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4319 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4320 object.
4321 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4322 instead of `gnu_target'.
4323
0af5e106
ST
43242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4325
4326 * i386-gnu-tdep.c: Include "gdbcore.h"
4327 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4328 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4329 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4330 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4331 i386_gnu_sigcontext_addr): New functions
4332 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4333 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4334 tdep.
4335
078f2fc9
ST
43362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4337
4338 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4339 before fork_inferior call. Avoid calling it if target_is_pushed returns
4340 true.
4341
53dff92c
ST
43422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4343
4344 * gnu-nat.h (gnu_target): New variable declaration.
4345 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4346 gnu_target.
4347 * gnu-nat.c (gnu_target): New variable.
4348 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4349 add_thread_silent, and add_thread calls.
4350 (gnu_nat_target::create_inferior): Pass gnu_target to
4351 add_thread_silent, thread_change_ptid call.
4352 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4353 call.
4354
5a8b8627
ST
43552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4356
4357 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4358 (gnu_nat_target::find_memory_regions): Remove unused
4359 `old_address' variable.
4360
366f550a
ST
43612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4362
4363 * gnu-nat.c: Include "gdbarch.h".
4364
f14871bf
ST
43652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4366
4367 * reply_mig_hack.awk (Error return): Cast function through
4368 void *, to bypass compiler function call check.
4369
c6887cfb
ST
43702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4371
4372 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4373 $(srcdir)/reply_mig_hack.awk.
4374
6930bffe
ST
43752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4376
4377 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4378
112c22ed
JG
43792020-05-30 Jonny Grant <jg@jguk.org>
4380
4381 * configure.ac (ACX_BUGURL): change bug URL to https.
4382
f68f85b5
PA
43832020-05-30 Pedro Alves <palves@redhat.com>
4384
4385 * cp-support.c (replace_typedefs_template): New.
4386 (replace_typedefs_qualified_name): Handle
4387 DEMANGLE_COMPONENT_TEMPLATE.
4388
976ca316
SM
43892020-05-29 Simon Marchi <simon.marchi@efficios.com>
4390
4391 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4392 dwarf2/index-cache.h, dwarf2/index-write.c,
4393 dwarf2/index-write.h, dwarf2/line-header.c,
4394 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4395 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4396 variables and fields from `dwarf2_per_objfile` to just
4397 `per_objfile` throughout.
4398
989ade05
SM
43992020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4400
4401 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4402 <push_dwarf_reg_entry_value>: Add comment.
4403
c47bae85
KB
44042020-05-28 Kevin Buettner <kevinb@redhat.com>
4405 Keith Seitz <keiths@redhat.com>
4406
4407 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4408 instead of PyEval_ReleaseLock.
4409 (class gdbpy_gil): Move to earlier in file.
4410 (finalize_python): Set gdb_python_initialized.
4411 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4412 when not initialized.
4413
44486dcf
SM
44142020-05-28 Simon Marchi <simon.marchi@efficios.com>
4415
4416 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4417 <push_dwarf_reg_entry_value>: Remove assert. Override
4418 per_objfile with caller_per_objfile.
4419
f030440d
TV
44202020-05-28 Tom de Vries <tdevries@suse.de>
4421
4422 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4423 PR gold/15646 workaround to symbol kind "type".
4424
f0fbb768
TT
44252020-05-27 Tom Tromey <tromey@adacore.com>
4426
4427 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4428
af0b2a3e
TT
44292020-05-27 Tom Tromey <tromey@adacore.com>
4430
4431 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4432 Use htab_find_with_hash.
4433 <add_abbrev>: Remove "abbrev_number" parameter.
4434 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4435 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4436 (hash_abbrev): Add comment.
4437 (abbrev_table::lookup_abbrev): Move to header file.
4438 (abbrev_table::read): Update.
4439
7d00ffec
TT
44402020-05-27 Tom Tromey <tromey@adacore.com>
4441
4442 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4443 method.
4444 <canonical_name>: New member.
4445 <raw_name>: Rename from "name".
4446 (partial_die_info): Initialize canonical_name.
4447 (scan_partial_symbols): Check raw_name.
4448 (partial_die_parent_scope, partial_die_full_name)
4449 (add_partial_symbol, add_partial_subprogram)
4450 (add_partial_enumeration, load_partial_dies): Use "name" method.
4451 (partial_die_info::name): New method.
4452 (partial_die_info::read, guess_partial_die_structure_name)
4453 (partial_die_info::fixup): Update.
4454
697bba18
TT
44552020-05-27 Tom Tromey <tromey@adacore.com>
4456
4457 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4458 <get_ref_die_offset>: Inline.
4459 <get_ref_die_offset_complaint>: New method.
4460 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4461 (attribute::get_ref_die_offset_complaint): Rename from
4462 get_ref_die_offset. Just issue complaint.
4463
c17ace43
HD
44642020-05-27 Hannes Domani <ssbssa@yahoo.de>
4465
4466 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4467
96445f0b
HD
44682020-05-27 Hannes Domani <ssbssa@yahoo.de>
4469
4470 * exec.c (exec_file_attach): Use errno value of first openp failure.
4471
ac637ec3
HD
44722020-05-27 Hannes Domani <ssbssa@yahoo.de>
4473
4474 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4475 Don't close thread handle.
4476
17ee85fc
TT
44772020-05-27 Tom Tromey <tom@tromey.com>
4478 Simon Marchi <simon.marchi@efficios.com>
4479
4480 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4481 shared_ptr.
4482 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4483 member.
4484 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4485 dwarf2_per_bfd_objfile_data_key>: New globals.
4486 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4487 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4488 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4489 shared.
4490 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4491 short-circuit when sharing.
4492 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4493 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4494
39b16f87
SM
44952020-05-27 Simon Marchi <simon.marchi@efficios.com>
4496
4497 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4498 to...
4499 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4500 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4501
fcf23d5b
SM
45022020-05-27 Simon Marchi <simon.marchi@efficios.com>
4503
4504 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4505 build_name_components, find_name_components_bounds>:
4506 Add per_objfile parameter.
4507 (struct mapped_index) <symbol_name_at>: Likewise.
4508 (struct mapped_debug_names): Remove constructor.
4509 <dwarf2_per_objfile>: Remove field.
4510 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4511 (mapped_index_base::find_name_components_bounds,
4512 mapped_index_base::build_name_components,
4513 dw2_expand_symtabs_matching_symbol): Likewise.
4514 (class mock_mapped_index) <symbol_name_at>: Likewise.
4515 (check_match): Likewise.
4516 (check_find_bounds_finds): Likewise.
4517 (test_mapped_index_find_name_component_bounds): Update.
4518 (CHECK_MATCH): Update.
4519 (dw2_expand_symtabs_matching): Update.
4520 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4521 per_objfile parameter.
4522 <find_vec_in_debug_names>: Likewise.
4523 <m_per_objfile>: New field.
4524 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4525 parameter.
4526 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4527 (dw2_debug_names_iterator::next): Update.
4528 (dw2_debug_names_lookup_symbol): Update.
4529 (dw2_debug_names_expand_symtabs_for_function): Update.
4530 (dw2_debug_names_map_matching_symbols): Update.
4531 (dw2_debug_names_expand_symtabs_matching): Update.
4532 (dwarf2_read_debug_names): Update.
4533
7188ed02
SM
45342020-05-27 Simon Marchi <simon.marchi@efficios.com>
4535
4536 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4537 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4538 move to dwarf2_per_objfile.
4539 <read_in_chain>: Remove.
4540 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4541 remove_all_cus, age_comp_units>: New methods.
4542 <m_dwarf2_cus>: New member.
4543 (struct dwarf2_per_cu_data) <cu>: Remove.
4544 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4545 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4546 moved to methods of dwarf2_per_objfile.
4547 (dwarf2_clear_marks): Remove.
4548 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4549 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4550 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4551 (dwarf2_per_objfile::remove_all_cus): New.
4552 (class free_cached_comp_units) <~free_cached_comp_units>:
4553 Update.
4554 (load_cu): Update.
4555 (dw2_do_instantiate_symtab): Adjust.
4556 (fill_in_sig_entry_from_dwo_entry): Adjust.
4557 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4558 (cutu_reader::cutu_reader): Likewise.
4559 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4560 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4561 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4562 and dwarf2_per_objfile::age_comp_units.
4563 (load_partial_comp_unit): Update.
4564 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4565 (process_queue): Likewise.
4566 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4567 backlink.
4568 (dwarf2_read_addr_index): Likewise.
4569 (follow_die_offset): Likewise.
4570 (dwarf2_fetch_die_loc_sect_off): Likewise.
4571 (dwarf2_fetch_constant_bytes): Likewise.
4572 (dwarf2_fetch_die_type_sect_off): Likewise.
4573 (follow_die_sig_1): Likewise.
4574 (load_full_type_unit): Likewise.
4575 (read_signatured_type): Likewise.
4576 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4577 (dwarf2_cu::~dwarf2_cu): Remove.
4578 (dwarf2_per_objfile::get_cu): New.
4579 (dwarf2_per_objfile::set_cu): New.
4580 (age_cached_comp_units): Rename to...
4581 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4582 to std::unordered_map.
4583 (free_one_cached_comp_unit): Rename to...
4584 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4585 to std::unordered_map.
4586 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4587 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4588 a dwarf2_per_objfile in data.
4589 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4590 (dwarf2_clear_marks): Remove.
4591
2e671100
SM
45922020-05-27 Simon Marchi <simon.marchi@efficios.com>
4593
4594 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4595 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4596 (init_tu_and_read_dwo_dies): Likewise.
4597 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4598 (cutu_reader::cutu_reader): Likewise.
4599 (load_partial_comp_unit): Likewise.
4600 (process_psymtab_comp_unit): Update.
4601 (build_type_psymtabs_1): Update.
4602 (process_skeletonless_type_unit): Update.
4603 (load_full_comp_unit): Update.
4604 (find_partial_die): Update.
4605 (dwarf2_read_addr_index): Update.
4606 (read_signatured_type): Update.
4607
2e6a9f79
SM
46082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4609
4610 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4611 m_header_read_in>: New fields.
4612 <get_header>: New method.
4613 * dwarf2/read.c (per_cu_header_read_in): Remove.
4614 (dwarf2_per_cu_data::get_header): New.
4615 (dwarf2_per_cu_data::addr_size): Update.
4616 (dwarf2_per_cu_data::offset_size): Update.
4617 (dwarf2_per_cu_data::ref_addr_size): Update.
4618
1b555f17
SM
46192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4620
4621 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4622 (dw2_do_instantiate_symtab): Update.
4623 (queue_and_load_all_dwo_tus): Change parameter from
4624 dwarf2_per_cu_data to dwarf2_cu.
4625 (dwarf2_fetch_die_loc_sect_off): Update.
4626 (dwarf2_fetch_constant_bytes): Update.
4627 (dwarf2_fetch_die_type_sect_off): Update.
4628
8fc0b21d
SM
46292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4630
4631 * dwarf2/read.c (process_full_comp_unit,
4632 process_full_type_unit): Remove per_cu, per_objfile paramters.
4633 Add dwarf2_cu parameter.
4634 (process_queue): Update.
4635
168c9250
SM
46362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4637
4638 * dwarf2/read.c (create_cu_from_index_list): Replace
4639 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4640 (create_cus_from_index_list): Likewise.
4641 (create_cus_from_index): Likewise.
4642 (create_signatured_type_table_from_index): Likewise.
4643 (create_cus_from_debug_names_list): Likewise.
4644 (create_cus_from_debug_names): Likewise.
4645 (dwarf2_read_gdb_index): Update.
4646 (dwarf2_read_debug_names): Update.
4647
e286671b
TT
46482020-05-27 Tom Tromey <tom@tromey.com>
4649 Simon Marchi <simon.marchi@efficios.com>
4650
4651 * dwarf2/read.h (struct dwarf2_per_objfile)
4652 <get_type_for_signatured_type, set_type_for_signatured_type>:
4653 New methods.
4654 <m_type_map>: New member.
4655 (struct signatured_type) <type>: Remove.
4656 * dwarf2/read.c
4657 (dwarf2_per_objfile::get_type_for_signatured_type,
4658 dwarf2_per_objfile::set_type_for_signatured_type): New.
4659 (get_signatured_type): Use new methods.
4660
8adb8487
TT
46612020-05-27 Tom Tromey <tom@tromey.com>
4662 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4665 (struct dwarf2_per_objfile) <type_units>: New member.
4666 <get_type_unit_group_unshareable>: New method.
4667 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4668 num_symtabs, symtabs>: Remove; move to
4669 type_unit_group_unshareable.
4670 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4671 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4672 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4673
127bbf4b
SM
46742020-05-27 Simon Marchi <simon.marchi@efficios.com>
4675
4676 * dwarf2/read.h (struct dwarf2_per_cu_data):
4677 <dwarf2_per_objfile>: Remove.
4678 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4679 dwarf2_per_objfile.
4680 (create_signatured_type_table_from_index): Likewise.
4681 (create_signatured_type_table_from_debug_names): Likewise.
4682 (create_debug_type_hash_table): Likewise.
4683 (fill_in_sig_entry_from_dwo_entry): Likewise.
4684 (create_type_unit_group): Likewise.
4685 (read_comp_units_from_section): Likewise.
4686 (create_cus_hash_table): Likewise.
4687
f6e649dd
SM
46882020-05-27 Simon Marchi <simon.marchi@efficios.com>
4689
4690 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4691 dwarf2_per_cu_data::dwarf2_per_objfile.
4692 (compute_compunit_symtab_includes): Likewise.
4693 (dwarf2_cu::start_symtab): Likewise.
4694
aa66c379
SM
46952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4696
4697 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4698 parameter.
4699 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4700 (read_namespace_alias): Update.
4701 (lookup_die_type): Update.
4702 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4703 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4704 Update.
4705 (disassemble_dwarf_expression): Update.
4706
120ce1b5
SM
47072020-05-27 Simon Marchi <simon.marchi@efficios.com>
4708
4709 * dwarf2/read.h (struct dwarf2_queue_item): Add
4710 dwarf2_per_objfile parameter, assign new parameter.
4711 <per_objfile>: New field.
4712 * dwarf2/read.c (free_one_cached_comp_unit): Add
4713 dwarf2_per_objfile parameter.
4714 (queue_comp_unit): Likewise.
4715 (dw2_do_instantiate_symtab): Update.
4716 (process_psymtab_comp_unit): Update.
4717 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4718 (process_imported_unit_die): Update.
4719 (queue_and_load_dwo_tu): Update.
4720 (follow_die_offset): Update.
4721 (follow_die_sig_1): Update.
4722
9f47c707
SM
47232020-05-27 Simon Marchi <simon.marchi@efficios.com>
4724
4725 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4726 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4727 (read_call_site_scope): Assign per_objfile.
4728 (dwarf2_per_cu_data::objfile): Remove.
4729 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4730 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4731 dwarf2_per_objfile parameter.
4732 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4733 dwarf2_per_objfile parameter.
4734 (dwarf_expr_reg_to_entry_parameter): Add output
4735 dwarf2_per_objfile parameter.
4736 (locexpr_get_frame_base): Update.
4737 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4738 <push_dwarf_reg_entry_value>: Update.
4739 <call_site_to_target_addr>: Update.
4740 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4741 parameter.
4742 (value_of_dwarf_reg_entry): Update.
4743 (rw_pieced_value): Update.
4744 (indirect_synthetic_pointer): Update.
4745 (dwarf2_evaluate_property): Update.
4746 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4747 parameter.
4748 (locexpr_read_variable): Update.
4749 (locexpr_get_symbol_read_needs): Update.
4750 (loclist_read_variable): Update.
4751
14095eb3
SM
47522020-05-27 Simon Marchi <simon.marchi@efficios.com>
4753
4754 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4755 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4756 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4757 parameter.
4758 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4759 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4760 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4761 parameter.
4762 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4763 sect_variable_value): Add dwarf2_per_objfile parameter.
4764 (class dwarf_evaluate_loc_desc) <dwarf_call,
4765 dwarf_variable_value>: Update.
4766 (fetch_const_value_from_synthetic_pointer): Add
4767 dwarf2_per_objfile parameter.
4768 (fetch_const_value_from_synthetic_pointer): Update.
4769 (coerced_pieced_ref): Update.
4770 (class symbol_needs_eval_context) <dwarf_call,
4771 dwarf_variable_value>: Update.
4772 (dwarf2_compile_expr_to_ax): Update.
4773
3c3cd3d4
SM
47742020-05-27 Simon Marchi <simon.marchi@efficios.com>
4775
4776 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4777 parameter.
4778 (dwarf2_evaluate_loc_desc_full): Update.
4779
82ca3f51
SM
47802020-05-27 Simon Marchi <simon.marchi@efficios.com>
4781
4782 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4783 parameter.
4784 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4785 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4786 dwarf2_per_objfile parameter.
4787 (decode_debug_loc_dwo_addresses): Likewise.
4788 (dwarf2_find_location_expression): Update.
4789 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4790 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4791 parameter.
4792 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4793 parameter.
4794 (locexpr_describe_location_1): Likewise.
4795 (locexpr_describe_location): Update.
4796
4b167ea1
SM
47972020-05-27 Simon Marchi <simon.marchi@efficios.com>
4798
4799 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4800 Remove.
4801 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4802 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4803 (dwarf2_compile_property_to_c): Update.
4804 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4805 use text offset from objfile.
4806 (locexpr_tracepoint_var_ref): Update.
4807 (locexpr_generate_c_location): Update.
4808 (loclist_describe_location): Update.
4809 (loclist_tracepoint_var_ref): Update.
4810 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4811 dwarf2_per_objfile parameter.
4812 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4813 use text offset from objfile.
4814 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4815
89b07335
SM
48162020-05-27 Simon Marchi <simon.marchi@efficios.com>
4817
4818 * dwarf2/expr.h (struct dwarf_expr_context)
4819 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4820 <offset>: Remove.
4821 <per_objfile>: New member.
4822 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4823 dwarf2_per_objfile parameter. Don't set offset, set
4824 per_objfile.
4825 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4826 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4827 a dwarf2_per_objfile object instead of an offset.
4828 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4829 constructor.
4830 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4831 to dwarf2_expr_executor constructor. Don't set offset.
4832 (dwarf2_fetch_cfa_info): Update.
4833 (struct dwarf2_frame_cache) <text_offset>: Remove.
4834 <per_objfile>: New field.
4835 (dwarf2_frame_cache): Update.
4836 (dwarf2_frame_prev_register): Update.
4837 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4838 <dwarf_evaluate_loc_desc>: Add constructor.
4839 (dwarf2_evaluate_loc_desc_full): Update.
4840 (dwarf2_locexpr_baton_eval): Update.
4841 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4842 Add constructor.
4843 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4844
293e7e51
SM
48452020-05-27 Simon Marchi <simon.marchi@efficios.com>
4846
4847 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4848 addr_sized_int_type>: Move to dwarf2_cu.
4849 <int_type>: Move to dwarf2_per_objfile.
4850 (struct dwarf2_per_objfile) <int_type>: Move here.
4851 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4852 addr_sized_int_type>: Move here.
4853 (read_func_scope): Update.
4854 (read_array_type): Update.
4855 (read_tag_string_type): Update.
4856 (attr_to_dynamic_prop): Update.
4857 (dwarf2_per_cu_data::int_type): Rename to...
4858 (dwarf2_per_objfile::int_type): ... this.
4859 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4860 (dwarf2_cu::addr_sized_int_type): ... this.
4861 (read_subrange_type): Update.
4862 (dwarf2_per_cu_data::addr_type): Rename to...
4863 (dwarf2_cu::addr_type): ... this.
4864 (set_die_type): Update.
4865
64874a40
SM
48662020-05-27 Simon Marchi <simon.marchi@efficios.com>
4867
4868 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4869 data through per_cu->cu.
4870
4ab09049
SM
48712020-05-27 Simon Marchi <simon.marchi@efficios.com>
4872
4873 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4874 dwarf2_per_cu_data parameter fo dwarf2_cu.
4875 (lookup_dwo_type_unit): Likewise.
4876 (read_cutu_die_from_dwo): Likewise.
4877 (lookup_dwo_unit): Likewise.
4878 (open_and_init_dwo_file): Likewise.
4879 (lookup_dwo_cutu): Likewise.
4880 (lookup_dwo_comp_unit): Likewise.
4881 (lookup_dwo_type_unit): Likewise.
4882 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4883 (cutu_reader::cutu_reader): Update.
4884
47b14e86
SM
48852020-05-27 Simon Marchi <simon.marchi@efficios.com>
4886
4887 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4888 parameter.
4889 (process_full_type_unit): Likewise.
4890 (process_queue): Update.
4891
43182c09
SM
48922020-05-27 Simon Marchi <simon.marchi@efficios.com>
4893
4894 * dwarf2/read.c (recursively_compute_inclusions): Add
4895 dwarf2_per_objfile parameter.
4896 (compute_compunit_symtab_includes): Likewise.
4897 (process_cu_includes): Update.
4898
7aa104c4
SM
48992020-05-27 Simon Marchi <simon.marchi@efficios.com>
4900
4901 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4902 parameter.
4903 (create_type_unit_group): Update.
4904 (process_psymtab_comp_unit_reader): Update.
4905 (build_type_psymtabs_reader): Update.
4906
e3beb21d
SM
49072020-05-27 Simon Marchi <simon.marchi@efficios.com>
4908
4909 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4910 object through m_this_cu->cu.
4911
d460f660
SM
49122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4913
4914 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4915 the info parameter.
4916 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4917
ab432490
SM
49182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4919
4920 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4921 per_objfile parameter.
4922 (load_full_type_unit): Add per_objfile parameter.
4923 (read_signatured_type): Likewise.
4924 (load_full_comp_unit): Likewise.
4925 (load_cu): Likewise.
4926 (dw2_do_instantiate_symtab): Likewise.
4927 (dw2_get_file_names): Likewise.
4928 (dw2_map_symtabs_matching_filename): Update.
4929 (dw_expand_symtabs_matching_file_matcher): Update.
4930 (dw2_map_symbol_filenames): Update.
4931 (process_psymtab_comp_unit): Add per_objfile parameter.
4932 (build_type_psymtabs_1): Update.
4933 (process_skeletonless_type_unit): Update.
4934 (dwarf2_build_psymtabs_hard): Update.
4935 (load_partial_comp_unit): Add per_objfile parameter.
4936 (scan_partial_symbols): Update.
4937 (load_full_comp_unit): Add per_objfile parameter.
4938 (process_imported_unit_die): Update.
4939 (create_cus_hash_table): Update.
4940 (find_partial_die): Update.
4941 (dwarf2_read_addr_index): Update.
4942 (follow_die_offset): Update.
4943 (dwarf2_fetch_die_loc_sect_off): Update.
4944 (dwarf2_fetch_constant_bytes): Update.
4945 (dwarf2_fetch_die_type_sect_off): Update.
4946 (follow_die_sig_1): Update.
4947 (load_full_type_unit): Add per_objfile parameter.
4948 (read_signatured_type): Likewise.
4949
313bad1b
SM
49502020-05-27 Simon Marchi <simon.marchi@efficios.com>
4951
4952 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4953 of objfile_name.
4954
c3699833
SM
49552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4956
4957 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4958 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4959 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4960 field.
4961 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4962 (create_cus_from_index): Update.
4963 (dwarf2_read_gdb_index): Update.
4964 (create_cus_from_debug_names): Update.
4965 (dwarf2_read_debug_names): Update.
4966 (get_abbrev_section_for_cu): Update.
4967 (create_all_comp_units): Update.
4968 (read_attribute_value): Update.
4969 (get_debug_line_section): Update.
4970 * dwarf2/index-cache.c (index_cache::store): Update.
4971 * dwarf2/index-write.c (save_gdb_index_command): Update.
4972 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4973
1859c670
SM
49742020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4975
4976 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4977 member.
4978 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4979 dwarf2_per_cu_data::per_bfd.
4980 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4981 (create_type_unit_group): Likewise.
4982 (queue_comp_unit): Remove reference to
4983 per_cu->dwarf2_per_objfile.
4984 (maybe_queue_comp_unit): Likewise.
4985 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4986 (create_cus_hash_table): Assign new field.
4987
5e22e966
SM
49882020-05-27 Simon Marchi <simon.marchi@efficios.com>
4989
4990 * dwarf2/read.c: Replace
4991 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4992 dwarf2_cu->per_objfile throughout.
4993
97a1449a
SM
49942020-05-27 Simon Marchi <simon.marchi@efficios.com>
4995
4996 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4997 parameter, don't use per_cu->dwarf2_per_objfile.
4998 (dw2_instantiate_symtab): Likewise.
4999 (dw2_find_last_source_symtab): Update.
5000 (dw2_map_expand_apply): Update.
5001 (dw2_lookup_symbol): Update.
5002 (dw2_expand_symtabs_for_function): Update.
5003 (dw2_expand_all_symtabs): Update.
5004 (dw2_expand_symtabs_with_fullname): Update.
5005 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
5006 don't use per_cu->dwarf2_per_objfile.
5007 (dw2_expand_marked_cus): Update.
5008 (dw2_find_pc_sect_compunit_symtab): Update.
5009 (dw2_debug_names_lookup_symbol): Update.
5010 (dw2_debug_names_expand_symtabs_for_function): Update.
5011 (dw2_debug_names_map_matching_symbols): Update.
5012 (dwarf2_psymtab::expand_psymtab): Update.
5013
9e021579
SM
50142020-05-27 Simon Marchi <simon.marchi@efficios.com>
5015
5016 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
5017 <per_objfile>: New member.
5018 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
5019 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
5020 call to dwarf2_cu.
5021 (cutu_reader::cutu_reader): Update.
5022 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
5023
ae090bdb
SM
50242020-05-27 Simon Marchi <simon.marchi@efficios.com>
5025
5026 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
5027 struct dwarf2_per_objfile.
5028 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
5029 dwarf2_per_bfd.
5030 * dwarf2/read.c (set_die_type): Update.
5031 (get_die_type_at_offset): Update.
5032
af758d11
SM
50332020-05-27 Tom Tromey <tom@tromey.com>
5034 Simon Marchi <simon.marchi@efficios.com>
5035
5036 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
5037 method.
5038 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
5039 get_symtab, set_symtab>: New methods.
5040 <m_symtabs>: New field.
5041 (struct dwarf2_psymtab): Derive from partial_symtab.
5042 <readin_p, get_compunit_symtab>: Declare methods.
5043 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
5044 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
5045 New methods.
5046 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
5047 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
5048 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
5049 (dw2_symtab_iter_next, dw2_print_stats)
5050 (dw2_expand_symtabs_with_fullname)
5051 (dw2_expand_symtabs_matching_one)
5052 (dw_expand_symtabs_matching_file_matcher)
5053 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5054 (dw2_debug_names_iterator::next)
5055 (dw2_debug_names_map_matching_symbols)
5056 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5057 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5058 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5059 New methods.
5060 (get_compunit_symtab, process_full_comp_unit)
5061 (process_full_type_unit): Update.
5062 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5063
5989a64e
SM
50642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5065
5066 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5067 then introduce a new dwarf2_per_objfile type.
5068 <read_line_string>: Move to the new dwarf2_per_objfile type.
5069 <objfile>: Likewise.
5070 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5071 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5072 dwarf2_per_objfile->per_bfd.
5073 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5074 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5075 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5076 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5077 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5078 (dwarf2_per_objfile::locate_sections): Rename to...
5079 (dwarf2_per_bfd::locate_sections): ... this.
5080 (dwarf2_per_objfile::get_cutu): Rename to...
5081 (dwarf2_per_bfd::get_cutu): ... this.
5082 (dwarf2_per_objfile::get_cu): Rename to...
5083 (dwarf2_per_bfd::get_cu): ... this.
5084 (dwarf2_per_objfile::get_tu): Rename to...
5085 (dwarf2_per_bfd::get_tu): ... this.
5086 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5087 (dwarf2_per_bfd::allocate_per_cu): ... this.
5088 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5089 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5090 (get_gdb_index_contents_ftype): Change parameter from
5091 dwarf2_per_objfile to dwarf2_per_bfd.
5092 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5093 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5094
a50264ba
TT
50952020-05-27 Tom Tromey <tom@tromey.com>
5096 Simon Marchi <simon.marchi@efficios.com>
5097
5098 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5099 (allocate_piece_closure): Set "per_objfile" member.
5100 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5101 (locexpr_describe_location, loclist_describe_location): Use new
5102 member.
5103 * dwarf2/read.c (read_call_site_scope)
5104 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5105 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5106 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5107 handle_data_member_location): Set per_objfile member.
5108 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5109 member.
5110 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5111
d3473f0c
TT
51122020-05-27 Tom Tromey <tom@tromey.com>
5113
5114 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5115 allocate_signatured_type>: Declare new methods.
5116 <m_num_psymtabs>: New member.
5117 (struct dwarf2_per_cu_data) <index>: New member.
5118 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5119 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5120 (create_cu_from_index_list): Use allocate_per_cu.
5121 (create_signatured_type_table_from_index)
5122 (create_signatured_type_table_from_debug_names)
5123 (create_debug_type_hash_table, add_type_unit)
5124 (read_comp_units_from_section): Use allocate_signatured_type.
5125
5717c425
TT
51262020-05-27 Tom Tromey <tom@tromey.com>
5127
5128 * psymtab.c (partial_map_expand_apply)
5129 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5130 (psym_lookup_global_symbol_language)
5131 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5132 (psym_print_stats, psym_expand_symtabs_for_function)
5133 (psym_map_symbol_filenames, psym_map_matching_symbols)
5134 (psym_expand_symtabs_matching)
5135 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5136 (maintenance_check_psymtabs): Update.
5137 * psympriv.h (struct partial_symtab) <readin_p,
5138 get_compunit_symtab>: Add objfile parameter.
5139 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5140 Likewise.
5141 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5142 get_compunit_symtab>: Likewise.
5143 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5144
45940949
TT
51452020-05-27 Tom Tromey <tom@tromey.com>
5146
5147 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5148 member.
5149 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5150 (create_cu_from_index_list)
5151 (create_signatured_type_table_from_index)
5152 (create_signatured_type_table_from_debug_names)
5153 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5154 (dwarf2_create_include_psymtab)
5155 (create_debug_type_hash_table, add_type_unit)
5156 (create_type_unit_group, read_comp_units_from_section)
5157 (dwarf2_compute_name, create_cus_hash_table)
5158 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5159 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5160 obstack.
5161 (dw2_get_real_path): Likewise. Change argument to
5162 dwarf2_per_objfile.
5163
f8c6d152
LM
51642020-05-27 Luis Machado <luis.machado@linaro.org>
5165
5166 PR tdep/26000
5167 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5168 for ldrd (immediate).
5169
e98d2e6d
PW
51702020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5171
5172 * command.h: Add comment giving the name of class_tui.
5173 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5174 create the fake command for the help for class_tui.
5175
53a47a3e
TT
51762020-05-26 Tom Tromey <tromey@adacore.com>
5177
5178 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5179 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5180 (val_atr): New function.
5181 (value_val_atr): Use it.
5182 * ada-valprint.c (print_optional_low_bound): Change low bound
5183 handling for enums.
5184 (val_print_packed_array_elements): Don't call discrete_position.
5185 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5186 discrete_position for enum types.
5187 * language.c (default_print_array_index): Change type.
5188 * language.h (struct language_defn) <la_print_array_index>: Add
5189 index_type parameter, change type of index_value.
5190 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5191 (default_print_array_index): Update.
5192 * valprint.c (maybe_print_array_index): Don't call
5193 value_from_longest. Update.
5194 (value_print_array_elements): Don't call discrete_position.
5195
0bc2354b
TT
51962020-05-26 Tom Tromey <tromey@adacore.com>
5197
5198 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5199 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5200
1218a4bf
CDA
52012020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5202
5203 PR gdb/13519
5204 * avr-tdep.c (avr_integer_to_address): Return data or code
5205 address accordingly to the second 'type' argument of the
5206 function.
5207
92651b1d
MW
52082020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5209
5210 * infcmd.c, inferior.h: (construct_inferior_arguments):
5211 Moved function from here to gdbsupport/common-inferior.{h,cc}
5212
0a4f5f8c
TT
52132020-05-23 Tom Tromey <tom@tromey.com>
5214
5215 Revert commit eca1f90c:
5216 * NEWS: Remove entry for completion styling.
5217 * completer.c (_rl_completion_prefix_display_length): Move
5218 declaration later.
5219 (gdb_fnprint): Revert.
5220 (gdb_display_match_list_1): Likewise.
5221 * cli/cli-style.c (completion_prefix_style)
5222 (completion_difference_style, completion_suffix_style): Remove.
5223 (_initialize_cli_style): Revert.
5224 * cli/cli-style.h (completion_prefix_style)
5225 (completion_difference_style, completion_suffix_style): Don't
5226 declare.
5227
e08bd6c5
PA
52282020-05-24 Pedro Alves <palves@redhat.com>
5229
5230 * symtab.c (completion_list_add_name): Return boolean indication
5231 of whether the symbol matched.
5232 (completion_list_add_symbol): Don't try to remove C++ aliases if
5233 the symbol didn't match in the first place.
5234 * symtab.h (completion_list_add_name): Return bool.
5235
ceacbf6e
SM
52362020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5237
5238 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5239 type::field.
5240
26f16254
JB
52412020-05-23 Joel Brobecker <brobecker@adacore.com>
5242
5243 GDB 9.2 released.
5244
eca1f90c
TT
52452020-05-23 Tom Tromey <tom@tromey.com>
5246
5247 * NEWS: Add entry for completion styling.
5248 * completer.c (_rl_completion_prefix_display_length): Move
5249 declaration earlier.
5250 (gdb_fnprint): Use completion_style.
5251 (gdb_display_match_list_1): Likewise.
5252 * cli/cli-style.c (completion_prefix_style)
5253 (completion_difference_style, completion_suffix_style): New
5254 globals.
5255 (_initialize_cli_style): Register new globals.
5256 * cli/cli-style.h (completion_prefix_style)
5257 (completion_difference_style, completion_suffix_style): Declare.
5258
51e2cfa2
PA
52592020-05-23 Pedro Alves <palves@redhat.com>
5260
5261 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5262 (parse_escape): Use ISDIGIT instead of isdigit.
5263 (puts_debug): Use gdb_isprint instead of isprint.
5264 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5265 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5266 ISSPACE instead of isspace.
5267 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5268 instead of isspace.
5269 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5270 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5271 instead of isxdigit and ISDIGIT instead of isdigit.
5272
80fc5e77
SM
52732020-05-22 Simon Marchi <simon.marchi@efficios.com>
5274
5275 * gdbtypes.h (struct type) <field>: New method.
5276 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5277 or type::field.
5278
3cabb6b0
SM
52792020-05-22 Simon Marchi <simon.marchi@efficios.com>
5280
5281 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5282 (TYPE_FIELDS): Use type::fields. Change all call sites that
5283 modify the propery to use type::set_fields instead.
5284
1f704f76
SM
52852020-05-22 Simon Marchi <simon.marchi@efficios.com>
5286
5287 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5288 type::num_fields instead.
5289
5e33d5f4
SM
52902020-05-22 Simon Marchi <simon.marchi@efficios.com>
5291
5292 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5293 methods.
5294 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5295 that modify the number of fields to use type::set_num_fields
5296 instead.
5297
9392ebb3
TT
52982020-05-22 Tom Tromey <tromey@adacore.com>
5299
5300 * compile/compile-object-load.h (munmap_list_free): Don't
5301 declare.
5302
7c13f4e8
AB
53032020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5304
5305 * annotate.c (annotate_source_line): Update return type, add call
5306 to update current symtab and line.
5307 * annotate.h (annotate_source_line): Update return type, and
5308 extend header comment.
5309 * source.c (info_line_command): Check annotation_level before
5310 calling annotate_source_line.
5311 * stack.c (print_frame_info): If calling annotate_source_line
5312 returns true, then don't print any other source line information.
5313
aa370940
SM
53142020-05-21 Simon Marchi <simon.marchi@efficios.com>
5315
5316 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5317
84d53fa9
SM
53182020-05-21 Simon Marchi <simon.marchi@efficios.com>
5319
5320 * coffread.c (patch_type): Remove NULL check before xfree.
5321 * corefile.c (set_gnutarget): Likewise.
5322 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5323 * exec.c (build_section_table): Likewise.
5324 * remote.c (remote_target::pass_signals): Likewise.
5325 * utils.c (n_spaces): Likewise.
5326 * cli/cli-script.c (document_command): Likewise.
5327 * i386-windows-tdep.c (core_process_module_section): Likewise.
5328 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5329
9d428aae
SM
53302020-05-20 Simon Marchi <simon.marchi@efficios.com>
5331
5332 * symfile.c (reread_symbols): Clear objfile's section_offsets
5333 vector and section indices, re-compute them by calling
5334 sym_offsets.
5335
250106a7
TT
53362020-05-20 Tom Tromey <tromey@adacore.com>
5337
5338 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5339 (desc_one_bound, desc_index_type): Compute field name.
250106a7 5340
9a0bacfb
TV
53412020-05-20 Tom de Vries <tdevries@suse.de>
5342
5343 PR symtab/25833
5344 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5345
7b958a48
AM
53462020-05-20 Alan Modra <amodra@gmail.com>
5347
5348 PR 25993
5349 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5350 bfd_set_filename.
5351 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5352 passed to bfd_set_filename.
5353 * symfile-mem.c (add_vsyscall_page): Likewise for string
5354 passed to symbol_file_add_from_memory.
5355 (symbol_file_add_from_memory): Make name param a const char* and
5356 don't strdup.
5357
c7e97679
AM
53582020-05-20 Alan Modra <amodra@gmail.com>
5359
5360 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5361 rather than accessing bfd->filename directly.
5362 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5363 and use bfd_section_name.
5364 * dwarf2/frame.c (decode_frame_entry): Likewise.
5365 * exec.c (exec_set_section_address): Likewise.
5366 * solib-aix.c (solib_aix_bfd_open): Likewise.
5367 * stap-probe.c (get_stap_base_address): Likewise.
5368 * symfile.c (reread_symbols): Likewise.
5369
563c591b
TT
53702020-05-19 Tom Tromey <tromey@adacore.com>
5371
5372 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5373
f408d82c
SM
53742020-05-19 Simon Marchi <simon.marchi@efficios.com>
5375
5376 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5377
98c59b52
PA
53782020-05-19 Pedro Alves <palves@redhat.com>
5379
5380 * NEWS (set exec-file-mismatch): Adjust entry.
5381 * exec.c: Include "build-id.h".
5382 (validate_exec_file): Try to match build IDs instead of filenames.
5383 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5384 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5385 and pass down 'warn_if_slow'.
5386 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5387 gdb_bfd_open_closure to pass it down.
5388 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5389
4111f652
PA
53902020-05-19 Pedro Alves <palves@redhat.com>
5391
5392 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5393 * target.c (target_fileio_open_1): Rename to target_fileio_open
5394 and make extern. Use bool.
5395 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5396 (target_fileio_read_alloc_1): Adjust.
5397 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5398 (target_fileio_open_warn_if_slow): Delete declaration.
5399
ad80db5b
PA
54002020-05-19 Pedro Alves <palves@redhat.com>
5401
5402 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5403 Adjust all callers.
5404
1d6ce4d3
YS
54052020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5406
5407 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5408 whether disp is negative.
5409
9005fbbb
SM
54102020-05-19 Simon Marchi <simon.marchi@efficios.com>
5411
5412 * symfile.h (struct symfile_segment_data)
5413 <~symfile_segment_data>: Remove.
5414 <segment_info>: Change to std::vector.
5415 * symfile.c (default_symfile_segments): Update.
5416 * elfread.c (elf_symfile_segments): Update.
5417
68b888ff
SM
54182020-05-19 Simon Marchi <simon.marchi@efficios.com>
5419
5420 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5421 <segments>: New.
5422 <segment_bases, segment_sizes>: Remove.
5423 * symfile.c (default_symfile_segments): Update.
5424 * elfread.c (elf_symfile_segments): Update.
5425 * remote.c (remote_target::get_offsets): Update.
5426 * solib-target.c (solib_target_relocate_section_addresses):
5427 Update.
5428
62982abd
SM
54292020-05-19 Simon Marchi <simon.marchi@efficios.com>
5430
5431 * symfile.h (struct symfile_segment_data): Initialize fields.
5432 <~symfile_segment_data>: Add.
5433 (symfile_segment_data_up): New.
5434 (struct sym_fns) <sym_segments>: Return a
5435 symfile_segment_data_up.
5436 (default_symfile_segments): Return a symfile_segment_data_up.
5437 (free_symfile_segment_data): Remove.
5438 (get_symfile_segment_data): Return a symfile_segment_data_up.
5439 * symfile.c (default_symfile_segments): Likewise.
5440 (get_symfile_segment_data): Likewise.
5441 (free_symfile_segment_data): Remove.
5442 (symfile_find_segment_sections): Update.
5443 * elfread.c (elf_symfile_segments): Return a
5444 symfile_segment_data_up.
5445 * remote.c (remote_target::get_offsets): Update.
5446 * solib-target.c (solib_target_relocate_section_addresses):
5447 Update.
5448 * symfile-debug.c (debug_sym_segments): Return a
5449 symfile_segment_data_up.
5450
7f204339
RO
54512020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5452
e52a0f1b
RO
5453 PR build/25981
5454 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5455 Hardcode register numbers.
5456
7f204339
RO
5457 PR build/25981
5458 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5459 procfs_find_LDT_entry): Remove.
5460 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5461 procfs_find_LDT_entry): Remove.
5462 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5463 Remove.
5464
7f32a4d5
PA
54652020-05-17 Pedro Alves <palves@redhat.com>
5466 Andrew Burgess <andrew.burgess@embecosm.com>
5467 Keno Fischer <keno@juliacomputing.com>
5468
5469 PR gdb/25741
5470 * breakpoint.c (build_target_condition_list): Update comments.
5471 (build_target_command_list): Update comments and skip matching
5472 locations.
5473 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5474 a separate function. Simplify "set breakpoint auto-hw off"
5475 handling.
5476 (insert_breakpoints): Update comment.
5477 (tracepoint_locations_match): New parameter. For breakpoints,
5478 compare location types too, if the caller wants to.
5479 (handle_automatic_hardware_breakpoints): New functions.
5480 (bp_location_is_less_than): Also sort by location type and
5481 hardware breakpoint length.
5482 (update_global_location_list): Handle "set breakpoint auto-hw on"
5483 here.
5484 (update_breakpoint_locations): Ask breakpoint_locations_match to
5485 ignore location types.
5486
7d93a1e0
SM
54872020-05-16 Simon Marchi <simon.marchi@efficios.com>
5488
5489 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5490 type::name instead.
5491
d0e39ea2
SM
54922020-05-16 Simon Marchi <simon.marchi@efficios.com>
5493
5494 * gdbtypes.h (struct type) <name, set_name>: New methods.
5495 (TYPE_CODE): Use type::name. Change all call sites used to set
5496 the name to use type::set_name instead.
5497
2dab0c7b
TT
54982020-05-16 Tom Tromey <tom@tromey.com>
5499
5500 * top.c (quit_force): Update.
5501 * infrun.c (handle_no_resumed): Update.
5502 * top.h (all_uis): New function.
5503 (ALL_UIS): Remove.
5504
59f7bd8d
SM
55052020-05-16 Simon Marchi <simon.marchi@efficios.com>
5506
5507 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5508
9bf058f0
PA
55092020-05-16 Pedro Alves <palves@redhat.com>
5510
5511 * ia64-linux-nat.c
5512 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5513 Declare method.
5514 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5515
8f86ae1a
SM
55162020-05-15 Simon Marchi <simon.marchi@efficios.com>
5517
5518 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5519 (sparc64_adi_info): Likewise.
5520
d6bc0792
TT
55212020-05-15 Tom Tromey <tom@tromey.com>
5522
5523 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5524 block_objfile.
5525 (lookup_objfile_from_block): Remove.
5526 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5527 (lookup_global_symbol): Use block_objfile.
5528 * symtab.h (lookup_objfile_from_block): Don't declare.
5529 * printcmd.c (clear_dangling_display_expressions): Use
5530 block_objfile.
5531 * parse.c (operator_check_standard): Use block_objfile.
5532
8c14c3a3
TT
55332020-05-15 Tom Tromey <tom@tromey.com>
5534
5535 * language.c (language_alloc_type_symbol): Set
5536 SYMBOL_SECTION.
5537 * symtab.c (initialize_objfile_symbol): Remove.
5538 (allocate_symbol): Remove.
5539 (allocate_template_symbol): Remove.
5540 * dwarf2/read.c (fixup_go_packaging): Use "new".
5541 (new_symbol): Use "new".
5542 (read_variable): Don't call initialize_objfile_symbol. Use
5543 "new".
5544 (read_func_scope): Use "new".
5545 * xcoffread.c (process_xcoff_symbol): Don't call
5546 initialize_objfile_symbol.
5547 (SYMBOL_DUP): Remove.
5548 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5549 "new".
5550 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5551 (allocate_template_symbol): Don't declare.
5552 (struct symbol): Add copy constructor. Change defaults.
5553 * jit.c (finalize_symtab): Use "new".
5554 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5555 Use "new".
5556 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5557 (common_block_end): Use "new".
5558 * mdebugread.c (parse_symbol): Use "new".
5559 (new_symbol): Likewise.
5560
5b4a1a8d
PW
55612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5562
5563 * NEWS: Mention changes to help and apropos.
5564
57b4f16e
PW
55652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5566
5567 * command.h (enum command_class): Improve comments, document
5568 that class_alias is for user-defined aliases, give the class
5569 name for each class, remove unused class_xdb.
5570 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5571 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5572 by a precise class.
5573 * infcmd.c (_initialize_infcmd): Likewise.
5574 * reverse.c (_initialize_reverse): Likewise.
5575 * stack.c (_initialize_stack): Likewise.
5576 * symfile.c (_initialize_symfile): Likewise.
5577 * tracepoint.c (_initialize_tracepoint): Likewise.
5578
7c05caf7
PW
55792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5580
5581 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5582 when their aliased command is traversed.
5583 (help_cmd): Add fput_command_names_styled call to
5584 output command name and aliases when command has an alias.
5585
3b3aaacb
PW
55862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5587
5588 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5589 * cli/cli-decode.c (help_cmd_list): Declare as static,
5590 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5591 a command together with the command.
5592 (fput_command_name_styled, fput_command_names_styled): New functions.
5593 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5594 fput_command_name_styled.
5595 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5596 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5597
7aa1b46f
PW
55982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5599
5600 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5601 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5602 * command.h (cmd_show_list): Likewise.
5603 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5604 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5605
89bcba74
PW
56062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5607
5608 * unittests/command-def-selftests.c (traverse_command_structure):
5609 Verify all commands of a list have the same prefix command and
5610 that only the top cmdlist commands have a null prefix.
5611
3f4d92eb
PW
56122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5613
5614 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5615 as prefix, not one of its aliases.
5616 (set_cmd_prefix): Remove.
5617 (do_add_cmd): Centralize the setting of the prefix of a command, when
5618 command is defined after its full chain of prefix commands.
5619 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5620 (add_setshow_cmd_full): Likewise.
5621 (update_prefix_field_of_prefixed_commands): New function.
5622 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5623 update_prefix_field_of_prefixed_commands.
5624 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5625 addresses of remote_set_cmdlist and remote_show_cmdlist given
5626 as argument, not the address of an argument.
5627 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5628 * gdb/remote.c (_initialize_remote): Likewise.
5629
0605465f
PW
56302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5631
5632 * cli/cli-cmds.c (alias_command): Check for an existing alias
5633 using lookup_cmd_composition, as valid_command_p is too strict
5634 and forbids aliases that are the prefix of an existing alias
5635 or command.
5636 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5637 command is properly recognised as a valid command.
5638
58e6ac70
PW
56392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5640
5641 * unittests/help-doc-selftests.c: Rename to
5642 unittests/command-def-selftests.c
5643 * unittests/command-def-selftests.c (help_doc_tests): Update some
5644 comments.
5645 (command_structure_tests, traverse_command_structure): New namespace
5646 and function.
5647 (command_structure_invariants_tests): New function.
5648 (_initialize_command_def_selftests) Renamed from
5649 _initialize_help_doc_selftests, register command_structure_invariants
5650 selftest.
5651
a7b9ceb8
PW
56522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5653
5654 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5655 an alias of 'show'.
5656
b2188a06
JB
56572020-05-15 Joel Brobecker <brobecker@adacore.com>
5658
5659 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5660 ada_is_fixed_point_type. Update all callers.
5661 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5662 all callers.
5663 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5664 Update all callers.
5665 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5666 print_fixed_point_type. Update all callers.
5667 * ada-valprint.c (ada_value_print_num): Replace call to
5668 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5669
a51951c2
KB
56702020-05-14 Kevin Buettner <kevinb@redhat.com>
5671
5672 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5673 processors.
5674 (cpu_supports_bts): Add CV_AMD case.
5675
29d6859f
LM
56762020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5677 Simon Marchi <simon.marchi@efficios.com>
5678
5679 * infrun.c (stop_all_threads): Collect multiple wait events at
5680 each pass.
5681
78134374
SM
56822020-05-14 Simon Marchi <simon.marchi@efficios.com>
5683
5684 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5685 type::code instead.
5686
67607e24
SM
56872020-05-14 Simon Marchi <simon.marchi@efficios.com>
5688
5689 * gdbtypes.h (struct type) <code, set_code>: New methods.
5690 (TYPE_CODE): Use type::code. Change all call sites used to set
5691 the code to use type::set_code instead.
5692
a05575d3
TBA
56932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5694 Tom de Vries <tdevries@suse.de>
5695 Pedro Alves <palves@redhat.com>
5696
5697 PR threads/25478
5698 * infrun.c (stop_all_threads): Do NOT ignore
5699 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5700 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5701 received.
5702 (handle_no_resumed): Remove code handling a live inferior with no
5703 threads.
5704 * remote.c (has_single_non_exited_thread): New.
5705 (remote_target::update_thread_list): Do not delete a thread if is
5706 the last thread of the process.
5707 * thread.c (thread_select): Call delete_exited_threads instead of
5708 prune_threads.
5709
6ad82919
TBA
57102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5711
5712 * infrun.c (stop_all_threads): Enable/disable thread events of all
5713 targets. Move a debug message denoting the end of the function
5714 into the SCOPED_EXIT block.
5715
d890404b
TBA
57162020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5717
5718 * process-stratum-target.h: Include <set>.
5719 (all_non_exited_process_targets, switch_to_target_no_thread): New
5720 function declarations.
5721 * process-stratum-target.c (all_non_exited_process_targets)
5722 (switch_to_target_no_thread): New function implementations.
5723
293b3ebc
TBA
57242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5725
5726 * infrun.c (handle_inferior_event): Extract out a piece of code
5727 into...
5728 (mark_non_executing_threads): ...this new function.
5729
7ca9b62a
TBA
57302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5731
5732 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5733 use.
5734
fc75c28b
TBA
57352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5736
5737 * regcache.c (regcache_read_pc_protected): New function
5738 implementation that returns 0 if the PC cannot read via
5739 'regcache_read_pc'.
5740 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5741 instead of 'regcache_read_pc'.
5742 (keep_going_pass_signal): Ditto.
5743
a89febbd
TT
57442020-05-13 Tom Tromey <tromey@adacore.com>
5745
5746 * ada-lang.c (align_value): Remove.
5747 (ada_template_to_fixed_record_type_1): Use align_up.
5748
f7e23710
TBA
57492020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5750
5751 * async-event.c: Update the copyright year.
5752 * async-event.h: Update the copyright year.
5753
02ff80c2
SM
57542020-05-12 Simon Marchi <simon.marchi@efficios.com>
5755
5756 * objfiles.h (is_addr_in_objfile,
5757 shared_objfile_contains_address_p): Return bool.
5758 * objfile.c (is_addr_in_objfile,
5759 shared_objfile_contains_address_p): Return bool.
5760
4fd6c7e8
TT
57612020-05-11 Tom Tromey <tromey@adacore.com>
5762
5763 * cli/cli-cmds.c (info_command): Restore.
5764 (_initialize_cli_cmds): Use add_prefix_command for "info".
5765 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5766
5eb68a39
TT
57672020-05-11 Tom Tromey <tromey@adacore.com>
5768
5769 * ada-lang.c (ada_value_primitive_field): Now public.
5770 * ada-lang.h (ada_value_primitive_field): Declare.
5771 * ada-valprint.c (print_field_values): Use
5772 ada_value_primitive_field for wrapper fields.
5773
7666722f
TV
57742020-05-11 Tom de Vries <tdevries@suse.de>
5775
5776 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5777 MODULE_DOMAIN.
5778
3ee6bb11
TV
57792020-05-11 Tom de Vries <tdevries@suse.de>
5780
5781 PR symtab/25941
5782 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5783 with length 0, if not gdb-produced.
5784 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5785
43434996
TV
57862020-05-09 Tom de Vries <tdevries@suse.de>
5787
5788 PR gdb/25955
5789 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5790 calculation.
5791
2f78cffc
TT
57922020-05-09 Tom Tromey <tom@tromey.com>
5793
5794 * top.c (server_command): Now bool.
5795 * top.h (server_command): Now bool.
5796
4f7bc5ed
TT
57972020-05-08 Tom Tromey <tromey@adacore.com>
5798
5799 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5800 already being processed.
5801
8be4b118
TT
58022020-05-08 Tom Tromey <tom@tromey.com>
5803
5804 * printcmd.c (struct display) <next>: Remove.
5805 <display>: New constructor.
5806 <exp_string>: Now a std::string.
5807 <enabled_p>: Now a bool.
5808 (display_number): Move definition earlier.
5809 (displays): Rename from display_chain. Now a std::vector.
5810 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5811 (display_command): Update.
5812 (do_one_display, disable_display)
5813 (enable_disable_display_command, do_enable_disable_display):
5814 Update.
5815 (free_display): Remove.
5816 (clear_displays): Rewrite.
5817 (delete_display): Update.
5818 (map_display_numbers): Use function_view. Remove "data"
5819 parameter. Update.
5820 (do_delete_display): Remove.
5821 (undisplay_command): Update.
5822 (do_one_display, do_displays, disable_display)
5823 (info_display_command): Update.
5824 (do_enable_disable_display): Remove.
5825 (enable_disable_display_command)
5826 (clear_dangling_display_expressions): Update.
5827
94c93c35
TT
58282020-05-08 Tom Tromey <tom@tromey.com>
5829
5830 * symtab.c (set_symbol_cache_size)
5831 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5832 (maintenance_print_symbol_cache_statistics): Update.
5833 * symmisc.c (print_symbol_bcache_statistics)
5834 (print_objfile_statistics, maintenance_print_objfiles)
5835 (maintenance_info_symtabs, maintenance_check_symtabs)
5836 (maintenance_expand_symtabs, maintenance_info_line_tables):
5837 Update.
5838 * symfile-debug.c (set_debug_symfile): Update.
5839 * source.c (forget_cached_source_info): Update.
5840 * python/python.c (gdbpy_progspaces): Update.
5841 * psymtab.c (maintenance_info_psymtabs): Update.
5842 * probe.c (parse_probes): Update.
5843 * linespec.c (iterate_over_all_matching_symtabs)
5844 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5845 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5846 * exec.c (exec_target::close): Update.
5847 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5848 * breakpoint.c (print_one_breakpoint_location)
5849 (create_longjmp_master_breakpoint)
5850 (create_std_terminate_master_breakpoint): Update.
5851 * progspace.c (program_spaces): Now a std::vector.
5852 (maybe_new_address_space): Update.
5853 (add_program_space): Remove.
5854 (program_space::program_space): Update.
5855 (remove_program_space): Update.
5856 (number_of_program_spaces): Remove.
5857 (print_program_space, update_address_spaces): Update.
5858 * progspace.h (program_spaces): Change type.
5859 (ALL_PSPACES): Remove.
5860 (number_of_program_spaces): Don't declare.
5861 (struct program_space) <next>: Remove.
5862
a1fd1ac9
TT
58632020-05-08 Tom Tromey <tom@tromey.com>
5864
5865 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5866 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5867 (enable_break): Update.
5868 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5869 (frv_fdpic_find_canonical_descriptor): Update.
5870 (frv_fetch_objfile_link_map): Update.
5871 * progspace.c (program_space::free_all_objfiles): Update.
5872 (program_space::solibs): New method.
5873 * progspace.h (struct program_space) <solibs>: New method.
5874 * solist.h (master_so_list): Don't declare.
5875 (ALL_SO_LIBS): Remove.
5876 * solib.h (so_list_head): Remove.
5877 (update_solib_list): Update comment.
5878 * solib.c (master_so_list): Remove.
5879 (solib_used, update_solib_list, solib_add)
5880 (info_sharedlibrary_command, clear_solib)
5881 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5882
38eae084
TT
58832020-05-08 Tom Tromey <tom@tromey.com>
5884
5885 * extension.c (extension_languages): Now a std::array.
5886 (ALL_EXTENSION_LANGUAGES): Remove.
5887 (get_ext_lang_defn, get_ext_lang_of_file)
5888 (eval_ext_lang_from_control_command): Update.
5889 (finish_ext_lang_initialization)
5890 (auto_load_ext_lang_scripts_for_objfile)
5891 (ext_lang_type_printers::ext_lang_type_printers)
5892 (apply_ext_lang_type_printers)
5893 (ext_lang_type_printers::~ext_lang_type_printers)
5894 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5895 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5896 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5897 (get_matching_xmethod_workers, ext_lang_colorize)
5898 (ext_lang_before_prompt): Update.
5899 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5900
596dc4ad
TT
59012020-05-08 Tom Tromey <tom@tromey.com>
5902
5903 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5904 overload.
5905 <swap_string, m_string>: Remove.
5906 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5907 Update.
5908 * stabsread.c (define_symbol, read_type): Update.
5909 * linespec.c (find_linespec_symbols): Update.
5910 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5911 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5912 * dbxread.c (read_dbx_symtab): Update.
5913 * cp-support.h (cp_canonicalize_string_full)
5914 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5915 Return unique_xmalloc_ptr.
5916 * cp-support.c (inspect_type): Update.
5917 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5918 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5919 Likewise.
5920 * c-typeprint.c (print_name_maybe_canonical): Update.
5921 * break-catch-throw.c (check_status_exception_catchpoint):
5922 Update.
5923
bf4cb9be
TV
59242020-05-08 Tom de Vries <tdevries@suse.de>
5925
5926 * infrun.c (follow_fork): Copy current_line and current_symtab to
5927 child thread.
5928
a1b68f28
SM
59292020-05-07 Simon Marchi <simon.marchi@efficios.com>
5930
5931 * async-event.c (struct async_signal_handler, struct
5932 async_event_handler): Reformat, remove typedef.
5933
98d48915
SM
59342020-05-07 Simon Marchi <simon.marchi@efficios.com>
5935
5936 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5937 access thistype->main_type->dyn_prop_list directly.
5938
7aa91313
SM
59392020-05-07 Simon Marchi <simon.marchi@efficios.com>
5940
5941 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5942 (remove_dyn_prop): Remove. Update all users to use
5943 type::remove_dyn_prop.
5944 * gdbtypes.c (remove_dyn_prop): Rename to...
5945 (type::remove_dyn_prop): ... this.
5946
5c54719c
SM
59472020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5948
5949 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5950 (add_dyn_prop): Remove. Update all users to use
5951 type::add_dyn_prop.
5952 * gdbtypes.c (add_dyn_prop): Rename to...
5953 (type::add_dyn_prop): ... this.
5954
24e99c6c
SM
59552020-05-07 Simon Marchi <simon.marchi@efficios.com>
5956
5957 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5958 (get_dyn_prop): Remove. Update all users to use
5959 type::dyn_prop.
5960 * gdbtypes.c (get_dyn_prop): Rename to...
5961 (type::dyn_prop): ... this.
5962
0d4bf016
SM
59632020-05-06 Simon Marchi <simon.marchi@efficios.com>
5964
5965 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5966
ac4a4f1c
SM
59672020-05-06 Simon Marchi <simon.marchi@efficios.com>
5968
5969 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5970 instruction, skip it if it's there.
5971
a3bbacc1
SM
59722020-05-05 Simon Marchi <simon.marchi@efficios.com>
5973
5974 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5975
c3236f84
SM
59762020-05-04 Simon Marchi <simon.marchi@efficios.com>
5977
5978 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5979 * gdbtypes.c (recursive_dump_type): Remove use of
5980 TYPE_INCOMPLETE.
5981
3b6acaee
TT
59822020-05-03 Tom Tromey <tom@tromey.com>
5983
5984 * breakpoint.c (catch_command, tcatch_command): Remove.
5985 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5986 add_show_prefix_cmd.
5987 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5988 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5989 Remove.
5990 (add_internal_problem_command): Use add_basic_prefix_cmd,
5991 add_show_prefix_cmd.
5992 * mips-tdep.c (set_mipsfpu_command): Remove.
5993 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5994 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5995 (_initialize_index_cache): Use add_basic_prefix_cmd.
5996 * memattr.c (dummy_cmd): Remove.
5997 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5998 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5999 (_initialize_tui_win): Use add_basic_prefix_cmd,
6000 add_show_prefix_cmd.
6001 * cli/cli-logging.c (set_logging_command): Remove.
6002 (_initialize_cli_logging): Use add_basic_prefix_cmd,
6003 add_show_prefix_cmd.
6004 (show_logging_command): Remove.
6005 * target.c (target_command): Remove.
6006 (add_target): Use add_basic_prefix_cmd.
6007
a51119cd
HD
60082020-05-02 Hannes Domani <ssbssa@yahoo.de>
6009
6010 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
6011
652fc23a 60122020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6013
652fc23a
PW
6014 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
6015 info_command.
6016
117539e6
KR
60172020-04-30 Kamil Rytarowski <n54@gmx.com>
6018
6019 * nbsd-nat.c (nbsd_enable_proc_events)
6020 (nbsd_nat_target::post_startup_inferior): Add.
6021 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
6022 (nbsd_nat_target::update_thread_list): Rewrite.
6023 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
6024 "PTRACE_LWP_CREATE".
6025 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
6026
102e38eb 60272020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 6028
102e38eb
PW
6029 * stack.c (_initialize_stack): Remove duplicated creation
6030 of "frame" command and "f" alias.
6031
ee9d1e5f
HD
60322020-04-30 Hannes Domani <ssbssa@yahoo.de>
6033
6034 PR gdb/18706
6035 * gdbtypes.c (check_typedef): Calculate size of array of
6036 stubbed type.
6037
627c7fb8
HD
60382020-04-30 Hannes Domani <ssbssa@yahoo.de>
6039
6040 PR gdb/15559
6041 * i386-tdep.c (i386_push_dummy_call): Call
6042 i386_thiscall_push_dummy_call.
6043 (i386_thiscall_push_dummy_call): New function.
6044 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
6045 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
6046 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
6047
ffc2844e
SM
60482020-04-29 Simon Marchi <simon.marchi@efficios.com>
6049
6050 * gdbarch.sh (do_read): Add shellcheck disable directive for
6051 warning SC2162.
6052
1207375d
SM
60532020-04-29 Simon Marchi <simon.marchi@efficios.com>
6054
6055 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6056 "referenced but not assigned" warning.
6057
9fdb2916
SM
60582020-04-29 Simon Marchi <simon.marchi@efficios.com>
6059
6060 * gdbarch.sh: Remove code that sets fallbackdefault.
6061
759cea5e
SM
60622020-04-29 Simon Marchi <simon.marchi@efficios.com>
6063
6064 * gdbarch.sh: Use shell operators && and || instead of
6065 -a and -o.
6066
cb02ab24
SM
60672020-04-29 Simon Marchi <simon.marchi@efficios.com>
6068
6069 * gdbarch.sh: Use $(...) instead of `...`.
6070
a6fc5ffc
SM
60712020-04-29 Simon Marchi <simon.marchi@efficios.com>
6072
6073 * gdbarch.sh: Use double quotes around variables.
6074
8d113d13
SM
60752020-04-29 Simon Marchi <simon.marchi@efficios.com>
6076
6077 * gdbarch.sh: Use %s with printf, instead of variables in the
6078 format string.
6079
ed6acedd
TT
60802020-04-29 Tom Tromey <tromey@adacore.com>
6081
6082 PR ada/25875:
6083 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6084 type fields here.
6085 (read_enumeration_type): Call
6086 update_enumeration_type_from_children later. Update comments.
6087 (process_enumeration_scope): Don't create type fields.
6088
b68b1b58
KR
60892020-04-29 Kamil Rytarowski <n54@gmx.com>
6090
6091 * nbsd-tdep.c: Include "xml-syscall.h".
6092 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6093
f94b2e03
KR
60942020-04-29 Kamil Rytarowski <n54@gmx.com>
6095
6096 * nbsd-nat.c: Include "sys/wait.h".
6097 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6098 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6099 (nbsd_nat_target::remove_exec_catchpoint)
6100 (nbsd_nat_target::set_syscall_catchpoint): Add.
6101 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6102 (nbsd_nat_target::insert_exec_catchpoint)
6103 (nbsd_nat_target::remove_exec_catchpoint)
6104 (nbsd_nat_target::set_syscall_catchpoint): Add.
6105 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6106 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6107 `nbsd_get_syscall_number'.
6108
fc49bc72
TT
61092020-04-29 Tom Tromey <tom@tromey.com>
6110
6111 * stack.c (print_block_frame_labels): Remove.
6112
d642b692
HD
61132020-04-29 Hannes Domani <ssbssa@yahoo.de>
6114
6115 PR gdb/17320
6116 * ada-valprint.c (val_print_packed_array_elements): Move array
6117 end bracket to new line.
6118 (ada_val_print_string): Remove extra spaces before first array
6119 element.
6120 * c-valprint.c (c_value_print_array): Likewise.
6121 * m2-valprint.c (m2_print_array_contents): Likewise.
6122 (m2_value_print_inner): Likewise.
6123 * p-valprint.c (pascal_value_print_inner): Likewise.
6124 * valprint.c (generic_val_print_array): Likewise.
6125 (value_print_array_elements): Move first array element and array
6126 end bracket to new line.
6127
ea90f227
TV
61282020-04-29 Tom de Vries <tdevries@suse.de>
6129
6130 PR symtab/25889
6131 * linespec.c (find_method): Fix ix calculation.
6132
4498ef4f
KR
61332020-04-28 Kamil Rytarowski <n54@gmx.com>
6134
6135 * syscalls/update-netbsd.sh: New file.
6136 * syscalls/netbsd.xml: Regenerate.
6137 * data-directory/Makefile.in: Register `netbsd.xml' in
6138 `SYSCALLS_FILES'.
6139
a55e30b5
SM
61402020-04-28 Simon Marchi <simon.marchi@efficios.com>
6141
6142 * syscalls/update-freebsd.sh: Add double quotes.
6143
2b2fbab8
TT
61442020-04-28 Tom Tromey <tom@tromey.com>
6145
6146 * NEWS: Update.
6147 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6148 (cmdpy_init): Allow class_tui.
6149
a65189c9
TV
61502020-04-28 Mark Williams <mark@myosotissp.com>
6151
6152 PR gdb/24480
6153 * dwarf2read.c: Add missing assingments to list_in_scope when
6154 start_symtab was already called.
6155
1b95cdb7
SM
61562020-04-28 Simon Marchi <simon.marchi@efficios.com>
6157
6158 PR gdb/25881
6159 * dwarf2/read.c (offset_map_type): Use
6160 gdb:hash_enum<sect_offset> as hash function.
6161
15cd93d0
TV
61622020-04-28 Tom de Vries <tdevries@suse.de>
6163
6164 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6165 with DW_AT_signature.
6166
1eb39914
SM
61672020-04-27 Simon Marchi <simon.marchi@efficios.com>
6168
6169 * configure.ac: Remove check for fs_base/gs_base in
6170 user_regs_struct.
6171 * configure: Re-generate.
6172 * config.in: Re-generate.
6173 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6174 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6175 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6176
991a3e2e
LM
61772020-04-27 Luis Machado <luis.machado@linaro.org>
6178
6179 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6180 problematic inline frame unwinding situation.
6181 * frame.c (frame_id_computed_p): New function.
6182 * frame.h (frame_id_computed_p): New prototype.
6183
361ba0e8
TT
61842020-04-26 Tom Tromey <tom@tromey.com>
6185
6186 * command.h (enum command_class) <class_pseudo>: Remove.
6187
bc3609fd
PW
61882020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6189
6190 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6191 and whitespace.
6192
b9771db7
KR
61932020-04-25 Kamil Rytarowski <n54@gmx.com>
6194
ec16513e
SM
6195 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6196 `PT_GET_PROCESS_STATE' block.
b9771db7 6197
7151c1af
TT
61982020-04-24 Tom Tromey <tom@tromey.com>
6199
6200 * symtab.h (symbol_get_demangled_name): Don't declare.
6201 * symtab.c (symbol_get_demangled_name): Remove.
6202 (general_symbol_info::natural_name)
6203 (general_symbol_info::demangled_name): Update.
6204
906bb4c5
TT
62052020-04-24 Tom Tromey <tom@tromey.com>
6206
6207 PR rust/25025:
6208 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6209
bcfe6157
TT
62102020-04-24 Tom Tromey <tom@tromey.com>
6211
6212 PR symtab/12707:
6213 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6214 exists.
6215 (new_symbol): Likewise.
6216 * compile/compile-object-load.c (get_out_value_type): Use
6217 symbol_matches_search_name.
6218
f049a313
TT
62192020-04-24 Tom Tromey <tom@tromey.com>
6220
6221 * dwarf2/read.c (add_partial_symbol): Do not call
6222 compute_and_set_names.
6223
76e288d1
TT
62242020-04-24 Tom Tromey <tom@tromey.com>
6225
6226 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6227 overload.
6228
2467f4f6
TT
62292020-04-24 Tom Tromey <tom@tromey.com>
6230
6231 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6232 (add_psymbol_to_list): New overload. Make old overload call new
6233 one.
6234 * psympriv.h (add_psymbol_to_list): New overload.
6235
e61108c9
TT
62362020-04-24 Tom Tromey <tom@tromey.com>
6237
6238 * dwarf2/read.c (partial_die_info::read) <case
6239 DW_AT_linkage_name>: Use value_as_string.
6240 (dwarf2_string_attr): Use value_as_string.
6241 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6242 method.
6243 * dwarf2/attribute.c (attribute::value_as_string): New method.
6244
8c87a452
TT
62452020-04-24 Tom Tromey <tom@tromey.com>
6246
6247 * symtab.c (general_symbol_info::natural_name)
6248 (general_symbol_info::demangled_name): Check for language_rust.
6249
787de330
TT
62502020-04-24 Tom Tromey <tom@tromey.com>
6251
6252 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6253 (dwarf2_physname): ... from here.
6254 (partial_die_info::read): Add Rust "{" hack.
6255
ff985671
TT
62562020-04-24 Tom Tromey <tom@tromey.com>
6257
6258 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6259 method.
6260 (symbol_set_demangled_name): Don't declare.
6261 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6262 symbol_set_demangled_name.
6263 (general_symbol_info::set_language)
6264 (general_symbol_info::compute_and_set_names): Update.
6265 * minsyms.c (minimal_symbol_reader::install): Update.
6266 * dwarf2/read.c (new_symbol): Update.
6267
1acda803
TT
62682020-04-24 Tom Tromey <tromey@adacore.com>
6269
6270 PR python/23662:
6271 * python/py-type.c (convert_field): Handle
6272 FIELD_LOC_KIND_DWARF_BLOCK.
6273 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6274 (typy_get_dynamic): Nw function.
6275 (type_object_getset): Add "dynamic".
6276 * NEWS: Add entry.
6277
d656f129
TT
62782020-04-24 Tom Tromey <tromey@adacore.com>
6279
6280 * ada-typeprint.c (print_choices, print_variant_part)
6281 (print_record_field_types_dynamic): New functions.
6282 (print_record_field_types): Use print_record_field_types_dynamic.
6283
7d79de9a
TT
62842020-04-24 Tom Tromey <tromey@adacore.com>
6285
6286 * dwarf2/read.c (handle_data_member_location): New overload.
6287 (dwarf2_add_field): Use it.
6288 (decode_locdesc): Add "computed" parameter. Update comment.
6289 * gdbtypes.c (is_dynamic_type_internal): Also look for
6290 FIELD_LOC_KIND_DWARF_BLOCK.
6291 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6292 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6293 virtual base classes.
6294 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6295 FIELD_LOC_KIND_DWARF_BLOCK.
6296
f8e89861
TT
62972020-04-24 Tom Tromey <tromey@adacore.com>
6298
6299 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6300 * gdbtypes.c (is_dynamic_type_internal): Check
6301 TYPE_HAS_DYNAMIC_LENGTH.
6302 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6303 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6304 New macros.
6305 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6306 constant.
6307
9c6a1327
TT
63082020-04-24 Tom Tromey <tromey@adacore.com>
6309
6310 * dwarf2/read.c (struct variant_field): Rewrite.
6311 (struct variant_part_builder): New.
6312 (struct nextfield): Remove "variant" field. Add "offset".
6313 (struct field_info): Add "current_variant_part" and
6314 "variant_parts".
6315 (alloc_discriminant_info): Remove.
6316 (alloc_rust_variant): New function.
6317 (quirk_rust_enum): Update.
6318 (dwarf2_add_field): Set "offset" member. Don't handle
6319 DW_TAG_variant_part.
6320 (offset_map_type): New typedef.
6321 (convert_variant_range, create_one_variant)
6322 (create_one_variant_part, create_variant_parts)
6323 (add_variant_property): New functions.
6324 (dwarf2_attach_fields_to_type): Call add_variant_property.
6325 (read_structure_type): Don't handle DW_TAG_variant_part.
6326 (handle_variant_part, handle_variant): New functions.
6327 (handle_struct_member_die): Use them.
6328 (process_structure_scope): Don't handle variant parts.
6329 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6330 (struct discriminant_info): Remove.
6331 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6332 (struct main_type) <flag_discriminated_union>: Remove.
6333 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6334 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6335 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6336 Update.
6337 * valops.c (value_union_variant): Remove.
6338 * value.h (value_union_variant): Don't declare.
6339
b249d2c2
TT
63402020-04-24 Tom Tromey <tromey@adacore.com>
6341
6342 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6343 (ada_value_primitive_packed_val): Update.
6344 * ada-valprint.c (ada_value_print_1): Update.
6345 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6346 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6347 just an address. Use evaluate_for_locexpr_baton.
6348 (dwarf2_evaluate_property): Update.
6349 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6350 array_view.
6351 * findvar.c (default_read_var_value): Update.
6352 * gdbtypes.c (compute_variant_fields_inner)
6353 (resolve_dynamic_type_internal): Update.
6354 (resolve_dynamic_type): Change type of valaddr parameter.
6355 * gdbtypes.h (resolve_dynamic_type): Update.
6356 * valarith.c (value_subscripted_rvalue): Update.
6357 * value.c (value_from_contents_and_address): Update.
6358
61122aa9
TT
63592020-04-24 Tom Tromey <tromey@adacore.com>
6360
6361 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6362 "push_initial_value" parameter.
6363 (dwarf2_evaluate_property): Likewise.
6364 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6365
ef83a141
TT
63662020-04-24 Tom Tromey <tromey@adacore.com>
6367
6368 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6369 (variant::matches, compute_variant_fields_recurse)
6370 (compute_variant_fields_inner, compute_variant_fields): New
6371 functions.
6372 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6373 Use resolved_type after type is made.
6374 (operator==): Add new cases.
6375 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6376 (struct discriminant_range, struct variant, struct variant_part):
6377 New.
6378 (union dynamic_prop_data) <variant_parts, original_type>: New
6379 members.
6380 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6381 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6382 constants.
6383 * value.c (unpack_bits_as_long): Now public.
6384 * value.h (unpack_bits_as_long): Declare.
6385
675127ec
TT
63862020-04-24 Tom Tromey <tromey@adacore.com>
6387
6388 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6389 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6390
9852ceef
HD
63912020-04-24 Hannes Domani <ssbssa@yahoo.de>
6392
6393 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6394
7632c6ce
KR
63952020-04-24 Kamil Rytarowski <n54@gmx.com>
6396
6397 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6398 (remove_fork_catchpoint, post_startup_inferior)
6399 (post_attach): Move...
6400 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6401 (remove_fork_catchpoint, post_startup_inferior)
6402 (post_attach): ...here.
6403 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6404 (remove_fork_catchpoint, post_startup_inferior)
6405 (post_attach): Move...
6406 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6407 (remove_fork_catchpoint, post_startup_inferior)
6408 (post_attach): ...here.
6409
7be2bb4f
TT
64102020-04-24 Tom Tromey <tromey@adacore.com>
6411
6412 * nat/windows-nat.h (struct windows_thread_info)
6413 <pc_adjusted>: New member.
6414 * windows-nat.c (windows_fetch_one_register): Check
6415 pc_adjusted.
6416 (windows_nat_target::get_windows_debug_event)
6417 (windows_nat_target::wait): Set pc_adjusted.
6418
f80cb3b4
TV
64192020-04-24 Tom de Vries <tdevries@suse.de>
6420
6421 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6422 Run gdb-add-index inside temp dir.
6423
29514b87
TT
64242020-04-23 Tom Tromey <tromey@adacore.com>
6425
6426 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6427 in loop.
6428
5939967b
LM
64292020-04-23 Luis Machado <luis.machado@linaro.org>
6430
6431 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6432 get_frame_register instead of gdbarch_unwind_pc.
6433
70bc38f5
TV
64342020-04-23 Tom de Vries <tdevries@suse.de>
6435
6436 * symtab.c (lookup_global_symbol): Prefer def over decl.
6437
de82891c
TV
64382020-04-23 Tom de Vries <tdevries@suse.de>
6439
6440 PR symtab/25807
6441 * block.c (best_symbol, better_symbol): Promote to external.
6442 * block.h (best_symbol, better_symbol): Declare.
6443 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6444 decl.
6445
ecc6c606
TT
64462020-04-23 Tom Tromey <tromey@adacore.com>
6447
6448 PR ada/25837:
6449 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6450 "const char *", not a "const std::string &".
6451 <name_and_matcher::operator==>: Update.
6452 * unittests/lookup_name_info-selftests.c: Change type of
6453 "result".
6454
740480b8
TT
64552020-04-23 Tom Tromey <tom@tromey.com>
6456
6457 * inferior.h (iterate_over_inferiors): Don't declare.
6458 * inferior.c (iterate_over_inferiors): Remove.
6459 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6460 Remove.
6461 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6462 use iterate_over_inferiors.
6463 (darwin_resume_inferior_it)
6464 (struct resume_inferior_threads_param)
6465 (darwin_resume_inferior_threads_it): Remove.
6466 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6467
ae3ab1f0
TV
64682020-04-23 Tom de Vries <tdevries@suse.de>
6469
6470 * blockframe.c (find_pc_partial_function): Use
6471 find_pc_sect_compunit_symtab rather than
6472 objfile->sf->qf->find_pc_sect_compunit_symtab.
6473
317d2668
TV
64742020-04-22 Tom de Vries <tdevries@suse.de>
6475
6476 PR symtab/25764
6477 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6478 in psymtabs.
6479
eea9e357
TV
64802020-04-22 Tom de Vries <tdevries@suse.de>
6481
6482 PR symtab/25801
6483 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6484 symtabs.
6485
3d5afab3
TV
64862020-04-22 Tom de Vries <tdevries@suse.de>
6487
6488 PR symtab/25700
6489 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6490 CU if already created.
6491
d43b7a2d
TBA
64922020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6493
6494 * infrun.c (displaced_step_fixup): Switch to the event_thread
6495 before calling displaced_step_restore, not after.
6496
d89edf9b
MM
64972020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6498
6499 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6500 its inferior is not recorded by us.
6501 (record_btrace_target_open): Replace call to
6502 all_non_exited_threads () with call to current_inferior
6503 ()->non_exited_threads ().
6504 (record_btrace_target::stop_recording): Likewise.
6505 (record_btrace_target::close): Likewise.
6506 (record_btrace_target::wait): Likewise.
6507 (record_btrace_target::record_stop_replaying): Likewise.
6508
5897fd49
MM
65092020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6510
6511 * btrace.c (btrace_enable): Throw an error on double enables and
6512 when enabling recording fails.
6513 (btrace_disable): Throw an error if the thread is not recorded.
6514
1a476b6d
MM
65152020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6516
6517 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6518 request if we do not have a thread_info.
6519
4778a5f8
TV
65202020-04-21 Tom de Vries <tdevries@suse.de>
6521
6522 PR gdb/25471
6523 * thread.c
6524 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6525 exception in get_frame_id.
6526
0fa7617d
TT
65272020-04-20 Tom Tromey <tromey@adacore.com>
6528
6529 * python/python.c (struct gdbpy_event): Mark move constructor as
6530 noexcept.
6531 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6532 constructor as noexcept.
6533 * completer.h (struct completion_result): Mark move constructor as
6534 noexcept.
6535 * completer.c (completion_result::completion_result): Use
6536 initialization style. Don't call reset_match_list.
6537
ad23bda0
MS
65382020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6539
6540 * MAINTAINERS (Write After Approval): Add myself.
6541
45e1f031
TT
65422020-04-18 Tom Tromey <tom@tromey.com>
6543
6544 * windows-tdep.c (init_w32_command_list)
6545 (w32_prefix_command_valid): Restore.
6546 (_initialize_windows_tdep): Call init_w32_command_list.
6547
08feed99
TT
65482020-04-18 Tom Tromey <tom@tromey.com>
6549
6550 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6551 * value.c (value_fn_field): Update.
6552 * valops.c (find_function_in_inferior)
6553 (value_allocate_space_in_inferior): Update.
6554 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6555 Update.
6556 * tui/tui-source.c (tui_source_window::set_contents): Update.
6557 * symtab.c (lookup_global_or_static_symbol)
6558 (find_function_start_sal_1, skip_prologue_sal)
6559 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6560 * symmisc.c (dump_msymbols, dump_symtab_1)
6561 (maintenance_print_one_line_table): Update.
6562 * symfile.c (init_entry_point_info, section_is_mapped)
6563 (list_overlays_command, simple_read_overlay_table)
6564 (simple_overlay_update_1): Update.
6565 * stap-probe.c (handle_stap_probe): Update.
6566 * stabsread.c (dbx_init_float_type, define_symbol)
6567 (read_one_struct_field, read_enum_type, read_range_type): Update.
6568 * source.c (info_line_command): Update.
6569 * python/python.c (gdbpy_source_objfile_script)
6570 (gdbpy_execute_objfile_script): Update.
6571 * python/py-type.c (save_objfile_types): Update.
6572 * python/py-objfile.c (py_free_objfile): Update.
6573 * python/py-inferior.c (python_new_objfile): Update.
6574 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6575 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6576 (maintenance_check_psymtabs): Update.
6577 * printcmd.c (info_address_command): Update.
6578 * objfiles.h (struct objfile) <arch>: New method, from
6579 get_objfile_arch.
6580 (get_objfile_arch): Don't declare.
6581 * objfiles.c (get_objfile_arch): Remove.
6582 (filter_overlapping_sections): Update.
6583 * minsyms.c (msymbol_is_function): Update.
6584 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6585 (output_nondebug_symbol): Update.
6586 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6587 (mdebug_expand_psymtab): Update.
6588 * machoread.c (macho_add_oso_symfile): Update.
6589 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6590 Update.
6591 * linux-fork.c (checkpoint_command): Update.
6592 * linespec.c (convert_linespec_to_sals): Update.
6593 * jit.c (finalize_symtab): Update.
6594 * infrun.c (insert_exception_resume_from_probe): Update.
6595 * ia64-tdep.c (ia64_find_unwind_table): Update.
6596 * hppa-tdep.c (internalize_unwinds): Update.
6597 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6598 Update.
6599 * gcore.c (call_target_sbrk): Update.
6600 * elfread.c (record_minimal_symbol, elf_symtab_read)
6601 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6602 (elf_gnu_ifunc_resolve_by_got): Update.
6603 * dwarf2/read.c (create_addrmap_from_index)
6604 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6605 (read_debug_names_from_section)
6606 (process_psymtab_comp_unit_reader, add_partial_symbol)
6607 (add_partial_subprogram, process_full_comp_unit)
6608 (read_file_scope, read_func_scope, read_lexical_block_scope)
6609 (read_call_site_scope, dwarf2_ranges_read)
6610 (dwarf2_record_block_ranges, dwarf2_add_field)
6611 (mark_common_block_symbol_computed, read_tag_pointer_type)
6612 (read_tag_string_type, dwarf2_init_float_type)
6613 (dwarf2_init_complex_target_type, read_base_type)
6614 (partial_die_info::read, partial_die_info::read)
6615 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6616 (dwarf2_fetch_die_loc_sect_off): Update.
6617 * dwarf2/loc.c (dwarf2_find_location_expression)
6618 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6619 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6620 (dwarf2_loc_desc_get_symbol_read_needs)
6621 (locexpr_describe_location_piece, locexpr_describe_location_1)
6622 (loclist_describe_location): Update.
6623 * dwarf2/index-write.c (write_debug_names): Update.
6624 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6625 * dtrace-probe.c (dtrace_process_dof): Update.
6626 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6627 (process_one_symbol): Update.
6628 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6629 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6630 (coff_read_enum_type): Update.
6631 * cli/cli-cmds.c (edit_command, list_command): Update.
6632 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6633 * breakpoint.c (create_overlay_event_breakpoint)
6634 (create_longjmp_master_breakpoint)
6635 (create_std_terminate_master_breakpoint)
6636 (create_exception_master_breakpoint, get_sal_arch): Update.
6637 * block.c (block_gdbarch): Update.
6638 * annotate.c (annotate_source_line): Update.
6639
0743fc83
TT
66402020-04-17 Tom Tromey <tromey@adacore.com>
6641
6642 * auto-load.c (show_auto_load_cmd): Remove.
6643 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6644 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6645 (maintenance_print_arc_command): Remove.
6646 * tui/tui-win.c (tui_command): Remove.
6647 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6648 * tui/tui-layout.c (tui_layout_command): Remove.
6649 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6650 * python/python.c (user_set_python, user_show_python): Remove.
6651 (_initialize_python): Use add_basic_prefix_cmd,
6652 add_show_prefix_cmd.
6653 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6654 (install_gdb_commands): Use add_basic_prefix_cmd,
6655 add_show_prefix_cmd.
6656 (info_guile_command): Remove.
6657 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6658 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6659 add_show_prefix_cmd.
6660 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6661 Remove do_set and do_show parameters.
6662 * cli/cli-style.c (set_style, show_style): Remove.
6663 (_initialize_cli_style): Use add_basic_prefix_cmd,
6664 add_show_prefix_cmd.
6665 (cli_style_option::add_setshow_commands): Remove do_set and
6666 do_show parameters.
6667 (cli_style_option::add_setshow_commands): Use
6668 add_basic_prefix_cmd, add_show_prefix_cmd.
6669 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6670 (set_style_name): Remove.
6671 * cli/cli-dump.c (dump_command, append_command): Remove.
6672 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6673 (tekhex_dump_command, binary_dump_command)
6674 (binary_append_command): Remove.
6675 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6676 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6677 (init_w32_command_list): Remove; move into ...
6678 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6679 * valprint.c (set_print, show_print, set_print_raw)
6680 (show_print_raw): Remove.
6681 (_initialize_valprint): Use add_basic_prefix_cmd,
6682 add_show_prefix_cmd.
6683 * typeprint.c (set_print_type, show_print_type): Remove.
6684 (_initialize_typeprint): Use add_basic_prefix_cmd,
6685 add_show_prefix_cmd.
6686 * record.c (set_record_command, show_record_command): Remove.
6687 (_initialize_record): Use add_basic_prefix_cmd,
6688 add_show_prefix_cmd.
6689 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6690 add_show_prefix_cmd.
6691 (info_command, show_command, set_debug, show_debug): Remove.
6692 * top.h (set_history, show_history): Don't declare.
6693 * top.c (set_history, show_history): Remove.
6694 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6695 (unset_tdesc_cmd): Remove.
6696 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6697 add_show_prefix_cmd.
6698 * symtab.c (info_module_command): Remove.
6699 (_initialize_symtab): Use add_basic_prefix_cmd.
6700 * symfile.c (overlay_command): Remove.
6701 (_initialize_symfile): Use add_basic_prefix_cmd.
6702 * sparc64-tdep.c (info_adi_command): Remove.
6703 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6704 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6705 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6706 add_show_prefix_cmd.
6707 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6708 (_initialize_serial): Use add_basic_prefix_cmd,
6709 add_show_prefix_cmd.
6710 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6711 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6712 add_show_prefix_cmd.
6713 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6714 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6715 add_show_prefix_cmd.
6716 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6717 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6718 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6719 add_show_prefix_cmd.
6720 * remote.c (remote_command, set_remote_cmd): Remove.
6721 (_initialize_remote): Use add_basic_prefix_cmd.
6722 * record-full.c (set_record_full_command)
6723 (show_record_full_command): Remove.
6724 (_initialize_record_full): Use add_basic_prefix_cmd,
6725 add_show_prefix_cmd.
6726 * record-btrace.c (cmd_set_record_btrace)
6727 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6728 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6729 (cmd_show_record_btrace_pt): Remove.
6730 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6731 add_show_prefix_cmd.
6732 * ravenscar-thread.c (set_ravenscar_command)
6733 (show_ravenscar_command): Remove.
6734 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6735 add_show_prefix_cmd.
6736 * mips-tdep.c (show_mips_command, set_mips_command)
6737 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6738 add_show_prefix_cmd.
6739 * maint.c (maintenance_command, maintenance_info_command)
6740 (maintenance_check_command, maintenance_print_command)
6741 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6742 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6743 add_show_prefix_cmd.
6744 (show_per_command_cmd): Remove.
6745 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6746 Remove.
6747 (maintenance_show_test_settings_cmd): Remove.
6748 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6749 add_show_prefix_cmd.
6750 * maint-test-options.c (maintenance_test_options_command):
6751 Remove.
6752 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6753 * macrocmd.c (macro_command): Remove
6754 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6755 * language.c (set_check, show_check): Remove.
6756 (_initialize_language): Use add_basic_prefix_cmd,
6757 add_show_prefix_cmd.
6758 * infcmd.c (unset_command): Remove.
6759 (_initialize_infcmd): Use add_basic_prefix_cmd.
6760 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6761 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6762 add_show_prefix_cmd.
6763 * go32-nat.c (go32_info_dos_command): Remove.
6764 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6765 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6766 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6767 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6768 (_initialize_frame): Use add_basic_prefix_cmd,
6769 add_show_prefix_cmd.
6770 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6771 (_initialize_dcache): Use add_basic_prefix_cmd,
6772 add_show_prefix_cmd.
6773 * cp-support.c (maint_cplus_command): Remove.
6774 (_initialize_cp_support): Use add_basic_prefix_cmd.
6775 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6776 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6777 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6778 add_basic_prefix_cmd, add_show_prefix_cmd.
6779 * breakpoint.c (save_command): Remove.
6780 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6781 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6782 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6783 add_show_prefix_cmd.
6784 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6785 (set_ada_command, show_ada_command): Remove.
6786 (_initialize_ada_language): Use add_basic_prefix_cmd,
6787 add_show_prefix_cmd.
6788 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6789
3557f442
KR
67902020-04-16 Kamil Rytarowski <n54@gmx.com>
6791
6792 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6793 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6794
16197208
SM
67952020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6796
6797 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6798 warning messages.
6799
00ac85d3
SM
68002020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6801
6802 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6803 import table is not at beginning of .idata section.
6804
381ce63f
PA
68052020-04-16 Pedro Alves <palves@redhat.com>
6806
6807 * inferior.c (delete_inferior): Use delete operator directly
6808 instead of delete_program_space.
6809 * progspace.c (add_program_space): New, factored out from
6810 program_space::program_space.
6811 (remove_program_space): New, factored out from
6812 delete_program_space.
6813 (program_space::program_space): Remove intro comment. Rewrite.
6814 (program_space::~program_space): Remove intro comment. Call
6815 remove_program_space.
6816 (delete_program_space): Delete.
6817 * progspace.h (program_space::program_space): Make explicit. Move
6818 intro comment here, adjusted.
6819 (program_space::~program_space): Move intro comment here,
6820 adjusted.
6821 (delete_program_space): Remove.
6822
a010605f
TT
68232020-04-16 Tom Tromey <tromey@adacore.com>
6824
6825 * windows-nat.c (windows_nat::handle_access_violation): New
6826 function.
6827 * nat/windows-nat.h (handle_access_violation): Declare.
6828 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6829 windows-nat.c. Call handle_access_violation.
6830
efba5c23
TV
68312020-04-16 Tom de Vries <tdevries@suse.de>
6832
6833 PR symtab/25791
6834 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6835 CUs without psymtab.
6836
97ed802d
KB
68372020-04-16 Kevin Buettner <kevinb@redhat.com>
6838
6839 * python/python.c (do_start_initialization): Don't call
6840 PyEval_InitThreads for Python 3.9 and beyond.
6841
c7d64809
KR
68422020-04-15 Kamil Rytarowski <n54@gmx.com>
6843
6844 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6845 thread functions.
6846 (obsd_nat_target::wait): Likewise.
6847
ce127a96
TT
68482020-04-15 Tom Tromey <tromey@adacore.com>
6849
6850 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6851 (DEBUG_EXCEPT): Use debug_printf.
6852
99f1bc6a
AB
68532020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6854
6855 * completer.c (class completion_tracker::completion_hash_entry)
6856 <hash_name>: New member function.
6857 (completion_tracker::discard_completions): New callback to hash a
6858 completion_hash_entry, pass this to htab_create_alloc.
6859
a0e9b532
JT
68602016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6861
6862 * windows-nat.c (windows_make_so): Warn rather than stopping with
6863 an error if realpath() fails.
6864
06ca5dd4
KR
68652020-04-14 Kamil Rytarowski <n54@gmx.com>
6866
6867 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6868 (nbsd_nat_target::info_proc): Add do_status.
6869
194d088f
TV
68702020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6871 Tom de Vries <tdevries@suse.de>
6872
6873 PR symtab/25718
6874 * psympriv.h (struct partial_symtab::read_symtab)
6875 (struct partial_symtab::expand_psymtab)
6876 (struct partial_symtab::read_dependencies): Update comments.
6877 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6878 read_symtab for includer.
6879 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6880 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6881 (struct dwarf2_include_psymtab::m_readin): Remove.
6882 (struct dwarf2_include_psymtab::includer): New member function.
6883 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6884
c1a66c06
TV
68852020-04-14 Tom de Vries <tdevries@suse.de>
6886
6887 PR symtab/25720
6888 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6889 with NULL symbol_matcher and lookup_name.
6890 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6891 and lookup_name.
6892 * dwarf2/read.c (dw2_expand_symtabs_matching)
6893 (dw2_debug_names_expand_symtabs_matching): Same.
6894 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6895 Make lookup_name a pointer. Update comment.
6896 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6897 lookup_name being a pointer.
6898 * symfile.c (expand_symtabs_matching): Same.
6899 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6900 * linespec.c (iterate_over_all_matching_symtabs): Same.
6901
400b5eca
TT
69022020-04-13 Tom Tromey <tom@tromey.com>
6903
6904 * run-on-main-thread.c: Update include.
6905 * unittests/main-thread-selftests.c: Update include.
6906 * tui/tui-win.c: Update include.
6907 * tui/tui-io.c: Update include.
6908 * tui/tui-interp.c: Update include.
6909 * tui/tui-hooks.c: Update include.
6910 * top.h: Update include.
6911 * top.c: Update include.
6912 * ser-base.c: Update include.
6913 * remote.c: Update include.
6914 * remote-notif.c: Update include.
6915 * remote-fileio.c: Update include.
6916 * record-full.c: Update include.
6917 * record-btrace.c: Update include.
6918 * python/python.c: Update include.
6919 * posix-hdep.c: Update include.
6920 * mingw-hdep.c: Update include.
6921 * mi/mi-main.c: Update include.
6922 * mi/mi-interp.c: Update include.
6923 * main.c: Update include.
6924 * linux-nat.c: Update include.
6925 * interps.c: Update include.
6926 * infrun.c: Update include.
6927 * inf-loop.c: Update include.
6928 * event-top.c: Update include.
6929 * event-loop.c: Move to ../gdbsupport/.
6930 * event-loop.h: Move to ../gdbsupport/.
6931 * async-event.h: Update include.
6932 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6933
93b54c8e
TT
69342020-04-13 Tom Tromey <tom@tromey.com>
6935
6936 * tui/tui-win.c: Include async-event.h.
6937 * remote.c: Include async-event.h.
6938 * remote-notif.c: Include async-event.h.
6939 * record-full.c: Include async-event.h.
6940 * record-btrace.c: Include async-event.h.
6941 * infrun.c: Include async-event.h.
6942 * event-top.c: Include async-event.h.
6943 * event-loop.h: Move some declarations to async-event.h.
6944 * event-loop.c: Don't include ser-event.h or top.h. Move some
6945 code to async-event.c.
6946 * async-event.h: New file.
6947 * async-event.c: New file.
6948 * Makefile.in (COMMON_SFILES): Add async-event.c.
6949 (HFILES_NO_SRCDIR): Add async-event.h.
6950
c1cd3163
TT
69512020-04-13 Tom Tromey <tom@tromey.com>
6952
6953 * utils.c (flush_streams): New function.
6954 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6955
29f2bf4f
TT
69562020-04-13 Tom Tromey <tom@tromey.com>
6957
6958 * event-loop.c (handle_file_event): Use warning, not
6959 printf_unfiltered.
6960
98029d02
TT
69612020-04-13 Tom Tromey <tom@tromey.com>
6962
6963 * event-loop.c: Include <chrono>.
6964
06cc9596
TT
69652020-04-13 Tom Tromey <tom@tromey.com>
6966
6967 * gdb_select.h: Move to ../gdbsupport/.
6968 * event-loop.c: Update include path.
6969 * top.c: Update include path.
6970 * ser-base.c: Update include path.
6971 * ui-file.c: Update include path.
6972 * ser-tcp.c: Update include path.
6973 * guile/scm-ports.c: Update include path.
6974 * posix-hdep.c: Update include path.
6975 * ser-unix.c: Update include path.
6976 * gdb_usleep.c: Update include path.
6977 * mingw-hdep.c: Update include path.
6978 * inflow.c: Update include path.
6979 * infrun.c: Update include path.
6980 * event-top.c: Update include path.
6981
8ae8e197
TT
69822020-04-13 Tom Tromey <tom@tromey.com>
6983
6984 * configure: Rebuild.
6985 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6986
58cf28e8
TT
69872020-04-13 Tom Tromey <tom@tromey.com>
6988
6989 * event-loop.h (start_event_loop): Don't declare.
6990 * event-loop.c (start_event_loop): Move...
6991 * main.c (start_event_loop): ...here. Now static.
6992
b7f999ae
SDJ
69932020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6994
6995 * MAINTAINERS: Update my email address.
6996
1085dfd4
KR
69972020-04-12 Kamil Rytarowski <n54@gmx.com>
6998
6999 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
7000 IP_ALL.
7001
49d1d1f5
KR
70022020-04-12 Kamil Rytarowski <n54@gmx.com>
7003
7004 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 7005 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 7006
b4848d2a
KR
70072020-04-12 Kamil Rytarowski <n54@gmx.com>
7008
7009 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 7010 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 7011
51c133d5
KR
70122020-04-12 Kamil Rytarowski <n54@gmx.com>
7013
7014 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
7015
54b8cbd0
KR
70162020-04-11 Kamil Rytarowski <n54@gmx.com>
7017
7018 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
7019 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
7020 (nbsd_nat_target::info_proc): New functions.
7021 * nbsd-nat.c (kinfo_get_vmmap): New function.
7022 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
7023 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
7024 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
7025 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
7026 functions.
7027 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
7028 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
7029 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
7030 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
7031 (KINFO_VME_FLAG_GROWS_DOWN): New.
7032
cf83625d
AS
70332020-04-10 Artur Shepilko <nomadbyte@gmail.com>
7034
7035 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
7036 bit shift.
7037
0c4311ab
TT
70382020-04-10 Tom Tromey <tromey@adacore.com>
7039
7040 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
7041
3e65b3e9
TT
70422020-04-10 Tom Tromey <tromey@adacore.com>
7043
7044 * symtab.c (get_symbol_address, get_msymbol_address): Skip
7045 separate debug files.
7046
13302e95
HD
70472020-04-10 Hannes Domani <ssbssa@yahoo.de>
7048
7049 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7050 Move to...
7051 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
7052 ... here.
7053 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7054 Check for STATUS_WX86_BREAKPOINT.
7055 (windows_nat_target::wait): Same.
7056
bdfc1e8a
TV
70572020-04-10 Tom de Vries <tdevries@suse.de>
7058
7059 PR cli/25808
7060 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7061
f4460aec
SM
70622020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7063
7064 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7065 (Write After Approval): Remove Tom de Vries.
7066
a25198bb
BE
70672020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7068
7069 revert partially:
7070 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7071
aac66a4c
SM
7072 * buildsym.c (record_line): Fix undefined behavior and preserve
7073 lines at eof.
a25198bb 7074
206c98a6
KR
70752020-04-09 Kamil Rytarowski <n54@gmx.com>
7076
7077 * auxv.h (svr4_auxv_parse): New.
7078 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7079 and generic_auxv_parse.
7080 (svr4_auxv_parse): Add.
7081 * obsd-tdep.c: Include "auxv.h".
7082 (obsd_auxv_parse): Remove.
7083 (obsd_init_abi): Remove comment.
7084 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7085 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7086 * nbsd-tdep.c: Include "auxv.h".
7087 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7088
71fbdbaf
TT
70892020-04-08 Tom Tromey <tromey@adacore.com>
7090
7091 * nat/windows-nat.h (last_wait_event): Don't declare.
7092 (wait_for_debug_event): Update comment.
7093 * nat/windows-nat.c (last_wait_event): Now static.
7094
2c1d95e8
TT
70952020-04-08 Tom Tromey <tromey@adacore.com>
7096
7097 * windows-nat.c (wait_for_debug_event): Move to
7098 nat/windows-nat.c.
7099 * nat/windows-nat.h (wait_for_debug_event): Declare.
7100 * nat/windows-nat.c (wait_for_debug_event): Move from
7101 windows-nat.c. No longer static.
7102
d2977bc4
TT
71032020-04-08 Tom Tromey <tromey@adacore.com>
7104
7105 * windows-nat.c (get_windows_debug_event): Use
7106 fetch_pending_stop.
7107 * nat/windows-nat.h (fetch_pending_stop): Declare.
7108 * nat/windows-nat.c (fetch_pending_stop): New function.
7109
e758e19c
TT
71102020-04-08 Tom Tromey <tromey@adacore.com>
7111
7112 * windows-nat.c (windows_continue): Use matching_pending_stop and
7113 continue_last_debug_event.
7114 * nat/windows-nat.h (matching_pending_stop)
7115 (continue_last_debug_event): Declare.
7116 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7117 (matching_pending_stop, continue_last_debug_event): New
7118 functions.
7119
8d30e395
TT
71202020-04-08 Tom Tromey <tromey@adacore.com>
7121
7122 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7123 (handle_exception_result): Move to nat/windows-nat.h.
7124 (DEBUG_EXCEPTION_SIMPLE): Remove.
7125 (windows_nat::handle_ms_vc_exception): New function.
7126 (handle_exception): Move to nat/windows-nat.c.
7127 (get_windows_debug_event): Update.
7128 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7129 nat/windows-nat.c.
7130 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7131 (handle_exception_result): Move from windows-nat.c.
7132 (handle_exception): Declare.
7133 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7134 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7135 windows-nat.c.
7136
29de418d
TT
71372020-04-08 Tom Tromey <tromey@adacore.com>
7138
7139 * windows-nat.c (exception_count, event_count): Remove.
7140 (handle_exception, get_windows_debug_event)
7141 (do_initial_windows_stuff): Update.
7142
a816ba18
TT
71432020-04-08 Tom Tromey <tromey@adacore.com>
7144
7145 * windows-nat.c (windows_nat::handle_load_dll)
7146 (windows_nat::handle_unload_dll): Rename. No longer static.
7147 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7148 Declare.
7149
a00caa12
TT
71502020-04-08 Tom Tromey <tromey@adacore.com>
7151
7152 * complaints.h (stop_whining): Declare at top-level.
7153 (complaint): Don't declare stop_whining.
7154
d41b524f
TT
71552020-04-08 Tom Tromey <tromey@adacore.com>
7156
7157 * windows-nat.c (windows_nat::handle_output_debug_string):
7158 Rename. No longer static.
7159 * nat/windows-nat.h (handle_output_debug_string): Declare.
7160
3c76026d
TT
71612020-04-08 Tom Tromey <tromey@adacore.com>
7162
7163 * windows-nat.c (current_process_handle, current_process_id)
7164 (main_thread_id, last_sig, current_event, last_wait_event)
7165 (current_windows_thread, desired_stop_thread_id, pending_stops)
7166 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7167 (display_selectors, fake_create_process)
7168 (get_windows_debug_event): Update.
7169 * nat/windows-nat.h (current_process_handle, current_process_id)
7170 (main_thread_id, last_sig, current_event, last_wait_event)
7171 (current_windows_thread, desired_stop_thread_id, pending_stops)
7172 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7173 * nat/windows-nat.c (current_process_handle, current_process_id)
7174 (main_thread_id, last_sig, current_event, last_wait_event)
7175 (current_windows_thread, desired_stop_thread_id, pending_stops)
7176 (siginfo_er): New globals. Move from windows-nat.c.
7177
9d8679cc
TT
71782020-04-08 Tom Tromey <tromey@adacore.com>
7179
7180 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7181 (handle_load_dll): Update.
7182 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7183
28688adf
TT
71842020-04-08 Tom Tromey <tromey@adacore.com>
7185
7186 * windows-nat.c (enum thread_disposition_type): Move to
7187 nat/windows-nat.h.
7188 (windows_nat::thread_rec): Rename from thread_rec. No longer
7189 static.
7190 (windows_add_thread, windows_nat_target::fetch_registers)
7191 (windows_nat_target::store_registers, handle_exception)
7192 (windows_nat_target::resume, get_windows_debug_event)
7193 (windows_nat_target::get_tib_address)
7194 (windows_nat_target::thread_name)
7195 (windows_nat_target::thread_alive): Update.
7196 * nat/windows-nat.h (enum thread_disposition_type): Move from
7197 windows-nat.c.
7198 (thread_rec): Declare.
7199
4834dad0
TT
72002020-04-08 Tom Tromey <tromey@adacore.com>
7201
7202 * windows-nat.c: Add "using namespace".
7203 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7204 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7205
65bafd5b
TT
72062020-04-08 Tom Tromey <tromey@adacore.com>
7207
7208 * nat/windows-nat.h (struct windows_thread_info): Declare
7209 destructor.
7210 * nat/windows-nat.c (~windows_thread_info): New.
7211
0a4afda3
TT
72122020-04-08 Tom Tromey <tromey@adacore.com>
7213
7214 PR gdb/22992
7215 * windows-nat.c (current_event): Update comment.
7216 (last_wait_event, desired_stop_thread_id): New globals.
7217 (struct pending_stop): New.
7218 (pending_stops): New global.
7219 (windows_nat_target) <stopped_by_sw_breakpoint>
7220 <supports_stopped_by_sw_breakpoint>: New methods.
7221 (windows_fetch_one_register): Add assertions. Adjust PC.
7222 (windows_continue): Handle pending stops. Suspend other threads
7223 when stepping. Use last_wait_event
7224 (wait_for_debug_event): New function.
7225 (get_windows_debug_event): Use wait_for_debug_event. Handle
7226 pending stops. Queue spurious stops.
7227 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7228 (windows_nat_target::kill): Use wait_for_debug_event.
7229 * nat/windows-nat.h (struct windows_thread_info)
7230 <stopped_at_software_breakpoint>: New field.
7231 * nat/windows-nat.c (windows_thread_info::resume): Clear
7232 stopped_at_software_breakpoint.
7233
8e61ebec
TT
72342020-04-08 Tom Tromey <tromey@adacore.com>
7235
7236 * windows-nat.c (enum thread_disposition_type): New.
7237 (thread_rec): Replace "get_context" parameter with "disposition";
7238 change type.
7239 (windows_add_thread, windows_nat_target::fetch_registers)
7240 (windows_nat_target::store_registers, handle_exception)
7241 (windows_nat_target::resume, get_windows_debug_event)
7242 (windows_nat_target::get_tib_address)
7243 (windows_nat_target::thread_name)
7244 (windows_nat_target::thread_alive): Update.
7245
98a03287
TT
72462020-04-08 Tom Tromey <tromey@adacore.com>
7247
7248 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7249 (windows_continue): Use windows_continue::resume.
7250 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7251 resume>: Declare new methods.
7252 * nat/windows-nat.c: New file.
7253 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7254
7c7411bc
TT
72552020-04-08 Tom Tromey <tromey@adacore.com>
7256
7257 * windows-nat.c (windows_add_thread, windows_delete_thread)
7258 (windows_nat_target::fetch_registers)
7259 (windows_nat_target::store_registers, fake_create_process)
7260 (windows_nat_target::resume, windows_nat_target::resume)
7261 (get_windows_debug_event, windows_nat_target::wait)
7262 (windows_nat_target::pid_to_str)
7263 (windows_nat_target::get_tib_address)
7264 (windows_nat_target::get_ada_task_ptid)
7265 (windows_nat_target::thread_name)
7266 (windows_nat_target::thread_alive): Use lwp, not tid.
7267
2950fdf7
TT
72682020-04-08 Tom Tromey <tromey@adacore.com>
7269
7270 * windows-nat.c (handle_exception)
7271 (windows_nat_target::thread_name): Update.
7272 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7273 <name>: Now unique_xmalloc_ptr.
7274
62fe396b
TT
72752020-04-08 Tom Tromey <tromey@adacore.com>
7276
7277 * windows-nat.c (thread_rec)
7278 (windows_nat_target::fetch_registers): Update.
7279 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7280 Update comment.
7281 <debug_registers_changed, reload_context>: Now bool.
7282
e9534bd2
TT
72832020-04-08 Tom Tromey <tromey@adacore.com>
7284
7285 * windows-nat.c (windows_add_thread): Use new.
7286 (windows_init_thread_list, windows_delete_thread): Use delete.
7287 (get_windows_debug_event): Update.
7288 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7289 destructor, and initializers.
7290
ae1f8880
TT
72912020-04-08 Tom Tromey <tromey@adacore.com>
7292
7293 * windows-nat.c (struct windows_thread_info): Remove.
7294 * nat/windows-nat.h: New file.
7295
55a1e039
TT
72962020-04-08 Tom Tromey <tromey@adacore.com>
7297
7298 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7299 (thread_rec, windows_add_thread, windows_delete_thread)
7300 (windows_continue): Update.
7301
93366324
TT
73022020-04-08 Tom Tromey <tromey@adacore.com>
7303
7304 * windows-nat.c (struct windows_thread_info): Remove typedef.
7305 (thread_head): Remove.
7306 (thread_list): New global.
7307 (thread_rec, windows_add_thread, windows_init_thread_list)
7308 (windows_delete_thread, windows_continue): Update.
7309
0f2265e2
SM
73102020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7311
7312 * windows-tdep.h (windows_init_abi): Add comment.
7313 (cygwin_init_abi): New declaration.
7314 * windows-tdep.c: Split signal enumeration in two, one for
7315 Windows and one for Cygwin.
7316 (windows_gdb_signal_to_target): Only deal with signal of the
7317 Windows OS ABI.
7318 (cygwin_gdb_signal_to_target): New function.
7319 (windows_init_abi): Rename to windows_init_abi_common, don't set
7320 gdb_signal_to_target gdbarch method. Add new new function with
7321 this name.
7322 (cygwin_init_abi): New function.
7323 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7324 comment. Don't call windows_init_abi.
7325 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7326 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7327 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7328 i386_windows_init_abi_common, don't call windows_init_abi. Add
7329 a new function of this name.
7330 (i386_cygwin_init_abi): New function.
7331 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7332 OS ABI Cygwin.
7333
3810f182
SM
73342020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7335
7336 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7337 parameter.c.
7338 (dwarf2_read_gdb_index): Update.
7339
063f8e80
KR
73402020-04-07 Kamil Rytarowski <n54@gmx.com>
7341
7342 * nbsd-tdep.c: Include "objfiles.h".
7343 (nbsd_skip_solib_resolver): New.
7344 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7345
85a9510c 73462020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7347
7348 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7349 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7350 with DW_LLE_base_addressx are being emitted in DWARFv5.
7351 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7352 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7353 unsigned integer.
7354
9fc3eaae 73552020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7356
7357 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7358 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7359 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7360 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7361 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7362 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7363 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7364
7365
41144253 73662020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7367
7368 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7369 (read_loclist_index): New function definition.
7370 (lookup_loclist_base): New function definition.
7371 (read_loclist_header): New function definition.
7372 (dwarf2_cu): Add loclist_base and loclist_header field.
7373 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7374 (read_full_die_1): Read the value of DW_AT_loclists_base.
7375 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7376 (read_attribute_value): Handle DW_FORM_loclistx.
7377 (skip_one_die): Handle DW_FORM_loclistx.
7378 (loclist_header): New structure declaration.
7379 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7380
9f4e76a4
SM
73812020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7382
7383 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7384 constructor. Remove `addr` parameter from other constructor and
7385 add `per_cu` parameter.
7386 * dwarf2/read.c (create_partial_symtab): Update.
7387
25c11aca
TV
73882020-04-07 Tom de Vries <tdevries@suse.de>
7389
7390 PR symtab/25796
7391 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7392 (partial_die_info::fixup): Inherit has_const_value.
7393
5707e24b
TV
73942020-04-07 Tom de Vries <tdevries@suse.de>
7395
7396 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7397 symbols without address.
7398
05f00e22
KR
73992020-04-06 Kamil Rytarowski <n54@gmx.com>
7400
7401 * nbsd-nat.h (struct thread_info): Add forward declaration.
7402 (nbsd_nat_target::thread_alive): Add.
7403 (nbsd_nat_target::thread_name): Likewise.
7404 (nbsd_nat_target::update_thread_list): Likewise.
7405 (update_thread_list::post_attach): Likewise.
7406 (post_attach::pid_to_str): Likewise.
7407 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7408 (nbsd_thread_lister): Add.
7409 (nbsd_nat_target::thread_alive): Likewise.
7410 (nbsd_nat_target::thread_name): Likewise.
7411 (nbsd_add_threads): Likewise.
7412 (update_thread_list::post_attach): Likewise.
7413 (nbsd_nat_target::update_thread_list): Likewise.
7414 (post_attach::pid_to_str): Likewise.
7415
6ee448cc
TT
74162020-04-06 Tom Tromey <tromey@adacore.com>
7417
7418 * ada-valprint.c (print_variant_part): Extract the variant field.
7419 (print_field_values): Use the field as the outer value when
7420 recursing.
7421
dea34e8c
TT
74222020-04-06 Tom Tromey <tromey@adacore.com>
7423
7424 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7425 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7426 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7427 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7428 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7429
93689ce9
TT
74302020-04-06 Tom Tromey <tromey@adacore.com>
7431
7432 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7433 TYPE_CODE_ERROR.
7434
79743962
KR
74352020-04-06 Kamil Rytarowski <n54@gmx.com>
7436
7437 * nbsd-tdep.c: Include "gdbarch.h".
7438 Define enum with NetBSD signal numbers.
7439 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7440 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7441 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7442 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7443 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7444 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7445 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7446 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7447 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7448 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7449 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7450 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7451
9e7c9a03
HD
74522020-04-03 Hannes Domani <ssbssa@yahoo.de>
7453
7454 PR gdb/25325
7455 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7456
d9e49b61
TT
74572020-04-03 Tom Tromey <tromey@adacore.com>
7458
7459 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7460 Read constant block.
7461
e0fc5c3f
SM
74622020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7463
7464 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7465 (gdb_bfd_get_full_section_contents): New declaration.
7466 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7467 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7468 gdb_bfd_get_full_section_contents.
7469
e2ff18a0
SM
74702020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7471
7472 * exec.c (build_section_table): Replace internal_error with
7473 gdb_assert.
7474 (section_table_xfer_memory_partial): Likewise.
7475 * mdebugread.c (parse_partial_symbols): Likewise.
7476 * psymtab.c (lookup_partial_symbol): Likewise.
7477 * utils.c (wrap_here): Likewise.
7478
0830d301
TT
74792020-04-02 Tom Tromey <tromey@adacore.com>
7480
7481 * f-lang.c (build_fortran_types): Use arch_type to initialize
7482 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7483
e7da7f8f
TT
74842020-04-02 Tom Tromey <tromey@adacore.com>
7485
7486 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7487 of attributes.
7488
c90d28ac
AB
74892020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7490 Bernd Edlinger <bernd.edlinger@hotmail.de>
7491 Tom Tromey <tromey@adacore.com>
7492
7493 * buildsym.c (buildsym_compunit::record_line): Remove
7494 deduplication code.
7495
1aa98955
TV
74962020-04-02 Tom de Vries <tdevries@suse.de>
7497
7498 PR ada/24671
7499 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7500
d3214198
TV
75012020-04-02 Tom de Vries <tdevries@suse.de>
7502
7503 * dwarf2/read.c (dwarf2_gdb_index_functions,
7504 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7505 NULL.
7506 * psymtab.c (psym_lookup_global_symbol_language): New function.
7507 (psym_functions): Init psym_lookup_global_symbol_language with
7508 psym_lookup_global_symbol_language.
7509 * symfile-debug.c (debug_sym_quick_functions): Init
7510 lookup_global_symbol_language with NULL.
7511 * symfile.c (set_initial_language): Remove fixme comment.
7512 * symfile.h (struct quick_symbol_functions): Add
7513 lookup_global_symbol_language.
7514 * symtab.c (find_quick_global_symbol_language): New function.
7515 (find_main_name): Use find_quick_global_symbol_language.
7516
2836752f
SM
75172020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7518
7519 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7520
64dc2d4b
BE
75212020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7522
7523 * buildsym.c (record_line): Fix undefined behavior and preserve
7524 lines at eof.
7525
bbe3dc41
BE
75262020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7527
7528 * buildsym.c (record_line): Fix the resizing condition.
7529
6b4a335b
TT
75302020-04-01 Tom Tromey <tom@tromey.com>
7531
7532 * value.h (value_literal_complex): Add comment.
7533 * valops.c (value_literal_complex): Refer to value.h.
7534
3638a098
TT
75352020-04-01 Tom Tromey <tom@tromey.com>
7536
7537 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7538 (scalar_type): New rule, from typebase.
7539 (typebase): Use scalar_type. Recognize complex types.
7540 (field_name): Handle FLOAT_KEYWORD.
7541 (ident_tokens): Add _Complex and __complex__.
7542
c34e8714
TT
75432020-04-01 Tom Tromey <tom@tromey.com>
7544
7545 PR exp/25299:
7546 * valarith.c (promotion_type, complex_binop): New functions.
7547 (scalar_binop): Handle complex numbers. Use promotion_type.
7548 (value_pos, value_neg, value_complement): Handle complex numbers.
7549
fa649bb7
TT
75502020-04-01 Tom Tromey <tom@tromey.com>
7551
7552 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7553 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7554 (parse_number): Handle complex numbers.
7555
981c08ce
TT
75562020-04-01 Tom Tromey <tom@tromey.com>
7557
7558 * c-valprint.c (c_decorations): Change complex suffix to "i".
7559
4c99290d
TT
75602020-04-01 Tom Tromey <tom@tromey.com>
7561
7562 * valprint.c (generic_value_print_complex): Use accessors.
7563 * value.h (value_real_part, value_imaginary_part): Declare.
7564 * valops.c (value_real_part, value_imaginary_part): New
7565 functions.
7566 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7567
5b930b45
TT
75682020-04-01 Tom Tromey <tom@tromey.com>
7569
7570 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7571 (read_range_type): Update.
7572 * mdebugread.c (basic_type): Update.
7573 * go-lang.c (build_go_types): Use init_complex_type.
7574 * gdbtypes.h (struct main_type) <complex_type>: New member.
7575 (init_complex_type): Update.
7576 (arch_complex_type): Don't declare.
7577 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7578 Make name if none given. Use alloc_type_copy. Look for cached
7579 complex type.
7580 (arch_complex_type): Remove.
7581 (gdbtypes_post_init): Use init_complex_type.
7582 * f-lang.c (build_fortran_types): Use init_complex_type.
7583 * dwarf2/read.c (read_base_type): Update.
7584 * d-lang.c (build_d_types): Use init_complex_type.
7585 * ctfread.c (read_base_type): Update.
7586
53cccef1
TBA
75872020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7588
7589 * infrun.c (stop_all_threads): Update assertion, plus when
7590 stopping threads, take into account that we might be trying
7591 to stop an all-stop target.
7592 (stop_waiting): Call 'stop_all_threads' if there exists a
7593 non-stop target.
7594
a0714d30
TBA
75952020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7596
7597 * target.h (exists_non_stop_target): New function declaration.
7598 * target.c (exists_non_stop_target): New function.
7599
60e22c1e
HD
76002020-04-01 Hannes Domani <ssbssa@yahoo.de>
7601
7602 PR gdb/24789
7603 * eval.c (is_integral_or_integral_reference): New function.
7604 (evaluate_subexp_standard): Allow integer references in
7605 pointer arithmetic.
7606
e139a727
TBA
76072020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7608
7609 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7610 check for no ptid in the stop reply when the target is non-stop.
7611
e0802d59
TT
76122020-04-01 Tom Tromey <tromey@adacore.com>
7613
7614 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7615 "name" parameter to rvalue reference. Initialize m_name_holder.
7616 <lookup_name_info>: New overloads.
7617 <name>: Return gdb::string_view.
7618 <c_str>: New method.
7619 <make_ignore_params>: Update.
7620 <search_name_hash>: Update.
7621 <language_lookup_name>: Return const char *.
7622 <m_name>: Change type.
7623 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7624 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7625 (lookup_name_info::match_any): Update.
7626 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7627 Update.
7628 * minsyms.c (linkage_name_str): Update.
7629 * language.c (default_symbol_name_matcher): Update.
7630 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7631 Update.
7632 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7633 (ada_lookup_name_info::ada_lookup_name_info): Update.
7634 (literal_symbol_name_matcher): Update.
7635
8c072cb6
TT
76362020-04-01 Tom Tromey <tromey@adacore.com>
7637
7638 * psymtab.c (psymtab_search_name): Remove function.
7639 (psym_lookup_symbol): Create search name and lookup name here.
7640 (lookup_partial_symbol): Remove "name" parameter; add
7641 lookup_name.
7642 (psym_expand_symtabs_for_function): Update.
7643
6f29a534
TT
76442020-03-31 Joel Jones <joelkevinjones@gmail.com>
7645
7646 PR tui/25597:
7647 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7648
af62665e
TT
76492020-03-31 Tom Tromey <tromey@adacore.com>
7650
7651 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7652 memcpy.
7653
d1a89da5
NC
76542020-03-30 Nelson Chu <nelson.chu@sifive.com>
7655
7656 * features/riscv/32bit-csr.xml: Regenerated.
7657 * features/riscv/64bit-csr.xml: Regenerated.
7658
d8af9068
TT
76592020-03-30 Tom Tromey <tromey@adacore.com>
7660
7661 * ada-valprint.c (print_variant_part): Update.
7662 * ada-lang.h (ada_which_variant_applies): Update.
7663 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7664 outer_valaddr parameters; replace with "outer" value parameter.
7665 (to_fixed_variant_branch_type): Update.
7666
227c0bf4
PFC
76672020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7668
7669 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7670 <list>. Remove inclusion of observable.h.
7671 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7672 (struct arch_lwp_info): New struct.
7673 (class ppc_linux_dreg_interface): New class.
7674 (struct ppc_linux_process_info): New struct.
7675 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7676 <low_new_clone, low_forget_process, low_prepare_to_resume>
7677 <copy_thread_dreg_state, mark_thread_stale>
7678 <mark_debug_registers_changed, register_hw_breakpoint>
7679 <clear_hw_breakpoint, register_wp, clear_wp>
7680 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7681 <num_memory_accesses, get_trigger_type>
7682 <create_watchpoint_request, hwdebug_point_cmp>
7683 <init_arch_lwp_info, get_arch_lwp_info>
7684 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7685 methods.
7686 <struct ptid_hash>: New inner struct.
7687 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7688 members.
7689 (saved_dabr_value, hwdebug_info, max_slots_number)
7690 (struct hw_break_tuple, struct thread_points, ppc_threads)
7691 (have_ptrace_hwdebug_interface)
7692 (hwdebug_find_thread_points_by_tid)
7693 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7694 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7695 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7696 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7697 use m_dreg_interface.
7698 (hwdebug_point_cmp): Change to...
7699 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7700 reference arguments instead of pointers.
7701 (ppc_linux_nat_target::ranged_break_num_registers): Use
7702 m_dreg_interface.
7703 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7704 m_dreg_interface. Call register_hw_breakpoint.
7705 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7706 m_dreg_interface. Call clear_hw_breakpoint.
7707 (get_trigger_type): Change to...
7708 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7709 comment.
7710 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7711 use m_dreg_interface. Call register_hw_breakpoint.
7712 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7713 use m_dreg_interface. Call clear_hw_breakpoint.
7714 (can_use_watchpoint_cond_accel): Change to...
7715 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7716 method. Update comment, use m_dreg_interface and
7717 m_process_info.
7718 (calculate_dvc): Change to...
7719 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7720 m_dreg_interface.
7721 (num_memory_accesses): Change to...
7722 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7723 (check_condition): Change to...
7724 (ppc_linux_nat_target::check_condition): ...this method.
7725 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7726 comment, use m_dreg_interface.
7727 (create_watchpoint_request): Change to...
7728 (ppc_linux_nat_target::create_watchpoint_request): ...this
7729 method. Use m_dreg_interface.
7730 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7731 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7732 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7733 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7734 (ppc_linux_nat_target::low_forget_process)
7735 (ppc_linux_nat_target::low_new_fork)
7736 (ppc_linux_nat_target::low_new_clone)
7737 (ppc_linux_nat_target::low_delete_thread)
7738 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7739 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7740 only call mark_thread_stale.
7741 (ppc_linux_thread_exit): Remove.
7742 (ppc_linux_nat_target::stopped_data_address): Change to...
7743 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7744 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7745 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7746 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7747 comment. Call low_stopped_data_address.
7748 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7749 m_dreg_interface.
7750 (ppc_linux_nat_target::masked_watch_num_registers): Use
7751 m_dreg_interface.
7752 (ppc_linux_nat_target::copy_thread_dreg_state)
7753 (ppc_linux_nat_target::mark_thread_stale)
7754 (ppc_linux_nat_target::mark_debug_registers_changed)
7755 (ppc_linux_nat_target::register_hw_breakpoint)
7756 (ppc_linux_nat_target::clear_hw_breakpoint)
7757 (ppc_linux_nat_target::register_wp)
7758 (ppc_linux_nat_target::clear_wp)
7759 (ppc_linux_nat_target::init_arch_lwp_info)
7760 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7761 (_initialize_ppc_linux_nat): Remove observer callback.
7762
4db10d8f
PFC
77632020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7764
7765 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7766 (ppc_linux_nat_target::auxv_parse)
7767 (ppc_linux_nat_target::read_description)
7768 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7769 Move up.
7770
1310c1b0
PFC
77712020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7772
7773 * linux-nat.h (low_new_clone): New method.
7774 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7775
69b037c3
SM
77762020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7777
7778 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7779 (dbx_expand_psymtab): ... this.
7780 (start_psymtab): Update.
7781 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7782 (mdebug_expand_psymtab): ... this.
7783 (parse_partial_symbols): Update.
7784 (new_psymtab): Update.
7785 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7786 (xcoff_expand_psymtab): ... this.
7787 (xcoff_start_psymtab): Update.
7788
48993951
SM
77892020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7790
7791 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7792 <expand_dependencies>: ... this.
7793 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7794 (partial_symtab::expand_dependencies): ... this.
7795 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7796 Update.
7797 (dwarf2_psymtab::expand_psymtab): Update.
7798 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7799 * mdebugread.c (psymtab_to_symtab_1): Update.
7800 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7801
3ad83046
SM
78022020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7803
7804 * psympriv.h (discard_psymtab): Remove.
7805 * dbxread.c (dbx_end_psymtab): Update.
7806 * xcoffread.c (xcoff_end_psymtab): Update.
7807
4d1b9ab6
TT
78082020-03-28 Tom Tromey <tom@tromey.com>
7809
7810 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7811 comment.
7812
f1749218
TT
78132020-03-28 Tom Tromey <tom@tromey.com>
7814
7815 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7816
ebea7626
HD
78172020-03-27 Hannes Domani <ssbssa@yahoo.de>
7818
7819 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7820
a879b4d5
JB
78212020-03-26 John Baldwin <jhb@FreeBSD.org>
7822
7823 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7824
0826b30a
TT
78252020-03-26 Tom Tromey <tom@tromey.com>
7826
7827 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7828 (mark_common_block_symbol_computed, read_tag_string_type)
7829 (attr_to_dynamic_prop, read_subrange_type): Update.
7830 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7831 to be methods on struct attribute.
7832 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7833 (read_call_site_scope, partial_die_info::read)
7834 (partial_die_info::read, lookup_die_type, follow_die_ref):
7835 Update.
7836 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7837 from dwarf2_get_ref_die_offset.
7838 (attribute::constant_value): New method, from
7839 dwarf2_get_attr_constant_value.
7840 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7841 Declare method.
7842 <constant_value>: New method.
7843
2b2558bf
TT
78442020-03-26 Tom Tromey <tom@tromey.com>
7845
7846 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7847 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7848 (dwarf_type_encoding_name): Move to stringify.c.
7849 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7850 * dwarf2/stringify.c: New file.
7851 * dwarf2/stringify.h: New file.
7852
eeb64781
TT
78532020-03-26 Tom Tromey <tom@tromey.com>
7854
7855 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7856 Rewrite.
7857
a39fdb41
TT
78582020-03-26 Tom Tromey <tom@tromey.com>
7859
7860 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7861 methods.
7862 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7863 (lookup_ranges_base): Likewise.
7864 (read_cutu_die_from_dwo, read_full_die_1): Update.
7865
436c571c
TT
78662020-03-26 Tom Tromey <tom@tromey.com>
7867
7868 * dwarf2/read.c (read_import_statement, read_file_scope)
7869 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7870 (read_lexical_block_scope, read_call_site_scope)
7871 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7872 (handle_struct_member_die, process_structure_scope)
7873 (update_enumeration_type_from_children)
7874 (process_enumeration_scope, read_array_type, read_common_block)
7875 (read_namespace, read_module, read_subroutine_type): Update.
7876 (sibling_die): Remove.
7877
052c8bb8
TT
78782020-03-26 Tom Tromey <tom@tromey.com>
7879
7880 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7881 (build_type_psymtabs_reader, read_structure_type)
7882 (read_enumeration_type, read_full_die_1): Update.
7883 (dwarf2_attr_no_follow): Move to die.h.
7884 * dwarf2/die.h (struct die_info) <attr>: New method.
7885
2b24b6e4
TT
78862020-03-26 Tom Tromey <tom@tromey.com>
7887
7888 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7889 <base_address>: Now an optional.
7890 (dwarf2_find_base_address, dwarf2_rnglists_process)
7891 (dwarf2_ranges_process, fill_in_loclist_baton)
7892 (dwarf2_symbol_mark_computed): Update.
7893
c2d50fd0
TT
78942020-03-26 Tom Tromey <tom@tromey.com>
7895
7896 * dwarf2/read.c (struct die_info): Move to die.h.
7897 * dwarf2/die.h: New file.
7898
0df7ad3a
TT
78992020-03-26 Tom Tromey <tom@tromey.com>
7900
7901 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7902 * dwarf2/read.c
7903 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7904 Move to line-header.c.
7905 (read_checked_initial_length_and_offset, read_formatted_entries):
7906 Likewise.
7907 (dwarf_decode_line_header): Split into two.
7908 * dwarf2/line-header.c
7909 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7910 Move from read.c.
7911 (read_checked_initial_length_and_offset, read_formatted_entries):
7912 Likewise.
7913 (dwarf_decode_line_header): New function, split from read.c.
7914
86c0bb4c
TT
79152020-03-26 Tom Tromey <tom@tromey.com>
7916
7917 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7918 Declare method.
7919 * dwarf2/read.c (read_attribute_value): Update.
7920 (dwarf2_per_objfile::read_line_string): Rename from
7921 read_indirect_line_string.
7922 (read_formatted_entries): Update.
7923
2ef46c2f
TT
79242020-03-26 Tom Tromey <tom@tromey.com>
7925
7926 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7927 variable.
7928
4f9c1eda
TT
79292020-03-26 Tom Tromey <tom@tromey.com>
7930
7931 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7932 const.
7933 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7934 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7935 parameter const.
7936
5a0e026f
TT
79372020-03-26 Tom Tromey <tom@tromey.com>
7938
7939 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7940 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7941 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7942 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7943
8844c11b
TT
79442020-03-26 Tom Tromey <tom@tromey.com>
7945
7946 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7947 file_names_size, file_full_name, file_file_name>: Use const.
7948 <file_name_at, file_names>: Add const overload.
7949 * dwarf2/line-header.c (line_header::file_file_name)
7950 (line_header::file_full_name): Update.
7951
c90ec28a
TT
79522020-03-26 Tom Tromey <tom@tromey.com>
7953
7954 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7955 (macro_start_file, consume_improper_spaces)
7956 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7957 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7958 (dwarf_decode_macros): Move to macro.c.
7959 * dwarf2/macro.c: New file.
7960 * dwarf2/macro.h: New file.
7961 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7962
4f44ae6c
TT
79632020-03-26 Tom Tromey <tom@tromey.com>
7964
7965 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7966 method.
7967 * dwarf2/section.c: New method. From
7968 read_indirect_string_at_offset_from.
7969 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7970 (read_indirect_string_at_offset_from): Move to section.c.
7971 (read_indirect_string_at_offset): Rewrite.
7972 (read_indirect_line_string_at_offset): Remove.
7973 (read_indirect_string, read_indirect_line_string)
7974 (dwarf_decode_macro_bytes): Update.
7975
a0194fa8
TT
79762020-03-26 Tom Tromey <tom@tromey.com>
7977
7978 * dwarf2/section.h (struct dwarf2_section_info)
7979 <overload_complaint>: Declare.
7980 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7981 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7982 Rename from dwarf2_section_buffer_overflow_complaint.
7983 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7984 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7985
3d27bbdb
TT
79862020-03-26 Tom Tromey <tom@tromey.com>
7987
7988 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7989 Declare.
7990 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7991 Move from read.c.
7992 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7993 to section.c.
7994
9eac9650
TT
79952020-03-26 Tom Tromey <tom@tromey.com>
7996
7997 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7998
bf80d710
TT
79992020-03-26 Tom Tromey <tom@tromey.com>
8000
8001 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
8002 "builder".
8003 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
8004 parameter.
8005 (dwarf_decode_macros): Update.
8006
0314b390
TT
80072020-03-26 Tom Tromey <tom@tromey.com>
8008
8009 * dwarf2/read.c (read_attribute_value): Update.
8010 (read_indirect_string_from_dwz): Move to dwz.c; change into
8011 method.
8012 (dwarf_decode_macro_bytes): Update.
8013 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
8014 * dwarf2/dwz.c: New file.
8015 * Makefile.in (COMMON_SFILES): Add dwz.c.
8016
9fda78b6
TT
80172020-03-26 Tom Tromey <tom@tromey.com>
8018
8019 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
8020 * dwarf2/read.c: Add include.
8021 * dwarf2/index-write.c: Add include.
8022 * dwarf2/index-cache.c: Add include.
8023 * dwarf2/dwz.h: New file.
8024
33aa3c10
TT
80252020-03-25 Tom Tromey <tom@tromey.com>
8026
8027 * compile/compile-object-load.c (get_out_value_type): Mention
8028 correct symbol name in error message.
8029
d503b685
HD
80302020-03-25 Hannes Domani <ssbssa@yahoo.de>
8031
8032 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8033
7b1eff95
TV
80342020-03-25 Tom de Vries <tdevries@suse.de>
8035
8036 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
8037 * symmisc.c (dump_symtab_1): Print user and includes fields.
8038 (maintenance_info_symtabs): Same.
8039
dd895392
AB
80402020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
8041
8042 PR gdb/25534
8043 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
8044 (riscv_regcache_cooked_write): New function.
8045 (riscv_push_dummy_call): Use new function.
8046 (riscv_return_value): Likewise.
8047
5ab2fbf1
SM
80482020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8049
8050 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
8051 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
8052 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8053 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8054 * infrun.c (follow_fork): Likewise.
8055 (follow_fork_inferior): Likewise.
8056 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8057 * linux-nat.h (class linux_nat_target): Likewise.
8058 * remote.c (class remote_target) <follow_fork>: Likewise.
8059 (remote_target::follow_fork): Likewise.
8060 * target-delegates.c: Re-generate.
8061 * target.c (default_follow_fork): Likewise.
8062 (target_follow_fork): Likewise.
8063 * target.h (struct target_ops) <follow_fork>: Likewise.
8064 (target_follow_fork): Likewise.
8065
a64fafb5
TV
80662020-03-24 Tom de Vries <tdevries@suse.de>
8067
8068 * psymtab.c (maintenance_info_psymtabs): Print user field.
8069
fe26d3a3
TT
80702020-03-20 Tom Tromey <tromey@adacore.com>
8071
8072 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8073 const.
8074 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8075 const.
8076
c884cc46
SM
80772020-03-20 Simon Marchi <simon.marchi@efficios.com>
8078
8079 * ptrace.m4: Don't check for ptrace declaration.
8080 * config.in: Re-generate.
8081 * configure: Re-generate.
8082 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8083 not defined.
8084
1ff700c2
KR
80852020-03-20 Kamil Rytarowski <n54@gmx.com>
8086
8087 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8088 `PTRACE_TYPE_RET'.
8089 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8090 * sparc-nat.c (gdb_ptrace): Likewise.
8091 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8092
f7d4f0b1
TT
80932020-03-20 Tom Tromey <tromey@adacore.com>
8094
8095 * c-exp.y (lex_one_token): Fix assert.
8096
f67210ff
TT
80972020-03-20 Tom Tromey <tromey@adacore.com>
8098
8099 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8100 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8101 strncpy call.
8102
1773be9e
TT
81032020-03-20 Tom Tromey <tromey@adacore.com>
8104
8105 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8106
70304be9
TT
81072020-03-20 Tom Tromey <tromey@adacore.com>
8108
8109 * ada-valprint.c (print_variant_part): Remove parameters; switch
8110 to value-based API.
8111 (print_field_values): Likewise.
8112 (ada_val_print_struct_union): Likewise.
8113 (ada_value_print_1): Update.
8114
9faa006d
KR
81152020-03-20 Kamil Rytarowski <n54@gmx.com>
8116
8117 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8118 nbsd_nat_target instead of inf_ptrace_target.
8119 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8120 nbsd_nat_target.
8121
4a90f062
KR
81222020-03-20 Kamil Rytarowski <n54@gmx.com>
8123
8124 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8125 it to the ptrace call.
8126 * (store_registers): Likewise.
8127
81282020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
8129
8130 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8131 it to the ptrace call.
8132 * (store_registers): Likewise.
8133
2d07da27
LM
81342020-03-19 Luis Machado <luis.machado@linaro.org>
8135
8136 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8137 valid, fetch vg value from ptrace.
8138
f09db380
KR
81392020-03-19 Kamil Rytarowski <n54@gmx.com>
8140 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8141 * inf-ptrace.c: Likewise.
8142 * (gdb_ptrace): Add.
8143 * (inf_ptrace_target::resume): Update.
8144 * (inf_ptrace_target::xfer_partial): Likewise.
8145 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8146 * (inf_ptrace_peek_poke): Update.
8147
fcc7376e
KR
81482020-03-19 Kamil Rytarowski <n54@gmx.com>
8149
8150 * x86-bsd-nat.c (gdb_ptrace): New.
8151 * (x86bsd_dr_set): Add new argument `ptid'.
8152 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8153 x86bsd_dr_set_addr): Update.
8154
cada5fc9
AB
81552020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8156
8157 * remote.c (remote_target::process_stop_reply): Handle events for
8158 all threads differently.
8159
19a2740f
AB
81602020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8161
8162 * completer.c (completion_tracker::remove_completion): Define new
8163 function.
8164 * completer.h (completion_tracker::remove_completion): Declare new
8165 function.
8166 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8167 when adding a C++ function symbol.
8168
724fd9ba
AB
81692020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8170
8171 * completer.c (completion_tracker::completion_hash_entry): Define
8172 new class.
8173 (advance_to_filename_complete_word_point): Call
8174 recompute_lowest_common_denominator.
8175 (completion_tracker::completion_tracker): Call discard_completions
8176 to setup the hash table.
8177 (completion_tracker::discard_completions): Allow for being called
8178 from the constructor, pass new equal function, and element deleter
8179 when constructing the hash table. Initialise new class member
8180 variables.
8181 (completion_tracker::maybe_add_completion): Remove use of
8182 m_entries_vec, and store more information into m_entries_hash.
8183 (completion_tracker::recompute_lcd_visitor): New function, most
8184 content taken from...
8185 (completion_tracker::recompute_lowest_common_denominator):
8186 ...here, this now just visits each item in the hash calling the
8187 above visitor.
8188 (completion_tracker::build_completion_result): Remove use of
8189 m_entries_vec, call recompute_lowest_common_denominator.
8190 * completer.h (completion_tracker::have_completions): Remove use
8191 of m_entries_vec.
8192 (completion_tracker::completion_hash_entry): Declare new class.
8193 (completion_tracker::recompute_lowest_common_denominator): Change
8194 function signature.
8195 (completion_tracker::recompute_lcd_visitor): Declare new function.
8196 (completion_tracker::m_entries_vec): Delete.
8197 (completion_tracker::m_entries_hash): Initialize to NULL.
8198 (completion_tracker::m_lowest_common_denominator_valid): New
8199 member variable.
8200 (completion_tracker::m_lowest_common_denominator_max_length): New
8201 member variable.
8202
5a82b8a1
KR
82032020-03-17 Kamil Rytarowski <n54@gmx.com>
8204
8205 * regformats/regdef.h: Put reg in gdb namespace.
8206
fb516a69
KR
82072020-03-17 Kamil Rytarowski <n54@gmx.com>
8208
8209 * i386-bsd-nat.c (gdb_ptrace): New.
8210 * (i386bsd_fetch_inferior_registers,
8211 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8212 * (i386bsd_fetch_inferior_registers,
8213 i386bsd_store_inferior_registers) Use gdb_ptrace.
8214
1c0aa1fb
KR
82152020-03-17 Kamil Rytarowski <n54@gmx.com>
8216
8217 * amd64-bsd-nat.c (gdb_ptrace): New.
8218 * (amd64bsd_fetch_inferior_registers,
8219 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8220 * (amd64bsd_fetch_inferior_registers,
8221 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8222
5ccd2fb7
KR
82232020-03-17 Kamil Rytarowski <n54@gmx.com>
8224
8225 * user-regs.c (user_reg::read): Rename to...
8226 (user_reg::xread): ...this.
8227 * (append_user_reg): Rename argument `read' to `xread'.
8228 * (user_reg_add_builtin): Likewise.
8229 * (user_reg_add): Likewise.
8230 * (value_of_user_reg): Likewise.
8231
2108a63a
KR
82322020-03-17 Kamil Rytarowski <n54@gmx.com>
8233
8234 * sparc-nat.c (gdb_ptrace): New.
8235 * sparc-nat.c (sparc_fetch_inferior_registers)
8236 (sparc_store_inferior_registers) Remove obsolete comment.
8237 * sparc-nat.c (sparc_fetch_inferior_registers)
8238 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8239 * sparc-nat.c (sparc_fetch_inferior_registers)
8240 (sparc_store_inferior_registers) Use gdb_ptrace.
8241
a225c9a8
KR
82422020-03-17 Kamil Rytarowski <n54@gmx.com>
8243
8244 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8245 it to the ptrace call.
8246 * sh-nbsd-nat.c (store_registers): Likewise.
8247
98097623
KR
82482020-03-17 Kamil Rytarowski <n54@gmx.com>
8249
8250 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8251 nbsd_nat_target instead of inf_ptrace_target.
8252 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8253 nbsd_nat_target.
8254
9e38d619
KR
82552020-03-17 Kamil Rytarowski <n54@gmx.com>
8256
8257 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8258
a2ecbe9f
KR
82592020-03-17 Kamil Rytarowski <n54@gmx.com>
8260
8261 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8262 <sys/sysctl.h>.
8263 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8264
58990295
TV
82652020-03-17 Tom de Vries <tdevries@suse.de>
8266
8267 PR gdb/23710
8268 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8269 fields.
8270 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8271 fields.
8272 (process_imported_unit_die): Skip import of c++ CUs.
8273
771dd3a8
TT
82742020-03-16 Tom Tromey <tom@tromey.com>
8275
8276 * p-valprint.c (pascal_object_print_value): Initialize
8277 base_value.
8278
817a7585
AK
82792020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8280 Shahab Vahedi <shahab@synopsys.com>
8281
8282 * Makefile.in: Add arch/arc.o
8283 * configure.tgt: Likewise.
8284 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8285 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 8286 (arc_read_description): New function to cache target descriptions.
817a7585
AK
8287 * arc-tdep.h (arc_read_description): Add proto type.
8288 * arch/arc.c: New file.
8289 * arch/arc.h: Likewise.
8290 * features/Makefile: Replace old target descriptions with new.
8291 * features/arc-arcompact.c: Remove.
8292 * features/arc-arcompact.xml: Likewise.
8293 * features/arc-v2.c: Likewise
8294 * features/arc-v2.xml: Likewise
8295 * features/arc/aux-arcompact.xml: New file.
8296 * features/arc/aux-v2.xml: Likewise.
8297 * features/arc/core-arcompact.xml: Likewise.
8298 * features/arc/core-v2.xml: Likewise.
8299 * features/arc/aux-arcompact.c: Generate.
8300 * features/arc/aux-v2.c: Likewise.
8301 * features/arc/core-arcompact.c: Likewise.
8302 * features/arc/core-v2.c: Likewise.
8303 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8304
67430cd0
TT
83052020-03-16 Tom Tromey <tromey@adacore.com>
8306
8307 PR gdb/25663:
8308 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8309 putting value into bcache.
8310
30efb6c7
SM
83112020-03-16 Simon Marchi <simon.marchi@efficios.com>
8312
8313 PR gdb/21500
8314 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8315 to...
8316 (amd64_windows_init_abi_common): ... this. Don't set size of
8317 long type.
8318 (amd64_windows_init_abi): New function.
8319 (amd64_cygwin_init_abi): New function.
8320 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8321 the Cygwin OS ABI.
8322 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8323 comment.
8324
8db52437
SM
83252020-03-16 Simon Marchi <simon.marchi@efficios.com>
8326
8327 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8328 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8329 (pe_import_directory_entry): New struct type.
8330 (is_linked_with_cygwin_dll): New function.
8331 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8332 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8333 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8334
5982a56a
SM
83352020-03-16 Simon Marchi <simon.marchi@efficios.com>
8336
8337 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8338 i386_cygwin_core_osabi_sniffer.
8339
7a1998df
SM
83402020-03-16 Simon Marchi <simon.marchi@efficios.com>
8341
8342 * i386-cygwin-tdep.c: Rename to...
8343 * i386-windows-tdep.c: ... this.
8344 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8345 i386-windows-tdep.c.
8346 * configure.tgt: Likewise.
8347
053205cc
SM
83482020-03-16 Simon Marchi <simon.marchi@efficios.com>
8349
8350 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8351 * osabi.c (gdb_osabi_names): Add "Windows".
8352 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8353 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8354 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8355 i386_cygwin_osabi_sniffer.
8356 (_initialize_i386_cygwin_tdep): Register OS ABI
8357 GDB_OSABI_WINDOWS for i386.
8358 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8359 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8360 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8361 for x86-64.
8362 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8363 when the target matches '*-*-mingw*'.
8364
fe4b2ee6
SM
83652020-03-16 Simon Marchi <simon.marchi@efficios.com>
8366
8367 * defs.h (enum gdb_osabi): Move to...
8368 * osabi.h (enum gdb_osabi): ... here.
8369 * gdbarch.sh: Include osabi.h in gdbarch.h.
8370 * gdbarch.h: Re-generate.
8371
cb9b645d
SM
83722020-03-16 Simon Marchi <simon.marchi@efficios.com>
8373
8374 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8375 function.
8376 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8377
3293bbaf
TT
83782020-03-14 Tom Tromey <tom@tromey.com>
8379
8380 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8381 for C++.
8382 (c_type_print_modifier): Likewise. Add "language" parameter.
8383 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8384 (c_type_print_base_1): Update.
8385 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8386 constants.
8387 * type-stack.c (type_stack::insert): Handle tp_atomic and
8388 tp_restrict.
8389 (type_stack::follow_type_instance_flags): Likewise.
8390 (type_stack::follow_types): Likewise. Merge type-following code.
8391 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8392 (space_identifier, cv_with_space_id)
8393 (const_or_volatile_or_space_identifier_noopt)
8394 (const_or_volatile_or_space_identifier): Remove.
8395 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8396 rules.
8397 (ptr_operator, typebase): Update.
8398 (enum token_flag) <FLAG_C>: New constant.
8399 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8400 "_Atomic".
8401 (lex_one_token): Handle FLAG_C.
8402
154151a6
KR
84032020-03-14 Kamil Rytarowski <n54@gmx.com>
8404
8405 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8406 it to the ptrace call.
8407 * m68k-bsd-nat.c (store_registers): Likewise.
8408
bc107784
KR
84092020-03-14 Kamil Rytarowski <n54@gmx.com>
8410
8411 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8412 gdb_byte *.
8413 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8414 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8415 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8416
01a80117
KR
84172020-03-14 Kamil Rytarowski <n54@gmx.com>
8418
8419 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8420 nbsd_nat_target instead of inf_ptrace_target.
8421 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8422 nbsd_nat_target.
8423
f90280ca
KR
84242020-03-14 Kamil Rytarowski <n54@gmx.com>
8425
8426 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8427 register_t.
8428
6def66f1
KR
84292020-03-14 Kamil Rytarowski <n54@gmx.com>
8430
8431 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8432 it to the ptrace call.
8433 * alpha-bsd-nat.c (store_registers): Likewise.
8434
66eaca97
KR
84352020-03-14 Kamil Rytarowski <n54@gmx.com>
8436
8437 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8438 includes.
8439 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8440 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8441 fill_fpregset): Likewise.
8442
4fed520b
KR
84432020-03-14 Kamil Rytarowski <n54@gmx.com>
8444
8445 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8446 nbsd_nat_target instead of inf_ptrace_target.
8447 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8448 nbsd_nat_target.
8449
2190cf06
KR
84502020-03-14 Kamil Rytarowski <n54@gmx.com>
8451
8452 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8453 register_t.
8454
75c56d3d
KR
84552020-03-14 Kamil Rytarowski <n54@gmx.com>
8456
8457 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8458 it to the ptrace call.
8459 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8460 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8461 * arm-nbsd-nat.c (store_register): Likewise.
8462 * arm-nbsd-nat.c (store_regs): Likewise.
8463 * arm-nbsd-nat.c (store_fp_register): Likewise.
8464 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8465
6018d381
KR
84662020-03-14 Kamil Rytarowski <n54@gmx.com>
8467
8468 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8469 nbsd_nat_target instead of inf_ptrace_target.
8470 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8471 nbsd_nat_target.
8472
013f99f0
KR
84732020-03-14 Kamil Rytarowski <n54@gmx.com>
8474
8475 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8476 it to the ptrace call.
8477 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8478
12753073
KR
84792020-03-14 Kamil Rytarowski <n54@gmx.com>
8480
6227b330
KR
8481 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8482 it to the ptrace call.
8483 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8484
84852020-03-14 Kamil Rytarowski <n54@gmx.com>
8486
8487 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8488 gdb_byte *.
12753073
KR
8489 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8490
d5be5fa4
KR
84912020-03-14 Kamil Rytarowski <n54@gmx.com>
8492
8493 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8494 instead of inf_ptrace_target.
8495 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8496 nbsd_nat_target.
8497
8110f842
KR
84982020-03-14 Kamil Rytarowski <n54@gmx.com>
8499
8500 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8501 register_t.
8502
52feded7
KR
85032020-03-14 Kamil Rytarowski <n54@gmx.com>
8504
8505 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8506 register_t.
8507
25567eee
KR
85082020-03-14 Kamil Rytarowski <n54@gmx.com>
8509
8510 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8511 register_t.
8512
426a9c18
TT
85132020-03-13 Tom Tromey <tom@tromey.com>
8514
8515 * value.h (val_print): Don't declare.
8516 * valprint.h (val_print_array_elements)
8517 (val_print_scalar_formatted, generic_val_print): Don't declare.
8518 * valprint.c (generic_val_print_array): Take a struct value.
8519 (generic_val_print_ptr, generic_val_print_memberptr)
8520 (generic_val_print_bool, generic_val_print_int)
8521 (generic_val_print_char, generic_val_print_complex)
8522 (generic_val_print): Remove.
8523 (generic_value_print): Update.
8524 (do_val_print): Remove unused parameters. Don't call
8525 la_val_print.
8526 (val_print): Remove.
8527 (common_val_print): Update. Don't call value_check_printable.
8528 (val_print_scalar_formatted, val_print_array_elements): Remove.
8529 * rust-lang.c (rust_val_print): Remove.
8530 (rust_language_defn): Update.
8531 * p-valprint.c (pascal_val_print): Remove.
8532 (pascal_value_print_inner): Update.
8533 (pascal_object_print_val_fields, pascal_object_print_val):
8534 Remove.
8535 (pascal_object_print_static_field): Update.
8536 * p-lang.h (pascal_val_print): Don't declare.
8537 * p-lang.c (pascal_language_defn): Update.
8538 * opencl-lang.c (opencl_language_defn): Update.
8539 * objc-lang.c (objc_language_defn): Update.
8540 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8541 * m2-lang.h (m2_val_print): Don't declare.
8542 * m2-lang.c (m2_language_defn): Update.
8543 * language.h (struct language_defn) <la_val_print>: Remove.
8544 * language.c (unk_lang_value_print_inner): Rename. Change
8545 argument types.
8546 (unknown_language_defn, auto_language_defn): Update.
8547 * go-valprint.c (go_val_print): Remove.
8548 * go-lang.h (go_val_print): Don't declare.
8549 * go-lang.c (go_language_defn): Update.
8550 * f-valprint.c (f_val_print): Remove.
8551 * f-lang.h (f_value_print): Don't declare.
8552 * f-lang.c (f_language_defn): Update.
8553 * d-valprint.c (d_val_print): Remove.
8554 * d-lang.h (d_value_print): Don't declare.
8555 * d-lang.c (d_language_defn): Update.
8556 * cp-valprint.c (cp_print_value_fields)
8557 (cp_print_value_fields_rtti, cp_print_value): Remove.
8558 (cp_print_static_field): Update.
8559 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8560 (c_val_print_struct, c_val_print_union, c_val_print_int)
8561 (c_val_print_memberptr, c_val_print): Remove.
8562 * c-lang.h (c_val_print_array, cp_print_value_fields)
8563 (cp_print_value_fields_rtti): Don't declare.
8564 * c-lang.c (c_language_defn, cplus_language_defn)
8565 (asm_language_defn, minimal_language_defn): Update.
8566 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8567 (ada_val_print_enum): Take a struct value.
8568 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8569 (ada_val_print): Remove.
8570 (ada_value_print_1): Update.
8571 (printable_val_type): Remove.
8572 * ada-lang.h (ada_val_print): Don't declare.
8573 * ada-lang.c (ada_language_defn): Update.
8574
42331a1e
TT
85752020-03-13 Tom Tromey <tom@tromey.com>
8576
8577 * valprint.c (do_val_print): Update.
8578 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8579 a struct value.
8580 (value_to_value_object_no_release): Declare.
8581 * python/py-value.c (value_to_value_object_no_release): New
8582 function.
8583 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8584 struct value.
8585 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8586 function.
8587 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8588 a struct value.
8589 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8590 Declare.
8591 (gdbscm_apply_val_pretty_printer): Take a struct value.
8592 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8593 value.
8594 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8595 value.
8596 * extension-priv.h (struct extension_language_ops)
8597 <apply_val_pretty_printer>: Take a struct value.
8598 * cp-valprint.c (cp_print_value): Create a struct value.
8599 (cp_print_value): Update.
8600
3a916a97
TT
86012020-03-13 Tom Tromey <tom@tromey.com>
8602
8603 * ada-valprint.c (print_field_values): Call common_val_print.
8604
b59eac37
TT
86052020-03-13 Tom Tromey <tom@tromey.com>
8606
8607 * ada-valprint.c (val_print_packed_array_elements): Remove
8608 bitoffset and val parameters. Call common_val_print.
8609 (ada_val_print_string): Remove offset, address, and original_value
8610 parameters.
8611 (ada_val_print_array): Update.
8612 (ada_value_print_array): New function.
8613 (ada_value_print_1): Call it.
8614
03371129
TT
86152020-03-13 Tom Tromey <tom@tromey.com>
8616
8617 * ada-valprint.c (ada_value_print): Use common_val_print.
8618
2e088f8b
TT
86192020-03-13 Tom Tromey <tom@tromey.com>
8620
8621 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8622
39ef85a8
TT
86232020-03-13 Tom Tromey <tom@tromey.com>
8624
8625 * ada-valprint.c (ada_value_print_num): New function.
8626 (ada_value_print_1): Use it.
8627
b9fa6e07
TT
86282020-03-13 Tom Tromey <tom@tromey.com>
8629
8630 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8631
416595d6
TT
86322020-03-13 Tom Tromey <tom@tromey.com>
8633
8634 * ada-valprint.c (ada_value_print_ptr): New function.
8635 (ada_value_print_1): Use it.
8636
5b5e15ec
TT
86372020-03-13 Tom Tromey <tom@tromey.com>
8638
8639 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8640 call common_val_print.
8641 (ada_val_print_1): Update.
8642 (ada_value_print_1): New function.
8643 (ada_value_print_inner): Rewrite.
8644
fbf54e75
TT
86452020-03-13 Tom Tromey <tom@tromey.com>
8646
8647 * cp-valprint.c (cp_print_value_fields): Update.
8648 (cp_print_value): New function.
8649
64b653ca
TT
86502020-03-13 Tom Tromey <tom@tromey.com>
8651
8652 * m2-valprint.c (m2_value_print_inner): Use
8653 cp_print_value_fields.
8654 * cp-valprint.c (cp_print_value_fields): New function.
8655 * c-valprint.c (c_value_print_struct): New function.
8656 (c_value_print_inner): Use c_value_print_struct.
8657 * c-lang.h (cp_print_value_fields): Declare.
8658
6999f067
TT
86592020-03-13 Tom Tromey <tom@tromey.com>
8660
8661 * c-valprint.c (c_value_print_array): New function.
8662 (c_value_print_inner): Use it.
8663
ce80b8bd
TT
86642020-03-13 Tom Tromey <tom@tromey.com>
8665
8666 * c-valprint.c (c_value_print_memberptr): New function.
8667 (c_value_print_inner): Use it.
8668
2faac269
TT
86692020-03-13 Tom Tromey <tom@tromey.com>
8670
8671 * c-valprint.c (c_value_print_int): New function.
8672 (c_value_print_inner): Use it.
8673
da3e2c29
TT
86742020-03-13 Tom Tromey <tom@tromey.com>
8675
8676 * c-valprint.c (c_value_print_ptr): New function.
8677 (c_value_print_inner): Use it.
8678
50836231
TT
86792020-03-13 Tom Tromey <tom@tromey.com>
8680
8681 * c-valprint.c (c_value_print_inner): Rewrite.
8682
4f412b6e
TT
86832020-03-13 Tom Tromey <tom@tromey.com>
8684
8685 * valprint.c (generic_value_print_complex): New function.
8686 (generic_value_print): Use it.
8687
f5354008
TT
86882020-03-13 Tom Tromey <tom@tromey.com>
8689
8690 * valprint.c (generic_val_print_float): Don't call
8691 val_print_scalar_formatted.
8692 (generic_val_print, generic_value_print): Update.
8693
3eec3b05
TT
86942020-03-13 Tom Tromey <tom@tromey.com>
8695
8696 * valprint.c (generic_value_print_char): New function
8697 (generic_value_print): Use it.
8698
fdddfccb
TT
86992020-03-13 Tom Tromey <tom@tromey.com>
8700
8701 * valprint.c (generic_value_print_int): New function.
8702 (generic_value_print): Use it.
8703
6dde7521
TT
87042020-03-13 Tom Tromey <tom@tromey.com>
8705
8706 * valprint.c (generic_value_print_bool): New function.
8707 (generic_value_print): Use it.
8708
4112d2e6
TT
87092020-03-13 Tom Tromey <tom@tromey.com>
8710
8711 * valprint.c (generic_val_print_func): Simplify.
8712 (generic_val_print, generic_value_print): Update.
8713
65786af6
TT
87142020-03-13 Tom Tromey <tom@tromey.com>
8715
8716 * valprint.c (generic_val_print_flags): Remove.
8717 (generic_val_print, generic_value_print): Update.
8718 (val_print_type_code_flags): Add original_value parameter.
8719
40f3ce18
TT
87202020-03-13 Tom Tromey <tom@tromey.com>
8721
8722 * valprint.c (generic_val_print): Update.
8723 (generic_value_print): Update.
8724 * valprint.c (generic_val_print_enum): Don't call
8725 val_print_scalar_formatted.
8726
2a5b130b
TT
87272020-03-13 Tom Tromey <tom@tromey.com>
8728
8729 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8730 * valprint.c (generic_value_print_ptr): New function.
8731
abc66ce9
TT
87322020-03-13 Tom Tromey <tom@tromey.com>
8733
8734 * valprint.c (generic_value_print): Rewrite.
8735
07a32858
TT
87362020-03-13 Tom Tromey <tom@tromey.com>
8737
8738 * p-valprint.c (pascal_object_print_value_fields)
8739 (pascal_object_print_value): New functions.
8740
64d64d3a
TT
87412020-03-13 Tom Tromey <tom@tromey.com>
8742
8743 * p-valprint.c (pascal_value_print_inner): Rewrite.
8744
6a95a1f5
TT
87452020-03-13 Tom Tromey <tom@tromey.com>
8746
8747 * f-valprint.c (f_value_print_innner): Rewrite.
8748
59fcdac6
TT
87492020-03-13 Tom Tromey <tom@tromey.com>
8750
8751 * m2-valprint.c (m2_print_unbounded_array): New overload.
8752 (m2_print_unbounded_array): Update.
8753 (m2_print_array_contents): Take a struct value.
8754 (m2_value_print_inner): Rewrite.
8755
d133c3e1
TT
87562020-03-13 Tom Tromey <tom@tromey.com>
8757
8758 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8759 (d_value_print_inner): New function.
8760 * d-lang.h (d_value_print_inner): Declare.
8761 * d-lang.c (d_language_defn): Use d_value_print_inner.
8762
23b0f06b
TT
87632020-03-13 Tom Tromey <tom@tromey.com>
8764
8765 * go-valprint.c (go_value_print_inner): New function.
8766 * go-lang.h (go_value_print_inner): Declare.
8767 * go-lang.c (go_language_defn): Use go_value_print_inner.
8768
5f56f7cb
TT
87692020-03-13 Tom Tromey <tom@tromey.com>
8770
8771 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8772 API.
8773 (rust_val_print): Rewrite.
8774 (rust_value_print_inner): New function, from rust_val_print.
8775 (rust_language_defn): Use rust_value_print_inner.
8776
26792ee0
TT
87772020-03-13 Tom Tromey <tom@tromey.com>
8778
8779 * ada-valprint.c (ada_value_print_inner): New function.
8780 * ada-lang.h (ada_value_print_inner): Declare.
8781 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8782
24051bbe
TT
87832020-03-13 Tom Tromey <tom@tromey.com>
8784
8785 * f-valprint.c (f_value_print_innner): New function.
8786 * f-lang.h (f_value_print_innner): Declare.
8787 * f-lang.c (f_language_defn): Use f_value_print_innner.
8788
c0941be6
TT
87892020-03-13 Tom Tromey <tom@tromey.com>
8790
8791 * p-valprint.c (pascal_value_print_inner): New function.
8792 * p-lang.h (pascal_value_print_inner): Declare.
8793 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8794
62c4663d
TT
87952020-03-13 Tom Tromey <tom@tromey.com>
8796
8797 * m2-valprint.c (m2_value_print_inner): New function.
8798 * m2-lang.h (m2_value_print_inner): Declare.
8799 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8800
62182190
TT
88012020-03-13 Tom Tromey <tom@tromey.com>
8802
8803 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8804 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8805 * c-valprint.c (c_value_print_inner): New function.
8806 * c-lang.h (c_value_print_inner): Declare.
8807 * c-lang.c (c_language_defn, cplus_language_defn)
8808 (asm_language_defn, minimal_language_defn): Use
8809 c_value_print_inner.
8810
1e592a8a
TT
88112020-03-13 Tom Tromey <tom@tromey.com>
8812
8813 * p-valprint.c (pascal_object_print_value_fields): Now static.
8814 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8815
7fe471e9
TT
88162020-03-13 Tom Tromey <tom@tromey.com>
8817
8818 * c-valprint.c (c_val_print_array): Simplify.
8819
d121c6ce
TT
88202020-03-13 Tom Tromey <tom@tromey.com>
8821
8822 * valprint.c (value_print_array_elements): New function.
8823 * valprint.h (value_print_array_elements): Declare.
8824
4dba70ee
TT
88252020-03-13 Tom Tromey <tom@tromey.com>
8826
8827 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8828 * mips-tdep.c (mips_print_register): Use
8829 value_print_scalar_formatted.
8830
4f9ae810
TT
88312020-03-13 Tom Tromey <tom@tromey.com>
8832
8833 * valprint.h (value_print_scalar_formatted): Declare.
8834 * valprint.c (value_print_scalar_formatted): New function.
8835
156bfec9
TT
88362020-03-13 Tom Tromey <tom@tromey.com>
8837
8838 * valprint.h (generic_value_print): Declare.
8839 * valprint.c (generic_value_print): New function.
8840
2b4e573d
TT
88412020-03-13 Tom Tromey <tom@tromey.com>
8842
8843 * valprint.c (do_val_print): Call la_value_print_inner, if
8844 available.
8845 * rust-lang.c (rust_language_defn): Update.
8846 * p-lang.c (pascal_language_defn): Update.
8847 * opencl-lang.c (opencl_language_defn): Update.
8848 * objc-lang.c (objc_language_defn): Update.
8849 * m2-lang.c (m2_language_defn): Update.
8850 * language.h (struct language_defn) <la_value_print_inner>: New
8851 member.
8852 * language.c (unknown_language_defn, auto_language_defn): Update.
8853 * go-lang.c (go_language_defn): Update.
8854 * f-lang.c (f_language_defn): Update.
8855 * d-lang.c (d_language_defn): Update.
8856 * c-lang.c (c_language_defn, cplus_language_defn)
8857 (asm_language_defn, minimal_language_defn): Update.
8858 * ada-lang.c (ada_language_defn): Update.
8859
a1f6a07c
TT
88602020-03-13 Tom Tromey <tom@tromey.com>
8861
8862 * c-valprint.c (c_value_print): Use common_val_print.
8863
410cf315
TT
88642020-03-13 Tom Tromey <tom@tromey.com>
8865
8866 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8867
72a45c93
TT
88682020-03-13 Tom Tromey <tom@tromey.com>
8869
8870 * f-valprint.c (f77_print_array_1, f_val_print): Use
8871 common_val_print.
8872
040f66bd
TT
88732020-03-13 Tom Tromey <tom@tromey.com>
8874
8875 * riscv-tdep.c (riscv_print_one_register_info): Use
8876 common_val_print.
8877
a6e05a6c
TT
88782020-03-13 Tom Tromey <tom@tromey.com>
8879
8880 * mi/mi-main.c (output_register): Use common_val_print.
8881
3444c526
TT
88822020-03-13 Tom Tromey <tom@tromey.com>
8883
8884 * infcmd.c (default_print_one_register_info): Use
8885 common_val_print.
8886
c2a44efe
TT
88872020-03-13 Tom Tromey <tom@tromey.com>
8888
8889 * valprint.h (common_val_print_checked): Declare.
8890 * valprint.c (common_val_print_checked): New function.
8891 * stack.c (print_frame_arg): Use common_val_print_checked.
8892
b0c26e99
TT
88932020-03-13 Tom Tromey <tom@tromey.com>
8894
8895 * valprint.c (do_val_print): New function, from val_print.
8896 (val_print): Use do_val_print.
8897 (common_val_print): Use do_val_print.
8898
ce3acbe9
TT
88992020-03-13 Tom Tromey <tom@tromey.com>
8900
8901 * valprint.c (value_print): Use scoped_value_mark.
8902
96c7f873
TV
89032020-03-13 Tom de Vries <tdevries@suse.de>
8904
8905 PR symtab/25646
8906 * psymtab.c (partial_symtab::partial_symtab): Don't set
8907 globals_offset and statics_offset. Push element onto
8908 current_global_psymbols and current_static_psymbols stacks.
8909 (concat): New function.
8910 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8911 element from current_global_psymbols and current_static_psymbols
8912 stacks. Concat popped elements to global_psymbols and
8913 static_symbols.
8914 (add_psymbol_to_list): Use current_global_psymbols and
8915 current_static_psymbols stacks.
8916 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8917 current_static_psymbols fields.
8918
6ba0a321
CB
89192020-03-12 Christian Biesinger <cbiesinger@google.com>
8920
8921 * corelow.c (sniff_core_bfd): Remove.
8922 (class core_target) <m_core_vec>: Remove.
8923 (core_target::core_target): Update.
8924 (core_file_fns): Remove.
8925 (deprecated_add_core_fns): Remove.
8926 (default_core_sniffer): Remove.
8927 (sniff_core_bfd): Remove.
8928 (default_check_format): Remove.
8929 (gdb_check_format): Remove.
8930 (core_target_open): Update.
8931 (core_target::get_core_register_section): Update.
8932 (get_core_registers_cb): Update.
8933 (core_target::fetch_registers): Update.
8934 * gdbcore.h (struct core_fns): Remove.
8935 (deprecated_add_core_fns): Remove.
8936 (default_core_sniffer): Remove.
8937 (default_check_format): Remove.
8938
227031b2
TT
89392020-03-12 Tom Tromey <tom@tromey.com>
8940
8941 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8942 CORE_ADDR.
8943 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8944
53807e9f
TT
89452020-03-12 Tom Tromey <tom@tromey.com>
8946
8947 * remote.c (remote_target::download_tracepoint)
8948 (remote_target::enable_tracepoint)
8949 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8950 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8951 sprintf_vma.
8952
64f25102
TT
89532020-03-12 Tom Tromey <tom@tromey.com>
8954
8955 * symfile-mem.c: Update CORE_ADDR size assert.
8956
272cd5a3
SM
89572020-03-12 Simon Marchi <simon.marchi@efficios.com>
8958
8959 * selftest.m4: Move to gdbsupport/.
8960 * acinclude.m4: Update path to selftest.m4.
8961
74cd3f9d
SM
89622020-03-12 Simon Marchi <simon.marchi@efficios.com>
8963
8964 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8965 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8966 gdbarch-selfselftests.c and selftest-arch.c.
8967 (SUBDIR_UNITTESTS_OBS): Rename to...
8968 (SELFTESTS_OBS): ... this.
8969 (COMMON_SFILES): Remove disasm-selftests.c and
8970 gdbarch-selftests.c.
8971 * configure.ac: Don't add selftest-arch.{c,o} to
8972 CONFIG_{SRCS,OBS}.
8973 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8974 preprocessor conditions.
8975
db6878ac
SM
89762020-03-12 Simon Marchi <simon.marchi@efficios.com>
8977
8978 * configure.ac: Don't source bfd/development.sh.
8979 * selftest.m4: Modify comment.
8980 * configure: Re-generate.
8981
4d696a5c
SM
89822020-03-12 Simon Marchi <simon.marchi@efficios.com>
8983
8984 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8985 not "true" or "false".
8986 * configure: Re-generate.
8987
8dd8e1c7
CB
89882020-03-12 Christian Biesinger <cbiesinger@google.com>
8989
8990 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8991 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8992 renamed to arm_nbsd_supply_gregset.
8993 (fetch_register): Update to call arm_nbsd_supply_gregset.
8994 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8995 (arm_netbsd_nat_target::fetch_registers): Update.
8996 (fetch_elfcore_registers): Removed.
8997 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8998 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8999 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
9000 not require NetBSD system headers.
9001 (arm_nbsd_regset): New struct.
9002 (arm_nbsd_iterate_over_regset_sections): New function.
9003 (arm_netbsd_init_abi_common): Updated to call
9004 set_gdbarch_iterate_over_regset_sections.
9005 * arm-nbsd-tdep.h: New file.
9006
dd69bf7a
KB
90072020-03-11 Kevin Buettner <kevinb@redhat.com>
9008
9009 * symtab.c (find_pc_sect_line): Add check which prevents infinite
9010 recursion.
9011
a0761e34
SM
90122020-03-11 Simon Marchi <simon.marchi@efficios.com>
9013
9014 * configure: Re-generate.
9015
e7a82140
TT
90162020-03-11 Tom Tromey <tromey@adacore.com>
9017
9018 * ada-typeprint.c (print_choices): Fix comment.
9019
dcc050c8
AB
90202020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
9021
9022 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
9023 previous item in the list, when the list has no items.
9024
1c33af77
TV
90252020-03-11 Tom de Vries <tdevries@suse.de>
9026
9027 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
9028 PROP_LOCLIST handling code.
9029
8c95582d
AB
90302020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
9031
9032 * buildsym-legacy.c (record_line): Pass extra parameter to
9033 record_line.
9034 * buildsym.c (buildsym_compunit::record_line): Take an extra
9035 parameter, reduce duplication in the line table, and record the
9036 is_stmt flag in the line table.
9037 * buildsym.h (buildsym_compunit::record_line): Add extra
9038 parameter.
9039 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
9040 non-statement lines.
9041 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
9042 this to the symtab builder.
9043 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
9044 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
9045 through to dwarf_record_line_1.
9046 * infrun.c (process_event_stop_test): When stepping, don't stop at
9047 a non-statement instruction, and only refresh the step info when
9048 we land in the middle of a line's range. Also add an extra
9049 comment.
9050 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
9051 field.
9052 * record-btrace.c (btrace_find_line_range): Only record lines
9053 marked as is-statement.
9054 * stack.c (frame_show_address): Show the frame address if we are
9055 in a non-statement sal.
9056 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9057 (maintenance_print_one_line_table): Print a header for the is_stmt
9058 column, and include is_stmt information in the output.
9059 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9060 preference to non-statements.
9061 (find_pcs_for_symtab_line): Prefer is-statement entries.
9062 (find_line_common): Likewise.
9063 * symtab.h (struct linetable_entry): Add is_stmt field.
9064 (struct symtab_and_line): Likewise.
9065 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9066 arranging the line table.
9067
e4003a34
TV
90682020-03-07 Tom de Vries <tdevries@suse.de>
9069
9070 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9071 DIE.
9072
e8932576
TT
90732020-03-07 Tom Tromey <tom@tromey.com>
9074
9075 * valops.c (value_literal_complex): Remove obsolete comment.
9076 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9077 comment.
9078
29734269
SM
90792020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9080
9081 * infrun.h: Forward-declare thread_info.
9082 (set_step_info): Add thread_info parameter, add doc.
9083 * infrun.c (set_step_info): Add thread_info parameter, move doc
9084 to header.
9085 * infrun.c (process_event_stop_test): Pass thread to
9086 set_step_info call.
9087 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9088 set_step_info.
9089 (prepare_one_step): Add thread_info parameter, pass it to
9090 set_step_frame and prepare_one_step (recursive) call.
9091 (step_1): Pass thread to prepare_one_step call.
9092 (step_command_fsm::should_stop): Pass thread to
9093 prepare_one_step.
9094 (until_next_fsm): Pass thread to set_step_frame call.
9095 (finish_command): Pass thread to set_step_info call.
9096
b7d64b29
HD
90972020-03-06 Hannes Domani <ssbssa@yahoo.de>
9098
9099 * windows-tdep.c (windows_solib_create_inferior_hook):
9100 Check if inferior is running.
9101
09f2921c
TV
91022020-03-06 Tom de Vries <tdevries@suse.de>
9103
9104 * NEWS: Fix "the the".
9105 * ctfread.c: Same.
9106
fd760e79
TV
91072020-03-06 Tom de Vries <tdevries@suse.de>
9108
9109 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9110
20ea4a60
AB
91112020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9112
9113 * .dir-locals.el: Add a comment referencing the other copies of
9114 this file.
9115
0afbabf0
JB
91162020-03-05 John Baldwin <jhb@FreeBSD.org>
9117
9118 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9119 psargs.
9120
842806cb
TBA
91212020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9122
9123 * .gitattributes: New file.
9124
be1e3d3e
TT
91252020-03-04 Tom Tromey <tom@tromey.com>
9126
9127 * symmisc.c (print_symbol_bcache_statistics)
9128 (print_objfile_statistics): Update.
9129 * symfile.c (allocate_symtab): Use intern.
9130 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9131 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9132 macro_cache>: Remove.
9133 <string_cache>: New member.
9134 (struct objfile) <intern>: New methods.
9135 * elfread.c (elf_symtab_read): Use intern.
9136 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9137 (dwarf2_compute_name, dwarf2_physname)
9138 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9139 names.
9140 (guess_partial_die_structure_name): Update.
9141 (partial_die_info::fixup): Intern name.
9142 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9143 name.
9144 (dwarf2_name): Intern name. Update.
9145 * buildsym.c (buildsym_compunit::get_macro_table): Use
9146 string_cache.
9147
4e7625fd
TT
91482020-03-04 Tom Tromey <tom@tromey.com>
9149
9150 * jit.c (bfd_open_from_target_memory): Make "target" const.
9151 * corefile.c (gnutarget): Now const.
9152 * gdbcore.h (gnutarget): Now const.
9153
46f9f931
HD
91542020-03-04 Hannes Domani <ssbssa@yahoo.de>
9155
9156 * NEWS: Mention support for WOW64 processes.
9157 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9158 (amd64_windows_segment_register_p): Remove static.
9159 (_initialize_amd64_windows_nat): Update.
9160 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9161 * i386-windows-nat.c (context_offset): Update.
9162 (i386_mappings): Rename and remove static.
9163 (i386_windows_segment_register_p): Remove static.
9164 (_initialize_i386_windows_nat): Update.
9165 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9166 (STATUS_WX86_SINGLE_STEP): New macro.
9167 (EnumProcessModulesEx): New macro.
9168 (Wow64SuspendThread): New macro.
9169 (Wow64GetThreadContext): New macro.
9170 (Wow64SetThreadContext): New macro.
9171 (Wow64GetThreadSelectorEntry): New macro.
9172 (windows_set_context_register_offsets): Add static.
9173 (windows_set_segment_register_p): Likewise.
9174 (windows_add_thread): Adapt for WOW64 processes.
9175 (windows_fetch_one_register): Likewise.
9176 (windows_nat_target::fetch_registers): Likewise.
9177 (windows_store_one_register): Likewise.
9178 (display_selector): Likewise.
9179 (display_selectors): Likewise.
9180 (handle_exception): Likewise.
9181 (windows_continue): Likewise.
9182 (windows_nat_target::resume): Likewise.
9183 (windows_add_all_dlls): Likewise.
9184 (do_initial_windows_stuff): Likewise.
9185 (windows_nat_target::attach): Likewise.
9186 (windows_get_exec_module_filename): Likewise.
9187 (windows_nat_target::create_inferior): Likewise.
9188 (windows_xfer_siginfo): Likewise.
9189 (_initialize_loadable): Initialize Wow64SuspendThread,
9190 Wow64GetThreadContext, Wow64SetThreadContext,
9191 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9192 * windows-nat.h (windows_set_context_register_offsets):
9193 Remove declaration.
9194 (windows_set_segment_register_p): Likewise.
9195 (i386_windows_segment_register_p): Add declaration.
9196 (amd64_windows_segment_register_p): Likewise.
9197
440cf44e
LM
91982020-03-04 Luis Machado <luis.machado@linaro.org>
9199
9200 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9201 in "info registers" for AArch64/ARM.
9202
9203 The change caused "info registers" to not print GPR's.
9204
9205 gdb/ChangeLog:
9206
9207 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9208
9209 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9210 when reg->group is empty and reggroup is not.
9211
1009d92f
TT
92122020-03-03 Tom Tromey <tromey@adacore.com>
9213
9214 * dwarf2/frame.c (struct dwarf2_frame_cache)
9215 <checked_tailcall_bottom, entry_cfa_sp_offset,
9216 entry_cfa_sp_offset_p>: Remove members.
9217 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9218 (dwarf2_frame_prev_register): Don't call
9219 dwarf2_tailcall_sniffer_first.
9220 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9221 * frame-unwind.c (add_unwinder): New fuction.
9222 (frame_unwind_init): Use it. Add tailcall unwinder.
9223
5e5d66b6
AB
92242020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9225 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9226
9227 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9228 value should be printed as true.
9229
584cf46d
HD
92302020-03-03 Hannes Domani <ssbssa@yahoo.de>
9231
9232 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9233 (windows_init_abi): Set and use windows_so_ops.
9234
7b973adc
SDJ
92352020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9236
9237 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9238 when verifying if dealing with a convenience variable.
9239
bb7b70ab
LM
92402020-03-03 Luis Machado <luis.machado@linaro.org>
9241
9242 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9243
9822cb57
SM
92442020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9245
9246 * infrun.c (gdbarch_supports_displaced_stepping): New.
9247 (use_displaced_stepping): Break up conditions in smaller pieces.
9248 Use gdbarch_supports_displaced_stepping.
9249 (displaced_step_prepare_throw): Use
9250 gdbarch_supports_displaced_stepping.
9251
63e163f2
AB
92522020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9253
9254 * NEWS: Mention new behaviour of the history filename.
9255 * top.c (write_history_p): Add comment.
9256 (show_write_history_p): Add header comment, give a different
9257 message when history writing is on, but the history filename is
9258 empty.
9259 (history_filename): Add comment.
9260 (history_filename_empty): New function.
9261 (show_history_filename): Add header comment, give a different
9262 message when the filename is empty.
9263 (init_history): Compare history_filename against nullptr, and only
9264 read history if the filename is not empty.
9265 (set_history_filename): Add header comment, and only make
9266 non-empty filenames absolute.
9267 (init_main): Make the filename argument to 'set history filename'
9268 optional.
9269
81b86b97
CB
92702020-03-02 Christian Biesinger <cbiesinger@google.com>
9271
9272 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9273 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9274 (fetch_fp_register): Update.
9275 (fetch_fp_regs): Update.
9276 (store_fp_register): Update.
9277 (store_fp_regs): Update.
9278 (arm_netbsd_nat_target::read_description): New function.
9279 (fetch_elfcore_registers): Update.
9280
24ed6739
AB
92812020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9282
9283 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9284 general_thread if the stop reply is missing a thread-id.
9285 (remote_target::process_stop_reply): Use the first non-exited
9286 thread if the target didn't pass a thread-id.
9287 * infrun.c (do_target_wait): Move call to
9288 switch_to_inferior_no_thread to ....
9289 (do_target_wait_1): ... here.
9290
a84bb2a0
JT
92912020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9292
9293 * debuginfod-support.c: Include defs.h first.
9294
658dadf0
TV
92952020-02-28 Tom de Vries <tdevries@suse.de>
9296
9297 * symfile.c (set_initial_language): Use default language for lookup.
9298
4ebe4877
SM
92992020-02-28 Simon Marchi <simon.marchi@efficios.com>
9300
9301 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9302 reader variable, pass `this` to read_cutu_die_from_dwo.
9303
e5da1139
AM
93042020-02-27 Aaron Merey <amerey@redhat.com>
9305
9306 * source.c (open_source_file): Check for nullptr when computing
9307 srcpath.
9308
317f7127
TT
93092020-02-27 Tom Tromey <tromey@adacore.com>
9310
9311 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9312 member.
9313 (dwarf2_add_field): Don't update nfields.
9314 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9315
3104d9ee
AB
93162020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9317
9318 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9319 abs.
9320
b83470bf
TT
93212020-02-26 Tom Tromey <tom@tromey.com>
9322
9323 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9324 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9325 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9326 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9327 per_cu_data.
9328
edfe0a0c
TT
93292020-02-26 Tom Tromey <tom@tromey.com>
9330
9331 * dwarf2/index-write.c (psym_index_map): Change type.
9332 (add_address_entry_worker, write_one_signatured_type)
9333 (recursively_count_psymbols, recursively_write_psymbols)
9334 (class debug_names, psyms_seen_size, write_gdbindex)
9335 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9336
0d79cdc4
AM
93372020-02-26 Aaron Merey <amerey@redhat.com>
9338
9339 * Makefile.in: Handle optional debuginfod support.
9340 * NEWS: Update.
9341 * README: Add --with-debuginfod summary.
9342 * config.in: Regenerate.
9343 * configure: Regenerate.
9344 * configure.ac: Handle optional debuginfod support.
9345 * debuginfod-support.c: debuginfod helper functions.
9346 * debuginfod-support.h: Ditto.
9347 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9348 summary.
9349 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9350 when a dwz file cannot be found.
9351 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9352 debuginfo file cannot be found.
9353 * source.c (open_source_file): Query debuginfod servers when a
9354 source file cannot be found.
9355 * top.c (print_gdb_configuration): Include
9356 --{with,without}-debuginfod in the output.
9357
b65ce565
JG
93582020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9359
9360 * thread.c (thr_try_catch_cmd): Print thread name.
9361
d4c9a4f8
SM
93622020-02-26 Simon Marchi <simon.marchi@efficios.com>
9363
9364 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9365 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9366 dwarf2_fetch_die_type_sect_off): Move to...
9367 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9368 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9369 dwarf2_fetch_die_type_sect_off): ... here.
9370 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9371 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9372 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9373
0dce4280
TV
93742020-02-26 Tom de Vries <tdevries@suse.de>
9375
9376 PR gdb/25603
9377 * symfile.c (set_initial_language): Exit-early if
9378 language_mode == language_mode_manual.
9379
450a1bfc
SM
93802020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9381
9382 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9383 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9384 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9385
9e80cfa1
AB
93862020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9387
9388 * gdbtypes.c (create_array_type_with_stride): Handle negative
9389 array strides.
9390 * valarith.c (value_subscripted_rvalue): Likewise.
9391
09624f1f
LM
93922020-02-25 Luis Machado <luis.machado@linaro.org>
9393
9394 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9395
8cb5117c
SM
93962020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9397
9398 * loc.h (dwarf2_get_die_type): Move to...
9399 * read.h (dwarf2_get_die_type): ... here.
9400 * read.c (dwarf2_get_die_type): Move doc to header.
9401
c325c44e
JB
94022020-02-25 Joel Brobecker <brobecker@adacore.com>
9403
9404 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9405 'gnulib/Makefile.in' to the list.
9406
4ac93832
TT
94072020-02-24 Tom Tromey <tom@tromey.com>
9408
9409 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9410 Remove.
9411 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9412 XOBNEWVEC.
9413
197400e8
TT
94142020-02-24 Tom Tromey <tom@tromey.com>
9415
9416 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9417 New method.
9418 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9419 (dw2_do_instantiate_symtab, dw2_get_file_names)
9420 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9421
76935768
TT
94222020-02-24 Tom Tromey <tom@tromey.com>
9423
9424 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9425 make_scoped_restore.
9426 (dwarf2_psymtab::read_symtab): Don't clear
9427 reading_partial_symbols.
9428
a88ef40d
TV
94292020-02-24 Tom de Vries <tdevries@suse.de>
9430
9431 PR gdb/25592
9432 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9433
c9af6521
TV
94342020-02-24 Tom de Vries <tdevries@suse.de>
9435
9436 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9437 commands layout next/prev/regs.
9438
5707a07a
TT
94392020-02-22 Tom Tromey <tom@tromey.com>
9440
9441 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9442 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9443
3b0fb49e
TT
94442020-02-22 Tom Tromey <tom@tromey.com>
9445
9446 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9447
283be8bf
TT
94482020-02-22 Tom Tromey <tom@tromey.com>
9449
9450 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9451 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9452 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9453 * tui/tui.c (_initialize_tui): Add usage text.
9454
ca793b96
TT
94552020-02-22 Tom Tromey <tom@tromey.com>
9456
9457 * tui/tui-win.c (tui_set_focus_command)
9458 (tui_set_win_height_command): Use error_no_arg.
9459 (_initialize_tui_win): Update help text.
9460 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9461
432b5c40
TT
94622020-02-22 Tom Tromey <tom@tromey.com>
9463
9464 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9465 * tui/tui-disasm.h (struct tui_disasm_window)
9466 <display_start_addr>: Declare.
9467 * tui/tui-source.h (struct tui_source_window)
9468 <display_start_addr>: Declare.
9469 * tui/tui-winsource.h (struct tui_source_window_base)
9470 <show_source_line, display_start_addr>: New methods.
9471 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9472 Rename and move to protected section.
9473 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9474 (tui_source_window_base::do_erase_source_content): Update.
9475 (tui_source_window_base::show_source_line): Now a method.
9476 (tui_source_window_base::show_source_content)
9477 (tui_source_window_base::tui_source_window_base)
9478 (tui_source_window_base::rerender)
9479 (tui_source_window_base::refill)
9480 (tui_source_window_base::do_scroll_horizontal)
9481 (tui_source_window_base::set_is_exec_point_at)
9482 (tui_source_window_base::update_breakpoint_info)
9483 (tui_source_window_base::update_exec_info): Update.
9484 * tui/tui-source.c (tui_source_window::set_contents)
9485 (tui_source_window::showing_source_p)
9486 (tui_source_window::do_scroll_vertical)
9487 (tui_source_window::location_matches_p)
9488 (tui_source_window::line_is_displayed): Update.
9489 (tui_source_window::display_start_addr): New method.
9490 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9491 (tui_disasm_window::do_scroll_vertical)
9492 (tui_disasm_window::location_matches_p): Update.
9493 (tui_disasm_window::display_start_addr): New method.
9494
01b1af32
TT
94952020-02-22 Tom Tromey <tom@tromey.com>
9496
9497 * NEWS: Add entry for gdb.register_window_type.
9498 * tui/tui-layout.h (window_factory): New typedef.
9499 (tui_register_window): Declare.
9500 * tui/tui-layout.c (saved_tui_windows): New global.
9501 (tui_apply_current_layout): Use it.
9502 (tui_register_window): New function.
9503 * python/python.c (do_start_initialization): Call
9504 gdbpy_initialize_tui.
9505 (python_GdbMethods): Add "register_window_type" function.
9506 * python/python-internal.h (gdbpy_register_tui_window)
9507 (gdbpy_initialize_tui): Declare.
9508 * python/py-tui.c: New file.
9509 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9510
fc96d20b
TT
95112020-02-22 Tom Tromey <tom@tromey.com>
9512
9513 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9514
935c78c0
TT
95152020-02-22 Tom Tromey <tom@tromey.com>
9516
9517 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9518 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9519 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9520 (tui_set_win_focus_to): Move from tui-win.c.
9521
0240c8f1
TT
95222020-02-22 Tom Tromey <tom@tromey.com>
9523
9524 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9525 functions.
9526 (known_window_types): New global.
9527 (tui_get_window_by_name): Reimplement.
9528 (initialize_known_windows): New function.
9529 (validate_window_name): Rewrite.
9530 (_initialize_tui_layout): Call initialize_known_windows.
9531
fdb01f0c
TT
95322020-02-22 Tom Tromey <tom@tromey.com>
9533
9534 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9535 Remove constants.
9536 * tui/tui-winsource.h (struct tui_source_window_base)
9537 <tui_source_window_base>: Remove parameter.
9538 * tui/tui-winsource.c
9539 (tui_source_window_base::tui_source_window_base): Remove
9540 parameter.
9541 (tui_source_window_base::refill): Update.
9542 * tui/tui-stack.h (struct tui_locator_window)
9543 <tui_locator_window>: Update.
9544 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9545 Default the constructor.
9546 * tui/tui-regs.h (struct tui_data_item_window)
9547 <tui_data_item_window>: Default the constructor.
9548 (struct tui_data_window) <tui_data_window>: Likewise.
9549 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9550 Default the constructor.
9551 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9552 Default the constructor.
9553 <type>: Remove.
9554 (struct tui_win_info) <tui_win_info>: Default the constructor.
9555 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9556 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9557 Default the constructor.
9558
865a5aec
TT
95592020-02-22 Tom Tromey <tom@tromey.com>
9560
9561 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9562 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9563 * tui/tui-win.c (tui_resize_all): Don't call
9564 tui_delete_invisible_windows.
9565 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9566 done.
9567 (tui_set_layout): Update.
9568 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9569 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9570 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9571
e098d18c
TT
95722020-02-22 Tom Tromey <tom@tromey.com>
9573
9574 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9575 correctly.
9576
eb9c8874
TT
95772020-02-22 Tom Tromey <tom@tromey.com>
9578
9579 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9580
7eed1a8e
TT
95812020-02-22 Tom Tromey <tom@tromey.com>
9582
9583 * tui/tui-winsource.h (struct tui_source_window_iterator)
9584 <inner_iterator>: New etytypedef.
9585 <tui_source_window_iterator>: Take "end" parameter.
9586 <tui_source_window_iterator>: Take iterator.
9587 <operator*, advance>: Update.
9588 <m_iter>: Change type.
9589 <m_end>: New field.
9590 (struct tui_source_windows) <begin, end>: Update.
9591 * tui/tui-layout.c (tui_windows): New global.
9592 (tui_apply_current_layout): Clear tui_windows.
9593 (tui_layout_window::apply): Update tui_windows.
9594 * tui/tui-data.h (tui_windows): Declare.
9595 (all_tui_windows): Now inline function.
9596 (class tui_window_iterator, struct all_tui_windows): Remove.
9597
7c043ba6
TT
95982020-02-22 Tom Tromey <tom@tromey.com>
9599
9600 PR tui/17850:
9601 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9602 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9603 "height" argument.
9604 (class tui_layout_window) <get_sizes>: Likewise.
9605 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9606 argument.
9607 <get_sizes>: Add "height" argument.
9608 <m_vertical>: New field.
9609 * tui/tui-layout.c (tui_layout_split::clone): Update.
9610 (tui_layout_split::get_sizes): Add "height" argument.
9611 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9612 (tui_new_layout_command): Parse "-horizontal".
9613 (_initialize_tui_layout): Update help string.
9614 (tui_layout_split::specification): Add "-horizontal" when needed.
9615 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9616 argument.
9617 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9618 New methods.
9619
6bc56648
TT
96202020-02-22 Tom Tromey <tom@tromey.com>
9621
9622 * tui/tui-layout.h (enum tui_adjust_result): New.
9623 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9624 (class tui_layout_window) <adjust_size>: Return
9625 tui_adjust_result. Rewrite.
9626 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9627 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9628
c22fef7e
TT
96292020-02-22 Tom Tromey <tom@tromey.com>
9630
9631 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9632 parameter and return types.
9633 (class tui_layout_base) <specification>: Add "depth".
9634 (class tui_layout_window) <specification>: Add "depth".
9635 (class tui_layout_split) <specification>: Add "depth".
9636 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9637 and return types.
9638 (tui_new_layout_command): Parse sub-layouts.
9639 (_initialize_tui_layout): Update help string.
9640 (tui_layout_window::specification): Add "depth".
9641 (add_layout_command): Update.
9642
ee325b61
TT
96432020-02-22 Tom Tromey <tom@tromey.com>
9644
9645 * NEWS: Add "tui new-layout" item.
9646 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9647 Add new-layout command to help text.
9648 (validate_window_name): New function.
9649 (tui_new_layout_command): New function.
9650 (_initialize_tui_layout): Register "new-layout".
9651 (tui_layout_window::specification): New method.
9652 (tui_layout_window::specification): New method.
9653 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9654 method.
9655 (class tui_layout_window) <specification>: New method.
9656 (class tui_layout_split) <specification>: New method.
9657
416eb92d
TT
96582020-02-22 Tom Tromey <tom@tromey.com>
9659
9660 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9661 * tui/tui-win.c (window_name_completer): Update comment.
9662 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9663 Declare method.
9664 (class tui_layout_window) <replace_window>: Likewise.
9665 (class tui_layout_split) <replace_window>: Likewise.
9666 (tui_set_layout): Don't declare.
9667 (tui_set_initial_layout): Declare function.
9668 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9669 (asm_regs_layout): New globals.
9670 (tui_current_layout, show_layout): Remove.
9671 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9672 (find_layout, tui_apply_layout): New function.
9673 (layout_completer): Remove.
9674 (tui_next_layout): Reimplement.
9675 (tui_next_layout_command): New function.
9676 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9677 (tui_regs_layout): Reimplement.
9678 (tui_regs_layout_command): New function.
9679 (extract_display_start_addr): Rewrite.
9680 (next_layout, prev_layout): Remove.
9681 (tui_layout_window::replace_window): New method.
9682 (tui_layout_split::replace_window): New method.
9683 (destroy_layout): New function.
9684 (layout_list): New global.
9685 (add_layout_command): New function.
9686 (initialize_layouts): Update.
9687 (tui_layout_command): New function.
9688 (_initialize_tui_layout): Install "layout" commands.
9689 * tui/tui-data.h (enum tui_layout_type): Remove.
9690 (tui_current_layout): Don't declare.
9691
0dbc2fc7
TT
96922020-02-22 Tom Tromey <tom@tromey.com>
9693
9694 * tui/tui-regs.c (tui_reg_layout): Remove.
9695 (tui_reg_command): Use tui_regs_layout.
9696 * tui/tui-layout.h (tui_reg_command): Declare.
9697 * tui/tui-layout.c (tui_reg_command): New function.
9698
5afe342e
TT
96992020-02-22 Tom Tromey <tom@tromey.com>
9700
9701 * tui/tui.c (tui_rl_delete_other_windows): Call
9702 tui_remove_some_windows.
9703 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9704 Declare method.
9705 (class tui_layout_window) <remove_windows>: New method.
9706 (class tui_layout_split) <remove_windows>: Declare.
9707 (tui_remove_some_windows): Declare.
9708 * tui/tui-layout.c (tui_remove_some_windows): New function.
9709 (tui_layout_split::remove_windows): New method.
9710
427326a8
TT
97112020-02-22 Tom Tromey <tom@tromey.com>
9712
9713 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9714 * tui/tui-layout.h (tui_next_layout): Declare.
9715 * tui/tui-layout.c (tui_next_layout): New function.
9716
3fe12b6d
TT
97172020-02-22 Tom Tromey <tom@tromey.com>
9718
9719 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9720 correct coordinates.
9721
59b8b5d2
TT
97222020-02-22 Tom Tromey <tom@tromey.com>
9723
9724 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9725 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9726 DATA_WIN case.
9727
2a3d458b
TT
97282020-02-22 Tom Tromey <tom@tromey.com>
9729
9730 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9731 TUI_DISASM_WIN, not tui_win_list.
9732
3f0cbb04
TT
97332020-02-22 Tom Tromey <tom@tromey.com>
9734
9735 * valprint.c (generic_val_print_enum_1)
9736 (val_print_type_code_flags): Style member names.
9737 * rust-lang.c (val_print_struct, rust_print_enum)
9738 (rust_print_struct_def, rust_internal_print_type): Style member
9739 names.
9740 * p-valprint.c (pascal_object_print_value_fields): Style member
9741 names. Only call fprintf_symbol_filtered for static members.
9742 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9743 * f-valprint.c (f_val_print): Style member names.
9744 * f-typeprint.c (f_type_print_base): Style member names.
9745 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9746 call fprintf_symbol_filtered for static members.
9747 (cp_print_class_member): Style member names.
9748 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9749 member names.
9750 * ada-valprint.c (ada_print_scalar): Style enum names.
9751 (ada_val_print_enum): Likewise.
9752 * ada-typeprint.c (print_enum_type): Style enum names.
9753
d4d947ae
TT
97542020-02-21 Tom Tromey <tom@tromey.com>
9755
9756 * psympriv.h (struct partial_symtab): Update comment.
9757
e94e944b
TT
97582020-02-21 Tom Tromey <tromey@adacore.com>
9759
9760 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9761 type is CORE_ADDR.
9762
1eb73179
TV
97632020-02-21 Tom de Vries <tdevries@suse.de>
9764
9765 PR gdb/25534
9766 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9767 if dependencies[i]->user != NULL.
9768
4f180d53
AT
97692020-02-21 Ali Tamur <tamur@google.com>
9770
9771 * dwarf2/read.c (dwarf2_name): Add null check.
9772
22b6cd70
TT
97732020-02-20 Tom Tromey <tom@tromey.com>
9774
9775 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9776 ">=", in binary search.
9777 (dwarf2_find_containing_comp_unit): New overload.
9778 (run_test): New self-test.
9779 (_initialize_dwarf2_read): Register new test.
9780
bd0cf5a6
NC
97812020-02-20 Nelson Chu <nelson.chu@sifive.com>
9782
9783 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9784 * riscv-tdep.h: Likewise.
9785 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9786 rv32-only CSR.
9787 * features/riscv/64bit-csr.xml: Regenerated.
9788
3f702acd
SDJ
97892020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9790 Tom Tromey <tom@tromey.com>
9791
9792 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9793 of 'fputc_unfiltered'.
9794 (putchar_unfiltered): Call 'fputc_unfiltered'.
9795 (fputc_unfiltered): Call 'fputs_unfiltered'.
9796
d13c7322
AB
97972020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9798
9799 * config.in: Regenerate.
9800 * configure: Regenerate.
9801 * configure.ac: Add --with-python-libdir option.
9802 * main.c: Use WITH_PYTHON_LIBDIR.
9803
869d8950
TT
98042020-02-19 Tom Tromey <tom@tromey.com>
9805
9806 * symtab.c (general_symbol_info::compute_and_set_names): Use
9807 obstack_strndup. Simplify call to symbol_set_demangled_name.
9808
298e9637
SM
98092020-02-19 Simon Marchi <simon.marchi@efficios.com>
9810
9811 * dwarf2/read.c (allocate_signatured_type_table,
9812 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9813 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9814 Remove objfile parameter, update all callers.
9815
08410482
DE
98162020-02-19 Doug Evans <dje@google.com>
9817
9818 PR rust/25535
9819 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9820 rust_enum_variant calculation.
9821
dfdeeca1
TT
98222020-02-19 Tom Tromey <tromey@adacore.com>
9823
9824 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9825
2ef5453b
TT
98262020-02-19 Tom Tromey <tromey@adacore.com>
9827
9828 * ada-lang.c (cache_symbol): Use obstack_strdup.
9829
9f1528a1
AB
98302020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9831
9832 * configure: Regenerate.
9833
d3c22fa8
TT
98342020-02-19 Tom Tromey <tromey@adacore.com>
9835
9836 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9837 NULL check.
9838
bf84f706
MR
98392020-02-19 Maciej W. Rozycki <macro@wdc.com>
9840
9841 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9842
d1c9b20f
AB
98432020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9844
9845 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9846 if GDBSERVER is not defined.
9847 (riscv_tdesc_cache): Likewise, also store const target_desc.
9848 (STATIC_IN_GDB): Define.
9849 (riscv_create_target_description): Update declaration with
9850 STATIC_IN_GDB.
9851 (riscv_lookup_target_description): New function, only define if
9852 GDBSERVER is not defined.
9853 * arch/riscv.h (riscv_create_target_description): Declare only
9854 when GDBSERVER is defined.
9855 (riscv_lookup_target_description): New declaration when GDBSERVER
9856 is not defined.
9857 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9858 (riscv_linux_read_features): ...this, and return
9859 riscv_gdbarch_features instead of target_desc.
9860 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9861 (riscv_linux_read_description): Rename to...
9862 (riscv_linux_read_features): ...this.
9863 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9864 Update to use riscv_gdbarch_features and
9865 riscv_lookup_target_description.
9866 * riscv-tdep.c (riscv_find_default_target_description): Use
9867 riscv_lookup_target_description instead of
9868 riscv_create_target_description.
9869
373d7ac0
SM
98702020-02-18 Simon Marchi <simon.marchi@efficios.com>
9871
9872 * valprint.c (generic_val_print_enum_1): When printing a flag
9873 enum with value 0 and there is no enumerator with value 0, print
9874 just "0" instead of "(unknown: 0x0)".
9875
b29a2df0
SM
98762020-02-18 Simon Marchi <simon.marchi@efficios.com>
9877
9878 * valprint.c (generic_val_print_enum_1): Print unknown part of
9879 flag enum in hex.
9880
6740f0cc
SM
98812020-02-18 Simon Marchi <simon.marchi@efficios.com>
9882
9883 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9884 flag enums to contain duplicate enumerators.
9885 * valprint.c (generic_val_print_enum_1): Update comment.
9886
edd45eb0
SM
98872020-02-18 Simon Marchi <simon.marchi@efficios.com>
9888
9889 * dwarf2/read.c: Include "count-one-bits.h".
9890 (update_enumeration_type_from_children): If an enumerator has
9891 multiple bits set, don't treat the enumeration as a "flag enum".
9892 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9893 of flag enums have 0 or 1 bit set.
9894
6d0cf446
BE
98952020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9896
9897 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9898 conversion.
9899 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9900 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9901 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9902 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9903 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9904
7001c1b7
SM
99052020-02-18 Simon Marchi <simon.marchi@efficios.com>
9906
9907 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9908
fdb61c6c
SM
99092020-02-14 Simon Marchi <simon.marchi@efficios.com>
9910
9911 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9912 displaced_step_closure_up.
9913 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9914 (struct displaced_step_closure_up):
9915 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9916 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9917 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9918 Likewise.
9919 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9920 * gdbarch.c, gdbarch.h: Re-generate.
9921 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9922 displaced_step_closure_up.
9923 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9924 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9925 * infrun.h (displaced_step_closure_up): New type alias.
9926 (struct displaced_step_inferior_state) <step_closure>: Change
9927 type to displaced_step_closure_up.
9928 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9929 displaced_step_closure_up.
9930 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9931
a4a38eb4
TT
99322020-02-14 Tom Tromey <tom@tromey.com>
9933
9934 * minidebug.c (gnu_debug_key): New global.
9935 (find_separate_debug_file_in_section): Use it.
9936
e8217e61
SM
99372020-02-14 Simon Marchi <simon.marchi@efficios.com>
9938
9939 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9940 std::unique_ptr.
9941 * gdbarch.c: Re-generate.
9942 * gdbarch.h: Re-generate.
9943 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9944 change.
9945 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9946 type to std::unique_ptr.
9947 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9948 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9949 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9950 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9951 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9952 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9953 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9954 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9955 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9956
d8d83535
SM
99572020-02-14 Simon Marchi <simon.marchi@efficios.com>
9958
9959 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9960 std::unique_ptr.
9961 (displaced_step_clear): Rename to...
9962 (displaced_step_reset): ... this. Just call displaced->reset ().
9963 (displaced_step_clear_cleanup): Rename to...
9964 (displaced_step_reset_cleanup): ... this.
9965 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9966 (displaced_step_fixup): Likewise.
9967 (resume_1): Likewise.
9968 (handle_inferior_event): Restore child's memory before calling
9969 displaced_step_fixup on the parent.
9970 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9971 to std::unique_ptr.
9972 <step_closure>: Change type to std::unique_ptr.
9973
5f661e03
SM
99742020-02-14 Simon Marchi <simon.marchi@efficios.com>
9975
9976 * arm-tdep.c: Include count-one-bits.h.
9977 (cleanup_block_store_pc): Use count_one_bits.
9978 (cleanup_block_load_pc): Use count_one_bits.
9979 (arm_copy_block_xfer): Use count_one_bits.
9980 (thumb2_copy_block_xfer): Use count_one_bits.
9981 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9982 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9983 (thumb_get_next_pcs_raw): Use count_one_bits.
9984 (arm_get_next_pcs_raw): Use count_one_bits_l.
9985 * arch/arm.c (bitcount): Remove.
9986 * arch/arm.h (bitcount): Remove.
9987
8084e579
TT
99882020-02-14 Tom Tromey <tromey@adacore.com>
9989
9990 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9991 Update.
9992 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9993 * dwarf2/loc.c (call_site_find_chain_1): Return
9994 unique_xmalloc_ptr.
9995 (call_site_find_chain): Likewise.
9996
258bf0ee
RB
99972020-02-14 Richard Biener <rguenther@suse.de>
9998
9999 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
10000 on expression with division operators.
10001
f98a8458
AKS
100022020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10003
10004 * MAINTAINERS (Write After Approval): Adding myself.
10005
d1437c0e
TT
100062020-02-12 Tom Tromey <tom@tromey.com>
10007
10008 * event-loop.c (event_data, gdb_event, event_handler_func):
10009 Remove.
10010
3d4560f7
TT
100112020-02-12 Tom Tromey <tom@tromey.com>
10012
10013 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
10014 (dwarf2_frame_objfile_data): Add comment.
10015 (find_comp_unit, set_comp_unit): New functions.
10016 (dwarf2_frame_find_fde): Use find_comp_unit.
10017 (dwarf2_build_frame_info): Use set_comp_unit.
10018
21982304
TT
100192020-02-12 Tom Tromey <tom@tromey.com>
10020
10021 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
10022 (comp_unit): Don't initialize objfile.
10023 (execute_cfa_program): Add text_offset parameter.
10024 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
10025 (dwarf2_frame_cache): Update.
10026 (dwarf2_build_frame_info): Don't set "objfile" member.
10027
4debb237
TT
100282020-02-12 Tom Tromey <tom@tromey.com>
10029
10030 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
10031 (decode_frame_entry): Likewise.
10032 (dwarf2_build_frame_info): Update.
10033
0d404d44
TT
100342020-02-12 Tom Tromey <tom@tromey.com>
10035
10036 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
10037 (decode_frame_entry_1): Use the comp_unit obstack.
10038
a7a3ae5c
TT
100392020-02-12 Tom Tromey <tom@tromey.com>
10040
10041 * dwarf2/frame.c (struct comp_unit): Add initializers and
10042 constructor.
10043 (dwarf2_frame_objfile_data): Store a comp_unit.
10044 (dwarf2_frame_find_fde): Update.
10045 (dwarf2_build_frame_info): Use "new".
10046
a9d65418
TT
100472020-02-12 Tom Tromey <tom@tromey.com>
10048
10049 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
10050 (dwarf2_fde_table): Typedef for std::vector.
10051 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
10052 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10053 (decode_frame_entry): Update.
10054 (dwarf2_build_frame_info): Use "new".
10055
7559c217
CB
100562020-02-12 Christian Biesinger <cbiesinger@google.com>
10057
10058 * arm-tdep.c (arm_gdbarch_init): Update.
10059 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10060 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10061 have_neon, is_m>: Change to bool.
10062
aeefc73c
CB
100632020-02-12 Christian Biesinger <cbiesinger@google.com>
10064
10065 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10066
d27b8e5f
TT
100672020-02-12 Tom Tromey <tom@tromey.com>
10068
10069 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10070
cd5900f3
HD
100712020-02-12 Hannes Domani <ssbssa@yahoo.de>
10072
10073 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10074 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10075
f056b22b
TT
100762020-02-11 Tom Tromey <tom@tromey.com>
10077
10078 * psymtab.h: Update comment.
10079
f92ff6b5
TT
100802020-02-11 Tom Tromey <tom@tromey.com>
10081
10082 * gdb_obstack.h (struct auto_obstack): Use
10083 DISABLE_COPY_AND_ASSIGN.
10084
3fd6912b
TT
100852020-02-11 Tom Tromey <tom@tromey.com>
10086
10087 * dwarf2/frame.h (struct objfile): Don't forward declare.
10088
69ed9b74
CB
100892020-02-11 Christian Biesinger <cbiesinger@google.com>
10090
10091 * cris-tdep.c (cris_supply_gregset): Change signature to match
10092 what struct regset expects.
10093 (cris_regset): New struct.
10094 (fetch_core_registers): Remove.
10095 (cris_iterate_over_regset_sections): New function.
10096 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10097 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10098
bda874f6
CB
100992020-02-11 Christian Biesinger <cbiesinger@google.com>
10100
10101 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10102 registers.
10103
754e1564
CB
101042020-02-11 Christian Biesinger <cbiesinger@google.com>
10105
10106 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10107
8ddd8e0e
SM
101082020-02-11 Simon Marchi <simon.marchi@efficios.com>
10109
10110 * configure: Re-generate.
10111
898e7f60
SM
101122020-02-11 Simon Marchi <simon.marchi@efficios.com>
10113
10114 * configure: Re-generate.
10115
58df732b
SM
101162020-02-11 Simon Marchi <simon.marchi@efficios.com>
10117
10118 * acinclude: Update warning.m4 path.
10119 * warning.m4: Move to gdbsupport.
10120
da5bd37e
TT
101212020-02-11 Tom Tromey <tromey@adacore.com>
10122
10123 * remote.c (remote_console_output): Update.
10124 * printcmd.c (printf_command): Update.
10125 * event-loop.c (gdb_wait_for_event): Update.
10126 * linux-nat.c (sigchld_handler): Update.
10127 * remote-sim.c (gdb_os_write_stdout): Update.
10128 (gdb_os_flush_stdout): Update.
10129 (gdb_os_flush_stderr): Update.
10130 (gdb_os_write_stderr): Update.
10131 * exceptions.c (print_exception): Update.
10132 * remote-fileio.c (remote_fileio_func_read): Update.
10133 (remote_fileio_func_write): Update.
10134 * tui/tui.c (tui_enable): Update.
10135 * tui/tui-interp.c (tui_interp::init): Update.
10136 * utils.c (init_page_info): Update.
10137 (putchar_unfiltered, fputc_unfiltered): Update.
10138 (gdb_flush): Update.
10139 (emit_style_escape): Update.
10140 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10141 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10142 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10143 (stderr_file::write): Update.
10144 (stderr_file::puts): Update.
10145 * ui-file.h (ui_file_isatty, ui_file_write)
10146 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10147 (ui_file_puts): Don't declare.
10148
85f0dd3c
TV
101492020-02-10 Tom de Vries <tdevries@suse.de>
10150
10151 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10152 sentinel to char *.
10153
2e927613
TV
101542020-02-09 Tom de Vries <tdevries@suse.de>
10155
10156 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10157 filename if it matches "<artificial>".
10158
6bafc845
HD
101592020-02-09 Hannes Domani <ssbssa@yahoo.de>
10160
10161 * windows-tdep.c (struct enum_value_name): New struct.
10162 (create_enum): New function.
10163 (windows_get_siginfo_type): Create and use enum types.
10164
7928d571
HD
101652020-02-09 Hannes Domani <ssbssa@yahoo.de>
10166
10167 * NEWS: Mention $_siginfo support for Windows.
10168 * windows-nat.c (handle_exception): Set siginfo_er.
10169 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10170 (windows_xfer_siginfo): New function.
10171 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10172 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10173 (init_windows_gdbarch_data): New function.
10174 (get_windows_gdbarch_data): New function.
10175 (windows_get_siginfo_type): New function.
10176 (windows_init_abi): Register windows_get_siginfo_type.
10177 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10178
6751ebae
TT
101792020-02-08 Tom Tromey <tom@tromey.com>
10180
10181 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10182 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10183 <keep>: Declare method.
10184 <m_keep>: Remove member.
10185 <~cutu_reader>: Remove.
10186 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10187 (cutu_reader::cutu_reader): Update.
10188 (cutu_reader::keep): Rename from ~cutu_reader.
10189 (process_psymtab_comp_unit, build_type_psymtabs_1)
10190 (process_skeletonless_type_unit, load_partial_comp_unit)
10191 (load_full_comp_unit, dwarf2_read_addr_index)
10192 (read_signatured_type): Update.
10193
135f5437
TT
101942020-02-08 Tom Tromey <tom@tromey.com>
10195
10196 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10197 "want_partial_unit" parameter.
10198 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10199 Inline check for DW_TAG_partial_unit.
10200 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10201
9f66ff1c
TT
102022020-02-08 Tom Tromey <tom@tromey.com>
10203
10204 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10205 read.c.
10206 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10207 read.c.
10208
c8a7a66f
TT
102092020-02-08 Tom Tromey <tom@tromey.com>
10210
10211 * dwarf2/read.c (read_address): Move to comp-unit.c.
10212 (dwarf2_rnglists_process, dwarf2_ranges_process)
10213 (read_attribute_value, dwarf_decode_lines_1)
10214 (var_decode_location, decode_locdesc): Update.
10215 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10216 read.c. Remove "cu" parameter.
10217 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10218 method.
10219
8266302d
TT
102202020-02-08 Tom Tromey <tom@tromey.com>
10221
10222 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10223 (read_indirect_line_string): Update.
10224 * dwarf2/comp-unit.c (read_offset): Remove.
10225 (read_comp_unit_head): Update.
10226 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10227 method.
10228 (read_offset): Don't declare.
10229
4057dfde
TT
102302020-02-08 Tom Tromey <tom@tromey.com>
10231
10232 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10233 * dwarf2/read.c (struct comp_unit_head): Move to
10234 dwarf2/comp-unit.h.
10235 (enum class rcuh_kind): Move to comp-unit.h.
10236 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10237 (read_comp_unit_head, error_check_comp_unit_head)
10238 (read_and_check_comp_unit_head): Move to comp-unit.c.
10239 (read_offset, dwarf_unit_type_name): Likewise.
10240 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10241 (cutu_reader::cutu_reader, read_call_site_scope)
10242 (find_partial_die, follow_die_offset): Update.
10243 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10244
24aa364d
TT
102452020-02-08 Tom Tromey <tom@tromey.com>
10246
10247 * dwarf2/read.c (read_offset_1): Move to leb.c.
10248 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10249 (dwarf_decode_macro_bytes): Update.
10250 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10251 * dwarf2/leb.h (read_offset): Declare.
10252
2c7d5afc
TT
102532020-02-08 Tom Tromey <tom@tromey.com>
10254
10255 * dwarf2/read.c (dwarf2_section_size): Remove.
10256 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10257 Update.
10258 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10259
4075cb26
TT
102602020-02-08 Tom Tromey <tom@tromey.com>
10261
10262 * dwarf2/read.c (read_initial_length): Move to leb.c.
10263 * dwarf2/leb.h (read_initial_length): Declare.
10264 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10265 handle_nonstd parameter.
10266 * dwarf2/frame.c (read_initial_length): Remove.
10267 (decode_frame_entry_1): Update.
10268
09ba997f
TT
102692020-02-08 Tom Tromey <tom@tromey.com>
10270
10271 * dwarf2/loc.c (dwarf2_find_location_expression)
10272 (dwarf_evaluate_loc_desc::get_tls_address)
10273 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10274 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10275 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10276 (dwarf2_compile_property_to_c)
10277 (dwarf2_loc_desc_get_symbol_read_needs)
10278 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10279 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10280 (loclist_describe_location, loclist_tracepoint_var_ref)
10281 (loclist_generate_c_location): Update.
10282 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10283 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10284 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10285 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10286 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10287 (dwarf2_per_cu_data::addr_size)
10288 (dwarf2_per_cu_data::ref_addr_size)
10289 (dwarf2_per_cu_data::text_offset)
10290 (dwarf2_per_cu_data::addr_type): Now methods.
10291 (per_cu_header_read_in): Make per_cu "const".
10292 (dwarf2_version): Remove.
10293 (dwarf2_per_cu_data::int_type): Now a method.
10294 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10295 (set_die_type, read_array_type, read_subrange_index_type)
10296 (read_tag_string_type, read_subrange_type): Update.
10297 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10298 offset_size, ref_addr_size, text_offset, addr_type, version,
10299 objfile, int_type, addr_sized_int_type>: Declare methods.
10300
96c738c0
TT
103012020-02-08 Tom Tromey <tom@tromey.com>
10302
10303 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10304 Move earlier.
10305
8fdd972c
TT
103062020-02-08 Tom Tromey <tom@tromey.com>
10307
10308 * dwarf2/read.h (dwarf_line_debug): Declare.
10309 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10310 * dwarf2/read.c: Move line_header code to new files.
10311 (dwarf_line_debug): No longer static.
10312 * dwarf2/line-header.c: New file.
10313 * dwarf2/line-header.h: New file.
10314
03075812
TT
103152020-02-08 Tom Tromey <tom@tromey.com>
10316
10317 * dwarf2/read.c (struct line_header) <file_full_name,
10318 file_file_name>: Return unique_xmalloc_ptr.
10319 (line_header::file_file_name): Update.
10320 (line_header::file_full_name): Update.
10321 (dw2_get_file_names_reader): Update.
10322 (macro_start_file): Update.
10323
bb822404
TT
103242020-02-08 Tom Tromey <tom@tromey.com>
10325
10326 * dwarf2/read.c (struct line_header) <file_full_name,
10327 file_file_name>: Declare methods.
10328 (dw2_get_file_names_reader): Update.
10329 (file_file_name): Now a method.
10330 (file_full_name): Likewise.
10331 (macro_start_file): Update.
10332
009b64fc
TT
103332020-02-08 Tom Tromey <tom@tromey.com>
10334
10335 * dwarf2/read.c (dwarf_always_disassemble)
10336 (show_dwarf_always_disassemble): Move to loc.c.
10337 (_initialize_dwarf2_read): Move "always-disassemble" registration
10338 to loc.c.
10339 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10340 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10341 static.
10342 (show_dwarf_always_disassemble): Move from read.c.
10343 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10344
5895093f
TT
103452020-02-08 Tom Tromey <tom@tromey.com>
10346
10347 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10348 (create_quick_file_names_table): Return htab_up.
10349 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10350 Update.
10351 * dwarf2/read.h (struct dwarf2_per_objfile)
10352 <quick_file_names_table>: Now htab_up.
10353
b3b32279
TT
103542020-02-08 Tom Tromey <tom@tromey.com>
10355
10356 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10357
1d33d811
TT
103582020-02-08 Tom Tromey <tom@tromey.com>
10359
10360 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10361 Rewrite.
10362 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10363 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10364 (abbrev_table::abbrev_table): No longer inline.
10365 (ABBREV_HASH_SIZE): Remove.
10366 (abbrev_table::m_abbrevs): Now an htab_up.
10367
86de1d91
TT
103682020-02-08 Tom Tromey <tom@tromey.com>
10369
10370 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10371 (cutu_reader): Update.
10372 (build_type_psymtabs_1): Update.
10373 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10374 (abbrev_table::alloc_abbrev): Update.
10375 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10376 (abbrev_table::read): New static method, renamed from
10377 abbrev_table_read_table.
10378 (abbrev_table::alloc_abbrev)
10379 (abbrev_table::add_abbrev): Now private.
10380 (abbrev_table::abbrev_table): Now private.
10381 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10382
0335378b
TT
103832020-02-08 Tom Tromey <tom@tromey.com>
10384
10385 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10386 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10387 htab_up.
10388
48b490f2
TT
103892020-02-08 Tom Tromey <tom@tromey.com>
10390
10391 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10392 htab_up.
10393 (lookup_dwo_unit_in_dwp): Update.
10394 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10395 on obstack.
10396
bc68fb19
TT
103972020-02-08 Tom Tromey <tom@tromey.com>
10398
10399 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10400 obstack.
10401
d15acc42
TT
104022020-02-08 Tom Tromey <tom@tromey.com>
10403
10404 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10405 line_header_hash.
10406 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10407 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10408 Change type to htab_up.
10409
eaa5fa8b
TT
104102020-02-08 Tom Tromey <tom@tromey.com>
10411
10412 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10413 htab_up. Don't allocate on obstack.
10414 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10415 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10416 Change type to htab_up.
10417
b0b6a987
TT
104182020-02-08 Tom Tromey <tom@tromey.com>
10419
10420 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10421 Change type to htab_up.
10422 * dwarf2/read.c (create_signatured_type_table_from_index)
10423 (create_signatured_type_table_from_debug_names)
10424 (create_all_type_units, add_type_unit)
10425 (lookup_dwo_signatured_type, lookup_signatured_type)
10426 (process_skeletonless_type_unit): Update.
10427 (create_debug_type_hash_table, create_debug_types_hash_table):
10428 Change type of types_htab.
10429 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10430 htab_up. Don't allocate on obstack.
10431 (create_cus_hash_table): Change type of cus_htab parameter.
10432 (struct dwo_file) <cus, tus>: Now htab_up.
10433 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10434 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10435 (queue_and_load_all_dwo_tus): Update.
10436 * dwarf2/index-write.c (write_gdbindex): Update.
10437 (write_debug_names): Update.
10438
39856def
TT
104392020-02-08 Tom Tromey <tom@tromey.com>
10440
10441 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10442 dwarf2/read.c. Remove "next" member. Add constructor ntad
10443 destructor.
10444 (struct dwarf2_per_objfile) <queue>: New member.
10445 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10446 dwarf2/read.h.
10447 (dwarf2_queue, dwarf2_queue_tail): Remove.
10448 (class dwarf2_queue_guard): Add parameter to constructor. Use
10449 DISABLE_COPY_AND_ASSIGN.
10450 <m_per_objfile>: New member.
10451 <~dwarf2_queue_guard>: Rewrite.
10452 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10453 Update.
10454 (~dwarf2_queue_item): New.
10455
3e225074
TT
104562020-02-08 Tom Tromey <tom@tromey.com>
10457
10458 * dwarf2/read.c (struct die_info) <has_children>: New member.
10459 (dw2_get_file_names_reader): Remove has_children.
10460 (dw2_get_file_names): Update.
10461 (read_cutu_die_from_dwo): Remove has_children.
10462 (cutu_reader::init_tu_and_read_dwo_dies)
10463 (cutu_reader::cutu_reader): Update.
10464 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10465 Remove has_children.
10466 (build_type_psymtabs_1, process_skeletonless_type_unit)
10467 (load_partial_comp_unit, load_full_comp_unit): Update.
10468 (create_dwo_cu_reader): Remove has_children.
10469 (create_cus_hash_table, read_die_and_children): Update.
10470 (read_full_die_1,read_full_die): Remove has_children.
10471 (read_signatured_type): Update.
10472 (class cutu_reader) <has_children>: Remove.
10473
82ca8957
TT
104742020-02-08 Tom Tromey <tom@tromey.com>
10475
10476 * dwarf2/expr.c: Rename from dwarf2expr.c.
10477 * dwarf2/expr.h: Rename from dwarf2expr.h.
10478 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10479 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10480 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10481 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10482 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10483 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10484 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10485 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10486 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10487 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10488 * dwarf2/loc.c: Rename from dwarf2loc.c.
10489 * dwarf2/loc.h: Rename from dwarf2loc.h.
10490 * dwarf2/read.c: Rename from dwarf2read.c.
10491 * dwarf2/read.h: Rename from dwarf2read.h.
10492 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10493 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10494 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10495 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10496 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10497 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10498 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10499 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10500 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10501 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10502 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10503 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10504 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10505 Update.
10506 * Makefile.in (COMMON_SFILES): Update.
10507 (HFILES_NO_SRCDIR): Update.
10508
9e35d499
TT
105092020-02-08 Tom Tromey <tom@tromey.com>
10510
10511 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10512 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10513
1eba2311
TT
105142020-02-08 Tom Tromey <tom@tromey.com>
10515
10516 * dwarf2read.h (struct die_info): Don't declare.
10517
e41c2da2
TT
105182020-02-08 Tom Tromey <tom@tromey.com>
10519
10520 * dwarf2read.h (die_info_ptr): Remove typedef.
10521
4fc6c0d5
TT
105222020-02-08 Tom Tromey <tom@tromey.com>
10523
10524 * dwarf2read.c (read_call_site_scope)
10525 (handle_data_member_location, dwarf2_add_member_fn)
10526 (mark_common_block_symbol_computed, read_common_block)
10527 (attr_to_dynamic_prop, partial_die_info::read)
10528 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10529 (dwarf2_symbol_mark_computed, set_die_type): Update.
10530 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10531 method.
10532 (attr_form_is_block): Don't declare.
10533 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10534
cd6c91b4
TT
105352020-02-08 Tom Tromey <tom@tromey.com>
10536
10537 * dwarf2read.c (dwarf2_find_base_address, )
10538 (read_call_site_scope, rust_containing_type)
10539 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10540 (handle_data_member_location, dwarf2_add_member_fn)
10541 (get_alignment, read_structure_type, process_structure_scope)
10542 (mark_common_block_symbol_computed, read_common_block)
10543 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10544 (partial_die_info::read, read_attribute_value, new_symbol)
10545 (lookup_die_type, dwarf2_get_ref_die_offset)
10546 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10547 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10548 (dwarf2_symbol_mark_computed): Update.
10549 * dwarf2/attribute.h (struct attribute) <value_as_address,
10550 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10551 methods.
10552 (value_as_address, attr_form_is_section_offset)
10553 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10554 * dwarf2/attribute.c (attribute::value_as_address)
10555 (attribute::form_is_section_offset, attribute::form_is_constant)
10556 (attribute::form_is_ref): Now methods.
10557
162dce55
TT
105582020-02-08 Tom Tromey <tom@tromey.com>
10559
10560 * dwarf2read.c (struct attribute, DW_STRING)
10561 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10562 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10563 (attr_form_is_block, attr_form_is_section_offset)
10564 (attr_form_is_constant, attr_form_is_ref): Move.
10565 * dwarf2/attribute.h: New file.
10566 * dwarf2/attribute.c: New file, from dwarf2read.c.
10567 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10568
3054dd54
TT
105692020-02-08 Tom Tromey <tom@tromey.com>
10570
10571 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10572 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10573 Move.
10574 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10575 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10576 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10577 abbrev.c.
10578 * dwarf2/abbrev.h: New file.
10579 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10580 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10581
96b79293
TT
105822020-02-08 Tom Tromey <tom@tromey.com>
10583
10584 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10585 (dwarf2_section_size, dwarf2_get_section_info)
10586 (create_signatured_type_table_from_debug_names)
10587 (create_addrmap_from_aranges, read_debug_names_from_section)
10588 (get_gdb_index_contents_from_section, read_comp_unit_head)
10589 (error_check_comp_unit_head, read_abbrev_offset)
10590 (create_debug_type_hash_table, init_cu_die_reader)
10591 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10592 (read_comp_units_from_section, create_cus_hash_table)
10593 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10594 (create_dwp_v2_section, dwarf2_rnglists_process)
10595 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10596 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10597 (read_indirect_string_from_dwz, read_addr_index_1)
10598 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10599 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10600 (fill_in_loclist_baton): Update.
10601 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10602 get_containing_section, get_bfd_owner, get_bfd_section,
10603 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10604 (dwarf2_read_section, get_section_name, get_section_file_name)
10605 (get_containing_section, get_section_bfd_owner)
10606 (get_section_bfd_section, get_section_name, get_section_file_name)
10607 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10608 declare.
10609 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10610 (dwarf2_section_info::get_bfd_owner)
10611 (dwarf2_section_info::get_bfd_section)
10612 (dwarf2_section_info::get_name)
10613 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10614 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10615 (dwarf2_section_info::read): Now methods.
10616 * dwarf-index-write.c (class debug_names): Update.
10617
2c86cff9
TT
106182020-02-08 Tom Tromey <tom@tromey.com>
10619
10620 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10621 Move to dwarf2/section.h.
10622 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10623 (get_section_bfd_section, get_section_name)
10624 (get_section_file_name, get_section_id, get_section_flags)
10625 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10626 dwarf2/section.c.
10627 * dwarf2/section.h: New file.
10628 * dwarf2/section.c: New file, from dwarf2read.c.
10629 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10630
f4382c45
TT
106312020-02-08 Tom Tromey <tom@tromey.com>
10632
10633 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10634 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10635 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10636 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10637 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10638 * dwarf2/leb.h: New file, from dwarf2read.c.
10639 * dwarf2/leb.c: New file, from dwarf2read.c.
10640 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10641 Remove.
10642 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10643 (COMMON_SFILES): Add dwarf2/leb.c.
10644
01840b7a
JB
106452020-02-08 Joel Brobecker <brobecker@adacore.com>
10646
10647 GDB 9.1 released.
10648
dfcb27e4
IB
106492020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10650
10651 PR gdb/25190:
aac66a4c
SM
10652 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10653 * gdb/remote.c (remote_console_output): Update.
10654 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10655 (ui_file_puts): ...this.
10656 * gdb/ui-file.h (ui_file_puts): Add declaration.
10657 * gdb/utils.c (emit_style_escape): Update.
10658 (flush_wrap_buffer): Update.
10659 (fputs_maybe_filtered): Update.
10660 (fputs_unfiltered): Add function.
dfcb27e4 10661
faa17681
IB
106622020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10663
aac66a4c
SM
10664 * gdb/event-loop.c (gdb_wait_for_event): Update.
10665 * gdb/printcmd.c (printf_command): Update.
10666 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10667 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10668 (gdb_os_flush_stderr): Update.
10669 * gdb/remote.c (remote_console_output): Update.
10670 * gdb/ui-file.c (gdb_flush): Rename to...
10671 (ui_file_flush): ...this.
10672 (stderr_file::write): Update.
10673 (stderr_file::puts): Update.
10674 * gdb/ui-file.h (gdb_flush): Rename to...
10675 (ui_file_flush): ...this.
10676 * gdb/utils.c (gdb_flush): Add function.
10677 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10678
5abbbe1d
TT
106792020-02-07 Tom Tromey <tromey@adacore.com>
10680
10681 PR breakpoints/24915:
10682 * source.c (find_and_open_source): Do not check basenames_may_differ.
10683
919adfe8
TT
106842020-02-07 Tom Tromey <tom@tromey.com>
10685
10686 * README: Update gdbserver documentation.
10687 * gdbserver: Move to top level.
10688 * configure.tgt (build_gdbserver): Remove.
10689 * configure.ac: Remove --enable-gdbserver.
10690 * configure: Rebuild.
10691 * Makefile.in (distclean): Don't mention gdbserver.
10692
1d5d29e7
SV
106932020-02-06 Shahab Vahedi <shahab@synopsys.com>
10694
10695 * source-cache.c (source_cache::ensure): Surround
10696 get_plain_source_lines with a try/catch.
10697 (source_cache::get_line_charpos): Get rid of try/catch
10698 and only check for the return value of "ensure".
10699 * tui/tui-source.c (tui_source_window::set_contents):
10700 Simplify "nlines" calculation.
10701
6eb1129c
SV
107022020-02-06 Shahab Vahedi <shahab@synopsys.com>
10703
10704 * MAINTAINERS (Write After Approval): Add myself.
10705
c6a42d11
CB
107062020-02-05 Christian Biesinger <cbiesinger@google.com>
10707
10708 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10709 function call.
10710
c8ecdda6
CB
107112020-02-05 Christian Biesinger <cbiesinger@google.com>
10712
10713 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10714
f6480e70
MR
107152020-02-05 Maciej W. Rozycki <macro@wdc.com>
10716
10717 * nat/riscv-linux-tdesc.h: New file.
10718 * nat/riscv-linux-tdesc.c: New file, taking code from...
10719 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10720 ... here.
10721 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10722 NATDEPFILES.
10723
dcc9fbc6
AB
107242020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10725
10726 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10727 we don't set the fake simulator ptid to the null_ptid.
10728
719546c4
SM
107292020-02-03 Simon Marchi <simon.marchi@efficios.com>
10730
10731 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10732 * gdbthread.h (class thread_info) <resumed>: Likewise.
10733 * infrun.c (resume_1): Likewise.
10734 (proceed): Likewise.
10735 (infrun_thread_stop_requested): Likewise.
10736 (stop_all_threads): Likewise.
10737 (handle_inferior_event): Likewise.
10738 (restart_threads): Likewise.
10739 (finish_step_over): Likewise.
10740 (keep_going_stepped_thread): Likewise.
10741 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10742 (linux_handle_extended_wait): Likewise.
10743 * record-btrace.c (get_thread_current_frame_id): Likewise.
10744 * record-full.c (record_full_wait_1): Likewise.
10745 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10746 * target.c (target_resume): Likewise.
10747 * thread.c (set_running_thread): Likewise.
10748
e409c542
AKS
107492020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10750
10751 * f-valprint.c (f77_print_array_1): Changed datatype of index
10752 variable to LONGEST from int to enable it to contain bound
10753 values correctly.
10754
ee98c0da
MR
107552020-02-03 Maciej W. Rozycki <macro@wdc.com>
10756
10757 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10758 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10759 offsets according to FLEN determined.
10760 (riscv_linux_nat_target::read_description): Determine FLEN
10761 dynamically.
10762 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10763 according to FLEN determined.
10764 (riscv_linux_nat_target::store_registers): Likewise.
10765
aa66aac4
SV
107662020-02-01 Shahab Vahedi <shahab@synopsys.com>
10767
10768 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10769 when reg->group is empty and reggroup is not.
10770
fd9faca8
TT
107712020-01-31 Tom Tromey <tromey@adacore.com>
10772
10773 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10774 Call beneath target's mourn_inferior after unpushing.
10775
42330a68
AB
107762020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10777
10778 PR tui/9765
10779 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10780 have enough lines to fill the screen, still return the lowest
10781 address we found.
10782
7a27a45b
AB
107832020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10784
10785 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10786 '-', '<', and '>' commands.
10787
c47f70e2
PA
107882020-01-29 Pedro Alves <palves@redhat.com>
10789 Sergio Durigan Junior <sergiodj@redhat.com>
10790
10791 * infcmd.c (construct_inferior_arguments): Assert that
10792 'argc' is greater than 0.
10793
5133a315
LM
107942020-01-29 Luis Machado <luis.machado@linaro.org>
10795
10796 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10797 (BRK_INSN_MASK): Define to 0xd4200000.
10798 (aarch64_program_breakpoint_here_p): New function.
10799 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10800 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10801 breakpoint.c.
10802 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10803 breakpoint.h
10804 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10805 call gdbarch_program_breakpoint_here_p.
10806 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10807 default_program_breakpoint_here_p, changed return type to bool and
10808 simplified.
10809 * breakpoint.h (program_breakpoint_here): Moved prototype to
10810 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10811 return type to bool.
10812 * gdbarch.c: Regenerate.
10813 * gdbarch.h: Regenerate.
10814 * gdbarch.sh (program_breakpoint_here_p): New method.
10815 * infrun.c (handle_signal_stop): Call
10816 gdbarch_program_breakpoint_here_p.
10817
168f8c6b
TT
108182020-01-26 Tom Tromey <tom@tromey.com>
10819
10820 * ctfread.c (struct ctf_fp_info): Reindent.
10821 (_initialize_ctfread): Remove.
10822
128a391f
TT
108232020-01-26 Tom Tromey <tom@tromey.com>
10824
10825 * psymtab.c (partial_map_expand_apply)
10826 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10827 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10828 (psym_print_stats, psym_expand_symtabs_for_function)
10829 (psym_map_symbol_filenames, psym_map_matching_symbols)
10830 (psym_expand_symtabs_matching)
10831 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10832 (maintenance_check_psymtabs): Use new methods.
10833 * psympriv.h (struct partial_symtab) <readin_p,
10834 get_compunit_symtab>: New methods.
10835 <readin, compunit_symtab>: Remove members.
10836 (struct standard_psymtab): New.
10837 (struct legacy_psymtab): Derive from standard_psymtab.
10838 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10839 standard_psymtab.
10840 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10841
0494dbec
TT
108422020-01-26 Tom Tromey <tom@tromey.com>
10843
10844 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10845 read_dependencies. Add assert.
10846 * psymtab.c (partial_symtab::read_dependencies): New method.
10847 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10848 method.
10849 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10850 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10851 read_dependencies.
10852 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10853 Add assert.
10854
8566b89b
TT
108552020-01-26 Tom Tromey <tom@tromey.com>
10856
10857 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10858 Call expand_psymtab.
10859 (xcoff_read_symtab): Call expand_psymtab.
10860 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10861 legacy_expand_psymtab.
10862 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10863 method.
10864 (struct legacy_psymtab) <expand_psymtab>: Implement.
10865 <legacy_expand_psymtab>: New member.
10866 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10867 (parse_partial_symbols): Set legacy_expand_psymtab.
10868 (psymtab_to_symtab_1): Change argument order. Call
10869 expand_psymtab.
10870 (new_psymtab): Set legacy_expand_psymtab.
10871 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10872 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10873 expand_psymtab.
10874 (dwarf2_psymtab::expand_psymtab): Rename from
10875 psymtab_to_symtab_1. Call expand_psymtab.
10876 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10877 (dbx_end_psymtab): Likewise.
10878 (dbx_psymtab_to_symtab_1): Change argument order. Call
10879 expand_psymtab.
10880 (dbx_read_symtab): Call expand_psymtab.
10881 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10882 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10883 (ctf_psymtab::read_symtab): Call expand_psymtab.
10884
077cbab2
TT
108852020-01-26 Tom Tromey <tom@tromey.com>
10886
10887 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10888 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10889 messages.
10890 * mdebugread.c (mdebug_read_symtab): Remove prints.
10891 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10892 assert.
10893 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10894
891813be
TT
108952020-01-26 Tom Tromey <tom@tromey.com>
10896
10897 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10898 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10899 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10900 legacy_symtab.
10901 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10902 * psymtab.c (psymtab_to_symtab): Call method.
10903 (dump_psymtab): Update.
10904 * psympriv.h (struct partial_symtab): Add virtual destructor.
10905 <read_symtab>: New method.
10906 (struct legacy_symtab): New.
10907 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10908 (struct pst_map) <pst>: Now a legacy_psymtab.
10909 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10910 (new_psymtab): Use legacy_psymtab.
10911 * dwarf2read.h (struct dwarf2_psymtab): New.
10912 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10913 * dwarf2read.c (dwarf2_create_include_psymtab)
10914 (dwarf2_build_include_psymtabs, create_type_unit_group)
10915 (create_partial_symtab, process_psymtab_comp_unit_reader)
10916 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10917 (set_partial_user): Use dwarf2_psymtab.
10918 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10919 (psymtab_to_symtab_1, process_full_comp_unit)
10920 (process_full_type_unit, dwarf2_ranges_read)
10921 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10922 (dwarf_decode_lines): Use dwarf2_psymtab.
10923 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10924 (add_address_entry_worker, write_one_signatured_type)
10925 (recursively_count_psymbols, recursively_write_psymbols)
10926 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10927 (write_debug_names): Likewise.
10928 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10929 <pst>: Now a legacy_psymtab.
10930 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10931 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10932 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10933 * ctfread.c (struct ctf_psymtab): New.
10934 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10935 ctf_psymtab.
10936 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10937 (create_partial_symtab): Return a ctf_psymtab.
10938 (scan_partial_symbols): Update.
10939
c3693a1d
TT
109402020-01-26 Tom Tromey <tom@tromey.com>
10941
10942 * xcoffread.c (xcoff_start_psymtab): Use new.
10943 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10944 renamed from start_psymtab_common.
10945 * psympriv.h (struct partial_symtab): Add new constructor.
10946 (start_psymtab_common): Don't declare.
10947 * mdebugread.c (parse_partial_symbols): Use new.
10948 * dwarf2read.c (create_partial_symtab): Use new.
10949 * dbxread.c (start_psymtab): Use new.
10950 * ctfread.c (create_partial_symtab): Use new.
10951
32caafd0
TT
109522020-01-26 Tom Tromey <tom@tromey.com>
10953
10954 * xcoffread.c (xcoff_end_psymtab): Use new.
10955 * psymtab.c (start_psymtab_common): Use new.
10956 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10957 Update.
10958 * psympriv.h (struct partial_symtab): Add parameters to
10959 constructor. Don't inline.
10960 (allocate_psymtab): Don't declare.
10961 * mdebugread.c (new_psymtab): Use new.
10962 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10963 * dbxread.c (dbx_end_psymtab): Use new.
10964
abaa2f23
TT
109652020-01-26 Tom Tromey <tom@tromey.com>
10966
10967 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10968 allocate_psymtab. Update documentation.
10969 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10970 allocate_psymtab. Do not use new.
10971 (allocate_psymtab): Use new. Update.
10972
6d94535f
TT
109732020-01-26 Tom Tromey <tom@tromey.com>
10974
10975 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10976 * psymtab.c (psym_print_stats): Update.
10977 * psympriv.h (struct partial_symtab) <readin,
10978 psymtabs_addrmap_supported, anonymous>: Now bool.
10979 * mdebugread.c (psymtab_to_symtab_1): Update.
10980 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10981 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10982 (process_full_comp_unit, process_full_type_unit): Update.
10983 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10984 * ctfread.c (psymtab_to_symtab): Update.
10985
6f17252b
TT
109862020-01-26 Tom Tromey <tom@tromey.com>
10987
10988 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10989 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10990 * psymtab.c (psymtab_storage): Delete psymtabs.
10991 (psymtab_storage::allocate_psymtab): Use new.
10992 (psymtab_storage::discard_psymtab): Use delete.
10993 * psympriv.h (struct partial_symtab): Add constructor and
10994 initializers.
10995
f6f1cebc
TT
109962020-01-26 Tom Tromey <tom@tromey.com>
10997
10998 * machoread.c: Do not include psympriv.h.
10999
e47e48f6
PW
110002020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11001
11002 * NEWS: Mention the new option and the set/show commands.
11003
a2fedca9
PW
110042020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11005
11006 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
11007 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
11008 (validate_exec_file): New variables, enums, functions.
11009 (exec_file_locate_attach, print_section_info): Style the filenames.
11010 (_initialize_exec): Install show_exec_file_mismatch_command and
11011 set_exec_file_mismatch_command.
11012 * gdbcore.h (validate_exec_file): Declare.
11013 * infcmd.c (attach_command): Call validate_exec_file.
11014 * remote.c ( remote_target::remote_add_inferior): Likewise.
11015
7ffa82e1
AB
110162020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11017
11018 * frame.c (find_frame_sal): Move call to get_next_frame into more
11019 inner scope.
11020 * inline-frame.c (inilne_state) <inline_state>: Update argument
11021 types.
11022 (inilne_state) <skipped_symbol>: Rename to...
11023 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
11024 (skip_inline_frames): Build vector of skipped symbols and use this
11025 to reate the inline_state.
11026 (inline_skipped_symbol): Add a comment and some assertions, fetch
11027 skipped symbol from the list.
11028
3d92a3e3
AB
110292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11030
11031 * buildsym.c (lte_is_less_than): Delete.
11032 (buildsym_compunit::end_symtab_with_blockvector): Create local
11033 lambda function to sort line table entries, and use
11034 std::stable_sort instead of std::sort.
11035 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
11036 markers when looking for a previous line.
11037
94a72be7
AB
110382020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11039
11040 * dwarf2read.c (lnp_state_machine::record_line): Include
11041 end_sequence parameter in debug print out. Record the line if we
11042 are at an end_sequence marker even if it's not the start of a
11043 statement.
11044 * symmisc.c (maintenance_print_one_line_table): Print end of
11045 sequence markers with 'END' not '0'.
11046
53af73bf
PA
110472020-01-24 Pedro Alves <palves@redhat.com>
11048
11049 PR gdb/25410
11050 * thread.c (scoped_restore_current_thread::restore): Use
11051 switch_to_inferior_no_thread.
11052 * exec.c: Include "progspace-and-thread.h".
11053 (add_target_sections, remove_target_sections):
11054 scoped_restore_current_pspace_and_thread instead of
11055 scoped_restore_current_thread.
11056 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11057 and aspace to the inferior before calling clone_program_space.
11058 Remove stale comment.
11059
3050c6f4
CB
110602020-01-24 Christian Biesinger <cbiesinger@google.com>
11061
11062 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11063 (arm_netbsd_nat_target::fetch_registers): ...this.
11064 (arm_nbsd_nat_target::store_registers): Rename to...
11065 (arm_netbsd_nat_target::store_registers): ...this.
11066
73685c7e
CB
110672020-01-24 Christian Biesinger <cbiesinger@google.com>
11068
11069 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11070 register_t.
11071
89203d40
CB
110722020-01-24 Christian Biesinger <cbiesinger@google.com>
11073
11074 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11075 Update comment.
11076 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11077 Likewise.
11078 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11079 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11080 the correct replacement (iterate_over_regset_sections).
11081 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11082 Update comment.
11083
1ba1ac88
AB
110842020-01-24 Graham Markall <graham.markall@embecosm.com>
11085
11086 PR gdb/23718
11087 * gdb/python/python.c (execute_gdb_command): Call
11088 async_enable_stdin in catch block.
11089
f3364a6d
AB
110902020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11091
11092 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11093 SWITCH_THRU_ALL_UIS.
11094
733d0a67
AB
110952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11096
11097 PR tui/9765
11098 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11099 comment, add extra parameter, and update to store previous symbol
11100 when appropriate.
11101 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11102 add extra parameter.
11103 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11104 remove unneeded parameter, add try/catch around gdb_print_insn,
11105 rewrite to add items to asm_lines vector.
11106 (tui_find_backward_disassembly_start_address): New function.
11107 (tui_find_disassembly_address): Updated throughout.
11108 (tui_disasm_window::set_contents): Update for changes to
11109 tui_disassemble.
11110 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11111 number of lines to scroll.
11112
b3b3bada
SM
111132020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11114
11115 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11116 (SECT_OFF_DATA): Likewise.
11117 (SECT_OFF_RODATA): Likewise.
11118 (SECT_OFF_TEXT): Likewise.
11119 (SECT_OFF_BSS): Likewise.
11120 (struct objfile) <text_section_offset, data_section_offset>: New
11121 methods.
11122 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11123 objfile::text_section_offset.
11124 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11125 * coffread.c (coff_symtab_read): Likewise.
11126 (enter_linenos): Likewise.
11127 (process_coff_symbol): Likewise.
11128 * ctfread.c (get_objfile_text_range): Likewise.
11129 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11130 Use objfile::data_section_offset.
11131 * dwarf2-frame.c (execute_cfa_program): Use
11132 objfile::text_section_offset.
11133 (dwarf2_frame_find_fde): Likewise.
11134 * dwarf2read.c (create_addrmap_from_index): Likewise.
11135 (create_addrmap_from_aranges): Likewise.
11136 (dw2_find_pc_sect_compunit_symtab): Likewise.
11137 (process_psymtab_comp_unit_reader): Likewise.
11138 (add_partial_symbol): Likewise.
11139 (add_partial_subprogram): Likewise.
11140 (process_full_comp_unit): Likewise.
11141 (read_file_scope): Likewise.
11142 (read_func_scope): Likewise.
11143 (read_lexical_block_scope): Likewise.
11144 (read_call_site_scope): Likewise.
11145 (dwarf2_rnglists_process): Likewise.
11146 (dwarf2_ranges_process): Likewise.
11147 (dwarf2_ranges_read): Likewise.
11148 (dwarf_decode_lines_1): Likewise.
11149 (new_symbol): Likewise.
11150 (dwarf2_fetch_die_loc_sect_off): Likewise.
11151 (dwarf2_per_cu_text_offset): Likewise.
11152 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11153 * hppa-tdep.c (read_unwind_info): Likewise.
11154 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11155 * psympriv.h (struct partial_symtab): Likewise.
11156 * psymtab.c (find_pc_sect_psymtab): Likewise.
11157 * solib-svr4.c (enable_break): Likewise.
11158 * stap-probe.c (relocate_address): Use
11159 objfile::data_section_offset.
11160 * xcoffread.c (enter_line_range): Use
11161 objfile::text_section_offset.
11162 (read_xcoff_symtab): Likewise.
11163
ab53f382
SM
111642020-01-23 Simon Marchi <simon.marchi@efficios.com>
11165
11166 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11167 declaration to narrower scopes.
11168
e7eee665
SM
111692020-01-23 Simon Marchi <simon.marchi@efficios.com>
11170
11171 * darwin-nat.h (struct darwin_exception_msg, enum
11172 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11173 Move up.
11174 (class darwin_nat_target) <wait_1, check_new_threads,
11175 decode_exception_message, decode_message, stop_inferior,
11176 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11177 * darwin-nat.c (darwin_check_new_threads): Rename to...
11178 (darwin_nat_target::check_new_threads): ... this.
11179 (darwin_suspend_inferior_it): Remove.
11180 (darwin_decode_exception_message): Rename to...
11181 (darwin_nat_target::decode_exception_message): ... this.
11182 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11183 (darwin_decode_message): Rename to...
11184 (darwin_nat_target::decode_message): ... this.
11185 (cancel_breakpoint): Rename to...
11186 (darwin_nat_target::cancel_breakpoint): ... this.
11187 (darwin_wait): Rename to...
11188 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11189 instead of iterate_over_inferiors.
11190 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11191 (darwin_stop_inferior): Rename to...
11192 (darwin_nat_target::stop_inferior): ... this.
11193 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11194 (darwin_init_thread_list): Rename to...
11195 (darwin_nat_target::init_thread_list): ... this.
11196 (darwin_ptrace_him): Rename to...
11197 (darwin_nat_target::ptrace_him): ... this.
11198 (darwin_nat_target::create_inferior): Pass lambda function to
11199 fork_inferior.
11200 (darwin_nat_target::detach): Call stop_inferior instead of
11201 darwin_stop_inferior.
11202 * fork-inferior.h (fork_inferior): Change init_trace_fun
11203 parameter to gdb::function_view.
11204 * fork-inferior.c (fork_inferior): Likewise.
11205
c162ed3e
HD
112062020-01-23 Hannes Domani <ssbssa@yahoo.de>
11207
11208 * i386-cygwin-tdep.c (core_process_module_section): Update.
11209 * windows-nat.c (struct lm_info_windows): Add text_offset.
11210 (windows_xfer_shared_libraries): Update.
11211 * windows-tdep.c (windows_xfer_shared_library):
11212 Add text_offset_cached argument.
11213 * windows-tdep.h (windows_xfer_shared_library): Update.
11214
a1237872
SM
112152020-01-21 Simon Marchi <simon.marchi@efficios.com>
11216
11217 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11218
b3ee6dd9
SM
112192020-01-21 Simon Marchi <simon.marchi@efficios.com>
11220
11221 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11222 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11223 replace with range-based for.
11224 (gdbsim_interrupt_inferior): Remove.
11225 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11226 with a range-based for. Inline code from
11227 gdbsim_interrupt_inferior.
11228
f9fac3c8
SM
112292020-01-21 Simon Marchi <simon.marchi@efficios.com>
11230
11231 * infrun.c (proceed): Fix indentation.
11232
f6474de9
TT
112332020-01-21 Tom Tromey <tromey@adacore.com>
11234
11235 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11236 * python/python.c (python_extension_ops): Update.
11237 (gdbpy_colorize): New function.
11238 * python/lib/gdb/__init__.py (colorize): New function.
11239 * extension.h (ext_lang_colorize): Declare.
11240 * extension.c (ext_lang_colorize): New function.
11241 * extension-priv.h (struct extension_language_ops) <colorize>: New
11242 member.
11243 * cli/cli-style.c (_initialize_cli_style): Update help text.
11244
f0c702d4
LM
112452020-01-21 Luis Machado <luis.machado@linaro.org>
11246
11247 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11248 <cond>: Change type to bool.
11249 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11250 (aarch64_displaced_step_cb): Likewise.
11251 (aarch64_displaced_step_tb): Likewise.
11252
1ab139e5
LM
112532020-01-21 Luis Machado <luis.machado@linaro.org>
11254
11255 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11256 output.
11257
0c271889
LM
112582020-01-21 Luis Machado <luis.machado@linaro.org>
11259
11260 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11261 <pc_adjust>: Adjust the documentation.
11262 (aarch64_displaced_step_fixup): Check if PC really moved before
11263 adjusting it.
11264
4d89c1c7
TT
112652020-01-19 Tom Tromey <tom@tromey.com>
11266
11267 * disasm.c (~gdb_disassembler): New destructor.
11268 (gdb_buffered_insn_length): Call disassemble_free_target.
11269 * disasm.h (class gdb_disassembler): Declare destructor. Use
11270 DISABLE_COPY_AND_ASSIGN.
11271
c0ab21c2
TT
112722020-01-19 Tom Tromey <tom@tromey.com>
11273
11274 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11275 (die_reader_func_ftype): Remove.
11276 (cutu_reader): New class.
11277 (dw2_get_file_names_reader): Remove "data" parameter.
11278 (dw2_get_file_names): Use cutu_reader.
11279 (create_debug_type_hash_table): Update.
11280 (read_cutu_die_from_dwo): Update comment.
11281 (lookup_dwo_unit): Add dwo_name parameter.
11282 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11283 die_reader_func_ftype and data parameters.
11284 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11285 Remove die_reader_func_ftype and data parameters.
11286 (~cutu_reader): New; from init_cutu_and_read_dies.
11287 (cutu_reader::cutu_reader): Rename from
11288 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11289 and data parameters.
11290 (init_cutu_and_read_dies_simple): Remove.
11291 (struct process_psymtab_comp_unit_data): Remove.
11292 (process_psymtab_comp_unit_reader): Remove data parameter; add
11293 want_partial_unit and pretend_language parameters.
11294 (process_psymtab_comp_unit): Use cutu_reader.
11295 (build_type_psymtabs_reader): Remove data parameter.
11296 (build_type_psymtabs_1): Use cutu_reader.
11297 (process_skeletonless_type_unit): Likewise.
11298 (load_partial_comp_unit_reader): Remove.
11299 (load_partial_comp_unit): Use cutu_reader.
11300 (load_full_comp_unit_reader): Remove.
11301 (load_full_comp_unit): Use cutu_reader.
11302 (struct create_dwo_cu_data): Remove.
11303 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11304 dwo_unit parameters.
11305 (create_cus_hash_table): Use cutu_reader.
11306 (struct dwarf2_read_addr_index_data): Remove.
11307 (dwarf2_read_addr_index_reader): Remove.
11308 (dwarf2_read_addr_index): Use cutu_reader.
11309 (read_signatured_type_reader): Remove.
11310 (read_signatured_type): Use cutu_reader.
11311
45bbae5c
TT
113122020-01-19 Tom Tromey <tom@tromey.com>
11313
11314 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11315 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11316 (tui_wrefresh): Declare.
11317 * tui/tui-wingeneral.c (suppress_output): New global.
11318 (tui_suppress_output, ~tui_suppress_output): New constructor and
11319 destructor.
11320 (tui_wrefresh): New function.
11321 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11322 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11323 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11324 method.
11325 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11326 tui_wrefresh.
11327 (tui_data_window::no_refresh): New method.
11328 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11329 (tui_reg_command): Use tui_suppress_output
11330 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11331 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11332 method.
11333 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11334
4f13c1c0
TT
113352020-01-19 Tom Tromey <tom@tromey.com>
11336
11337 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11338 Handle case where symtab is null.
11339
fa47e446
SM
113402020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11341
11342 * linux-fork.c (one_fork_p): Simplify.
11343
26f42329
SM
113442020-01-17 Simon Marchi <simon.marchi@efficios.com>
11345
11346 * top.c (struct qt_args): Remove.
11347 (kill_or_detach): Change return type to void, replace `void *`
11348 parameter with a proper one.
11349 (print_inferior_quit_action): Likewise.
11350 (quit_confirm): Use range-based for loop to iterate over inferiors.
11351 (quit_force): Likewise.
11352
a9ac81b1
SM
113532020-01-17 Simon Marchi <simon.marchi@efficios.com>
11354
11355 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11356 `void *` parameter with proper parameters.
11357 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11358 (print_one_inferior): Change return type to void, replace `void *`
11359 parameter with proper parameters.
11360 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11361 inferiors.
11362 (get_other_inferior): Remove.
11363 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11364 inferiors.
11365
788eca49
SM
113662020-01-17 Simon Marchi <simon.marchi@efficios.com>
11367
11368 * mi/mi-interp.c (report_initial_inferior): Remove.
11369 (mi_interp::init): Use range-based for to iterate over inferiors.
11370
d9bc85b6
SM
113712020-01-17 Simon Marchi <simon.marchi@efficios.com>
11372
11373 * python/py-inferior.c (build_inferior_list): Remove.
11374 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11375
40c94099
CB
113762020-01-16 Christian Biesinger <cbiesinger@google.com>
11377
11378 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11379 (btrace_stitch_trace): Likewise.
11380 * charset.c (intermediate_encoding): Likewise (vaild).
11381 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11382 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11383 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11384
e0cdfe3c
HD
113852020-01-16 Hannes Domani <ssbssa@yahoo.de>
11386
11387 * windows-tdep.c (windows_get_tlb_type):
11388 Add rtl_user_process_parameters type.
11389
790f1718 113902020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11391 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11392
11393 PR build/24805
11394 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11395 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11396 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11397 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11398 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11399 (ps_plog): Redeclare exported functions with default visibility.
11400
3112ed97
NA
114012020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11402
11403 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11404 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11405
8dc3273e
SM
114062020-01-15 Simon Marchi <simon.marchi@efficios.com>
11407
11408 * infcmd.c (post_create_inferior): Use get_thread_regcache
11409 instead of get_current_regcache.
11410
ff47f4f0
TT
114112020-01-14 Tom Tromey <tom@tromey.com>
11412
11413 PR symtab/12535:
11414 * python/python.c (gdbpy_decode_line): Treat empty string the same
11415 as no argument.
11416
975f45b7
TT
114172020-01-14 Tom Tromey <tom@tromey.com>
11418
11419 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11420
25e57356
TT
114212020-01-14 Tom Tromey <tom@tromey.com>
11422
11423 * nat/linux-btrace.c: Don't include <config.h>.
11424 * nat/linux-ptrace.c: Don't include <config.h>.
11425 * nat/x86-linux-dregs.c: Don't include <config.h>.
11426
05ea2a05
TT
114272020-01-14 Tom Tromey <tom@tromey.com>
11428
11429 * configure: Rebuild.
11430 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11431
01027315
TT
114322020-01-14 Tom Tromey <tom@tromey.com>
11433
11434 * nat/x86-linux-dregs.c: Include configh.h.
11435 * nat/linux-ptrace.c: Include configh.h.
11436 * nat/linux-btrace.c: Include configh.h.
11437 * defs.h: Include config.h, bfd.h.
11438 * configure.ac: Don't source common.host.
11439 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11440 * configure: Rebuild.
11441 * acinclude.m4: Update path.
11442 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11443 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11444 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11445 (CLIBS): Add LIBSUPPORT.
11446 (CDEPS): Likewise.
11447 (COMMON_SFILES): Remove gdbsupport files.
11448 (HFILES_NO_SRCDIR): Likewise.
11449 (stamp-version): Update path to create-version.sh.
11450 (ALLDEPFILES): Remove gdbsupport files.
11451
b2ceabe8
TT
114522020-01-14 Tom Tromey <tom@tromey.com>
11453
11454 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11455 USE_WIN32API when needed.
11456 * configure.ac (USE_WIN32API): Don't define.
11457 (WIN32LIBS): Use WIN32APILIBS.
11458 * configure: Rebuild.
11459
25c51f71
TT
114602020-01-14 Tom Tromey <tom@tromey.com>
11461
11462 * configure: Rebuild.
11463 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11464
717c684d
BE
114652020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11466
11467 * skip.c (skip_function_command): Make skip w/o arguments use the
11468 name of the inlined function if pc is inside any inlined function.
11469
7da6a5b9
LM
114702020-01-14 Luis Machado <luis.machado@linaro.org>
11471
11472 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11473 * infrun.c (resume_1): Likewise.
11474 (handle_inferior_event): Remove stale comment.
11475 * linux-nat.c (linux_nat_target::resume): Update comments.
11476 (save_stop_reason): Likewise.
11477 (linux_nat_filter_event): Likewise.
11478 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11479
44e4c775
AB
114802020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11481
11482 * elfread.c (record_minimal_symbol): Set section index to 0 for
11483 non-allocatable sections.
11484
18a8505e
AT
11485
114862020-01-13 Ali Tamur <tamur@google.com>
11487
11488 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11489 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11490 to gdb::optional. Update comments.
11491 (dwo_file): Update comments.
11492 (read_attribute): Update API to take an additional out parameter,
11493 need_reprocess. This is used to mark attributes that need other
11494 attributes (e.g. str_offsets_base) for correct computation which may not
11495 have been read yet.
11496 (read_attribute_reprocess): New function declaration.
11497 (read_addr_index): Likewise.
11498 (read_dwo_str_index): Likewise.
11499 (read_stub_str_index): Likewise.
11500 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11501 (lookup_addr_base): New function definition.
11502 (lookup_ranges_base): Likewise.
11503 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11504 lookup_ranges_base.
11505 (init_cutu_and_read_dies): Update comments.
11506 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11507 unit. This is used to inherit parent's str_offsets_base and addr_base.
11508 Update comments.
11509 (init_cutu_and_read_dies_simple): Reflect API changes.
11510 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11511 (create_cus_hash_table): Change API to take parent compile unit.
11512 Reflect API changes.
11513 (open_and_init_dwo_file): Reflect API changes.
11514 (dwarf2_get_pc_bounds): Update comments.
11515 (dwarf2_record_block_ranges): Likewise.
11516 (read_full_die_1): Change implementation to reprocess attributes that
11517 need str_offsets_base and addr_base.
11518 (partial_die_info::read): Likewise.
11519 (read_attribute_reprocess): New function definition.
11520 (read_attribute_value): Change API to take an additional out parameter,
11521 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11522 when a non-dwo compile unit has index based attributes.
11523 (read_attribute): Reflect API changes.
11524 (read_addr_index_1): Reflect API changes. Update comments.
11525 (dwarf2_read_addr_index_data): Reflect API changes.
11526 (dwarf2_read_addr_index): Likewise.
11527 (read_str_index): Change API and implementation. This becomes a helper
11528 to be used by the new string index related methods. Update error
11529 message and comments.
11530 (read_dwo_str_index): New function definition.
11531 (read_stub_str_index): Likewise.
11532 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11533 * symfile.h (dwarf2_debug_sections): Likewise.
11534 * xcoffread.c (dwarf2_debug_sections): Likewise.
11535
0cac9354
SM
115362020-01-13 Simon Marchi <simon.marchi@efficios.com>
11537
11538 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11539 core_reg_sect type to gdb_byte *.
11540 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11541 * cris-tdep.c (fetch_core_registers): Likewise.
11542 * corelow.c (core_target::get_core_register_section): Change
11543 type of `contents` to gdb::byte_vector.
11544
9a6d629c
AB
115452020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11546
11547 * tui/tui-wingeneral.c (box_win): Position the title in the center
11548 of the border.
11549
d8b2f9e3
SM
115502020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11551
11552 * corelow.c (core_target::get_core_register_section): Use
11553 std::vector instead of alloca.
11554
bb564c58
SM
115552020-01-13 Simon Marchi <simon.marchi@efficios.com>
11556
11557 * warning.m4: Add -Wmissing-declarations to build_warnings.
11558 * configure: Re-generate.
11559
6b366111
SM
115602020-01-13 Simon Marchi <simon.marchi@efficios.com>
11561
11562 * python/python.c (init__gdb_module): Add declaration.
11563
6c265988
SM
115642020-01-13 Simon Marchi <simon.marchi@efficios.com>
11565
11566 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11567 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11568 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11569 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11570 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11571 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11572 * ada-exp.y (_initialize_ada_exp): Add declaration.
11573 * ada-lang.c (_initialize_ada_language): Add declaration.
11574 * ada-tasks.c (_initialize_tasks): Add declaration.
11575 * agent.c (_initialize_agent): Add declaration.
11576 * aix-thread.c (_initialize_aix_thread): Add declaration.
11577 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11578 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11579 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11580 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11581 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11582 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11583 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11584 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11585 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11586 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11587 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11588 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11589 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11590 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11591 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11592 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11593 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11594 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11595 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11596 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11597 * annotate.c (_initialize_annotate): Add declaration.
11598 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11599 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11600 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11601 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11602 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11603 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11604 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11605 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11606 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11607 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11608 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11609 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11610 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11611 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11612 * auto-load.c (_initialize_auto_load): Add declaration.
11613 * auxv.c (_initialize_auxv): Add declaration.
11614 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11615 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11616 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11617 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11618 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11619 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11620 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11621 * breakpoint.c (_initialize_breakpoint): Add declaration.
11622 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11623 * btrace.c (_initialize_btrace): Add declaration.
11624 * charset.c (_initialize_charset): Add declaration.
11625 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11626 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11627 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11628 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11629 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11630 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11631 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11632 * coffread.c (_initialize_coffread): Add declaration.
11633 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11634 * compile/compile.c (_initialize_compile): Add declaration.
11635 * complaints.c (_initialize_complaints): Add declaration.
11636 * completer.c (_initialize_completer): Add declaration.
11637 * copying.c (_initialize_copying): Add declaration.
11638 * corefile.c (_initialize_core): Add declaration.
11639 * corelow.c (_initialize_corelow): Add declaration.
11640 * cp-abi.c (_initialize_cp_abi): Add declaration.
11641 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11642 * cp-support.c (_initialize_cp_support): Add declaration.
11643 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11644 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11645 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11646 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11647 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11648 * ctfread.c (_initialize_ctfread): Add declaration.
11649 * d-lang.c (_initialize_d_language): Add declaration.
11650 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11651 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11652 * dbxread.c (_initialize_dbxread): Add declaration.
11653 * dcache.c (_initialize_dcache): Add declaration.
11654 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11655 * disasm.c (_initialize_disasm): Add declaration.
11656 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11657 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11658 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11659 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11660 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11661 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11662 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11663 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11664 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11665 * elfread.c (_initialize_elfread): Add declaration.
11666 * exec.c (_initialize_exec): Add declaration.
11667 * extension.c (_initialize_extension): Add declaration.
11668 * f-lang.c (_initialize_f_language): Add declaration.
11669 * f-valprint.c (_initialize_f_valprint): Add declaration.
11670 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11671 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11672 * filesystem.c (_initialize_filesystem): Add declaration.
11673 * findcmd.c (_initialize_mem_search): Add declaration.
11674 * findvar.c (_initialize_findvar): Add declaration.
11675 * fork-child.c (_initialize_fork_child): Add declaration.
11676 * frame-base.c (_initialize_frame_base): Add declaration.
11677 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11678 * frame.c (_initialize_frame): Add declaration.
11679 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11680 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11681 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11682 * gcore.c (_initialize_gcore): Add declaration.
11683 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11684 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11685 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11686 * gdbarch.c (_initialize_gdbarch): Add declaration.
11687 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11688 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11689 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11690 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11691 * go-lang.c (_initialize_go_language): Add declaration.
11692 * go32-nat.c (_initialize_go32_nat): Add declaration.
11693 * guile/guile.c (_initialize_guile): Add declaration.
11694 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11695 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11696 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11697 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11698 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11699 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11700 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11701 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11702 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11703 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11704 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11705 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11706 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11707 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11708 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11709 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11710 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11711 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11712 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11713 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11714 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11715 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11716 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11717 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11718 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11719 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11720 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11721 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11722 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11723 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11724 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11725 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11726 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11727 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11728 * infcall.c (_initialize_infcall): Add declaration.
11729 * infcmd.c (_initialize_infcmd): Add declaration.
11730 * inflow.c (_initialize_inflow): Add declaration.
11731 * infrun.c (_initialize_infrun): Add declaration.
11732 * interps.c (_initialize_interpreter): Add declaration.
11733 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11734 * jit.c (_initialize_jit): Add declaration.
11735 * language.c (_initialize_language): Add declaration.
11736 * linux-fork.c (_initialize_linux_fork): Add declaration.
11737 * linux-nat.c (_initialize_linux_nat): Add declaration.
11738 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11739 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11740 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11741 * m2-lang.c (_initialize_m2_language): Add declaration.
11742 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11743 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11744 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11745 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11746 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11747 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11748 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11749 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11750 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11751 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11752 * machoread.c (_initialize_machoread): Add declaration.
11753 * macrocmd.c (_initialize_macrocmd): Add declaration.
11754 * macroscope.c (_initialize_macroscope): Add declaration.
11755 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11756 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11757 * maint.c (_initialize_maint_cmds): Add declaration.
11758 * mdebugread.c (_initialize_mdebugread): Add declaration.
11759 * memattr.c (_initialize_mem): Add declaration.
11760 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11761 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11762 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11763 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11764 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11765 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11766 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11767 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11768 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11769 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11770 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11771 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11772 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11773 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11774 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11775 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11776 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11777 * mipsread.c (_initialize_mipsread): Add declaration.
11778 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11779 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11780 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11781 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11782 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11783 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11784 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11785 * nto-procfs.c (_initialize_procfs): Add declaration.
11786 * objc-lang.c (_initialize_objc_language): Add declaration.
11787 * observable.c (_initialize_observer): Add declaration.
11788 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11789 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11790 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11791 * osabi.c (_initialize_gdb_osabi): Add declaration.
11792 * osdata.c (_initialize_osdata): Add declaration.
11793 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11794 * parse.c (_initialize_parse): Add declaration.
11795 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11796 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11797 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11798 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11799 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11800 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11801 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11802 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11803 * printcmd.c (_initialize_printcmd): Add declaration.
11804 * probe.c (_initialize_probe): Add declaration.
11805 * proc-api.c (_initialize_proc_api): Add declaration.
11806 * proc-events.c (_initialize_proc_events): Add declaration.
11807 * proc-service.c (_initialize_proc_service): Add declaration.
11808 * procfs.c (_initialize_procfs): Add declaration.
11809 * producer.c (_initialize_producer): Add declaration.
11810 * psymtab.c (_initialize_psymtab): Add declaration.
11811 * python/python.c (_initialize_python): Add declaration.
11812 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11813 * record-btrace.c (_initialize_record_btrace): Add declaration.
11814 * record-full.c (_initialize_record_full): Add declaration.
11815 * record.c (_initialize_record): Add declaration.
11816 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11817 * regcache.c (_initialize_regcache): Add declaration.
11818 * reggroups.c (_initialize_reggroup): Add declaration.
11819 * remote-notif.c (_initialize_notif): Add declaration.
11820 * remote-sim.c (_initialize_remote_sim): Add declaration.
11821 * remote.c (_initialize_remote): Add declaration.
11822 * reverse.c (_initialize_reverse): Add declaration.
11823 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11824 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11825 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11826 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11827 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11828 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11829 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11830 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11831 Add declaration.
11832 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11833 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11834 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11835 * rust-exp.y (_initialize_rust_exp): Add declaration.
11836 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11837 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11838 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11839 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11840 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11841 * score-tdep.c (_initialize_score_tdep): Add declaration.
11842 * ser-go32.c (_initialize_ser_dos): Add declaration.
11843 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11844 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11845 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11846 * ser-uds.c (_initialize_ser_socket): Add declaration.
11847 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11848 * serial.c (_initialize_serial): Add declaration.
11849 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11850 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11851 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11852 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11853 * skip.c (_initialize_step_skip): Add declaration.
11854 * sol-thread.c (_initialize_sol_thread): Add declaration.
11855 * solib-aix.c (_initialize_solib_aix): Add declaration.
11856 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11857 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11858 * solib-frv.c (_initialize_frv_solib): Add declaration.
11859 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11860 * solib-target.c (_initialize_solib_target): Add declaration.
11861 * solib.c (_initialize_solib): Add declaration.
11862 * source-cache.c (_initialize_source_cache): Add declaration.
11863 * source.c (_initialize_source): Add declaration.
11864 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11865 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11866 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11867 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11868 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11869 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11870 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11871 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11872 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11873 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11874 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11875 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11876 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11877 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11878 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11879 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11880 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11881 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11882 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11883 * stabsread.c (_initialize_stabsread): Add declaration.
11884 * stack.c (_initialize_stack): Add declaration.
11885 * stap-probe.c (_initialize_stap_probe): Add declaration.
11886 * std-regs.c (_initialize_frame_reg): Add declaration.
11887 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11888 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11889 * symfile.c (_initialize_symfile): Add declaration.
11890 * symmisc.c (_initialize_symmisc): Add declaration.
11891 * symtab.c (_initialize_symtab): Add declaration.
11892 * target.c (_initialize_target): Add declaration.
11893 * target-connection.c (_initialize_target_connection): Add
11894 declaration.
11895 * target-dcache.c (_initialize_target_dcache): Add declaration.
11896 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11897 * thread.c (_initialize_thread): Add declaration.
11898 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11899 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11900 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11901 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11902 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11903 * tracectf.c (_initialize_ctf): Add declaration.
11904 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11905 * tracefile.c (_initialize_tracefile): Add declaration.
11906 * tracepoint.c (_initialize_tracepoint): Add declaration.
11907 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11908 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11909 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11910 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11911 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11912 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11913 * tui/tui.c (_initialize_tui): Add declaration.
11914 * typeprint.c (_initialize_typeprint): Add declaration.
11915 * ui-style.c (_initialize_ui_style): Add declaration.
11916 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11917 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11918 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11919 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11920 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11921 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11922 * unittests/filtered_iterator-selftests.c
11923 (_initialize_filtered_iterator_selftests): Add declaration.
11924 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11925 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11926 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11927 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11928 * unittests/main-thread-selftests.c
11929 (_initialize_main_thread_selftests): Add declaration.
11930 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11931 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11932 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11933 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11934 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11935 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11936 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11937 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11938 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11939 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11940 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11941 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11942 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11943 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11944 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11945 declaration.
11946 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11947 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11948 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11949 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11950 * user-regs.c (_initialize_user_regs): Add declaration.
11951 * utils.c (_initialize_utils): Add declaration.
11952 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11953 * valops.c (_initialize_valops): Add declaration.
11954 * valprint.c (_initialize_valprint): Add declaration.
11955 * value.c (_initialize_values): Add declaration.
11956 * varobj.c (_initialize_varobj): Add declaration.
11957 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11958 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11959 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11960 * windows-nat.c (_initialize_windows_nat): Add declaration.
11961 (_initialize_check_for_gdb_ini): Add declaration.
11962 (_initialize_loadable): Add declaration.
11963 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11964 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11965 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11966 * xcoffread.c (_initialize_xcoffread): Add declaration.
11967 * xml-support.c (_initialize_xml_support): Add declaration.
11968 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11969 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11970 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11971 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11972
e2de1eec
SM
119732020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11974
11975 * regformats/regdat.sh: Generate declaration for init function.
11976
e0037b4c
SM
119772020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11978
11979 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11980 up.
11981 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11982 close_one_inferior>: New methods.
11983 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11984 pass down target to find_inferior_pid.
11985 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11986 Pass down target to find_inferior_ptid.
11987 (gdbsim_target::create_inferior): Pass down target to
11988 add_thread_silent.
11989 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11990 target down to find_inferior_ptid and switch_to_thread.
11991 (gdbsim_target::close): Update to call close_one_inferior.
11992 (struct resume_data): Remove.
11993 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11994 directly, rather than through a void pointer.
11995 (gdbsim_target::resume): Update to call resume_one_inferior.
11996
58920b5b
SM
119972020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11998
11999 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
12000
4ec89149
PA
120012020-01-12 Pedro Alves <palves@redhat.com>
12002
12003 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
12004 directly for the current inferior instead of
12005 discard_all_inferiors.
12006 (discard_all_inferiors): Delete.
12007
7c392d1d
TT
120082020-01-11 Tom Tromey <tom@tromey.com>
12009
12010 * tui/tui-wingeneral.c (box_win): Check cli_styling.
12011 * tui/tui-winsource.c (tui_source_window_base::refill): Use
12012 deprecated_safe_get_selected_frame.
12013
d9ebdab7
TBA
120142020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12015
12016 * inferior.c (print_inferior): Switch inferior before printing it.
12017
f3c469b9
PA
120182020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
12019 Pedro Alves <palves@redhat.com>
12020
12021 * progspace-and-thread.c (switch_to_program_space_and_thread):
12022 Assert there's an inferior for PSPACE. Use
12023 switch_to_inferior_no_thread to switch the inferior too.
12024 * progspace.c (program_space::~program_space): Call
12025 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
12026 (program_space::free_all_objfiles): Don't call clear_symtab_users
12027 here.
12028 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
12029
65c574f6
PA
120302020-01-10 Pedro Alves <palves@redhat.com>
12031
12032 * NEWS: Mention multi-target debugging, "info connections", and
12033 "add-inferior -no-connection".
12034
2f4fcf00
PA
120352020-01-10 Pedro Alves <palves@redhat.com>
12036
12037 * infrun.c: Include "target-connection.h".
12038 (check_multi_target_resumption): New.
12039 (proceed): Call it.
12040 * target-connection.c (make_target_connection_string): Make
12041 extern.
12042 * target-connection.h (make_target_connection_string): Declare.
12043
121b3efd
PA
120442020-01-10 Pedro Alves <palves@redhat.com>
12045
12046 * Makefile.in (COMMON_SFILES): Add target-connection.c.
12047 * inferior.c (uiout_field_connection): New function.
12048 (print_inferior): Add new "connection-id" column.
12049 (add_inferior_command): Show connection number/string of added
12050 inferior.
12051 * process-stratum-target.h
12052 (process_stratum_target::connection_string): New virtual method.
12053 (process_stratum_target::connection_number): New field.
12054 * remote.c (remote_target::connection_string): New override.
12055 * target-connection.c: New file.
12056 * target-connection.h: New file.
12057 * target.c (decref_target): Remove process_stratum targets from
12058 the connection list.
12059 (target_stack::push): Add process_stratum targets to the
12060 connection list.
12061
4f837581
PA
120622020-01-10 Pedro Alves <palves@redhat.com>
12063
12064 Revert:
12065 2016-04-12 Pedro Alves <palves@redhat.com>
12066 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12067 Remove references to name.
12068 * serial.h (struct serial) <name>: Delete.
12069
f4ec508e
PA
120702020-01-10 Pedro Alves <palves@redhat.com>
12071
12072 * gdbarch-selftests.c (register_to_value_test): Remove "target
12073 already pushed" check.
12074
5b6d1e4f
PA
120752020-01-10 Pedro Alves <palves@redhat.com>
12076 John Baldwin <jhb@FreeBSD.org>
12077
12078 * aarch64-linux-nat.c
12079 (aarch64_linux_nat_target::thread_architecture): Adjust.
12080 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12081 (task_command_1): Likewise.
12082 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12083 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12084 (aix_thread_target::store_registers)
12085 (aix_thread_target::thread_alive): Adjust.
12086 * amd64-fbsd-tdep.c: Include "inferior.h".
12087 (amd64fbsd_get_thread_local_address): Pass down target.
12088 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12089 thread's gdbarch instead of target_gdbarch.
12090 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12091 get_last_target_status.
12092 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12093 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12094 inferiors.
12095 (update_inserted_breakpoint_locations): Skip if inferiors with no
12096 execution.
12097 (update_global_location_list): When handling moribund locations,
12098 find representative inferior for location's pspace, and use thread
12099 count of its process_stratum target.
12100 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12101 * bsd-uthread.c (bsd_uthread_target::wait): Use
12102 as_process_stratum_target and adjust thread_change_ptid and
12103 add_thread calls.
12104 (bsd_uthread_target::update_thread_list): Use
12105 as_process_stratum_target and adjust find_thread_ptid,
12106 thread_change_ptid and add_thread calls.
12107 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12108 find_thread_ptid call.
12109 * corelow.c (add_to_thread_list): Adjust add_thread call.
12110 (core_target_open): Adjust add_thread_silent and thread_count
12111 calls.
12112 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12113 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12114 * event-top.c (async_disconnect): Pop targets from all inferiors.
12115 * exec.c (add_target_sections): Push exec target on all inferiors
12116 sharing the program space.
12117 (remove_target_sections): Remove the exec target from all
12118 inferiors sharing the program space.
12119 (exec_on_vfork): New.
12120 * exec.h (exec_on_vfork): Declare.
12121 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12122 Pass it down.
12123 (fbsd_nat_target::update_thread_list): Adjust.
12124 (fbsd_nat_target::resume): Adjust.
12125 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12126 down.
12127 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12128 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12129 get_thread_arch_regcache call.
12130 * fork-child.c (gdb_startup_inferior): Pass target down to
12131 startup_inferior and set_executing.
12132 * gdbthread.h (struct process_stratum_target): Forward declare.
12133 (add_thread, add_thread_silent, add_thread_with_info)
12134 (in_thread_list): Add process_stratum_target parameter.
12135 (find_thread_ptid(inferior*, ptid_t)): New overload.
12136 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12137 parameter.
12138 (all_threads()): Delete overload.
12139 (all_threads, all_non_exited_threads): Add process_stratum_target
12140 parameter.
12141 (all_threads_safe): Use brace initialization.
12142 (thread_count): Add process_stratum_target parameter.
12143 (set_resumed, set_running, set_stop_requested, set_executing)
12144 (threads_are_executing, finish_thread_state): Add
12145 process_stratum_target parameter.
12146 (switch_to_thread): Use is_current_thread.
12147 * i386-fbsd-tdep.c: Include "inferior.h".
12148 (i386fbsd_get_thread_local_address): Pass down target.
12149 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12150 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12151 have_inferiors check.
12152 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12153 (inf_ptrace_target::attach): Adjust.
12154 * infcall.c (run_inferior_call): Adjust.
12155 * infcmd.c (run_command_1): Pass target to
12156 scoped_finish_thread_state.
12157 (proceed_thread_callback): Skip inferiors with no execution.
12158 (continue_command): Rename 'all_threads' local to avoid hiding
12159 'all_threads' function. Adjust get_last_target_status call.
12160 (prepare_one_step): Adjust set_running call.
12161 (signal_command): Use user_visible_resume_target. Compare thread
12162 pointers instead of inferior_ptid.
12163 (info_program_command): Adjust to pass down target.
12164 (attach_command): Mark target's 'thread_executing' flag.
12165 (stop_current_target_threads_ns): New, factored out from ...
12166 (interrupt_target_1): ... this. Switch inferior before making
12167 target calls.
12168 * inferior-iter.h
12169 (struct all_inferiors_iterator, struct all_inferiors_range)
12170 (struct all_inferiors_safe_range)
12171 (struct all_non_exited_inferiors_range): Filter on
12172 process_stratum_target too. Remove explicit.
12173 * inferior.c (inferior::inferior): Push dummy target on target
12174 stack.
12175 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12176 Add process_stratum_target parameter, and pass it down.
12177 (have_live_inferiors): Adjust.
12178 (switch_to_inferior_and_push_target): New.
12179 (add_inferior_command, clone_inferior_command): Handle
12180 "-no-connection" parameter. Use
12181 switch_to_inferior_and_push_target.
12182 (_initialize_inferior): Mention "-no-connection" option in
12183 the help of "add-inferior" and "clone-inferior" commands.
12184 * inferior.h: Include "process-stratum-target.h".
12185 (interrupt_target_1): Use bool.
12186 (struct inferior) <push_target, unpush_target, target_is_pushed,
12187 find_target_beneath, top_target, process_target, target_at,
12188 m_stack>: New.
12189 (discard_all_inferiors): Delete.
12190 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12191 (all_inferiors, all_non_exited_inferiors): Add
12192 process_stratum_target parameter.
12193 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12194 (target_last_proc_target): New global.
12195 (follow_fork_inferior): Push target on new inferior. Pass target
12196 to add_thread_silent. Call exec_on_vfork. Handle target's
12197 reference count.
12198 (follow_fork): Adjust get_last_target_status call. Also consider
12199 target.
12200 (follow_exec): Push target on new inferior.
12201 (struct execution_control_state) <target>: New field.
12202 (user_visible_resume_target): New.
12203 (do_target_resume): Call target_async.
12204 (resume_1): Set target's threads_executing flag. Consider resume
12205 target.
12206 (commit_resume_all_targets): New.
12207 (proceed): Also consider resume target. Skip threads of inferiors
12208 with no execution. Commit resumtion in all targets.
12209 (start_remote): Pass current inferior to wait_for_inferior.
12210 (infrun_thread_stop_requested): Consider target as well. Pass
12211 thread_info pointer to clear_inline_frame_state instead of ptid.
12212 (infrun_thread_thread_exit): Consider target as well.
12213 (random_pending_event_thread): New inferior parameter. Use it.
12214 (do_target_wait): Rename to ...
12215 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12216 down.
12217 (threads_are_resumed_pending_p, do_target_wait): New.
12218 (prepare_for_detach): Adjust calls.
12219 (wait_for_inferior): New inferior parameter. Handle it. Use
12220 do_target_wait_1 instead of do_target_wait.
12221 (fetch_inferior_event): Adjust. Switch to representative
12222 inferior. Pass target down.
12223 (set_last_target_status): Add process_stratum_target parameter.
12224 Save target in global.
12225 (get_last_target_status): Add process_stratum_target parameter and
12226 handle it.
12227 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12228 (context_switch): Check inferior_ptid == null_ptid before calling
12229 inferior_thread().
12230 (get_inferior_stop_soon): Pass down target.
12231 (wait_one): Rename to ...
12232 (poll_one_curr_target): ... this.
12233 (struct wait_one_event): New.
12234 (wait_one): New.
12235 (stop_all_threads): Adjust.
12236 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12237 event's target.
12238 (switch_back_to_stepped_thread): Also consider target.
12239 (print_stop_event): Update.
12240 (normal_stop): Update. Also consider the resume target.
12241 * infrun.h (wait_for_inferior): Remove declaration.
12242 (user_visible_resume_target): New declaration.
12243 (get_last_target_status, set_last_target_status): New
12244 process_stratum_target parameter.
12245 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12246 process_stratum_target parameter, and use it.
12247 (clear_inline_frame_state (thread_info*)): New.
12248 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12249 process_stratum_target parameter.
12250 (clear_inline_frame_state (thread_info*)): Declare.
12251 * linux-fork.c (delete_checkpoint_command): Pass target down to
12252 find_thread_ptid.
12253 (checkpoint_command): Adjust.
12254 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12255 instead of just tweaking inferior_ptid.
12256 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12257 (exit_lwp): Pass target down to find_thread_ptid.
12258 (attach_proc_task_lwp_callback): Pass target down to
12259 add_thread/set_running/set_executing.
12260 (linux_nat_target::attach): Pass target down to
12261 thread_change_ptid.
12262 (get_detach_signal): Pass target down to find_thread_ptid.
12263 Consider last target status's target.
12264 (linux_resume_one_lwp_throw, resume_lwp)
12265 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12266 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12267 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12268 (linux_nat_target::async_wait_fd): New.
12269 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12270 target down.
12271 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12272 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12273 * linux-thread-db.c (struct thread_db_info::process_target): New
12274 field.
12275 (add_thread_db_info): Save target.
12276 (get_thread_db_info): New process_stratum_target parameter. Also
12277 match target.
12278 (delete_thread_db_info): New process_stratum_target parameter.
12279 Also match target.
12280 (thread_from_lwp): Adjust to pass down target.
12281 (thread_db_notice_clone): Pass down target.
12282 (check_thread_db_callback): Pass down target.
12283 (try_thread_db_load_1): Always push the thread_db target.
12284 (try_thread_db_load, record_thread): Pass target down.
12285 (thread_db_target::detach): Pass target down. Always unpush the
12286 thread_db target.
12287 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12288 target down. Always unpush the thread_db target.
12289 (find_new_threads_callback, thread_db_find_new_threads_2)
12290 (thread_db_target::update_thread_list): Pass target down.
12291 (thread_db_target::pid_to_str): Pass current inferior down.
12292 (thread_db_target::get_thread_local_address): Pass target down.
12293 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12294 target down.
12295 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12296 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12297 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12298 (procfs_init_inferior): Rename to ...
12299 (procfs_target::procfs_init_inferior): ... this and adjust.
12300 (procfs_target::create_inferior, procfs_notice_thread)
12301 (procfs_do_thread_registers): Adjust.
12302 * ppc-fbsd-tdep.c: Include "inferior.h".
12303 (ppcfbsd_get_thread_local_address): Pass down target.
12304 * proc-service.c (ps_xfer_memory): Switch current inferior and
12305 program space as well.
12306 (get_ps_regcache): Pass target down.
12307 * process-stratum-target.c
12308 (process_stratum_target::thread_address_space)
12309 (process_stratum_target::thread_architecture): Pass target down.
12310 * process-stratum-target.h
12311 (process_stratum_target::threads_executing): New field.
12312 (as_process_stratum_target): New.
12313 * ravenscar-thread.c
12314 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12315 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12316 down.
12317 * record-btrace.c (record_btrace_target::info_record): Adjust.
12318 (record_btrace_target::record_method)
12319 (record_btrace_target::record_is_replaying)
12320 (record_btrace_target::fetch_registers)
12321 (get_thread_current_frame_id, record_btrace_target::resume)
12322 (record_btrace_target::wait, record_btrace_target::stop): Pass
12323 target down.
12324 * record-full.c (record_full_wait_1): Switch to event thread.
12325 Pass target down.
12326 * regcache.c (regcache::regcache)
12327 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12328 process_stratum_target parameter and handle it.
12329 (current_thread_target): New global.
12330 (get_thread_regcache): Add process_stratum_target parameter and
12331 handle it. Switch inferior before calling target method.
12332 (get_thread_regcache): Pass target down.
12333 (get_thread_regcache_for_ptid): Pass target down.
12334 (registers_changed_ptid): Add process_stratum_target parameter and
12335 handle it.
12336 (registers_changed_thread, registers_changed): Pass target down.
12337 (test_get_thread_arch_aspace_regcache): New.
12338 (current_regcache_test): Define a couple local test_target_ops
12339 instances and use them for testing.
12340 (readwrite_regcache): Pass process_stratum_target parameter.
12341 (cooked_read_test, cooked_write_test): Pass mock_target down.
12342 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12343 (get_thread_arch_aspace_regcache): Add process_stratum_target
12344 parameter.
12345 (regcache::target): New method.
12346 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12347 (regcache::registers_changed_ptid): Add process_stratum_target
12348 parameter.
12349 (regcache::m_target): New field.
12350 (registers_changed_ptid): Add process_stratum_target parameter.
12351 * remote.c (remote_state::supports_vCont_probed): New field.
12352 (remote_target::async_wait_fd): New method.
12353 (remote_unpush_and_throw): Add remote_target parameter.
12354 (get_current_remote_target): Adjust.
12355 (remote_target::remote_add_inferior): Push target.
12356 (remote_target::remote_add_thread)
12357 (remote_target::remote_notice_new_inferior)
12358 (get_remote_thread_info): Pass target down.
12359 (remote_target::update_thread_list): Skip threads of inferiors
12360 bound to other targets. (remote_target::close): Don't discard
12361 inferiors. (remote_target::add_current_inferior_and_thread)
12362 (remote_target::process_initial_stop_replies)
12363 (remote_target::start_remote)
12364 (remote_target::remote_serial_quit_handler): Pass down target.
12365 (remote_target::remote_unpush_target): New remote_target
12366 parameter. Unpush the target from all inferiors.
12367 (remote_target::remote_unpush_and_throw): New remote_target
12368 parameter. Pass it down.
12369 (remote_target::open_1): Check whether the current inferior has
12370 execution instead of checking whether any inferior is live. Pass
12371 target down.
12372 (remote_target::remote_detach_1): Pass down target. Use
12373 remote_unpush_target.
12374 (extended_remote_target::attach): Pass down target.
12375 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12376 (remote_target::append_resumption): Pass down target.
12377 (remote_target::append_pending_thread_resumptions)
12378 (remote_target::remote_resume_with_hc, remote_target::resume)
12379 (remote_target::commit_resume): Pass down target.
12380 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12381 (remote_target::interrupt_query)
12382 (remote_target::remove_new_fork_children)
12383 (remote_target::check_pending_events_prevent_wildcard_vcont)
12384 (remote_target::remote_parse_stop_reply)
12385 (remote_target::process_stop_reply): Pass down target.
12386 (first_remote_resumed_thread): New remote_target parameter. Pass
12387 it down.
12388 (remote_target::wait_as): Pass down target.
12389 (unpush_and_perror): New remote_target parameter. Pass it down.
12390 (remote_target::readchar, remote_target::remote_serial_write)
12391 (remote_target::getpkt_or_notif_sane_1)
12392 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12393 down target.
12394 (remote_target::mourn_inferior): Pass down target. Use
12395 remote_unpush_target.
12396 (remote_target::core_of_thread)
12397 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12398 (remote_target::pid_to_exec_file)
12399 (remote_target::thread_handle_to_thread_info): Pass down target.
12400 (remote_target::async_wait_fd): New.
12401 * riscv-fbsd-tdep.c: Include "inferior.h".
12402 (riscv_fbsd_get_thread_local_address): Pass down target.
12403 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12404 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12405 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12406 Adjust.
12407 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12408 * solib-svr4.c (enable_break): Pass down target.
12409 * spu-multiarch.c (parse_spufs_run): Pass down target.
12410 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12411 * target-delegates.c: Regenerate.
12412 * target.c (g_target_stack): Delete.
12413 (current_top_target): Return the current inferior's top target.
12414 (target_has_execution_1): Refer to the passed-in inferior's top
12415 target.
12416 (target_supports_terminal_ours): Check whether the initial
12417 inferior was already created.
12418 (decref_target): New.
12419 (target_stack::push): Incref/decref the target.
12420 (push_target, push_target, unpush_target): Adjust.
12421 (target_stack::unpush): Defref target.
12422 (target_is_pushed): Return bool. Adjust to refer to the current
12423 inferior's target stack.
12424 (dispose_inferior): Delete, and inline parts ...
12425 (target_preopen): ... here. Only dispose of the current inferior.
12426 (target_detach): Hold strong target reference while detaching.
12427 Pass target down.
12428 (target_thread_name): Add assertion.
12429 (target_resume): Pass down target.
12430 (target_ops::beneath, find_target_at): Adjust to refer to the
12431 current inferior's target stack.
12432 (get_dummy_target): New.
12433 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12434 has a thread running.
12435 (initialize_targets): Rename to ...
12436 (_initialize_target): ... this.
12437 * target.h: Include "gdbsupport/refcounted-object.h".
12438 (struct target_ops): Inherit refcounted_object.
12439 (target_ops::shortname, target_ops::longname): Make const.
12440 (target_ops::async_wait_fd): New method.
12441 (decref_target): Declare.
12442 (struct target_ops_ref_policy): New.
12443 (target_ops_ref): New typedef.
12444 (get_dummy_target): Declare function.
12445 (target_is_pushed): Return bool.
12446 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12447 (all_matching_threads_iterator::all_matching_threads_iterator):
12448 Handle filter target.
12449 * thread-iter.h (struct all_matching_threads_iterator, struct
12450 all_matching_threads_range, class all_non_exited_threads_range):
12451 Filter by target too. Remove explicit.
12452 * thread.c (threads_executing): Delete.
12453 (inferior_thread): Pass down current inferior.
12454 (clear_thread_inferior_resources): Pass down thread pointer
12455 instead of ptid_t.
12456 (add_thread_silent, add_thread_with_info, add_thread): Add
12457 process_stratum_target parameter. Use it for thread and inferior
12458 searches.
12459 (is_current_thread): New.
12460 (thread_info::deletable): Use it.
12461 (find_thread_ptid, thread_count, in_thread_list)
12462 (thread_change_ptid, set_resumed, set_running): New
12463 process_stratum_target parameter. Pass it down.
12464 (set_executing): New process_stratum_target parameter. Pass it
12465 down. Adjust reference to 'threads_executing'.
12466 (threads_are_executing): New process_stratum_target parameter.
12467 Adjust reference to 'threads_executing'.
12468 (set_stop_requested, finish_thread_state): New
12469 process_stratum_target parameter. Pass it down.
12470 (switch_to_thread): Also match inferior.
12471 (switch_to_thread): New process_stratum_target parameter. Pass it
12472 down.
12473 (update_threads_executing): Reimplement.
12474 * top.c (quit_force): Pop targets from all inferior.
12475 (gdb_init): Don't call initialize_targets.
12476 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12477 Declare.
12478 (windows_add_thread, windows_delete_thread): Adjust.
12479 (get_windows_debug_event): Rename to ...
12480 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12481 * tracefile-tfile.c (tfile_target_open): Pass down target.
12482 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12483 Forward declare.
12484 (switch_to_thread): Add process_stratum_target parameter.
12485 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12486 parameter. Use it.
12487 (mi_on_resume): Pass target down.
12488 * nat/fork-inferior.c (startup_inferior): Add
12489 process_stratum_target parameter. Pass it down.
12490 * nat/fork-inferior.h (startup_inferior): Add
12491 process_stratum_target parameter.
12492 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12493
75c6c844
PA
124942020-01-10 Pedro Alves <palves@redhat.com>
12495
12496 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12497 directly. Instead find the first thread in the thread list and
12498 use switch_to_thread.
12499
78f2c40a
PA
125002020-01-10 Pedro Alves <palves@redhat.com>
12501
12502 * remote.c (remote_target::remote_add_inferior): Don't bind a
12503 process to the current inferior if the current inferior is already
12504 bound to a process.
12505
e7af6c70
TBA
125062020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12507 Pedro Alves <palves@redhat.com>
12508
12509 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12510 If no process is specified, return null_ptid instead of
12511 inferior_ptid.
12512 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12513 TARGET_WAITKIND_SIGNALLED with no pid.
12514
31ba933e
PA
125152020-01-10 Pedro Alves <palves@redhat.com>
12516
12517 * remote.c (first_remote_resumed_thread): New.
12518 (remote_target::wait_as): Use it as default event_ptid instead of
12519 inferior_ptid.
12520
735fc2ca
PA
125212020-01-10 Pedro Alves <palves@redhat.com>
12522
12523 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12524
c17e02e1
PA
125252020-01-10 Pedro Alves <palves@redhat.com>
12526
12527 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12528 not -1.
12529
ab1ddbcf
PA
125302020-01-10 Pedro Alves <palves@redhat.com>
12531
12532 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12533 ptid to get_last_target_status.
12534 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12535 ptid to get_last_target_status.
12536 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12537 get_last_target_status.
12538 (info_program_command): Don't pass a target_waitstatus to
12539 get_last_target_status.
12540 * infrun.c (init_wait_for_inferior): Use
12541 nullify_last_target_wait_ptid.
12542 (get_last_target_status): Handle nullptr arguments.
12543 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12544 (print_stop_event): Don't pass a ptid to get_last_target_status.
12545 (normal_stop): Don't pass a ptid to get_last_target_status.
12546 * infrun.h (get_last_target_status, set_last_target_status): Move
12547 comments here and update.
12548 (nullify_last_target_wait_ptid): Declare.
12549 * linux-fork.c (fork_load_infrun_state): Remove local extern
12550 declaration of nullify_last_target_wait_ptid.
12551 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12552 to get_last_target_status.
12553
f3f8ece4
PA
125542020-01-10 Pedro Alves <palves@redhat.com>
12555
12556 * gdbthread.h (scoped_restore_current_thread)
12557 <dont_restore, restore, m_dont_restore>: Declare.
12558 * thread.c (thread_alive): Add assertion. Return bool.
12559 (switch_to_thread_if_alive): New.
12560 (prune_threads): Switch inferior/thread.
12561 (print_thread_info_1): Switch thread before calling target methods.
12562 (scoped_restore_current_thread::restore): New, factored out from
12563 ...
12564 (scoped_restore_current_thread::~scoped_restore_current_thread):
12565 ... this.
12566 (scoped_restore_current_thread::scoped_restore_current_thread):
12567 Add assertion.
12568 (thread_apply_all_command, thread_select): Use
12569 switch_to_thread_if_alive.
12570 * infrun.c (proceed, restart_threads, handle_signal_stop)
12571 (switch_back_to_stepped_thread): Switch current thread before
12572 calling target methods.
12573
db2d40f7
PA
125742020-01-10 Pedro Alves <palves@redhat.com>
12575
12576 * inferior.c (switch_to_inferior_no_thread): New function,
12577 factored out from ...
12578 (inferior_command): ... here.
12579 * inferior.h (switch_to_inferior_no_thread): Declare.
12580 * mi/mi-main.c (run_one_inferior): Use
12581 switch_to_inferior_no_thread.
12582
bd420a2d
PA
125832020-01-10 Pedro Alves <palves@redhat.com>
12584
12585 * infcmd.c (kill_command): Remove dead code.
12586
ddf5db90
PA
125872020-01-10 Pedro Alves <palves@redhat.com>
12588
12589 * remote.c (remote_target::mourn_inferior): No longer check
12590 whether the target is running.
12591
5018ce90
PA
125922020-01-10 Pedro Alves <palves@redhat.com>
12593
12594 * corelow.c (core_target::has_execution): Change parameter type to
12595 inferior pointer.
12596 * inferior.c (number_of_live_inferiors): Use
12597 inferior::has_execution instead of target_has_execution_1.
12598 * inferior.h (inferior::has_execution): New.
12599 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12600 inferior::has_execution instead of target_has_execution_1.
12601 * process-stratum-target.c
12602 (process_stratum_target::has_execution): Change parameter type to
12603 inferior pointer. Check the inferior's PID instead of
12604 inferior_ptid.
12605 * process-stratum-target.h
12606 (process_stratum_target::has_execution): Change parameter type to
12607 inferior pointer.
12608 * record-full.c (record_full_core_target::has_execution): Change
12609 parameter type to inferior pointer.
12610 * target.c (target_has_execution_1): Change parameter type to
12611 inferior pointer.
12612 (target_has_execution_current): Adjust.
12613 * target.h (target_ops::has_execution): Change parameter type to
12614 inferior pointer.
12615 (target_has_execution_1): Change parameter type to inferior
12616 pointer. Change return type to bool.
12617 * tracefile.h (tracefile_target::has_execution): Change parameter
12618 type to inferior pointer.
12619
74375d18
PA
126202020-01-10 Pedro Alves <palves@redhat.com>
12621
12622 * exceptions.c (print_flush): Remove current_top_target() check.
12623
acdf84a6
PA
126242020-01-10 Pedro Alves <palves@redhat.com>
12625
12626 * remote.c (show_remote_exec_file): Show the current inferior's
12627 exec-file instead of the command variable's value.
12628
ec506636
PA
126292020-01-10 Pedro Alves <palves@redhat.com>
12630
12631 * record-full.c (record_full_resume_ptid): New global.
12632 (record_full_target::resume): Set it.
12633 (record_full_wait_1): Use record_full_resume_ptid instead of
12634 inferior_ptid.
12635
873657b9
PA
126362020-01-10 Pedro Alves <palves@redhat.com>
12637
12638 * gdbthread.h (scoped_restore_current_thread)
12639 <dont_restore, restore, m_dont_restore>: Declare.
12640 * thread.c (thread_alive): Add assertion. Return bool.
12641 (switch_to_thread_if_alive): New.
12642 (prune_threads): Switch inferior/thread.
12643 (print_thread_info_1): Switch thread before calling target methods.
12644 (scoped_restore_current_thread::restore): New, factored out from
12645 ...
12646 (scoped_restore_current_thread::~scoped_restore_current_thread):
12647 ... this.
12648 (scoped_restore_current_thread::scoped_restore_current_thread):
12649 Add assertion.
12650 (thread_apply_all_command, thread_select): Use
12651 switch_to_thread_if_alive.
12652
7f0ae84c
GB
126532020-01-10 George Barrett <bob@bob131.so>
12654
12655 * stap-probe.c (stap_modify_semaphore): Don't check for null
12656 semaphores.
12657 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12658 for null semaphores.
12659
f5a7c406
AB
126602020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12661
12662 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12663 all source windows, and maintain horizontal scroll status while
12664 doing so.
12665
9ae6bf64
TT
126662020-01-09 Tom Tromey <tom@tromey.com>
12667
12668 PR tui/18932:
12669 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12670 update_source_window, not print_source_lines.
12671
b2efe70c
AB
126722020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12673
12674 * tui/tui.c (tui_enable): Register tui hooks after calling
12675 tui_display_main.
12676
5f23a082
CB
126772020-01-09 Christian Biesinger <cbiesinger@google.com>
12678
12679 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12680
3061113b
SM
126812020-01-08 Simon Marchi <simon.marchi@efficios.com>
12682
12683 * thread.c (print_thread_info_1): Fix indentation.
12684
57d75002
CB
126852020-01-09 Christian Biesinger <cbiesinger@google.com>
12686
12687 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12688 unique_xmalloc_ptr outside the if to always free the demangled name.
12689
6a053cb1
TT
126902020-01-08 Tom Tromey <tromey@adacore.com>
12691
12692 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12693 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12694 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12695 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12696 Remove.
12697 (section_offsets): New typedef.
12698 * symtab.c (fixup_section, get_msymbol_address): Update.
12699 * symmisc.c (dump_msymbols): Update.
12700 * symfile.h (relative_addr_info_to_section_offsets)
12701 (symfile_map_offsets_to_segments): Update.
12702 * symfile.c (build_section_addr_info_from_objfile)
12703 (init_objfile_sect_indices): Update.
12704 (struct place_section_arg): Change type of "offsets".
12705 (place_section): Update.
12706 (relative_addr_info_to_section_offsets): Change type of
12707 "section_offsets". Remove "num_sections" parameter.
12708 (default_symfile_offsets, syms_from_objfile_1)
12709 (set_objfile_default_section_offset): Update.
12710 (reread_symbols): No need to preserve section offsets by hand.
12711 (symfile_map_offsets_to_segments): Change type of "offsets".
12712 * stap-probe.c (relocate_address): Update.
12713 * stabsread.h (process_one_symbol): Update.
12714 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12715 (solib_target_relocate_section_addresses): Update.
12716 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12717 Update.
12718 * solib-frv.c (frv_relocate_main_executable): Update.
12719 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12720 * solib-aix.c (solib_aix_get_section_offsets): Change return
12721 type.
12722 (solib_aix_solib_create_inferior_hook): Update.
12723 * remote.c (remote_target::get_offsets): Update.
12724 * psymtab.c (find_pc_sect_psymtab): Update.
12725 * psympriv.h (struct partial_symbol) <address, text_low,
12726 text_high>: Update.
12727 * objfiles.h (obj_section_offset): Update.
12728 (struct objfile) <section_offsets>: Change type.
12729 <num_sections>: Remove.
12730 (objfile_relocate): Update.
12731 * objfiles.c (entry_point_address_query): Update
12732 (relocate_one_symbol): Change type of "section_offsets".
12733 (objfile_relocate1, objfile_relocate1): Change type of
12734 "new_offsets".
12735 (objfile_rebase1): Update.
12736 * mipsread.c (mipscoff_symfile_read): Update.
12737 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12738 parameter.
12739 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12740 (parse_external, psymtab_to_symtab_1): Update.
12741 * machoread.c (macho_symfile_offsets): Update.
12742 * ia64-tdep.c (ia64_find_unwind_table): Update.
12743 * hppa-tdep.c (read_unwind_info): Update.
12744 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12745 * dwarf2read.c (create_addrmap_from_index)
12746 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12747 (process_psymtab_comp_unit_reader, add_partial_symbol)
12748 (add_partial_subprogram, process_full_comp_unit)
12749 (read_file_scope, read_func_scope, read_lexical_block_scope)
12750 (read_call_site_scope, dwarf2_rnglists_process)
12751 (dwarf2_ranges_process, dwarf2_ranges_read)
12752 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12753 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12754 Update.
12755 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12756 Update.
12757 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12758 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12759 (process_one_symbol): Change type of "section_offsets".
12760 * ctfread.c (get_objfile_text_range): Update.
12761 * coffread.c (coff_symtab_read, enter_linenos)
12762 (process_coff_symbol): Update.
12763 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12764 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12765
456e800a
TT
127662020-01-08 Tom Tromey <tromey@adacore.com>
12767
12768 * dwarf2read.c (parse_macro_definition): Use std::string.
12769 (parse_macro_definition): Likewise.
12770
6dfa2fc2
TT
127712020-01-08 Tom Tromey <tromey@adacore.com>
12772
12773 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12774 (ATTR_ALLOC_CHUNK): Remove.
12775
421d1616
TT
127762020-01-08 Tom Tromey <tromey@adacore.com>
12777
12778 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12779
43816ebc
TT
127802020-01-08 Tom Tromey <tromey@adacore.com>
12781
12782 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12783 (dwarf2_compute_name, open_dwo_file): Likewise.
12784 (process_enumeration_scope): Use std::vector.
12785 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12786 (partial_die_info::fixup, dwarf2_start_subfile)
12787 (guess_full_die_structure_name, dwarf2_name): Likewise.
12788 (determine_prefix): Update.
12789 (guess_full_die_structure_name): Make return type const.
12790 (partial_die_full_name): Return unique_xmalloc_ptr.
12791 (DW_FIELD_ALLOC_CHUNK): Remove.
12792
4212d509
TT
127932020-01-07 Tom Tromey <tromey@adacore.com>
12794
12795 PR build/24937:
12796 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12797
06a6207a
JT
127982020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12799
12800 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12801
153d79c4
AB
128022020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12803
12804 * stack.c (print_frame_info): Move disassemble_next_line code
12805 inside source_print block.
12806
66182876
EZ
128072020-01-06 Eli Zaretskii <eliz@gnu.org>
12808
12809 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12810 gdb/signals.h, as we are now using native signal symbols.
12811
cbfa8581
SV
128122020-01-06 Shahab Vahedi <shahab@synopsys.com>
12813
12814 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12815 overflow by an early check of content vs threshold.
aac66a4c 12816 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12817 Likewise.
12818
3f602821
EZ
128192020-01-06 Eli Zaretskii <eliz@gnu.org>
12820
12821 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12822
a08c904d
JT
128232020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12824
12825 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12826 export table if no section contains it's RVA.
12827
89a65580
EZ
128282020-01-06 Eli Zaretskii <eliz@gnu.org>
12829
12830 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12831
8b7fcda2
HD
128322020-01-06 Hannes Domani <ssbssa@yahoo.de>
12833
12834 * source.c (print_source_lines_base): Set last_line_listed.
12835
a61b4f69
SV
128362020-01-06 Shahab Vahedi <shahab@synopsys.com>
12837
12838 * tui/tui-disasm.c: Remove trailing spaces.
12839
559e7e50
EZ
128402020-01-06 Eli Zaretskii <eliz@gnu.org>
12841 Pedro Alves <palves@redhat.com>
12842
12843 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12844 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12845 (windows_gdb_signal_to_target): New function, uses the above
12846 enumeration to convert GDB internal signal codes to equivalent
12847 Windows codes.
12848 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12849 * windows-nat.c: Include "gdb_wait.h".
12850 (get_windows_debug_event): Extract the fatal exception from the
12851 exit status and convert to the equivalent Posix signal number.
12852 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12853 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12854 * gdbsupport/gdb_wait.c: New file, implements
12855 windows_status_to_termsig.
12856 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12857 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12858
f2302a34
AB
128592020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12860
12861 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12862 show_layout.
12863
6a5206eb
LM
128642020-01-05 Luis Machado <luis.machado@linaro.org>
12865
12866 * aarch64-linux-nat.c
12867 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12868 and bfd_mach_aarch64.
12869
6ec1d75e
PW
128702020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12871
12872 * ui-file.c (stdio_file::can_emit_style_escape)
12873 (tee_file::can_emit_style_escape): Ensure style is used also on
12874 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12875 to gdb_stdout.
12876 * main.c (set_gdb_data_directory): Use file style to output the
12877 warning that the given pathname is not a directory.
12878 * top.c (show_history_filename, gdb_safe_append_history)
12879 (show_gdb_datadir): Use file style.
12880
44f81a76
HD
128812020-01-03 Hannes Domani <ssbssa@yahoo.de>
12882
12883 * solib-target.c (struct lm_info_target):
12884 Change offsets to be a unique_xmalloc_ptr.
12885 (solib_target_relocate_section_addresses): Update.
12886
25057eb0
HD
128872020-01-03 Hannes Domani <ssbssa@yahoo.de>
12888
12889 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12890
6e2118f5
BE
128912020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12892
12893 * MAINTAINERS (Write After Approval): Add myself.
12894
8133c7dc
LM
128952020-01-02 Luis Machado <luis.machado@linaro.org>
12896
12897 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12898 Cell BE architecture.
12899 * target.h (struct target_ops) <thread_architecture>: Likewise.
12900
48189bec
HD
129012020-01-01 Hannes Domani <ssbssa@yahoo.de>
12902
12903 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12904
ead1063b
HD
129052020-01-01 Hannes Domani <ssbssa@yahoo.de>
12906
12907 * MAINTAINERS (Write After Approval): Add myself.
12908
e5d78223
JB
129092020-01-01 Joel Brobecker <brobecker@adacore.com>
12910
12911 * gdbarch.sh: Update copyright year range of generated files.
12912
b811d2c2
JB
129132020-01-01 Joel Brobecker <brobecker@adacore.com>
12914
12915 Update copyright year range in all GDB files.
12916
5f4def5c
JB
129172020-01-01 Joel Brobecker <brobecker@adacore.com>
12918
12919 * copyright.py: Convert to Python 3.
12920
51fd4002
JB
129212020-01-01 Joel Brobecker <brobecker@adacore.com>
12922
12923 * copyright.py: Adapt after move of gnulib directory from gdb
12924 directory to toplevel directory.
12925
5fb651f2
JB
129262020-01-01 Joel Brobecker <brobecker@adacore.com>
12927
12928 * copyright.py (main): Exit if run from the wrong directory.
12929
5dd8bf88
JB
129302020-01-01 Joel Brobecker <brobecker@adacore.com>
12931
12932 * top.c (print_gdb_version): Change copyright year to 2020.
12933
9f71dacb 129342020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12935
9f71dacb 12936 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12937
9f71dacb 12938For older changes see ChangeLog-2019.
c906108c
SS
12939\f
12940Local Variables:
12941mode: change-log
12942left-margin: 8
12943fill-column: 74
12944version-control: never
57da7796 12945coding: utf-8
c906108c 12946End: