]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Apply 'const' in more places
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
27087b7f
TT
12020-09-14 Tom Tromey <tromey@adacore.com>
2
3 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4 * x86-tdep.c (x86_is_thunk_register_name)
5 (x86_in_indirect_branch_thunk): Update.
6 * sparc64-tdep.c (sparc64_fpu_register_names)
7 (sparc64_cp0_register_names, sparc64_register_names)
8 (sparc64_pseudo_register_names): Now const.
9 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
10 cp0_registers_num>: Now const.
11 * sparc-tdep.c (sparc_core_register_names)
12 (sparc32_fpu_register_names, sparc32_cp0_register_names)
13 (sparc32_pseudo_register_names): Now const.
14 (validate_tdesc_registers): Update.
15 * rust-lang.c (rust_extensions): Now const.
16 * p-lang.c (p_extensions): Now const.
17 * objc-lang.c (objc_extensions): Now const.
18 * nto-tdep.c (nto_thread_state_str): Now const.
19 * moxie-tdep.c (moxie_register_names): Now const.
20 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
21 Now const.
22 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
23 (mips_linux_reg_names): Now const.
24 (mips_gdbarch_init): Update.
25 * microblaze-tdep.c (microblaze_register_names): Now const.
26 * m68k-tdep.c (m68k_register_names): Now const.
27 * m32r-tdep.c (m32r_register_names): Now const.
28 * ia64-tdep.c (ia64_register_names): Now const.
29 * i386-tdep.h (struct gdbarch_tdep) <register_names,
30 ymmh_register_names, ymm16h_regnum, mpx_register_names,
31 k_register_names, zmmh_register_names, xmm_avx512_register_names,
32 ymm_avx512_register_names, pkeys_register_names>: Now const.
33 * i386-tdep.c (i386_register_names, i386_zmm_names)
34 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
35 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
36 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
37 * f-lang.c (f_extensions): Now const.
38 * d-lang.c (d_extensions): Now const.
39 * csky-tdep.c (csky_register_names): Now const.
40 * charset.c (default_charset_names, charset_enum): Now const.
41 (_initialize_charset): Update.
42 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
43 const.
44 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
45 (bsd_uthread_solib_loaded): Update.
46 (bsd_uthread_state): Now const.
47 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
48 (amd64_ymm_avx512_names, amd64_ymmh_names)
49 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
50 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
51 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
52 (amd64_dword_names): Now const.
53 * agent.c (can_use_agent_enum): Now const.
54 * ada-tasks.c (task_states, long_task_states): Now const.
55 * ada-lang.c (known_runtime_file_name_patterns)
56 (known_auxiliary_function_name_patterns, attribute_names)
57 (standard_exc, ada_extensions): Now const.
58
89806626
SM
592020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
60
61 * bcache.h (struct bcache) <bcache>: Remove constructor.
62 <m_hash_function, m_compare_function>: Remove.
63 <~bcache>: Make virtual.
64 <compare>: Remove static method, introduce virtual method.
65 <default_hash>: Remove.
66 <hash>: New virtual method.
67 * bcache.c (bcache::expand_hash_table): Update.
68 (bcache::insert): Update.
69 (bcache::hash): New.
70 (bcache::compare): Update comment and parameter names.
71 * gdbtypes.c (types_deeply_equal): Update.
72 * psymtab.h (struct psymbol_bcache): New struct.
73 (class psymtab_storage) <psymtab_storage>: Make default.
74 <psymbol_cache>: Change type to psymbol_bcache.
75 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
76 (psymbol_hash): Change to...
77 (psymbol_bcache::hash): ... this.
78 (psymbol_compare): Change to...
79 (psymbol_bcache::compare): ... this.
80
677c92fe
SM
812020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
82
83 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
84 checking for initial lwp.
85
3eba3a01
TT
862020-09-14 Tom Tromey <tromey@adacore.com>
87
88 * m68k-tdep.c (m68k_extract_return_value): Use
89 pointer_result_regnum.
90 (m68k_store_return_value): Likewise.
91 (m68k_reg_struct_return_p): Handle vectors and arrays.
92 (m68k_return_value): Handle arrays.
93 (m68k_svr4_return_value): Fix single-element aggregate handling.
94 Handle long double. Adjust for embedded ABI.
95 (m68k_svr4_init_abi): Set pointer_result_regnum.
96 (m68k_embedded_init_abi): New function.
97 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
98 (m68k_osabi_sniffer): New function.
99 (_initialize_m68k_tdep): Register osabi sniffer.
100 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
101 member.
102
33f4dd48
SM
1032020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
104
105 * xml-support.c (xml_fetch_content_from_file): Replace xfree
106 with gdb::unique_xmalloc_ptr<char>.
107
8400a90d
SM
1082020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
109
110 * xml-support.h (xml_fetch_another): Change type to be a
111 function_view.
112 (xml_process_xincludes): Remove baton parameter.
113 (xml_fetch_content_from_file): Change baton parameter to
114 dirname.
115 * xml-support.c (struct xinclude_parsing_data)
116 <xinclude_parsing_data>: Remove baton parameter.
117 <fetcher_baton>: Remove.
118 (xinclude_start_include): Adjust.
119 (xml_process_xincludes): Adjust.
120 (xml_fetch_content_from_file): Replace baton parameter with
121 dirname.
122 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
123 (xml_init_syscalls_info): Use a lambda.
124 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
125 (file_read_description_xml): Use a lambda.
126 (fetch_available_features_from_target): Change baton parameter
127 to target_ops.
128 (target_read_description_xml): Use a lambda.
129 (target_fetch_description_xml): Use a lambda.
130 (string_read_description_xml): Update.
131
04f5bab2
SM
1322020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
133
134 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
135 uses with type::endianity_is_not_default.
136
db558e34
SM
1372020-09-14 Simon Marchi <simon.marchi@efficios.com>
138
139 * gdbtypes.h (struct type) <endianity_is_not_default,
140 set_endianity_is_not_default>: New methods.
141 (TYPE_ENDIANITY_NOT_DEFAULT): Use
142 type::endianity_is_not_default, change all write call sites to
143 use type::set_endianity_is_not_default.
144
22c4c60c
SM
1452020-09-14 Simon Marchi <simon.marchi@efficios.com>
146
147 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
148 uses with type::is_fixed_instance.
149
9cdd0d12
SM
1502020-09-14 Simon Marchi <simon.marchi@efficios.com>
151
152 * gdbtypes.h (struct type) <is_fixed_instance,
153 set_is_fixed_instance>: New methods.
154 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
155 write call sites to use type::set_is_fixed_instance.
156
0becda7a
SM
1572020-09-14 Simon Marchi <simon.marchi@efficios.com>
158
159 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
160 uses with type::is_gnu_ifunc.
161
03cc7249
SM
1622020-09-14 Simon Marchi <simon.marchi@efficios.com>
163
164 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
165 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
166 use type::set_is_gnu_ifunc.
167
3f46044c
SM
1682020-09-14 Simon Marchi <simon.marchi@efficios.com>
169
170 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
171 uses with type::stub_is_supported.
172
9baccff6
SM
1732020-09-14 Simon Marchi <simon.marchi@efficios.com>
174
175 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
176 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
177 use type::set_stub_is_supported.
178
bd63c870
SM
1792020-09-14 Simon Marchi <simon.marchi@efficios.com>
180
181 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
182 uses with type::is_vector.
183
2062087b
SM
1842020-09-14 Simon Marchi <simon.marchi@efficios.com>
185
186 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
187 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
188 use type::set_is_vector.
189
a409645d
SM
1902020-09-14 Simon Marchi <simon.marchi@efficios.com>
191
192 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
193 uses with type::has_varargs.
194
1d6286ed
SM
1952020-09-14 Simon Marchi <simon.marchi@efficios.com>
196
197 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
198 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
199 use type::set_has_varargs.
200
7f9f399b
SM
2012020-09-14 Simon Marchi <simon.marchi@efficios.com>
202
203 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
204 uses with type::is_prototyped.
205
27e69b7a
SM
2062020-09-14 Simon Marchi <simon.marchi@efficios.com>
207
208 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
209 New methods.
210 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
211 call sites to use type::set_is_prototyped.
212
d2183968
SM
2132020-09-14 Simon Marchi <simon.marchi@efficios.com>
214
215 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
216 uses with type::target_is_stub.
217
8f53807e
SM
2182020-09-14 Simon Marchi <simon.marchi@efficios.com>
219
220 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
221 New methods.
222 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
223 sites to use type::set_target_is_stub.
224
e46d3488
SM
2252020-09-14 Simon Marchi <simon.marchi@efficios.com>
226
227 * gdbtypes.h (TYPE_STUB): Remove, replace all
228 uses with type::is_stub.
229
b4b73759
SM
2302020-09-14 Simon Marchi <simon.marchi@efficios.com>
231
232 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
233 (TYPE_STUB): Use type::is_stub, change all write call sites to
234 use type::set_is_stub.
235
20ce4123
SM
2362020-09-14 Simon Marchi <simon.marchi@efficios.com>
237
238 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
239 type::has_no_signedness.
240
15152a54
SM
2412020-09-14 Simon Marchi <simon.marchi@efficios.com>
242
243 * gdbtypes.h (struct type) <has_no_signedness,
244 set_has_no_signedness>: New methods.
245 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
246 call sites to use type::set_has_no_signedness.
247
c6d940a9
SM
2482020-09-14 Simon Marchi <simon.marchi@efficios.com>
249
250 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
251 type::is_unsigned.
252
653223d3
SM
2532020-09-14 Simon Marchi <simon.marchi@efficios.com>
254
255 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
256 methods.
257 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
258 sites to use type::set_is_unsigned.
259
55ea94da
FH
2602020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
261 Adam Renquinha <arenquinha@cimeq.qc.ca>
262
263 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
264 pointer and stack frame offset when unwinding.
265
6791b117
PA
2662020-09-13 Pedro Alves <pedro@palves.net>
267
268 * NEWS: Document "-break-insert --qualified".
269 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
270
77f2120b
PA
2712020-09-13 Pedro Alves <pedro@palves.net>
272
273 * linespec.c (classify_mtype, compare_msyms): Delete.
274 (search_minsyms_for_name): Remove classification logic. Instead
275 filter out trampoline symbols if we also found an external
276 function of the same name.
277
ed6a896c
JB
2782020-09-13 Joel Brobecker <brobecker@adacore.com>
279
280 * NEWS: Create a new section for the next release branch.
281 Rename the section of the current branch, now that it has
282 been cut.
283
32aea73e
JB
2842020-09-13 Joel Brobecker <brobecker@adacore.com>
285
286 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
287 * version.in: Bump version to 11.0.50.DATE-git.
288
8087c3fa
JB
2892020-09-12 Joel Brobecker <brobecker@adacore.com>
290
291 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
292
2a67f09d
FW
2932020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
294 Felix Willgerodt <Felix.Willgerodt@intel.com>
295
296 * gdbarch.sh: Added bfloat16 type.
297 * gdbarch.c: Regenerated.
298 * gdbarch.h: Regenerated.
299 * gdbtypes.c (floatformats_bfloat16): New struct.
300 (gdbtypes_post_init): Add builtin_bfloat16.
301 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
302 (floatformats_bfloat16): New struct.
303 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
304 (i386_ymm_type): Add field "v16_bfloat16"
305 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
306 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
307 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
308 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
309 * features/i386/64bit-avx512.xml: Add bfloat16 type.
310 * features/i386/64bit-avx512.c: Regenerated.
311 * features/i386/64bit-sse.xml: Add bfloat16 type.
312 * features/i386/64bit-sse.c: Regenerated.
313
1347d111
FW
3142020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
315
316 * i386-tdep.c (i386_zmm_type): Fix field names.
317 (i386_ymm_type): Fix field names.
318
7a4e8e7d
TBA
3192020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
320
321 * breakpoint.c: Fix typo in the help message of the
322 "set breakpoint condition-evaluation" command.
323
cf4ac4be
KR
3242020-09-10 Kamil Rytarowski <n54@gmx.com>
325
326 * nbsd-nat.c: Include "nat/netbsd-nat.h".
327 * (nbsd_nat_target::pid_to_exec_file)
328 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
329 (nbsd_nat_target::post_startup_inferior)
330 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
331 (nbsd_add_threads): Switch local code to common gdb/nat functions.
332 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
333 * (nbsd_thread_lister): Remove.
334
f404573e
KR
3352020-09-10 Kamil Rytarowski <n54@gmx.com>
336
337 * fork-inferior.c (startup_inferior): Avoid double free.
338
1ccb2c17
KR
3392020-09-10 Kamil Rytarowski <n54@gmx.com>
340
341 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
342 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
343
feedfcc7
KR
3442020-09-10 Kamil Rytarowski <n54@gmx.com>
345
346 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
347 * netbsd-nat.c: Include <sys/ptrace.h>.
348 * (netbsd_nat::enable_proc_events): Add.
349
c489f8c6
KR
3502020-09-10 Kamil Rytarowski <n54@gmx.com>
351
352 * netbsd-nat.h: Include "gdbsupport/function-view.h".
353 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
354 (netbsd_nat::for_each_thread): Add.
355 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
356 "gdbsupport/common-debug.h".
357 * (netbsd_nat::netbsd_thread_lister)
358 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
359 (netbsd_nat::for_each_thread): Add.
360
330662f6
KR
3612020-09-10 Kamil Rytarowski <n54@gmx.com>
362
363 * netbsd-nat.h: Include <unistd.h>.
364 * (netbsd_nat::pid_to_exec_file): Add.
365 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
366 * (netbsd_nat::pid_to_exec_file) Add.
367
70b67307
KR
3682020-09-10 Kamil Rytarowski <n54@gmx.com>
369
370 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
371
99cf6da6
KR
3722020-09-10 Kamil Rytarowski <n54@gmx.com>
373
374 * netbsd-nat.h: New file.
375 * netbsd-nat.c: Likewise.
376
1b788fb6
TT
3772020-09-09 Tom Tromey <tromey@adacore.com>
378
379 * ada-lang.c (remove_extra_symbols): Do not increment when
380 removing an element
381
03b0a45f
TT
3822020-09-08 Tom Tromey <tromey@adacore.com>
383
384 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
385
3cae4447
TT
3862020-09-08 Tom Tromey <tromey@adacore.com>
387
388 PR win32/25302:
389 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
390 (gdb_bfd_init_data): New function.
391 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
392
7f08fd51
TBA
3932020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
394
395 * infrun.c (fetch_inferior_event): Use
396 `switch_to_target_no_thread` to switch the target.
397
3e6ff933
TT
3982020-09-06 Tom Tromey <tom@tromey.com>
399
400 * symfile.h (dwarf2_free_objfile): Don't declare.
401
e56798df
AKS
4022020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
403
404 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
405 to match 16 byte real/complex type generated by Flang compiler.
406
8f5c6526
TV
4072020-09-03 Tom de Vries <tdevries@suse.de>
408
409 PR breakpoint/26546
410 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
411 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
412
c5065df0
SM
4132020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
414
415 * maint.c (index_digits): New function.
416 (struct maint_print_section_data): Remove.
417 (print_bfd_section_info): Remove print_data parameter, add arg
418 and index_digits.
419 (print_objfile_section_info): Likewise.
420 (print_bfd_section_info_maybe_relocated): Likewise (plus
421 objfile).
422 (maintenance_info_sections): Adjust calls.
423
02c6f3f1
TT
4242020-09-02 Tom Tromey <tromey@adacore.com>
425
426 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
427 for null pointers.
428 (ada_varobj_adjust_for_child_access): Special-case null pointers.
429
ef5e5b0b
SM
4302020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
431
432 * bcache.h (struct bcache) <insert>: Change type of `added` to
433 pointer to bool.
434 * bcache.c (bcache::insert): Likewise.
435 * gdbtypes.c (check_types_worklist): Adjust.
436 * psymtab.c (add_psymbol_to_bcache): Adjust.
437
973695d6
KB
4382020-08-31 Kevin Buettner <kevinb@redhat.com>
439
440 * corelow.c (unordered_set): Include.
441 (class core_target): Add field 'm_core_unavailable_mappings'.
442 (core_target::build_file_mappings): Print only one warning
443 per inaccessible file. Add unavailable/broken mappings
444 to m_core_unavailable_mappings.
445 (core_target::xfer_partial): Call...
446 (core_target::xfer_memory_via_mappings): New method.
447
264fc0e2
SM
4482020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
449
450 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
451 type to bool.
452
2de01bdb
SM
4532020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
454
455 * dwarf2/read.c (struct field_info): Fix indentation.
456
f3bd50f1
SM
4572020-08-31 Simon Marchi <simon.marchi@efficios.com>
458
459 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
460 ordering in comment.
461 * frame.c (frame_id_eq): Fix indentation.
462
22b9b4b0
SL
4632020-08-31 Scott Linder <scott@scottlinder.com>
464 Simon Marchi <simon.marchi@efficios.com>
465
466 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
467 inline frame ids in outer frame.
468
84154d16
SM
4692020-08-31 Simon Marchi <simon.marchi@efficios.com>
470
471 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
472 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
473 (outer_frame_id): Use FID_STACK_OUTER instead of
474 FID_STACK_INVALID.
475 (frame_id_p): Don't check for outer_frame_id.
476
8efaf6b3
SM
4772020-08-31 Simon Marchi <simon.marchi@efficios.com>
478
479 * frame-unwind.c (frame_unwind_got_optimized): Don't set
480 regnum/frame in value. Call allocate_value_lazy.
481 * frame.c (frame_unwind_register_value): Use
482 val_print_not_saved.
483
fe1fe7ea
SM
4842020-08-31 Simon Marchi <simon.marchi@efficios.com>
485
486 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
487
f7c7700d
PA
4882020-08-29 Pedro Alves <pedro@palves.net>
489
490 * progspace.c (print_program_space): Use all_inferiors. Switch to
491 the inferior before calling target_pid_to_str.
492
e0814aae
TT
4932020-08-28 Tom Tromey <tom@tromey.com>
494
495 * xcoffread.c (xcoff_end_psymtab): Update comment.
496 * dbxread.c (dbx_end_psymtab): Update comment.
497
626d2320
TV
4982020-08-28 Tom de Vries <tdevries@suse.de>
499
500 PR breakpoint/26544
501 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
502 event_location.
503 (create_breakpoint): Same.
504 (base_breakpoint_decode_location): Same.
505 (bkpt_create_sals_from_location): Same.
506 (bkpt_decode_location): Same.
507 (bkpt_probe_create_sals_from_location): Same.
508 (bkpt_probe_decode_location): Same.
509 (tracepoint_create_sals_from_location): Same.
510 (tracepoint_decode_location): Same.
511 (tracepoint_probe_decode_location): Same.
512 (strace_marker_create_sals_from_location): Same.
513 (strace_marker_decode_location): Same.
514 (create_sals_from_location_default): Same.
515 (decode_location_default): Same.
516 * breakpoint.h (struct breakpoint_ops): Same.
517 (create_breakpoint): Same.
518 * linespec.h (decode_line_full): Same.
519 * linespec.c (decode_line_full): Same. Throw error if
520 result.size () == 0.
521
df631783
PA
5222020-08-27 Pedro Alves <pedro@palves.net>
523
524 PR gdb/26524
525 * breakpoint.c (until_break_fsm) <location_breakpoint,
526 caller_breakpoint>: Delete fields.
527 <breakpoints>: New field.
528 <until_break_fsm>: Adjust to save a breakpoint vector instead of
529 two individual breakpoints.
530 (until_break_fsm::should_stop): Loop over breakpoints in the
531 breakpoint vector.
532 (until_break_fsm::clean_up): Adjust to clear the breakpoints
533 vector.
534 (until_break_command): Handle location expanding into multiple
535 sals.
536
b2b38aa4
PA
5372020-08-27 Pedro Alves <pedro@palves.net>
538
539 PR gdb/26523
540 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
541 bp_until breakpoints user-specified locations. Update intro
542 comment.
543
b886559f
SM
5442020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
545
546 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
547 gdb_bfd_sections): New.
548 * maint.c (print_bfd_section_info): Change param type to
549 maint_print_section_data.
550 (print_objfile_section_info): Likewise.
551 (print_bfd_section_info_maybe_relocated): Likewise.
552 (maintenance_info_sections): Use gdb_bfd_sections.
553
4c6e63bf
SV
5542020-08-25 Shahab Vahedi <shahab@synopsys.com>
555
556 * MAINTAINERS: Add ARC target and maintainer.
557
8d7f0635
AK
5582020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
559
560 * configure.tgt: ARC support for GNU/Linux.
561 * Makefile.in (ALL_TARGET_OBJS): Likewise.
562 * arc-linux-tdep.c: New file.
563 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
564 * arc-tdep.c (arc_write_pc): Use it.
565
fdd8731b
SV
5662020-08-25 Shahab Vahedi <shahab@synopsys.com>
567
568 * arc-tdep.c (arc_check_for_hardware_loop): New.
569 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
570
22459524
SV
5712020-08-25 Shahab Vahedi <shahab@synopsys.com>
572
573 * arc-tdep.h: Include "gdbarch.h".
574
995d3a19
SV
5752020-08-25 Shahab Vahedi <shahab@synopsys.com>
576
577 * arch/arc.h
578 (arc_gdbarch_features): New class to stir the selection of target XML.
579 (arc_create_target_description): Use FEATURES to choose XML target.
580 (arc_lookup_target_description): Use arc_create_target_description
581 to create _new_ target descriptions or return the already created
582 ones if the FEATURES is the same.
583 * arch/arc.c: Implementation of prototypes described above.
584 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
585 (arc_gdbarch_features_init): Initialize the FEATURES struct.
586 * arc-tdep.c (*_feature_name): Make feature names consistent.
587 (arc_register_feature): A new struct to hold information about
588 registers of a particular target/feature.
589 (arc_check_tdesc_feature): Check if XML provides registers in
590 compliance with ARC_REGISTER_FEATURE structs.
591 (arc_update_acc_reg_names): Add aliases for r58 and r59.
592 (determine_*_reg_feature_set): Which feature name to look for.
593 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
594 (mach_type_to_arc_isa): Convert from a set of binutils machine types
595 to expected ISA enums to be used in arc_gdbarch_features structs.
596 * features/Makefile (FEATURE_XMLFILES): Add new files.
597 * gdb/features/arc/v1-aux.c: New file.
598 * gdb/features/arc/v1-aux.xml: Likewise.
599 * gdb/features/arc/v1-core.c: Likewise.
600 * gdb/features/arc/v1-core.xml: Likewise.
601 * gdb/features/arc/v2-aux.c: Likewise.
602 * gdb/features/arc/v2-aux.xml: Likewise.
603 * gdb/features/arc/v2-core.c: Likewise.
604 * gdb/features/arc/v2-core.xml: Likewise.
605 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
606
3945d2d7
GM
6072020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
608 Andrew Burgess <andrew.burgess@embecosm.com>
609
610 PR m2/26372
fc5d6901 611 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
612 an assert. Remove single element array indexing pattern as the
613 MULTI_SUBSCRIPT support will handle this case too.
614
2677f2d3
SM
6152020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
616
617 * value.h (valprint_check_validity): Move declaration from
618 here...
619 * valprint.h (valprint_check_validity): ... to here.
620
c426fddb
SM
6212020-08-24 Simon Marchi <simon.marchi@efficios.com>
622
623 * debug.h: New file.
624 * debug.c (debug_prefixed_vprintf): New function.
625 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
626 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
627
1eb8556f
SM
6282020-08-24 Simon Marchi <simon.marchi@efficios.com>
629
630 * infrun.h (infrun_debug_printf_1): New function declaration.
631 (infrun_debug_printf): New macro.
632 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
633 throughout.
634 (infrun_debug_printf): New function.
635 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
636 (handle_jit_event): Likewise.
637
b8fff44e
MW
6382020-08-21 Mark Wielaard <mark@klomp.org>
639
640 * ada-lex.l: Extend register warnings diagnostics comment for g++.
641
d19c3068
SM
6422020-08-22 Simon Marchi <simon.marchi@efficios.com>
643
644 * frame.c (enum class frame_id_status): New.
645 (struct frame_info) <this_id::p>: Change type to frame_id_status.
646 (fprintf_frame): Update.
647 (compute_frame_id): Set frame id status to "computing" on entry.
648 Set it back to "not_computed" on failure and to "computed" on
649 success.
650 (get_frame_id): Assert the frame id is not being computed.
651 (create_sentinel_frame): Use frame_id_status::COMPUTED.
652 (create_new_frame): Likewise.
653 (frame_cleanup_after_sniffer): Update assert.
654
b70e516e
SM
6552020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
656
657 * regcache.c (pid_ptid_regcache_map): New type.
658 (target_ptid_regcache_map): Remove.
659 (target_pid_ptid_regcache_map): New type.
660 (regcaches): Change type to target_pid_ptid_regcache_map.
661 (get_thread_arch_aspace_regcache): Update.
662 (regcache_thread_ptid_changed): Update, handle pid-like ptid
663 case.
664 (regcaches_size): Update.
665 (regcache_count): Update.
666 (registers_changed_ptid_target_pid_test): New.
667 (_initialize_regcache): Register new test.
668
cdd9148a
SM
6692020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
670
671 * regcache.c (regcache_count): New.
672 (struct regcache_test_data): New.
673 (regcache_test_data_up): New.
674 (populate_regcaches_for_test): New.
675 (regcaches_test): Remove.
676 (get_thread_arch_aspace_regcache_test): New.
677 (registers_changed_ptid_all_test): New.
678 (registers_changed_ptid_target_test): New.
679 (registers_changed_ptid_target_ptid_test): New.
680 (regcache_thread_ptid_changed): Remove regcache_count lambda.
681 (_initialize_regcache): Register new tests.
682
dd125343
SM
6832020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
684
685 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
686 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
687 gdbarch and aspace parameter. Use current inferior's aspace.
688 Validate regcache's arch value.
689 (regcaches_test): Update.
690
3ee93972
SM
6912020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
692
693 * regcache.c (regcaches_test): Call registers_changed.
694
33bf4c5c
TBA
6952020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
696
697 * infrun.c (process_event_stop_test): Fix typo "breapoint".
698
c2fd7fae
AKS
6992020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
700
701 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
702 to find the end of prologue for flang compiled binaries.
703 * arm-tdep.c (arm_skip_prologue): Likewise.
704 * i386-tdep.c (i386_skip_prologue): Likewise.
705 * producer.c (producer_is_llvm): New function.
706 (producer_parsing_tests): Added new tests for clang/flang.
707 * producer.h (producer_is_llvm): New declaration.
708
9327494e
SM
7092020-08-18 Simon Marchi <simon.marchi@efficios.com>
710
711 * linux-nat.c (linux_nat_debug_printf): New function.
712 (linux_nat_debug_printf_1): New macro. Use throughout the file.
713
d138725a
AM
7142020-08-18 Aaron Merey <amerey@redhat.com>
715
716 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
717 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
718 (CLIBS): Add DEBUGINFOD_LIBS.
719
f9b11e6b
ST
7202020-08-17 Sergei Trofimovich <siarheit@google.com>
721
722 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
723 'gdbarch_num_regs'.
724
3ae7ab99
TT
7252020-08-17 Tom Tromey <tromey@adacore.com>
726
727 * ada-varobj.c (ada_varobj_decode_var): Handle case where
728 ada_get_decoded_value returns NULL.
729
b017825f
TT
7302020-08-17 Tom Tromey <tromey@adacore.com>
731
732 * python/py-inferior.c (infpy_search_memory): Use
733 gdb_py_object_from_ulongest.
734 * python/py-infevents.c (create_inferior_call_event_object)
735 (create_memory_changed_event_object): Use
736 gdb_py_object_from_ulongest.
737 * python/py-linetable.c (ltpy_entry_get_pc): Use
738 gdb_py_object_from_ulongest.
739
7635cf79
SM
7402020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
741
742 * loc.c (class symbol_needs_eval_context): Fix indentation.
743
f54be24b
SM
7442020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
745
746 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
747 bool.
748
53d5a2a5
TV
7492020-08-17 Tom de Vries <tdevries@suse.de>
750
751 PR gdb/26393
752 * gdbtypes.c (dump_dynamic_prop): New function.
753 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
754
547ce8f0
TV
7552020-08-15 Tom de Vries <tdevries@suse.de>
756
757 PR backtrace/26390
758 * stack.c (print_frame_args): Temporarily set the selected
759 frame to FRAME while printing the frame's arguments.
760
6ea815e7
PFC
7612020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
762
763 PR breakpoints/26385
764 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
765 Always clear watchpoint with PTRACE_SET_DEBUGREG.
766
6e562fa3
PFC
7672020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
768
769 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
770 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
771 and >= to check return value instead of == -1 and != -1.
772
d369b608
SM
7732020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
774
775 * utils.h (class gdb_argv) <as_array_view>: New method.
776 * utils.c (gdb_argv_as_array_view_test): New.
777 (_initialize_utils): Register selftest.
778 * maint.c (maintenance_selftest): Use the new method.
779
b31488a3
KR
7802020-08-13 Kamil Rytarowski <n54@gmx.com>
781
782 * target.h (supports_dumpcore, dumpcore): New
783 function declarations.
784 * target.c (supports_dumpcore, dumpcore): New
785 functions.
786 * target-delegates.c: Rebuild.
787 * gcore.c (gcore_command): Use target_supports_dumpcore ()
788 and target_dumpcore ().
789
002a3166
AM
7902020-08-13 Aaron Merey <amerey@redhat.com>
791
792 * debuginfod-support.c: Replace global variables with user_data.
793
ece5bc8a
SM
7942020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
795
796 * maint.c (maintenance_selftest): Split args and pass array_view
797 to run_tests.
798
6d8a0a5e
LM
7992020-08-12 Luis Machado <luis.machado@linaro.org>
800
801 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
802 type's length.
803 Use %s and pulongest to print the length.
804
7cf663a9
PA
8052020-08-12 Pedro Alves <palves@redhat.com>
806
807 * NEWS: Move "Multi-target debugging support" item to the
808 "Changes since GDB 9" section.
809
27c7b875
PA
8102020-08-12 Pedro Alves <palves@redhat.com>
811
812 PR gdb/26336
813 * progspace.c (program_space::remove_objfile): Invalidate the
814 frame cache.
815
1796a2a1
TV
8162020-08-11 Tom de Vries <tdevries@suse.de>
817
818 * MAINTAINERS: Mark ms1 as deleted.
819
f8e3fe0d
LM
8202020-08-10 Luis Machado <luis.machado@linaro.org>
821
822 PR gdb/26310
823
824 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
825 act accordingly.
826 (aarch64_analyze_prologue_test): Add more unit tests to exercise
827 movz/str/stur/stp skipping behavior.
828
cc308722
LM
8292020-08-10 Luis Machado <luis.machado@linaro.org>
830
831 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
832 struct user_sve_header instead of struct sve_context.
833
041d9819
SM
8342020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
835
836 * read.h (dwarf2_fetch_die_loc_sect_off,
837 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
838 `void *` parameter with function_view.
839 * read.c (dwarf2_fetch_die_loc_sect_off,
840 dwarf2_fetch_die_loc_cu_off): Likewise.
841 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
842 (per_cu_dwarf_call): Adjust.
843 (get_frame_address_in_block_wrapper): Remove.
844 (indirect_synthetic_pointer): Adjust.
845 (get_ax_pc): Remove.
846 (dwarf2_compile_expr_to_ax): Adjust.
847
38f8aa06
TV
8482020-08-08 Tom de Vries <tdevries@suse.de>
849
850 PR build/26344
851 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
852 constructor.
853 * regcache.c (get_thread_arch_aspace_regcache): Same.
854
a52b3ae2
TT
8552020-08-07 Tom Tromey <tromey@adacore.com>
856
857 * ravenscar-thread.c
858 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
859 New method.
860 (ravenscar_thread_target::wait): Check
861 runtime_initialized.
862 (ravenscar_thread_target::prepare_to_store)
863 (ravenscar_thread_target::stopped_by_sw_breakpoint)
864 (ravenscar_thread_target::stopped_by_hw_breakpoint)
865 (ravenscar_thread_target::stopped_by_watchpoint)
866 (ravenscar_thread_target::stopped_data_address)
867 (ravenscar_thread_target::core_of_thread): Use
868 scoped_restore_current_thread and
869 set_base_thread_from_ravenscar_task.
870
0e29517d
TT
8712020-08-07 Tom Tromey <tromey@adacore.com>
872
873 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
874
592f9bd7
TT
8752020-08-07 Tom Tromey <tromey@adacore.com>
876
877 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
878 update_inferior_ptid before update_thread_list.
879 (temporarily_change_regcache_ptid): New class.
880 (ravenscar_thread_target::fetch_registers)
881 (ravenscar_thread_target::store_registers)
882 (ravenscar_thread_target::prepare_to_store): Use base thread when
883 forwarding operation.
884
39e2018a
TT
8852020-08-07 Tom Tromey <tromey@adacore.com>
886
887 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
888 "is_pid" case.
889
2080266b
TT
8902020-08-07 Tom Tromey <tromey@adacore.com>
891
892 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
893 New methods.
894 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
895 first.
896 (ravenscar_thread_target::add_thread): Rename from
897 ravenscar_add_thread.
898 (ravenscar_thread_target::update_thread_list): Use a lambda.
899 (ravenscar_thread_target::xfer_partial): New method.
900
78c02f21
TT
9012020-08-07 Tom Tromey <tromey@adacore.com>
902
903 * ada-lang.h (ada_task_list_iterator_ftype): Now a
904 gdb::function_view.
905 (iterate_over_live_ada_tasks): Change type of argument.
906 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
907 of argument.
908
d5d833af
TT
9092020-08-07 Tom Tromey <tromey@adacore.com>
910
911 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
912 Remove.
913 (ravenscar_thread_target::extra_thread_info): Remove.
914 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
915 defer to target beneath for non-Ravenscar threads.
916
a8ac85bb
TT
9172020-08-07 Tom Tromey <tromey@adacore.com>
918
919 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
920 get_base_thread_from_ravenscar_task>: Now methods.
921 <m_cpu_map>: New member.
922 (ravenscar_thread_target::get_thread_base_cpu): Rename from
923 ravenscar_get_thread_base_cpu. Check m_cpu_map.
924 (ravenscar_thread_target::task_is_currently_active): Update.
925 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
926 Now a method.
927 (ravenscar_thread_target::add_active_thread): Put initial thread
928 into the m_cpu_map.
929
550ab58d
TT
9302020-08-07 Tom Tromey <tromey@adacore.com>
931
932 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
933 event_ptid.
934
e9546579
TT
9352020-08-07 Tom Tromey <tromey@adacore.com>
936
937 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
938 runtime_initialized.
939
3d4470e5
TT
9402020-08-07 Tom Tromey <tromey@adacore.com>
941
942 * ravenscar-thread.c (ravenscar_thread_target): Don't call
943 add_active_thread.
944 (ravenscar_thread_target::add_active_thread): Now public.
945 (ravenscar_inferior_created): Call add_active_thread after pushing
946 the target.
947
888bdb2b
SM
9482020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
949
950 * regcache.c (ptid_regcache_map): New type.
951 (target_ptid_regcache_map): New type.
952 (regcaches): Change type to target_ptid_regcache_map.
953 (get_thread_arch_aspace_regcache): Update to regcaches' new
954 type.
955 (regcache_thread_ptid_changed): Likewise.
956 (registers_changed_ptid): Likewise.
957 (regcaches_size): Likewise.
958 (regcaches_test): Update.
959 (regcache_thread_ptid_changed): Update.
960 * regcache.h (regcache_up): New type.
961 * gdbsupport/ptid.h (hash_ptid): New struct.
962
b161a60d
SM
9632020-08-07 Simon Marchi <simon.marchi@efficios.com>
964
965 * observable.h (thread_ptid_changed): Add parameter
966 `process_stratum_target *`.
967 * infrun.c (infrun_thread_ptid_changed): Add parameter
968 `process_stratum_target *` and use it.
969 (selftests): New namespace.
970 (infrun_thread_ptid_changed): New function.
971 (_initialize_infrun): Register selftest.
972 * regcache.c (regcache_thread_ptid_changed): Add parameter
973 `process_stratum_target *` and use it.
974 (regcache_thread_ptid_changed): New function.
975 (_initialize_regcache): Register selftest.
976 * thread.c (thread_change_ptid): Pass target to
977 thread_ptid_changed observable.
978
d2854d8d
CT
9792020-08-06 Caroline Tice <cmtice@google.com>
980
fe4c3d43
SM
981 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
982 (struct dwp_sections): Update field comments. Add loclists and
983 rnglists fields.
984 (struct virtual_v2_dwo_sections): Rename struct to
985 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
986 size & offset fields for loclists and rnglists.
987 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
988 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
989 skipping dummy type units.
990 (create_dwp_hash_table): Update the large comment above the function to
991 discuss Version 5 DWP files as well, with references. Update all the
992 version checks in the function to check for version 5 as well. Add new
993 section at the end to create dwp hash table for version 5.
994 (create_dwp_v2_section): Rename function to
995 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
996 Add V5 to error message text.
997 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
998 into calls to create_dwp_v2_or_v5_section.
999 (create_dwo_unit_in_dwp_v5): New function.
1000 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
1001 check for version2; add else clause to handle version 5.
1002 (open_and_init_dwo_file): Add code to check dwarf version & only call
1003 create_debug_types_hash_table (with sections.types) if version is not 5;
1004 else call create_debug_type_hash_table, with sections.info.
1005 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
1006 version 5.
1007 (dwarf2_locate_v5_dwp_sections): New function.
1008 (open_and_init_dwp_file): Add else-if clause for version 5 to call
1009 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 1010
159ed7d9
SM
10112020-08-06 Simon Marchi <simon.marchi@efficios.com>
1012
1013 * regcache.h (class regcache): Remove friend
1014 registers_changed_ptid.
1015 <regcache_thread_ptid_changed>: Remove.
1016 <regcaches>: Remove.
1017 * regcache.c (regcache::regcaches): Rename to...
1018 (regcaches): ... this. Make static.
1019 (get_thread_arch_aspace_regcache): Update.
1020 (regcache::regcache_thread_ptid_changed): Rename to...
1021 (regcache_thread_ptid_changed): ... this. Update.
1022 (class regcache_access): Remove.
1023 (regcaches_test): Update.
1024 (_initialize_regcache): Update.
1025 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
1026 <forward_list>.
1027
174981ae
SM
10282020-08-06 Simon Marchi <simon.marchi@efficios.com>
1029
1030 * regcache.h (class regcache) <current_regcache>: Rename to...
1031 <regcaches>: ... this. Move doc here.
1032 * regcache.c (regcache::current_regcache) Rename to...
1033 (regcache::regcaches): ... this. Move doc to header.
1034 (get_thread_arch_aspace_regcache): Update.
1035 (regcache::regcache_thread_ptid_changed): Update.
1036 (registers_changed_ptid): Update.
1037 (class regcache_access) <current_regcache_size>: Rename to...
1038 <regcaches_size>: ... this.
1039 (current_regcache_test): Rename to...
1040 (regcaches_test): ... this.
1041 (_initialize_regcache): Update.
1042
ed908db6
VC
10432020-08-06 Victor Collod <vcollod@nvidia.com>
1044
1045 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
1046
b5582ab7
KB
10472020-08-05 Kevin Buettner <kevinb@redhat.com>
1048
1049 * corelow.c (core_target::build_file_mappings): Don't output
1050 null pathname in warning.
1051
ea946b86
SM
10522020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
1053
1054 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
1055 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
1056 gdb.dwarf2/dw2-single-line-discriminators.exp,
1057 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
1058
57d02173
TT
10592020-08-05 Tom Tromey <tromey@adacore.com>
1060
1061 PR rust/26197:
1062 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
1063 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
1064 Fix off-by-one and type size errors in ordinary case.
1065
5555c86d
TV
10662020-08-05 Tom de Vries <tdevries@suse.de>
1067
1068 * gdbtypes.c (type_not_allocated, type_not_associated): Use
1069 "prop->const_val () == 0" instead of "prop->const_val () != 0".
1070
97916bfe
SM
10712020-08-04 Simon Marchi <simon.marchi@efficios.com>
1072
1073 * frame.h (frame_id_p): Return bool.
1074 (frame_id_artificial_p): Return bool.
1075 (frame_id_eq): Return bool.
1076 (has_stack_frames): Return bool.
1077 (get_selected_frame): Fix typo in comment.
1078 (get_frame_pc_if_available): Return bool.
1079 (get_frame_address_in_block_if_available): Return bool.
1080 (get_frame_func_if_available): Return bool.
1081 (read_frame_register_unsigned): Return bool.
1082 (get_frame_register_bytes): Return bool.
1083 (safe_frame_unwind_memory): Return bool.
1084 (deprecated_frame_register_read): Return bool.
1085 (frame_unwinder_is): Return bool.
1086 * frame.c (struct frame_info) <prev_arch::p>: Change type to
1087 bool.
1088 <this_id::p>: Likewise.
1089 <prev_p>: Likewise.
1090 (frame_stash_add): Return bool.
1091 (get_frame_id): Use bool.
1092 (frame_id_build_special) Use bool.
1093 (frame_id_build_unavailable_stack): Use bool.
1094 (frame_id_build): Use bool.
1095 (frame_id_p): Return bool, use true/false instead of 1/0.
1096 (frame_id_artificial_p): Likewise.
1097 (frame_id_eq): Likewise.
1098 (frame_id_inner): Likewise.
1099 (get_frame_func_if_available): Likewise.
1100 (read_frame_register_unsigned): Likewise.
1101 (deprecated_frame_register_read): Likewise.
1102 (get_frame_register_bytes): Likewise.
1103 (has_stack_frames): Likewise.
1104 (inside_main_func): Likewise.
1105 (inside_entry_func): Likewise.
1106 (get_frame_pc_if_available): Likewise.
1107 (get_frame_address_in_block_if_available): Likewise.
1108 (frame_unwinder_is): Likewise.
1109 (safe_frame_unwind_memory): Likewise.
1110 (frame_unwind_arch): Likewise.
1111
fedfee88
SM
11122020-08-04 Simon Marchi <simon.marchi@efficios.com>
1113
1114 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
1115 type to cached_copy_status.
1116 (fprintf_frame): Adjust.
1117 (get_frame_func_if_available): Adjust.
1118 (frame_cleanup_after_sniffer): Adjust.
1119
6cfa9b59
MW
11202020-08-04 Mark Wielaard <mark@klomp.org>
1121
1122 * MAINTAINERS (Write After Approval): Update email address.
1123
66d6346b
SM
11242020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1125
1126 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
1127 dynamic_prop::const_val.
1128
8a6d5e35
SM
11292020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1130
1131 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
1132 dynamic_prop::kind.
1133
51d6067d
SM
11342020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
1135
1136 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
1137
b26e2ae7
JM
11382020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
1139
1140 * configure.tgt: Set gdb_sim for bpf-*-* targets.
1141
39791af2
JM
11422020-08-04 Weimin Pan <weimin.pan@oracle.com>
1143 Jose E. Marchesi <jose.marchesi@oracle.com>
1144
1145 * configure.tgt: Add entry for bpf-*-*.
1146 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
1147 (ALLDEPFILES): Add bpf-tdep.c.
1148 * bpf-tdep.c: New file.
1149 * MAINTAINERS: Add bpf target and maintainer.
1150 * NEWS: Mention the support for the new target.
1151
521894aa
TV
11522020-08-04 Tom de Vries <tdevries@suse.de>
1153
1154 PR symtab/23270
1155 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
1156 Error.
1157
5d6356e9
JB
11582020-08-03 John Baldwin <jhb@FreeBSD.org>
1159
1160 * syscalls/freebsd.xml: Regenerate.
1161
0cf82b81
JB
11622020-08-03 John Baldwin <jhb@FreeBSD.org>
1163
1164 * syscalls/update-freebsd.sh: Fix usage and year range.
1165
8f34b746
TV
11662020-08-03 Tom de Vries <tdevries@suse.de>
1167
1168 PR symtab/26333
1169 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
1170 DW_LNE_lo_user/DW_LNE_hi_user range.
1171
5e500d33
SM
11722020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
1173
1174 PR ada/26318
1175 * ada-lang.c (ada_modulus): Return 0 if property is not of const
1176 kind.
1177
78319c15
TBA
11782020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1179
1180 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
1181
4c55e970
TBA
11822020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1183
1184 * breakpoint.c (set_breakpoint_condition): Update the condition
1185 expressions after checking that the input condition string parses
1186 successfully and does not contain junk at the end.
1187
1e620590
TBA
11882020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1189
1190 * breakpoint.c (set_breakpoint_condition): Update the
1191 condition string after parsing the new condition successfully.
1192
c8693053
RO
11932020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1194
1195 * proc-api.c (_STRUCTURED_PROC): Don't define.
1196 * proc-events.c: Likewise.
1197 * proc-flags.c: Likewise.
1198 * proc-why.c: Likewise.
1199 * procfs.c: Likewise.
1200
1201 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1202 * configure, config.in: Regenerate.
1203
5a99adb8
TV
12042020-07-30 Tom de Vries <tdevries@suse.de>
1205
1206 PR build/26320
1207 * ui-style.h (struct ui_file_style::color): Wrap m_value and
1208 m_red/m_green/m_blue in a union.
1209
8ba83e91
TV
12102020-07-29 Tom de Vries <tdevries@suse.de>
1211
1212 PR tdep/26280
1213 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
1214
f75a0693
AB
12152020-07-28 Tom Tromey <tromey@adacore.com>
1216
1217 PR symtab/26270:
1218 * symtab.h (find_pc_partial_function_sym): Declare.
1219 * cli/cli-cmds.c (disassemble_command): Use
1220 find_pc_partial_function_sym. Check asm_demangle.
1221 * blockframe.c (cache_pc_function_sym): New global.
1222 (cache_pc_function_name): Remove.
1223 (clear_pc_function_cache): Update.
1224 (find_pc_partial_function_sym): New function, from
1225 find_pc_partial_function.
1226 (find_pc_partial_function): Rewrite using
1227 find_pc_partial_function_sym.
1228
16f3242c
TT
12292020-07-28 Tom Tromey <tromey@adacore.com>
1230
1231 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
1232 help. Add usage.
1233
4888741a
TT
12342020-07-28 Tom Tromey <tromey@adacore.com>
1235
1236 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
1237 <DW_OP_GNU_variable_value>: Cast to address type.
1238
4d46f402
KR
12392020-07-28 Kamil Rytarowski <n54@gmx.com>
1240
1241 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
1242 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
1243 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
1244 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
1245 (nbsd_get_siginfo_type): New.
1246 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
1247 (_initialize_nbsd_tdep): New.
1248
d70f978b
L
12492020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1250
1251 PR binutils/26301
1252 * configure: Regenerated.
1253
377170fa
L
12542020-07-28 H.J. Lu <hongjiu.lu@intel.com>
1255
1256 PR binutils/26301
1257 * configure: Regenerated.
1258
43d5901d
AB
12592020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1260
1261 * python/py-frame.c: Remove 'user-regs.h' include.
1262 (frapy_read_register): Rewrite to make use of
1263 gdbpy_parse_register_id.
1264 * python/py-registers.c (gdbpy_parse_register_id): New function,
1265 moved here from python/py-unwind.c. Updated the return type, and
1266 also accepts register descriptor objects.
1267 * python/py-unwind.c: Remove 'user-regs.h' include.
1268 (pyuw_parse_register_id): Moved to python/py-registers.c.
1269 (unwind_infopy_add_saved_register): Update to use
1270 gdbpy_parse_register_id.
1271 (pending_framepy_read_register): Likewise.
1272 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1273
14fa8fb3
AB
12742020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1275
1276 * python/py-registers.c: Add 'user-regs.h' include.
1277 (register_descriptor_iter_find): New function.
1278 (register_descriptor_iterator_object_methods): New static global
1279 methods array.
1280 (register_descriptor_iterator_object_type): Add pointer to methods
1281 array.
1282
ddce1758
JB
12832020-07-27 John Baldwin <jhb@FreeBSD.org>
1284
1285 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1286 for all architectures on FreeBSD 11.3 and later.
1287
a4089f52
TT
12882020-07-27 Tom Tromey <tromey@adacore.com>
1289
1290 * gcore.h (load_corefile): Don't declare.
1291
95420d30
TV
12922020-07-27 Tom de Vries <tdevries@suse.de>
1293
1294 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1295 * config.in: Regenerate.
1296 * configure: Regenerate.
1297
05a6b8c2
EZ
12982020-07-26 Eli Zaretskii <eliz@gnu.org>
1299
1300 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1301 ws2tcpip.h. When checking whether socklen_t type is defined, use
1302 ws2tcpip.h if it is available and sys/socket.h isn't.
1303 * configure: Regenerate.
1304 * config.in: Regenerate.
1305
e79eb02f
AB
13062020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1307
1308 PR fortran/23051
1309 PR fortran/26139
1310 * valops.c (value_ind): Pass address to
1311 readjust_indirect_value_type.
1312 * value.c (readjust_indirect_value_type): Make parameter
1313 non-const, and add extra address parameter. Resolve original type
1314 before using it.
1315 * value.h (readjust_indirect_value_type): Update function
1316 signature and comment.
1317
876518dd
TV
13182020-07-25 Tom de Vries <tdevries@suse.de>
1319
1320 PR symtab/26243
1321 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1322 entries.
1323
f6720b1c
AM
13242020-07-24 Aaron Merey <amerey@redhat.com>
1325
1326 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1327 * configure: Rebuild.
1328
513487e1
KB
13292020-07-23 Kevin Buettner <kevinb@redhat.com>
1330
1331 PR corefiles/26294
1332 * corelow.c (_initialize_corelow): Add period to help text
1333 for "maintenance print core-file-backed-mappings".
1334
e7bc9db8
PA
13352020-07-23 Pedro Alves <pedro@palves.net>
1336
1337 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1338 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1339 meanwhile.
1340 * frame.c (frame_cache_generation, get_frame_cache_generation):
1341 New.
1342 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1343 (get_prev_frame_if_no_cycle): On exception, don't touch
1344 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1345 * frame.h (get_frame_cache_generation): Declare.
1346
90fcc466
TV
13472020-07-23 Tom de Vries <tdevries@suse.de>
1348
1349 PR tui/26282
1350 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1351 New default constructor.
1352
78344df7
AB
13532020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1354
1355 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1356 exclude non-statement entries.
1357
b089853a
KB
13582020-07-22 Kevin Buettner <kevinb@redhat.com>
1359
1360 * NEWS (New commands): Mention new command
1361 "maintenance print core-file-backed-mappings".
1362
09c2f5d4
KB
13632020-07-22 Kevin Buettner <kevinb@redhat.com>
1364
1365 * corelow.c (gdbcmd.h): Include.
1366 (core_target::info_proc_mappings): New method.
1367 (get_current_core_target): New function.
1368 (maintenance_print_core_file_backed_mappings): New function.
1369 (_initialize_corelow): Add core-file-backed-mappings to
1370 "maint print" commands.
1371
9c5ec5c2 13722020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 1373
9c5ec5c2
KB
1374 * linux-tdep.c (dump_note_entry_p): New function.
1375 (linux_dump_mapping_p_ftype): New typedef.
1376 (linux_find_memory_regions_full): Add new parameter,
1377 should_dump_mapping_p.
1378 (linux_find_memory_regions): Adjust call to
1379 linux_find_memory_regions_full.
1380 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1381 call to linux_find_memory_regions_full.
1382
db082f59
KB
13832020-07-22 Kevin Buettner <kevinb@redhat.com>
1384
1385 * corelow.c (solist.h, unordered_map): Include.
1386 (class core_target): Add field m_core_file_mappings and
1387 method build_file_mappings.
1388 (core_target::core_target): Call build_file_mappings.
1389 (core_target::~core_target): Free memory associated with
1390 m_core_file_mappings.
1391 (core_target::build_file_mappings): New method.
1392 (core_target::xfer_partial): Use m_core_file_mappings
1393 for memory transfers.
1394 * linux-tdep.c (linux_read_core_file_mappings): New
1395 function.
1396 (linux_core_info_proc_mappings): Rewrite to use
1397 linux_read_core_file_mappings.
1398 (linux_init_abi): Register linux_read_core_file_mappings.
1399
7e183d27
KB
14002020-07-22 Kevin Buettner <kevinb@redhat.com>
1401
1402 * arch-utils.c (default_read_core_file_mappings): New function.
1403 * arch-utils.c (default_read_core_file_mappings): Declare.
1404 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1405 * gdbarch.h, gdbarch.c: Regenerate.
1406
2735d421
KB
14072020-07-22 Kevin Buettner <kevinb@redhat.com>
1408
1409 PR corefiles/25631
1410 * corelow.c (core_target:xfer_partial): Revise
1411 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1412 case after first checking the stratum beneath the core
1413 target.
1414 (has_all_memory): Return true.
1415 * target.c (raw_memory_xfer_partial): Revise comment
1416 regarding use of has_all_memory.
1417
e56cb451
KB
14182020-07-22 Kevin Buettner <kevinb@redhat.com>
1419
1420 * exec.h (section_table_xfer_memory): Revise declaration,
1421 replacing section name parameter with an optional callback
1422 predicate.
1423 * exec.c (section_table_xfer_memory): Likewise.
1424 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1425 of section_table_xfer_memory.
1426
32fa152e
TT
14272020-07-22 Tom Tromey <tromey@adacore.com>
1428
1429 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1430 lookup_symbol_search_name.
1431
a67a1c41
AB
14322020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1433
1434 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1435 redundant local variable.
1436 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1437 reference, not pointer, update code accordingly.
1438
a7b4ff4f
SM
14392020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1440 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1441
1442 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1443 * jit.c (jit_breakpoint_re_set_internal): Use the
1444 `skip_jit_symbol_lookup` field.
1445
2340e834
SM
14462020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1447 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1448
1449 * jit.c (jit_read_descriptor): Define the descriptor address once,
1450 use twice.
1451 (jit_breakpoint_deleted): Move the declaration of the loop variable
1452 `iter` into the loop header.
1453 (jit_breakpoint_re_set_internal): Move the declaration of the local
1454 variable `objf_data` to the first point of definition.
1455 (jit_event_handler): Move the declaration of local variables
1456 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1457 Rename `objf` to `jited`.
1458
c1072906
SM
14592020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1460
1461 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1462 Remove.
1463 * jit.c (get_jiter_objfile_data): Update.
1464
c8474dc3
TBA
14652020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1466 Simon Marchi <simon.marchi@polymtl.ca>
1467
1468 * jit.c (struct jit_program_space_data): Remove.
1469 (jit_program_space_key): Remove.
1470 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1471 stuff.
1472 (get_jit_program_space_data): Remove.
1473 (jit_breakpoint_deleted): Iterate on all of the program space's
1474 objfiles.
1475 (jit_inferior_init): Likewise.
1476 (jit_breakpoint_re_set_internal): Likewise. Also change return
1477 type to void.
1478 (jit_breakpoint_re_set): Pass current_program_space to
1479 jit_breakpoint_re_set_internal.
1480
77208eb7
SM
14812020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1482
1483 * jit.h (struct jiter_objfile_data) <cached_code_address,
1484 jit_breakpoint>: Move to here from ...
1485 * jit.c (jit_program_space_data): ... here.
1486 (jiter_objfile_data::~jiter_objfile_data): Update.
1487 (jit_breakpoint_deleted): Update.
1488 (jit_breakpoint_re_set_internal): Update.
1489
8c1c720f
SM
14902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1491
1492 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1493 checks.
1494 (jit_read_descriptor): Remove NULL check.
1495 (jit_event_handler): Add an assertion.
1496
0e74a041
SM
14972020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1498
1499 * jit.h (struct jit_objfile_data): Split into...
1500 (struct jiter_objfile_data): ... this ...
1501 (struct jited_objfile_data): ... and this.
1502 * objfiles.h (struct objfile) <jit_data>: Remove.
1503 <jiter_data, jited_data>: New fields.
1504 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1505 (jiter_objfile_data::~jiter_objfile_data): ... this.
1506 (get_jit_objfile_data): Rename to ...
1507 (get_jiter_objfile_data): ... this.
1508 (add_objfile_entry): Update.
1509 (jit_read_descriptor): Use get_jiter_objfile_data.
1510 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1511 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1512 (jit_inferior_exit_hook): Use objfile's jited_data field.
1513
238b5c9f
SM
15142020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1515
1516 * jit.h: Forward-declare `struct minimal_symbol`.
1517 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1518 constructor, destructor, and an objfile* field.
1519 * jit.c (jit_objfile_data): Remove.
1520 (struct jit_objfile_data): Migrate from here to jit.h.
1521 (jit_objfile_data::~jit_objfile_data): New destructor
1522 implementation with code moved from free_objfile_data.
1523 (free_objfile_data): Delete.
1524 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1525 (jit_find_objf_with_entry_addr): Ditto.
1526 (jit_inferior_exit_hook): Ditto.
1527 (_initialize_jit): Remove the call to
1528 register_objfile_data_with_cleanup.
1529 * objfiles.h (struct objfile) <jit_data>: New field.
1530
fe053b9e
TBA
15312020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1532
1533 * jit.h: Forward-declare `struct objfile`.
1534 (jit_event_handler): Add a second parameter, the JITer objfile.
1535 * jit.c (jit_read_descriptor): Change the signature to take the
1536 JITer objfile as an argument instead of the jit_program_space_data.
1537 (jit_inferior_init): Update the call to jit_read_descriptor.
1538 (jit_event_handler): Use the new JITer objfile argument when calling
1539 jit_read_descriptor.
1540 * breakpoint.c (handle_jit_event): Update the call to
1541 jit_event_handler to pass the JITer objfile.
1542
4cec0c66
JB
15432020-07-21 John Baldwin <jhb@FreeBSD.org>
1544
1545 * gdbarch.c: Regenerate.
1546 * gdbarch.h: Regenerate.
1547 * gdbarch.sh (handle_segmentation_fault): Remove method.
1548 * infrun.c (handle_segmentation_fault): Remove.
1549 (print_signal_received_reason): Remove call to
1550 handle_segmentation_fault.
1551
0e42f66a
JB
15522020-07-21 John Baldwin <jhb@FreeBSD.org>
1553
1554 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1555 Rename to sparc64_linux_report_signal_info and add siggnal
1556 argument.
1557 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1558 instead of sparc64_linux_handle_segmentation_fault.
1559
77bdfeb2
JB
15602020-07-21 John Baldwin <jhb@FreeBSD.org>
1561
1562 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1563 i386_linux_report_signal_info instead of
1564 i386_linux_handle_segmentation_fault.
1565 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1566 to i386_linux_report_signal_info and add siggnal argument.
1567 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1568 of i386_linux_handle_segmentation_fault.
1569 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1570 to i386_linux_report_signal_info and add siggnal argument.
1571
ad97bfc5
JB
15722020-07-21 John Baldwin <jhb@FreeBSD.org>
1573
1574 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1575 hook if present.
1576
272bb05c
JB
15772020-07-21 John Baldwin <jhb@FreeBSD.org>
1578
1579 * gdbarch.c: Regenerate.
1580 * gdbarch.h: Regenerate.
1581 * gdbarch.sh (report_signal_info): New method.
1582 * infrun.c (print_signal_received_reason): Invoke gdbarch
1583 report_signal_info hook if present.
1584
baf8791e
AB
15852020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1586
1587 * python/py-registers.c : Add 'unordered_map' include.
1588 (gdbpy_new_reggroup): Renamed to...
1589 (gdbpy_get_reggroup): ...this. Update to only create register
1590 group descriptors when needed.
1591 (gdbpy_reggroup_iter_next): Update.
1592
f7306dac
AB
15932020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1594
1595 * python/py-registers.c (gdbpy_register_object_data): New static
1596 global.
1597 (gdbpy_register_object_data_init): New function.
1598 (gdbpy_new_register_descriptor): Renamed to...
1599 (gdbpy_get_register_descriptor): ...this, and update to reuse
1600 existing register descriptors where possible.
1601 (gdbpy_register_descriptor_iter_next): Update.
1602 (gdbpy_initialize_registers): Register new gdbarch data.
1603
05c309a8
SM
16042020-07-21 Simon Marchi <simon.marchi@efficios.com>
1605
1606 * linux-nat.c (stopped_pids): Make static.
1607
d1fd641e
SM
16082020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1609
1610 PR ada/26235
1611 * gdbtypes.c (ada_discrete_type_low_bound,
1612 ada_discrete_type_high_bound): Handle undefined bounds.
1613
1de14d77
KR
16142020-07-21 Kamil Rytarowski <n54@gmx.com>
1615
1616 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1617 declaration.
1618 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1619 function.
1620
ed810cc7
JB
16212020-07-20 John Baldwin <jhb@FreeBSD.org>
1622
1623 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1624 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1625 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1626 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1627 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1628 method.
1629
ae5369e7
LC
16302020-07-20 Ludovic Courtès <ludo@gnu.org>
1631
1632 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1633 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1634 which are deprecated in Guile 3.0.
1635 * configure.ac (try_guile_versions): Add "guile-3.0".
1636 * configure (try_guile_versions): Regenerate.
1637 * NEWS: Update entry.
1638
68cf161c
LC
16392020-07-20 Ludovic Courtès <ludo@gnu.org>
1640 Doug Evans <dje@google.com>
1641
1642 PR gdb/21104
1643 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1644 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1645 USING_GUILE_BEFORE_2_2.
1646 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1647 Change type to 'scm_t_port_type *'.
1648 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1649 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1650 parameter and honor it. Update callers.
1651 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1652 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1653 functions.
1654 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1655 USING_GUILE_BEFORE_2_2.
1656 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1657 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1658 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1659 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1660 and 'SCM_PORT_TYPE'.
1661 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1662 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1663 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1664 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1665 [!USING_GUILE_BEFORE_2_2]: New functions.
1666 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1667 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1668 'gdbscm_memory_port_read'.
1669 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1670 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1671 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1672 function.
1673 (ioscm_init_memory_port): Remove.
1674 (ioscm_init_memory_port_stream): New function
1675 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1676 function.
1677 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1678 Return scm_from_uint (0).
1679 (gdbscm_set_memory_port_read_buffer_size_x)
1680 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1681 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1682 Return scm_from_uint (0).
1683 (gdbscm_set_memory_port_write_buffer_size_x)
1684 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1685 * configure.ac (try_guile_versions): Add "guile-2.2".
1686 * configure: Regenerate.
1687 * NEWS: Add entry.
1688
aee91db3
TT
16892020-07-18 Tom Tromey <tom@tromey.com>
1690
1691 * linux-nat.c (linux_multi_process): Remove.
1692 (linux_nat_target::supports_multi_process): Return true.
1693
0e267416
AB
16942020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1695
1696 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1697 (riscv_lookup_target_description): Return pointer out of
1698 unique_ptr.
1699 * target-descriptions.c (allocate_target_description): Add
1700 comment.
1701 (target_desc_deleter::operator()): Likewise.
1702 * target-descriptions.h (struct target_desc_deleter): Moved to
1703 gdbsupport/tdesc.h.
1704 (target_desc_up): Likewise.
1705
f80c8ec4
TT
17062020-07-17 Tom Tromey <tromey@adacore.com>
1707
1708 * linux-nat.c (linux_nat_target::supports_non_stop)
1709 (linux_nat_target::always_non_stop_p): Use "true".
1710 (linux_nat_target::supports_disable_randomization): Use "true" and
1711 "false".
1712
d0ce17d8
CT
17132020-07-16 Caroline Tice <cmtice@google.com>
1714
1715 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1716 (RNGLIST_HEADER_SIZE64): New constant definition.
1717 (struct dwop_section_names): Add rnglists_dwo.
1718 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1719 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1720 (struct dwo_sections): Add rnglists field.
1721 (read_attribut_reprocess): Add tag parameter.
1722 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1723 (cu_debug_rnglists_section): New function (decl & definition).
1724 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1725 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1726 die whose range is being checked; get rnglist section from
1727 cu_debug_rnglists_section, to get from either objfile or dwo file as
1728 appropriate. Add cases for DW_RLE_base_addressx,
1729 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1730 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1731 test inside if-condition and updating complaint message.
1732 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1733 dwarf2_rnglists_process.
1734 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1735 dwarf2_ranges_process.
1736 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1737 need_ranges_base and update comment appropriately. Also pass die tag
1738 to dwarf2_ranges_read.
1739 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1740 need_ranges_base and update comment appropriately. Also pass die tag
1741 to dwarf2_ranges_process.
1742 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1743 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1744 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1745 need_ranges_base and update comment appropriately. Also pass die tag
1746 to read_attribute_reprocess and dwarf2_ranges_read.
1747 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1748 and update function comment appropriately.
1749 (read_loclist_index): Call read_loclists_rnglists_header instead of
1750 read_loclist_header.
1751 (read_rnglist_index): New function.
1752 (read_attribute_reprocess): Add tag parameter. Add code for
1753 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1754 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1755
3dcc261c
AB
17562020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1757
1758 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1759 being resolved.
1760
ccb9eba6
AB
17612020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1762
1763 * arch-utils.c (show_architecture): Update formatting of messages.
1764
cf88be68
SM
17652020-07-12 Simon Marchi <simon.marchi@efficios.com>
1766
1767 * gdbtypes.h (struct type) <bounds>: Handle array and string
1768 types.
1769 * ada-lang.c (assign_aggregate): Use type::bounds on
1770 array/string type.
1771 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1772 * c-varobj.c (c_number_of_children): Likewise.
1773 (c_describe_child): Likewise.
1774 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1775 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1776 (f_type_print_base): Likewise.
1777 * f-valprint.c (f77_array_offset_tbl): Likewise.
1778 (f77_get_upperbound): Likewise.
1779 (f77_print_array_1): Likewise.
1780 * guile/scm-type.c (gdbscm_type_range): Likewise.
1781 * m2-typeprint.c (m2_array): Likewise.
1782 (m2_is_long_set_of_type): Likewise.
1783 * m2-valprint.c (get_long_set_bounds): Likewise.
1784 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1785 * python/py-type.c (typy_range): Likewise.
1786 * rust-lang.c (rust_internal_print_type): Likewise.
1787 * type-stack.c (type_stack::follow_types): Likewise.
1788 * valarith.c (value_subscripted_rvalue): Likewise.
1789 * valops.c (value_cast): Likewise.
1790
509971ae
SM
17912020-07-12 Simon Marchi <simon.marchi@efficios.com>
1792
1793 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1794 callers to use the equivalent accessor methods.
1795
107406b7
SM
17962020-07-12 Simon Marchi <simon.marchi@efficios.com>
1797
1798 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1799 (struct type) <bit_stride>: New method.
1800 (TYPE_BIT_STRIDE): Remove.
1801 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1802
bb789949
SM
18032020-07-12 Simon Marchi <simon.marchi@efficios.com>
1804
1805 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1806 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1807 callers to use the equivalent accessor methods instead.
1808
39498edb
SM
18092020-07-12 Simon Marchi <simon.marchi@efficios.com>
1810
1811 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1812 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1813 callers to use the equivalent accessor methods instead.
1814
3b606f38
SM
18152020-07-12 Simon Marchi <simon.marchi@efficios.com>
1816
1817 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1818 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1819 to use dynamic_prop::kind.
1820
064d9cb9
SM
18212020-07-12 Simon Marchi <simon.marchi@efficios.com>
1822
1823 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1824 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1825 to get the bound property's kind and check against
1826 PROP_UNDEFINED.
1827
5537ddd0
SM
18282020-07-12 Simon Marchi <simon.marchi@efficios.com>
1829
1830 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1831 all callers to use type::range_bounds followed by
1832 dynamic_prop::{low,high}.
1833
8c2e4e06
SM
18342020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1835
1836 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1837 const_val, set_const_val, baton, set_locexpr, set_loclist,
1838 set_addr_offset, variant_parts, set_variant_parts,
1839 original_type, set_original_type>: New methods.
1840 <kind>: Rename to...
1841 <m_kind>: ... this. Update all users to use the new methods
1842 instead.
1843 <data>: Rename to...
1844 <m_data>: ... this. Update all users to use the new methods
1845 instead.
1846
7c6f2712
SM
18472020-07-12 Simon Marchi <simon.marchi@efficios.com>
1848
1849 * gdbtypes.c (get_discrete_bounds): Return failure if
1850 the range type's bounds are not both defined and constant
1851 values.
1852 (get_array_bounds): Update comment. Remove undefined bound check.
1853
599088e3
SM
18542020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1855
1856 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1857 the type::bounds method directly.
1858
c4dfcb36
SM
18592020-07-12 Simon Marchi <simon.marchi@efficios.com>
1860
1861 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1862 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1863 are used to set the range type's bounds to use set_bounds.
1864
0a278aa7
PW
18652020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1866
1867 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1868
cce20f10
PA
18692020-07-10 Pedro Alves <pedro@palves.net>
1870
1871 * gdbthread.h (inferior_ref): Define.
1872 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1873 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1874 * thread.c
1875 (scoped_restore_current_thread::restore):
1876 Adjust to gdb::ref_ptr.
1877 (scoped_restore_current_thread::~scoped_restore_current_thread):
1878 Remove manual decref handling.
1879 (scoped_restore_current_thread::scoped_restore_current_thread):
1880 Adjust to use
1881 inferior_ref::new_reference/thread_info_ref::new_reference.
1882 Incref the thread before calling get_frame_id instead of after.
1883 Let TARGET_CLOSE_ERROR propagate.
1884
6d7aa592
PA
18852020-07-10 Pedro Alves <pedro@palves.net>
1886
1887 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1888 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1889 NOT_AVAILABLE_ERROR.
1890 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1891 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1892
b3e3a4c1
SM
18932020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1894 Pedro Alves <pedro@palves.net>
1895
1896 PR gdb/26199
1897 * infrun.c (threads_are_resumed_pending_p): Delete.
1898 (do_target_wait): Remove threads_are_executing and
1899 threads_are_resumed_pending_p checks from the inferior_matches
1900 lambda. Update comments.
1901
d6cc5d98
PA
19022020-07-10 Pedro Alves <pedro@palves.net>
1903
1904 PR gdb/26199
1905 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1906 executing threads.
1907
7d3badc6
PA
19082020-07-10 Pedro Alves <pedro@palves.net>
1909
1910 PR gdb/26199
1911 * infrun.c (handle_no_resumed): Handle multiple targets.
1912
42bd97a6
PA
19132020-07-10 Pedro Alves <pedro@palves.net>
1914
1915 PR gdb/26199
1916 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1917 target_is_async_p.
1918
43667cc6
PA
19192020-07-10 Pedro Alves <pedro@palves.net>
1920
1921 PR gdb/26199
1922 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1923 threads, not all threads.
1924
96118d11
PA
19252020-07-10 Pedro Alves <pedro@palves.net>
1926
1927 PR gdb/26199
1928 * remote.c (remote_target::open_1): Pass remote target pointer as
1929 data to create_async_event_handler.
1930 (remote_async_inferior_event_handler): Mark async event handler
1931 before returning if the remote target still has either pending
1932 events or unacknowledged notifications.
1933
54904d81
JB
19342020-07-10 John Baldwin <jhb@FreeBSD.org>
1935
1936 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1937 declaration.
1938 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1939 function.
1940
f37e5866
JB
19412020-07-09 John Baldwin <jhb@FreeBSD.org>
1942
1943 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1944 inferior_ptid.
1945
fc238d4a
JB
19462020-07-09 John Baldwin <jhb@FreeBSD.org>
1947
1948 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1949 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1950 AT_FREEBSD_PS_STRINGS.
1951
6e2469ff
HD
19522020-07-08 Hannes Domani <ssbssa@yahoo.de>
1953
1954 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1955 of debugfile path on Windows.
1956
d1076c41
JB
19572020-07-08 John Baldwin <jhb@FreeBSD.org>
1958
1959 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1960 argument to 'data'.
1961
15f3b077
TT
19622020-07-08 Tom Tromey <tromey@adacore.com>
1963
1964 * ada-lang.c (ada_exception_message_1): Use read_memory.
1965
9fc501fd
AB
19662020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1967
1968 PR python/22748
1969 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1970 special handling for inline frames.
1971 * findvar.c (value_of_register_lazy): Skip inline frames when
1972 creating lazy register values.
1973 * frame.c (frame_id_computed_p): Delete definition.
1974 * frame.h (frame_id_computed_p): Delete declaration.
1975
64cb3757
AB
19762020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1977
1978 * NEWS: Mention additions to Python API.
1979 * python/py-arch.c (archpy_register_groups): New function.
1980 (arch_object_methods): Add 'register_groups' method.
1981 * python/py-registers.c (reggroup_iterator_object): New struct.
1982 (reggroup_object): New struct.
1983 (gdbpy_new_reggroup): New function.
1984 (gdbpy_reggroup_to_string): New function.
1985 (gdbpy_reggroup_name): New function.
1986 (gdbpy_reggroup_iter): New function.
1987 (gdbpy_reggroup_iter_next): New function.
1988 (gdbpy_new_reggroup_iterator): New function
1989 (gdbpy_initialize_registers): Register new types.
1990 (reggroup_iterator_object_type): Define new Python type.
1991 (gdbpy_reggroup_getset): New static global.
1992 (reggroup_object_type): Define new Python type.
1993 * python/python-internal.h
1994
0f767f94
AB
19952020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1996
1997 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1998 * python/py-arch.c (archpy_registers): New function.
1999 (arch_object_methods): Add 'registers' method.
2000 * python/py-registers.c: New file.
2001 * python/python-internal.h
2002 (gdbpy_new_register_descriptor_iterator): Declare.
2003 (gdbpy_initialize_registers): Declare.
2004 * python/python.c (do_start_initialization): Call
2005 gdbpy_initialize_registers.
2006 * NEWS: Mention additions to the Python API.
2007
87dbc774
AB
20082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2009
2010 * NEWS: Mention new Python API method.
2011 * python/py-unwind.c (pending_framepy_architecture): New function.
2012 (pending_frame_object_methods): Add architecture method.
2013
3bc98c0c
AB
20142020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
2015
2016 * gdbarch.c: Regenerate.
2017 * gdbarch.h: Regenerate.
2018 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
2019 (gdbarch_data): Use internal_error for the case where
2020 deprecated_set_gdbarch_data was originally needed.
2021 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
2022 and use passed in obstack.
2023 (libunwind_frame_set_descr): Should no longer get back NULL from
2024 gdbarch_data.
2025 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
2026 type.
2027 * user-regs.c (user_regs_init): Update parameters, and use passed
2028 in obstack.
2029 (user_reg_add): Should no longer get back NULL from gdbarch_data.
2030 (_initialize_user_regs): Register as a pre-init gdbarch data type.
2031
d8cc8af6
TV
20322020-07-06 Tom de Vries <tdevries@suse.de>
2033
2034 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
2035 End-Of-Sequence in lte_is_less_than.
2036 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
2037 "gdb: Don't reorder line table entries too much when sorting".
2038
947f7597
TV
20392020-07-06 Tom de Vries <tdevries@suse.de>
2040
2041 PR tui/26205
2042 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
2043
1e7c1b22
TV
20442020-07-05 Tom de Vries <tdevries@suse.de>
2045
2046 PR build/26187
2047 * inferior.h (struct infcall_suspend_state_deleter): If available, use
2048 std::uncaught_exceptions instead of deprecated
2049 std::uncaught_exception.
2050
a36158ec
SM
20512020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2052
2053 * macroexp.h (macro_stringify): Return
2054 gdb::unique_xmalloc_ptr<char>.
2055 * macroexp.c (macro_stringify): Likewise.
2056 * macrotab.c (fixup_definition): Update.
2057
14d960c8
SM
20582020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2059
2060 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
2061 (lex_one_token): Update.
2062 * macroexp.c (struct macro_buffer) <release>: Return
2063 gdb::unique_xmalloc_ptr<char>.
2064 (macro_stringify): Update.
2065 (macro_expand): Update.
2066 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
2067 * macroexp.h (macro_expand_next): Likewise.
2068
211d5b1c
SM
20692020-07-02 Simon Marchi <simon.marchi@efficios.com>
2070
2071 * macroexp.h (macro_lookup_ftype): Remove.
2072 (macro_expand, macro_expand_once, macro_expand_next): Remove
2073 lookup function parameters, add scope parameter.
2074 * macroexp.c (scan, substitute_args, expand, maybe_expand,
2075 macro_expand, macro_expand_once, macro_expand_next): Likewise.
2076 * macroscope.h (standard_macro_lookup): Change parameter type
2077 to macro_scope.
2078 * macroscope.c (standard_macro_lookup): Likewise.
2079 * c-exp.y (lex_one_token): Update.
2080 * macrocmd.c (macro_expand_command): Likewise.
2081 (macro_expand_once_command): Likewise.
2082
b1a35af2
SM
20832020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
2084
2085 * inf-loop.c (inferior_event_handler): Remove client_data param.
2086 * inf-loop.h (inferior_event_handler): Likewise.
2087 * infcmd.c (step_1): Adjust.
2088 * infrun.c (proceed): Adjust.
2089 (fetch_inferior_event): Remove client_data param.
2090 (infrun_async_inferior_event_handler): Adjust.
2091 * infrun.h (fetch_inferior_event): Remove `void *` param.
2092 * linux-nat.c (handle_target_event): Adjust.
2093 * record-btrace.c (record_btrace_handle_async_inferior_event):
2094 Adjust.
2095 * record-full.c (record_full_async_inferior_event_handler):
2096 Adjust.
2097 * remote.c (remote_async_inferior_event_handler): Adjust.
2098
1cdf9e33
TT
20992020-07-01 Tom Tromey <tom@tromey.com>
2100
2101 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
2102 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
2103
32c1e210
TT
21042020-07-01 Tom Tromey <tom@tromey.com>
2105
2106 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
2107 tui_gen_win_info.
2108 (tui_win_info::make_window): Merge with
2109 tui_gen_win_info::make_window.
2110 (tui_win_info::make_visible): Move from tui_gen_win_info.
2111 * tui/tui-win.c (tui_win_info::max_width): Move from
2112 tui_gen_win_info.
2113 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
2114 type.
2115 <window_factory>: Likewise.
2116 * tui/tui-layout.c (tui_win_info::resize): Move from
2117 tui_gen_win_info.
2118 (make_standard_window): Change return type.
2119 (get_locator_window, tui_get_window_by_name): Likewise.
2120 (tui_layout_window::apply): Remove a cast.
2121 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
2122 (struct tui_win_info): Merge with tui_gen_win_info.
2123 (struct tui_gen_win_info): Remove.
2124
a30cb6da
TT
21252020-07-01 Tom Tromey <tom@tromey.com>
2126
2127 * tui/tui-stack.h (struct tui_locator_window): Derive from
2128 tui_win_info.
2129 <do_scroll_horizontal, do_scroll_vertical>: New methods.
2130 <can_box>: New method.
2131
1eb2161f
TT
21322020-07-01 Tom Tromey <tom@tromey.com>
2133
2134 * tui/tui-stack.h (struct tui_locator_window): Remove body.
2135
7134f2eb
TT
21362020-07-01 Tom Tromey <tom@tromey.com>
2137
2138 * tui/tui-regs.c (tui_data_window::display_registers_from)
2139 (tui_data_window::display_registers_from)
2140 (tui_data_window::first_data_item_displayed)
2141 (tui_data_window::delete_data_content_windows): Update.
2142 (tui_data_window::refresh_window, tui_data_window::no_refresh):
2143 Remove.
2144 (tui_data_window::check_register_values): Update.
2145 (tui_data_item_window::rerender): Add parameters. Update.
2146 (tui_data_item_window::refresh_window): Remove.
2147 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
2148 virtual.
2149 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
2150 tui_gen_win_info.
2151 <refresh_window, max_height, min_height>: Remove.
2152 <rerender>: Add parameters.
2153 <x, y, visible>: New members.
2154 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
2155 <m_item_width>: New member.
2156
22b7b041
TT
21572020-07-01 Tom Tromey <tom@tromey.com>
2158
2159 * tui/tui-regs.c (tui_data_window::show_register_group)
2160 (tui_data_window::check_register_values): Update.
2161 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
2162 from item_no.
2163
c9753adb
TT
21642020-07-01 Tom Tromey <tom@tromey.com>
2165
2166 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
2167 useless "if".
2168
9ab26b4a
TT
21692020-07-01 Tom Tromey <tom@tromey.com>
2170
2171 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2172 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
2173
e555083f
TT
21742020-07-01 Tom Tromey <tom@tromey.com>
2175
2176 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
2177 * tui/tui-winsource.h (enum tui_line_or_address_kind)
2178 (struct tui_line_or_address): Move from tui-data.h.
2179 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
2180 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
2181 (tui_cmd_window, tui_source_window_base, tui_source_window)
2182 (tui_disasm_window): Don't declare.
2183 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
2184 to tui-winsource.h.
2185 (SINGLE_KEY): Move to tui-stack.c.
2186
7a02bab7
TT
21872020-07-01 Tom Tromey <tom@tromey.com>
2188
2189 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
2190 std::string.
2191 * tui/tui-regs.c (class tab_expansion_file): New.
2192 (tab_expansion_file::write): New method.
2193 (tui_register_format): Change return type. Use
2194 tab_expansion_file.
2195 (tui_get_register, tui_data_window::display_registers_from)
2196 (tui_data_item_window::rerender): Update.
2197 * tui/tui-io.h (tui_expand_tabs): Don't declare.
2198 * tui/tui-io.c (tui_expand_tabs): Remove.
2199
ea68593b
TT
22002020-07-01 Tom Tromey <tom@tromey.com>
2201
2202 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
2203
a8caed5d
FS
22042020-07-01 Fangrui Song <maskray@google.com>
2205
2206 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
2207
9cdf9820
AKS
22082020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2209
2210 * dwarf2/read.c (set_die_type): Removed conditions to restrict
2211 forms for DW_AT_associated and DW_AT_allocated attributes,
2212 which is already checked in function attr_to_dynamic_prop.
2213
a1520ad8
TT
22142020-06-30 Tom Tromey <tromey@adacore.com>
2215
2216 * dwarf2/read.c (quirk_rust_enum): Correctly call
2217 alloc_rust_variant for default-less enum.
2218
5ac58899
TT
22192020-06-30 Tom Tromey <tromey@adacore.com>
2220
2221 PR build/26183:
2222 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
2223 gdb::to_string.
2224
19b187a9
SM
22252020-06-29 Simon Marchi <simon.marchi@efficios.com>
2226
2227 * gdbarch.sh (displaced_step_copy_insn): Update doc.
2228 * gdbarch.h: Re-generate.
2229
cd4c4c07
TT
22302020-06-28 Tom Tromey <tom@tromey.com>
2231
2232 * command.h (cmd_types): Remove.
2233 (cmd_type): Don't declare.
2234 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
2235 typedef.
2236 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
2237 * cli/cli-decode.c (cmd_type): Remove.
2238
05779d57
PA
22392020-06-27 Pedro Alves <palves@redhat.com>
2240
2241 * fork-child.c (prefork_hook): Adjust.
2242 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
2243 Delete.
2244 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
2245 * inferior.c (inferior::set_tty, inferior::tty): New methods.
2246 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
2247 Remove declarations.
2248 (struct inferior) <set_tty, tty>: New methods.
2249 (struct inferior) <terminal>: Rename to ...
2250 (struct inferior) <m_terminal>: ... this and make private.
2251 * main.c (captured_main_1): Adjust.
2252 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
2253 (mi_cmd_inferior_tty_show): Adjust.
2254 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
2255 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
2256
1776e3e5
NA
22572020-06-26 Nick Alcock <nick.alcock@oracle.com>
2258
2259 * configure.ac: Add --enable-libctf: handle --disable-static
2260 properly.
2261 * acinclude.m4: sinclude ../config/enable.m4.
2262 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2263 (LIBCTF): Substitute in.
2264 (CTF_DEPS): New, likewise.
2265 (CLIBS): libctf needs symbols from libbfd: move earlier.
2266 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2267 flags.
2268 * ctfread.c: Surround in ENABLE_LIBCTF.
2269 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2270 * configure: Regenerate.
2271 * config.in: Likewise.
2272
58373b80
SM
22732020-06-25 Simon Marchi <simon.marchi@efficios.com>
2274
2275 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2276
277474ee
SM
22772020-06-25 Simon Marchi <simon.marchi@efficios.com>
2278
2279 * inferior.h (struct inferior) <terminal>: Change type to
2280 gdb::unique_xmalloc_ptr<char>.
2281 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2282 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2283 field, adjust to unique pointer.
2284 (get_inferior_io_terminal): Adjust to unique pointer.
2285
6d74da72
AB
22862020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2287
2288 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2289 registers, not just the known core set of registers.
2290
2e52d038
AB
22912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2292
2293 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2294 fflags, frm, and fcsr registers.
2295 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2296 restore groups.
2297 (riscv_tdesc_unknown_reg): New function.
2298 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2299 tdesc_use_registers.
2300 * riscv-tdep.h (struct gdbarch_tdep): Add
2301 unknown_csrs_first_regnum, unknown_csrs_count,
2302 duplicate_fflags_regnum, duplicate_frm_regnum, and
2303 duplicate_fcsr_regnum fields.
2304
be64fd07
AB
23052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2306
2307 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2308 callback, use the callback (when not null) to help number unknown
2309 registers.
2310 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2311 (tdesc_use_registers): Add extra parameter to declaration.
2312
3b9fce96
AB
23132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2314
2315 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2316 in the file.
2317 (class riscv_pending_register_alias): Likewise.
2318 (riscv_register_feature::register_info): Change 'required_p' field
2319 to 'required', and change its type. Add 'check' member function.
2320 (riscv_register_feature::register_info::check): Define new member
2321 function.
2322 (riscv_xreg_feature): Change initialisation of 'required' field.
2323 (riscv_freg_feature): Likewise.
2324 (riscv_virtual_feature): Likewise.
2325 (riscv_csr_feature): Likewise.
2326 (riscv_check_tdesc_feature): Take extra parameter, the csr
2327 tdesc_feature, rewrite the function to use the new
2328 riscv_register_feature::register_info::check function.
2329 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2330
865bad26
AB
23312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2332
2333 * features/Makefile: Remove all references to the deleted files
2334 below.
2335 * features/riscv/32bit-csr.c: Deleted.
2336 * features/riscv/32bit-csr.xml: Deleted.
2337 * features/riscv/64bit-csr.c: Deleted.
2338 * features/riscv/64bit-csr.xml: Deleted.
2339 * features/riscv/rebuild-csr-xml.sh: Deleted.
2340
ed69cbc8
AB
23412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2342
2343 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2344 whitespace error for declaration of names member variable.
2345 (struct riscv_register_feature): Add new prefer_first_name member
2346 variable, and fix whitespace error in declaration of registers.
2347 (riscv_xreg_feature): Initialize prefer_first_name field.
2348 (riscv_freg_feature): Likewise.
2349 (riscv_virtual_feature): Likewise.
2350 (riscv_csr_feature): Likewise.
2351 (riscv_register_name): Expand on comments. Remove register name
2352 modifications for CSR and virtual registers.
2353
4445e8f5
AB
23542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2355
2356 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2357 errors.
2358
767a879e
AB
23592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2360
2361 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2362 riscv-opc.h.
2363 (class riscv_pending_register_alias): New class.
2364 (riscv_check_tdesc_feature): Take vector of pending aliases and
2365 populate it as appropriate.
2366 (riscv_setup_register_aliases): Delete.
2367 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2368 to riscv_check_tdesc_feature in all cases. Use the vector to
2369 create the register aliases.
2370
bb6e55f3
RO
23712020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2372
2373 * sol2-tdep.c (sol2_static_transform_name): Remove.
2374 (sol2_init_abi): Don't register it.
2375 * gdbarch.sh (static_transform_name): Remove.
2376 * gdbarch.c, gdbarch.h: Regenerate.
2377
2378 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2379 gdbarch_static_transform_name.
2380 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2381 * stabsread.c (define_symbol) <'X'>: Remove.
2382 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2383 handling.
2384 <'V'>: Likewise.
2385 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2386 <'S'>: Remove call to gdbarch_static_transform_name.
2387
c6d36836
RO
23882020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2389
2390 * procfs.c (procfs_pre_trace): New function.
2391 (procfs_target::create_inferior): Pass it to fork_inferior.
2392
a7e6196b
RO
23932020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2394
2395 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2396 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2397 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2398 sol2-tdep.o, sparc-sol2-tdep.o.
2399 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2400 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2401 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2402 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2403
d412e696
RO
24042020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2405
2406 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2407 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2408 Call sol2_init_abi.
2409 Remove calls to set_gdbarch_skip_solib_resolver,
2410 set_gdbarch_core_pid_to_str.
2411 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2412 (i386_sol2_static_transform_name): Remove.
2413 (i386_sol2_init_abi): Call sol2_init_abi.
2414 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2415 set_gdbarch_static_transform_name,
2416 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2417 Use sol2_sigtramp_p.
2418 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2419 (sol2_sigtramp_p): New function.
2420 (sol2_static_transform_name): New function.
2421 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2422 (sol2_init_abi): New function.
2423 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2424 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2425 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2426 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2427 (sparc_sol2_static_transform_name): Remove.
2428 (sparc32_sol2_init_abi): Call sol2_init_abi.
2429 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2430 set_gdbarch_static_transform_name,
2431 set_gdbarch_skip_solib_resolver,
2432 set_gdbarch_core_pid_to_str.
2433 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2434 (sparc_sol2_static_transform_name): Remove
2435 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2436 call sol2_sigtramp_p.
2437 (sparc64_sol2_init_abi): Call sol2_init_abi.
2438 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2439 set_gdbarch_static_transform_name,
2440 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2441
a8654e7d
PW
24422020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2443
2444 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2445 * exec.c (validate_exec_file): If from_tty, set both
2446 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2447 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2448 and from_tty, unconditionally ask a confirmation.
2449
caa7fd04
AB
24502020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2451
2452 * target-descriptions.c (tdesc_architecture_name): Protect against
2453 NULL pointer dereference.
2454 (maint_print_xml_tdesc_cmd): New function.
2455 (_initialize_target_descriptions): Register new 'maint print
2456 xml-tdesc' command and give it the filename completer.
2457 * NEWS: Mention new 'maint print xml-tdesc' command.
2458
fbf42f4e
AB
24592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2460
2461 * target-descriptions.c (class tdesc_compatible_info): New class.
2462 (struct target_desc): Change type of compatible vector.
2463 (tdesc_compatible_p): Update for change in type of
2464 target_desc::compatible.
2465 (tdesc_compatible_info_list): New function.
2466 (tdesc_compatible_info_arch_name): New function.
2467 (tdesc_add_compatible): Update for change in type of
2468 target_desc::compatible.
2469 (print_c_tdesc::visit_pre): Likewise.
2470
20821f4e
AB
24712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2472
2473 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2474 whitespace to underscore.
2475 (maint_print_c_tdesc_cmd): Use fake filename for target
2476 descriptions that came from the target.
2477 (_initialize_target_descriptions): Add filename command completion
2478 for 'maint print c-tdesc'.
2479
1fb5ee62
SM
24802020-06-23 Simon Marchi <simon.marchi@efficios.com>
2481
2482 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2483 lines.
2484
fc3ecb3e
SM
24852020-06-23 Simon Marchi <simon.marchi@efficios.com>
2486
2487 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2488 lines.
2489 (dwarf2_find_location_expression): Likewise.
2490 (call_site_parameter_matches): Likewise.
2491 (dwarf2_compile_expr_to_ax): Likewise.
2492 (disassemble_dwarf_expression): Likewise.
2493 (loclist_describe_location): Likewise.
2494
236ef034
PA
24952020-06-23 Pedro Alves <palves@redhat.com>
2496
2497 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2498 progspace-and-thread.h. Include scoped-mock-context.h instead.
2499 (register_to_value_test): Use scoped_mock_context.
2500 * regcache.c: Include "scoped-mock-context.h".
2501 (cooked_read_test): Don't error out if a target is already pushed.
2502 Use scoped_mock_context. Adjust.
2503 * scoped-mock-context.h: New file.
2504
39e7ecca
AB
25052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2506
2507 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2508 initializer.
2509 (ada_language::is_string_type_p): New member function.
2510 * c-lang.c (c_language_data): Delete la_is_string_type_p
2511 initializer.
2512 (cplus_language_data): Likewise.
2513 (asm_language_data): Likewise.
2514 (minimal_language_data): Likewise.
2515 * d-lang.c (d_language_data): Likewise.
2516 * f-lang.c (f_is_string_type_p): Delete function, implementation
2517 moved to f_language::is_string_type_p.
2518 (f_language_data): Delete la_is_string_type_p initializer.
2519 (f_language::is_string_type_p): New member function,
2520 implementation from f_is_string_type_p.
2521 * go-lang.c (go_is_string_type_p): Delete function, implementation
2522 moved to go_language::is_string_type_p.
2523 (go_language_data): Delete la_is_string_type_p initializer.
2524 (go_language::is_string_type_p): New member function,
2525 implementation from go_is_string_type_p.
2526 * language.c (language_defn::is_string_type_p): Define new member
2527 function.
2528 (default_is_string_type_p): Make static, add comment copied from
2529 header file.
2530 (unknown_language_data): Delete la_is_string_type_p initializer.
2531 (unknown_language::is_string_type_p): New member function.
2532 (auto_language_data): Delete la_is_string_type_p initializer.
2533 (auto_language::is_string_type_p): New member function.
2534 * language.h (language_data): Delete la_is_string_type_p field.
2535 (language_defn::is_string_type_p): Declare new function.
2536 (default_is_string_type_p): Delete desclaration, move comment to
2537 definition.
2538 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2539 moved to m2_language::is_string_type_p.
2540 (m2_language_data): Delete la_is_string_type_p initializer.
2541 (m2_language::is_string_type_p): New member function,
2542 implementation from m2_is_string_type_p.
2543 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2544 initializer.
2545 * opencl-lang.c (opencl_language_data): Likewise.
2546 * p-lang.c (pascal_is_string_type_p): Delete function,
2547 implementation moved to pascal_language::is_string_type_p.
2548 (pascal_language_data): Delete la_is_string_type_p initializer.
2549 (pascal_language::is_string_type_p): New member function,
2550 implementation from pascal_is_string_type_p.
2551 * rust-lang.c (rust_is_string_type_p): Delete function,
2552 implementation moved to rust_language::is_string_type_p.
2553 (rust_language_data): Delete la_is_string_type_p initializer.
2554 (rust_language::is_string_type_p): New member function,
2555 implementation from rust_is_string_type_p.
2556 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2557 is_string_type_p.
2558
4ffc13fb
AB
25592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2560
2561 * ada-lang.c (ada_language_data): Delete la_print_typedef
2562 initializer.
2563 (ada_language::print_typedef): New member function.
2564 * c-lang.c (c_language_data): Delete la_print_typedef 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_language_data): Likewise.
2570 (f_language::print_typedef): New member function.
2571 * go-lang.c (go_language_data): Delete la_print_typedef
2572 initializer.
2573 * language.c (language_defn::print_typedef): Define member
2574 function.
2575 (unknown_language_data): Delete la_print_typedef initializer.
2576 (unknown_language::print_typedef): New member function.
2577 (auto_language_data): Delete la_print_typedef initializer.
2578 (auto_language::print_typedef): New member function.
2579 * language.h (language_data): Delete la_print_typedef field.
2580 (language_defn::print_typedef): Declare new member function.
2581 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2582 (default_print_typedef): Delete declaration.
2583 * m2-lang.c (m2_language_data): Delete la_print_typedef
2584 initializer.
2585 (m2_language::print_typedef): New member function.
2586 * objc-lang.c (objc_language_data): Delete la_print_typedef
2587 initializer.
2588 * opencl-lang.c (opencl_language_data): Likewise.
2589 * p-lang.c (pascal_language_data): Likewise.
2590 (pascal_language::print_typedef): New member function.
2591 * rust-lang.c (rust_print_typedef): Delete function,
2592 implementation moved to rust_language::print_typedef.
2593 (rust_language): Delete la_print_typedef initializer.
2594 (rust_language::print_typedef): New member function,
2595 implementation from rust_print_typedef.
2596 * typeprint.c (default_print_typedef): Delete.
2597
d711ee67
AB
25982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2599
2600 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2601 (ada_language::printstr): New member function.
2602 * c-lang.c (c_language_data): Delete la_printstr initializer.
2603 (cplus_language_data): Likewise.
2604 (asm_language_data): Likewise.
2605 (minimal_language_data): Likewise.
2606 * d-lang.c (d_language_data): Likewise.
2607 * f-lang.c (f_printstr): Rename to f_language::printstr.
2608 (f_language_data): Delete la_printstr initializer.
2609 (f_language::printstr): New member function, implementation from
2610 f_printstr.
2611 * go-lang.c (go_language_data): Delete la_printstr initializer.
2612 * language.c (language_defn::printstr): Define new member
2613 function.
2614 (unk_lang_printstr): Delete.
2615 (unknown_language_data): Delete la_printstr initializer.
2616 (unknown_language::printstr): New member function.
2617 (auto_language_data): Delete la_printstr initializer.
2618 (auto_language::printstr): New member function.
2619 * language.h (language_data): Delete la_printstr field.
2620 (language_defn::printstr): Declare new member function.
2621 (LA_PRINT_STRING): Update call to printstr.
2622 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2623 (m2_language_data): Delete la_printstr initializer.
2624 (m2_language::printstr): New member function, implementation from
2625 m2_printstr.
2626 * objc-lang.c (objc_language_data): Delete la_printstr
2627 initializer.
2628 * opencl-lang.c (opencl_language_data): Likewise.
2629 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2630 (pascal_language_data): Delete la_printstr initializer.
2631 (pascal_language::printstr): New member function, implementation
2632 from pascal_printstr.
2633 * p-lang.h (pascal_printstr): Delete declaration.
2634 * rust-lang.c (rust_printstr): Update header comment.
2635 (rust_language_data): Delete la_printstr initializer.
2636 (rust_language::printstr): New member function.
2637
52b50f2c
AB
26382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2639
2640 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2641 (ada_language::printchar): New member function.
2642 * c-lang.c (c_language_data): Delete la_printchar initializer.
2643 (cplus_language_data): Likewise.
2644 (asm_language_data): Likewise.
2645 (minimal_language_data): Likewise.
2646 * d-lang.c (d_language_data): Likewise.
2647 * f-lang.c (f_printchar): Rename to f_language::printchar.
2648 (f_language_data): Delete la_printchar initializer.
2649 (f_language::printchar): New member function, implementation from
2650 f_printchar.
2651 * go-lang.c (go_language_data): Delete la_printchar initializer.
2652 * language.c (unk_lang_printchar): Delete.
2653 (language_defn::printchar): Define new member function.
2654 (unknown_language_data): Delete la_printchar initializer.
2655 (unknown_language::printchar): New member function.
2656 (auto_language_data): Delete la_printchar initializer.
2657 (auto_language::printchar): New member function.
2658 * language.h (language_data): Delete la_printchar field.
2659 (language_defn::printchar): Declare new member function.
2660 (LA_PRINT_CHAR): Update call to printchar.
2661 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2662 (m2_language::printchar): New member function.
2663 * objc-lang.c (objc_language_data): Delete la_printchar
2664 initializer.
2665 * opencl-lang.c (opencl_language_data): Likewise.
2666 * p-lang.c (pascal_language_data): Delete la_printchar
2667 initializer.
2668 (pascal_language::printchar): New member function.
2669 * rust-lang.c (rust_printchar): Rename to
2670 rust_language::printchar.
2671 (rust_language_data): Delete la_printchar initializer.
2672 (rust_language::printchar): New member function, implementation
2673 from rust_printchar.
2674
ec8cec5b
AB
26752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2676
2677 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2678 (ada_language_data): Delete la_emitchar initializer.
2679 (ada_language::emitchar): New member function, implementation from
2680 emit_char.
2681 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2682 (cplus_language_data): Likewise.
2683 (asm_language_data): Likewise.
2684 (minimal_language_data): Likewise.
2685 * d-lang.c (d_language_data): Likewise.
2686 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2687 (f_language_data): Delete la_emitchar initializer.
2688 (f_language::emitchar): New member function, implementation from
2689 f_emit_char.
2690 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2691 * language.c (unk_lang_emit_char): Delete.
2692 (language_defn::emitchar): New member function definition.
2693 (unknown_language_data): Delete la_emitchar initializer.
2694 (unknown_language::emitchar): New member function.
2695 (auto_language_data): Delete la_emitchar initializer.
2696 (auto_language::emitchar): New member function.
2697 * language.h (language_data): Delete la_emitchar field.
2698 (language_defn::emitchar): New member field declaration.
2699 (LA_EMIT_CHAR): Update call to emitchar.
2700 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2701 (m2_language_data): Delete la_emitchar initializer.
2702 (m2_language::emitchar): New member function, implementation from
2703 m2_emit_char.
2704 * objc-lang.c (objc_language_data): Delete la_emitchar
2705 initializer.
2706 * opencl-lang.c (opencl_language_data): Likewise.
2707 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2708 (pascal_language_data): Delete la_emitchar initializer.
2709 (pascal_language::emitchar): New member function, implementation
2710 from pascal_emit_char.
2711 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2712 (rust_language_data): Delete la_emitchar initializer.
2713 (rust_language::emitchar): New member function, implementation
2714 from rust_emitchar.
2715
1bf9c363
AB
27162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2717
2718 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2719 (ada_language_data): Delete la_post_parser initializer.
2720 (ada_language::post_parser): New member function.
2721 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2722 (cplus_language_data): Likewise.
2723 (asm_language_data): Likewise.
2724 (minimal_language_data): Likewise.
2725 * d-lang.c (d_language_data): Likewise.
2726 * f-lang.c (f_language_data): Likewise.
2727 * go-lang.c (go_language_data): Likewise.
2728 * language.c (unknown_language_data): Likewise.
2729 (auto_language_data): Likewise.
2730 * language.h (language_data): Delete la_post_parser field.
2731 (language_defn::post_parser): New member function.
2732 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2733 * objc-lang.c (objc_language_data): Likewise.
2734 * opencl-lang.c (opencl_language_data): Likewise.
2735 * p-lang.c (pascal_language_data): Likewise.
2736 * parse.c (parse_exp_in_context): Update call to post_parser.
2737 (null_post_parser): Delete definition.
2738 * parser-defs.h (null_post_parser): Delete declaration.
2739 * rust-lang.c (rust_language_data): Delete la_post_parser
2740 initializer.
2741
87afa652
AB
27422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2743
2744 * ada-lang.c (parse): Rename to ada_language::parser.
2745 (ada_language_data): Delete la_parser initializer.
2746 (ada_language::parser): New member function, implementation from
2747 parse.
2748 * c-lang.c (c_language_data): Delete la_parser initializer.
2749 (cplus_language_data): Likewise.
2750 (asm_language_data): Likewise.
2751 (minimal_language_data): Likewise.
2752 * d-lang.c (d_language_data): Likewise.
2753 (d_language::parser): New member function.
2754 * f-lang.c (f_language_data): Delete la_parser initializer.
2755 (f_language::parser): New member function.
2756 * go-lang.c (go_language_data): Delete la_parser initializer.
2757 (go_language::parser): New member function.
2758 * language.c (unk_lang_parser): Delete.
2759 (language_defn::parser): Define new member function.
2760 (unknown_language_data): Delete la_parser initializer.
2761 (unknown_language::parser): New member function.
2762 (auto_language_data): Delete la_parser initializer.
2763 (auto_language::parser): New member function.
2764 * language.h (language_data): Delete la_parser field.
2765 (language_defn::parser): Declare new member function.
2766 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2767 (m2_language::parser): New member function.
2768 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2769 * opencl-lang.c (opencl_language_data): Likewise.
2770 * p-lang.c (pascal_language_data): Likewise.
2771 (pascal_language::parser): New member function.
2772 * parse.c (parse_exp_in_context): Update call to parser.
2773 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2774 (rust_language::parser): New member function.
2775
37825800
AB
27762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2777
2778 * top.c (print_gdb_configuration): Print --with-python-libdir
2779 configuration value.
2780
5b860c93
PW
27812020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2782
2783 * NEWS: Mention change to the alias command.
2784
cf00cd6f
PW
27852020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2786
2787 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2788 (alias_command_completer)
2789 (make_alias_options_def_group): New functions.
2790 (alias_opts, alias_option_defs): New struct and array.
2791 (alias_usage_error): Update usage.
2792 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2793 Use option framework.
2794 (_initialize_cli_cmds): Update alias command help.
2795 Update aliases command help.
2796 (show_user):
2797 Add NULL for new default_args lookup_cmd argument.
2798 (valid_command_p): Rename to validate_aliased_command.
2799 Add NULL for new default_args lookup_cmd argument. Verify that the
2800 aliased_command has no default args.
2801 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2802 (lookup_cmd_1, lookup_cmd): New argument default_args.
2803 (add_alias_cmd):
2804 Add NULL for new default_args lookup_cmd argument.
2805 (print_help_for_command): Show default args under the layout
2806 alias some_alias = some_aliased_cmd some_alias_default_arg.
2807 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2808 xfree default_args in destructor.
2809 * cli/cli-script.c (process_next_line, do_define_command):
2810 Add NULL for new default_args lookup_cmd argument.
2811 * command.h: Declare new default_args argument in lookup_cmd
2812 and lookup_cmd_1.
2813 * completer.c (complete_line_internal_1):
2814 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2815 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2816 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2817 Likewise.
2818 * infcmd.c (_initialize_infcmd): Likewise.
2819 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2820 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2821 * python/py-param.c (add_setshow_generic): Likewise.
2822 * remote.c (_initialize_remote): Likewise.
2823 * top.c (execute_command): Prepend default_args if command has some.
2824 (set_verbose):
2825 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2826 * tracepoint.c (validate_actionline, encode_actions_1):
2827 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2828
bd920864
TBA
28292020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2830
2831 * jit.c (jit_read_descriptor): Use bool as the return type.
2832 (jit_breakpoint_re_set_internal): Use bool as the return type.
2833 Invert the return value logic; return true if the jit breakpoint
2834 has been successfully initialized.
2835 (jit_inferior_init): Update the call to
2836 jit_breakpoint_re_set_internal.
2837
f8098322
PA
28382020-06-22 Pedro Alves <palves@redhat.com>
2839
2840 PR gdb/25939
2841 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2842 Use the current inferior instead. Don't return
2843 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2844 wait again.
2845 * sol-thread.c (sol_thread_target::wait): Don't reference
2846 inferior_ptid.
2847 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2848 (sol_update_thread_list_callback): Use the current inferior's pid
2849 instead of inferior_ptid.
2850
196535a6
RO
28512020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2852
2853 * procfs.c: Cleanup many comments.
2854
2855 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2856 (AFTER_WATCHFLAG): Replace by value.
2857
2858 (MAIN_PROC_NAME_FORMAT): Inline ...
2859 (create_procinfo): ... here.
2860
2861 (procfs_debug_inferior): Remove SYS_exec handling.
2862 (syscall_is_exec): Likewise.
2863 (procfs_set_exec_trap): Likewise.
2864
2865 (syscall_is_lwp_exit): Inline in callers.
2866 (syscall_is_exit): Likewise.
2867 (syscall_is_exec): Likewise.
2868 (syscall_is_lwp_create): Likewise.
2869
2870 (invalidate_cache): Remove #if 0 code.
2871
2872 (make_signal_thread_runnable): Remove.
2873 (procfs_target::resume): Remove #if 0 code.
2874
cf6f3e86
RO
28752020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2876
2877 PR gdb/25939
2878 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2879 call ...
2880 (procfs_target::create_inferior): ... here.
2881
48e9cc84
PW
28822020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2883
2884 * exec.c (validate_exec_file): Ensure the build-id is up to
2885 date by calling reopen_exec_file (that checks file timestamp
2886 to decide to re-read the file).
2887
3922b302
PA
28882020-06-18 Pedro Alves <palves@redhat.com>
2889
2890 PR gdb/25412
2891 * gdbthread.h (delete_thread, delete_thread_silent)
2892 (find_thread_ptid): Update comments.
2893 * thread.c (current_thread_): New global.
2894 (is_current_thread): Move higher, and reimplement.
2895 (inferior_thread): Reimplement.
2896 (set_thread_exited): Use bool. Add assertions.
2897 (add_thread_silent): Simplify thread-reuse handling by always
2898 calling delete_thread.
2899 (delete_thread): Remove intro comment.
2900 (find_thread_ptid): Skip exited threads.
2901 (switch_to_thread_no_regs): Write to current_thread_.
2902 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2903 INFERIOR_PTID. Clear current_thread_.
2904
6dbdab44
PA
29052020-06-18 Pedro Alves <palves@redhat.com>
2906
2907 * aix-thread.c (pd_update): Use switch_to_thread.
2908
2da4b788
PA
29092020-06-18 Pedro Alves <palves@redhat.com>
2910
2911 * ravenscar-thread.c (ravenscar_thread_target): Update.
2912 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2913 (ravenscar_thread_target::add_active_thread): ... this. Don't
2914 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2915 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2916
50838d1b
PA
29172020-06-18 Pedro Alves <palves@redhat.com>
2918
2919 * nat/windows-nat.c (current_windows_thread): Remove.
2920 * nat/windows-nat.h (current_windows_thread): Remove.
2921 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2922 Adjust.
2923 (display_selectors): Adjust to fetch the current
2924 windows_thread_info based on inferior_ptid.
2925 (fake_create_process): No longer write to current_windows_thread.
2926 (windows_nat_target::get_windows_debug_event):
2927 Don't set inferior_ptid or current_windows_thread.
2928 (windows_nat_target::wait): Adjust to not rely on
2929 current_windows_thread.
2930 (do_initial_windows_stuff): Now a method of windows_nat_target.
2931 Switch to the last_ptid thread.
2932 (windows_nat_target::attach): Adjust.
2933 (windows_nat_target::detach): Use switch_to_no_thread instead of
2934 writing to inferior_ptid directly.
2935 (windows_nat_target::create_inferior): Adjust.
2936
31ce04e9
PA
29372020-06-18 Pedro Alves <palves@redhat.com>
2938
2939 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2940
1ee1a363
PA
29412020-06-18 Pedro Alves <palves@redhat.com>
2942
2943 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2944 after creating it, instead of writing to inferior_ptid. Don't
2945 write to inferior_ptid.
2946
6d350754
PA
29472020-06-18 Pedro Alves <palves@redhat.com>
2948
2949 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2950
5d971d48
PA
29512020-06-18 Pedro Alves <palves@redhat.com>
2952
2953 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2954 it, instead of writing to inferior_ptid.
2955
86e57d1b
PA
29562020-06-18 Pedro Alves <palves@redhat.com>
2957
2958 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2959 to inferior_ptid.
2960
f2e1c129
PA
29612020-06-18 Pedro Alves <palves@redhat.com>
2962
2963 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2964 instead of writing to inferior_ptid directly.
2965
60db1b85
PA
29662020-06-18 Pedro Alves <palves@redhat.com>
2967
2968 * corelow.c (core_target::close): Use switch_to_no_thread instead
2969 of writing to inferior_ptid directly.
2970 (add_to_thread_list, core_target_open): Use switch_to_thread
2971 instead of writing to inferior_ptid directly.
2972
fe7d6a8d
PA
29732020-06-18 Pedro Alves <palves@redhat.com>
2974
2975 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2976 inferior_ptid.
2977 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2978 inferior_ptid.
2979 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2980 inferior_ptid directly.
2981 (darwin_nat_target::init_thread_list): Switch to thread, instead
2982 of writing to inferior_ptid.
2983 (darwin_nat_target::attach): Don't write to inferior_ptid.
2984 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2985
975f8708
PA
29862020-06-18 Pedro Alves <palves@redhat.com>
2987
2988 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2989 thread.
2990 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2991 Instead use switch_to_thread.
2992 (gnu_nat_target::detach): Use switch_to_no_thread
2993 instead of writing to inferior_ptid directly. Used passed-in
2994 inferior instead of looking up the inferior by pid.
2995
1a204730
PA
29962020-06-18 Pedro Alves <palves@redhat.com>
2997
2998 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2999 inferior_ptid.
3000
ebe84f23
PA
30012020-06-18 Pedro Alves <palves@redhat.com>
3002
3003 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
3004 inferior_ptid.
3005 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
3006 thread.
3007 (nto_procfs_target::detach): Avoid referencing
3008 inferior_ptid. Use switch_to_no_thread instead of writing to
3009 inferior_ptid directly.
3010 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
3011 instead of writing to inferior_ptid directly.
3012 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
3013 to thread.
3014
191f02e5
PA
30152020-06-18 Pedro Alves <palves@redhat.com>
3016
3017 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
3018 after creating it, instead of writing to inferior_ptid.
3019 (gdbsim_target_open): Use switch_to_no_thread instead of writing
3020 to inferior_ptid directly.
3021 (gdbsim_target::wait): Don't write to inferior_ptid.
3022
0ac55310
PA
30232020-06-18 Pedro Alves <palves@redhat.com>
3024
3025 * remote.c (remote_target::remote_notice_new_inferior): Use
3026 switch_to_thread instead of writing to inferior_ptid directly.
3027 (remote_target::add_current_inferior_and_thread): Use
3028 switch_to_no_thread instead of writing to inferior_ptid directly.
3029 (extended_remote_target::attach): Use switch_to_inferior_no_thread
3030 and switch_to_thread instead of using set_current_inferior or
3031 writing to inferior_ptid directly.
3032
5233f39b
PA
30332020-06-18 Pedro Alves <palves@redhat.com>
3034
3035 * tracectf.c (ctf_target_open): Switch to added thread instead of
3036 writing to inferior_ptid directly.
3037 (ctf_target::close): Use switch_to_no_thread instead of writing to
3038 inferior_ptid directly.
3039
087e161b
PA
30402020-06-18 Pedro Alves <palves@redhat.com>
3041
3042 * tracefile-tfile.c (tfile_target_open): Don't write to
3043 inferior_ptid directly, instead switch to added thread.
3044 (tfile_target::close): Use switch_to_no_thread instead of writing
3045 to inferior_ptid directly.
3046
7fb43e53
PA
30472020-06-18 Pedro Alves <palves@redhat.com>
3048
3049 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
3050 (procfs_target::detach): Use switch_to_no_thread
3051 instead of writing to inferior_ptid directly.
3052 (do_attach): Change return type to void. Switch to the added
3053 thread.
3054 (procfs_target::create_inferior): Switch to the added thread.
3055 (procfs_do_thread_registers): Don't write to inferior_ptid.
3056
18493a00
PA
30572020-06-18 Pedro Alves <palves@redhat.com>
3058
3059 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
3060 of writing to inferior_ptid.
3061 (scoped_restore_exited_inferior): Delete.
3062 (handle_vfork_child_exec_or_exit): Simplify using
3063 scoped_restore_current_pspace_and_thread. Use switch_to_thread
3064 instead of writing to inferior_ptid.
3065 (THREAD_STOPPED_BY): Delete.
3066 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3067 (thread_stopped_by_hw_breakpoint): Delete.
3068 (save_waitstatus): Use
3069 scoped_restore_current_thread+switch_to_thread, and call
3070 target_stopped_by_watchpoint instead of
3071 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
3072 instead of thread_stopped_by_sw_breakpoint, and
3073 target_stopped_by_hw_breakpoint instead of
3074 thread_stopped_by_hw_breakpoint.
3075 (handle_inferior_event)
3076 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
3077 inferior_ptid directly, nor
3078 set_current_inferior/set_current_program_space. Use
3079 switch_to_thread / switch_to_inferior_no_thread instead.
3080
a0776b13
PA
30812020-06-18 Pedro Alves <palves@redhat.com>
3082
3083 * target.c (generic_mourn_inferior): Use switch_to_no_thread
3084 instead of writing to inferior_ptid.
3085
6155c136
PA
30862020-06-18 Pedro Alves <palves@redhat.com>
3087
3088 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
3089 added thread.
3090 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
3091 to the added thread.
3092 (inf_ptrace_target::detach_success): Use switch_to_no_thread
3093 instead of writing to inferior_ptid.
3094
c5316fc6
PA
30952020-06-18 Pedro Alves <palves@redhat.com>
3096
3097 * gdbarch-selftests.c: Include "progspace-and-thread.h".
3098 (register_to_value_test): Mock a program_space too. Heap-allocate
3099 the address space. Don't write to inferior_ptid. Use
3100 switch_to_thread instead.
3101
8df01799
PA
31022020-06-18 Pedro Alves <palves@redhat.com>
3103
3104 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
3105 Delete.
3106 (find_signalled_thread()): New, factored out from
3107 linux_make_corefile_notes and adjusted to handle exited threads.
3108 (linux_make_corefile_notes): Adjust to use the new
3109 find_signalled_thread.
3110
41792d68
PA
31112020-06-18 Pedro Alves <palves@redhat.com>
3112
3113 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
3114 of saving/restoring inferior_ptid.
3115
612f258a
TT
31162020-06-17 Tom Tromey <tom@tromey.com>
3117
3118 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
3119 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
3120 declare.
3121 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
3122
efb763a5
SM
31232020-06-15 Simon Marchi <simon.marchi@efficios.com>
3124
3125 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
3126 of partial symtabs.
3127
2951f6c0
SM
31282020-06-17 Simon Marchi <simon.marchi@efficios.com>
3129
3130 * regformats/reg-arm.dat: Remove.
3131 * regformats/reg-bfin.dat: Remove.
3132 * regformats/reg-cris.dat: Remove.
3133 * regformats/reg-crisv32.dat: Remove.
3134 * regformats/reg-m32r.dat: Remove.
3135 * regformats/reg-tilegx.dat: Remove.
3136 * regformats/reg-tilegx32.dat: Remove.
3137
7d458ea5
SM
31382020-06-17 Simon Marchi <simon.marchi@efficios.com>
3139
3140 * features/Makefile (WHICH): Remove arm files.
3141 * regformats/arm/arm-with-iwmmxt.dat: Remove.
3142 * regformats/arm/arm-with-neon.dat: Remove.
3143 * regformats/arm/arm-with-vfpv2.dat: Remove.
3144 * regformats/arm/arm-with-vfpv3.dat: Remove.
3145
3af96c0d
SM
31462020-06-17 Simon Marchi <simon.marchi@efficios.com>
3147
3148 * features/Makefile (XMLTOC): Remove rx.xml.
3149
b25e22fd
PA
31502020-06-17 Pedro Alves <palves@redhat.com>
3151
3152 * gdbthread.h (thread_control_state) <trap_expected> Update
3153 comments.
3154
a78a19b1
AB
31552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3156
3157 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
3158 ada_language::lookup_symbol_nonlocal.
3159 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
3160 (ada_language::lookup_symbol_nonlocal): New member function,
3161 implementation from ada_lookup_symbol_nonlocal.
3162 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
3163 initializer.
3164 (cplus_language_data): Delete la_lookup_symbol_nonlocal
3165 initializer.
3166 (cplus_language::lookup_symbol_nonlocal): New member function.
3167 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
3168 (minimal_language_data) Likewise.
3169 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
3170 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
3171 initializer.
3172 (d_language::lookup_symbol_nonlocal): New member function.
3173 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
3174 initializer.
3175 (f_language::lookup_symbol_nonlocal): New member function.
3176 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
3177 initializer.
3178 * language.c (unknown_language_data): Likewise.
3179 (auto_language_data): Likewise.
3180 * language.h (language_data): Delete la_lookup_symbol_nonlocal
3181 field.
3182 (language_defn::lookup_symbol_nonlocal): New member function.
3183 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
3184 initializer.
3185 * objc-lang.c (objc_language_data): Likewise.
3186 * opencl-lang.c (opencl_language_data): Likewise.
3187 * p-lang.c (pascal_language_data): Likewise.
3188 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
3189 rust_language::lookup_symbol_nonlocal.
3190 (rust_language_data): Delete la_lookup_symbol_nonlocal
3191 initializer.
3192 (rust_language::lookup_symbol_nonlocal): New member function,
3193 implementation from rust_lookup_symbol_nonlocal.
3194 * symtab.c (lookup_symbol_aux): Update call to
3195 lookup_symbol_nonlocal.
3196 (basic_lookup_symbol_nonlocal): Rename to...
3197 (language_defn::lookup_symbol_nonlocal): ...this, and update
3198 header comment. Remove language_defn parameter, and replace with
3199 uses of `this'.
3200 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
3201
ebe2334e
AB
32022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3203
3204 * ada-lang.c (ada_language_data): Delete la_value_print_inner
3205 initializer.
3206 (ada_language::value_print_inner): New member function.
3207 * c-lang.c (c_language_data): Delete la_value_print_inner
3208 initializer.
3209 (cplus_language_data): Likewise.
3210 (asm_language_data): Likewise.
3211 (minimal_language_data): Likewise.
3212 * d-lang.c (d_language_data): Likewise.
3213 (d_language::value_print_inner): New member function.
3214 * f-lang.c (f_language_data): Delete la_value_print_inner
3215 initializer.
3216 (f_language::value_print_inner): New member function.
3217 * f-lang.h (f_value_print_innner): Rename to...
3218 (f_value_print_inner): ...this (note spelling of 'inner').
3219 * f-valprint.c (f_value_print_innner): Rename to...
3220 (f_value_print_inner): ...this (note spelling of 'inner').
3221 * go-lang.c (go_language_data): Delete la_value_print_inner
3222 initializer.
3223 (go_language::value_print_inner): New member function.
3224 * language.c (language_defn::value_print_inner): Define new member
3225 function.
3226 (unk_lang_value_print_inner): Delete.
3227 (unknown_language_data): Delete la_value_print_inner initializer.
3228 (unknown_language::value_print_inner): New member function.
3229 (auto_language_data): Delete la_value_print_inner initializer.
3230 (auto_language::value_print_inner): New member function.
3231 * language.h (language_data): Delete la_value_print_inner field.
3232 (language_defn::value_print_inner): Delcare new member function.
3233 * m2-lang.c (m2_language_data): Delete la_value_print_inner
3234 initializer.
3235 (m2_language::value_print_inner): New member function.
3236 * objc-lang.c (objc_language_data): Delete la_value_print_inner
3237 initializer.
3238 * opencl-lang.c (opencl_language_data): Likewise.
3239 * p-lang.c (pascal_language_data): Likewise.
3240 (pascal_language::value_print_inner): New member function.
3241 * rust-lang.c (rust_language_data): Delete la_value_print_inner
3242 initializer.
3243 (rust_language::value_print_inner): New member function.
3244 * valprint.c (do_val_print): Update call to value_print_inner.
3245
a1d1fa3e
AB
32462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3247
3248 * ada-lang.c (ada_language_data): Delete la_value_print
3249 initializer.
3250 (ada_language::value_print): New member function.
3251 * c-lang.c (c_language_data): Delete la_value_print initializer.
3252 (cplus_language_data): Likewise.
3253 (asm_language_data): Likewise.
3254 (minimal_language_data): Likewise.
3255 * d-lang.c (d_language_data): Likewise.
3256 * f-lang.c (f_language_data): Likewise.
3257 * go-lang.c (go_language_data): Likewise.
3258 * language.c (unk_lang_value_print): Delete.
3259 (language_defn::value_print): Define new member function.
3260 (unknown_language_data): Delete la_value_print initializer.
3261 (unknown_language::value_print): New member function.
3262 (auto_language_data): Delete la_value_print initializer.
3263 (auto_language::value_print): New member function.
3264 * language.h (language_data): Delete la_value_print field.
3265 (language_defn::value_print): Declare new member function.
3266 (LA_VALUE_PRINT): Update call to value_print.
3267 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3268 * objc-lang.c (objc_language_data): Likewise.
3269 * opencl-lang.c (opencl_language_data): Likewise.
3270 * p-lang.c (pascal_language_data): Likewise.
3271 (pascal_language::value_print): New member function.
3272 * rust-lang.c (rust_language_data): Delete la_value_print
3273 initializer.
3274
f16a9f57
AB
32752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3276
3277 * ada-lang.c (ada_watch_location_expression): Rename to
3278 ada_language::watch_location_expression.
3279 (ada_language_data): Delete la_watch_location_expression
3280 initializer.
3281 (ada_language::watch_location_expression): New member function,
3282 implementation from ada_watch_location_expression.
3283 * breakpoint.c (watch_command_1): Update call to
3284 watch_location_expression.
3285 * c-lang.c (c_watch_location_expression): Rename to
3286 language_defn::watch_location_expression.
3287 (c_language_data): Delete la_watch_location_expression
3288 initializer.
3289 (cplus_language_data): Likewise.
3290 (asm_language_data): Likewise.
3291 (minimal_language_data): Likewise.
3292 * c-lang.h (c_watch_location_expression): Delete declaration.
3293 * d-lang.c (d_language_data): Delete la_watch_location_expression
3294 initializer.
3295 * f-lang.c (f_language_data): Likewise.
3296 * go-lang.c (go_language_data): Likewise.
3297 * language.c (language_defn::watch_location_expression): Member
3298 function implementation from c_watch_location_expression.
3299 (unknown_language_data): Delete la_watch_location_expression
3300 initializer.
3301 (auto_language_data): Likewise.
3302 * language.h (language_data): Delete la_watch_location_expression
3303 field.
3304 (language_defn::watch_location_expression): Declare new member
3305 function.
3306 * m2-lang.c (m2_language_data): Delete
3307 la_watch_location_expression initializer.
3308 * objc-lang.c (objc_language_data): Likewise.
3309 * opencl-lang.c (opencl_language_data): Likewise.
3310 * p-lang.c (pascal_language_data): Likewise.
3311 * rust-lang.c (rust_watch_location_expression): Rename to
3312 rust_language::watch_location_expression.
3313 (rust_language_data): Delete la_watch_location_expression
3314 initializer.
3315 (rust_language::watch_location_expression): New member function,
3316 implementation from rust_watch_location_expression.
3317
7e56227d
AB
33182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3319
3320 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3321 ada_language::collect_symbol_completion_matches.
3322 (ada_language_data): Delete la_collect_symbol_completion_matches
3323 initializer.
3324 (ada_language::collect_symbol_completion_matches): New member
3325 function, implementation from
3326 ada_collect_symbol_completion_matches.
3327 * c-lang.c (c_language_data): Delete
3328 la_collect_symbol_completion_matches initializer.
3329 (cplus_language_data): Likewise.
3330 (asm_language_data): Likewise.
3331 (minimal_language_data): Likewise.
3332 * d-lang.c (d_language_data): Likewise.
3333 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3334 f_language::collect_symbol_completion_matches.
3335 (f_language_data): Delete la_collect_symbol_completion_matches
3336 initializer.
3337 (f_language::collect_symbol_completion_matches) New member
3338 function, implementation from f_collect_symbol_completion_matches.
3339 * go-lang.c (go_language_data): Delete
3340 la_collect_symbol_completion_matches initializer.
3341 * language.c (unknown_language_data): Likewise.
3342 (auto_language_data): Likewise.
3343 * language.h (language_data): Delete
3344 la_collect_symbol_completion_matches field.
3345 (language_defn::collect_symbol_completion_matches): New member
3346 function.
3347 * m2-lang.c (m2_language_data): Delete
3348 la_collect_symbol_completion_matches initializer.
3349 * objc-lang.c (objc_language_data): Likewise.
3350 * opencl-lang.c (opencl_language_data): Likewise.
3351 * p-lang.c (pascal_language_data): Likewise.
3352 * rust-lang.c (rust_language_data): Likewise.
3353 * symtab.c (default_collect_symbol_completion_matches): Delete.
3354 (collect_symbol_completion_matches): Update call to
3355 collect_symbol_completion_matches.
3356 (collect_symbol_completion_matches_type): Likewise.
3357 * symtab.h (default_collect_symbol_completion_matches): Delete
3358 declaration.
3359
53fc67f8
AB
33602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3361
3362 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3363 (ada_language_data): Delete la_word_break_characters initializer.
3364 (ada_language::word_break_characters): New member function.
3365 * c-lang.c (c_language_data): Delete la_word_break_characters
3366 initializer.
3367 (cplus_language_data): Likewise.
3368 (asm_language_data): Likewise.
3369 (minimal_language_data): Likewise.
3370 * completer.c: Update global comment.
3371 (advance_to_expression_complete_word_point): Update call to
3372 word_break_characters.
3373 (complete_files_symbols): Likewise.
3374 (complete_line_internal_1): Likewise.
3375 (default_completer_handle_brkchars): Likewise.
3376 (skip_quoted_chars): Likewise.
3377 * d-lang.c (d_language_data): Delete la_word_break_characters
3378 initializer.
3379 * f-lang.c (f_word_break_characters): Delete.
3380 (f_language_data): Delete la_word_break_characters initializer.
3381 (f_language::word_break_characters): New member function.
3382 * go-lang.c (go_language_data): Delete la_word_break_characters
3383 initializer.
3384 * language.c (unknown_language_data): Likewise.
3385 (auto_language_data): Likewise.
3386 * language.h (default_word_break_characters): Move declaration to
3387 earlier in the file.
3388 (language_data): Delete la_word_break_characters field.
3389 (language_defn::word_break_characters): New member function.
3390 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3391 initializer.
3392 * objc-lang.c (objc_language_data): Likewise.
3393 * opencl-lang.c (opencl_language_data): Likewise.
3394 * p-lang.c (pascal_language_data): Likewise.
3395 * rust-lang.c (rust_language_data): Likewise.
3396
c9debfb9
AB
33972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3398
3399 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3400 (ada_language_data): Delete la_get_symbol_name_matcher
3401 initializer.
3402 (language_defn::get_symbol_name_matcher_inner): New member
3403 function.
3404 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3405 initializer.
3406 (cplus_language_data): Likewise.
3407 (cplus_language::get_symbol_name_matcher_inner): New member
3408 function.
3409 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3410 (minimal_language_data): Likewise.
3411 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3412 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3413 initializer.
3414 * dictionary.c (iter_match_first_hashed): Update call to
3415 get_symbol_name_matcher.
3416 (iter_match_next_hashed): Likewise.
3417 (iter_match_next_linear): Likewise.
3418 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3419 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3420 initializer.
3421 (f_language::get_symbol_name_matcher_inner): New member function.
3422 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3423 initializer.
3424 * language.c (default_symbol_name_matcher): Update header comment,
3425 make static.
3426 (language_defn::get_symbol_name_matcher): New definition.
3427 (language_defn::get_symbol_name_matcher_inner): Likewise.
3428 (get_symbol_name_matcher): Delete.
3429 (unknown_language_data): Delete la_get_symbol_name_matcher
3430 initializer.
3431 (auto_language_data): Likewise.
3432 * language.h (language_data): Delete la_get_symbol_name_matcher
3433 field.
3434 (language_defn::get_symbol_name_matcher): New member function.
3435 (language_defn::get_symbol_name_matcher_inner): Likewise.
3436 (default_symbol_name_matcher): Delete declaration.
3437 * linespec.c (find_methods): Update call to
3438 get_symbol_name_matcher.
3439 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3440 initializer.
3441 * minsyms.c (lookup_minimal_symbol): Update call to
3442 get_symbol_name_matcher.
3443 (iterate_over_minimal_symbols): Likewise.
3444 * objc-lang.c (objc_language_data): Delete
3445 la_get_symbol_name_matcher initializer.
3446 * opencl-lang.c (opencl_language_data): Likewise.
3447 * p-lang.c (pascal_language_data): Likewise.
3448 * psymtab.c (psymbol_name_matches): Update call to
3449 get_symbol_name_matcher.
3450 * rust-lang.c (rust_language_data): Delete
3451 la_get_symbol_name_matcher initializer.
3452 * symtab.c (symbol_matches_search_name): Update call to
3453 get_symbol_name_matcher.
3454 (compare_symbol_name): Likewise.
3455
9a49ad8c
AB
34562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3457
3458 * ada-lang.c (ada_language_data): Delete la_compute_program
3459 initializer.
3460 * c-lang.c (c_language_data): Likewise.
3461 (c_language::compute_program): New member function.
3462 (cplus_language_data): Delete la_compute_program initializer.
3463 (cplus_language::compute_program): New member function.
3464 (asm_language_data): Delete la_compute_program initializer.
3465 (minimal_language_data): Likewise.
3466 * c-lang.h (c_compute_program): Update comment.
3467 (cplus_compute_program): Likewise.
3468 * compile/compile-c-support.c (c_compute_program): Likewise.
3469 (cplus_compute_program): Likewise.
3470 * compile/compile.c (compile_to_object): Update call to
3471 la_compute_program.
3472 * d-lang.c (d_language_data): Delete la_compute_program
3473 initializer.
3474 * f-lang.c (f_language_data): Likewise.
3475 * go-lang.c (go_language_data): Likewise.
3476 * language.c (unknown_language_data): Likewise.
3477 (auto_language_data): Likewise.
3478 * language.h (language_data): Delete la_compute_program field.
3479 (language_defn::compute_program): New member function.
3480 * m2-lang.c (m2_language_data): Delete la_compute_program
3481 initializer.
3482 * objc-lang.c (objc_language_data): Likewise.
3483 * opencl-lang.c (opencl_language_data): Likewise.
3484 * p-lang.c (pascal_language_data): Likewise.
3485 * rust-lang.c (rust_language_data): Likewise.
3486
eff93b4d
AB
34872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3488
3489 * ada-lang.c (ada_language_data) Delete
3490 la_class_name_from_physname initializer.
3491 * c-lang.c (c_language_data): Likewise.
3492 (cplus_language_data): Likewise.
3493 (cplus_language::class_name_from_physname): New member function.
3494 (asm_language_data): Delete la_class_name_from_physname
3495 initializer.
3496 (minimal_language_data): Likewise.
3497 * d-lang.c (d_language_data): Likewise.
3498 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3499 method on language_defn class.
3500 (guess_full_die_structure_name): Likewise.
3501 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3502 initializer.
3503 * go-lang.c (go_language_data): Likewise.
3504 * language.c (language_class_name_from_physname): Delete.
3505 (unk_lang_class_name): Delete.
3506 (unknown_language_data): Delete la_class_name_from_physname
3507 initializer.
3508 (auto_language_data): Likewise.
3509 * language.h (language_data): Delete la_class_name_from_physname
3510 field.
3511 (language_defn::class_name_from_physname): New function.
3512 (language_class_name_from_physname): Delete declaration.
3513 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3514 initializer.
3515 * objc-lang.c (objc_language_data): Likewise.
3516 * opencl-lang.c (opencl_language_data): Likewise.
3517 * p-lang.c (pascal_language_data): Likewise.
3518 * rust-lang.c (rust_language_data): Likewise.
3519
de543742
TT
35202020-06-16 Tom Tromey <tom@tromey.com>
3521
3522 * tui/tui-data.h (STATUS_NAME): New macro.
3523 * tui/tui-layout.c (tui_remove_some_windows)
3524 (initialize_known_windows, tui_register_window)
3525 (tui_layout_split::remove_windows, initialize_layouts)
3526 (tui_new_layout_command): Don't use hard-coded window names.
3527
a350efd4
TT
35282020-06-16 Tom Tromey <tom@tromey.com>
3529
3530 PR tui/25348:
3531 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3532 tui_initialize_readline. Only run once. Call rl_initialize.
3533 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3534 tui_initialize_readline.
3535 * tui/tui-io.c (tui_setup_io): Call
3536 tui_ensure_readline_initialized.
3537 * tui/tui-interp.c (tui_interp::init): Update.
3538
39ec0490
TT
35392020-06-16 Tom Tromey <tom@tromey.com>
3540
3541 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3542 Also preserve the status window.
3543
d2d1ea20
TT
35442020-06-16 Tom Tromey <tom@tromey.com>
3545
3546 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3547 where m_window==nullptr.
3548
66920317
TT
35492020-06-15 Tom Tromey <tromey@adacore.com>
3550
3551 * windows-nat.c (windows_nat::handle_output_debug_string):
3552 Update.
3553 (windows_nat::handle_ms_vc_exception): Update.
3554 * target.h (target_read_string): Change API.
3555 * target.c (target_read_string): Change API.
3556 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3557 Update.
3558 * solib-frv.c (frv_current_sos): Update.
3559 * solib-dsbt.c (dsbt_current_sos): Update.
3560 * solib-darwin.c (darwin_current_sos): Update.
3561 * linux-thread-db.c (inferior_has_bug): Update.
3562 * expprint.c (print_subexp_standard): Update.
3563 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3564 (ada_exception_message_1): Update.
3565
a5d871dd
TT
35662020-06-15 Tom Tromey <tromey@adacore.com>
3567
3568 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3569
670e35fa
TT
35702020-06-15 Tom Tromey <tromey@adacore.com>
3571
3572 * valprint.c (read_string): Update comment.
3573 * target.c (MIN): Remove.
3574 (target_read_string): Rewrite.
3575
f5272a3b
TT
35762020-06-15 Tom Tromey <tromey@adacore.com>
3577
3578 * corefile.c (read_memory_string): Remove.
3579 * ada-valprint.c (ada_value_print_ptr): Update.
3580 * ada-lang.h (ada_tag_name): Change return type.
3581 * ada-lang.c (type_from_tag): Update.
3582 (ada_tag_name_from_tsd): Change return type. Use
3583 target_read_string.
3584 (ada_tag_name): Likewise.
3585 * gdbcore.h (read_memory_string): Don't declare.
3586
2c074f49
HD
35872020-06-14 Hannes Domani <ssbssa@yahoo.de>
3588
3589 * symtab.c (rbreak_command): Ignore Windows drive colon.
3590
6a17d503
SM
35912020-06-12 Simon Marchi <simon.marchi@efficios.com>
3592
3593 * NEWS: Mention removed GDBserver host support.
3594
453c733f
NC
35952020-06-12 Nelson Chu <nelson.chu@sifive.com>
3596
3597 * features/riscv/rebuild-csr-xml.sh: Updated.
3598
2b4e6a3f
TT
35992020-06-11 Tom Tromey <tom@tromey.com>
3600
3601 PR gdb/18318:
3602 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3603
4412332f
JG
36042020-06-09 Jonny Grant <jg@jguk.org>
36052020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3606
3607 * main.c (captured_main_1): Don't print new line after help.
3608 (print_gdb_help): add mailing list and IRC channel information
3609 to --help. Add new lines between items in the footer. Remove
3610 quotes around bug url.
3611
2f33032a
KS
36122020-06-11 Keith Seitz <keiths@redhat.com>
3613
3614 PR gdb/21356
3615 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3616 Resolve typedefs for type length calculations.
3617
7ab96794
TV
36182020-06-10 Tom de Vries <tdevries@suse.de>
3619
3620 PR ada/24713
3621 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3622 (write_psymbols): Enable .gdb_index for ada.
3623 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3624 ada.
3625
e5f3ece2
TV
36262020-06-10 Tom de Vries <tdevries@suse.de>
3627
3628 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3629 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3630 namei" instead of "const char *name" argument.
3631 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3632 dw2_symtab_iter_init.
3633
940da03e
SM
36342020-06-08 Simon Marchi <simon.marchi@efficios.com>
3635
3636 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3637 to use type::field and field::type instead.
3638
b6cdac4b
SM
36392020-06-08 Simon Marchi <simon.marchi@efficios.com>
3640
3641 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3642 to use field::type instead.
3643
5d14b6e5
SM
36442020-06-08 Simon Marchi <simon.marchi@efficios.com>
3645
3646 * gdbtypes.h (struct field) <type, set_type>: New methods.
3647 Rename `type` field to...
3648 <m_type>: ... this. Change references throughout to use type or
3649 set_type methods.
3650 (FIELD_TYPE): Use field::type. Change call sites that modify
3651 the field's type to use field::set_type instead.
3652
3d967001
SM
36532020-06-08 Simon Marchi <simon.marchi@efficios.com>
3654
3655 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3656 to use type::index_type instead.
3657
262abc0d
SM
36582020-06-08 Simon Marchi <simon.marchi@efficios.com>
3659
3660 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3661 methods.
3662 (TYPE_INDEX_TYPE): Use type::index_type.
3663 * gdbtypes.c (create_array_type_with_stride): Likewise.
3664
82836c92
TT
36652020-06-07 Tom Tromey <tom@tromey.com>
3666
3667 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3668 parameter.
3669 (generic_value_print): Update.
3670
940dace9
AB
36712020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3672
3673 Revert commit 982a38f60b0.
3674 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3675
982a38f6
AB
36762020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3677
3678 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3679 avoid use after free.
3680
82f06518
TV
36812020-06-05 Tom de Vries <tdevries@suse.de>
3682
3683 * NEWS: Fix typos.
3684
f8c41851
SM
36852020-06-04 Simon Marchi <simon.marchi@efficios.com>
3686
3687 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3688 the per_bfd object.
3689 (dwarf2_read_debug_names): Likewise.
3690 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3691 object when re-using a per_bfd object with an index.
3692
f9b5d5ea
TV
36932020-06-03 Tom de Vries <tdevries@suse.de>
3694
3695 PR symtab/26046
3696 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3697 children for C++.
3698 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3699 DW_TAG_subprogram.
3700
f6eee2d0
AB
37012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3702
3703 * ada-lang.c (ada_language_data): Delete skip_trampoline
3704 initializer.
3705 * c-lang.c (c_language_data): Likewise.
3706 (cplus_language_data): Likewise.
3707 (cplus_language::skip_trampoline): New member function.
3708 (asm_language_data): Delete skip_trampoline initializer.
3709 (minimal_language_data): Likewise.
3710 * d-lang.c (d_language_data): Likewise.
3711 * f-lang.c (f_language_data): Likewise.
3712 * go-lang.c (go_language_data): Likewise.
3713 * language.c (unk_lang_trampoline): Delete function.
3714 (skip_language_trampoline): Update.
3715 (unknown_language_data): Delete skip_trampoline initializer.
3716 (auto_language_data): Likewise.
3717 * language.h (language_data): Delete skip_trampoline field.
3718 (language_defn::skip_trampoline): New function.
3719 * m2-lang.c (m2_language_data): Delete skip_trampoline
3720 initializer.
3721 * objc-lang.c (objc_skip_trampoline): Delete function, move
3722 implementation to objc_language::skip_trampoline.
3723 (objc_language_data): Delete skip_trampoline initializer.
3724 (objc_language::skip_trampoline): New member function with
3725 implementation from objc_skip_trampoline.
3726 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3727 initializer.
3728 * p-lang.c (pascal_language_data): Likewise.
3729 * rust-lang.c (rust_language_data): Likewise.
3730
0a50df5d
AB
37312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3732
3733 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3734 (ada_language::demangle): New member function.
3735 * c-lang.c (c_language_data): Delete la_demangle initializer.
3736 (cplus_language_data): Delete la_demangle initializer.
3737 (cplus_language::demangle): New member function.
3738 (asm_language_data): Delete la_demangle initializer.
3739 (minimal_language_data): Delete la_demangle initializer.
3740 * d-lang.c (d_language_data): Delete la_demangle initializer.
3741 (d_language::demangle): New member function.
3742 * f-lang.c (f_language_data): Delete la_demangle initializer.
3743 (f_language::demangle): New member function.
3744 * go-lang.c (go_language_data): Delete la_demangle initializer.
3745 (go_language::demangle): New member function.
3746 * language.c (language_demangle): Update.
3747 (unk_lang_demangle): Delete.
3748 (unknown_language_data): Delete la_demangle initializer.
3749 (unknown_language::demangle): New member function.
3750 (auto_language_data): Delete la_demangle initializer.
3751 (auto_language::demangle): New member function.
3752 * language.h (language_data): Delete la_demangle field.
3753 (language_defn::demangle): New function.
3754 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3755 * objc-lang.c (objc_language_data): Delete la_demangle
3756 initializer.
3757 (objc_language::demangle): New member function.
3758 * opencl-lang.c (opencl_language_data): Delete la_demangle
3759 initializer.
3760 * p-lang.c (pascal_language_data): Likewise.
3761 * rust-lang.c (rust_language_data): Likewise.
3762 (rust_language::demangle): New member function.
3763
fbfb0a46
AB
37642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3765
3766 * ada-lang.c (ada_language_data): Delete la_print_type
3767 initializer.
3768 (ada_language::print_type): New member function.
3769 * c-lang.c (c_language_data): Delete la_print_type initializer.
3770 (c_language::print_type): New member function.
3771 (cplus_language_data): Delete la_print_type initializer.
3772 (cplus_language::print_type): New member function.
3773 (asm_language_data): Delete la_print_type initializer.
3774 (asm_language::print_type): New member function.
3775 (minimal_language_data): Delete la_print_type initializer.
3776 (minimal_language::print_type): New member function.
3777 * d-lang.c (d_language_data): Delete la_print_type initializer.
3778 (d_language::print_type): New member function.
3779 * f-lang.c (f_language_data): Delete la_print_type initializer.
3780 (f_language::print_type): New member function.
3781 * go-lang.c (go_language_data): Delete la_print_type initializer.
3782 (go_language::print_type): New member function.
3783 * language.c (unk_lang_print_type): Delete.
3784 (unknown_language_data): Delete la_print_type initializer.
3785 (unknown_language::print_type): New member function.
3786 (auto_language_data): Delete la_print_type initializer.
3787 (auto_language::print_type): New member function.
3788 * language.h (language_data): Delete la_print_type field.
3789 (language_defn::print_type): New function.
3790 (LA_PRINT_TYPE): Update.
3791 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3792 (m2_language::print_type): New member function.
3793 * objc-lang.c (objc_language_data): Delete la_print_type
3794 initializer.
3795 (objc_language::print_type): New member function.
3796 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3797 to opencl_language::print_type.
3798 (opencl_language_data): Delete la_print_type initializer.
3799 (opencl_language::print_type): New member function, implementation
3800 from opencl_print_type.
3801 * p-lang.c (pascal_language_data): Delete la_print_type
3802 initializer.
3803 (pascal_language::print_type): New member function.
3804 * rust-lang.c (rust_print_type): Delete, implementation moved to
3805 rust_language::print_type.
3806 (rust_language_data): Delete la_print_type initializer.
3807 (rust_language::print_type): New member function, implementation
3808 from rust_print_type.
3809
6f827019
AB
38102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3811
3812 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3813 implementation moves to...
3814 (ada_language::sniff_from_mangled_name): ...here. Update return
3815 type.
3816 (ada_language_data): Delete la_sniff_from_mangled_name
3817 initializer.
3818 * c-lang.c (c_language_data): Likewise.
3819 (cplus_language_data): Likewise.
3820 (cplus_language::sniff_from_mangled_name): New member function,
3821 implementation taken from gdb_sniff_from_mangled_name.
3822 (asm_language_data): Delete la_sniff_from_mangled_name
3823 initializer.
3824 (minimal_language_data): Likewise.
3825 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3826 implementation moves to cplus_language::sniff_from_mangled_name.
3827 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3828 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3829 moves to...
3830 (d_language::sniff_from_mangled_name): ...here.
3831 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3832 * f-lang.c (f_language_data): Likewise.
3833 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3834 moves to...
3835 (go_language::sniff_from_mangled_name): ...here.
3836 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3837 * language.c (language_sniff_from_mangled_name): Delete.
3838 (unknown_language_data): Delete la_sniff_from_mangled_name
3839 initializer.
3840 (auto_language_data): Likewise.
3841 * language.h (language_data): Delete la_sniff_from_mangled_name
3842 field.
3843 (language_defn::sniff_from_mangled_name): New function.
3844 (language_sniff_from_mangled_name): Delete declaration.
3845 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3846 field.
3847 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3848 implementation moves to...
3849 (objc_language::sniff_from_mangled_name): ...here.
3850 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3851 * opencl-lang.c (opencl_language_data): Likewise.
3852 * p-lang.c (pascal_language_data): Likewise.
3853 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3854 implementation moves to...
3855 (rust_language::sniff_from_mangled_name): ...here.
3856 (rust_language_data): Delete la_sniff_from_mangled_name
3857 initializer.
3858 * symtab.c (symbol_find_demangled_name): Call
3859 sniff_from_mangled_name member function.
3860
fb8006fd
AB
38612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3862
3863 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3864 initializer.
3865 * c-lang.c (c_language_data): Likewise.
3866 (cplus_language_data): Likewise.
3867 (cplus_language::search_name_hash): New member function.
3868 (asm_language_data): Delete la_search_name_hash initializer.
3869 (minimal_language_data): Likewise.
3870 * d-lang.c (d_language_data): Likewise.
3871 * dictionary.c (default_search_name_hash): Rename to...
3872 (language_defn::search_name_hash): ...this.
3873 * f-lang.c (f_language_data): Likewise.
3874 (f_language::search_name_hash): New member function.
3875 * go-lang.c (go_language_data): Delete la_search_name_hash
3876 initializer.
3877 * language.c (unknown_language_data): Likewise.
3878 (auto_language_data): Likewise.
3879 * language.h (struct language_data): Delete la_search_name_hash
3880 field.
3881 (language_defn::search_name_hash): Declare new member function.
3882 (default_search_name_hash): Delete declaration.
3883 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3884 initializer.
3885 * objc-lang.c (objc_language_data): Likewise.
3886 * opencl-lang.c (opencl_language_data): Likewise.
3887 * p-lang.c (pascal_language_data): Likewise.
3888 * rust-lang.c (rust_language_data): Likewise.
3889 * symtab.c (search_name_hash): Update call.
3890
8e25bafe
AB
38912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3892
3893 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3894 initializer.
3895 * c-lang.c (class compile_instance): Declare.
3896 (c_language_data): Delete la_get_compile_instance initializer.
3897 (c_language::get_compile_instance): New member function.
3898 (cplus_language_data): Delete la_get_compile_instance initializer.
3899 (cplus_language::get_compile_instance): New member function.
3900 (asm_language_data): Delete la_get_compile_instance initializer.
3901 (minimal_language_data): Likewise.
3902 * c-lang.h (c_get_compile_context): Update comment.
3903 (cplus_get_compile_context): Update comment.
3904 * compile/compile.c (compile_to_object): Update calls, don't rely
3905 on function pointer being NULL.
3906 * d-lang.c (d_language_data): Delete la_get_compile_instance
3907 initializer.
3908 * f-lang.c (f_language_data): Likewise.
3909 * go-lang.c (go_language_data): Likewise.
3910 * language.c (unknown_language_data): Likewise.
3911 (auto_language_data): Likewise.
3912 * language.h (language_data): Delete la_get_compile_instance field.
3913 (language_defn::get_compile_instance): New member function.
3914 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3915 initializer.
3916 * objc-lang.c (objc_language_data): Likewise.
3917 * opencl-lang.c (opencl_language_data): Likewise.
3918 * p-lang.c (pascal_language_data): Likewise.
3919 * rust-lang.c (rust_language_data): Likewise.
3920
4009ee92
AB
39212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3922
3923 * ada-lang.c (ada_add_all_symbols): Update comment.
3924 (ada_iterate_over_symbols): Delete, move implementation to...
3925 (ada_language::iterate_over_symbols): ...here, a new member
3926 function, rewrite to use range based for loop.
3927 (ada_language_data): Delete la_iterate_over_symbols initializer.
3928 * c-lang.c (c_language_data): Likewise.
3929 (cplus_language_data): Likewise.
3930 (asm_language_data): Likewise.
3931 (minimal_language_data): Likewise.
3932 * d-lang.c (d_language_data): Likewise.
3933 * f-lang.c (f_language_data): Likewise.
3934 * go-lang.c (go_language_data): Likewise.
3935 * language.c (unknown_language_data): Likewise.
3936 (auto_language_data): Likewise.
3937 * language.h (language_data): Delete la_iterate_over_symbols field.
3938 (language_defn::iterate_over_symbols): New member function.
3939 (LA_ITERATE_OVER_SYMBOLS): Update.
3940 * linespec.c (iterate_over_all_matching_symtabs): Update.
3941 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3942 initializer.
3943 * objc-lang.c (objc_language_data): Likewise.
3944 * opencl-lang.c (opencl_language_data): Likewise.
3945 * p-lang.c (pascal_language_data): Likewise.
3946 * rust-lang.c (rust_language_data): Likewise.
3947
54f4ca46
AB
39482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3949
3950 * ada-lang.c (ada_language_data): Delete
3951 la_lookup_transparent_type initializer.
3952 * c-lang.c (c_language_data): Likewise.
3953 (cplus_language_data): Likewise.
3954 (cplus_language::lookup_transparent_type): New member function.
3955 (asm_language_data): Delete la_lookup_transparent_type
3956 initializer.
3957 (minimal_language_data): Likewise.
3958 * d-lang.c (d_language_data): Likewise.
3959 * f-lang.c (f_language_data): Likewise.
3960 * go-lang.c (go_language_data): Likewise.
3961 * language.c (unknown_language_data): Likewise.
3962 (auto_language_data): Likewise.
3963 * language.h (struct language_data): Delete
3964 la_lookup_transparent_type field.
3965 (language_defn::lookup_transparent_type): New member function.
3966 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3967 initializer.
3968 * objc-lang.c (objc_language_data): Likewise.
3969 * opencl-lang.c (opencl_language_data): Likewise.
3970 * p-lang.c (pascal_language_data): Likewise.
3971 * rust-lang.c (rust_language_data): Likewise.
3972 * symtab.c (symbol_matches_domain): Update call.
3973
1fb314aa
AB
39742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3975
3976 * ada-lang.c (ada_language_arch_info): Delete function, move
3977 implementation to...
3978 (ada_language::language_arch_info): ...here, a new member
3979 function.
3980 (ada_language_data): Delete la_language_arch_info.
3981 * c-lang.c (c_language_data): Likewise.
3982 (c_language::language_arch_info): New member function.
3983 (cplus_language_arch_info): Delete function, move
3984 implementation to...
3985 (cplus_language::language_arch_info): ...here, a new member
3986 function.
3987 (cplus_language_data): Delete la_language_arch_info.
3988 (asm_language_data): Likewise.
3989 (asm_language::language_arch_info): New member function.
3990 (minimal_language_data): Delete la_language_arch_info.
3991 (minimal_language::language_arch_info): New member function.
3992 * d-lang.c (d_language_arch_info): Delete function, move
3993 implementation to...
3994 (d_language::language_arch_info): ...here, a new member
3995 function.
3996 (d_language_data): Delete la_language_arch_info.
3997 * f-lang.c (f_language_arch_info): Delete function, move
3998 implementation to...
3999 (f_language::language_arch_info): ...here, a new member
4000 function.
4001 (f_language_data): Delete la_language_arch_info.
4002 * go-lang.c (go_language_arch_info): Delete function, move
4003 implementation to...
4004 (go_language::language_arch_info): ...here, a new member
4005 function.
4006 (go_language_data): Delete la_language_arch_info.
4007 * language.c (unknown_language_data): Likewise.
4008 (unknown_language::language_arch_info): New member function.
4009 (auto_language_data): Delete la_language_arch_info.
4010 (auto_language::language_arch_info): New member function.
4011 (language_gdbarch_post_init): Update call to
4012 la_language_arch_info.
4013 * language.h (language_data): Delete la_language_arch_info
4014 function pointer.
4015 (language_defn::language_arch_info): New function.
4016 * m2-lang.c (m2_language_arch_info): Delete function, move
4017 implementation to...
4018 (m2_language::language_arch_info): ...here, a new member
4019 function.
4020 (m2_language_data): Delete la_language_arch_info.
4021 * objc-lang.c (objc_language_arch_info): Delete function, move
4022 implementation to...
4023 (objc_language::language_arch_info): ...here, a new member
4024 function.
4025 (objc_language_data): Delete la_language_arch_info.
4026 * opencl-lang.c (opencl_language_arch_info): Delete function, move
4027 implementation to...
4028 (opencl_language::language_arch_info): ...here, a new member
4029 function.
4030 (opencl_language_data): Delete la_language_arch_info.
4031 * p-lang.c (pascal_language_arch_info): Delete function, move
4032 implementation to...
4033 (pascal_language::language_arch_info): ...here, a new member
4034 function.
4035 (pascal_language_data): Delete la_language_arch_info.
4036 * rust-lang.c (rust_language_arch_info): Delete function, move
4037 implementation to...
4038 (rust_language::language_arch_info): ...here, a new member
4039 function.
4040 (rust_language_data): Delete la_language_arch_info.
4041
48448202
AB
40422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4043
4044 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
4045 initializer.
4046 * c-lang.c (c_language_data): Likewise.
4047 (cplus_language_data): Likewise.
4048 (cplus_language::pass_by_reference_info): New method.
4049 (asm_language_data): Delete la_pass_by_reference initializer.
4050 (minimal_language_data): Likewise.
4051 * cp-abi.c (cp_pass_by_reference): Remove use of
4052 default_pass_by_reference.
4053 * d-lang.c (d_language_data): Likewise.
4054 * f-lang.c (f_language_data): Likewise.
4055 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
4056 default_pass_by_reference.
4057 * go-lang.c (go_language_data): Likewise.
4058 * language.c (language_pass_by_reference): Update.
4059 (default_pass_by_reference): Delete.
4060 (unknown_language_data): Delete la_pass_by_reference
4061 initializer.
4062 (auto_language_data): Likewise.
4063 * language.h (struct language_data): Delete la_pass_by_reference
4064 field.
4065 (language_defn::pass_by_reference_info): New member function.
4066 (default_pass_by_reference): Delete declaration.
4067 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
4068 initializer.
4069 * objc-lang.c (objc_language_data): Likewise.
4070 * opencl-lang.c (opencl_language_data): Likewise.
4071 * p-lang.c (pascal_language_data): Likewise.
4072 * rust-lang.c (rust_language_data): Likewise.
4073
15e5fd35
AB
40742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4075
4076 * ada-lang.c (ada_read_var_value): Delete function, move
4077 implementation to...
4078 (ada_language::read_var_value): ...here.
4079 (ada_language_data): Delete la_read_var_value initializer.
4080 * c-lang.c (c_language_data): Likewise.
4081 (cplus_language_data): Likewise.
4082 (minimal_language_data): Likewise.
4083 * d-lang.c (d_language_data): Likewise.
4084 * f-lang.c (f_language_data): Likewise.
4085 * findvar.c (default_read_var_value): Rename to...
4086 (language_defn::read_var_value): ...this.
4087 * findvar.c (read_var_value): Update header comment, and change to
4088 call member function instead of function pointer.
4089 * go-lang.c (go_language_data): Likewise.
4090 * language.c (unknown_language_data): Delete la_read_var_value
4091 initializer.
4092 (auto_language_data): Likewise.
4093 * language.h (struct language_data): Delete la_read_var_value
4094 field.
4095 (language_defn::read_var_value): New member function.
4096 (default_read_var_value): Delete declaration.
4097 * m2-lang.c (m2_language_data): Delete la_read_var_value
4098 initializer.
4099 * objc-lang.c (objc_language_data): Likewise.
4100 * opencl-lang.c (opencl_language_data): Likewise.
4101 * p-lang.c (pascal_language_data): Likewise.
4102 * rust-lang.c (rust_language_data): Likewise.
4103 * value.h (default_read_var_value): Delete declaration.
4104
5bd40f2a
AB
41052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4106
4107 * ada-lang.c (ada_print_array_index): Delete function, move
4108 implementation to...
4109 (ada_language::print_array_index): ...here.
4110 (ada_language_data): Delete la_print_array_index initializer.
4111 * c-lang.c (c_language_data): Likewise.
4112 (cplus_language_data): Likewise.
4113 (minimal_language_data): Likewise.
4114 * d-lang.c (d_language_data): Likewise.
4115 * f-lang.c (f_language_data): Likewise.
4116 * go-lang.c (go_language_data): Likewise.
4117 * language.c (default_print_array_index): Delete function, move
4118 implementation to...
4119 (language_defn::print_array_index): ...here.
4120 (unknown_language_data): Delete la_print_array_index initializer.
4121 (auto_language_data): Likewise.
4122 * language.h (struct language_data): Delete la_print_array_index
4123 field.
4124 (language_defn::print_array_index): New member function.
4125 (LA_PRINT_ARRAY_INDEX): Update.
4126 (default_print_array_index): Delete declaration.
4127 * m2-lang.c (m2_language_data): Delete la_print_array_index
4128 initializer.
4129 * objc-lang.c (objc_language_data): Likewise.
4130 * opencl-lang.c (opencl_language_data): Likewise.
4131 * p-lang.c (pascal_language_data): Likewise.
4132 * rust-lang.c (rust_language_data): Likewise.
4133
0874fd07
AB
41342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4135
4136 * gdb/ada-lang.c (ada_language_defn): Convert to...
4137 (ada_language_data): ...this.
4138 (class ada_language): New class.
4139 (ada_language_defn): New static global.
4140 * gdb/c-lang.c (c_language_defn): Convert to...
4141 (c_language_data): ...this.
4142 (class c_language): New class.
4143 (c_language_defn): New static global.
4144 (cplus_language_defn): Convert to...
4145 (cplus_language_data): ...this.
4146 (class cplus_language): New class.
4147 (cplus_language_defn): New static global.
4148 (asm_language_defn): Convert to...
4149 (asm_language_data): ...this.
4150 (class asm_language): New class.
4151 (asm_language_defn): New static global.
4152 (minimal_language_defn): Convert to...
4153 (minimal_language_data): ...this.
4154 (class minimal_language): New class.
4155 (minimal_language_defn): New static global.
4156 * gdb/d-lang.c (d_language_defn): Convert to...
4157 (d_language_data): ...this.
4158 (class d_language): New class.
4159 (d_language_defn): New static global.
4160 * gdb/f-lang.c (f_language_defn): Convert to...
4161 (f_language_data): ...this.
4162 (class f_language): New class.
4163 (f_language_defn): New static global.
4164 * gdb/go-lang.c (go_language_defn): Convert to...
4165 (go_language_data): ...this.
4166 (class go_language): New class.
4167 (go_language_defn): New static global.
4168 * gdb/language.c (unknown_language_defn): Remove declaration.
4169 (current_language): Initialize to nullptr, real initialization is
4170 moved to _initialize_language.
4171 (languages): Delete global.
4172 (language_defn::languages): Define.
4173 (set_language_command): Use language_defn::languages.
4174 (set_language): Likewise.
4175 (range_error): Likewise.
4176 (language_enum): Likewise.
4177 (language_def): Likewise.
4178 (add_set_language_command): Use language_def::languages for the
4179 language list, and language_def to lookup language pointers.
4180 (skip_language_trampoline): Use language_defn::languages.
4181 (unknown_language_defn): Convert to...
4182 (unknown_language_data): ...this.
4183 (class unknown_language): New class.
4184 (unknown_language_defn): New static global.
4185 (auto_language_defn): Convert to...
4186 (auto_language_data): ...this.
4187 (class auto_language): New class.
4188 (auto_language_defn): New static global.
4189 (language_gdbarch_post_init): Use language_defn::languages.
4190 (_initialize_language): Initialize current_language.
4191 * gdb/language.h (struct language_defn): Rename to...
4192 (struct language_data): ...this.
4193 (struct language_defn): New.
4194 (auto_language_defn): Delete.
4195 (unknown_language_defn): Delete.
4196 (minimal_language_defn): Delete.
4197 (ada_language_defn): Delete.
4198 (asm_language_defn): Delete.
4199 (c_language_defn): Delete.
4200 (cplus_language_defn): Delete.
4201 (d_language_defn): Delete.
4202 (f_language_defn): Delete.
4203 (go_language_defn): Delete.
4204 (m2_language_defn): Delete.
4205 (objc_language_defn): Delete.
4206 (opencl_language_defn): Delete.
4207 (pascal_language_defn): Delete.
4208 (rust_language_defn): Delete.
4209 * gdb/m2-lang.c (m2_language_defn): Convert to...
4210 (m2_language_data): ...this.
4211 (class m2_language): New class.
4212 (m2_language_defn): New static global.
4213 * gdb/objc-lang.c (objc_language_defn): Convert to...
4214 (objc_language_data): ...this.
4215 (class objc_language): New class.
4216 (objc_language_defn): New static global.
4217 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
4218 (opencl_language_data): ...this.
4219 (class opencl_language): New class.
4220 (opencl_language_defn): New static global.
4221 * gdb/p-lang.c (pascal_language_defn): Convert to...
4222 (pascal_language_data): ...this.
4223 (class pascal_language): New class.
4224 (pascal_language_defn): New static global.
4225 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
4226 language pointer, update comment format.
4227 * gdb/rust-lang.c (rust_language_defn): Convert to...
4228 (rust_language_data): ...this.
4229 (class rust_language): New class.
4230 (rust_language_defn): New static global.
4231
1313c56e
AB
42322020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
4233
4234 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
4235 member variable.
4236 <m_stmt_at_address>: New member variable.
4237 (lnp_state_machine::record_line): Don't record some lines, update
4238 tracking of is_stmt at the same address.
4239 (lnp_state_machine::lnp_state_machine): Initialise new member
4240 variables.
4241
b7ed9f3d
ST
42422020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4243
4244 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
4245 "-include gnu-nat-mig.h".
4246 * gnu-nat-mig.h: New file.
4247 * gnu-nat.c: Include "gnu-nat-mig.h".
4248 (exc_server, msg_reply_server, notify_server,
4249 process_reply_server): Remove declarations.
4250
14a8ad62
ST
42512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4252
4253 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
4254 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
4255 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
4256 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
4257 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
4258 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
4259 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
4260 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4261 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4262 to gnu_nat_target class.
4263 * gnu-nat.c: Likewise.
4264 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4265 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4266 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4267 object.
4268 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4269 instead of `gnu_target'.
4270
0af5e106
ST
42712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4272
4273 * i386-gnu-tdep.c: Include "gdbcore.h"
4274 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4275 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4276 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4277 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4278 i386_gnu_sigcontext_addr): New functions
4279 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4280 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4281 tdep.
4282
078f2fc9
ST
42832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4284
4285 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4286 before fork_inferior call. Avoid calling it if target_is_pushed returns
4287 true.
4288
53dff92c
ST
42892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4290
4291 * gnu-nat.h (gnu_target): New variable declaration.
4292 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4293 gnu_target.
4294 * gnu-nat.c (gnu_target): New variable.
4295 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4296 add_thread_silent, and add_thread calls.
4297 (gnu_nat_target::create_inferior): Pass gnu_target to
4298 add_thread_silent, thread_change_ptid call.
4299 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4300 call.
4301
5a8b8627
ST
43022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4303
4304 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4305 (gnu_nat_target::find_memory_regions): Remove unused
4306 `old_address' variable.
4307
366f550a
ST
43082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4309
4310 * gnu-nat.c: Include "gdbarch.h".
4311
f14871bf
ST
43122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4313
4314 * reply_mig_hack.awk (Error return): Cast function through
4315 void *, to bypass compiler function call check.
4316
c6887cfb
ST
43172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4318
4319 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4320 $(srcdir)/reply_mig_hack.awk.
4321
6930bffe
ST
43222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4323
4324 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4325
112c22ed
JG
43262020-05-30 Jonny Grant <jg@jguk.org>
4327
4328 * configure.ac (ACX_BUGURL): change bug URL to https.
4329
f68f85b5
PA
43302020-05-30 Pedro Alves <palves@redhat.com>
4331
4332 * cp-support.c (replace_typedefs_template): New.
4333 (replace_typedefs_qualified_name): Handle
4334 DEMANGLE_COMPONENT_TEMPLATE.
4335
976ca316
SM
43362020-05-29 Simon Marchi <simon.marchi@efficios.com>
4337
4338 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4339 dwarf2/index-cache.h, dwarf2/index-write.c,
4340 dwarf2/index-write.h, dwarf2/line-header.c,
4341 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4342 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4343 variables and fields from `dwarf2_per_objfile` to just
4344 `per_objfile` throughout.
4345
989ade05
SM
43462020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4347
4348 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4349 <push_dwarf_reg_entry_value>: Add comment.
4350
c47bae85
KB
43512020-05-28 Kevin Buettner <kevinb@redhat.com>
4352 Keith Seitz <keiths@redhat.com>
4353
4354 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4355 instead of PyEval_ReleaseLock.
4356 (class gdbpy_gil): Move to earlier in file.
4357 (finalize_python): Set gdb_python_initialized.
4358 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4359 when not initialized.
4360
44486dcf
SM
43612020-05-28 Simon Marchi <simon.marchi@efficios.com>
4362
4363 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4364 <push_dwarf_reg_entry_value>: Remove assert. Override
4365 per_objfile with caller_per_objfile.
4366
f030440d
TV
43672020-05-28 Tom de Vries <tdevries@suse.de>
4368
4369 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4370 PR gold/15646 workaround to symbol kind "type".
4371
f0fbb768
TT
43722020-05-27 Tom Tromey <tromey@adacore.com>
4373
4374 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4375
af0b2a3e
TT
43762020-05-27 Tom Tromey <tromey@adacore.com>
4377
4378 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4379 Use htab_find_with_hash.
4380 <add_abbrev>: Remove "abbrev_number" parameter.
4381 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4382 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4383 (hash_abbrev): Add comment.
4384 (abbrev_table::lookup_abbrev): Move to header file.
4385 (abbrev_table::read): Update.
4386
7d00ffec
TT
43872020-05-27 Tom Tromey <tromey@adacore.com>
4388
4389 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4390 method.
4391 <canonical_name>: New member.
4392 <raw_name>: Rename from "name".
4393 (partial_die_info): Initialize canonical_name.
4394 (scan_partial_symbols): Check raw_name.
4395 (partial_die_parent_scope, partial_die_full_name)
4396 (add_partial_symbol, add_partial_subprogram)
4397 (add_partial_enumeration, load_partial_dies): Use "name" method.
4398 (partial_die_info::name): New method.
4399 (partial_die_info::read, guess_partial_die_structure_name)
4400 (partial_die_info::fixup): Update.
4401
697bba18
TT
44022020-05-27 Tom Tromey <tromey@adacore.com>
4403
4404 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4405 <get_ref_die_offset>: Inline.
4406 <get_ref_die_offset_complaint>: New method.
4407 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4408 (attribute::get_ref_die_offset_complaint): Rename from
4409 get_ref_die_offset. Just issue complaint.
4410
c17ace43
HD
44112020-05-27 Hannes Domani <ssbssa@yahoo.de>
4412
4413 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4414
96445f0b
HD
44152020-05-27 Hannes Domani <ssbssa@yahoo.de>
4416
4417 * exec.c (exec_file_attach): Use errno value of first openp failure.
4418
ac637ec3
HD
44192020-05-27 Hannes Domani <ssbssa@yahoo.de>
4420
4421 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4422 Don't close thread handle.
4423
17ee85fc
TT
44242020-05-27 Tom Tromey <tom@tromey.com>
4425 Simon Marchi <simon.marchi@efficios.com>
4426
4427 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4428 shared_ptr.
4429 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4430 member.
4431 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4432 dwarf2_per_bfd_objfile_data_key>: New globals.
4433 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4434 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4435 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4436 shared.
4437 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4438 short-circuit when sharing.
4439 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4440 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4441
39b16f87
SM
44422020-05-27 Simon Marchi <simon.marchi@efficios.com>
4443
4444 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4445 to...
4446 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4447 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4448
fcf23d5b
SM
44492020-05-27 Simon Marchi <simon.marchi@efficios.com>
4450
4451 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4452 build_name_components, find_name_components_bounds>:
4453 Add per_objfile parameter.
4454 (struct mapped_index) <symbol_name_at>: Likewise.
4455 (struct mapped_debug_names): Remove constructor.
4456 <dwarf2_per_objfile>: Remove field.
4457 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4458 (mapped_index_base::find_name_components_bounds,
4459 mapped_index_base::build_name_components,
4460 dw2_expand_symtabs_matching_symbol): Likewise.
4461 (class mock_mapped_index) <symbol_name_at>: Likewise.
4462 (check_match): Likewise.
4463 (check_find_bounds_finds): Likewise.
4464 (test_mapped_index_find_name_component_bounds): Update.
4465 (CHECK_MATCH): Update.
4466 (dw2_expand_symtabs_matching): Update.
4467 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4468 per_objfile parameter.
4469 <find_vec_in_debug_names>: Likewise.
4470 <m_per_objfile>: New field.
4471 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4472 parameter.
4473 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4474 (dw2_debug_names_iterator::next): Update.
4475 (dw2_debug_names_lookup_symbol): Update.
4476 (dw2_debug_names_expand_symtabs_for_function): Update.
4477 (dw2_debug_names_map_matching_symbols): Update.
4478 (dw2_debug_names_expand_symtabs_matching): Update.
4479 (dwarf2_read_debug_names): Update.
4480
7188ed02
SM
44812020-05-27 Simon Marchi <simon.marchi@efficios.com>
4482
4483 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4484 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4485 move to dwarf2_per_objfile.
4486 <read_in_chain>: Remove.
4487 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4488 remove_all_cus, age_comp_units>: New methods.
4489 <m_dwarf2_cus>: New member.
4490 (struct dwarf2_per_cu_data) <cu>: Remove.
4491 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4492 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4493 moved to methods of dwarf2_per_objfile.
4494 (dwarf2_clear_marks): Remove.
4495 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4496 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4497 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4498 (dwarf2_per_objfile::remove_all_cus): New.
4499 (class free_cached_comp_units) <~free_cached_comp_units>:
4500 Update.
4501 (load_cu): Update.
4502 (dw2_do_instantiate_symtab): Adjust.
4503 (fill_in_sig_entry_from_dwo_entry): Adjust.
4504 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4505 (cutu_reader::cutu_reader): Likewise.
4506 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4507 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4508 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4509 and dwarf2_per_objfile::age_comp_units.
4510 (load_partial_comp_unit): Update.
4511 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4512 (process_queue): Likewise.
4513 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4514 backlink.
4515 (dwarf2_read_addr_index): Likewise.
4516 (follow_die_offset): Likewise.
4517 (dwarf2_fetch_die_loc_sect_off): Likewise.
4518 (dwarf2_fetch_constant_bytes): Likewise.
4519 (dwarf2_fetch_die_type_sect_off): Likewise.
4520 (follow_die_sig_1): Likewise.
4521 (load_full_type_unit): Likewise.
4522 (read_signatured_type): Likewise.
4523 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4524 (dwarf2_cu::~dwarf2_cu): Remove.
4525 (dwarf2_per_objfile::get_cu): New.
4526 (dwarf2_per_objfile::set_cu): New.
4527 (age_cached_comp_units): Rename to...
4528 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4529 to std::unordered_map.
4530 (free_one_cached_comp_unit): Rename to...
4531 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4532 to std::unordered_map.
4533 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4534 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4535 a dwarf2_per_objfile in data.
4536 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4537 (dwarf2_clear_marks): Remove.
4538
2e671100
SM
45392020-05-27 Simon Marchi <simon.marchi@efficios.com>
4540
4541 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4542 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4543 (init_tu_and_read_dwo_dies): Likewise.
4544 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4545 (cutu_reader::cutu_reader): Likewise.
4546 (load_partial_comp_unit): Likewise.
4547 (process_psymtab_comp_unit): Update.
4548 (build_type_psymtabs_1): Update.
4549 (process_skeletonless_type_unit): Update.
4550 (load_full_comp_unit): Update.
4551 (find_partial_die): Update.
4552 (dwarf2_read_addr_index): Update.
4553 (read_signatured_type): Update.
4554
2e6a9f79
SM
45552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4556
4557 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4558 m_header_read_in>: New fields.
4559 <get_header>: New method.
4560 * dwarf2/read.c (per_cu_header_read_in): Remove.
4561 (dwarf2_per_cu_data::get_header): New.
4562 (dwarf2_per_cu_data::addr_size): Update.
4563 (dwarf2_per_cu_data::offset_size): Update.
4564 (dwarf2_per_cu_data::ref_addr_size): Update.
4565
1b555f17
SM
45662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4567
4568 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4569 (dw2_do_instantiate_symtab): Update.
4570 (queue_and_load_all_dwo_tus): Change parameter from
4571 dwarf2_per_cu_data to dwarf2_cu.
4572 (dwarf2_fetch_die_loc_sect_off): Update.
4573 (dwarf2_fetch_constant_bytes): Update.
4574 (dwarf2_fetch_die_type_sect_off): Update.
4575
8fc0b21d
SM
45762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4577
4578 * dwarf2/read.c (process_full_comp_unit,
4579 process_full_type_unit): Remove per_cu, per_objfile paramters.
4580 Add dwarf2_cu parameter.
4581 (process_queue): Update.
4582
168c9250
SM
45832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4584
4585 * dwarf2/read.c (create_cu_from_index_list): Replace
4586 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4587 (create_cus_from_index_list): Likewise.
4588 (create_cus_from_index): Likewise.
4589 (create_signatured_type_table_from_index): Likewise.
4590 (create_cus_from_debug_names_list): Likewise.
4591 (create_cus_from_debug_names): Likewise.
4592 (dwarf2_read_gdb_index): Update.
4593 (dwarf2_read_debug_names): Update.
4594
e286671b
TT
45952020-05-27 Tom Tromey <tom@tromey.com>
4596 Simon Marchi <simon.marchi@efficios.com>
4597
4598 * dwarf2/read.h (struct dwarf2_per_objfile)
4599 <get_type_for_signatured_type, set_type_for_signatured_type>:
4600 New methods.
4601 <m_type_map>: New member.
4602 (struct signatured_type) <type>: Remove.
4603 * dwarf2/read.c
4604 (dwarf2_per_objfile::get_type_for_signatured_type,
4605 dwarf2_per_objfile::set_type_for_signatured_type): New.
4606 (get_signatured_type): Use new methods.
4607
8adb8487
TT
46082020-05-27 Tom Tromey <tom@tromey.com>
4609 Simon Marchi <simon.marchi@efficios.com>
4610
4611 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4612 (struct dwarf2_per_objfile) <type_units>: New member.
4613 <get_type_unit_group_unshareable>: New method.
4614 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4615 num_symtabs, symtabs>: Remove; move to
4616 type_unit_group_unshareable.
4617 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4618 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4619 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4620
127bbf4b
SM
46212020-05-27 Simon Marchi <simon.marchi@efficios.com>
4622
4623 * dwarf2/read.h (struct dwarf2_per_cu_data):
4624 <dwarf2_per_objfile>: Remove.
4625 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4626 dwarf2_per_objfile.
4627 (create_signatured_type_table_from_index): Likewise.
4628 (create_signatured_type_table_from_debug_names): Likewise.
4629 (create_debug_type_hash_table): Likewise.
4630 (fill_in_sig_entry_from_dwo_entry): Likewise.
4631 (create_type_unit_group): Likewise.
4632 (read_comp_units_from_section): Likewise.
4633 (create_cus_hash_table): Likewise.
4634
f6e649dd
SM
46352020-05-27 Simon Marchi <simon.marchi@efficios.com>
4636
4637 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4638 dwarf2_per_cu_data::dwarf2_per_objfile.
4639 (compute_compunit_symtab_includes): Likewise.
4640 (dwarf2_cu::start_symtab): Likewise.
4641
aa66c379
SM
46422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4643
4644 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4645 parameter.
4646 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4647 (read_namespace_alias): Update.
4648 (lookup_die_type): Update.
4649 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4650 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4651 Update.
4652 (disassemble_dwarf_expression): Update.
4653
120ce1b5
SM
46542020-05-27 Simon Marchi <simon.marchi@efficios.com>
4655
4656 * dwarf2/read.h (struct dwarf2_queue_item): Add
4657 dwarf2_per_objfile parameter, assign new parameter.
4658 <per_objfile>: New field.
4659 * dwarf2/read.c (free_one_cached_comp_unit): Add
4660 dwarf2_per_objfile parameter.
4661 (queue_comp_unit): Likewise.
4662 (dw2_do_instantiate_symtab): Update.
4663 (process_psymtab_comp_unit): Update.
4664 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4665 (process_imported_unit_die): Update.
4666 (queue_and_load_dwo_tu): Update.
4667 (follow_die_offset): Update.
4668 (follow_die_sig_1): Update.
4669
9f47c707
SM
46702020-05-27 Simon Marchi <simon.marchi@efficios.com>
4671
4672 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4673 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4674 (read_call_site_scope): Assign per_objfile.
4675 (dwarf2_per_cu_data::objfile): Remove.
4676 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4677 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4678 dwarf2_per_objfile parameter.
4679 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4680 dwarf2_per_objfile parameter.
4681 (dwarf_expr_reg_to_entry_parameter): Add output
4682 dwarf2_per_objfile parameter.
4683 (locexpr_get_frame_base): Update.
4684 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4685 <push_dwarf_reg_entry_value>: Update.
4686 <call_site_to_target_addr>: Update.
4687 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4688 parameter.
4689 (value_of_dwarf_reg_entry): Update.
4690 (rw_pieced_value): Update.
4691 (indirect_synthetic_pointer): Update.
4692 (dwarf2_evaluate_property): Update.
4693 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4694 parameter.
4695 (locexpr_read_variable): Update.
4696 (locexpr_get_symbol_read_needs): Update.
4697 (loclist_read_variable): Update.
4698
14095eb3
SM
46992020-05-27 Simon Marchi <simon.marchi@efficios.com>
4700
4701 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4702 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4703 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4704 parameter.
4705 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4706 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4707 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4708 parameter.
4709 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4710 sect_variable_value): Add dwarf2_per_objfile parameter.
4711 (class dwarf_evaluate_loc_desc) <dwarf_call,
4712 dwarf_variable_value>: Update.
4713 (fetch_const_value_from_synthetic_pointer): Add
4714 dwarf2_per_objfile parameter.
4715 (fetch_const_value_from_synthetic_pointer): Update.
4716 (coerced_pieced_ref): Update.
4717 (class symbol_needs_eval_context) <dwarf_call,
4718 dwarf_variable_value>: Update.
4719 (dwarf2_compile_expr_to_ax): Update.
4720
3c3cd3d4
SM
47212020-05-27 Simon Marchi <simon.marchi@efficios.com>
4722
4723 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4724 parameter.
4725 (dwarf2_evaluate_loc_desc_full): Update.
4726
82ca3f51
SM
47272020-05-27 Simon Marchi <simon.marchi@efficios.com>
4728
4729 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4730 parameter.
4731 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4732 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4733 dwarf2_per_objfile parameter.
4734 (decode_debug_loc_dwo_addresses): Likewise.
4735 (dwarf2_find_location_expression): Update.
4736 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4737 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4738 parameter.
4739 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4740 parameter.
4741 (locexpr_describe_location_1): Likewise.
4742 (locexpr_describe_location): Update.
4743
4b167ea1
SM
47442020-05-27 Simon Marchi <simon.marchi@efficios.com>
4745
4746 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4747 Remove.
4748 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4749 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4750 (dwarf2_compile_property_to_c): Update.
4751 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4752 use text offset from objfile.
4753 (locexpr_tracepoint_var_ref): Update.
4754 (locexpr_generate_c_location): Update.
4755 (loclist_describe_location): Update.
4756 (loclist_tracepoint_var_ref): Update.
4757 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4758 dwarf2_per_objfile parameter.
4759 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4760 use text offset from objfile.
4761 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4762
89b07335
SM
47632020-05-27 Simon Marchi <simon.marchi@efficios.com>
4764
4765 * dwarf2/expr.h (struct dwarf_expr_context)
4766 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4767 <offset>: Remove.
4768 <per_objfile>: New member.
4769 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4770 dwarf2_per_objfile parameter. Don't set offset, set
4771 per_objfile.
4772 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4773 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4774 a dwarf2_per_objfile object instead of an offset.
4775 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4776 constructor.
4777 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4778 to dwarf2_expr_executor constructor. Don't set offset.
4779 (dwarf2_fetch_cfa_info): Update.
4780 (struct dwarf2_frame_cache) <text_offset>: Remove.
4781 <per_objfile>: New field.
4782 (dwarf2_frame_cache): Update.
4783 (dwarf2_frame_prev_register): Update.
4784 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4785 <dwarf_evaluate_loc_desc>: Add constructor.
4786 (dwarf2_evaluate_loc_desc_full): Update.
4787 (dwarf2_locexpr_baton_eval): Update.
4788 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4789 Add constructor.
4790 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4791
293e7e51
SM
47922020-05-27 Simon Marchi <simon.marchi@efficios.com>
4793
4794 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4795 addr_sized_int_type>: Move to dwarf2_cu.
4796 <int_type>: Move to dwarf2_per_objfile.
4797 (struct dwarf2_per_objfile) <int_type>: Move here.
4798 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4799 addr_sized_int_type>: Move here.
4800 (read_func_scope): Update.
4801 (read_array_type): Update.
4802 (read_tag_string_type): Update.
4803 (attr_to_dynamic_prop): Update.
4804 (dwarf2_per_cu_data::int_type): Rename to...
4805 (dwarf2_per_objfile::int_type): ... this.
4806 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4807 (dwarf2_cu::addr_sized_int_type): ... this.
4808 (read_subrange_type): Update.
4809 (dwarf2_per_cu_data::addr_type): Rename to...
4810 (dwarf2_cu::addr_type): ... this.
4811 (set_die_type): Update.
4812
64874a40
SM
48132020-05-27 Simon Marchi <simon.marchi@efficios.com>
4814
4815 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4816 data through per_cu->cu.
4817
4ab09049
SM
48182020-05-27 Simon Marchi <simon.marchi@efficios.com>
4819
4820 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4821 dwarf2_per_cu_data parameter fo dwarf2_cu.
4822 (lookup_dwo_type_unit): Likewise.
4823 (read_cutu_die_from_dwo): Likewise.
4824 (lookup_dwo_unit): Likewise.
4825 (open_and_init_dwo_file): Likewise.
4826 (lookup_dwo_cutu): Likewise.
4827 (lookup_dwo_comp_unit): Likewise.
4828 (lookup_dwo_type_unit): Likewise.
4829 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4830 (cutu_reader::cutu_reader): Update.
4831
47b14e86
SM
48322020-05-27 Simon Marchi <simon.marchi@efficios.com>
4833
4834 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4835 parameter.
4836 (process_full_type_unit): Likewise.
4837 (process_queue): Update.
4838
43182c09
SM
48392020-05-27 Simon Marchi <simon.marchi@efficios.com>
4840
4841 * dwarf2/read.c (recursively_compute_inclusions): Add
4842 dwarf2_per_objfile parameter.
4843 (compute_compunit_symtab_includes): Likewise.
4844 (process_cu_includes): Update.
4845
7aa104c4
SM
48462020-05-27 Simon Marchi <simon.marchi@efficios.com>
4847
4848 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4849 parameter.
4850 (create_type_unit_group): Update.
4851 (process_psymtab_comp_unit_reader): Update.
4852 (build_type_psymtabs_reader): Update.
4853
e3beb21d
SM
48542020-05-27 Simon Marchi <simon.marchi@efficios.com>
4855
4856 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4857 object through m_this_cu->cu.
4858
d460f660
SM
48592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4860
4861 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4862 the info parameter.
4863 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4864
ab432490
SM
48652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4866
4867 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4868 per_objfile parameter.
4869 (load_full_type_unit): Add per_objfile parameter.
4870 (read_signatured_type): Likewise.
4871 (load_full_comp_unit): Likewise.
4872 (load_cu): Likewise.
4873 (dw2_do_instantiate_symtab): Likewise.
4874 (dw2_get_file_names): Likewise.
4875 (dw2_map_symtabs_matching_filename): Update.
4876 (dw_expand_symtabs_matching_file_matcher): Update.
4877 (dw2_map_symbol_filenames): Update.
4878 (process_psymtab_comp_unit): Add per_objfile parameter.
4879 (build_type_psymtabs_1): Update.
4880 (process_skeletonless_type_unit): Update.
4881 (dwarf2_build_psymtabs_hard): Update.
4882 (load_partial_comp_unit): Add per_objfile parameter.
4883 (scan_partial_symbols): Update.
4884 (load_full_comp_unit): Add per_objfile parameter.
4885 (process_imported_unit_die): Update.
4886 (create_cus_hash_table): Update.
4887 (find_partial_die): Update.
4888 (dwarf2_read_addr_index): Update.
4889 (follow_die_offset): Update.
4890 (dwarf2_fetch_die_loc_sect_off): Update.
4891 (dwarf2_fetch_constant_bytes): Update.
4892 (dwarf2_fetch_die_type_sect_off): Update.
4893 (follow_die_sig_1): Update.
4894 (load_full_type_unit): Add per_objfile parameter.
4895 (read_signatured_type): Likewise.
4896
313bad1b
SM
48972020-05-27 Simon Marchi <simon.marchi@efficios.com>
4898
4899 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4900 of objfile_name.
4901
c3699833
SM
49022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4903
4904 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4905 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4906 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4907 field.
4908 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4909 (create_cus_from_index): Update.
4910 (dwarf2_read_gdb_index): Update.
4911 (create_cus_from_debug_names): Update.
4912 (dwarf2_read_debug_names): Update.
4913 (get_abbrev_section_for_cu): Update.
4914 (create_all_comp_units): Update.
4915 (read_attribute_value): Update.
4916 (get_debug_line_section): Update.
4917 * dwarf2/index-cache.c (index_cache::store): Update.
4918 * dwarf2/index-write.c (save_gdb_index_command): Update.
4919 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4920
1859c670
SM
49212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4922
4923 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4924 member.
4925 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4926 dwarf2_per_cu_data::per_bfd.
4927 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4928 (create_type_unit_group): Likewise.
4929 (queue_comp_unit): Remove reference to
4930 per_cu->dwarf2_per_objfile.
4931 (maybe_queue_comp_unit): Likewise.
4932 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4933 (create_cus_hash_table): Assign new field.
4934
5e22e966
SM
49352020-05-27 Simon Marchi <simon.marchi@efficios.com>
4936
4937 * dwarf2/read.c: Replace
4938 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4939 dwarf2_cu->per_objfile throughout.
4940
97a1449a
SM
49412020-05-27 Simon Marchi <simon.marchi@efficios.com>
4942
4943 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4944 parameter, don't use per_cu->dwarf2_per_objfile.
4945 (dw2_instantiate_symtab): Likewise.
4946 (dw2_find_last_source_symtab): Update.
4947 (dw2_map_expand_apply): Update.
4948 (dw2_lookup_symbol): Update.
4949 (dw2_expand_symtabs_for_function): Update.
4950 (dw2_expand_all_symtabs): Update.
4951 (dw2_expand_symtabs_with_fullname): Update.
4952 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4953 don't use per_cu->dwarf2_per_objfile.
4954 (dw2_expand_marked_cus): Update.
4955 (dw2_find_pc_sect_compunit_symtab): Update.
4956 (dw2_debug_names_lookup_symbol): Update.
4957 (dw2_debug_names_expand_symtabs_for_function): Update.
4958 (dw2_debug_names_map_matching_symbols): Update.
4959 (dwarf2_psymtab::expand_psymtab): Update.
4960
9e021579
SM
49612020-05-27 Simon Marchi <simon.marchi@efficios.com>
4962
4963 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4964 <per_objfile>: New member.
4965 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4966 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4967 call to dwarf2_cu.
4968 (cutu_reader::cutu_reader): Update.
4969 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4970
ae090bdb
SM
49712020-05-27 Simon Marchi <simon.marchi@efficios.com>
4972
4973 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4974 struct dwarf2_per_objfile.
4975 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4976 dwarf2_per_bfd.
4977 * dwarf2/read.c (set_die_type): Update.
4978 (get_die_type_at_offset): Update.
4979
af758d11
SM
49802020-05-27 Tom Tromey <tom@tromey.com>
4981 Simon Marchi <simon.marchi@efficios.com>
4982
4983 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4984 method.
4985 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4986 get_symtab, set_symtab>: New methods.
4987 <m_symtabs>: New field.
4988 (struct dwarf2_psymtab): Derive from partial_symtab.
4989 <readin_p, get_compunit_symtab>: Declare methods.
4990 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4991 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4992 New methods.
4993 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4994 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4995 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4996 (dw2_symtab_iter_next, dw2_print_stats)
4997 (dw2_expand_symtabs_with_fullname)
4998 (dw2_expand_symtabs_matching_one)
4999 (dw_expand_symtabs_matching_file_matcher)
5000 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
5001 (dw2_debug_names_iterator::next)
5002 (dw2_debug_names_map_matching_symbols)
5003 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
5004 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
5005 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
5006 New methods.
5007 (get_compunit_symtab, process_full_comp_unit)
5008 (process_full_type_unit): Update.
5009 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
5010
5989a64e
SM
50112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5012
5013 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
5014 then introduce a new dwarf2_per_objfile type.
5015 <read_line_string>: Move to the new dwarf2_per_objfile type.
5016 <objfile>: Likewise.
5017 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
5018 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
5019 dwarf2_per_objfile->per_bfd.
5020 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
5021 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
5022 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
5023 (dwarf2_per_bfd::free_cached_comp_units): ... this.
5024 (dwarf2_has_info): Allocate dwarf2_per_bfd.
5025 (dwarf2_per_objfile::locate_sections): Rename to...
5026 (dwarf2_per_bfd::locate_sections): ... this.
5027 (dwarf2_per_objfile::get_cutu): Rename to...
5028 (dwarf2_per_bfd::get_cutu): ... this.
5029 (dwarf2_per_objfile::get_cu): Rename to...
5030 (dwarf2_per_bfd::get_cu): ... this.
5031 (dwarf2_per_objfile::get_tu): Rename to...
5032 (dwarf2_per_bfd::get_tu): ... this.
5033 (dwarf2_per_objfile::allocate_per_cu): Rename to...
5034 (dwarf2_per_bfd::allocate_per_cu): ... this.
5035 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
5036 (dwarf2_per_bfd::allocate_signatured_type): ... this.
5037 (get_gdb_index_contents_ftype): Change parameter from
5038 dwarf2_per_objfile to dwarf2_per_bfd.
5039 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
5040 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
5041
a50264ba
TT
50422020-05-27 Tom Tromey <tom@tromey.com>
5043 Simon Marchi <simon.marchi@efficios.com>
5044
5045 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
5046 (allocate_piece_closure): Set "per_objfile" member.
5047 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
5048 (locexpr_describe_location, loclist_describe_location): Use new
5049 member.
5050 * dwarf2/read.c (read_call_site_scope)
5051 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
5052 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
5053 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
5054 handle_data_member_location): Set per_objfile member.
5055 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
5056 member.
5057 (struct dwarf2_loclist_baton) <per_objfile>: New member.
5058
d3473f0c
TT
50592020-05-27 Tom Tromey <tom@tromey.com>
5060
5061 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
5062 allocate_signatured_type>: Declare new methods.
5063 <m_num_psymtabs>: New member.
5064 (struct dwarf2_per_cu_data) <index>: New member.
5065 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
5066 (dwarf2_per_objfile::allocate_signatured_type): New methods.
5067 (create_cu_from_index_list): Use allocate_per_cu.
5068 (create_signatured_type_table_from_index)
5069 (create_signatured_type_table_from_debug_names)
5070 (create_debug_type_hash_table, add_type_unit)
5071 (read_comp_units_from_section): Use allocate_signatured_type.
5072
5717c425
TT
50732020-05-27 Tom Tromey <tom@tromey.com>
5074
5075 * psymtab.c (partial_map_expand_apply)
5076 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5077 (psym_lookup_global_symbol_language)
5078 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5079 (psym_print_stats, psym_expand_symtabs_for_function)
5080 (psym_map_symbol_filenames, psym_map_matching_symbols)
5081 (psym_expand_symtabs_matching)
5082 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5083 (maintenance_check_psymtabs): Update.
5084 * psympriv.h (struct partial_symtab) <readin_p,
5085 get_compunit_symtab>: Add objfile parameter.
5086 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
5087 Likewise.
5088 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
5089 get_compunit_symtab>: Likewise.
5090 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
5091
45940949
TT
50922020-05-27 Tom Tromey <tom@tromey.com>
5093
5094 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
5095 member.
5096 * dwarf2/read.c (delete_file_name_entry): Fix comment.
5097 (create_cu_from_index_list)
5098 (create_signatured_type_table_from_index)
5099 (create_signatured_type_table_from_debug_names)
5100 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
5101 (dwarf2_create_include_psymtab)
5102 (create_debug_type_hash_table, add_type_unit)
5103 (create_type_unit_group, read_comp_units_from_section)
5104 (dwarf2_compute_name, create_cus_hash_table)
5105 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5106 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
5107 obstack.
5108 (dw2_get_real_path): Likewise. Change argument to
5109 dwarf2_per_objfile.
5110
f8c6d152
LM
51112020-05-27 Luis Machado <luis.machado@linaro.org>
5112
5113 PR tdep/26000
5114 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
5115 for ldrd (immediate).
5116
e98d2e6d
PW
51172020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5118
5119 * command.h: Add comment giving the name of class_tui.
5120 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
5121 create the fake command for the help for class_tui.
5122
53a47a3e
TT
51232020-05-26 Tom Tromey <tromey@adacore.com>
5124
5125 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
5126 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
5127 (val_atr): New function.
5128 (value_val_atr): Use it.
5129 * ada-valprint.c (print_optional_low_bound): Change low bound
5130 handling for enums.
5131 (val_print_packed_array_elements): Don't call discrete_position.
5132 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
5133 discrete_position for enum types.
5134 * language.c (default_print_array_index): Change type.
5135 * language.h (struct language_defn) <la_print_array_index>: Add
5136 index_type parameter, change type of index_value.
5137 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
5138 (default_print_array_index): Update.
5139 * valprint.c (maybe_print_array_index): Don't call
5140 value_from_longest. Update.
5141 (value_print_array_elements): Don't call discrete_position.
5142
0bc2354b
TT
51432020-05-26 Tom Tromey <tromey@adacore.com>
5144
5145 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
5146 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
5147
1218a4bf
CDA
51482020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
5149
5150 PR gdb/13519
5151 * avr-tdep.c (avr_integer_to_address): Return data or code
5152 address accordingly to the second 'type' argument of the
5153 function.
5154
92651b1d
MW
51552020-05-25 Michael Weghorn <m.weghorn@posteo.de>
5156
5157 * infcmd.c, inferior.h: (construct_inferior_arguments):
5158 Moved function from here to gdbsupport/common-inferior.{h,cc}
5159
0a4f5f8c
TT
51602020-05-23 Tom Tromey <tom@tromey.com>
5161
5162 Revert commit eca1f90c:
5163 * NEWS: Remove entry for completion styling.
5164 * completer.c (_rl_completion_prefix_display_length): Move
5165 declaration later.
5166 (gdb_fnprint): Revert.
5167 (gdb_display_match_list_1): Likewise.
5168 * cli/cli-style.c (completion_prefix_style)
5169 (completion_difference_style, completion_suffix_style): Remove.
5170 (_initialize_cli_style): Revert.
5171 * cli/cli-style.h (completion_prefix_style)
5172 (completion_difference_style, completion_suffix_style): Don't
5173 declare.
5174
e08bd6c5
PA
51752020-05-24 Pedro Alves <palves@redhat.com>
5176
5177 * symtab.c (completion_list_add_name): Return boolean indication
5178 of whether the symbol matched.
5179 (completion_list_add_symbol): Don't try to remove C++ aliases if
5180 the symbol didn't match in the first place.
5181 * symtab.h (completion_list_add_name): Return bool.
5182
ceacbf6e
SM
51832020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
5184
5185 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
5186 type::field.
5187
26f16254
JB
51882020-05-23 Joel Brobecker <brobecker@adacore.com>
5189
5190 GDB 9.2 released.
5191
eca1f90c
TT
51922020-05-23 Tom Tromey <tom@tromey.com>
5193
5194 * NEWS: Add entry for completion styling.
5195 * completer.c (_rl_completion_prefix_display_length): Move
5196 declaration earlier.
5197 (gdb_fnprint): Use completion_style.
5198 (gdb_display_match_list_1): Likewise.
5199 * cli/cli-style.c (completion_prefix_style)
5200 (completion_difference_style, completion_suffix_style): New
5201 globals.
5202 (_initialize_cli_style): Register new globals.
5203 * cli/cli-style.h (completion_prefix_style)
5204 (completion_difference_style, completion_suffix_style): Declare.
5205
51e2cfa2
PA
52062020-05-23 Pedro Alves <palves@redhat.com>
5207
5208 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
5209 (parse_escape): Use ISDIGIT instead of isdigit.
5210 (puts_debug): Use gdb_isprint instead of isprint.
5211 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
5212 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
5213 ISSPACE instead of isspace.
5214 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
5215 instead of isspace.
5216 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
5217 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
5218 instead of isxdigit and ISDIGIT instead of isdigit.
5219
80fc5e77
SM
52202020-05-22 Simon Marchi <simon.marchi@efficios.com>
5221
5222 * gdbtypes.h (struct type) <field>: New method.
5223 (TYPE_FIELDS): Remove, replace all uses with either type::fields
5224 or type::field.
5225
3cabb6b0
SM
52262020-05-22 Simon Marchi <simon.marchi@efficios.com>
5227
5228 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
5229 (TYPE_FIELDS): Use type::fields. Change all call sites that
5230 modify the propery to use type::set_fields instead.
5231
1f704f76
SM
52322020-05-22 Simon Marchi <simon.marchi@efficios.com>
5233
5234 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
5235 type::num_fields instead.
5236
5e33d5f4
SM
52372020-05-22 Simon Marchi <simon.marchi@efficios.com>
5238
5239 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
5240 methods.
5241 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
5242 that modify the number of fields to use type::set_num_fields
5243 instead.
5244
9392ebb3
TT
52452020-05-22 Tom Tromey <tromey@adacore.com>
5246
5247 * compile/compile-object-load.h (munmap_list_free): Don't
5248 declare.
5249
7c13f4e8
AB
52502020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
5251
5252 * annotate.c (annotate_source_line): Update return type, add call
5253 to update current symtab and line.
5254 * annotate.h (annotate_source_line): Update return type, and
5255 extend header comment.
5256 * source.c (info_line_command): Check annotation_level before
5257 calling annotate_source_line.
5258 * stack.c (print_frame_info): If calling annotate_source_line
5259 returns true, then don't print any other source line information.
5260
aa370940
SM
52612020-05-21 Simon Marchi <simon.marchi@efficios.com>
5262
5263 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5264
84d53fa9
SM
52652020-05-21 Simon Marchi <simon.marchi@efficios.com>
5266
5267 * coffread.c (patch_type): Remove NULL check before xfree.
5268 * corefile.c (set_gnutarget): Likewise.
5269 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5270 * exec.c (build_section_table): Likewise.
5271 * remote.c (remote_target::pass_signals): Likewise.
5272 * utils.c (n_spaces): Likewise.
5273 * cli/cli-script.c (document_command): Likewise.
5274 * i386-windows-tdep.c (core_process_module_section): Likewise.
5275 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5276
9d428aae
SM
52772020-05-20 Simon Marchi <simon.marchi@efficios.com>
5278
5279 * symfile.c (reread_symbols): Clear objfile's section_offsets
5280 vector and section indices, re-compute them by calling
5281 sym_offsets.
5282
250106a7
TT
52832020-05-20 Tom Tromey <tromey@adacore.com>
5284
5285 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 5286 (desc_one_bound, desc_index_type): Compute field name.
250106a7 5287
9a0bacfb
TV
52882020-05-20 Tom de Vries <tdevries@suse.de>
5289
5290 PR symtab/25833
5291 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5292
7b958a48
AM
52932020-05-20 Alan Modra <amodra@gmail.com>
5294
5295 PR 25993
5296 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5297 bfd_set_filename.
5298 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5299 passed to bfd_set_filename.
5300 * symfile-mem.c (add_vsyscall_page): Likewise for string
5301 passed to symbol_file_add_from_memory.
5302 (symbol_file_add_from_memory): Make name param a const char* and
5303 don't strdup.
5304
c7e97679
AM
53052020-05-20 Alan Modra <amodra@gmail.com>
5306
5307 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5308 rather than accessing bfd->filename directly.
5309 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5310 and use bfd_section_name.
5311 * dwarf2/frame.c (decode_frame_entry): Likewise.
5312 * exec.c (exec_set_section_address): Likewise.
5313 * solib-aix.c (solib_aix_bfd_open): Likewise.
5314 * stap-probe.c (get_stap_base_address): Likewise.
5315 * symfile.c (reread_symbols): Likewise.
5316
563c591b
TT
53172020-05-19 Tom Tromey <tromey@adacore.com>
5318
5319 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5320
f408d82c
SM
53212020-05-19 Simon Marchi <simon.marchi@efficios.com>
5322
5323 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5324
98c59b52
PA
53252020-05-19 Pedro Alves <palves@redhat.com>
5326
5327 * NEWS (set exec-file-mismatch): Adjust entry.
5328 * exec.c: Include "build-id.h".
5329 (validate_exec_file): Try to match build IDs instead of filenames.
5330 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5331 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5332 and pass down 'warn_if_slow'.
5333 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5334 gdb_bfd_open_closure to pass it down.
5335 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5336
4111f652
PA
53372020-05-19 Pedro Alves <palves@redhat.com>
5338
5339 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5340 * target.c (target_fileio_open_1): Rename to target_fileio_open
5341 and make extern. Use bool.
5342 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5343 (target_fileio_read_alloc_1): Adjust.
5344 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5345 (target_fileio_open_warn_if_slow): Delete declaration.
5346
ad80db5b
PA
53472020-05-19 Pedro Alves <palves@redhat.com>
5348
5349 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5350 Adjust all callers.
5351
1d6ce4d3
YS
53522020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5353
5354 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5355 whether disp is negative.
5356
9005fbbb
SM
53572020-05-19 Simon Marchi <simon.marchi@efficios.com>
5358
5359 * symfile.h (struct symfile_segment_data)
5360 <~symfile_segment_data>: Remove.
5361 <segment_info>: Change to std::vector.
5362 * symfile.c (default_symfile_segments): Update.
5363 * elfread.c (elf_symfile_segments): Update.
5364
68b888ff
SM
53652020-05-19 Simon Marchi <simon.marchi@efficios.com>
5366
5367 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5368 <segments>: New.
5369 <segment_bases, segment_sizes>: Remove.
5370 * symfile.c (default_symfile_segments): Update.
5371 * elfread.c (elf_symfile_segments): Update.
5372 * remote.c (remote_target::get_offsets): Update.
5373 * solib-target.c (solib_target_relocate_section_addresses):
5374 Update.
5375
62982abd
SM
53762020-05-19 Simon Marchi <simon.marchi@efficios.com>
5377
5378 * symfile.h (struct symfile_segment_data): Initialize fields.
5379 <~symfile_segment_data>: Add.
5380 (symfile_segment_data_up): New.
5381 (struct sym_fns) <sym_segments>: Return a
5382 symfile_segment_data_up.
5383 (default_symfile_segments): Return a symfile_segment_data_up.
5384 (free_symfile_segment_data): Remove.
5385 (get_symfile_segment_data): Return a symfile_segment_data_up.
5386 * symfile.c (default_symfile_segments): Likewise.
5387 (get_symfile_segment_data): Likewise.
5388 (free_symfile_segment_data): Remove.
5389 (symfile_find_segment_sections): Update.
5390 * elfread.c (elf_symfile_segments): Return a
5391 symfile_segment_data_up.
5392 * remote.c (remote_target::get_offsets): Update.
5393 * solib-target.c (solib_target_relocate_section_addresses):
5394 Update.
5395 * symfile-debug.c (debug_sym_segments): Return a
5396 symfile_segment_data_up.
5397
7f204339
RO
53982020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5399
e52a0f1b
RO
5400 PR build/25981
5401 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5402 Hardcode register numbers.
5403
7f204339
RO
5404 PR build/25981
5405 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5406 procfs_find_LDT_entry): Remove.
5407 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5408 procfs_find_LDT_entry): Remove.
5409 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5410 Remove.
5411
7f32a4d5
PA
54122020-05-17 Pedro Alves <palves@redhat.com>
5413 Andrew Burgess <andrew.burgess@embecosm.com>
5414 Keno Fischer <keno@juliacomputing.com>
5415
5416 PR gdb/25741
5417 * breakpoint.c (build_target_condition_list): Update comments.
5418 (build_target_command_list): Update comments and skip matching
5419 locations.
5420 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5421 a separate function. Simplify "set breakpoint auto-hw off"
5422 handling.
5423 (insert_breakpoints): Update comment.
5424 (tracepoint_locations_match): New parameter. For breakpoints,
5425 compare location types too, if the caller wants to.
5426 (handle_automatic_hardware_breakpoints): New functions.
5427 (bp_location_is_less_than): Also sort by location type and
5428 hardware breakpoint length.
5429 (update_global_location_list): Handle "set breakpoint auto-hw on"
5430 here.
5431 (update_breakpoint_locations): Ask breakpoint_locations_match to
5432 ignore location types.
5433
7d93a1e0
SM
54342020-05-16 Simon Marchi <simon.marchi@efficios.com>
5435
5436 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5437 type::name instead.
5438
d0e39ea2
SM
54392020-05-16 Simon Marchi <simon.marchi@efficios.com>
5440
5441 * gdbtypes.h (struct type) <name, set_name>: New methods.
5442 (TYPE_CODE): Use type::name. Change all call sites used to set
5443 the name to use type::set_name instead.
5444
2dab0c7b
TT
54452020-05-16 Tom Tromey <tom@tromey.com>
5446
5447 * top.c (quit_force): Update.
5448 * infrun.c (handle_no_resumed): Update.
5449 * top.h (all_uis): New function.
5450 (ALL_UIS): Remove.
5451
59f7bd8d
SM
54522020-05-16 Simon Marchi <simon.marchi@efficios.com>
5453
5454 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5455
9bf058f0
PA
54562020-05-16 Pedro Alves <palves@redhat.com>
5457
5458 * ia64-linux-nat.c
5459 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5460 Declare method.
5461 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5462
8f86ae1a
SM
54632020-05-15 Simon Marchi <simon.marchi@efficios.com>
5464
5465 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5466 (sparc64_adi_info): Likewise.
5467
d6bc0792
TT
54682020-05-15 Tom Tromey <tom@tromey.com>
5469
5470 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5471 block_objfile.
5472 (lookup_objfile_from_block): Remove.
5473 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5474 (lookup_global_symbol): Use block_objfile.
5475 * symtab.h (lookup_objfile_from_block): Don't declare.
5476 * printcmd.c (clear_dangling_display_expressions): Use
5477 block_objfile.
5478 * parse.c (operator_check_standard): Use block_objfile.
5479
8c14c3a3
TT
54802020-05-15 Tom Tromey <tom@tromey.com>
5481
5482 * language.c (language_alloc_type_symbol): Set
5483 SYMBOL_SECTION.
5484 * symtab.c (initialize_objfile_symbol): Remove.
5485 (allocate_symbol): Remove.
5486 (allocate_template_symbol): Remove.
5487 * dwarf2/read.c (fixup_go_packaging): Use "new".
5488 (new_symbol): Use "new".
5489 (read_variable): Don't call initialize_objfile_symbol. Use
5490 "new".
5491 (read_func_scope): Use "new".
5492 * xcoffread.c (process_xcoff_symbol): Don't call
5493 initialize_objfile_symbol.
5494 (SYMBOL_DUP): Remove.
5495 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5496 "new".
5497 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5498 (allocate_template_symbol): Don't declare.
5499 (struct symbol): Add copy constructor. Change defaults.
5500 * jit.c (finalize_symtab): Use "new".
5501 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5502 Use "new".
5503 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5504 (common_block_end): Use "new".
5505 * mdebugread.c (parse_symbol): Use "new".
5506 (new_symbol): Likewise.
5507
5b4a1a8d
PW
55082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5509
5510 * NEWS: Mention changes to help and apropos.
5511
57b4f16e
PW
55122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5513
5514 * command.h (enum command_class): Improve comments, document
5515 that class_alias is for user-defined aliases, give the class
5516 name for each class, remove unused class_xdb.
5517 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5518 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5519 by a precise class.
5520 * infcmd.c (_initialize_infcmd): Likewise.
5521 * reverse.c (_initialize_reverse): Likewise.
5522 * stack.c (_initialize_stack): Likewise.
5523 * symfile.c (_initialize_symfile): Likewise.
5524 * tracepoint.c (_initialize_tracepoint): Likewise.
5525
7c05caf7
PW
55262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5527
5528 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5529 when their aliased command is traversed.
5530 (help_cmd): Add fput_command_names_styled call to
5531 output command name and aliases when command has an alias.
5532
3b3aaacb
PW
55332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5534
5535 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5536 * cli/cli-decode.c (help_cmd_list): Declare as static,
5537 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5538 a command together with the command.
5539 (fput_command_name_styled, fput_command_names_styled): New functions.
5540 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5541 fput_command_name_styled.
5542 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5543 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5544
7aa1b46f
PW
55452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5546
5547 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5548 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5549 * command.h (cmd_show_list): Likewise.
5550 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5551 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5552
89bcba74
PW
55532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5554
5555 * unittests/command-def-selftests.c (traverse_command_structure):
5556 Verify all commands of a list have the same prefix command and
5557 that only the top cmdlist commands have a null prefix.
5558
3f4d92eb
PW
55592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5560
5561 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5562 as prefix, not one of its aliases.
5563 (set_cmd_prefix): Remove.
5564 (do_add_cmd): Centralize the setting of the prefix of a command, when
5565 command is defined after its full chain of prefix commands.
5566 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5567 (add_setshow_cmd_full): Likewise.
5568 (update_prefix_field_of_prefixed_commands): New function.
5569 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5570 update_prefix_field_of_prefixed_commands.
5571 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5572 addresses of remote_set_cmdlist and remote_show_cmdlist given
5573 as argument, not the address of an argument.
5574 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5575 * gdb/remote.c (_initialize_remote): Likewise.
5576
0605465f
PW
55772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5578
5579 * cli/cli-cmds.c (alias_command): Check for an existing alias
5580 using lookup_cmd_composition, as valid_command_p is too strict
5581 and forbids aliases that are the prefix of an existing alias
5582 or command.
5583 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5584 command is properly recognised as a valid command.
5585
58e6ac70
PW
55862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5587
5588 * unittests/help-doc-selftests.c: Rename to
5589 unittests/command-def-selftests.c
5590 * unittests/command-def-selftests.c (help_doc_tests): Update some
5591 comments.
5592 (command_structure_tests, traverse_command_structure): New namespace
5593 and function.
5594 (command_structure_invariants_tests): New function.
5595 (_initialize_command_def_selftests) Renamed from
5596 _initialize_help_doc_selftests, register command_structure_invariants
5597 selftest.
5598
a7b9ceb8
PW
55992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5600
5601 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5602 an alias of 'show'.
5603
b2188a06
JB
56042020-05-15 Joel Brobecker <brobecker@adacore.com>
5605
5606 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5607 ada_is_fixed_point_type. Update all callers.
5608 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5609 all callers.
5610 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5611 Update all callers.
5612 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5613 print_fixed_point_type. Update all callers.
5614 * ada-valprint.c (ada_value_print_num): Replace call to
5615 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5616
a51951c2
KB
56172020-05-14 Kevin Buettner <kevinb@redhat.com>
5618
5619 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5620 processors.
5621 (cpu_supports_bts): Add CV_AMD case.
5622
29d6859f
LM
56232020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5624 Simon Marchi <simon.marchi@efficios.com>
5625
5626 * infrun.c (stop_all_threads): Collect multiple wait events at
5627 each pass.
5628
78134374
SM
56292020-05-14 Simon Marchi <simon.marchi@efficios.com>
5630
5631 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5632 type::code instead.
5633
67607e24
SM
56342020-05-14 Simon Marchi <simon.marchi@efficios.com>
5635
5636 * gdbtypes.h (struct type) <code, set_code>: New methods.
5637 (TYPE_CODE): Use type::code. Change all call sites used to set
5638 the code to use type::set_code instead.
5639
a05575d3
TBA
56402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5641 Tom de Vries <tdevries@suse.de>
5642 Pedro Alves <palves@redhat.com>
5643
5644 PR threads/25478
5645 * infrun.c (stop_all_threads): Do NOT ignore
5646 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5647 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5648 received.
5649 (handle_no_resumed): Remove code handling a live inferior with no
5650 threads.
5651 * remote.c (has_single_non_exited_thread): New.
5652 (remote_target::update_thread_list): Do not delete a thread if is
5653 the last thread of the process.
5654 * thread.c (thread_select): Call delete_exited_threads instead of
5655 prune_threads.
5656
6ad82919
TBA
56572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5658
5659 * infrun.c (stop_all_threads): Enable/disable thread events of all
5660 targets. Move a debug message denoting the end of the function
5661 into the SCOPED_EXIT block.
5662
d890404b
TBA
56632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5664
5665 * process-stratum-target.h: Include <set>.
5666 (all_non_exited_process_targets, switch_to_target_no_thread): New
5667 function declarations.
5668 * process-stratum-target.c (all_non_exited_process_targets)
5669 (switch_to_target_no_thread): New function implementations.
5670
293b3ebc
TBA
56712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5672
5673 * infrun.c (handle_inferior_event): Extract out a piece of code
5674 into...
5675 (mark_non_executing_threads): ...this new function.
5676
7ca9b62a
TBA
56772020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5678
5679 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5680 use.
5681
fc75c28b
TBA
56822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5683
5684 * regcache.c (regcache_read_pc_protected): New function
5685 implementation that returns 0 if the PC cannot read via
5686 'regcache_read_pc'.
5687 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5688 instead of 'regcache_read_pc'.
5689 (keep_going_pass_signal): Ditto.
5690
a89febbd
TT
56912020-05-13 Tom Tromey <tromey@adacore.com>
5692
5693 * ada-lang.c (align_value): Remove.
5694 (ada_template_to_fixed_record_type_1): Use align_up.
5695
f7e23710
TBA
56962020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5697
5698 * async-event.c: Update the copyright year.
5699 * async-event.h: Update the copyright year.
5700
02ff80c2
SM
57012020-05-12 Simon Marchi <simon.marchi@efficios.com>
5702
5703 * objfiles.h (is_addr_in_objfile,
5704 shared_objfile_contains_address_p): Return bool.
5705 * objfile.c (is_addr_in_objfile,
5706 shared_objfile_contains_address_p): Return bool.
5707
4fd6c7e8
TT
57082020-05-11 Tom Tromey <tromey@adacore.com>
5709
5710 * cli/cli-cmds.c (info_command): Restore.
5711 (_initialize_cli_cmds): Use add_prefix_command for "info".
5712 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5713
5eb68a39
TT
57142020-05-11 Tom Tromey <tromey@adacore.com>
5715
5716 * ada-lang.c (ada_value_primitive_field): Now public.
5717 * ada-lang.h (ada_value_primitive_field): Declare.
5718 * ada-valprint.c (print_field_values): Use
5719 ada_value_primitive_field for wrapper fields.
5720
7666722f
TV
57212020-05-11 Tom de Vries <tdevries@suse.de>
5722
5723 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5724 MODULE_DOMAIN.
5725
3ee6bb11
TV
57262020-05-11 Tom de Vries <tdevries@suse.de>
5727
5728 PR symtab/25941
5729 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5730 with length 0, if not gdb-produced.
5731 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5732
43434996
TV
57332020-05-09 Tom de Vries <tdevries@suse.de>
5734
5735 PR gdb/25955
5736 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5737 calculation.
5738
2f78cffc
TT
57392020-05-09 Tom Tromey <tom@tromey.com>
5740
5741 * top.c (server_command): Now bool.
5742 * top.h (server_command): Now bool.
5743
4f7bc5ed
TT
57442020-05-08 Tom Tromey <tromey@adacore.com>
5745
5746 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5747 already being processed.
5748
8be4b118
TT
57492020-05-08 Tom Tromey <tom@tromey.com>
5750
5751 * printcmd.c (struct display) <next>: Remove.
5752 <display>: New constructor.
5753 <exp_string>: Now a std::string.
5754 <enabled_p>: Now a bool.
5755 (display_number): Move definition earlier.
5756 (displays): Rename from display_chain. Now a std::vector.
5757 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5758 (display_command): Update.
5759 (do_one_display, disable_display)
5760 (enable_disable_display_command, do_enable_disable_display):
5761 Update.
5762 (free_display): Remove.
5763 (clear_displays): Rewrite.
5764 (delete_display): Update.
5765 (map_display_numbers): Use function_view. Remove "data"
5766 parameter. Update.
5767 (do_delete_display): Remove.
5768 (undisplay_command): Update.
5769 (do_one_display, do_displays, disable_display)
5770 (info_display_command): Update.
5771 (do_enable_disable_display): Remove.
5772 (enable_disable_display_command)
5773 (clear_dangling_display_expressions): Update.
5774
94c93c35
TT
57752020-05-08 Tom Tromey <tom@tromey.com>
5776
5777 * symtab.c (set_symbol_cache_size)
5778 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5779 (maintenance_print_symbol_cache_statistics): Update.
5780 * symmisc.c (print_symbol_bcache_statistics)
5781 (print_objfile_statistics, maintenance_print_objfiles)
5782 (maintenance_info_symtabs, maintenance_check_symtabs)
5783 (maintenance_expand_symtabs, maintenance_info_line_tables):
5784 Update.
5785 * symfile-debug.c (set_debug_symfile): Update.
5786 * source.c (forget_cached_source_info): Update.
5787 * python/python.c (gdbpy_progspaces): Update.
5788 * psymtab.c (maintenance_info_psymtabs): Update.
5789 * probe.c (parse_probes): Update.
5790 * linespec.c (iterate_over_all_matching_symtabs)
5791 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5792 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5793 * exec.c (exec_target::close): Update.
5794 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5795 * breakpoint.c (print_one_breakpoint_location)
5796 (create_longjmp_master_breakpoint)
5797 (create_std_terminate_master_breakpoint): Update.
5798 * progspace.c (program_spaces): Now a std::vector.
5799 (maybe_new_address_space): Update.
5800 (add_program_space): Remove.
5801 (program_space::program_space): Update.
5802 (remove_program_space): Update.
5803 (number_of_program_spaces): Remove.
5804 (print_program_space, update_address_spaces): Update.
5805 * progspace.h (program_spaces): Change type.
5806 (ALL_PSPACES): Remove.
5807 (number_of_program_spaces): Don't declare.
5808 (struct program_space) <next>: Remove.
5809
a1fd1ac9
TT
58102020-05-08 Tom Tromey <tom@tromey.com>
5811
5812 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5813 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5814 (enable_break): Update.
5815 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5816 (frv_fdpic_find_canonical_descriptor): Update.
5817 (frv_fetch_objfile_link_map): Update.
5818 * progspace.c (program_space::free_all_objfiles): Update.
5819 (program_space::solibs): New method.
5820 * progspace.h (struct program_space) <solibs>: New method.
5821 * solist.h (master_so_list): Don't declare.
5822 (ALL_SO_LIBS): Remove.
5823 * solib.h (so_list_head): Remove.
5824 (update_solib_list): Update comment.
5825 * solib.c (master_so_list): Remove.
5826 (solib_used, update_solib_list, solib_add)
5827 (info_sharedlibrary_command, clear_solib)
5828 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5829
38eae084
TT
58302020-05-08 Tom Tromey <tom@tromey.com>
5831
5832 * extension.c (extension_languages): Now a std::array.
5833 (ALL_EXTENSION_LANGUAGES): Remove.
5834 (get_ext_lang_defn, get_ext_lang_of_file)
5835 (eval_ext_lang_from_control_command): Update.
5836 (finish_ext_lang_initialization)
5837 (auto_load_ext_lang_scripts_for_objfile)
5838 (ext_lang_type_printers::ext_lang_type_printers)
5839 (apply_ext_lang_type_printers)
5840 (ext_lang_type_printers::~ext_lang_type_printers)
5841 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5842 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5843 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5844 (get_matching_xmethod_workers, ext_lang_colorize)
5845 (ext_lang_before_prompt): Update.
5846 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5847
596dc4ad
TT
58482020-05-08 Tom Tromey <tom@tromey.com>
5849
5850 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5851 overload.
5852 <swap_string, m_string>: Remove.
5853 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5854 Update.
5855 * stabsread.c (define_symbol, read_type): Update.
5856 * linespec.c (find_linespec_symbols): Update.
5857 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5858 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5859 * dbxread.c (read_dbx_symtab): Update.
5860 * cp-support.h (cp_canonicalize_string_full)
5861 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5862 Return unique_xmalloc_ptr.
5863 * cp-support.c (inspect_type): Update.
5864 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5865 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5866 Likewise.
5867 * c-typeprint.c (print_name_maybe_canonical): Update.
5868 * break-catch-throw.c (check_status_exception_catchpoint):
5869 Update.
5870
bf4cb9be
TV
58712020-05-08 Tom de Vries <tdevries@suse.de>
5872
5873 * infrun.c (follow_fork): Copy current_line and current_symtab to
5874 child thread.
5875
a1b68f28
SM
58762020-05-07 Simon Marchi <simon.marchi@efficios.com>
5877
5878 * async-event.c (struct async_signal_handler, struct
5879 async_event_handler): Reformat, remove typedef.
5880
98d48915
SM
58812020-05-07 Simon Marchi <simon.marchi@efficios.com>
5882
5883 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5884 access thistype->main_type->dyn_prop_list directly.
5885
7aa91313
SM
58862020-05-07 Simon Marchi <simon.marchi@efficios.com>
5887
5888 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5889 (remove_dyn_prop): Remove. Update all users to use
5890 type::remove_dyn_prop.
5891 * gdbtypes.c (remove_dyn_prop): Rename to...
5892 (type::remove_dyn_prop): ... this.
5893
5c54719c
SM
58942020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5895
5896 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5897 (add_dyn_prop): Remove. Update all users to use
5898 type::add_dyn_prop.
5899 * gdbtypes.c (add_dyn_prop): Rename to...
5900 (type::add_dyn_prop): ... this.
5901
24e99c6c
SM
59022020-05-07 Simon Marchi <simon.marchi@efficios.com>
5903
5904 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5905 (get_dyn_prop): Remove. Update all users to use
5906 type::dyn_prop.
5907 * gdbtypes.c (get_dyn_prop): Rename to...
5908 (type::dyn_prop): ... this.
5909
0d4bf016
SM
59102020-05-06 Simon Marchi <simon.marchi@efficios.com>
5911
5912 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5913
ac4a4f1c
SM
59142020-05-06 Simon Marchi <simon.marchi@efficios.com>
5915
5916 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5917 instruction, skip it if it's there.
5918
a3bbacc1
SM
59192020-05-05 Simon Marchi <simon.marchi@efficios.com>
5920
5921 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5922
c3236f84
SM
59232020-05-04 Simon Marchi <simon.marchi@efficios.com>
5924
5925 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5926 * gdbtypes.c (recursive_dump_type): Remove use of
5927 TYPE_INCOMPLETE.
5928
3b6acaee
TT
59292020-05-03 Tom Tromey <tom@tromey.com>
5930
5931 * breakpoint.c (catch_command, tcatch_command): Remove.
5932 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5933 add_show_prefix_cmd.
5934 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5935 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5936 Remove.
5937 (add_internal_problem_command): Use add_basic_prefix_cmd,
5938 add_show_prefix_cmd.
5939 * mips-tdep.c (set_mipsfpu_command): Remove.
5940 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5941 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5942 (_initialize_index_cache): Use add_basic_prefix_cmd.
5943 * memattr.c (dummy_cmd): Remove.
5944 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5945 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5946 (_initialize_tui_win): Use add_basic_prefix_cmd,
5947 add_show_prefix_cmd.
5948 * cli/cli-logging.c (set_logging_command): Remove.
5949 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5950 add_show_prefix_cmd.
5951 (show_logging_command): Remove.
5952 * target.c (target_command): Remove.
5953 (add_target): Use add_basic_prefix_cmd.
5954
a51119cd
HD
59552020-05-02 Hannes Domani <ssbssa@yahoo.de>
5956
5957 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5958
652fc23a 59592020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5960
652fc23a
PW
5961 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5962 info_command.
5963
117539e6
KR
59642020-04-30 Kamil Rytarowski <n54@gmx.com>
5965
5966 * nbsd-nat.c (nbsd_enable_proc_events)
5967 (nbsd_nat_target::post_startup_inferior): Add.
5968 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5969 (nbsd_nat_target::update_thread_list): Rewrite.
5970 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5971 "PTRACE_LWP_CREATE".
5972 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5973
102e38eb 59742020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5975
102e38eb
PW
5976 * stack.c (_initialize_stack): Remove duplicated creation
5977 of "frame" command and "f" alias.
5978
ee9d1e5f
HD
59792020-04-30 Hannes Domani <ssbssa@yahoo.de>
5980
5981 PR gdb/18706
5982 * gdbtypes.c (check_typedef): Calculate size of array of
5983 stubbed type.
5984
627c7fb8
HD
59852020-04-30 Hannes Domani <ssbssa@yahoo.de>
5986
5987 PR gdb/15559
5988 * i386-tdep.c (i386_push_dummy_call): Call
5989 i386_thiscall_push_dummy_call.
5990 (i386_thiscall_push_dummy_call): New function.
5991 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5992 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5993 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5994
ffc2844e
SM
59952020-04-29 Simon Marchi <simon.marchi@efficios.com>
5996
5997 * gdbarch.sh (do_read): Add shellcheck disable directive for
5998 warning SC2162.
5999
1207375d
SM
60002020-04-29 Simon Marchi <simon.marchi@efficios.com>
6001
6002 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
6003 "referenced but not assigned" warning.
6004
9fdb2916
SM
60052020-04-29 Simon Marchi <simon.marchi@efficios.com>
6006
6007 * gdbarch.sh: Remove code that sets fallbackdefault.
6008
759cea5e
SM
60092020-04-29 Simon Marchi <simon.marchi@efficios.com>
6010
6011 * gdbarch.sh: Use shell operators && and || instead of
6012 -a and -o.
6013
cb02ab24
SM
60142020-04-29 Simon Marchi <simon.marchi@efficios.com>
6015
6016 * gdbarch.sh: Use $(...) instead of `...`.
6017
a6fc5ffc
SM
60182020-04-29 Simon Marchi <simon.marchi@efficios.com>
6019
6020 * gdbarch.sh: Use double quotes around variables.
6021
8d113d13
SM
60222020-04-29 Simon Marchi <simon.marchi@efficios.com>
6023
6024 * gdbarch.sh: Use %s with printf, instead of variables in the
6025 format string.
6026
ed6acedd
TT
60272020-04-29 Tom Tromey <tromey@adacore.com>
6028
6029 PR ada/25875:
6030 * dwarf2/read.c (update_enumeration_type_from_children): Compute
6031 type fields here.
6032 (read_enumeration_type): Call
6033 update_enumeration_type_from_children later. Update comments.
6034 (process_enumeration_scope): Don't create type fields.
6035
b68b1b58
KR
60362020-04-29 Kamil Rytarowski <n54@gmx.com>
6037
6038 * nbsd-tdep.c: Include "xml-syscall.h".
6039 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
6040
f94b2e03
KR
60412020-04-29 Kamil Rytarowski <n54@gmx.com>
6042
6043 * nbsd-nat.c: Include "sys/wait.h".
6044 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
6045 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
6046 (nbsd_nat_target::remove_exec_catchpoint)
6047 (nbsd_nat_target::set_syscall_catchpoint): Add.
6048 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
6049 (nbsd_nat_target::insert_exec_catchpoint)
6050 (nbsd_nat_target::remove_exec_catchpoint)
6051 (nbsd_nat_target::set_syscall_catchpoint): Add.
6052 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
6053 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
6054 `nbsd_get_syscall_number'.
6055
fc49bc72
TT
60562020-04-29 Tom Tromey <tom@tromey.com>
6057
6058 * stack.c (print_block_frame_labels): Remove.
6059
d642b692
HD
60602020-04-29 Hannes Domani <ssbssa@yahoo.de>
6061
6062 PR gdb/17320
6063 * ada-valprint.c (val_print_packed_array_elements): Move array
6064 end bracket to new line.
6065 (ada_val_print_string): Remove extra spaces before first array
6066 element.
6067 * c-valprint.c (c_value_print_array): Likewise.
6068 * m2-valprint.c (m2_print_array_contents): Likewise.
6069 (m2_value_print_inner): Likewise.
6070 * p-valprint.c (pascal_value_print_inner): Likewise.
6071 * valprint.c (generic_val_print_array): Likewise.
6072 (value_print_array_elements): Move first array element and array
6073 end bracket to new line.
6074
ea90f227
TV
60752020-04-29 Tom de Vries <tdevries@suse.de>
6076
6077 PR symtab/25889
6078 * linespec.c (find_method): Fix ix calculation.
6079
4498ef4f
KR
60802020-04-28 Kamil Rytarowski <n54@gmx.com>
6081
6082 * syscalls/update-netbsd.sh: New file.
6083 * syscalls/netbsd.xml: Regenerate.
6084 * data-directory/Makefile.in: Register `netbsd.xml' in
6085 `SYSCALLS_FILES'.
6086
a55e30b5
SM
60872020-04-28 Simon Marchi <simon.marchi@efficios.com>
6088
6089 * syscalls/update-freebsd.sh: Add double quotes.
6090
2b2fbab8
TT
60912020-04-28 Tom Tromey <tom@tromey.com>
6092
6093 * NEWS: Update.
6094 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
6095 (cmdpy_init): Allow class_tui.
6096
a65189c9
TV
60972020-04-28 Mark Williams <mark@myosotissp.com>
6098
6099 PR gdb/24480
6100 * dwarf2read.c: Add missing assingments to list_in_scope when
6101 start_symtab was already called.
6102
1b95cdb7
SM
61032020-04-28 Simon Marchi <simon.marchi@efficios.com>
6104
6105 PR gdb/25881
6106 * dwarf2/read.c (offset_map_type): Use
6107 gdb:hash_enum<sect_offset> as hash function.
6108
15cd93d0
TV
61092020-04-28 Tom de Vries <tdevries@suse.de>
6110
6111 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
6112 with DW_AT_signature.
6113
1eb39914
SM
61142020-04-27 Simon Marchi <simon.marchi@efficios.com>
6115
6116 * configure.ac: Remove check for fs_base/gs_base in
6117 user_regs_struct.
6118 * configure: Re-generate.
6119 * config.in: Re-generate.
6120 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
6121 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
6122 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
6123
991a3e2e
LM
61242020-04-27 Luis Machado <luis.machado@linaro.org>
6125
6126 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
6127 problematic inline frame unwinding situation.
6128 * frame.c (frame_id_computed_p): New function.
6129 * frame.h (frame_id_computed_p): New prototype.
6130
361ba0e8
TT
61312020-04-26 Tom Tromey <tom@tromey.com>
6132
6133 * command.h (enum command_class) <class_pseudo>: Remove.
6134
bc3609fd
PW
61352020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6136
6137 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
6138 and whitespace.
6139
b9771db7
KR
61402020-04-25 Kamil Rytarowski <n54@gmx.com>
6141
ec16513e
SM
6142 * inf-ptrace.c (inf_ptrace_target::wait): Remove
6143 `PT_GET_PROCESS_STATE' block.
b9771db7 6144
7151c1af
TT
61452020-04-24 Tom Tromey <tom@tromey.com>
6146
6147 * symtab.h (symbol_get_demangled_name): Don't declare.
6148 * symtab.c (symbol_get_demangled_name): Remove.
6149 (general_symbol_info::natural_name)
6150 (general_symbol_info::demangled_name): Update.
6151
906bb4c5
TT
61522020-04-24 Tom Tromey <tom@tromey.com>
6153
6154 PR rust/25025:
6155 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
6156
bcfe6157
TT
61572020-04-24 Tom Tromey <tom@tromey.com>
6158
6159 PR symtab/12707:
6160 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
6161 exists.
6162 (new_symbol): Likewise.
6163 * compile/compile-object-load.c (get_out_value_type): Use
6164 symbol_matches_search_name.
6165
f049a313
TT
61662020-04-24 Tom Tromey <tom@tromey.com>
6167
6168 * dwarf2/read.c (add_partial_symbol): Do not call
6169 compute_and_set_names.
6170
76e288d1
TT
61712020-04-24 Tom Tromey <tom@tromey.com>
6172
6173 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
6174 overload.
6175
2467f4f6
TT
61762020-04-24 Tom Tromey <tom@tromey.com>
6177
6178 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
6179 (add_psymbol_to_list): New overload. Make old overload call new
6180 one.
6181 * psympriv.h (add_psymbol_to_list): New overload.
6182
e61108c9
TT
61832020-04-24 Tom Tromey <tom@tromey.com>
6184
6185 * dwarf2/read.c (partial_die_info::read) <case
6186 DW_AT_linkage_name>: Use value_as_string.
6187 (dwarf2_string_attr): Use value_as_string.
6188 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
6189 method.
6190 * dwarf2/attribute.c (attribute::value_as_string): New method.
6191
8c87a452
TT
61922020-04-24 Tom Tromey <tom@tromey.com>
6193
6194 * symtab.c (general_symbol_info::natural_name)
6195 (general_symbol_info::demangled_name): Check for language_rust.
6196
787de330
TT
61972020-04-24 Tom Tromey <tom@tromey.com>
6198
6199 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
6200 (dwarf2_physname): ... from here.
6201 (partial_die_info::read): Add Rust "{" hack.
6202
ff985671
TT
62032020-04-24 Tom Tromey <tom@tromey.com>
6204
6205 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
6206 method.
6207 (symbol_set_demangled_name): Don't declare.
6208 * symtab.c (general_symbol_info::set_demangled_name): Rename from
6209 symbol_set_demangled_name.
6210 (general_symbol_info::set_language)
6211 (general_symbol_info::compute_and_set_names): Update.
6212 * minsyms.c (minimal_symbol_reader::install): Update.
6213 * dwarf2/read.c (new_symbol): Update.
6214
1acda803
TT
62152020-04-24 Tom Tromey <tromey@adacore.com>
6216
6217 PR python/23662:
6218 * python/py-type.c (convert_field): Handle
6219 FIELD_LOC_KIND_DWARF_BLOCK.
6220 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
6221 (typy_get_dynamic): Nw function.
6222 (type_object_getset): Add "dynamic".
6223 * NEWS: Add entry.
6224
d656f129
TT
62252020-04-24 Tom Tromey <tromey@adacore.com>
6226
6227 * ada-typeprint.c (print_choices, print_variant_part)
6228 (print_record_field_types_dynamic): New functions.
6229 (print_record_field_types): Use print_record_field_types_dynamic.
6230
7d79de9a
TT
62312020-04-24 Tom Tromey <tromey@adacore.com>
6232
6233 * dwarf2/read.c (handle_data_member_location): New overload.
6234 (dwarf2_add_field): Use it.
6235 (decode_locdesc): Add "computed" parameter. Update comment.
6236 * gdbtypes.c (is_dynamic_type_internal): Also look for
6237 FIELD_LOC_KIND_DWARF_BLOCK.
6238 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
6239 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
6240 virtual base classes.
6241 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
6242 FIELD_LOC_KIND_DWARF_BLOCK.
6243
f8e89861
TT
62442020-04-24 Tom Tromey <tromey@adacore.com>
6245
6246 * dwarf2/read.c (read_structure_type): Handle dynamic length.
6247 * gdbtypes.c (is_dynamic_type_internal): Check
6248 TYPE_HAS_DYNAMIC_LENGTH.
6249 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
6250 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
6251 New macros.
6252 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
6253 constant.
6254
9c6a1327
TT
62552020-04-24 Tom Tromey <tromey@adacore.com>
6256
6257 * dwarf2/read.c (struct variant_field): Rewrite.
6258 (struct variant_part_builder): New.
6259 (struct nextfield): Remove "variant" field. Add "offset".
6260 (struct field_info): Add "current_variant_part" and
6261 "variant_parts".
6262 (alloc_discriminant_info): Remove.
6263 (alloc_rust_variant): New function.
6264 (quirk_rust_enum): Update.
6265 (dwarf2_add_field): Set "offset" member. Don't handle
6266 DW_TAG_variant_part.
6267 (offset_map_type): New typedef.
6268 (convert_variant_range, create_one_variant)
6269 (create_one_variant_part, create_variant_parts)
6270 (add_variant_property): New functions.
6271 (dwarf2_attach_fields_to_type): Call add_variant_property.
6272 (read_structure_type): Don't handle DW_TAG_variant_part.
6273 (handle_variant_part, handle_variant): New functions.
6274 (handle_struct_member_die): Use them.
6275 (process_structure_scope): Don't handle variant parts.
6276 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6277 (struct discriminant_info): Remove.
6278 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6279 (struct main_type) <flag_discriminated_union>: Remove.
6280 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6281 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6282 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6283 Update.
6284 * valops.c (value_union_variant): Remove.
6285 * value.h (value_union_variant): Don't declare.
6286
b249d2c2
TT
62872020-04-24 Tom Tromey <tromey@adacore.com>
6288
6289 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6290 (ada_value_primitive_packed_val): Update.
6291 * ada-valprint.c (ada_value_print_1): Update.
6292 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6293 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6294 just an address. Use evaluate_for_locexpr_baton.
6295 (dwarf2_evaluate_property): Update.
6296 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6297 array_view.
6298 * findvar.c (default_read_var_value): Update.
6299 * gdbtypes.c (compute_variant_fields_inner)
6300 (resolve_dynamic_type_internal): Update.
6301 (resolve_dynamic_type): Change type of valaddr parameter.
6302 * gdbtypes.h (resolve_dynamic_type): Update.
6303 * valarith.c (value_subscripted_rvalue): Update.
6304 * value.c (value_from_contents_and_address): Update.
6305
61122aa9
TT
63062020-04-24 Tom Tromey <tromey@adacore.com>
6307
6308 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6309 "push_initial_value" parameter.
6310 (dwarf2_evaluate_property): Likewise.
6311 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6312
ef83a141
TT
63132020-04-24 Tom Tromey <tromey@adacore.com>
6314
6315 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6316 (variant::matches, compute_variant_fields_recurse)
6317 (compute_variant_fields_inner, compute_variant_fields): New
6318 functions.
6319 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6320 Use resolved_type after type is made.
6321 (operator==): Add new cases.
6322 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6323 (struct discriminant_range, struct variant, struct variant_part):
6324 New.
6325 (union dynamic_prop_data) <variant_parts, original_type>: New
6326 members.
6327 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6328 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6329 constants.
6330 * value.c (unpack_bits_as_long): Now public.
6331 * value.h (unpack_bits_as_long): Declare.
6332
675127ec
TT
63332020-04-24 Tom Tromey <tromey@adacore.com>
6334
6335 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6336 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6337
9852ceef
HD
63382020-04-24 Hannes Domani <ssbssa@yahoo.de>
6339
6340 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6341
7632c6ce
KR
63422020-04-24 Kamil Rytarowski <n54@gmx.com>
6343
6344 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6345 (remove_fork_catchpoint, post_startup_inferior)
6346 (post_attach): Move...
6347 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6348 (remove_fork_catchpoint, post_startup_inferior)
6349 (post_attach): ...here.
6350 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6351 (remove_fork_catchpoint, post_startup_inferior)
6352 (post_attach): Move...
6353 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6354 (remove_fork_catchpoint, post_startup_inferior)
6355 (post_attach): ...here.
6356
7be2bb4f
TT
63572020-04-24 Tom Tromey <tromey@adacore.com>
6358
6359 * nat/windows-nat.h (struct windows_thread_info)
6360 <pc_adjusted>: New member.
6361 * windows-nat.c (windows_fetch_one_register): Check
6362 pc_adjusted.
6363 (windows_nat_target::get_windows_debug_event)
6364 (windows_nat_target::wait): Set pc_adjusted.
6365
f80cb3b4
TV
63662020-04-24 Tom de Vries <tdevries@suse.de>
6367
6368 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6369 Run gdb-add-index inside temp dir.
6370
29514b87
TT
63712020-04-23 Tom Tromey <tromey@adacore.com>
6372
6373 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6374 in loop.
6375
5939967b
LM
63762020-04-23 Luis Machado <luis.machado@linaro.org>
6377
6378 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6379 get_frame_register instead of gdbarch_unwind_pc.
6380
70bc38f5
TV
63812020-04-23 Tom de Vries <tdevries@suse.de>
6382
6383 * symtab.c (lookup_global_symbol): Prefer def over decl.
6384
de82891c
TV
63852020-04-23 Tom de Vries <tdevries@suse.de>
6386
6387 PR symtab/25807
6388 * block.c (best_symbol, better_symbol): Promote to external.
6389 * block.h (best_symbol, better_symbol): Declare.
6390 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6391 decl.
6392
ecc6c606
TT
63932020-04-23 Tom Tromey <tromey@adacore.com>
6394
6395 PR ada/25837:
6396 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6397 "const char *", not a "const std::string &".
6398 <name_and_matcher::operator==>: Update.
6399 * unittests/lookup_name_info-selftests.c: Change type of
6400 "result".
6401
740480b8
TT
64022020-04-23 Tom Tromey <tom@tromey.com>
6403
6404 * inferior.h (iterate_over_inferiors): Don't declare.
6405 * inferior.c (iterate_over_inferiors): Remove.
6406 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6407 Remove.
6408 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6409 use iterate_over_inferiors.
6410 (darwin_resume_inferior_it)
6411 (struct resume_inferior_threads_param)
6412 (darwin_resume_inferior_threads_it): Remove.
6413 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6414
ae3ab1f0
TV
64152020-04-23 Tom de Vries <tdevries@suse.de>
6416
6417 * blockframe.c (find_pc_partial_function): Use
6418 find_pc_sect_compunit_symtab rather than
6419 objfile->sf->qf->find_pc_sect_compunit_symtab.
6420
317d2668
TV
64212020-04-22 Tom de Vries <tdevries@suse.de>
6422
6423 PR symtab/25764
6424 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6425 in psymtabs.
6426
eea9e357
TV
64272020-04-22 Tom de Vries <tdevries@suse.de>
6428
6429 PR symtab/25801
6430 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6431 symtabs.
6432
3d5afab3
TV
64332020-04-22 Tom de Vries <tdevries@suse.de>
6434
6435 PR symtab/25700
6436 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6437 CU if already created.
6438
d43b7a2d
TBA
64392020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6440
6441 * infrun.c (displaced_step_fixup): Switch to the event_thread
6442 before calling displaced_step_restore, not after.
6443
d89edf9b
MM
64442020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6445
6446 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6447 its inferior is not recorded by us.
6448 (record_btrace_target_open): Replace call to
6449 all_non_exited_threads () with call to current_inferior
6450 ()->non_exited_threads ().
6451 (record_btrace_target::stop_recording): Likewise.
6452 (record_btrace_target::close): Likewise.
6453 (record_btrace_target::wait): Likewise.
6454 (record_btrace_target::record_stop_replaying): Likewise.
6455
5897fd49
MM
64562020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6457
6458 * btrace.c (btrace_enable): Throw an error on double enables and
6459 when enabling recording fails.
6460 (btrace_disable): Throw an error if the thread is not recorded.
6461
1a476b6d
MM
64622020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6463
6464 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6465 request if we do not have a thread_info.
6466
4778a5f8
TV
64672020-04-21 Tom de Vries <tdevries@suse.de>
6468
6469 PR gdb/25471
6470 * thread.c
6471 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6472 exception in get_frame_id.
6473
0fa7617d
TT
64742020-04-20 Tom Tromey <tromey@adacore.com>
6475
6476 * python/python.c (struct gdbpy_event): Mark move constructor as
6477 noexcept.
6478 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6479 constructor as noexcept.
6480 * completer.h (struct completion_result): Mark move constructor as
6481 noexcept.
6482 * completer.c (completion_result::completion_result): Use
6483 initialization style. Don't call reset_match_list.
6484
ad23bda0
MS
64852020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6486
6487 * MAINTAINERS (Write After Approval): Add myself.
6488
45e1f031
TT
64892020-04-18 Tom Tromey <tom@tromey.com>
6490
6491 * windows-tdep.c (init_w32_command_list)
6492 (w32_prefix_command_valid): Restore.
6493 (_initialize_windows_tdep): Call init_w32_command_list.
6494
08feed99
TT
64952020-04-18 Tom Tromey <tom@tromey.com>
6496
6497 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6498 * value.c (value_fn_field): Update.
6499 * valops.c (find_function_in_inferior)
6500 (value_allocate_space_in_inferior): Update.
6501 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6502 Update.
6503 * tui/tui-source.c (tui_source_window::set_contents): Update.
6504 * symtab.c (lookup_global_or_static_symbol)
6505 (find_function_start_sal_1, skip_prologue_sal)
6506 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6507 * symmisc.c (dump_msymbols, dump_symtab_1)
6508 (maintenance_print_one_line_table): Update.
6509 * symfile.c (init_entry_point_info, section_is_mapped)
6510 (list_overlays_command, simple_read_overlay_table)
6511 (simple_overlay_update_1): Update.
6512 * stap-probe.c (handle_stap_probe): Update.
6513 * stabsread.c (dbx_init_float_type, define_symbol)
6514 (read_one_struct_field, read_enum_type, read_range_type): Update.
6515 * source.c (info_line_command): Update.
6516 * python/python.c (gdbpy_source_objfile_script)
6517 (gdbpy_execute_objfile_script): Update.
6518 * python/py-type.c (save_objfile_types): Update.
6519 * python/py-objfile.c (py_free_objfile): Update.
6520 * python/py-inferior.c (python_new_objfile): Update.
6521 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6522 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6523 (maintenance_check_psymtabs): Update.
6524 * printcmd.c (info_address_command): Update.
6525 * objfiles.h (struct objfile) <arch>: New method, from
6526 get_objfile_arch.
6527 (get_objfile_arch): Don't declare.
6528 * objfiles.c (get_objfile_arch): Remove.
6529 (filter_overlapping_sections): Update.
6530 * minsyms.c (msymbol_is_function): Update.
6531 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6532 (output_nondebug_symbol): Update.
6533 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6534 (mdebug_expand_psymtab): Update.
6535 * machoread.c (macho_add_oso_symfile): Update.
6536 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6537 Update.
6538 * linux-fork.c (checkpoint_command): Update.
6539 * linespec.c (convert_linespec_to_sals): Update.
6540 * jit.c (finalize_symtab): Update.
6541 * infrun.c (insert_exception_resume_from_probe): Update.
6542 * ia64-tdep.c (ia64_find_unwind_table): Update.
6543 * hppa-tdep.c (internalize_unwinds): Update.
6544 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6545 Update.
6546 * gcore.c (call_target_sbrk): Update.
6547 * elfread.c (record_minimal_symbol, elf_symtab_read)
6548 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6549 (elf_gnu_ifunc_resolve_by_got): Update.
6550 * dwarf2/read.c (create_addrmap_from_index)
6551 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6552 (read_debug_names_from_section)
6553 (process_psymtab_comp_unit_reader, add_partial_symbol)
6554 (add_partial_subprogram, process_full_comp_unit)
6555 (read_file_scope, read_func_scope, read_lexical_block_scope)
6556 (read_call_site_scope, dwarf2_ranges_read)
6557 (dwarf2_record_block_ranges, dwarf2_add_field)
6558 (mark_common_block_symbol_computed, read_tag_pointer_type)
6559 (read_tag_string_type, dwarf2_init_float_type)
6560 (dwarf2_init_complex_target_type, read_base_type)
6561 (partial_die_info::read, partial_die_info::read)
6562 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6563 (dwarf2_fetch_die_loc_sect_off): Update.
6564 * dwarf2/loc.c (dwarf2_find_location_expression)
6565 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6566 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6567 (dwarf2_loc_desc_get_symbol_read_needs)
6568 (locexpr_describe_location_piece, locexpr_describe_location_1)
6569 (loclist_describe_location): Update.
6570 * dwarf2/index-write.c (write_debug_names): Update.
6571 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6572 * dtrace-probe.c (dtrace_process_dof): Update.
6573 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6574 (process_one_symbol): Update.
6575 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6576 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6577 (coff_read_enum_type): Update.
6578 * cli/cli-cmds.c (edit_command, list_command): Update.
6579 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6580 * breakpoint.c (create_overlay_event_breakpoint)
6581 (create_longjmp_master_breakpoint)
6582 (create_std_terminate_master_breakpoint)
6583 (create_exception_master_breakpoint, get_sal_arch): Update.
6584 * block.c (block_gdbarch): Update.
6585 * annotate.c (annotate_source_line): Update.
6586
0743fc83
TT
65872020-04-17 Tom Tromey <tromey@adacore.com>
6588
6589 * auto-load.c (show_auto_load_cmd): Remove.
6590 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6591 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6592 (maintenance_print_arc_command): Remove.
6593 * tui/tui-win.c (tui_command): Remove.
6594 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6595 * tui/tui-layout.c (tui_layout_command): Remove.
6596 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6597 * python/python.c (user_set_python, user_show_python): Remove.
6598 (_initialize_python): Use add_basic_prefix_cmd,
6599 add_show_prefix_cmd.
6600 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6601 (install_gdb_commands): Use add_basic_prefix_cmd,
6602 add_show_prefix_cmd.
6603 (info_guile_command): Remove.
6604 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6605 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6606 add_show_prefix_cmd.
6607 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6608 Remove do_set and do_show parameters.
6609 * cli/cli-style.c (set_style, show_style): Remove.
6610 (_initialize_cli_style): Use add_basic_prefix_cmd,
6611 add_show_prefix_cmd.
6612 (cli_style_option::add_setshow_commands): Remove do_set and
6613 do_show parameters.
6614 (cli_style_option::add_setshow_commands): Use
6615 add_basic_prefix_cmd, add_show_prefix_cmd.
6616 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6617 (set_style_name): Remove.
6618 * cli/cli-dump.c (dump_command, append_command): Remove.
6619 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6620 (tekhex_dump_command, binary_dump_command)
6621 (binary_append_command): Remove.
6622 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6623 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6624 (init_w32_command_list): Remove; move into ...
6625 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6626 * valprint.c (set_print, show_print, set_print_raw)
6627 (show_print_raw): Remove.
6628 (_initialize_valprint): Use add_basic_prefix_cmd,
6629 add_show_prefix_cmd.
6630 * typeprint.c (set_print_type, show_print_type): Remove.
6631 (_initialize_typeprint): Use add_basic_prefix_cmd,
6632 add_show_prefix_cmd.
6633 * record.c (set_record_command, show_record_command): Remove.
6634 (_initialize_record): Use add_basic_prefix_cmd,
6635 add_show_prefix_cmd.
6636 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6637 add_show_prefix_cmd.
6638 (info_command, show_command, set_debug, show_debug): Remove.
6639 * top.h (set_history, show_history): Don't declare.
6640 * top.c (set_history, show_history): Remove.
6641 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6642 (unset_tdesc_cmd): Remove.
6643 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6644 add_show_prefix_cmd.
6645 * symtab.c (info_module_command): Remove.
6646 (_initialize_symtab): Use add_basic_prefix_cmd.
6647 * symfile.c (overlay_command): Remove.
6648 (_initialize_symfile): Use add_basic_prefix_cmd.
6649 * sparc64-tdep.c (info_adi_command): Remove.
6650 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6651 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6652 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6653 add_show_prefix_cmd.
6654 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6655 (_initialize_serial): Use add_basic_prefix_cmd,
6656 add_show_prefix_cmd.
6657 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6658 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6659 add_show_prefix_cmd.
6660 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6661 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6662 add_show_prefix_cmd.
6663 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6664 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6665 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6666 add_show_prefix_cmd.
6667 * remote.c (remote_command, set_remote_cmd): Remove.
6668 (_initialize_remote): Use add_basic_prefix_cmd.
6669 * record-full.c (set_record_full_command)
6670 (show_record_full_command): Remove.
6671 (_initialize_record_full): Use add_basic_prefix_cmd,
6672 add_show_prefix_cmd.
6673 * record-btrace.c (cmd_set_record_btrace)
6674 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6675 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6676 (cmd_show_record_btrace_pt): Remove.
6677 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6678 add_show_prefix_cmd.
6679 * ravenscar-thread.c (set_ravenscar_command)
6680 (show_ravenscar_command): Remove.
6681 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6682 add_show_prefix_cmd.
6683 * mips-tdep.c (show_mips_command, set_mips_command)
6684 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6685 add_show_prefix_cmd.
6686 * maint.c (maintenance_command, maintenance_info_command)
6687 (maintenance_check_command, maintenance_print_command)
6688 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6689 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6690 add_show_prefix_cmd.
6691 (show_per_command_cmd): Remove.
6692 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6693 Remove.
6694 (maintenance_show_test_settings_cmd): Remove.
6695 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6696 add_show_prefix_cmd.
6697 * maint-test-options.c (maintenance_test_options_command):
6698 Remove.
6699 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6700 * macrocmd.c (macro_command): Remove
6701 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6702 * language.c (set_check, show_check): Remove.
6703 (_initialize_language): Use add_basic_prefix_cmd,
6704 add_show_prefix_cmd.
6705 * infcmd.c (unset_command): Remove.
6706 (_initialize_infcmd): Use add_basic_prefix_cmd.
6707 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6708 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6709 add_show_prefix_cmd.
6710 * go32-nat.c (go32_info_dos_command): Remove.
6711 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6712 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6713 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6714 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6715 (_initialize_frame): Use add_basic_prefix_cmd,
6716 add_show_prefix_cmd.
6717 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6718 (_initialize_dcache): Use add_basic_prefix_cmd,
6719 add_show_prefix_cmd.
6720 * cp-support.c (maint_cplus_command): Remove.
6721 (_initialize_cp_support): Use add_basic_prefix_cmd.
6722 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6723 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6724 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6725 add_basic_prefix_cmd, add_show_prefix_cmd.
6726 * breakpoint.c (save_command): Remove.
6727 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6728 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6729 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6730 add_show_prefix_cmd.
6731 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6732 (set_ada_command, show_ada_command): Remove.
6733 (_initialize_ada_language): Use add_basic_prefix_cmd,
6734 add_show_prefix_cmd.
6735 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6736
3557f442
KR
67372020-04-16 Kamil Rytarowski <n54@gmx.com>
6738
6739 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6740 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6741
16197208
SM
67422020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6743
6744 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6745 warning messages.
6746
00ac85d3
SM
67472020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6748
6749 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6750 import table is not at beginning of .idata section.
6751
381ce63f
PA
67522020-04-16 Pedro Alves <palves@redhat.com>
6753
6754 * inferior.c (delete_inferior): Use delete operator directly
6755 instead of delete_program_space.
6756 * progspace.c (add_program_space): New, factored out from
6757 program_space::program_space.
6758 (remove_program_space): New, factored out from
6759 delete_program_space.
6760 (program_space::program_space): Remove intro comment. Rewrite.
6761 (program_space::~program_space): Remove intro comment. Call
6762 remove_program_space.
6763 (delete_program_space): Delete.
6764 * progspace.h (program_space::program_space): Make explicit. Move
6765 intro comment here, adjusted.
6766 (program_space::~program_space): Move intro comment here,
6767 adjusted.
6768 (delete_program_space): Remove.
6769
a010605f
TT
67702020-04-16 Tom Tromey <tromey@adacore.com>
6771
6772 * windows-nat.c (windows_nat::handle_access_violation): New
6773 function.
6774 * nat/windows-nat.h (handle_access_violation): Declare.
6775 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6776 windows-nat.c. Call handle_access_violation.
6777
efba5c23
TV
67782020-04-16 Tom de Vries <tdevries@suse.de>
6779
6780 PR symtab/25791
6781 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6782 CUs without psymtab.
6783
97ed802d
KB
67842020-04-16 Kevin Buettner <kevinb@redhat.com>
6785
6786 * python/python.c (do_start_initialization): Don't call
6787 PyEval_InitThreads for Python 3.9 and beyond.
6788
c7d64809
KR
67892020-04-15 Kamil Rytarowski <n54@gmx.com>
6790
6791 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6792 thread functions.
6793 (obsd_nat_target::wait): Likewise.
6794
ce127a96
TT
67952020-04-15 Tom Tromey <tromey@adacore.com>
6796
6797 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6798 (DEBUG_EXCEPT): Use debug_printf.
6799
99f1bc6a
AB
68002020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6801
6802 * completer.c (class completion_tracker::completion_hash_entry)
6803 <hash_name>: New member function.
6804 (completion_tracker::discard_completions): New callback to hash a
6805 completion_hash_entry, pass this to htab_create_alloc.
6806
a0e9b532
JT
68072016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6808
6809 * windows-nat.c (windows_make_so): Warn rather than stopping with
6810 an error if realpath() fails.
6811
06ca5dd4
KR
68122020-04-14 Kamil Rytarowski <n54@gmx.com>
6813
6814 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6815 (nbsd_nat_target::info_proc): Add do_status.
6816
194d088f
TV
68172020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6818 Tom de Vries <tdevries@suse.de>
6819
6820 PR symtab/25718
6821 * psympriv.h (struct partial_symtab::read_symtab)
6822 (struct partial_symtab::expand_psymtab)
6823 (struct partial_symtab::read_dependencies): Update comments.
6824 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6825 read_symtab for includer.
6826 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6827 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6828 (struct dwarf2_include_psymtab::m_readin): Remove.
6829 (struct dwarf2_include_psymtab::includer): New member function.
6830 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6831
c1a66c06
TV
68322020-04-14 Tom de Vries <tdevries@suse.de>
6833
6834 PR symtab/25720
6835 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6836 with NULL symbol_matcher and lookup_name.
6837 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6838 and lookup_name.
6839 * dwarf2/read.c (dw2_expand_symtabs_matching)
6840 (dw2_debug_names_expand_symtabs_matching): Same.
6841 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6842 Make lookup_name a pointer. Update comment.
6843 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6844 lookup_name being a pointer.
6845 * symfile.c (expand_symtabs_matching): Same.
6846 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6847 * linespec.c (iterate_over_all_matching_symtabs): Same.
6848
400b5eca
TT
68492020-04-13 Tom Tromey <tom@tromey.com>
6850
6851 * run-on-main-thread.c: Update include.
6852 * unittests/main-thread-selftests.c: Update include.
6853 * tui/tui-win.c: Update include.
6854 * tui/tui-io.c: Update include.
6855 * tui/tui-interp.c: Update include.
6856 * tui/tui-hooks.c: Update include.
6857 * top.h: Update include.
6858 * top.c: Update include.
6859 * ser-base.c: Update include.
6860 * remote.c: Update include.
6861 * remote-notif.c: Update include.
6862 * remote-fileio.c: Update include.
6863 * record-full.c: Update include.
6864 * record-btrace.c: Update include.
6865 * python/python.c: Update include.
6866 * posix-hdep.c: Update include.
6867 * mingw-hdep.c: Update include.
6868 * mi/mi-main.c: Update include.
6869 * mi/mi-interp.c: Update include.
6870 * main.c: Update include.
6871 * linux-nat.c: Update include.
6872 * interps.c: Update include.
6873 * infrun.c: Update include.
6874 * inf-loop.c: Update include.
6875 * event-top.c: Update include.
6876 * event-loop.c: Move to ../gdbsupport/.
6877 * event-loop.h: Move to ../gdbsupport/.
6878 * async-event.h: Update include.
6879 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6880
93b54c8e
TT
68812020-04-13 Tom Tromey <tom@tromey.com>
6882
6883 * tui/tui-win.c: Include async-event.h.
6884 * remote.c: Include async-event.h.
6885 * remote-notif.c: Include async-event.h.
6886 * record-full.c: Include async-event.h.
6887 * record-btrace.c: Include async-event.h.
6888 * infrun.c: Include async-event.h.
6889 * event-top.c: Include async-event.h.
6890 * event-loop.h: Move some declarations to async-event.h.
6891 * event-loop.c: Don't include ser-event.h or top.h. Move some
6892 code to async-event.c.
6893 * async-event.h: New file.
6894 * async-event.c: New file.
6895 * Makefile.in (COMMON_SFILES): Add async-event.c.
6896 (HFILES_NO_SRCDIR): Add async-event.h.
6897
c1cd3163
TT
68982020-04-13 Tom Tromey <tom@tromey.com>
6899
6900 * utils.c (flush_streams): New function.
6901 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6902
29f2bf4f
TT
69032020-04-13 Tom Tromey <tom@tromey.com>
6904
6905 * event-loop.c (handle_file_event): Use warning, not
6906 printf_unfiltered.
6907
98029d02
TT
69082020-04-13 Tom Tromey <tom@tromey.com>
6909
6910 * event-loop.c: Include <chrono>.
6911
06cc9596
TT
69122020-04-13 Tom Tromey <tom@tromey.com>
6913
6914 * gdb_select.h: Move to ../gdbsupport/.
6915 * event-loop.c: Update include path.
6916 * top.c: Update include path.
6917 * ser-base.c: Update include path.
6918 * ui-file.c: Update include path.
6919 * ser-tcp.c: Update include path.
6920 * guile/scm-ports.c: Update include path.
6921 * posix-hdep.c: Update include path.
6922 * ser-unix.c: Update include path.
6923 * gdb_usleep.c: Update include path.
6924 * mingw-hdep.c: Update include path.
6925 * inflow.c: Update include path.
6926 * infrun.c: Update include path.
6927 * event-top.c: Update include path.
6928
8ae8e197
TT
69292020-04-13 Tom Tromey <tom@tromey.com>
6930
6931 * configure: Rebuild.
6932 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6933
58cf28e8
TT
69342020-04-13 Tom Tromey <tom@tromey.com>
6935
6936 * event-loop.h (start_event_loop): Don't declare.
6937 * event-loop.c (start_event_loop): Move...
6938 * main.c (start_event_loop): ...here. Now static.
6939
b7f999ae
SDJ
69402020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6941
6942 * MAINTAINERS: Update my email address.
6943
1085dfd4
KR
69442020-04-12 Kamil Rytarowski <n54@gmx.com>
6945
6946 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6947 IP_ALL.
6948
49d1d1f5
KR
69492020-04-12 Kamil Rytarowski <n54@gmx.com>
6950
6951 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6952 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6953
b4848d2a
KR
69542020-04-12 Kamil Rytarowski <n54@gmx.com>
6955
6956 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6957 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6958
51c133d5
KR
69592020-04-12 Kamil Rytarowski <n54@gmx.com>
6960
6961 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6962
54b8cbd0
KR
69632020-04-11 Kamil Rytarowski <n54@gmx.com>
6964
6965 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6966 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6967 (nbsd_nat_target::info_proc): New functions.
6968 * nbsd-nat.c (kinfo_get_vmmap): New function.
6969 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6970 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6971 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6972 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6973 functions.
6974 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6975 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6976 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6977 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6978 (KINFO_VME_FLAG_GROWS_DOWN): New.
6979
cf83625d
AS
69802020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6981
6982 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6983 bit shift.
6984
0c4311ab
TT
69852020-04-10 Tom Tromey <tromey@adacore.com>
6986
6987 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6988
3e65b3e9
TT
69892020-04-10 Tom Tromey <tromey@adacore.com>
6990
6991 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6992 separate debug files.
6993
13302e95
HD
69942020-04-10 Hannes Domani <ssbssa@yahoo.de>
6995
6996 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6997 Move to...
6998 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6999 ... here.
7000 * windows-nat.c (windows_nat_target::get_windows_debug_event):
7001 Check for STATUS_WX86_BREAKPOINT.
7002 (windows_nat_target::wait): Same.
7003
bdfc1e8a
TV
70042020-04-10 Tom de Vries <tdevries@suse.de>
7005
7006 PR cli/25808
7007 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
7008
f4460aec
SM
70092020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7010
7011 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
7012 (Write After Approval): Remove Tom de Vries.
7013
a25198bb
BE
70142020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
7015
7016 revert partially:
7017 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7018
aac66a4c
SM
7019 * buildsym.c (record_line): Fix undefined behavior and preserve
7020 lines at eof.
a25198bb 7021
206c98a6
KR
70222020-04-09 Kamil Rytarowski <n54@gmx.com>
7023
7024 * auxv.h (svr4_auxv_parse): New.
7025 * auxv.c (default_auxv_parse): Split into default_auxv_parse
7026 and generic_auxv_parse.
7027 (svr4_auxv_parse): Add.
7028 * obsd-tdep.c: Include "auxv.h".
7029 (obsd_auxv_parse): Remove.
7030 (obsd_init_abi): Remove comment.
7031 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
7032 from `obsd_auxv_parse' to `svr4_auxv_parse'.
7033 * nbsd-tdep.c: Include "auxv.h".
7034 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
7035
71fbdbaf
TT
70362020-04-08 Tom Tromey <tromey@adacore.com>
7037
7038 * nat/windows-nat.h (last_wait_event): Don't declare.
7039 (wait_for_debug_event): Update comment.
7040 * nat/windows-nat.c (last_wait_event): Now static.
7041
2c1d95e8
TT
70422020-04-08 Tom Tromey <tromey@adacore.com>
7043
7044 * windows-nat.c (wait_for_debug_event): Move to
7045 nat/windows-nat.c.
7046 * nat/windows-nat.h (wait_for_debug_event): Declare.
7047 * nat/windows-nat.c (wait_for_debug_event): Move from
7048 windows-nat.c. No longer static.
7049
d2977bc4
TT
70502020-04-08 Tom Tromey <tromey@adacore.com>
7051
7052 * windows-nat.c (get_windows_debug_event): Use
7053 fetch_pending_stop.
7054 * nat/windows-nat.h (fetch_pending_stop): Declare.
7055 * nat/windows-nat.c (fetch_pending_stop): New function.
7056
e758e19c
TT
70572020-04-08 Tom Tromey <tromey@adacore.com>
7058
7059 * windows-nat.c (windows_continue): Use matching_pending_stop and
7060 continue_last_debug_event.
7061 * nat/windows-nat.h (matching_pending_stop)
7062 (continue_last_debug_event): Declare.
7063 * nat/windows-nat.c (DEBUG_EVENTS): New define.
7064 (matching_pending_stop, continue_last_debug_event): New
7065 functions.
7066
8d30e395
TT
70672020-04-08 Tom Tromey <tromey@adacore.com>
7068
7069 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
7070 (handle_exception_result): Move to nat/windows-nat.h.
7071 (DEBUG_EXCEPTION_SIMPLE): Remove.
7072 (windows_nat::handle_ms_vc_exception): New function.
7073 (handle_exception): Move to nat/windows-nat.c.
7074 (get_windows_debug_event): Update.
7075 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
7076 nat/windows-nat.c.
7077 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
7078 (handle_exception_result): Move from windows-nat.c.
7079 (handle_exception): Declare.
7080 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
7081 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
7082 windows-nat.c.
7083
29de418d
TT
70842020-04-08 Tom Tromey <tromey@adacore.com>
7085
7086 * windows-nat.c (exception_count, event_count): Remove.
7087 (handle_exception, get_windows_debug_event)
7088 (do_initial_windows_stuff): Update.
7089
a816ba18
TT
70902020-04-08 Tom Tromey <tromey@adacore.com>
7091
7092 * windows-nat.c (windows_nat::handle_load_dll)
7093 (windows_nat::handle_unload_dll): Rename. No longer static.
7094 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
7095 Declare.
7096
a00caa12
TT
70972020-04-08 Tom Tromey <tromey@adacore.com>
7098
7099 * complaints.h (stop_whining): Declare at top-level.
7100 (complaint): Don't declare stop_whining.
7101
d41b524f
TT
71022020-04-08 Tom Tromey <tromey@adacore.com>
7103
7104 * windows-nat.c (windows_nat::handle_output_debug_string):
7105 Rename. No longer static.
7106 * nat/windows-nat.h (handle_output_debug_string): Declare.
7107
3c76026d
TT
71082020-04-08 Tom Tromey <tromey@adacore.com>
7109
7110 * windows-nat.c (current_process_handle, current_process_id)
7111 (main_thread_id, last_sig, current_event, last_wait_event)
7112 (current_windows_thread, desired_stop_thread_id, pending_stops)
7113 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
7114 (display_selectors, fake_create_process)
7115 (get_windows_debug_event): Update.
7116 * nat/windows-nat.h (current_process_handle, current_process_id)
7117 (main_thread_id, last_sig, current_event, last_wait_event)
7118 (current_windows_thread, desired_stop_thread_id, pending_stops)
7119 (struct pending_stop, siginfo_er): Move from windows-nat.c.
7120 * nat/windows-nat.c (current_process_handle, current_process_id)
7121 (main_thread_id, last_sig, current_event, last_wait_event)
7122 (current_windows_thread, desired_stop_thread_id, pending_stops)
7123 (siginfo_er): New globals. Move from windows-nat.c.
7124
9d8679cc
TT
71252020-04-08 Tom Tromey <tromey@adacore.com>
7126
7127 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
7128 (handle_load_dll): Update.
7129 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
7130
28688adf
TT
71312020-04-08 Tom Tromey <tromey@adacore.com>
7132
7133 * windows-nat.c (enum thread_disposition_type): Move to
7134 nat/windows-nat.h.
7135 (windows_nat::thread_rec): Rename from thread_rec. No longer
7136 static.
7137 (windows_add_thread, windows_nat_target::fetch_registers)
7138 (windows_nat_target::store_registers, handle_exception)
7139 (windows_nat_target::resume, get_windows_debug_event)
7140 (windows_nat_target::get_tib_address)
7141 (windows_nat_target::thread_name)
7142 (windows_nat_target::thread_alive): Update.
7143 * nat/windows-nat.h (enum thread_disposition_type): Move from
7144 windows-nat.c.
7145 (thread_rec): Declare.
7146
4834dad0
TT
71472020-04-08 Tom Tromey <tromey@adacore.com>
7148
7149 * windows-nat.c: Add "using namespace".
7150 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
7151 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
7152
65bafd5b
TT
71532020-04-08 Tom Tromey <tromey@adacore.com>
7154
7155 * nat/windows-nat.h (struct windows_thread_info): Declare
7156 destructor.
7157 * nat/windows-nat.c (~windows_thread_info): New.
7158
0a4afda3
TT
71592020-04-08 Tom Tromey <tromey@adacore.com>
7160
7161 PR gdb/22992
7162 * windows-nat.c (current_event): Update comment.
7163 (last_wait_event, desired_stop_thread_id): New globals.
7164 (struct pending_stop): New.
7165 (pending_stops): New global.
7166 (windows_nat_target) <stopped_by_sw_breakpoint>
7167 <supports_stopped_by_sw_breakpoint>: New methods.
7168 (windows_fetch_one_register): Add assertions. Adjust PC.
7169 (windows_continue): Handle pending stops. Suspend other threads
7170 when stepping. Use last_wait_event
7171 (wait_for_debug_event): New function.
7172 (get_windows_debug_event): Use wait_for_debug_event. Handle
7173 pending stops. Queue spurious stops.
7174 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
7175 (windows_nat_target::kill): Use wait_for_debug_event.
7176 * nat/windows-nat.h (struct windows_thread_info)
7177 <stopped_at_software_breakpoint>: New field.
7178 * nat/windows-nat.c (windows_thread_info::resume): Clear
7179 stopped_at_software_breakpoint.
7180
8e61ebec
TT
71812020-04-08 Tom Tromey <tromey@adacore.com>
7182
7183 * windows-nat.c (enum thread_disposition_type): New.
7184 (thread_rec): Replace "get_context" parameter with "disposition";
7185 change type.
7186 (windows_add_thread, windows_nat_target::fetch_registers)
7187 (windows_nat_target::store_registers, handle_exception)
7188 (windows_nat_target::resume, get_windows_debug_event)
7189 (windows_nat_target::get_tib_address)
7190 (windows_nat_target::thread_name)
7191 (windows_nat_target::thread_alive): Update.
7192
98a03287
TT
71932020-04-08 Tom Tromey <tromey@adacore.com>
7194
7195 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
7196 (windows_continue): Use windows_continue::resume.
7197 * nat/windows-nat.h (struct windows_thread_info) <suspend,
7198 resume>: Declare new methods.
7199 * nat/windows-nat.c: New file.
7200 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
7201
7c7411bc
TT
72022020-04-08 Tom Tromey <tromey@adacore.com>
7203
7204 * windows-nat.c (windows_add_thread, windows_delete_thread)
7205 (windows_nat_target::fetch_registers)
7206 (windows_nat_target::store_registers, fake_create_process)
7207 (windows_nat_target::resume, windows_nat_target::resume)
7208 (get_windows_debug_event, windows_nat_target::wait)
7209 (windows_nat_target::pid_to_str)
7210 (windows_nat_target::get_tib_address)
7211 (windows_nat_target::get_ada_task_ptid)
7212 (windows_nat_target::thread_name)
7213 (windows_nat_target::thread_alive): Use lwp, not tid.
7214
2950fdf7
TT
72152020-04-08 Tom Tromey <tromey@adacore.com>
7216
7217 * windows-nat.c (handle_exception)
7218 (windows_nat_target::thread_name): Update.
7219 * nat/windows-nat.h (windows_thread_info): Remove destructor.
7220 <name>: Now unique_xmalloc_ptr.
7221
62fe396b
TT
72222020-04-08 Tom Tromey <tromey@adacore.com>
7223
7224 * windows-nat.c (thread_rec)
7225 (windows_nat_target::fetch_registers): Update.
7226 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
7227 Update comment.
7228 <debug_registers_changed, reload_context>: Now bool.
7229
e9534bd2
TT
72302020-04-08 Tom Tromey <tromey@adacore.com>
7231
7232 * windows-nat.c (windows_add_thread): Use new.
7233 (windows_init_thread_list, windows_delete_thread): Use delete.
7234 (get_windows_debug_event): Update.
7235 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
7236 destructor, and initializers.
7237
ae1f8880
TT
72382020-04-08 Tom Tromey <tromey@adacore.com>
7239
7240 * windows-nat.c (struct windows_thread_info): Remove.
7241 * nat/windows-nat.h: New file.
7242
55a1e039
TT
72432020-04-08 Tom Tromey <tromey@adacore.com>
7244
7245 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
7246 (thread_rec, windows_add_thread, windows_delete_thread)
7247 (windows_continue): Update.
7248
93366324
TT
72492020-04-08 Tom Tromey <tromey@adacore.com>
7250
7251 * windows-nat.c (struct windows_thread_info): Remove typedef.
7252 (thread_head): Remove.
7253 (thread_list): New global.
7254 (thread_rec, windows_add_thread, windows_init_thread_list)
7255 (windows_delete_thread, windows_continue): Update.
7256
0f2265e2
SM
72572020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7258
7259 * windows-tdep.h (windows_init_abi): Add comment.
7260 (cygwin_init_abi): New declaration.
7261 * windows-tdep.c: Split signal enumeration in two, one for
7262 Windows and one for Cygwin.
7263 (windows_gdb_signal_to_target): Only deal with signal of the
7264 Windows OS ABI.
7265 (cygwin_gdb_signal_to_target): New function.
7266 (windows_init_abi): Rename to windows_init_abi_common, don't set
7267 gdb_signal_to_target gdbarch method. Add new new function with
7268 this name.
7269 (cygwin_init_abi): New function.
7270 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7271 comment. Don't call windows_init_abi.
7272 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7273 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7274 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7275 i386_windows_init_abi_common, don't call windows_init_abi. Add
7276 a new function of this name.
7277 (i386_cygwin_init_abi): New function.
7278 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7279 OS ABI Cygwin.
7280
3810f182
SM
72812020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7282
7283 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7284 parameter.c.
7285 (dwarf2_read_gdb_index): Update.
7286
063f8e80
KR
72872020-04-07 Kamil Rytarowski <n54@gmx.com>
7288
7289 * nbsd-tdep.c: Include "objfiles.h".
7290 (nbsd_skip_solib_resolver): New.
7291 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7292
85a9510c 72932020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7294
7295 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7296 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7297 with DW_LLE_base_addressx are being emitted in DWARFv5.
7298 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7299 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7300 unsigned integer.
7301
9fc3eaae 73022020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7303
7304 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7305 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7306 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7307 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7308 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7309 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7310 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7311
7312
41144253 73132020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7314
7315 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7316 (read_loclist_index): New function definition.
7317 (lookup_loclist_base): New function definition.
7318 (read_loclist_header): New function definition.
7319 (dwarf2_cu): Add loclist_base and loclist_header field.
7320 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7321 (read_full_die_1): Read the value of DW_AT_loclists_base.
7322 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7323 (read_attribute_value): Handle DW_FORM_loclistx.
7324 (skip_one_die): Handle DW_FORM_loclistx.
7325 (loclist_header): New structure declaration.
7326 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7327
9f4e76a4
SM
73282020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7329
7330 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7331 constructor. Remove `addr` parameter from other constructor and
7332 add `per_cu` parameter.
7333 * dwarf2/read.c (create_partial_symtab): Update.
7334
25c11aca
TV
73352020-04-07 Tom de Vries <tdevries@suse.de>
7336
7337 PR symtab/25796
7338 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7339 (partial_die_info::fixup): Inherit has_const_value.
7340
5707e24b
TV
73412020-04-07 Tom de Vries <tdevries@suse.de>
7342
7343 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7344 symbols without address.
7345
05f00e22
KR
73462020-04-06 Kamil Rytarowski <n54@gmx.com>
7347
7348 * nbsd-nat.h (struct thread_info): Add forward declaration.
7349 (nbsd_nat_target::thread_alive): Add.
7350 (nbsd_nat_target::thread_name): Likewise.
7351 (nbsd_nat_target::update_thread_list): Likewise.
7352 (update_thread_list::post_attach): Likewise.
7353 (post_attach::pid_to_str): Likewise.
7354 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7355 (nbsd_thread_lister): Add.
7356 (nbsd_nat_target::thread_alive): Likewise.
7357 (nbsd_nat_target::thread_name): Likewise.
7358 (nbsd_add_threads): Likewise.
7359 (update_thread_list::post_attach): Likewise.
7360 (nbsd_nat_target::update_thread_list): Likewise.
7361 (post_attach::pid_to_str): Likewise.
7362
6ee448cc
TT
73632020-04-06 Tom Tromey <tromey@adacore.com>
7364
7365 * ada-valprint.c (print_variant_part): Extract the variant field.
7366 (print_field_values): Use the field as the outer value when
7367 recursing.
7368
dea34e8c
TT
73692020-04-06 Tom Tromey <tromey@adacore.com>
7370
7371 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7372 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7373 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7374 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7375 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7376
93689ce9
TT
73772020-04-06 Tom Tromey <tromey@adacore.com>
7378
7379 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7380 TYPE_CODE_ERROR.
7381
79743962
KR
73822020-04-06 Kamil Rytarowski <n54@gmx.com>
7383
7384 * nbsd-tdep.c: Include "gdbarch.h".
7385 Define enum with NetBSD signal numbers.
7386 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7387 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7388 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7389 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7390 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7391 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7392 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7393 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7394 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7395 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7396 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7397 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7398
9e7c9a03
HD
73992020-04-03 Hannes Domani <ssbssa@yahoo.de>
7400
7401 PR gdb/25325
7402 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7403
d9e49b61
TT
74042020-04-03 Tom Tromey <tromey@adacore.com>
7405
7406 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7407 Read constant block.
7408
e0fc5c3f
SM
74092020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7410
7411 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7412 (gdb_bfd_get_full_section_contents): New declaration.
7413 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7414 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7415 gdb_bfd_get_full_section_contents.
7416
e2ff18a0
SM
74172020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7418
7419 * exec.c (build_section_table): Replace internal_error with
7420 gdb_assert.
7421 (section_table_xfer_memory_partial): Likewise.
7422 * mdebugread.c (parse_partial_symbols): Likewise.
7423 * psymtab.c (lookup_partial_symbol): Likewise.
7424 * utils.c (wrap_here): Likewise.
7425
0830d301
TT
74262020-04-02 Tom Tromey <tromey@adacore.com>
7427
7428 * f-lang.c (build_fortran_types): Use arch_type to initialize
7429 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7430
e7da7f8f
TT
74312020-04-02 Tom Tromey <tromey@adacore.com>
7432
7433 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7434 of attributes.
7435
c90d28ac
AB
74362020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7437 Bernd Edlinger <bernd.edlinger@hotmail.de>
7438 Tom Tromey <tromey@adacore.com>
7439
7440 * buildsym.c (buildsym_compunit::record_line): Remove
7441 deduplication code.
7442
1aa98955
TV
74432020-04-02 Tom de Vries <tdevries@suse.de>
7444
7445 PR ada/24671
7446 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7447
d3214198
TV
74482020-04-02 Tom de Vries <tdevries@suse.de>
7449
7450 * dwarf2/read.c (dwarf2_gdb_index_functions,
7451 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7452 NULL.
7453 * psymtab.c (psym_lookup_global_symbol_language): New function.
7454 (psym_functions): Init psym_lookup_global_symbol_language with
7455 psym_lookup_global_symbol_language.
7456 * symfile-debug.c (debug_sym_quick_functions): Init
7457 lookup_global_symbol_language with NULL.
7458 * symfile.c (set_initial_language): Remove fixme comment.
7459 * symfile.h (struct quick_symbol_functions): Add
7460 lookup_global_symbol_language.
7461 * symtab.c (find_quick_global_symbol_language): New function.
7462 (find_main_name): Use find_quick_global_symbol_language.
7463
2836752f
SM
74642020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7465
7466 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7467
64dc2d4b
BE
74682020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7469
7470 * buildsym.c (record_line): Fix undefined behavior and preserve
7471 lines at eof.
7472
bbe3dc41
BE
74732020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7474
7475 * buildsym.c (record_line): Fix the resizing condition.
7476
6b4a335b
TT
74772020-04-01 Tom Tromey <tom@tromey.com>
7478
7479 * value.h (value_literal_complex): Add comment.
7480 * valops.c (value_literal_complex): Refer to value.h.
7481
3638a098
TT
74822020-04-01 Tom Tromey <tom@tromey.com>
7483
7484 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7485 (scalar_type): New rule, from typebase.
7486 (typebase): Use scalar_type. Recognize complex types.
7487 (field_name): Handle FLOAT_KEYWORD.
7488 (ident_tokens): Add _Complex and __complex__.
7489
c34e8714
TT
74902020-04-01 Tom Tromey <tom@tromey.com>
7491
7492 PR exp/25299:
7493 * valarith.c (promotion_type, complex_binop): New functions.
7494 (scalar_binop): Handle complex numbers. Use promotion_type.
7495 (value_pos, value_neg, value_complement): Handle complex numbers.
7496
fa649bb7
TT
74972020-04-01 Tom Tromey <tom@tromey.com>
7498
7499 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7500 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7501 (parse_number): Handle complex numbers.
7502
981c08ce
TT
75032020-04-01 Tom Tromey <tom@tromey.com>
7504
7505 * c-valprint.c (c_decorations): Change complex suffix to "i".
7506
4c99290d
TT
75072020-04-01 Tom Tromey <tom@tromey.com>
7508
7509 * valprint.c (generic_value_print_complex): Use accessors.
7510 * value.h (value_real_part, value_imaginary_part): Declare.
7511 * valops.c (value_real_part, value_imaginary_part): New
7512 functions.
7513 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7514
5b930b45
TT
75152020-04-01 Tom Tromey <tom@tromey.com>
7516
7517 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7518 (read_range_type): Update.
7519 * mdebugread.c (basic_type): Update.
7520 * go-lang.c (build_go_types): Use init_complex_type.
7521 * gdbtypes.h (struct main_type) <complex_type>: New member.
7522 (init_complex_type): Update.
7523 (arch_complex_type): Don't declare.
7524 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7525 Make name if none given. Use alloc_type_copy. Look for cached
7526 complex type.
7527 (arch_complex_type): Remove.
7528 (gdbtypes_post_init): Use init_complex_type.
7529 * f-lang.c (build_fortran_types): Use init_complex_type.
7530 * dwarf2/read.c (read_base_type): Update.
7531 * d-lang.c (build_d_types): Use init_complex_type.
7532 * ctfread.c (read_base_type): Update.
7533
53cccef1
TBA
75342020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7535
7536 * infrun.c (stop_all_threads): Update assertion, plus when
7537 stopping threads, take into account that we might be trying
7538 to stop an all-stop target.
7539 (stop_waiting): Call 'stop_all_threads' if there exists a
7540 non-stop target.
7541
a0714d30
TBA
75422020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7543
7544 * target.h (exists_non_stop_target): New function declaration.
7545 * target.c (exists_non_stop_target): New function.
7546
60e22c1e
HD
75472020-04-01 Hannes Domani <ssbssa@yahoo.de>
7548
7549 PR gdb/24789
7550 * eval.c (is_integral_or_integral_reference): New function.
7551 (evaluate_subexp_standard): Allow integer references in
7552 pointer arithmetic.
7553
e139a727
TBA
75542020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7555
7556 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7557 check for no ptid in the stop reply when the target is non-stop.
7558
e0802d59
TT
75592020-04-01 Tom Tromey <tromey@adacore.com>
7560
7561 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7562 "name" parameter to rvalue reference. Initialize m_name_holder.
7563 <lookup_name_info>: New overloads.
7564 <name>: Return gdb::string_view.
7565 <c_str>: New method.
7566 <make_ignore_params>: Update.
7567 <search_name_hash>: Update.
7568 <language_lookup_name>: Return const char *.
7569 <m_name>: Change type.
7570 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7571 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7572 (lookup_name_info::match_any): Update.
7573 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7574 Update.
7575 * minsyms.c (linkage_name_str): Update.
7576 * language.c (default_symbol_name_matcher): Update.
7577 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7578 Update.
7579 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7580 (ada_lookup_name_info::ada_lookup_name_info): Update.
7581 (literal_symbol_name_matcher): Update.
7582
8c072cb6
TT
75832020-04-01 Tom Tromey <tromey@adacore.com>
7584
7585 * psymtab.c (psymtab_search_name): Remove function.
7586 (psym_lookup_symbol): Create search name and lookup name here.
7587 (lookup_partial_symbol): Remove "name" parameter; add
7588 lookup_name.
7589 (psym_expand_symtabs_for_function): Update.
7590
6f29a534
TT
75912020-03-31 Joel Jones <joelkevinjones@gmail.com>
7592
7593 PR tui/25597:
7594 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7595
af62665e
TT
75962020-03-31 Tom Tromey <tromey@adacore.com>
7597
7598 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7599 memcpy.
7600
d1a89da5
NC
76012020-03-30 Nelson Chu <nelson.chu@sifive.com>
7602
7603 * features/riscv/32bit-csr.xml: Regenerated.
7604 * features/riscv/64bit-csr.xml: Regenerated.
7605
d8af9068
TT
76062020-03-30 Tom Tromey <tromey@adacore.com>
7607
7608 * ada-valprint.c (print_variant_part): Update.
7609 * ada-lang.h (ada_which_variant_applies): Update.
7610 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7611 outer_valaddr parameters; replace with "outer" value parameter.
7612 (to_fixed_variant_branch_type): Update.
7613
227c0bf4
PFC
76142020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7615
7616 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7617 <list>. Remove inclusion of observable.h.
7618 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7619 (struct arch_lwp_info): New struct.
7620 (class ppc_linux_dreg_interface): New class.
7621 (struct ppc_linux_process_info): New struct.
7622 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7623 <low_new_clone, low_forget_process, low_prepare_to_resume>
7624 <copy_thread_dreg_state, mark_thread_stale>
7625 <mark_debug_registers_changed, register_hw_breakpoint>
7626 <clear_hw_breakpoint, register_wp, clear_wp>
7627 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7628 <num_memory_accesses, get_trigger_type>
7629 <create_watchpoint_request, hwdebug_point_cmp>
7630 <init_arch_lwp_info, get_arch_lwp_info>
7631 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7632 methods.
7633 <struct ptid_hash>: New inner struct.
7634 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7635 members.
7636 (saved_dabr_value, hwdebug_info, max_slots_number)
7637 (struct hw_break_tuple, struct thread_points, ppc_threads)
7638 (have_ptrace_hwdebug_interface)
7639 (hwdebug_find_thread_points_by_tid)
7640 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7641 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7642 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7643 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7644 use m_dreg_interface.
7645 (hwdebug_point_cmp): Change to...
7646 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7647 reference arguments instead of pointers.
7648 (ppc_linux_nat_target::ranged_break_num_registers): Use
7649 m_dreg_interface.
7650 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7651 m_dreg_interface. Call register_hw_breakpoint.
7652 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7653 m_dreg_interface. Call clear_hw_breakpoint.
7654 (get_trigger_type): Change to...
7655 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7656 comment.
7657 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7658 use m_dreg_interface. Call register_hw_breakpoint.
7659 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7660 use m_dreg_interface. Call clear_hw_breakpoint.
7661 (can_use_watchpoint_cond_accel): Change to...
7662 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7663 method. Update comment, use m_dreg_interface and
7664 m_process_info.
7665 (calculate_dvc): Change to...
7666 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7667 m_dreg_interface.
7668 (num_memory_accesses): Change to...
7669 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7670 (check_condition): Change to...
7671 (ppc_linux_nat_target::check_condition): ...this method.
7672 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7673 comment, use m_dreg_interface.
7674 (create_watchpoint_request): Change to...
7675 (ppc_linux_nat_target::create_watchpoint_request): ...this
7676 method. Use m_dreg_interface.
7677 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7678 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7679 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7680 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7681 (ppc_linux_nat_target::low_forget_process)
7682 (ppc_linux_nat_target::low_new_fork)
7683 (ppc_linux_nat_target::low_new_clone)
7684 (ppc_linux_nat_target::low_delete_thread)
7685 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7686 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7687 only call mark_thread_stale.
7688 (ppc_linux_thread_exit): Remove.
7689 (ppc_linux_nat_target::stopped_data_address): Change to...
7690 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7691 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7692 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7693 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7694 comment. Call low_stopped_data_address.
7695 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7696 m_dreg_interface.
7697 (ppc_linux_nat_target::masked_watch_num_registers): Use
7698 m_dreg_interface.
7699 (ppc_linux_nat_target::copy_thread_dreg_state)
7700 (ppc_linux_nat_target::mark_thread_stale)
7701 (ppc_linux_nat_target::mark_debug_registers_changed)
7702 (ppc_linux_nat_target::register_hw_breakpoint)
7703 (ppc_linux_nat_target::clear_hw_breakpoint)
7704 (ppc_linux_nat_target::register_wp)
7705 (ppc_linux_nat_target::clear_wp)
7706 (ppc_linux_nat_target::init_arch_lwp_info)
7707 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7708 (_initialize_ppc_linux_nat): Remove observer callback.
7709
4db10d8f
PFC
77102020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7711
7712 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7713 (ppc_linux_nat_target::auxv_parse)
7714 (ppc_linux_nat_target::read_description)
7715 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7716 Move up.
7717
1310c1b0
PFC
77182020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7719
7720 * linux-nat.h (low_new_clone): New method.
7721 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7722
69b037c3
SM
77232020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7724
7725 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7726 (dbx_expand_psymtab): ... this.
7727 (start_psymtab): Update.
7728 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7729 (mdebug_expand_psymtab): ... this.
7730 (parse_partial_symbols): Update.
7731 (new_psymtab): Update.
7732 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7733 (xcoff_expand_psymtab): ... this.
7734 (xcoff_start_psymtab): Update.
7735
48993951
SM
77362020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7737
7738 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7739 <expand_dependencies>: ... this.
7740 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7741 (partial_symtab::expand_dependencies): ... this.
7742 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7743 Update.
7744 (dwarf2_psymtab::expand_psymtab): Update.
7745 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7746 * mdebugread.c (psymtab_to_symtab_1): Update.
7747 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7748
3ad83046
SM
77492020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7750
7751 * psympriv.h (discard_psymtab): Remove.
7752 * dbxread.c (dbx_end_psymtab): Update.
7753 * xcoffread.c (xcoff_end_psymtab): Update.
7754
4d1b9ab6
TT
77552020-03-28 Tom Tromey <tom@tromey.com>
7756
7757 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7758 comment.
7759
f1749218
TT
77602020-03-28 Tom Tromey <tom@tromey.com>
7761
7762 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7763
ebea7626
HD
77642020-03-27 Hannes Domani <ssbssa@yahoo.de>
7765
7766 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7767
a879b4d5
JB
77682020-03-26 John Baldwin <jhb@FreeBSD.org>
7769
7770 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7771
0826b30a
TT
77722020-03-26 Tom Tromey <tom@tromey.com>
7773
7774 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7775 (mark_common_block_symbol_computed, read_tag_string_type)
7776 (attr_to_dynamic_prop, read_subrange_type): Update.
7777 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7778 to be methods on struct attribute.
7779 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7780 (read_call_site_scope, partial_die_info::read)
7781 (partial_die_info::read, lookup_die_type, follow_die_ref):
7782 Update.
7783 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7784 from dwarf2_get_ref_die_offset.
7785 (attribute::constant_value): New method, from
7786 dwarf2_get_attr_constant_value.
7787 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7788 Declare method.
7789 <constant_value>: New method.
7790
2b2558bf
TT
77912020-03-26 Tom Tromey <tom@tromey.com>
7792
7793 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7794 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7795 (dwarf_type_encoding_name): Move to stringify.c.
7796 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7797 * dwarf2/stringify.c: New file.
7798 * dwarf2/stringify.h: New file.
7799
eeb64781
TT
78002020-03-26 Tom Tromey <tom@tromey.com>
7801
7802 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7803 Rewrite.
7804
a39fdb41
TT
78052020-03-26 Tom Tromey <tom@tromey.com>
7806
7807 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7808 methods.
7809 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7810 (lookup_ranges_base): Likewise.
7811 (read_cutu_die_from_dwo, read_full_die_1): Update.
7812
436c571c
TT
78132020-03-26 Tom Tromey <tom@tromey.com>
7814
7815 * dwarf2/read.c (read_import_statement, read_file_scope)
7816 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7817 (read_lexical_block_scope, read_call_site_scope)
7818 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7819 (handle_struct_member_die, process_structure_scope)
7820 (update_enumeration_type_from_children)
7821 (process_enumeration_scope, read_array_type, read_common_block)
7822 (read_namespace, read_module, read_subroutine_type): Update.
7823 (sibling_die): Remove.
7824
052c8bb8
TT
78252020-03-26 Tom Tromey <tom@tromey.com>
7826
7827 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7828 (build_type_psymtabs_reader, read_structure_type)
7829 (read_enumeration_type, read_full_die_1): Update.
7830 (dwarf2_attr_no_follow): Move to die.h.
7831 * dwarf2/die.h (struct die_info) <attr>: New method.
7832
2b24b6e4
TT
78332020-03-26 Tom Tromey <tom@tromey.com>
7834
7835 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7836 <base_address>: Now an optional.
7837 (dwarf2_find_base_address, dwarf2_rnglists_process)
7838 (dwarf2_ranges_process, fill_in_loclist_baton)
7839 (dwarf2_symbol_mark_computed): Update.
7840
c2d50fd0
TT
78412020-03-26 Tom Tromey <tom@tromey.com>
7842
7843 * dwarf2/read.c (struct die_info): Move to die.h.
7844 * dwarf2/die.h: New file.
7845
0df7ad3a
TT
78462020-03-26 Tom Tromey <tom@tromey.com>
7847
7848 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7849 * dwarf2/read.c
7850 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7851 Move to line-header.c.
7852 (read_checked_initial_length_and_offset, read_formatted_entries):
7853 Likewise.
7854 (dwarf_decode_line_header): Split into two.
7855 * dwarf2/line-header.c
7856 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7857 Move from read.c.
7858 (read_checked_initial_length_and_offset, read_formatted_entries):
7859 Likewise.
7860 (dwarf_decode_line_header): New function, split from read.c.
7861
86c0bb4c
TT
78622020-03-26 Tom Tromey <tom@tromey.com>
7863
7864 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7865 Declare method.
7866 * dwarf2/read.c (read_attribute_value): Update.
7867 (dwarf2_per_objfile::read_line_string): Rename from
7868 read_indirect_line_string.
7869 (read_formatted_entries): Update.
7870
2ef46c2f
TT
78712020-03-26 Tom Tromey <tom@tromey.com>
7872
7873 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7874 variable.
7875
4f9c1eda
TT
78762020-03-26 Tom Tromey <tom@tromey.com>
7877
7878 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7879 const.
7880 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7881 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7882 parameter const.
7883
5a0e026f
TT
78842020-03-26 Tom Tromey <tom@tromey.com>
7885
7886 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7887 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7888 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7889 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7890
8844c11b
TT
78912020-03-26 Tom Tromey <tom@tromey.com>
7892
7893 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7894 file_names_size, file_full_name, file_file_name>: Use const.
7895 <file_name_at, file_names>: Add const overload.
7896 * dwarf2/line-header.c (line_header::file_file_name)
7897 (line_header::file_full_name): Update.
7898
c90ec28a
TT
78992020-03-26 Tom Tromey <tom@tromey.com>
7900
7901 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7902 (macro_start_file, consume_improper_spaces)
7903 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7904 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7905 (dwarf_decode_macros): Move to macro.c.
7906 * dwarf2/macro.c: New file.
7907 * dwarf2/macro.h: New file.
7908 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7909
4f44ae6c
TT
79102020-03-26 Tom Tromey <tom@tromey.com>
7911
7912 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7913 method.
7914 * dwarf2/section.c: New method. From
7915 read_indirect_string_at_offset_from.
7916 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7917 (read_indirect_string_at_offset_from): Move to section.c.
7918 (read_indirect_string_at_offset): Rewrite.
7919 (read_indirect_line_string_at_offset): Remove.
7920 (read_indirect_string, read_indirect_line_string)
7921 (dwarf_decode_macro_bytes): Update.
7922
a0194fa8
TT
79232020-03-26 Tom Tromey <tom@tromey.com>
7924
7925 * dwarf2/section.h (struct dwarf2_section_info)
7926 <overload_complaint>: Declare.
7927 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7928 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7929 Rename from dwarf2_section_buffer_overflow_complaint.
7930 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7931 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7932
3d27bbdb
TT
79332020-03-26 Tom Tromey <tom@tromey.com>
7934
7935 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7936 Declare.
7937 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7938 Move from read.c.
7939 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7940 to section.c.
7941
9eac9650
TT
79422020-03-26 Tom Tromey <tom@tromey.com>
7943
7944 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7945
bf80d710
TT
79462020-03-26 Tom Tromey <tom@tromey.com>
7947
7948 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7949 "builder".
7950 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7951 parameter.
7952 (dwarf_decode_macros): Update.
7953
0314b390
TT
79542020-03-26 Tom Tromey <tom@tromey.com>
7955
7956 * dwarf2/read.c (read_attribute_value): Update.
7957 (read_indirect_string_from_dwz): Move to dwz.c; change into
7958 method.
7959 (dwarf_decode_macro_bytes): Update.
7960 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7961 * dwarf2/dwz.c: New file.
7962 * Makefile.in (COMMON_SFILES): Add dwz.c.
7963
9fda78b6
TT
79642020-03-26 Tom Tromey <tom@tromey.com>
7965
7966 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7967 * dwarf2/read.c: Add include.
7968 * dwarf2/index-write.c: Add include.
7969 * dwarf2/index-cache.c: Add include.
7970 * dwarf2/dwz.h: New file.
7971
33aa3c10
TT
79722020-03-25 Tom Tromey <tom@tromey.com>
7973
7974 * compile/compile-object-load.c (get_out_value_type): Mention
7975 correct symbol name in error message.
7976
d503b685
HD
79772020-03-25 Hannes Domani <ssbssa@yahoo.de>
7978
7979 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7980
7b1eff95
TV
79812020-03-25 Tom de Vries <tdevries@suse.de>
7982
7983 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7984 * symmisc.c (dump_symtab_1): Print user and includes fields.
7985 (maintenance_info_symtabs): Same.
7986
dd895392
AB
79872020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7988
7989 PR gdb/25534
7990 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7991 (riscv_regcache_cooked_write): New function.
7992 (riscv_push_dummy_call): Use new function.
7993 (riscv_return_value): Likewise.
7994
5ab2fbf1
SM
79952020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7996
7997 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7998 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7999 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
8000 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
8001 * infrun.c (follow_fork): Likewise.
8002 (follow_fork_inferior): Likewise.
8003 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
8004 * linux-nat.h (class linux_nat_target): Likewise.
8005 * remote.c (class remote_target) <follow_fork>: Likewise.
8006 (remote_target::follow_fork): Likewise.
8007 * target-delegates.c: Re-generate.
8008 * target.c (default_follow_fork): Likewise.
8009 (target_follow_fork): Likewise.
8010 * target.h (struct target_ops) <follow_fork>: Likewise.
8011 (target_follow_fork): Likewise.
8012
a64fafb5
TV
80132020-03-24 Tom de Vries <tdevries@suse.de>
8014
8015 * psymtab.c (maintenance_info_psymtabs): Print user field.
8016
fe26d3a3
TT
80172020-03-20 Tom Tromey <tromey@adacore.com>
8018
8019 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
8020 const.
8021 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
8022 const.
8023
c884cc46
SM
80242020-03-20 Simon Marchi <simon.marchi@efficios.com>
8025
8026 * ptrace.m4: Don't check for ptrace declaration.
8027 * config.in: Re-generate.
8028 * configure: Re-generate.
8029 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
8030 not defined.
8031
1ff700c2
KR
80322020-03-20 Kamil Rytarowski <n54@gmx.com>
8033
8034 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
8035 `PTRACE_TYPE_RET'.
8036 * i386-bsd-nat.c (gdb_ptrace): Likewise.
8037 * sparc-nat.c (gdb_ptrace): Likewise.
8038 * x86-bsd-nat.c (gdb_ptrace): Likewise.
8039
f7d4f0b1
TT
80402020-03-20 Tom Tromey <tromey@adacore.com>
8041
8042 * c-exp.y (lex_one_token): Fix assert.
8043
f67210ff
TT
80442020-03-20 Tom Tromey <tromey@adacore.com>
8045
8046 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
8047 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
8048 strncpy call.
8049
1773be9e
TT
80502020-03-20 Tom Tromey <tromey@adacore.com>
8051
8052 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
8053
70304be9
TT
80542020-03-20 Tom Tromey <tromey@adacore.com>
8055
8056 * ada-valprint.c (print_variant_part): Remove parameters; switch
8057 to value-based API.
8058 (print_field_values): Likewise.
8059 (ada_val_print_struct_union): Likewise.
8060 (ada_value_print_1): Update.
8061
9faa006d
KR
80622020-03-20 Kamil Rytarowski <n54@gmx.com>
8063
8064 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
8065 nbsd_nat_target instead of inf_ptrace_target.
8066 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8067 nbsd_nat_target.
8068
4a90f062
KR
80692020-03-20 Kamil Rytarowski <n54@gmx.com>
8070
8071 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
8072 it to the ptrace call.
8073 * (store_registers): Likewise.
8074
80752020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
8076
8077 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
8078 it to the ptrace call.
8079 * (store_registers): Likewise.
8080
2d07da27
LM
80812020-03-19 Luis Machado <luis.machado@linaro.org>
8082
8083 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
8084 valid, fetch vg value from ptrace.
8085
f09db380
KR
80862020-03-19 Kamil Rytarowski <n54@gmx.com>
8087 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
8088 * inf-ptrace.c: Likewise.
8089 * (gdb_ptrace): Add.
8090 * (inf_ptrace_target::resume): Update.
8091 * (inf_ptrace_target::xfer_partial): Likewise.
8092 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
8093 * (inf_ptrace_peek_poke): Update.
8094
fcc7376e
KR
80952020-03-19 Kamil Rytarowski <n54@gmx.com>
8096
8097 * x86-bsd-nat.c (gdb_ptrace): New.
8098 * (x86bsd_dr_set): Add new argument `ptid'.
8099 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
8100 x86bsd_dr_set_addr): Update.
8101
cada5fc9
AB
81022020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8103
8104 * remote.c (remote_target::process_stop_reply): Handle events for
8105 all threads differently.
8106
19a2740f
AB
81072020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8108
8109 * completer.c (completion_tracker::remove_completion): Define new
8110 function.
8111 * completer.h (completion_tracker::remove_completion): Declare new
8112 function.
8113 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
8114 when adding a C++ function symbol.
8115
724fd9ba
AB
81162020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
8117
8118 * completer.c (completion_tracker::completion_hash_entry): Define
8119 new class.
8120 (advance_to_filename_complete_word_point): Call
8121 recompute_lowest_common_denominator.
8122 (completion_tracker::completion_tracker): Call discard_completions
8123 to setup the hash table.
8124 (completion_tracker::discard_completions): Allow for being called
8125 from the constructor, pass new equal function, and element deleter
8126 when constructing the hash table. Initialise new class member
8127 variables.
8128 (completion_tracker::maybe_add_completion): Remove use of
8129 m_entries_vec, and store more information into m_entries_hash.
8130 (completion_tracker::recompute_lcd_visitor): New function, most
8131 content taken from...
8132 (completion_tracker::recompute_lowest_common_denominator):
8133 ...here, this now just visits each item in the hash calling the
8134 above visitor.
8135 (completion_tracker::build_completion_result): Remove use of
8136 m_entries_vec, call recompute_lowest_common_denominator.
8137 * completer.h (completion_tracker::have_completions): Remove use
8138 of m_entries_vec.
8139 (completion_tracker::completion_hash_entry): Declare new class.
8140 (completion_tracker::recompute_lowest_common_denominator): Change
8141 function signature.
8142 (completion_tracker::recompute_lcd_visitor): Declare new function.
8143 (completion_tracker::m_entries_vec): Delete.
8144 (completion_tracker::m_entries_hash): Initialize to NULL.
8145 (completion_tracker::m_lowest_common_denominator_valid): New
8146 member variable.
8147 (completion_tracker::m_lowest_common_denominator_max_length): New
8148 member variable.
8149
5a82b8a1
KR
81502020-03-17 Kamil Rytarowski <n54@gmx.com>
8151
8152 * regformats/regdef.h: Put reg in gdb namespace.
8153
fb516a69
KR
81542020-03-17 Kamil Rytarowski <n54@gmx.com>
8155
8156 * i386-bsd-nat.c (gdb_ptrace): New.
8157 * (i386bsd_fetch_inferior_registers,
8158 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8159 * (i386bsd_fetch_inferior_registers,
8160 i386bsd_store_inferior_registers) Use gdb_ptrace.
8161
1c0aa1fb
KR
81622020-03-17 Kamil Rytarowski <n54@gmx.com>
8163
8164 * amd64-bsd-nat.c (gdb_ptrace): New.
8165 * (amd64bsd_fetch_inferior_registers,
8166 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
8167 * (amd64bsd_fetch_inferior_registers,
8168 amd64bsd_store_inferior_registers) Use gdb_ptrace.
8169
5ccd2fb7
KR
81702020-03-17 Kamil Rytarowski <n54@gmx.com>
8171
8172 * user-regs.c (user_reg::read): Rename to...
8173 (user_reg::xread): ...this.
8174 * (append_user_reg): Rename argument `read' to `xread'.
8175 * (user_reg_add_builtin): Likewise.
8176 * (user_reg_add): Likewise.
8177 * (value_of_user_reg): Likewise.
8178
2108a63a
KR
81792020-03-17 Kamil Rytarowski <n54@gmx.com>
8180
8181 * sparc-nat.c (gdb_ptrace): New.
8182 * sparc-nat.c (sparc_fetch_inferior_registers)
8183 (sparc_store_inferior_registers) Remove obsolete comment.
8184 * sparc-nat.c (sparc_fetch_inferior_registers)
8185 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
8186 * sparc-nat.c (sparc_fetch_inferior_registers)
8187 (sparc_store_inferior_registers) Use gdb_ptrace.
8188
a225c9a8
KR
81892020-03-17 Kamil Rytarowski <n54@gmx.com>
8190
8191 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
8192 it to the ptrace call.
8193 * sh-nbsd-nat.c (store_registers): Likewise.
8194
98097623
KR
81952020-03-17 Kamil Rytarowski <n54@gmx.com>
8196
8197 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
8198 nbsd_nat_target instead of inf_ptrace_target.
8199 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8200 nbsd_nat_target.
8201
9e38d619
KR
82022020-03-17 Kamil Rytarowski <n54@gmx.com>
8203
8204 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
8205
a2ecbe9f
KR
82062020-03-17 Kamil Rytarowski <n54@gmx.com>
8207
8208 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
8209 <sys/sysctl.h>.
8210 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
8211
58990295
TV
82122020-03-17 Tom de Vries <tdevries@suse.de>
8213
8214 PR gdb/23710
8215 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
8216 fields.
8217 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
8218 fields.
8219 (process_imported_unit_die): Skip import of c++ CUs.
8220
771dd3a8
TT
82212020-03-16 Tom Tromey <tom@tromey.com>
8222
8223 * p-valprint.c (pascal_object_print_value): Initialize
8224 base_value.
8225
817a7585
AK
82262020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
8227 Shahab Vahedi <shahab@synopsys.com>
8228
8229 * Makefile.in: Add arch/arc.o
8230 * configure.tgt: Likewise.
8231 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
8232 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 8233 (arc_read_description): New function to cache target descriptions.
817a7585
AK
8234 * arc-tdep.h (arc_read_description): Add proto type.
8235 * arch/arc.c: New file.
8236 * arch/arc.h: Likewise.
8237 * features/Makefile: Replace old target descriptions with new.
8238 * features/arc-arcompact.c: Remove.
8239 * features/arc-arcompact.xml: Likewise.
8240 * features/arc-v2.c: Likewise
8241 * features/arc-v2.xml: Likewise
8242 * features/arc/aux-arcompact.xml: New file.
8243 * features/arc/aux-v2.xml: Likewise.
8244 * features/arc/core-arcompact.xml: Likewise.
8245 * features/arc/core-v2.xml: Likewise.
8246 * features/arc/aux-arcompact.c: Generate.
8247 * features/arc/aux-v2.c: Likewise.
8248 * features/arc/core-arcompact.c: Likewise.
8249 * features/arc/core-v2.c: Likewise.
8250 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
8251
67430cd0
TT
82522020-03-16 Tom Tromey <tromey@adacore.com>
8253
8254 PR gdb/25663:
8255 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
8256 putting value into bcache.
8257
30efb6c7
SM
82582020-03-16 Simon Marchi <simon.marchi@efficios.com>
8259
8260 PR gdb/21500
8261 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8262 to...
8263 (amd64_windows_init_abi_common): ... this. Don't set size of
8264 long type.
8265 (amd64_windows_init_abi): New function.
8266 (amd64_cygwin_init_abi): New function.
8267 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8268 the Cygwin OS ABI.
8269 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8270 comment.
8271
8db52437
SM
82722020-03-16 Simon Marchi <simon.marchi@efficios.com>
8273
8274 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8275 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8276 (pe_import_directory_entry): New struct type.
8277 (is_linked_with_cygwin_dll): New function.
8278 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8279 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8280 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8281
5982a56a
SM
82822020-03-16 Simon Marchi <simon.marchi@efficios.com>
8283
8284 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8285 i386_cygwin_core_osabi_sniffer.
8286
7a1998df
SM
82872020-03-16 Simon Marchi <simon.marchi@efficios.com>
8288
8289 * i386-cygwin-tdep.c: Rename to...
8290 * i386-windows-tdep.c: ... this.
8291 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8292 i386-windows-tdep.c.
8293 * configure.tgt: Likewise.
8294
053205cc
SM
82952020-03-16 Simon Marchi <simon.marchi@efficios.com>
8296
8297 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8298 * osabi.c (gdb_osabi_names): Add "Windows".
8299 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8300 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8301 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8302 i386_cygwin_osabi_sniffer.
8303 (_initialize_i386_cygwin_tdep): Register OS ABI
8304 GDB_OSABI_WINDOWS for i386.
8305 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8306 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8307 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8308 for x86-64.
8309 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8310 when the target matches '*-*-mingw*'.
8311
fe4b2ee6
SM
83122020-03-16 Simon Marchi <simon.marchi@efficios.com>
8313
8314 * defs.h (enum gdb_osabi): Move to...
8315 * osabi.h (enum gdb_osabi): ... here.
8316 * gdbarch.sh: Include osabi.h in gdbarch.h.
8317 * gdbarch.h: Re-generate.
8318
cb9b645d
SM
83192020-03-16 Simon Marchi <simon.marchi@efficios.com>
8320
8321 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8322 function.
8323 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8324
3293bbaf
TT
83252020-03-14 Tom Tromey <tom@tromey.com>
8326
8327 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8328 for C++.
8329 (c_type_print_modifier): Likewise. Add "language" parameter.
8330 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8331 (c_type_print_base_1): Update.
8332 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8333 constants.
8334 * type-stack.c (type_stack::insert): Handle tp_atomic and
8335 tp_restrict.
8336 (type_stack::follow_type_instance_flags): Likewise.
8337 (type_stack::follow_types): Likewise. Merge type-following code.
8338 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8339 (space_identifier, cv_with_space_id)
8340 (const_or_volatile_or_space_identifier_noopt)
8341 (const_or_volatile_or_space_identifier): Remove.
8342 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8343 rules.
8344 (ptr_operator, typebase): Update.
8345 (enum token_flag) <FLAG_C>: New constant.
8346 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8347 "_Atomic".
8348 (lex_one_token): Handle FLAG_C.
8349
154151a6
KR
83502020-03-14 Kamil Rytarowski <n54@gmx.com>
8351
8352 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8353 it to the ptrace call.
8354 * m68k-bsd-nat.c (store_registers): Likewise.
8355
bc107784
KR
83562020-03-14 Kamil Rytarowski <n54@gmx.com>
8357
8358 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8359 gdb_byte *.
8360 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8361 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8362 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8363
01a80117
KR
83642020-03-14 Kamil Rytarowski <n54@gmx.com>
8365
8366 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8367 nbsd_nat_target instead of inf_ptrace_target.
8368 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8369 nbsd_nat_target.
8370
f90280ca
KR
83712020-03-14 Kamil Rytarowski <n54@gmx.com>
8372
8373 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8374 register_t.
8375
6def66f1
KR
83762020-03-14 Kamil Rytarowski <n54@gmx.com>
8377
8378 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8379 it to the ptrace call.
8380 * alpha-bsd-nat.c (store_registers): Likewise.
8381
66eaca97
KR
83822020-03-14 Kamil Rytarowski <n54@gmx.com>
8383
8384 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8385 includes.
8386 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8387 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8388 fill_fpregset): Likewise.
8389
4fed520b
KR
83902020-03-14 Kamil Rytarowski <n54@gmx.com>
8391
8392 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8393 nbsd_nat_target instead of inf_ptrace_target.
8394 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8395 nbsd_nat_target.
8396
2190cf06
KR
83972020-03-14 Kamil Rytarowski <n54@gmx.com>
8398
8399 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8400 register_t.
8401
75c56d3d
KR
84022020-03-14 Kamil Rytarowski <n54@gmx.com>
8403
8404 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8405 it to the ptrace call.
8406 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8407 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8408 * arm-nbsd-nat.c (store_register): Likewise.
8409 * arm-nbsd-nat.c (store_regs): Likewise.
8410 * arm-nbsd-nat.c (store_fp_register): Likewise.
8411 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8412
6018d381
KR
84132020-03-14 Kamil Rytarowski <n54@gmx.com>
8414
8415 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8416 nbsd_nat_target instead of inf_ptrace_target.
8417 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8418 nbsd_nat_target.
8419
013f99f0
KR
84202020-03-14 Kamil Rytarowski <n54@gmx.com>
8421
8422 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8423 it to the ptrace call.
8424 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8425
12753073
KR
84262020-03-14 Kamil Rytarowski <n54@gmx.com>
8427
6227b330
KR
8428 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8429 it to the ptrace call.
8430 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8431
84322020-03-14 Kamil Rytarowski <n54@gmx.com>
8433
8434 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8435 gdb_byte *.
12753073
KR
8436 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8437
d5be5fa4
KR
84382020-03-14 Kamil Rytarowski <n54@gmx.com>
8439
8440 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8441 instead of inf_ptrace_target.
8442 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8443 nbsd_nat_target.
8444
8110f842
KR
84452020-03-14 Kamil Rytarowski <n54@gmx.com>
8446
8447 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8448 register_t.
8449
52feded7
KR
84502020-03-14 Kamil Rytarowski <n54@gmx.com>
8451
8452 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8453 register_t.
8454
25567eee
KR
84552020-03-14 Kamil Rytarowski <n54@gmx.com>
8456
8457 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8458 register_t.
8459
426a9c18
TT
84602020-03-13 Tom Tromey <tom@tromey.com>
8461
8462 * value.h (val_print): Don't declare.
8463 * valprint.h (val_print_array_elements)
8464 (val_print_scalar_formatted, generic_val_print): Don't declare.
8465 * valprint.c (generic_val_print_array): Take a struct value.
8466 (generic_val_print_ptr, generic_val_print_memberptr)
8467 (generic_val_print_bool, generic_val_print_int)
8468 (generic_val_print_char, generic_val_print_complex)
8469 (generic_val_print): Remove.
8470 (generic_value_print): Update.
8471 (do_val_print): Remove unused parameters. Don't call
8472 la_val_print.
8473 (val_print): Remove.
8474 (common_val_print): Update. Don't call value_check_printable.
8475 (val_print_scalar_formatted, val_print_array_elements): Remove.
8476 * rust-lang.c (rust_val_print): Remove.
8477 (rust_language_defn): Update.
8478 * p-valprint.c (pascal_val_print): Remove.
8479 (pascal_value_print_inner): Update.
8480 (pascal_object_print_val_fields, pascal_object_print_val):
8481 Remove.
8482 (pascal_object_print_static_field): Update.
8483 * p-lang.h (pascal_val_print): Don't declare.
8484 * p-lang.c (pascal_language_defn): Update.
8485 * opencl-lang.c (opencl_language_defn): Update.
8486 * objc-lang.c (objc_language_defn): Update.
8487 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8488 * m2-lang.h (m2_val_print): Don't declare.
8489 * m2-lang.c (m2_language_defn): Update.
8490 * language.h (struct language_defn) <la_val_print>: Remove.
8491 * language.c (unk_lang_value_print_inner): Rename. Change
8492 argument types.
8493 (unknown_language_defn, auto_language_defn): Update.
8494 * go-valprint.c (go_val_print): Remove.
8495 * go-lang.h (go_val_print): Don't declare.
8496 * go-lang.c (go_language_defn): Update.
8497 * f-valprint.c (f_val_print): Remove.
8498 * f-lang.h (f_value_print): Don't declare.
8499 * f-lang.c (f_language_defn): Update.
8500 * d-valprint.c (d_val_print): Remove.
8501 * d-lang.h (d_value_print): Don't declare.
8502 * d-lang.c (d_language_defn): Update.
8503 * cp-valprint.c (cp_print_value_fields)
8504 (cp_print_value_fields_rtti, cp_print_value): Remove.
8505 (cp_print_static_field): Update.
8506 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8507 (c_val_print_struct, c_val_print_union, c_val_print_int)
8508 (c_val_print_memberptr, c_val_print): Remove.
8509 * c-lang.h (c_val_print_array, cp_print_value_fields)
8510 (cp_print_value_fields_rtti): Don't declare.
8511 * c-lang.c (c_language_defn, cplus_language_defn)
8512 (asm_language_defn, minimal_language_defn): Update.
8513 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8514 (ada_val_print_enum): Take a struct value.
8515 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8516 (ada_val_print): Remove.
8517 (ada_value_print_1): Update.
8518 (printable_val_type): Remove.
8519 * ada-lang.h (ada_val_print): Don't declare.
8520 * ada-lang.c (ada_language_defn): Update.
8521
42331a1e
TT
85222020-03-13 Tom Tromey <tom@tromey.com>
8523
8524 * valprint.c (do_val_print): Update.
8525 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8526 a struct value.
8527 (value_to_value_object_no_release): Declare.
8528 * python/py-value.c (value_to_value_object_no_release): New
8529 function.
8530 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8531 struct value.
8532 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8533 function.
8534 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8535 a struct value.
8536 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8537 Declare.
8538 (gdbscm_apply_val_pretty_printer): Take a struct value.
8539 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8540 value.
8541 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8542 value.
8543 * extension-priv.h (struct extension_language_ops)
8544 <apply_val_pretty_printer>: Take a struct value.
8545 * cp-valprint.c (cp_print_value): Create a struct value.
8546 (cp_print_value): Update.
8547
3a916a97
TT
85482020-03-13 Tom Tromey <tom@tromey.com>
8549
8550 * ada-valprint.c (print_field_values): Call common_val_print.
8551
b59eac37
TT
85522020-03-13 Tom Tromey <tom@tromey.com>
8553
8554 * ada-valprint.c (val_print_packed_array_elements): Remove
8555 bitoffset and val parameters. Call common_val_print.
8556 (ada_val_print_string): Remove offset, address, and original_value
8557 parameters.
8558 (ada_val_print_array): Update.
8559 (ada_value_print_array): New function.
8560 (ada_value_print_1): Call it.
8561
03371129
TT
85622020-03-13 Tom Tromey <tom@tromey.com>
8563
8564 * ada-valprint.c (ada_value_print): Use common_val_print.
8565
2e088f8b
TT
85662020-03-13 Tom Tromey <tom@tromey.com>
8567
8568 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8569
39ef85a8
TT
85702020-03-13 Tom Tromey <tom@tromey.com>
8571
8572 * ada-valprint.c (ada_value_print_num): New function.
8573 (ada_value_print_1): Use it.
8574
b9fa6e07
TT
85752020-03-13 Tom Tromey <tom@tromey.com>
8576
8577 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8578
416595d6
TT
85792020-03-13 Tom Tromey <tom@tromey.com>
8580
8581 * ada-valprint.c (ada_value_print_ptr): New function.
8582 (ada_value_print_1): Use it.
8583
5b5e15ec
TT
85842020-03-13 Tom Tromey <tom@tromey.com>
8585
8586 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8587 call common_val_print.
8588 (ada_val_print_1): Update.
8589 (ada_value_print_1): New function.
8590 (ada_value_print_inner): Rewrite.
8591
fbf54e75
TT
85922020-03-13 Tom Tromey <tom@tromey.com>
8593
8594 * cp-valprint.c (cp_print_value_fields): Update.
8595 (cp_print_value): New function.
8596
64b653ca
TT
85972020-03-13 Tom Tromey <tom@tromey.com>
8598
8599 * m2-valprint.c (m2_value_print_inner): Use
8600 cp_print_value_fields.
8601 * cp-valprint.c (cp_print_value_fields): New function.
8602 * c-valprint.c (c_value_print_struct): New function.
8603 (c_value_print_inner): Use c_value_print_struct.
8604 * c-lang.h (cp_print_value_fields): Declare.
8605
6999f067
TT
86062020-03-13 Tom Tromey <tom@tromey.com>
8607
8608 * c-valprint.c (c_value_print_array): New function.
8609 (c_value_print_inner): Use it.
8610
ce80b8bd
TT
86112020-03-13 Tom Tromey <tom@tromey.com>
8612
8613 * c-valprint.c (c_value_print_memberptr): New function.
8614 (c_value_print_inner): Use it.
8615
2faac269
TT
86162020-03-13 Tom Tromey <tom@tromey.com>
8617
8618 * c-valprint.c (c_value_print_int): New function.
8619 (c_value_print_inner): Use it.
8620
da3e2c29
TT
86212020-03-13 Tom Tromey <tom@tromey.com>
8622
8623 * c-valprint.c (c_value_print_ptr): New function.
8624 (c_value_print_inner): Use it.
8625
50836231
TT
86262020-03-13 Tom Tromey <tom@tromey.com>
8627
8628 * c-valprint.c (c_value_print_inner): Rewrite.
8629
4f412b6e
TT
86302020-03-13 Tom Tromey <tom@tromey.com>
8631
8632 * valprint.c (generic_value_print_complex): New function.
8633 (generic_value_print): Use it.
8634
f5354008
TT
86352020-03-13 Tom Tromey <tom@tromey.com>
8636
8637 * valprint.c (generic_val_print_float): Don't call
8638 val_print_scalar_formatted.
8639 (generic_val_print, generic_value_print): Update.
8640
3eec3b05
TT
86412020-03-13 Tom Tromey <tom@tromey.com>
8642
8643 * valprint.c (generic_value_print_char): New function
8644 (generic_value_print): Use it.
8645
fdddfccb
TT
86462020-03-13 Tom Tromey <tom@tromey.com>
8647
8648 * valprint.c (generic_value_print_int): New function.
8649 (generic_value_print): Use it.
8650
6dde7521
TT
86512020-03-13 Tom Tromey <tom@tromey.com>
8652
8653 * valprint.c (generic_value_print_bool): New function.
8654 (generic_value_print): Use it.
8655
4112d2e6
TT
86562020-03-13 Tom Tromey <tom@tromey.com>
8657
8658 * valprint.c (generic_val_print_func): Simplify.
8659 (generic_val_print, generic_value_print): Update.
8660
65786af6
TT
86612020-03-13 Tom Tromey <tom@tromey.com>
8662
8663 * valprint.c (generic_val_print_flags): Remove.
8664 (generic_val_print, generic_value_print): Update.
8665 (val_print_type_code_flags): Add original_value parameter.
8666
40f3ce18
TT
86672020-03-13 Tom Tromey <tom@tromey.com>
8668
8669 * valprint.c (generic_val_print): Update.
8670 (generic_value_print): Update.
8671 * valprint.c (generic_val_print_enum): Don't call
8672 val_print_scalar_formatted.
8673
2a5b130b
TT
86742020-03-13 Tom Tromey <tom@tromey.com>
8675
8676 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8677 * valprint.c (generic_value_print_ptr): New function.
8678
abc66ce9
TT
86792020-03-13 Tom Tromey <tom@tromey.com>
8680
8681 * valprint.c (generic_value_print): Rewrite.
8682
07a32858
TT
86832020-03-13 Tom Tromey <tom@tromey.com>
8684
8685 * p-valprint.c (pascal_object_print_value_fields)
8686 (pascal_object_print_value): New functions.
8687
64d64d3a
TT
86882020-03-13 Tom Tromey <tom@tromey.com>
8689
8690 * p-valprint.c (pascal_value_print_inner): Rewrite.
8691
6a95a1f5
TT
86922020-03-13 Tom Tromey <tom@tromey.com>
8693
8694 * f-valprint.c (f_value_print_innner): Rewrite.
8695
59fcdac6
TT
86962020-03-13 Tom Tromey <tom@tromey.com>
8697
8698 * m2-valprint.c (m2_print_unbounded_array): New overload.
8699 (m2_print_unbounded_array): Update.
8700 (m2_print_array_contents): Take a struct value.
8701 (m2_value_print_inner): Rewrite.
8702
d133c3e1
TT
87032020-03-13 Tom Tromey <tom@tromey.com>
8704
8705 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8706 (d_value_print_inner): New function.
8707 * d-lang.h (d_value_print_inner): Declare.
8708 * d-lang.c (d_language_defn): Use d_value_print_inner.
8709
23b0f06b
TT
87102020-03-13 Tom Tromey <tom@tromey.com>
8711
8712 * go-valprint.c (go_value_print_inner): New function.
8713 * go-lang.h (go_value_print_inner): Declare.
8714 * go-lang.c (go_language_defn): Use go_value_print_inner.
8715
5f56f7cb
TT
87162020-03-13 Tom Tromey <tom@tromey.com>
8717
8718 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8719 API.
8720 (rust_val_print): Rewrite.
8721 (rust_value_print_inner): New function, from rust_val_print.
8722 (rust_language_defn): Use rust_value_print_inner.
8723
26792ee0
TT
87242020-03-13 Tom Tromey <tom@tromey.com>
8725
8726 * ada-valprint.c (ada_value_print_inner): New function.
8727 * ada-lang.h (ada_value_print_inner): Declare.
8728 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8729
24051bbe
TT
87302020-03-13 Tom Tromey <tom@tromey.com>
8731
8732 * f-valprint.c (f_value_print_innner): New function.
8733 * f-lang.h (f_value_print_innner): Declare.
8734 * f-lang.c (f_language_defn): Use f_value_print_innner.
8735
c0941be6
TT
87362020-03-13 Tom Tromey <tom@tromey.com>
8737
8738 * p-valprint.c (pascal_value_print_inner): New function.
8739 * p-lang.h (pascal_value_print_inner): Declare.
8740 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8741
62c4663d
TT
87422020-03-13 Tom Tromey <tom@tromey.com>
8743
8744 * m2-valprint.c (m2_value_print_inner): New function.
8745 * m2-lang.h (m2_value_print_inner): Declare.
8746 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8747
62182190
TT
87482020-03-13 Tom Tromey <tom@tromey.com>
8749
8750 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8751 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8752 * c-valprint.c (c_value_print_inner): New function.
8753 * c-lang.h (c_value_print_inner): Declare.
8754 * c-lang.c (c_language_defn, cplus_language_defn)
8755 (asm_language_defn, minimal_language_defn): Use
8756 c_value_print_inner.
8757
1e592a8a
TT
87582020-03-13 Tom Tromey <tom@tromey.com>
8759
8760 * p-valprint.c (pascal_object_print_value_fields): Now static.
8761 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8762
7fe471e9
TT
87632020-03-13 Tom Tromey <tom@tromey.com>
8764
8765 * c-valprint.c (c_val_print_array): Simplify.
8766
d121c6ce
TT
87672020-03-13 Tom Tromey <tom@tromey.com>
8768
8769 * valprint.c (value_print_array_elements): New function.
8770 * valprint.h (value_print_array_elements): Declare.
8771
4dba70ee
TT
87722020-03-13 Tom Tromey <tom@tromey.com>
8773
8774 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8775 * mips-tdep.c (mips_print_register): Use
8776 value_print_scalar_formatted.
8777
4f9ae810
TT
87782020-03-13 Tom Tromey <tom@tromey.com>
8779
8780 * valprint.h (value_print_scalar_formatted): Declare.
8781 * valprint.c (value_print_scalar_formatted): New function.
8782
156bfec9
TT
87832020-03-13 Tom Tromey <tom@tromey.com>
8784
8785 * valprint.h (generic_value_print): Declare.
8786 * valprint.c (generic_value_print): New function.
8787
2b4e573d
TT
87882020-03-13 Tom Tromey <tom@tromey.com>
8789
8790 * valprint.c (do_val_print): Call la_value_print_inner, if
8791 available.
8792 * rust-lang.c (rust_language_defn): Update.
8793 * p-lang.c (pascal_language_defn): Update.
8794 * opencl-lang.c (opencl_language_defn): Update.
8795 * objc-lang.c (objc_language_defn): Update.
8796 * m2-lang.c (m2_language_defn): Update.
8797 * language.h (struct language_defn) <la_value_print_inner>: New
8798 member.
8799 * language.c (unknown_language_defn, auto_language_defn): Update.
8800 * go-lang.c (go_language_defn): Update.
8801 * f-lang.c (f_language_defn): Update.
8802 * d-lang.c (d_language_defn): Update.
8803 * c-lang.c (c_language_defn, cplus_language_defn)
8804 (asm_language_defn, minimal_language_defn): Update.
8805 * ada-lang.c (ada_language_defn): Update.
8806
a1f6a07c
TT
88072020-03-13 Tom Tromey <tom@tromey.com>
8808
8809 * c-valprint.c (c_value_print): Use common_val_print.
8810
410cf315
TT
88112020-03-13 Tom Tromey <tom@tromey.com>
8812
8813 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8814
72a45c93
TT
88152020-03-13 Tom Tromey <tom@tromey.com>
8816
8817 * f-valprint.c (f77_print_array_1, f_val_print): Use
8818 common_val_print.
8819
040f66bd
TT
88202020-03-13 Tom Tromey <tom@tromey.com>
8821
8822 * riscv-tdep.c (riscv_print_one_register_info): Use
8823 common_val_print.
8824
a6e05a6c
TT
88252020-03-13 Tom Tromey <tom@tromey.com>
8826
8827 * mi/mi-main.c (output_register): Use common_val_print.
8828
3444c526
TT
88292020-03-13 Tom Tromey <tom@tromey.com>
8830
8831 * infcmd.c (default_print_one_register_info): Use
8832 common_val_print.
8833
c2a44efe
TT
88342020-03-13 Tom Tromey <tom@tromey.com>
8835
8836 * valprint.h (common_val_print_checked): Declare.
8837 * valprint.c (common_val_print_checked): New function.
8838 * stack.c (print_frame_arg): Use common_val_print_checked.
8839
b0c26e99
TT
88402020-03-13 Tom Tromey <tom@tromey.com>
8841
8842 * valprint.c (do_val_print): New function, from val_print.
8843 (val_print): Use do_val_print.
8844 (common_val_print): Use do_val_print.
8845
ce3acbe9
TT
88462020-03-13 Tom Tromey <tom@tromey.com>
8847
8848 * valprint.c (value_print): Use scoped_value_mark.
8849
96c7f873
TV
88502020-03-13 Tom de Vries <tdevries@suse.de>
8851
8852 PR symtab/25646
8853 * psymtab.c (partial_symtab::partial_symtab): Don't set
8854 globals_offset and statics_offset. Push element onto
8855 current_global_psymbols and current_static_psymbols stacks.
8856 (concat): New function.
8857 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8858 element from current_global_psymbols and current_static_psymbols
8859 stacks. Concat popped elements to global_psymbols and
8860 static_symbols.
8861 (add_psymbol_to_list): Use current_global_psymbols and
8862 current_static_psymbols stacks.
8863 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8864 current_static_psymbols fields.
8865
6ba0a321
CB
88662020-03-12 Christian Biesinger <cbiesinger@google.com>
8867
8868 * corelow.c (sniff_core_bfd): Remove.
8869 (class core_target) <m_core_vec>: Remove.
8870 (core_target::core_target): Update.
8871 (core_file_fns): Remove.
8872 (deprecated_add_core_fns): Remove.
8873 (default_core_sniffer): Remove.
8874 (sniff_core_bfd): Remove.
8875 (default_check_format): Remove.
8876 (gdb_check_format): Remove.
8877 (core_target_open): Update.
8878 (core_target::get_core_register_section): Update.
8879 (get_core_registers_cb): Update.
8880 (core_target::fetch_registers): Update.
8881 * gdbcore.h (struct core_fns): Remove.
8882 (deprecated_add_core_fns): Remove.
8883 (default_core_sniffer): Remove.
8884 (default_check_format): Remove.
8885
227031b2
TT
88862020-03-12 Tom Tromey <tom@tromey.com>
8887
8888 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8889 CORE_ADDR.
8890 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8891
53807e9f
TT
88922020-03-12 Tom Tromey <tom@tromey.com>
8893
8894 * remote.c (remote_target::download_tracepoint)
8895 (remote_target::enable_tracepoint)
8896 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8897 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8898 sprintf_vma.
8899
64f25102
TT
89002020-03-12 Tom Tromey <tom@tromey.com>
8901
8902 * symfile-mem.c: Update CORE_ADDR size assert.
8903
272cd5a3
SM
89042020-03-12 Simon Marchi <simon.marchi@efficios.com>
8905
8906 * selftest.m4: Move to gdbsupport/.
8907 * acinclude.m4: Update path to selftest.m4.
8908
74cd3f9d
SM
89092020-03-12 Simon Marchi <simon.marchi@efficios.com>
8910
8911 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8912 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8913 gdbarch-selfselftests.c and selftest-arch.c.
8914 (SUBDIR_UNITTESTS_OBS): Rename to...
8915 (SELFTESTS_OBS): ... this.
8916 (COMMON_SFILES): Remove disasm-selftests.c and
8917 gdbarch-selftests.c.
8918 * configure.ac: Don't add selftest-arch.{c,o} to
8919 CONFIG_{SRCS,OBS}.
8920 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8921 preprocessor conditions.
8922
db6878ac
SM
89232020-03-12 Simon Marchi <simon.marchi@efficios.com>
8924
8925 * configure.ac: Don't source bfd/development.sh.
8926 * selftest.m4: Modify comment.
8927 * configure: Re-generate.
8928
4d696a5c
SM
89292020-03-12 Simon Marchi <simon.marchi@efficios.com>
8930
8931 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8932 not "true" or "false".
8933 * configure: Re-generate.
8934
8dd8e1c7
CB
89352020-03-12 Christian Biesinger <cbiesinger@google.com>
8936
8937 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8938 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8939 renamed to arm_nbsd_supply_gregset.
8940 (fetch_register): Update to call arm_nbsd_supply_gregset.
8941 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8942 (arm_netbsd_nat_target::fetch_registers): Update.
8943 (fetch_elfcore_registers): Removed.
8944 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8945 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8946 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8947 not require NetBSD system headers.
8948 (arm_nbsd_regset): New struct.
8949 (arm_nbsd_iterate_over_regset_sections): New function.
8950 (arm_netbsd_init_abi_common): Updated to call
8951 set_gdbarch_iterate_over_regset_sections.
8952 * arm-nbsd-tdep.h: New file.
8953
dd69bf7a
KB
89542020-03-11 Kevin Buettner <kevinb@redhat.com>
8955
8956 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8957 recursion.
8958
a0761e34
SM
89592020-03-11 Simon Marchi <simon.marchi@efficios.com>
8960
8961 * configure: Re-generate.
8962
e7a82140
TT
89632020-03-11 Tom Tromey <tromey@adacore.com>
8964
8965 * ada-typeprint.c (print_choices): Fix comment.
8966
dcc050c8
AB
89672020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8968
8969 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8970 previous item in the list, when the list has no items.
8971
1c33af77
TV
89722020-03-11 Tom de Vries <tdevries@suse.de>
8973
8974 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8975 PROP_LOCLIST handling code.
8976
8c95582d
AB
89772020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8978
8979 * buildsym-legacy.c (record_line): Pass extra parameter to
8980 record_line.
8981 * buildsym.c (buildsym_compunit::record_line): Take an extra
8982 parameter, reduce duplication in the line table, and record the
8983 is_stmt flag in the line table.
8984 * buildsym.h (buildsym_compunit::record_line): Add extra
8985 parameter.
8986 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8987 non-statement lines.
8988 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8989 this to the symtab builder.
8990 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8991 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8992 through to dwarf_record_line_1.
8993 * infrun.c (process_event_stop_test): When stepping, don't stop at
8994 a non-statement instruction, and only refresh the step info when
8995 we land in the middle of a line's range. Also add an extra
8996 comment.
8997 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8998 field.
8999 * record-btrace.c (btrace_find_line_range): Only record lines
9000 marked as is-statement.
9001 * stack.c (frame_show_address): Show the frame address if we are
9002 in a non-statement sal.
9003 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
9004 (maintenance_print_one_line_table): Print a header for the is_stmt
9005 column, and include is_stmt information in the output.
9006 * symtab.c (find_pc_sect_line): Find lines marked as statements in
9007 preference to non-statements.
9008 (find_pcs_for_symtab_line): Prefer is-statement entries.
9009 (find_line_common): Likewise.
9010 * symtab.h (struct linetable_entry): Add is_stmt field.
9011 (struct symtab_and_line): Likewise.
9012 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
9013 arranging the line table.
9014
e4003a34
TV
90152020-03-07 Tom de Vries <tdevries@suse.de>
9016
9017 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
9018 DIE.
9019
e8932576
TT
90202020-03-07 Tom Tromey <tom@tromey.com>
9021
9022 * valops.c (value_literal_complex): Remove obsolete comment.
9023 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
9024 comment.
9025
29734269
SM
90262020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
9027
9028 * infrun.h: Forward-declare thread_info.
9029 (set_step_info): Add thread_info parameter, add doc.
9030 * infrun.c (set_step_info): Add thread_info parameter, move doc
9031 to header.
9032 * infrun.c (process_event_stop_test): Pass thread to
9033 set_step_info call.
9034 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
9035 set_step_info.
9036 (prepare_one_step): Add thread_info parameter, pass it to
9037 set_step_frame and prepare_one_step (recursive) call.
9038 (step_1): Pass thread to prepare_one_step call.
9039 (step_command_fsm::should_stop): Pass thread to
9040 prepare_one_step.
9041 (until_next_fsm): Pass thread to set_step_frame call.
9042 (finish_command): Pass thread to set_step_info call.
9043
b7d64b29
HD
90442020-03-06 Hannes Domani <ssbssa@yahoo.de>
9045
9046 * windows-tdep.c (windows_solib_create_inferior_hook):
9047 Check if inferior is running.
9048
09f2921c
TV
90492020-03-06 Tom de Vries <tdevries@suse.de>
9050
9051 * NEWS: Fix "the the".
9052 * ctfread.c: Same.
9053
fd760e79
TV
90542020-03-06 Tom de Vries <tdevries@suse.de>
9055
9056 * psymtab.c (psymtab_to_symtab): Don't print "done.".
9057
20ea4a60
AB
90582020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
9059
9060 * .dir-locals.el: Add a comment referencing the other copies of
9061 this file.
9062
0afbabf0
JB
90632020-03-05 John Baldwin <jhb@FreeBSD.org>
9064
9065 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
9066 psargs.
9067
842806cb
TBA
90682020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9069
9070 * .gitattributes: New file.
9071
be1e3d3e
TT
90722020-03-04 Tom Tromey <tom@tromey.com>
9073
9074 * symmisc.c (print_symbol_bcache_statistics)
9075 (print_objfile_statistics): Update.
9076 * symfile.c (allocate_symtab): Use intern.
9077 * psymtab.c (partial_symtab::partial_symtab): Use intern.
9078 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
9079 macro_cache>: Remove.
9080 <string_cache>: New member.
9081 (struct objfile) <intern>: New methods.
9082 * elfread.c (elf_symtab_read): Use intern.
9083 * dwarf2/read.c (fixup_go_packaging): Intern package name.
9084 (dwarf2_compute_name, dwarf2_physname)
9085 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
9086 names.
9087 (guess_partial_die_structure_name): Update.
9088 (partial_die_info::fixup): Intern name.
9089 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
9090 name.
9091 (dwarf2_name): Intern name. Update.
9092 * buildsym.c (buildsym_compunit::get_macro_table): Use
9093 string_cache.
9094
4e7625fd
TT
90952020-03-04 Tom Tromey <tom@tromey.com>
9096
9097 * jit.c (bfd_open_from_target_memory): Make "target" const.
9098 * corefile.c (gnutarget): Now const.
9099 * gdbcore.h (gnutarget): Now const.
9100
46f9f931
HD
91012020-03-04 Hannes Domani <ssbssa@yahoo.de>
9102
9103 * NEWS: Mention support for WOW64 processes.
9104 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
9105 (amd64_windows_segment_register_p): Remove static.
9106 (_initialize_amd64_windows_nat): Update.
9107 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
9108 * i386-windows-nat.c (context_offset): Update.
9109 (i386_mappings): Rename and remove static.
9110 (i386_windows_segment_register_p): Remove static.
9111 (_initialize_i386_windows_nat): Update.
9112 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
9113 (STATUS_WX86_SINGLE_STEP): New macro.
9114 (EnumProcessModulesEx): New macro.
9115 (Wow64SuspendThread): New macro.
9116 (Wow64GetThreadContext): New macro.
9117 (Wow64SetThreadContext): New macro.
9118 (Wow64GetThreadSelectorEntry): New macro.
9119 (windows_set_context_register_offsets): Add static.
9120 (windows_set_segment_register_p): Likewise.
9121 (windows_add_thread): Adapt for WOW64 processes.
9122 (windows_fetch_one_register): Likewise.
9123 (windows_nat_target::fetch_registers): Likewise.
9124 (windows_store_one_register): Likewise.
9125 (display_selector): Likewise.
9126 (display_selectors): Likewise.
9127 (handle_exception): Likewise.
9128 (windows_continue): Likewise.
9129 (windows_nat_target::resume): Likewise.
9130 (windows_add_all_dlls): Likewise.
9131 (do_initial_windows_stuff): Likewise.
9132 (windows_nat_target::attach): Likewise.
9133 (windows_get_exec_module_filename): Likewise.
9134 (windows_nat_target::create_inferior): Likewise.
9135 (windows_xfer_siginfo): Likewise.
9136 (_initialize_loadable): Initialize Wow64SuspendThread,
9137 Wow64GetThreadContext, Wow64SetThreadContext,
9138 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
9139 * windows-nat.h (windows_set_context_register_offsets):
9140 Remove declaration.
9141 (windows_set_segment_register_p): Likewise.
9142 (i386_windows_segment_register_p): Add declaration.
9143 (amd64_windows_segment_register_p): Likewise.
9144
440cf44e
LM
91452020-03-04 Luis Machado <luis.machado@linaro.org>
9146
9147 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
9148 in "info registers" for AArch64/ARM.
9149
9150 The change caused "info registers" to not print GPR's.
9151
9152 gdb/ChangeLog:
9153
9154 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9155
9156 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9157 when reg->group is empty and reggroup is not.
9158
1009d92f
TT
91592020-03-03 Tom Tromey <tromey@adacore.com>
9160
9161 * dwarf2/frame.c (struct dwarf2_frame_cache)
9162 <checked_tailcall_bottom, entry_cfa_sp_offset,
9163 entry_cfa_sp_offset_p>: Remove members.
9164 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
9165 (dwarf2_frame_prev_register): Don't call
9166 dwarf2_tailcall_sniffer_first.
9167 (dwarf2_append_unwinders): Don't append tailcall unwinder.
9168 * frame-unwind.c (add_unwinder): New fuction.
9169 (frame_unwind_init): Use it. Add tailcall unwinder.
9170
5e5d66b6
AB
91712020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
9172 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9173
9174 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
9175 value should be printed as true.
9176
584cf46d
HD
91772020-03-03 Hannes Domani <ssbssa@yahoo.de>
9178
9179 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
9180 (windows_init_abi): Set and use windows_so_ops.
9181
7b973adc
SDJ
91822020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
9183
9184 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
9185 when verifying if dealing with a convenience variable.
9186
bb7b70ab
LM
91872020-03-03 Luis Machado <luis.machado@linaro.org>
9188
9189 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
9190
9822cb57
SM
91912020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
9192
9193 * infrun.c (gdbarch_supports_displaced_stepping): New.
9194 (use_displaced_stepping): Break up conditions in smaller pieces.
9195 Use gdbarch_supports_displaced_stepping.
9196 (displaced_step_prepare_throw): Use
9197 gdbarch_supports_displaced_stepping.
9198
63e163f2
AB
91992020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9200
9201 * NEWS: Mention new behaviour of the history filename.
9202 * top.c (write_history_p): Add comment.
9203 (show_write_history_p): Add header comment, give a different
9204 message when history writing is on, but the history filename is
9205 empty.
9206 (history_filename): Add comment.
9207 (history_filename_empty): New function.
9208 (show_history_filename): Add header comment, give a different
9209 message when the filename is empty.
9210 (init_history): Compare history_filename against nullptr, and only
9211 read history if the filename is not empty.
9212 (set_history_filename): Add header comment, and only make
9213 non-empty filenames absolute.
9214 (init_main): Make the filename argument to 'set history filename'
9215 optional.
9216
81b86b97
CB
92172020-03-02 Christian Biesinger <cbiesinger@google.com>
9218
9219 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
9220 (arm_supply_vfpregset): ...this, and update to use VFP registers.
9221 (fetch_fp_register): Update.
9222 (fetch_fp_regs): Update.
9223 (store_fp_register): Update.
9224 (store_fp_regs): Update.
9225 (arm_netbsd_nat_target::read_description): New function.
9226 (fetch_elfcore_registers): Update.
9227
24ed6739
AB
92282020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
9229
9230 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
9231 general_thread if the stop reply is missing a thread-id.
9232 (remote_target::process_stop_reply): Use the first non-exited
9233 thread if the target didn't pass a thread-id.
9234 * infrun.c (do_target_wait): Move call to
9235 switch_to_inferior_no_thread to ....
9236 (do_target_wait_1): ... here.
9237
a84bb2a0
JT
92382020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
9239
9240 * debuginfod-support.c: Include defs.h first.
9241
658dadf0
TV
92422020-02-28 Tom de Vries <tdevries@suse.de>
9243
9244 * symfile.c (set_initial_language): Use default language for lookup.
9245
4ebe4877
SM
92462020-02-28 Simon Marchi <simon.marchi@efficios.com>
9247
9248 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
9249 reader variable, pass `this` to read_cutu_die_from_dwo.
9250
e5da1139
AM
92512020-02-27 Aaron Merey <amerey@redhat.com>
9252
9253 * source.c (open_source_file): Check for nullptr when computing
9254 srcpath.
9255
317f7127
TT
92562020-02-27 Tom Tromey <tromey@adacore.com>
9257
9258 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
9259 member.
9260 (dwarf2_add_field): Don't update nfields.
9261 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9262
3104d9ee
AB
92632020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9264
9265 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9266 abs.
9267
b83470bf
TT
92682020-02-26 Tom Tromey <tom@tromey.com>
9269
9270 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9271 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9272 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9273 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9274 per_cu_data.
9275
edfe0a0c
TT
92762020-02-26 Tom Tromey <tom@tromey.com>
9277
9278 * dwarf2/index-write.c (psym_index_map): Change type.
9279 (add_address_entry_worker, write_one_signatured_type)
9280 (recursively_count_psymbols, recursively_write_psymbols)
9281 (class debug_names, psyms_seen_size, write_gdbindex)
9282 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9283
0d79cdc4
AM
92842020-02-26 Aaron Merey <amerey@redhat.com>
9285
9286 * Makefile.in: Handle optional debuginfod support.
9287 * NEWS: Update.
9288 * README: Add --with-debuginfod summary.
9289 * config.in: Regenerate.
9290 * configure: Regenerate.
9291 * configure.ac: Handle optional debuginfod support.
9292 * debuginfod-support.c: debuginfod helper functions.
9293 * debuginfod-support.h: Ditto.
9294 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9295 summary.
9296 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9297 when a dwz file cannot be found.
9298 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9299 debuginfo file cannot be found.
9300 * source.c (open_source_file): Query debuginfod servers when a
9301 source file cannot be found.
9302 * top.c (print_gdb_configuration): Include
9303 --{with,without}-debuginfod in the output.
9304
b65ce565
JG
93052020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9306
9307 * thread.c (thr_try_catch_cmd): Print thread name.
9308
d4c9a4f8
SM
93092020-02-26 Simon Marchi <simon.marchi@efficios.com>
9310
9311 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9312 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9313 dwarf2_fetch_die_type_sect_off): Move to...
9314 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9315 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9316 dwarf2_fetch_die_type_sect_off): ... here.
9317 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9318 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9319 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9320
0dce4280
TV
93212020-02-26 Tom de Vries <tdevries@suse.de>
9322
9323 PR gdb/25603
9324 * symfile.c (set_initial_language): Exit-early if
9325 language_mode == language_mode_manual.
9326
450a1bfc
SM
93272020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9328
9329 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9330 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9331 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9332
9e80cfa1
AB
93332020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9334
9335 * gdbtypes.c (create_array_type_with_stride): Handle negative
9336 array strides.
9337 * valarith.c (value_subscripted_rvalue): Likewise.
9338
09624f1f
LM
93392020-02-25 Luis Machado <luis.machado@linaro.org>
9340
9341 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9342
8cb5117c
SM
93432020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9344
9345 * loc.h (dwarf2_get_die_type): Move to...
9346 * read.h (dwarf2_get_die_type): ... here.
9347 * read.c (dwarf2_get_die_type): Move doc to header.
9348
c325c44e
JB
93492020-02-25 Joel Brobecker <brobecker@adacore.com>
9350
9351 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9352 'gnulib/Makefile.in' to the list.
9353
4ac93832
TT
93542020-02-24 Tom Tromey <tom@tromey.com>
9355
9356 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9357 Remove.
9358 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9359 XOBNEWVEC.
9360
197400e8
TT
93612020-02-24 Tom Tromey <tom@tromey.com>
9362
9363 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9364 New method.
9365 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9366 (dw2_do_instantiate_symtab, dw2_get_file_names)
9367 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9368
76935768
TT
93692020-02-24 Tom Tromey <tom@tromey.com>
9370
9371 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9372 make_scoped_restore.
9373 (dwarf2_psymtab::read_symtab): Don't clear
9374 reading_partial_symbols.
9375
a88ef40d
TV
93762020-02-24 Tom de Vries <tdevries@suse.de>
9377
9378 PR gdb/25592
9379 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9380
c9af6521
TV
93812020-02-24 Tom de Vries <tdevries@suse.de>
9382
9383 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9384 commands layout next/prev/regs.
9385
5707a07a
TT
93862020-02-22 Tom Tromey <tom@tromey.com>
9387
9388 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9389 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9390
3b0fb49e
TT
93912020-02-22 Tom Tromey <tom@tromey.com>
9392
9393 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9394
283be8bf
TT
93952020-02-22 Tom Tromey <tom@tromey.com>
9396
9397 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9398 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9399 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9400 * tui/tui.c (_initialize_tui): Add usage text.
9401
ca793b96
TT
94022020-02-22 Tom Tromey <tom@tromey.com>
9403
9404 * tui/tui-win.c (tui_set_focus_command)
9405 (tui_set_win_height_command): Use error_no_arg.
9406 (_initialize_tui_win): Update help text.
9407 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9408
432b5c40
TT
94092020-02-22 Tom Tromey <tom@tromey.com>
9410
9411 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9412 * tui/tui-disasm.h (struct tui_disasm_window)
9413 <display_start_addr>: Declare.
9414 * tui/tui-source.h (struct tui_source_window)
9415 <display_start_addr>: Declare.
9416 * tui/tui-winsource.h (struct tui_source_window_base)
9417 <show_source_line, display_start_addr>: New methods.
9418 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9419 Rename and move to protected section.
9420 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9421 (tui_source_window_base::do_erase_source_content): Update.
9422 (tui_source_window_base::show_source_line): Now a method.
9423 (tui_source_window_base::show_source_content)
9424 (tui_source_window_base::tui_source_window_base)
9425 (tui_source_window_base::rerender)
9426 (tui_source_window_base::refill)
9427 (tui_source_window_base::do_scroll_horizontal)
9428 (tui_source_window_base::set_is_exec_point_at)
9429 (tui_source_window_base::update_breakpoint_info)
9430 (tui_source_window_base::update_exec_info): Update.
9431 * tui/tui-source.c (tui_source_window::set_contents)
9432 (tui_source_window::showing_source_p)
9433 (tui_source_window::do_scroll_vertical)
9434 (tui_source_window::location_matches_p)
9435 (tui_source_window::line_is_displayed): Update.
9436 (tui_source_window::display_start_addr): New method.
9437 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9438 (tui_disasm_window::do_scroll_vertical)
9439 (tui_disasm_window::location_matches_p): Update.
9440 (tui_disasm_window::display_start_addr): New method.
9441
01b1af32
TT
94422020-02-22 Tom Tromey <tom@tromey.com>
9443
9444 * NEWS: Add entry for gdb.register_window_type.
9445 * tui/tui-layout.h (window_factory): New typedef.
9446 (tui_register_window): Declare.
9447 * tui/tui-layout.c (saved_tui_windows): New global.
9448 (tui_apply_current_layout): Use it.
9449 (tui_register_window): New function.
9450 * python/python.c (do_start_initialization): Call
9451 gdbpy_initialize_tui.
9452 (python_GdbMethods): Add "register_window_type" function.
9453 * python/python-internal.h (gdbpy_register_tui_window)
9454 (gdbpy_initialize_tui): Declare.
9455 * python/py-tui.c: New file.
9456 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9457
fc96d20b
TT
94582020-02-22 Tom Tromey <tom@tromey.com>
9459
9460 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9461
935c78c0
TT
94622020-02-22 Tom Tromey <tom@tromey.com>
9463
9464 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9465 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9466 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9467 (tui_set_win_focus_to): Move from tui-win.c.
9468
0240c8f1
TT
94692020-02-22 Tom Tromey <tom@tromey.com>
9470
9471 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9472 functions.
9473 (known_window_types): New global.
9474 (tui_get_window_by_name): Reimplement.
9475 (initialize_known_windows): New function.
9476 (validate_window_name): Rewrite.
9477 (_initialize_tui_layout): Call initialize_known_windows.
9478
fdb01f0c
TT
94792020-02-22 Tom Tromey <tom@tromey.com>
9480
9481 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9482 Remove constants.
9483 * tui/tui-winsource.h (struct tui_source_window_base)
9484 <tui_source_window_base>: Remove parameter.
9485 * tui/tui-winsource.c
9486 (tui_source_window_base::tui_source_window_base): Remove
9487 parameter.
9488 (tui_source_window_base::refill): Update.
9489 * tui/tui-stack.h (struct tui_locator_window)
9490 <tui_locator_window>: Update.
9491 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9492 Default the constructor.
9493 * tui/tui-regs.h (struct tui_data_item_window)
9494 <tui_data_item_window>: Default the constructor.
9495 (struct tui_data_window) <tui_data_window>: Likewise.
9496 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9497 Default the constructor.
9498 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9499 Default the constructor.
9500 <type>: Remove.
9501 (struct tui_win_info) <tui_win_info>: Default the constructor.
9502 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9503 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9504 Default the constructor.
9505
865a5aec
TT
95062020-02-22 Tom Tromey <tom@tromey.com>
9507
9508 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9509 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9510 * tui/tui-win.c (tui_resize_all): Don't call
9511 tui_delete_invisible_windows.
9512 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9513 done.
9514 (tui_set_layout): Update.
9515 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9516 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9517 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9518
e098d18c
TT
95192020-02-22 Tom Tromey <tom@tromey.com>
9520
9521 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9522 correctly.
9523
eb9c8874
TT
95242020-02-22 Tom Tromey <tom@tromey.com>
9525
9526 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9527
7eed1a8e
TT
95282020-02-22 Tom Tromey <tom@tromey.com>
9529
9530 * tui/tui-winsource.h (struct tui_source_window_iterator)
9531 <inner_iterator>: New etytypedef.
9532 <tui_source_window_iterator>: Take "end" parameter.
9533 <tui_source_window_iterator>: Take iterator.
9534 <operator*, advance>: Update.
9535 <m_iter>: Change type.
9536 <m_end>: New field.
9537 (struct tui_source_windows) <begin, end>: Update.
9538 * tui/tui-layout.c (tui_windows): New global.
9539 (tui_apply_current_layout): Clear tui_windows.
9540 (tui_layout_window::apply): Update tui_windows.
9541 * tui/tui-data.h (tui_windows): Declare.
9542 (all_tui_windows): Now inline function.
9543 (class tui_window_iterator, struct all_tui_windows): Remove.
9544
7c043ba6
TT
95452020-02-22 Tom Tromey <tom@tromey.com>
9546
9547 PR tui/17850:
9548 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9549 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9550 "height" argument.
9551 (class tui_layout_window) <get_sizes>: Likewise.
9552 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9553 argument.
9554 <get_sizes>: Add "height" argument.
9555 <m_vertical>: New field.
9556 * tui/tui-layout.c (tui_layout_split::clone): Update.
9557 (tui_layout_split::get_sizes): Add "height" argument.
9558 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9559 (tui_new_layout_command): Parse "-horizontal".
9560 (_initialize_tui_layout): Update help string.
9561 (tui_layout_split::specification): Add "-horizontal" when needed.
9562 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9563 argument.
9564 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9565 New methods.
9566
6bc56648
TT
95672020-02-22 Tom Tromey <tom@tromey.com>
9568
9569 * tui/tui-layout.h (enum tui_adjust_result): New.
9570 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9571 (class tui_layout_window) <adjust_size>: Return
9572 tui_adjust_result. Rewrite.
9573 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9574 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9575
c22fef7e
TT
95762020-02-22 Tom Tromey <tom@tromey.com>
9577
9578 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9579 parameter and return types.
9580 (class tui_layout_base) <specification>: Add "depth".
9581 (class tui_layout_window) <specification>: Add "depth".
9582 (class tui_layout_split) <specification>: Add "depth".
9583 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9584 and return types.
9585 (tui_new_layout_command): Parse sub-layouts.
9586 (_initialize_tui_layout): Update help string.
9587 (tui_layout_window::specification): Add "depth".
9588 (add_layout_command): Update.
9589
ee325b61
TT
95902020-02-22 Tom Tromey <tom@tromey.com>
9591
9592 * NEWS: Add "tui new-layout" item.
9593 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9594 Add new-layout command to help text.
9595 (validate_window_name): New function.
9596 (tui_new_layout_command): New function.
9597 (_initialize_tui_layout): Register "new-layout".
9598 (tui_layout_window::specification): New method.
9599 (tui_layout_window::specification): New method.
9600 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9601 method.
9602 (class tui_layout_window) <specification>: New method.
9603 (class tui_layout_split) <specification>: New method.
9604
416eb92d
TT
96052020-02-22 Tom Tromey <tom@tromey.com>
9606
9607 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9608 * tui/tui-win.c (window_name_completer): Update comment.
9609 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9610 Declare method.
9611 (class tui_layout_window) <replace_window>: Likewise.
9612 (class tui_layout_split) <replace_window>: Likewise.
9613 (tui_set_layout): Don't declare.
9614 (tui_set_initial_layout): Declare function.
9615 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9616 (asm_regs_layout): New globals.
9617 (tui_current_layout, show_layout): Remove.
9618 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9619 (find_layout, tui_apply_layout): New function.
9620 (layout_completer): Remove.
9621 (tui_next_layout): Reimplement.
9622 (tui_next_layout_command): New function.
9623 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9624 (tui_regs_layout): Reimplement.
9625 (tui_regs_layout_command): New function.
9626 (extract_display_start_addr): Rewrite.
9627 (next_layout, prev_layout): Remove.
9628 (tui_layout_window::replace_window): New method.
9629 (tui_layout_split::replace_window): New method.
9630 (destroy_layout): New function.
9631 (layout_list): New global.
9632 (add_layout_command): New function.
9633 (initialize_layouts): Update.
9634 (tui_layout_command): New function.
9635 (_initialize_tui_layout): Install "layout" commands.
9636 * tui/tui-data.h (enum tui_layout_type): Remove.
9637 (tui_current_layout): Don't declare.
9638
0dbc2fc7
TT
96392020-02-22 Tom Tromey <tom@tromey.com>
9640
9641 * tui/tui-regs.c (tui_reg_layout): Remove.
9642 (tui_reg_command): Use tui_regs_layout.
9643 * tui/tui-layout.h (tui_reg_command): Declare.
9644 * tui/tui-layout.c (tui_reg_command): New function.
9645
5afe342e
TT
96462020-02-22 Tom Tromey <tom@tromey.com>
9647
9648 * tui/tui.c (tui_rl_delete_other_windows): Call
9649 tui_remove_some_windows.
9650 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9651 Declare method.
9652 (class tui_layout_window) <remove_windows>: New method.
9653 (class tui_layout_split) <remove_windows>: Declare.
9654 (tui_remove_some_windows): Declare.
9655 * tui/tui-layout.c (tui_remove_some_windows): New function.
9656 (tui_layout_split::remove_windows): New method.
9657
427326a8
TT
96582020-02-22 Tom Tromey <tom@tromey.com>
9659
9660 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9661 * tui/tui-layout.h (tui_next_layout): Declare.
9662 * tui/tui-layout.c (tui_next_layout): New function.
9663
3fe12b6d
TT
96642020-02-22 Tom Tromey <tom@tromey.com>
9665
9666 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9667 correct coordinates.
9668
59b8b5d2
TT
96692020-02-22 Tom Tromey <tom@tromey.com>
9670
9671 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9672 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9673 DATA_WIN case.
9674
2a3d458b
TT
96752020-02-22 Tom Tromey <tom@tromey.com>
9676
9677 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9678 TUI_DISASM_WIN, not tui_win_list.
9679
3f0cbb04
TT
96802020-02-22 Tom Tromey <tom@tromey.com>
9681
9682 * valprint.c (generic_val_print_enum_1)
9683 (val_print_type_code_flags): Style member names.
9684 * rust-lang.c (val_print_struct, rust_print_enum)
9685 (rust_print_struct_def, rust_internal_print_type): Style member
9686 names.
9687 * p-valprint.c (pascal_object_print_value_fields): Style member
9688 names. Only call fprintf_symbol_filtered for static members.
9689 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9690 * f-valprint.c (f_val_print): Style member names.
9691 * f-typeprint.c (f_type_print_base): Style member names.
9692 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9693 call fprintf_symbol_filtered for static members.
9694 (cp_print_class_member): Style member names.
9695 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9696 member names.
9697 * ada-valprint.c (ada_print_scalar): Style enum names.
9698 (ada_val_print_enum): Likewise.
9699 * ada-typeprint.c (print_enum_type): Style enum names.
9700
d4d947ae
TT
97012020-02-21 Tom Tromey <tom@tromey.com>
9702
9703 * psympriv.h (struct partial_symtab): Update comment.
9704
e94e944b
TT
97052020-02-21 Tom Tromey <tromey@adacore.com>
9706
9707 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9708 type is CORE_ADDR.
9709
1eb73179
TV
97102020-02-21 Tom de Vries <tdevries@suse.de>
9711
9712 PR gdb/25534
9713 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9714 if dependencies[i]->user != NULL.
9715
4f180d53
AT
97162020-02-21 Ali Tamur <tamur@google.com>
9717
9718 * dwarf2/read.c (dwarf2_name): Add null check.
9719
22b6cd70
TT
97202020-02-20 Tom Tromey <tom@tromey.com>
9721
9722 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9723 ">=", in binary search.
9724 (dwarf2_find_containing_comp_unit): New overload.
9725 (run_test): New self-test.
9726 (_initialize_dwarf2_read): Register new test.
9727
bd0cf5a6
NC
97282020-02-20 Nelson Chu <nelson.chu@sifive.com>
9729
9730 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9731 * riscv-tdep.h: Likewise.
9732 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9733 rv32-only CSR.
9734 * features/riscv/64bit-csr.xml: Regenerated.
9735
3f702acd
SDJ
97362020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9737 Tom Tromey <tom@tromey.com>
9738
9739 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9740 of 'fputc_unfiltered'.
9741 (putchar_unfiltered): Call 'fputc_unfiltered'.
9742 (fputc_unfiltered): Call 'fputs_unfiltered'.
9743
d13c7322
AB
97442020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9745
9746 * config.in: Regenerate.
9747 * configure: Regenerate.
9748 * configure.ac: Add --with-python-libdir option.
9749 * main.c: Use WITH_PYTHON_LIBDIR.
9750
869d8950
TT
97512020-02-19 Tom Tromey <tom@tromey.com>
9752
9753 * symtab.c (general_symbol_info::compute_and_set_names): Use
9754 obstack_strndup. Simplify call to symbol_set_demangled_name.
9755
298e9637
SM
97562020-02-19 Simon Marchi <simon.marchi@efficios.com>
9757
9758 * dwarf2/read.c (allocate_signatured_type_table,
9759 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9760 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9761 Remove objfile parameter, update all callers.
9762
08410482
DE
97632020-02-19 Doug Evans <dje@google.com>
9764
9765 PR rust/25535
9766 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9767 rust_enum_variant calculation.
9768
dfdeeca1
TT
97692020-02-19 Tom Tromey <tromey@adacore.com>
9770
9771 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9772
2ef5453b
TT
97732020-02-19 Tom Tromey <tromey@adacore.com>
9774
9775 * ada-lang.c (cache_symbol): Use obstack_strdup.
9776
9f1528a1
AB
97772020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9778
9779 * configure: Regenerate.
9780
d3c22fa8
TT
97812020-02-19 Tom Tromey <tromey@adacore.com>
9782
9783 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9784 NULL check.
9785
bf84f706
MR
97862020-02-19 Maciej W. Rozycki <macro@wdc.com>
9787
9788 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9789
d1c9b20f
AB
97902020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9791
9792 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9793 if GDBSERVER is not defined.
9794 (riscv_tdesc_cache): Likewise, also store const target_desc.
9795 (STATIC_IN_GDB): Define.
9796 (riscv_create_target_description): Update declaration with
9797 STATIC_IN_GDB.
9798 (riscv_lookup_target_description): New function, only define if
9799 GDBSERVER is not defined.
9800 * arch/riscv.h (riscv_create_target_description): Declare only
9801 when GDBSERVER is defined.
9802 (riscv_lookup_target_description): New declaration when GDBSERVER
9803 is not defined.
9804 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9805 (riscv_linux_read_features): ...this, and return
9806 riscv_gdbarch_features instead of target_desc.
9807 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9808 (riscv_linux_read_description): Rename to...
9809 (riscv_linux_read_features): ...this.
9810 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9811 Update to use riscv_gdbarch_features and
9812 riscv_lookup_target_description.
9813 * riscv-tdep.c (riscv_find_default_target_description): Use
9814 riscv_lookup_target_description instead of
9815 riscv_create_target_description.
9816
373d7ac0
SM
98172020-02-18 Simon Marchi <simon.marchi@efficios.com>
9818
9819 * valprint.c (generic_val_print_enum_1): When printing a flag
9820 enum with value 0 and there is no enumerator with value 0, print
9821 just "0" instead of "(unknown: 0x0)".
9822
b29a2df0
SM
98232020-02-18 Simon Marchi <simon.marchi@efficios.com>
9824
9825 * valprint.c (generic_val_print_enum_1): Print unknown part of
9826 flag enum in hex.
9827
6740f0cc
SM
98282020-02-18 Simon Marchi <simon.marchi@efficios.com>
9829
9830 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9831 flag enums to contain duplicate enumerators.
9832 * valprint.c (generic_val_print_enum_1): Update comment.
9833
edd45eb0
SM
98342020-02-18 Simon Marchi <simon.marchi@efficios.com>
9835
9836 * dwarf2/read.c: Include "count-one-bits.h".
9837 (update_enumeration_type_from_children): If an enumerator has
9838 multiple bits set, don't treat the enumeration as a "flag enum".
9839 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9840 of flag enums have 0 or 1 bit set.
9841
6d0cf446
BE
98422020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9843
9844 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9845 conversion.
9846 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9847 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9848 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9849 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9850 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9851
7001c1b7
SM
98522020-02-18 Simon Marchi <simon.marchi@efficios.com>
9853
9854 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9855
fdb61c6c
SM
98562020-02-14 Simon Marchi <simon.marchi@efficios.com>
9857
9858 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9859 displaced_step_closure_up.
9860 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9861 (struct displaced_step_closure_up):
9862 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9863 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9864 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9865 Likewise.
9866 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9867 * gdbarch.c, gdbarch.h: Re-generate.
9868 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9869 displaced_step_closure_up.
9870 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9871 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9872 * infrun.h (displaced_step_closure_up): New type alias.
9873 (struct displaced_step_inferior_state) <step_closure>: Change
9874 type to displaced_step_closure_up.
9875 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9876 displaced_step_closure_up.
9877 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9878
a4a38eb4
TT
98792020-02-14 Tom Tromey <tom@tromey.com>
9880
9881 * minidebug.c (gnu_debug_key): New global.
9882 (find_separate_debug_file_in_section): Use it.
9883
e8217e61
SM
98842020-02-14 Simon Marchi <simon.marchi@efficios.com>
9885
9886 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9887 std::unique_ptr.
9888 * gdbarch.c: Re-generate.
9889 * gdbarch.h: Re-generate.
9890 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9891 change.
9892 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9893 type to std::unique_ptr.
9894 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9895 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9896 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9897 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9898 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9899 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9900 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9901 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9902 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9903
d8d83535
SM
99042020-02-14 Simon Marchi <simon.marchi@efficios.com>
9905
9906 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9907 std::unique_ptr.
9908 (displaced_step_clear): Rename to...
9909 (displaced_step_reset): ... this. Just call displaced->reset ().
9910 (displaced_step_clear_cleanup): Rename to...
9911 (displaced_step_reset_cleanup): ... this.
9912 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9913 (displaced_step_fixup): Likewise.
9914 (resume_1): Likewise.
9915 (handle_inferior_event): Restore child's memory before calling
9916 displaced_step_fixup on the parent.
9917 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9918 to std::unique_ptr.
9919 <step_closure>: Change type to std::unique_ptr.
9920
5f661e03
SM
99212020-02-14 Simon Marchi <simon.marchi@efficios.com>
9922
9923 * arm-tdep.c: Include count-one-bits.h.
9924 (cleanup_block_store_pc): Use count_one_bits.
9925 (cleanup_block_load_pc): Use count_one_bits.
9926 (arm_copy_block_xfer): Use count_one_bits.
9927 (thumb2_copy_block_xfer): Use count_one_bits.
9928 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9929 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9930 (thumb_get_next_pcs_raw): Use count_one_bits.
9931 (arm_get_next_pcs_raw): Use count_one_bits_l.
9932 * arch/arm.c (bitcount): Remove.
9933 * arch/arm.h (bitcount): Remove.
9934
8084e579
TT
99352020-02-14 Tom Tromey <tromey@adacore.com>
9936
9937 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9938 Update.
9939 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9940 * dwarf2/loc.c (call_site_find_chain_1): Return
9941 unique_xmalloc_ptr.
9942 (call_site_find_chain): Likewise.
9943
258bf0ee
RB
99442020-02-14 Richard Biener <rguenther@suse.de>
9945
9946 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9947 on expression with division operators.
9948
f98a8458
AKS
99492020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9950
9951 * MAINTAINERS (Write After Approval): Adding myself.
9952
d1437c0e
TT
99532020-02-12 Tom Tromey <tom@tromey.com>
9954
9955 * event-loop.c (event_data, gdb_event, event_handler_func):
9956 Remove.
9957
3d4560f7
TT
99582020-02-12 Tom Tromey <tom@tromey.com>
9959
9960 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9961 (dwarf2_frame_objfile_data): Add comment.
9962 (find_comp_unit, set_comp_unit): New functions.
9963 (dwarf2_frame_find_fde): Use find_comp_unit.
9964 (dwarf2_build_frame_info): Use set_comp_unit.
9965
21982304
TT
99662020-02-12 Tom Tromey <tom@tromey.com>
9967
9968 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9969 (comp_unit): Don't initialize objfile.
9970 (execute_cfa_program): Add text_offset parameter.
9971 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9972 (dwarf2_frame_cache): Update.
9973 (dwarf2_build_frame_info): Don't set "objfile" member.
9974
4debb237
TT
99752020-02-12 Tom Tromey <tom@tromey.com>
9976
9977 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9978 (decode_frame_entry): Likewise.
9979 (dwarf2_build_frame_info): Update.
9980
0d404d44
TT
99812020-02-12 Tom Tromey <tom@tromey.com>
9982
9983 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9984 (decode_frame_entry_1): Use the comp_unit obstack.
9985
a7a3ae5c
TT
99862020-02-12 Tom Tromey <tom@tromey.com>
9987
9988 * dwarf2/frame.c (struct comp_unit): Add initializers and
9989 constructor.
9990 (dwarf2_frame_objfile_data): Store a comp_unit.
9991 (dwarf2_frame_find_fde): Update.
9992 (dwarf2_build_frame_info): Use "new".
9993
a9d65418
TT
99942020-02-12 Tom Tromey <tom@tromey.com>
9995
9996 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9997 (dwarf2_fde_table): Typedef for std::vector.
9998 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9999 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
10000 (decode_frame_entry): Update.
10001 (dwarf2_build_frame_info): Use "new".
10002
7559c217
CB
100032020-02-12 Christian Biesinger <cbiesinger@google.com>
10004
10005 * arm-tdep.c (arm_gdbarch_init): Update.
10006 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
10007 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
10008 have_neon, is_m>: Change to bool.
10009
aeefc73c
CB
100102020-02-12 Christian Biesinger <cbiesinger@google.com>
10011
10012 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
10013
d27b8e5f
TT
100142020-02-12 Tom Tromey <tom@tromey.com>
10015
10016 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
10017
cd5900f3
HD
100182020-02-12 Hannes Domani <ssbssa@yahoo.de>
10019
10020 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
10021 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
10022
f056b22b
TT
100232020-02-11 Tom Tromey <tom@tromey.com>
10024
10025 * psymtab.h: Update comment.
10026
f92ff6b5
TT
100272020-02-11 Tom Tromey <tom@tromey.com>
10028
10029 * gdb_obstack.h (struct auto_obstack): Use
10030 DISABLE_COPY_AND_ASSIGN.
10031
3fd6912b
TT
100322020-02-11 Tom Tromey <tom@tromey.com>
10033
10034 * dwarf2/frame.h (struct objfile): Don't forward declare.
10035
69ed9b74
CB
100362020-02-11 Christian Biesinger <cbiesinger@google.com>
10037
10038 * cris-tdep.c (cris_supply_gregset): Change signature to match
10039 what struct regset expects.
10040 (cris_regset): New struct.
10041 (fetch_core_registers): Remove.
10042 (cris_iterate_over_regset_sections): New function.
10043 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
10044 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
10045
bda874f6
CB
100462020-02-11 Christian Biesinger <cbiesinger@google.com>
10047
10048 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
10049 registers.
10050
754e1564
CB
100512020-02-11 Christian Biesinger <cbiesinger@google.com>
10052
10053 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
10054
8ddd8e0e
SM
100552020-02-11 Simon Marchi <simon.marchi@efficios.com>
10056
10057 * configure: Re-generate.
10058
898e7f60
SM
100592020-02-11 Simon Marchi <simon.marchi@efficios.com>
10060
10061 * configure: Re-generate.
10062
58df732b
SM
100632020-02-11 Simon Marchi <simon.marchi@efficios.com>
10064
10065 * acinclude: Update warning.m4 path.
10066 * warning.m4: Move to gdbsupport.
10067
da5bd37e
TT
100682020-02-11 Tom Tromey <tromey@adacore.com>
10069
10070 * remote.c (remote_console_output): Update.
10071 * printcmd.c (printf_command): Update.
10072 * event-loop.c (gdb_wait_for_event): Update.
10073 * linux-nat.c (sigchld_handler): Update.
10074 * remote-sim.c (gdb_os_write_stdout): Update.
10075 (gdb_os_flush_stdout): Update.
10076 (gdb_os_flush_stderr): Update.
10077 (gdb_os_write_stderr): Update.
10078 * exceptions.c (print_exception): Update.
10079 * remote-fileio.c (remote_fileio_func_read): Update.
10080 (remote_fileio_func_write): Update.
10081 * tui/tui.c (tui_enable): Update.
10082 * tui/tui-interp.c (tui_interp::init): Update.
10083 * utils.c (init_page_info): Update.
10084 (putchar_unfiltered, fputc_unfiltered): Update.
10085 (gdb_flush): Update.
10086 (emit_style_escape): Update.
10087 (flush_wrap_buffer, fputs_maybe_filtered): Update.
10088 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
10089 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
10090 (stderr_file::write): Update.
10091 (stderr_file::puts): Update.
10092 * ui-file.h (ui_file_isatty, ui_file_write)
10093 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
10094 (ui_file_puts): Don't declare.
10095
85f0dd3c
TV
100962020-02-10 Tom de Vries <tdevries@suse.de>
10097
10098 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
10099 sentinel to char *.
10100
2e927613
TV
101012020-02-09 Tom de Vries <tdevries@suse.de>
10102
10103 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
10104 filename if it matches "<artificial>".
10105
6bafc845
HD
101062020-02-09 Hannes Domani <ssbssa@yahoo.de>
10107
10108 * windows-tdep.c (struct enum_value_name): New struct.
10109 (create_enum): New function.
10110 (windows_get_siginfo_type): Create and use enum types.
10111
7928d571
HD
101122020-02-09 Hannes Domani <ssbssa@yahoo.de>
10113
10114 * NEWS: Mention $_siginfo support for Windows.
10115 * windows-nat.c (handle_exception): Set siginfo_er.
10116 (windows_nat_target::mourn_inferior): Reset siginfo_er.
10117 (windows_xfer_siginfo): New function.
10118 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
10119 * windows-tdep.c (struct windows_gdbarch_data): New struct.
10120 (init_windows_gdbarch_data): New function.
10121 (get_windows_gdbarch_data): New function.
10122 (windows_get_siginfo_type): New function.
10123 (windows_init_abi): Register windows_get_siginfo_type.
10124 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
10125
6751ebae
TT
101262020-02-08 Tom Tromey <tom@tromey.com>
10127
10128 * dwarf2/read.c (class cutu_reader) <cutu_reader,
10129 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
10130 <keep>: Declare method.
10131 <m_keep>: Remove member.
10132 <~cutu_reader>: Remove.
10133 (cutu_reader::init_tu_and_read_dwo_dies): Update.
10134 (cutu_reader::cutu_reader): Update.
10135 (cutu_reader::keep): Rename from ~cutu_reader.
10136 (process_psymtab_comp_unit, build_type_psymtabs_1)
10137 (process_skeletonless_type_unit, load_partial_comp_unit)
10138 (load_full_comp_unit, dwarf2_read_addr_index)
10139 (read_signatured_type): Update.
10140
135f5437
TT
101412020-02-08 Tom Tromey <tom@tromey.com>
10142
10143 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
10144 "want_partial_unit" parameter.
10145 (process_psymtab_comp_unit): Change want_partial_unit to bool.
10146 Inline check for DW_TAG_partial_unit.
10147 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
10148
9f66ff1c
TT
101492020-02-08 Tom Tromey <tom@tromey.com>
10150
10151 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
10152 read.c.
10153 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
10154 read.c.
10155
c8a7a66f
TT
101562020-02-08 Tom Tromey <tom@tromey.com>
10157
10158 * dwarf2/read.c (read_address): Move to comp-unit.c.
10159 (dwarf2_rnglists_process, dwarf2_ranges_process)
10160 (read_attribute_value, dwarf_decode_lines_1)
10161 (var_decode_location, decode_locdesc): Update.
10162 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
10163 read.c. Remove "cu" parameter.
10164 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
10165 method.
10166
8266302d
TT
101672020-02-08 Tom Tromey <tom@tromey.com>
10168
10169 * dwarf2/read.c (read_attribute_value, read_indirect_string)
10170 (read_indirect_line_string): Update.
10171 * dwarf2/comp-unit.c (read_offset): Remove.
10172 (read_comp_unit_head): Update.
10173 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
10174 method.
10175 (read_offset): Don't declare.
10176
4057dfde
TT
101772020-02-08 Tom Tromey <tom@tromey.com>
10178
10179 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
10180 * dwarf2/read.c (struct comp_unit_head): Move to
10181 dwarf2/comp-unit.h.
10182 (enum class rcuh_kind): Move to comp-unit.h.
10183 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
10184 (read_comp_unit_head, error_check_comp_unit_head)
10185 (read_and_check_comp_unit_head): Move to comp-unit.c.
10186 (read_offset, dwarf_unit_type_name): Likewise.
10187 (create_debug_type_hash_table, read_cutu_die_from_dwo)
10188 (cutu_reader::cutu_reader, read_call_site_scope)
10189 (find_partial_die, follow_die_offset): Update.
10190 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
10191
24aa364d
TT
101922020-02-08 Tom Tromey <tom@tromey.com>
10193
10194 * dwarf2/read.c (read_offset_1): Move to leb.c.
10195 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
10196 (dwarf_decode_macro_bytes): Update.
10197 * dwarf2/leb.c (read_offset): Rename; move from read.c.
10198 * dwarf2/leb.h (read_offset): Declare.
10199
2c7d5afc
TT
102002020-02-08 Tom Tromey <tom@tromey.com>
10201
10202 * dwarf2/read.c (dwarf2_section_size): Remove.
10203 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
10204 Update.
10205 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
10206
4075cb26
TT
102072020-02-08 Tom Tromey <tom@tromey.com>
10208
10209 * dwarf2/read.c (read_initial_length): Move to leb.c.
10210 * dwarf2/leb.h (read_initial_length): Declare.
10211 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
10212 handle_nonstd parameter.
10213 * dwarf2/frame.c (read_initial_length): Remove.
10214 (decode_frame_entry_1): Update.
10215
09ba997f
TT
102162020-02-08 Tom Tromey <tom@tromey.com>
10217
10218 * dwarf2/loc.c (dwarf2_find_location_expression)
10219 (dwarf_evaluate_loc_desc::get_tls_address)
10220 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
10221 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
10222 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
10223 (dwarf2_compile_property_to_c)
10224 (dwarf2_loc_desc_get_symbol_read_needs)
10225 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
10226 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
10227 (loclist_describe_location, loclist_tracepoint_var_ref)
10228 (loclist_generate_c_location): Update.
10229 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
10230 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
10231 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
10232 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
10233 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
10234 (dwarf2_per_cu_data::addr_size)
10235 (dwarf2_per_cu_data::ref_addr_size)
10236 (dwarf2_per_cu_data::text_offset)
10237 (dwarf2_per_cu_data::addr_type): Now methods.
10238 (per_cu_header_read_in): Make per_cu "const".
10239 (dwarf2_version): Remove.
10240 (dwarf2_per_cu_data::int_type): Now a method.
10241 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
10242 (set_die_type, read_array_type, read_subrange_index_type)
10243 (read_tag_string_type, read_subrange_type): Update.
10244 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
10245 offset_size, ref_addr_size, text_offset, addr_type, version,
10246 objfile, int_type, addr_sized_int_type>: Declare methods.
10247
96c738c0
TT
102482020-02-08 Tom Tromey <tom@tromey.com>
10249
10250 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
10251 Move earlier.
10252
8fdd972c
TT
102532020-02-08 Tom Tromey <tom@tromey.com>
10254
10255 * dwarf2/read.h (dwarf_line_debug): Declare.
10256 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
10257 * dwarf2/read.c: Move line_header code to new files.
10258 (dwarf_line_debug): No longer static.
10259 * dwarf2/line-header.c: New file.
10260 * dwarf2/line-header.h: New file.
10261
03075812
TT
102622020-02-08 Tom Tromey <tom@tromey.com>
10263
10264 * dwarf2/read.c (struct line_header) <file_full_name,
10265 file_file_name>: Return unique_xmalloc_ptr.
10266 (line_header::file_file_name): Update.
10267 (line_header::file_full_name): Update.
10268 (dw2_get_file_names_reader): Update.
10269 (macro_start_file): Update.
10270
bb822404
TT
102712020-02-08 Tom Tromey <tom@tromey.com>
10272
10273 * dwarf2/read.c (struct line_header) <file_full_name,
10274 file_file_name>: Declare methods.
10275 (dw2_get_file_names_reader): Update.
10276 (file_file_name): Now a method.
10277 (file_full_name): Likewise.
10278 (macro_start_file): Update.
10279
009b64fc
TT
102802020-02-08 Tom Tromey <tom@tromey.com>
10281
10282 * dwarf2/read.c (dwarf_always_disassemble)
10283 (show_dwarf_always_disassemble): Move to loc.c.
10284 (_initialize_dwarf2_read): Move "always-disassemble" registration
10285 to loc.c.
10286 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10287 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10288 static.
10289 (show_dwarf_always_disassemble): Move from read.c.
10290 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10291
5895093f
TT
102922020-02-08 Tom Tromey <tom@tromey.com>
10293
10294 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10295 (create_quick_file_names_table): Return htab_up.
10296 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10297 Update.
10298 * dwarf2/read.h (struct dwarf2_per_objfile)
10299 <quick_file_names_table>: Now htab_up.
10300
b3b32279
TT
103012020-02-08 Tom Tromey <tom@tromey.com>
10302
10303 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10304
1d33d811
TT
103052020-02-08 Tom Tromey <tom@tromey.com>
10306
10307 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10308 Rewrite.
10309 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10310 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10311 (abbrev_table::abbrev_table): No longer inline.
10312 (ABBREV_HASH_SIZE): Remove.
10313 (abbrev_table::m_abbrevs): Now an htab_up.
10314
86de1d91
TT
103152020-02-08 Tom Tromey <tom@tromey.com>
10316
10317 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10318 (cutu_reader): Update.
10319 (build_type_psymtabs_1): Update.
10320 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10321 (abbrev_table::alloc_abbrev): Update.
10322 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10323 (abbrev_table::read): New static method, renamed from
10324 abbrev_table_read_table.
10325 (abbrev_table::alloc_abbrev)
10326 (abbrev_table::add_abbrev): Now private.
10327 (abbrev_table::abbrev_table): Now private.
10328 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10329
0335378b
TT
103302020-02-08 Tom Tromey <tom@tromey.com>
10331
10332 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10333 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10334 htab_up.
10335
48b490f2
TT
103362020-02-08 Tom Tromey <tom@tromey.com>
10337
10338 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10339 htab_up.
10340 (lookup_dwo_unit_in_dwp): Update.
10341 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10342 on obstack.
10343
bc68fb19
TT
103442020-02-08 Tom Tromey <tom@tromey.com>
10345
10346 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10347 obstack.
10348
d15acc42
TT
103492020-02-08 Tom Tromey <tom@tromey.com>
10350
10351 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10352 line_header_hash.
10353 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10354 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10355 Change type to htab_up.
10356
eaa5fa8b
TT
103572020-02-08 Tom Tromey <tom@tromey.com>
10358
10359 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10360 htab_up. Don't allocate on obstack.
10361 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10362 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10363 Change type to htab_up.
10364
b0b6a987
TT
103652020-02-08 Tom Tromey <tom@tromey.com>
10366
10367 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10368 Change type to htab_up.
10369 * dwarf2/read.c (create_signatured_type_table_from_index)
10370 (create_signatured_type_table_from_debug_names)
10371 (create_all_type_units, add_type_unit)
10372 (lookup_dwo_signatured_type, lookup_signatured_type)
10373 (process_skeletonless_type_unit): Update.
10374 (create_debug_type_hash_table, create_debug_types_hash_table):
10375 Change type of types_htab.
10376 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10377 htab_up. Don't allocate on obstack.
10378 (create_cus_hash_table): Change type of cus_htab parameter.
10379 (struct dwo_file) <cus, tus>: Now htab_up.
10380 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10381 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10382 (queue_and_load_all_dwo_tus): Update.
10383 * dwarf2/index-write.c (write_gdbindex): Update.
10384 (write_debug_names): Update.
10385
39856def
TT
103862020-02-08 Tom Tromey <tom@tromey.com>
10387
10388 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10389 dwarf2/read.c. Remove "next" member. Add constructor ntad
10390 destructor.
10391 (struct dwarf2_per_objfile) <queue>: New member.
10392 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10393 dwarf2/read.h.
10394 (dwarf2_queue, dwarf2_queue_tail): Remove.
10395 (class dwarf2_queue_guard): Add parameter to constructor. Use
10396 DISABLE_COPY_AND_ASSIGN.
10397 <m_per_objfile>: New member.
10398 <~dwarf2_queue_guard>: Rewrite.
10399 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10400 Update.
10401 (~dwarf2_queue_item): New.
10402
3e225074
TT
104032020-02-08 Tom Tromey <tom@tromey.com>
10404
10405 * dwarf2/read.c (struct die_info) <has_children>: New member.
10406 (dw2_get_file_names_reader): Remove has_children.
10407 (dw2_get_file_names): Update.
10408 (read_cutu_die_from_dwo): Remove has_children.
10409 (cutu_reader::init_tu_and_read_dwo_dies)
10410 (cutu_reader::cutu_reader): Update.
10411 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10412 Remove has_children.
10413 (build_type_psymtabs_1, process_skeletonless_type_unit)
10414 (load_partial_comp_unit, load_full_comp_unit): Update.
10415 (create_dwo_cu_reader): Remove has_children.
10416 (create_cus_hash_table, read_die_and_children): Update.
10417 (read_full_die_1,read_full_die): Remove has_children.
10418 (read_signatured_type): Update.
10419 (class cutu_reader) <has_children>: Remove.
10420
82ca8957
TT
104212020-02-08 Tom Tromey <tom@tromey.com>
10422
10423 * dwarf2/expr.c: Rename from dwarf2expr.c.
10424 * dwarf2/expr.h: Rename from dwarf2expr.h.
10425 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10426 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10427 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10428 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10429 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10430 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10431 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10432 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10433 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10434 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10435 * dwarf2/loc.c: Rename from dwarf2loc.c.
10436 * dwarf2/loc.h: Rename from dwarf2loc.h.
10437 * dwarf2/read.c: Rename from dwarf2read.c.
10438 * dwarf2/read.h: Rename from dwarf2read.h.
10439 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10440 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10441 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10442 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10443 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10444 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10445 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10446 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10447 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10448 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10449 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10450 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10451 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10452 Update.
10453 * Makefile.in (COMMON_SFILES): Update.
10454 (HFILES_NO_SRCDIR): Update.
10455
9e35d499
TT
104562020-02-08 Tom Tromey <tom@tromey.com>
10457
10458 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10459 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10460
1eba2311
TT
104612020-02-08 Tom Tromey <tom@tromey.com>
10462
10463 * dwarf2read.h (struct die_info): Don't declare.
10464
e41c2da2
TT
104652020-02-08 Tom Tromey <tom@tromey.com>
10466
10467 * dwarf2read.h (die_info_ptr): Remove typedef.
10468
4fc6c0d5
TT
104692020-02-08 Tom Tromey <tom@tromey.com>
10470
10471 * dwarf2read.c (read_call_site_scope)
10472 (handle_data_member_location, dwarf2_add_member_fn)
10473 (mark_common_block_symbol_computed, read_common_block)
10474 (attr_to_dynamic_prop, partial_die_info::read)
10475 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10476 (dwarf2_symbol_mark_computed, set_die_type): Update.
10477 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10478 method.
10479 (attr_form_is_block): Don't declare.
10480 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10481
cd6c91b4
TT
104822020-02-08 Tom Tromey <tom@tromey.com>
10483
10484 * dwarf2read.c (dwarf2_find_base_address, )
10485 (read_call_site_scope, rust_containing_type)
10486 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10487 (handle_data_member_location, dwarf2_add_member_fn)
10488 (get_alignment, read_structure_type, process_structure_scope)
10489 (mark_common_block_symbol_computed, read_common_block)
10490 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10491 (partial_die_info::read, read_attribute_value, new_symbol)
10492 (lookup_die_type, dwarf2_get_ref_die_offset)
10493 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10494 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10495 (dwarf2_symbol_mark_computed): Update.
10496 * dwarf2/attribute.h (struct attribute) <value_as_address,
10497 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10498 methods.
10499 (value_as_address, attr_form_is_section_offset)
10500 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10501 * dwarf2/attribute.c (attribute::value_as_address)
10502 (attribute::form_is_section_offset, attribute::form_is_constant)
10503 (attribute::form_is_ref): Now methods.
10504
162dce55
TT
105052020-02-08 Tom Tromey <tom@tromey.com>
10506
10507 * dwarf2read.c (struct attribute, DW_STRING)
10508 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10509 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10510 (attr_form_is_block, attr_form_is_section_offset)
10511 (attr_form_is_constant, attr_form_is_ref): Move.
10512 * dwarf2/attribute.h: New file.
10513 * dwarf2/attribute.c: New file, from dwarf2read.c.
10514 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10515
3054dd54
TT
105162020-02-08 Tom Tromey <tom@tromey.com>
10517
10518 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10519 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10520 Move.
10521 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10522 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10523 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10524 abbrev.c.
10525 * dwarf2/abbrev.h: New file.
10526 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10527 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10528
96b79293
TT
105292020-02-08 Tom Tromey <tom@tromey.com>
10530
10531 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10532 (dwarf2_section_size, dwarf2_get_section_info)
10533 (create_signatured_type_table_from_debug_names)
10534 (create_addrmap_from_aranges, read_debug_names_from_section)
10535 (get_gdb_index_contents_from_section, read_comp_unit_head)
10536 (error_check_comp_unit_head, read_abbrev_offset)
10537 (create_debug_type_hash_table, init_cu_die_reader)
10538 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10539 (read_comp_units_from_section, create_cus_hash_table)
10540 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10541 (create_dwp_v2_section, dwarf2_rnglists_process)
10542 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10543 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10544 (read_indirect_string_from_dwz, read_addr_index_1)
10545 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10546 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10547 (fill_in_loclist_baton): Update.
10548 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10549 get_containing_section, get_bfd_owner, get_bfd_section,
10550 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10551 (dwarf2_read_section, get_section_name, get_section_file_name)
10552 (get_containing_section, get_section_bfd_owner)
10553 (get_section_bfd_section, get_section_name, get_section_file_name)
10554 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10555 declare.
10556 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10557 (dwarf2_section_info::get_bfd_owner)
10558 (dwarf2_section_info::get_bfd_section)
10559 (dwarf2_section_info::get_name)
10560 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10561 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10562 (dwarf2_section_info::read): Now methods.
10563 * dwarf-index-write.c (class debug_names): Update.
10564
2c86cff9
TT
105652020-02-08 Tom Tromey <tom@tromey.com>
10566
10567 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10568 Move to dwarf2/section.h.
10569 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10570 (get_section_bfd_section, get_section_name)
10571 (get_section_file_name, get_section_id, get_section_flags)
10572 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10573 dwarf2/section.c.
10574 * dwarf2/section.h: New file.
10575 * dwarf2/section.c: New file, from dwarf2read.c.
10576 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10577
f4382c45
TT
105782020-02-08 Tom Tromey <tom@tromey.com>
10579
10580 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10581 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10582 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10583 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10584 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10585 * dwarf2/leb.h: New file, from dwarf2read.c.
10586 * dwarf2/leb.c: New file, from dwarf2read.c.
10587 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10588 Remove.
10589 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10590 (COMMON_SFILES): Add dwarf2/leb.c.
10591
01840b7a
JB
105922020-02-08 Joel Brobecker <brobecker@adacore.com>
10593
10594 GDB 9.1 released.
10595
dfcb27e4
IB
105962020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10597
10598 PR gdb/25190:
aac66a4c
SM
10599 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10600 * gdb/remote.c (remote_console_output): Update.
10601 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10602 (ui_file_puts): ...this.
10603 * gdb/ui-file.h (ui_file_puts): Add declaration.
10604 * gdb/utils.c (emit_style_escape): Update.
10605 (flush_wrap_buffer): Update.
10606 (fputs_maybe_filtered): Update.
10607 (fputs_unfiltered): Add function.
dfcb27e4 10608
faa17681
IB
106092020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10610
aac66a4c
SM
10611 * gdb/event-loop.c (gdb_wait_for_event): Update.
10612 * gdb/printcmd.c (printf_command): Update.
10613 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10614 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10615 (gdb_os_flush_stderr): Update.
10616 * gdb/remote.c (remote_console_output): Update.
10617 * gdb/ui-file.c (gdb_flush): Rename to...
10618 (ui_file_flush): ...this.
10619 (stderr_file::write): Update.
10620 (stderr_file::puts): Update.
10621 * gdb/ui-file.h (gdb_flush): Rename to...
10622 (ui_file_flush): ...this.
10623 * gdb/utils.c (gdb_flush): Add function.
10624 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 10625
5abbbe1d
TT
106262020-02-07 Tom Tromey <tromey@adacore.com>
10627
10628 PR breakpoints/24915:
10629 * source.c (find_and_open_source): Do not check basenames_may_differ.
10630
919adfe8
TT
106312020-02-07 Tom Tromey <tom@tromey.com>
10632
10633 * README: Update gdbserver documentation.
10634 * gdbserver: Move to top level.
10635 * configure.tgt (build_gdbserver): Remove.
10636 * configure.ac: Remove --enable-gdbserver.
10637 * configure: Rebuild.
10638 * Makefile.in (distclean): Don't mention gdbserver.
10639
1d5d29e7
SV
106402020-02-06 Shahab Vahedi <shahab@synopsys.com>
10641
10642 * source-cache.c (source_cache::ensure): Surround
10643 get_plain_source_lines with a try/catch.
10644 (source_cache::get_line_charpos): Get rid of try/catch
10645 and only check for the return value of "ensure".
10646 * tui/tui-source.c (tui_source_window::set_contents):
10647 Simplify "nlines" calculation.
10648
6eb1129c
SV
106492020-02-06 Shahab Vahedi <shahab@synopsys.com>
10650
10651 * MAINTAINERS (Write After Approval): Add myself.
10652
c6a42d11
CB
106532020-02-05 Christian Biesinger <cbiesinger@google.com>
10654
10655 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10656 function call.
10657
c8ecdda6
CB
106582020-02-05 Christian Biesinger <cbiesinger@google.com>
10659
10660 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10661
f6480e70
MR
106622020-02-05 Maciej W. Rozycki <macro@wdc.com>
10663
10664 * nat/riscv-linux-tdesc.h: New file.
10665 * nat/riscv-linux-tdesc.c: New file, taking code from...
10666 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10667 ... here.
10668 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10669 NATDEPFILES.
10670
dcc9fbc6
AB
106712020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10672
10673 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10674 we don't set the fake simulator ptid to the null_ptid.
10675
719546c4
SM
106762020-02-03 Simon Marchi <simon.marchi@efficios.com>
10677
10678 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10679 * gdbthread.h (class thread_info) <resumed>: Likewise.
10680 * infrun.c (resume_1): Likewise.
10681 (proceed): Likewise.
10682 (infrun_thread_stop_requested): Likewise.
10683 (stop_all_threads): Likewise.
10684 (handle_inferior_event): Likewise.
10685 (restart_threads): Likewise.
10686 (finish_step_over): Likewise.
10687 (keep_going_stepped_thread): Likewise.
10688 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10689 (linux_handle_extended_wait): Likewise.
10690 * record-btrace.c (get_thread_current_frame_id): Likewise.
10691 * record-full.c (record_full_wait_1): Likewise.
10692 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10693 * target.c (target_resume): Likewise.
10694 * thread.c (set_running_thread): Likewise.
10695
e409c542
AKS
106962020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10697
10698 * f-valprint.c (f77_print_array_1): Changed datatype of index
10699 variable to LONGEST from int to enable it to contain bound
10700 values correctly.
10701
ee98c0da
MR
107022020-02-03 Maciej W. Rozycki <macro@wdc.com>
10703
10704 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10705 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10706 offsets according to FLEN determined.
10707 (riscv_linux_nat_target::read_description): Determine FLEN
10708 dynamically.
10709 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10710 according to FLEN determined.
10711 (riscv_linux_nat_target::store_registers): Likewise.
10712
aa66aac4
SV
107132020-02-01 Shahab Vahedi <shahab@synopsys.com>
10714
10715 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10716 when reg->group is empty and reggroup is not.
10717
fd9faca8
TT
107182020-01-31 Tom Tromey <tromey@adacore.com>
10719
10720 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10721 Call beneath target's mourn_inferior after unpushing.
10722
42330a68
AB
107232020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10724
10725 PR tui/9765
10726 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10727 have enough lines to fill the screen, still return the lowest
10728 address we found.
10729
7a27a45b
AB
107302020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10731
10732 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10733 '-', '<', and '>' commands.
10734
c47f70e2
PA
107352020-01-29 Pedro Alves <palves@redhat.com>
10736 Sergio Durigan Junior <sergiodj@redhat.com>
10737
10738 * infcmd.c (construct_inferior_arguments): Assert that
10739 'argc' is greater than 0.
10740
5133a315
LM
107412020-01-29 Luis Machado <luis.machado@linaro.org>
10742
10743 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10744 (BRK_INSN_MASK): Define to 0xd4200000.
10745 (aarch64_program_breakpoint_here_p): New function.
10746 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10747 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10748 breakpoint.c.
10749 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10750 breakpoint.h
10751 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10752 call gdbarch_program_breakpoint_here_p.
10753 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10754 default_program_breakpoint_here_p, changed return type to bool and
10755 simplified.
10756 * breakpoint.h (program_breakpoint_here): Moved prototype to
10757 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10758 return type to bool.
10759 * gdbarch.c: Regenerate.
10760 * gdbarch.h: Regenerate.
10761 * gdbarch.sh (program_breakpoint_here_p): New method.
10762 * infrun.c (handle_signal_stop): Call
10763 gdbarch_program_breakpoint_here_p.
10764
168f8c6b
TT
107652020-01-26 Tom Tromey <tom@tromey.com>
10766
10767 * ctfread.c (struct ctf_fp_info): Reindent.
10768 (_initialize_ctfread): Remove.
10769
128a391f
TT
107702020-01-26 Tom Tromey <tom@tromey.com>
10771
10772 * psymtab.c (partial_map_expand_apply)
10773 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10774 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10775 (psym_print_stats, psym_expand_symtabs_for_function)
10776 (psym_map_symbol_filenames, psym_map_matching_symbols)
10777 (psym_expand_symtabs_matching)
10778 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10779 (maintenance_check_psymtabs): Use new methods.
10780 * psympriv.h (struct partial_symtab) <readin_p,
10781 get_compunit_symtab>: New methods.
10782 <readin, compunit_symtab>: Remove members.
10783 (struct standard_psymtab): New.
10784 (struct legacy_psymtab): Derive from standard_psymtab.
10785 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10786 standard_psymtab.
10787 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10788
0494dbec
TT
107892020-01-26 Tom Tromey <tom@tromey.com>
10790
10791 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10792 read_dependencies. Add assert.
10793 * psymtab.c (partial_symtab::read_dependencies): New method.
10794 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10795 method.
10796 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10797 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10798 read_dependencies.
10799 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10800 Add assert.
10801
8566b89b
TT
108022020-01-26 Tom Tromey <tom@tromey.com>
10803
10804 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10805 Call expand_psymtab.
10806 (xcoff_read_symtab): Call expand_psymtab.
10807 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10808 legacy_expand_psymtab.
10809 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10810 method.
10811 (struct legacy_psymtab) <expand_psymtab>: Implement.
10812 <legacy_expand_psymtab>: New member.
10813 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10814 (parse_partial_symbols): Set legacy_expand_psymtab.
10815 (psymtab_to_symtab_1): Change argument order. Call
10816 expand_psymtab.
10817 (new_psymtab): Set legacy_expand_psymtab.
10818 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10819 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10820 expand_psymtab.
10821 (dwarf2_psymtab::expand_psymtab): Rename from
10822 psymtab_to_symtab_1. Call expand_psymtab.
10823 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10824 (dbx_end_psymtab): Likewise.
10825 (dbx_psymtab_to_symtab_1): Change argument order. Call
10826 expand_psymtab.
10827 (dbx_read_symtab): Call expand_psymtab.
10828 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10829 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10830 (ctf_psymtab::read_symtab): Call expand_psymtab.
10831
077cbab2
TT
108322020-01-26 Tom Tromey <tom@tromey.com>
10833
10834 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10835 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10836 messages.
10837 * mdebugread.c (mdebug_read_symtab): Remove prints.
10838 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10839 assert.
10840 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10841
891813be
TT
108422020-01-26 Tom Tromey <tom@tromey.com>
10843
10844 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10845 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10846 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10847 legacy_symtab.
10848 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10849 * psymtab.c (psymtab_to_symtab): Call method.
10850 (dump_psymtab): Update.
10851 * psympriv.h (struct partial_symtab): Add virtual destructor.
10852 <read_symtab>: New method.
10853 (struct legacy_symtab): New.
10854 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10855 (struct pst_map) <pst>: Now a legacy_psymtab.
10856 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10857 (new_psymtab): Use legacy_psymtab.
10858 * dwarf2read.h (struct dwarf2_psymtab): New.
10859 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10860 * dwarf2read.c (dwarf2_create_include_psymtab)
10861 (dwarf2_build_include_psymtabs, create_type_unit_group)
10862 (create_partial_symtab, process_psymtab_comp_unit_reader)
10863 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10864 (set_partial_user): Use dwarf2_psymtab.
10865 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10866 (psymtab_to_symtab_1, process_full_comp_unit)
10867 (process_full_type_unit, dwarf2_ranges_read)
10868 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10869 (dwarf_decode_lines): Use dwarf2_psymtab.
10870 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10871 (add_address_entry_worker, write_one_signatured_type)
10872 (recursively_count_psymbols, recursively_write_psymbols)
10873 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10874 (write_debug_names): Likewise.
10875 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10876 <pst>: Now a legacy_psymtab.
10877 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10878 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10879 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10880 * ctfread.c (struct ctf_psymtab): New.
10881 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10882 ctf_psymtab.
10883 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10884 (create_partial_symtab): Return a ctf_psymtab.
10885 (scan_partial_symbols): Update.
10886
c3693a1d
TT
108872020-01-26 Tom Tromey <tom@tromey.com>
10888
10889 * xcoffread.c (xcoff_start_psymtab): Use new.
10890 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10891 renamed from start_psymtab_common.
10892 * psympriv.h (struct partial_symtab): Add new constructor.
10893 (start_psymtab_common): Don't declare.
10894 * mdebugread.c (parse_partial_symbols): Use new.
10895 * dwarf2read.c (create_partial_symtab): Use new.
10896 * dbxread.c (start_psymtab): Use new.
10897 * ctfread.c (create_partial_symtab): Use new.
10898
32caafd0
TT
108992020-01-26 Tom Tromey <tom@tromey.com>
10900
10901 * xcoffread.c (xcoff_end_psymtab): Use new.
10902 * psymtab.c (start_psymtab_common): Use new.
10903 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10904 Update.
10905 * psympriv.h (struct partial_symtab): Add parameters to
10906 constructor. Don't inline.
10907 (allocate_psymtab): Don't declare.
10908 * mdebugread.c (new_psymtab): Use new.
10909 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10910 * dbxread.c (dbx_end_psymtab): Use new.
10911
abaa2f23
TT
109122020-01-26 Tom Tromey <tom@tromey.com>
10913
10914 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10915 allocate_psymtab. Update documentation.
10916 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10917 allocate_psymtab. Do not use new.
10918 (allocate_psymtab): Use new. Update.
10919
6d94535f
TT
109202020-01-26 Tom Tromey <tom@tromey.com>
10921
10922 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10923 * psymtab.c (psym_print_stats): Update.
10924 * psympriv.h (struct partial_symtab) <readin,
10925 psymtabs_addrmap_supported, anonymous>: Now bool.
10926 * mdebugread.c (psymtab_to_symtab_1): Update.
10927 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10928 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10929 (process_full_comp_unit, process_full_type_unit): Update.
10930 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10931 * ctfread.c (psymtab_to_symtab): Update.
10932
6f17252b
TT
109332020-01-26 Tom Tromey <tom@tromey.com>
10934
10935 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10936 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10937 * psymtab.c (psymtab_storage): Delete psymtabs.
10938 (psymtab_storage::allocate_psymtab): Use new.
10939 (psymtab_storage::discard_psymtab): Use delete.
10940 * psympriv.h (struct partial_symtab): Add constructor and
10941 initializers.
10942
f6f1cebc
TT
109432020-01-26 Tom Tromey <tom@tromey.com>
10944
10945 * machoread.c: Do not include psympriv.h.
10946
e47e48f6
PW
109472020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10948
10949 * NEWS: Mention the new option and the set/show commands.
10950
a2fedca9
PW
109512020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10952
10953 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10954 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10955 (validate_exec_file): New variables, enums, functions.
10956 (exec_file_locate_attach, print_section_info): Style the filenames.
10957 (_initialize_exec): Install show_exec_file_mismatch_command and
10958 set_exec_file_mismatch_command.
10959 * gdbcore.h (validate_exec_file): Declare.
10960 * infcmd.c (attach_command): Call validate_exec_file.
10961 * remote.c ( remote_target::remote_add_inferior): Likewise.
10962
7ffa82e1
AB
109632020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10964
10965 * frame.c (find_frame_sal): Move call to get_next_frame into more
10966 inner scope.
10967 * inline-frame.c (inilne_state) <inline_state>: Update argument
10968 types.
10969 (inilne_state) <skipped_symbol>: Rename to...
10970 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10971 (skip_inline_frames): Build vector of skipped symbols and use this
10972 to reate the inline_state.
10973 (inline_skipped_symbol): Add a comment and some assertions, fetch
10974 skipped symbol from the list.
10975
3d92a3e3
AB
109762020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10977
10978 * buildsym.c (lte_is_less_than): Delete.
10979 (buildsym_compunit::end_symtab_with_blockvector): Create local
10980 lambda function to sort line table entries, and use
10981 std::stable_sort instead of std::sort.
10982 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10983 markers when looking for a previous line.
10984
94a72be7
AB
109852020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10986
10987 * dwarf2read.c (lnp_state_machine::record_line): Include
10988 end_sequence parameter in debug print out. Record the line if we
10989 are at an end_sequence marker even if it's not the start of a
10990 statement.
10991 * symmisc.c (maintenance_print_one_line_table): Print end of
10992 sequence markers with 'END' not '0'.
10993
53af73bf
PA
109942020-01-24 Pedro Alves <palves@redhat.com>
10995
10996 PR gdb/25410
10997 * thread.c (scoped_restore_current_thread::restore): Use
10998 switch_to_inferior_no_thread.
10999 * exec.c: Include "progspace-and-thread.h".
11000 (add_target_sections, remove_target_sections):
11001 scoped_restore_current_pspace_and_thread instead of
11002 scoped_restore_current_thread.
11003 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
11004 and aspace to the inferior before calling clone_program_space.
11005 Remove stale comment.
11006
3050c6f4
CB
110072020-01-24 Christian Biesinger <cbiesinger@google.com>
11008
11009 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
11010 (arm_netbsd_nat_target::fetch_registers): ...this.
11011 (arm_nbsd_nat_target::store_registers): Rename to...
11012 (arm_netbsd_nat_target::store_registers): ...this.
11013
73685c7e
CB
110142020-01-24 Christian Biesinger <cbiesinger@google.com>
11015
11016 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11017 register_t.
11018
89203d40
CB
110192020-01-24 Christian Biesinger <cbiesinger@google.com>
11020
11021 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
11022 Update comment.
11023 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
11024 Likewise.
11025 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
11026 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
11027 the correct replacement (iterate_over_regset_sections).
11028 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
11029 Update comment.
11030
1ba1ac88
AB
110312020-01-24 Graham Markall <graham.markall@embecosm.com>
11032
11033 PR gdb/23718
11034 * gdb/python/python.c (execute_gdb_command): Call
11035 async_enable_stdin in catch block.
11036
f3364a6d
AB
110372020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11038
11039 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
11040 SWITCH_THRU_ALL_UIS.
11041
733d0a67
AB
110422020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
11043
11044 PR tui/9765
11045 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
11046 comment, add extra parameter, and update to store previous symbol
11047 when appropriate.
11048 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
11049 add extra parameter.
11050 * tui/tui-disasm.c (tui_disassemble): Update header comment,
11051 remove unneeded parameter, add try/catch around gdb_print_insn,
11052 rewrite to add items to asm_lines vector.
11053 (tui_find_backward_disassembly_start_address): New function.
11054 (tui_find_disassembly_address): Updated throughout.
11055 (tui_disasm_window::set_contents): Update for changes to
11056 tui_disassemble.
11057 (tui_disasm_window::do_scroll_vertical): No need to adjust the
11058 number of lines to scroll.
11059
b3b3bada
SM
110602020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11061
11062 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
11063 (SECT_OFF_DATA): Likewise.
11064 (SECT_OFF_RODATA): Likewise.
11065 (SECT_OFF_TEXT): Likewise.
11066 (SECT_OFF_BSS): Likewise.
11067 (struct objfile) <text_section_offset, data_section_offset>: New
11068 methods.
11069 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
11070 objfile::text_section_offset.
11071 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
11072 * coffread.c (coff_symtab_read): Likewise.
11073 (enter_linenos): Likewise.
11074 (process_coff_symbol): Likewise.
11075 * ctfread.c (get_objfile_text_range): Likewise.
11076 * dtrace-probe.c (dtrace_probe::get_relocated_address):
11077 Use objfile::data_section_offset.
11078 * dwarf2-frame.c (execute_cfa_program): Use
11079 objfile::text_section_offset.
11080 (dwarf2_frame_find_fde): Likewise.
11081 * dwarf2read.c (create_addrmap_from_index): Likewise.
11082 (create_addrmap_from_aranges): Likewise.
11083 (dw2_find_pc_sect_compunit_symtab): Likewise.
11084 (process_psymtab_comp_unit_reader): Likewise.
11085 (add_partial_symbol): Likewise.
11086 (add_partial_subprogram): Likewise.
11087 (process_full_comp_unit): Likewise.
11088 (read_file_scope): Likewise.
11089 (read_func_scope): Likewise.
11090 (read_lexical_block_scope): Likewise.
11091 (read_call_site_scope): Likewise.
11092 (dwarf2_rnglists_process): Likewise.
11093 (dwarf2_ranges_process): Likewise.
11094 (dwarf2_ranges_read): Likewise.
11095 (dwarf_decode_lines_1): Likewise.
11096 (new_symbol): Likewise.
11097 (dwarf2_fetch_die_loc_sect_off): Likewise.
11098 (dwarf2_per_cu_text_offset): Likewise.
11099 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
11100 * hppa-tdep.c (read_unwind_info): Likewise.
11101 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
11102 * psympriv.h (struct partial_symtab): Likewise.
11103 * psymtab.c (find_pc_sect_psymtab): Likewise.
11104 * solib-svr4.c (enable_break): Likewise.
11105 * stap-probe.c (relocate_address): Use
11106 objfile::data_section_offset.
11107 * xcoffread.c (enter_line_range): Use
11108 objfile::text_section_offset.
11109 (read_xcoff_symtab): Likewise.
11110
ab53f382
SM
111112020-01-23 Simon Marchi <simon.marchi@efficios.com>
11112
11113 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
11114 declaration to narrower scopes.
11115
e7eee665
SM
111162020-01-23 Simon Marchi <simon.marchi@efficios.com>
11117
11118 * darwin-nat.h (struct darwin_exception_msg, enum
11119 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
11120 Move up.
11121 (class darwin_nat_target) <wait_1, check_new_threads,
11122 decode_exception_message, decode_message, stop_inferior,
11123 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
11124 * darwin-nat.c (darwin_check_new_threads): Rename to...
11125 (darwin_nat_target::check_new_threads): ... this.
11126 (darwin_suspend_inferior_it): Remove.
11127 (darwin_decode_exception_message): Rename to...
11128 (darwin_nat_target::decode_exception_message): ... this.
11129 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
11130 (darwin_decode_message): Rename to...
11131 (darwin_nat_target::decode_message): ... this.
11132 (cancel_breakpoint): Rename to...
11133 (darwin_nat_target::cancel_breakpoint): ... this.
11134 (darwin_wait): Rename to...
11135 (darwin_nat_target::wait_1): ... this. Use range-based for loop
11136 instead of iterate_over_inferiors.
11137 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
11138 (darwin_stop_inferior): Rename to...
11139 (darwin_nat_target::stop_inferior): ... this.
11140 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
11141 (darwin_init_thread_list): Rename to...
11142 (darwin_nat_target::init_thread_list): ... this.
11143 (darwin_ptrace_him): Rename to...
11144 (darwin_nat_target::ptrace_him): ... this.
11145 (darwin_nat_target::create_inferior): Pass lambda function to
11146 fork_inferior.
11147 (darwin_nat_target::detach): Call stop_inferior instead of
11148 darwin_stop_inferior.
11149 * fork-inferior.h (fork_inferior): Change init_trace_fun
11150 parameter to gdb::function_view.
11151 * fork-inferior.c (fork_inferior): Likewise.
11152
c162ed3e
HD
111532020-01-23 Hannes Domani <ssbssa@yahoo.de>
11154
11155 * i386-cygwin-tdep.c (core_process_module_section): Update.
11156 * windows-nat.c (struct lm_info_windows): Add text_offset.
11157 (windows_xfer_shared_libraries): Update.
11158 * windows-tdep.c (windows_xfer_shared_library):
11159 Add text_offset_cached argument.
11160 * windows-tdep.h (windows_xfer_shared_library): Update.
11161
a1237872
SM
111622020-01-21 Simon Marchi <simon.marchi@efficios.com>
11163
11164 * gdbarch.sh: Add declaration for _initialize_gdbarch.
11165
b3ee6dd9
SM
111662020-01-21 Simon Marchi <simon.marchi@efficios.com>
11167
11168 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
11169 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
11170 replace with range-based for.
11171 (gdbsim_interrupt_inferior): Remove.
11172 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
11173 with a range-based for. Inline code from
11174 gdbsim_interrupt_inferior.
11175
f9fac3c8
SM
111762020-01-21 Simon Marchi <simon.marchi@efficios.com>
11177
11178 * infrun.c (proceed): Fix indentation.
11179
f6474de9
TT
111802020-01-21 Tom Tromey <tromey@adacore.com>
11181
11182 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
11183 * python/python.c (python_extension_ops): Update.
11184 (gdbpy_colorize): New function.
11185 * python/lib/gdb/__init__.py (colorize): New function.
11186 * extension.h (ext_lang_colorize): Declare.
11187 * extension.c (ext_lang_colorize): New function.
11188 * extension-priv.h (struct extension_language_ops) <colorize>: New
11189 member.
11190 * cli/cli-style.c (_initialize_cli_style): Update help text.
11191
f0c702d4
LM
111922020-01-21 Luis Machado <luis.machado@linaro.org>
11193
11194 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
11195 <cond>: Change type to bool.
11196 (aarch64_displaced_step_b_cond): Update cond to use bool type.
11197 (aarch64_displaced_step_cb): Likewise.
11198 (aarch64_displaced_step_tb): Likewise.
11199
1ab139e5
LM
112002020-01-21 Luis Machado <luis.machado@linaro.org>
11201
11202 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
11203 output.
11204
0c271889
LM
112052020-01-21 Luis Machado <luis.machado@linaro.org>
11206
11207 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
11208 <pc_adjust>: Adjust the documentation.
11209 (aarch64_displaced_step_fixup): Check if PC really moved before
11210 adjusting it.
11211
4d89c1c7
TT
112122020-01-19 Tom Tromey <tom@tromey.com>
11213
11214 * disasm.c (~gdb_disassembler): New destructor.
11215 (gdb_buffered_insn_length): Call disassemble_free_target.
11216 * disasm.h (class gdb_disassembler): Declare destructor. Use
11217 DISABLE_COPY_AND_ASSIGN.
11218
c0ab21c2
TT
112192020-01-19 Tom Tromey <tom@tromey.com>
11220
11221 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
11222 (die_reader_func_ftype): Remove.
11223 (cutu_reader): New class.
11224 (dw2_get_file_names_reader): Remove "data" parameter.
11225 (dw2_get_file_names): Use cutu_reader.
11226 (create_debug_type_hash_table): Update.
11227 (read_cutu_die_from_dwo): Update comment.
11228 (lookup_dwo_unit): Add dwo_name parameter.
11229 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
11230 die_reader_func_ftype and data parameters.
11231 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
11232 Remove die_reader_func_ftype and data parameters.
11233 (~cutu_reader): New; from init_cutu_and_read_dies.
11234 (cutu_reader::cutu_reader): Rename from
11235 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
11236 and data parameters.
11237 (init_cutu_and_read_dies_simple): Remove.
11238 (struct process_psymtab_comp_unit_data): Remove.
11239 (process_psymtab_comp_unit_reader): Remove data parameter; add
11240 want_partial_unit and pretend_language parameters.
11241 (process_psymtab_comp_unit): Use cutu_reader.
11242 (build_type_psymtabs_reader): Remove data parameter.
11243 (build_type_psymtabs_1): Use cutu_reader.
11244 (process_skeletonless_type_unit): Likewise.
11245 (load_partial_comp_unit_reader): Remove.
11246 (load_partial_comp_unit): Use cutu_reader.
11247 (load_full_comp_unit_reader): Remove.
11248 (load_full_comp_unit): Use cutu_reader.
11249 (struct create_dwo_cu_data): Remove.
11250 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
11251 dwo_unit parameters.
11252 (create_cus_hash_table): Use cutu_reader.
11253 (struct dwarf2_read_addr_index_data): Remove.
11254 (dwarf2_read_addr_index_reader): Remove.
11255 (dwarf2_read_addr_index): Use cutu_reader.
11256 (read_signatured_type_reader): Remove.
11257 (read_signatured_type): Use cutu_reader.
11258
45bbae5c
TT
112592020-01-19 Tom Tromey <tom@tromey.com>
11260
11261 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11262 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11263 (tui_wrefresh): Declare.
11264 * tui/tui-wingeneral.c (suppress_output): New global.
11265 (tui_suppress_output, ~tui_suppress_output): New constructor and
11266 destructor.
11267 (tui_wrefresh): New function.
11268 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11269 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11270 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11271 method.
11272 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11273 tui_wrefresh.
11274 (tui_data_window::no_refresh): New method.
11275 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11276 (tui_reg_command): Use tui_suppress_output
11277 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11278 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11279 method.
11280 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11281
4f13c1c0
TT
112822020-01-19 Tom Tromey <tom@tromey.com>
11283
11284 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11285 Handle case where symtab is null.
11286
fa47e446
SM
112872020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11288
11289 * linux-fork.c (one_fork_p): Simplify.
11290
26f42329
SM
112912020-01-17 Simon Marchi <simon.marchi@efficios.com>
11292
11293 * top.c (struct qt_args): Remove.
11294 (kill_or_detach): Change return type to void, replace `void *`
11295 parameter with a proper one.
11296 (print_inferior_quit_action): Likewise.
11297 (quit_confirm): Use range-based for loop to iterate over inferiors.
11298 (quit_force): Likewise.
11299
a9ac81b1
SM
113002020-01-17 Simon Marchi <simon.marchi@efficios.com>
11301
11302 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11303 `void *` parameter with proper parameters.
11304 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11305 (print_one_inferior): Change return type to void, replace `void *`
11306 parameter with proper parameters.
11307 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11308 inferiors.
11309 (get_other_inferior): Remove.
11310 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11311 inferiors.
11312
788eca49
SM
113132020-01-17 Simon Marchi <simon.marchi@efficios.com>
11314
11315 * mi/mi-interp.c (report_initial_inferior): Remove.
11316 (mi_interp::init): Use range-based for to iterate over inferiors.
11317
d9bc85b6
SM
113182020-01-17 Simon Marchi <simon.marchi@efficios.com>
11319
11320 * python/py-inferior.c (build_inferior_list): Remove.
11321 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11322
40c94099
CB
113232020-01-16 Christian Biesinger <cbiesinger@google.com>
11324
11325 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11326 (btrace_stitch_trace): Likewise.
11327 * charset.c (intermediate_encoding): Likewise (vaild).
11328 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11329 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11330 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11331
e0cdfe3c
HD
113322020-01-16 Hannes Domani <ssbssa@yahoo.de>
11333
11334 * windows-tdep.c (windows_get_tlb_type):
11335 Add rtl_user_process_parameters type.
11336
790f1718 113372020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 11338 Norbert Lange <nolange79@gmail.com>
790f1718
PA
11339
11340 PR build/24805
11341 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11342 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11343 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11344 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11345 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11346 (ps_plog): Redeclare exported functions with default visibility.
11347
3112ed97
NA
113482020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11349
11350 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11351 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11352
8dc3273e
SM
113532020-01-15 Simon Marchi <simon.marchi@efficios.com>
11354
11355 * infcmd.c (post_create_inferior): Use get_thread_regcache
11356 instead of get_current_regcache.
11357
ff47f4f0
TT
113582020-01-14 Tom Tromey <tom@tromey.com>
11359
11360 PR symtab/12535:
11361 * python/python.c (gdbpy_decode_line): Treat empty string the same
11362 as no argument.
11363
975f45b7
TT
113642020-01-14 Tom Tromey <tom@tromey.com>
11365
11366 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11367
25e57356
TT
113682020-01-14 Tom Tromey <tom@tromey.com>
11369
11370 * nat/linux-btrace.c: Don't include <config.h>.
11371 * nat/linux-ptrace.c: Don't include <config.h>.
11372 * nat/x86-linux-dregs.c: Don't include <config.h>.
11373
05ea2a05
TT
113742020-01-14 Tom Tromey <tom@tromey.com>
11375
11376 * configure: Rebuild.
11377 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11378
01027315
TT
113792020-01-14 Tom Tromey <tom@tromey.com>
11380
11381 * nat/x86-linux-dregs.c: Include configh.h.
11382 * nat/linux-ptrace.c: Include configh.h.
11383 * nat/linux-btrace.c: Include configh.h.
11384 * defs.h: Include config.h, bfd.h.
11385 * configure.ac: Don't source common.host.
11386 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11387 * configure: Rebuild.
11388 * acinclude.m4: Update path.
11389 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11390 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11391 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11392 (CLIBS): Add LIBSUPPORT.
11393 (CDEPS): Likewise.
11394 (COMMON_SFILES): Remove gdbsupport files.
11395 (HFILES_NO_SRCDIR): Likewise.
11396 (stamp-version): Update path to create-version.sh.
11397 (ALLDEPFILES): Remove gdbsupport files.
11398
b2ceabe8
TT
113992020-01-14 Tom Tromey <tom@tromey.com>
11400
11401 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11402 USE_WIN32API when needed.
11403 * configure.ac (USE_WIN32API): Don't define.
11404 (WIN32LIBS): Use WIN32APILIBS.
11405 * configure: Rebuild.
11406
25c51f71
TT
114072020-01-14 Tom Tromey <tom@tromey.com>
11408
11409 * configure: Rebuild.
11410 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11411
717c684d
BE
114122020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11413
11414 * skip.c (skip_function_command): Make skip w/o arguments use the
11415 name of the inlined function if pc is inside any inlined function.
11416
7da6a5b9
LM
114172020-01-14 Luis Machado <luis.machado@linaro.org>
11418
11419 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11420 * infrun.c (resume_1): Likewise.
11421 (handle_inferior_event): Remove stale comment.
11422 * linux-nat.c (linux_nat_target::resume): Update comments.
11423 (save_stop_reason): Likewise.
11424 (linux_nat_filter_event): Likewise.
11425 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11426
44e4c775
AB
114272020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11428
11429 * elfread.c (record_minimal_symbol): Set section index to 0 for
11430 non-allocatable sections.
11431
18a8505e
AT
11432
114332020-01-13 Ali Tamur <tamur@google.com>
11434
11435 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11436 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11437 to gdb::optional. Update comments.
11438 (dwo_file): Update comments.
11439 (read_attribute): Update API to take an additional out parameter,
11440 need_reprocess. This is used to mark attributes that need other
11441 attributes (e.g. str_offsets_base) for correct computation which may not
11442 have been read yet.
11443 (read_attribute_reprocess): New function declaration.
11444 (read_addr_index): Likewise.
11445 (read_dwo_str_index): Likewise.
11446 (read_stub_str_index): Likewise.
11447 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11448 (lookup_addr_base): New function definition.
11449 (lookup_ranges_base): Likewise.
11450 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11451 lookup_ranges_base.
11452 (init_cutu_and_read_dies): Update comments.
11453 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11454 unit. This is used to inherit parent's str_offsets_base and addr_base.
11455 Update comments.
11456 (init_cutu_and_read_dies_simple): Reflect API changes.
11457 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11458 (create_cus_hash_table): Change API to take parent compile unit.
11459 Reflect API changes.
11460 (open_and_init_dwo_file): Reflect API changes.
11461 (dwarf2_get_pc_bounds): Update comments.
11462 (dwarf2_record_block_ranges): Likewise.
11463 (read_full_die_1): Change implementation to reprocess attributes that
11464 need str_offsets_base and addr_base.
11465 (partial_die_info::read): Likewise.
11466 (read_attribute_reprocess): New function definition.
11467 (read_attribute_value): Change API to take an additional out parameter,
11468 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11469 when a non-dwo compile unit has index based attributes.
11470 (read_attribute): Reflect API changes.
11471 (read_addr_index_1): Reflect API changes. Update comments.
11472 (dwarf2_read_addr_index_data): Reflect API changes.
11473 (dwarf2_read_addr_index): Likewise.
11474 (read_str_index): Change API and implementation. This becomes a helper
11475 to be used by the new string index related methods. Update error
11476 message and comments.
11477 (read_dwo_str_index): New function definition.
11478 (read_stub_str_index): Likewise.
11479 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11480 * symfile.h (dwarf2_debug_sections): Likewise.
11481 * xcoffread.c (dwarf2_debug_sections): Likewise.
11482
0cac9354
SM
114832020-01-13 Simon Marchi <simon.marchi@efficios.com>
11484
11485 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11486 core_reg_sect type to gdb_byte *.
11487 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11488 * cris-tdep.c (fetch_core_registers): Likewise.
11489 * corelow.c (core_target::get_core_register_section): Change
11490 type of `contents` to gdb::byte_vector.
11491
9a6d629c
AB
114922020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11493
11494 * tui/tui-wingeneral.c (box_win): Position the title in the center
11495 of the border.
11496
d8b2f9e3
SM
114972020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11498
11499 * corelow.c (core_target::get_core_register_section): Use
11500 std::vector instead of alloca.
11501
bb564c58
SM
115022020-01-13 Simon Marchi <simon.marchi@efficios.com>
11503
11504 * warning.m4: Add -Wmissing-declarations to build_warnings.
11505 * configure: Re-generate.
11506
6b366111
SM
115072020-01-13 Simon Marchi <simon.marchi@efficios.com>
11508
11509 * python/python.c (init__gdb_module): Add declaration.
11510
6c265988
SM
115112020-01-13 Simon Marchi <simon.marchi@efficios.com>
11512
11513 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11514 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11515 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11516 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11517 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11518 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11519 * ada-exp.y (_initialize_ada_exp): Add declaration.
11520 * ada-lang.c (_initialize_ada_language): Add declaration.
11521 * ada-tasks.c (_initialize_tasks): Add declaration.
11522 * agent.c (_initialize_agent): Add declaration.
11523 * aix-thread.c (_initialize_aix_thread): Add declaration.
11524 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11525 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11526 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11527 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11528 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11529 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11530 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11531 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11532 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11533 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11534 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11535 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11536 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11537 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11538 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11539 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11540 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11541 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11542 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11543 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11544 * annotate.c (_initialize_annotate): Add declaration.
11545 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11546 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11547 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11548 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11549 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11550 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11551 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11552 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11553 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11554 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11555 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11556 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11557 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11558 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11559 * auto-load.c (_initialize_auto_load): Add declaration.
11560 * auxv.c (_initialize_auxv): Add declaration.
11561 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11562 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11563 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11564 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11565 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11566 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11567 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11568 * breakpoint.c (_initialize_breakpoint): Add declaration.
11569 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11570 * btrace.c (_initialize_btrace): Add declaration.
11571 * charset.c (_initialize_charset): Add declaration.
11572 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11573 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11574 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11575 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11576 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11577 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11578 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11579 * coffread.c (_initialize_coffread): Add declaration.
11580 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11581 * compile/compile.c (_initialize_compile): Add declaration.
11582 * complaints.c (_initialize_complaints): Add declaration.
11583 * completer.c (_initialize_completer): Add declaration.
11584 * copying.c (_initialize_copying): Add declaration.
11585 * corefile.c (_initialize_core): Add declaration.
11586 * corelow.c (_initialize_corelow): Add declaration.
11587 * cp-abi.c (_initialize_cp_abi): Add declaration.
11588 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11589 * cp-support.c (_initialize_cp_support): Add declaration.
11590 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11591 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11592 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11593 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11594 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11595 * ctfread.c (_initialize_ctfread): Add declaration.
11596 * d-lang.c (_initialize_d_language): Add declaration.
11597 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11598 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11599 * dbxread.c (_initialize_dbxread): Add declaration.
11600 * dcache.c (_initialize_dcache): Add declaration.
11601 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11602 * disasm.c (_initialize_disasm): Add declaration.
11603 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11604 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11605 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11606 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11607 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11608 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11609 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11610 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11611 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11612 * elfread.c (_initialize_elfread): Add declaration.
11613 * exec.c (_initialize_exec): Add declaration.
11614 * extension.c (_initialize_extension): Add declaration.
11615 * f-lang.c (_initialize_f_language): Add declaration.
11616 * f-valprint.c (_initialize_f_valprint): Add declaration.
11617 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11618 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11619 * filesystem.c (_initialize_filesystem): Add declaration.
11620 * findcmd.c (_initialize_mem_search): Add declaration.
11621 * findvar.c (_initialize_findvar): Add declaration.
11622 * fork-child.c (_initialize_fork_child): Add declaration.
11623 * frame-base.c (_initialize_frame_base): Add declaration.
11624 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11625 * frame.c (_initialize_frame): Add declaration.
11626 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11627 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11628 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11629 * gcore.c (_initialize_gcore): Add declaration.
11630 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11631 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11632 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11633 * gdbarch.c (_initialize_gdbarch): Add declaration.
11634 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11635 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11636 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11637 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11638 * go-lang.c (_initialize_go_language): Add declaration.
11639 * go32-nat.c (_initialize_go32_nat): Add declaration.
11640 * guile/guile.c (_initialize_guile): Add declaration.
11641 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11642 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11643 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11644 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11645 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11646 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11647 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11648 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11649 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11650 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11651 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11652 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11653 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11654 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11655 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11656 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11657 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11658 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11659 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11660 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11661 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11662 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11663 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11664 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11665 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11666 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11667 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11668 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11669 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11670 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11671 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11672 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11673 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11674 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11675 * infcall.c (_initialize_infcall): Add declaration.
11676 * infcmd.c (_initialize_infcmd): Add declaration.
11677 * inflow.c (_initialize_inflow): Add declaration.
11678 * infrun.c (_initialize_infrun): Add declaration.
11679 * interps.c (_initialize_interpreter): Add declaration.
11680 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11681 * jit.c (_initialize_jit): Add declaration.
11682 * language.c (_initialize_language): Add declaration.
11683 * linux-fork.c (_initialize_linux_fork): Add declaration.
11684 * linux-nat.c (_initialize_linux_nat): Add declaration.
11685 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11686 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11687 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11688 * m2-lang.c (_initialize_m2_language): Add declaration.
11689 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11690 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11691 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11692 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11693 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11694 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11695 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11696 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11697 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11698 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11699 * machoread.c (_initialize_machoread): Add declaration.
11700 * macrocmd.c (_initialize_macrocmd): Add declaration.
11701 * macroscope.c (_initialize_macroscope): Add declaration.
11702 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11703 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11704 * maint.c (_initialize_maint_cmds): Add declaration.
11705 * mdebugread.c (_initialize_mdebugread): Add declaration.
11706 * memattr.c (_initialize_mem): Add declaration.
11707 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11708 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11709 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11710 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11711 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11712 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11713 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11714 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11715 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11716 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11717 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11718 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11719 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11720 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11721 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11722 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11723 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11724 * mipsread.c (_initialize_mipsread): Add declaration.
11725 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11726 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11727 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11728 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11729 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11730 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11731 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11732 * nto-procfs.c (_initialize_procfs): Add declaration.
11733 * objc-lang.c (_initialize_objc_language): Add declaration.
11734 * observable.c (_initialize_observer): Add declaration.
11735 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11736 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11737 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11738 * osabi.c (_initialize_gdb_osabi): Add declaration.
11739 * osdata.c (_initialize_osdata): Add declaration.
11740 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11741 * parse.c (_initialize_parse): Add declaration.
11742 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11743 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11744 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11745 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11746 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11747 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11748 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11749 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11750 * printcmd.c (_initialize_printcmd): Add declaration.
11751 * probe.c (_initialize_probe): Add declaration.
11752 * proc-api.c (_initialize_proc_api): Add declaration.
11753 * proc-events.c (_initialize_proc_events): Add declaration.
11754 * proc-service.c (_initialize_proc_service): Add declaration.
11755 * procfs.c (_initialize_procfs): Add declaration.
11756 * producer.c (_initialize_producer): Add declaration.
11757 * psymtab.c (_initialize_psymtab): Add declaration.
11758 * python/python.c (_initialize_python): Add declaration.
11759 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11760 * record-btrace.c (_initialize_record_btrace): Add declaration.
11761 * record-full.c (_initialize_record_full): Add declaration.
11762 * record.c (_initialize_record): Add declaration.
11763 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11764 * regcache.c (_initialize_regcache): Add declaration.
11765 * reggroups.c (_initialize_reggroup): Add declaration.
11766 * remote-notif.c (_initialize_notif): Add declaration.
11767 * remote-sim.c (_initialize_remote_sim): Add declaration.
11768 * remote.c (_initialize_remote): Add declaration.
11769 * reverse.c (_initialize_reverse): Add declaration.
11770 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11771 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11772 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11773 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11774 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11775 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11776 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11777 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11778 Add declaration.
11779 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11780 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11781 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11782 * rust-exp.y (_initialize_rust_exp): Add declaration.
11783 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11784 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11785 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11786 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11787 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11788 * score-tdep.c (_initialize_score_tdep): Add declaration.
11789 * ser-go32.c (_initialize_ser_dos): Add declaration.
11790 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11791 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11792 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11793 * ser-uds.c (_initialize_ser_socket): Add declaration.
11794 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11795 * serial.c (_initialize_serial): Add declaration.
11796 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11797 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11798 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11799 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11800 * skip.c (_initialize_step_skip): Add declaration.
11801 * sol-thread.c (_initialize_sol_thread): Add declaration.
11802 * solib-aix.c (_initialize_solib_aix): Add declaration.
11803 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11804 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11805 * solib-frv.c (_initialize_frv_solib): Add declaration.
11806 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11807 * solib-target.c (_initialize_solib_target): Add declaration.
11808 * solib.c (_initialize_solib): Add declaration.
11809 * source-cache.c (_initialize_source_cache): Add declaration.
11810 * source.c (_initialize_source): Add declaration.
11811 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11812 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11813 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11814 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11815 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11816 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11817 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11818 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11819 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11820 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11821 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11822 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11823 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11824 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11825 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11826 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11827 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11828 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11829 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11830 * stabsread.c (_initialize_stabsread): Add declaration.
11831 * stack.c (_initialize_stack): Add declaration.
11832 * stap-probe.c (_initialize_stap_probe): Add declaration.
11833 * std-regs.c (_initialize_frame_reg): Add declaration.
11834 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11835 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11836 * symfile.c (_initialize_symfile): Add declaration.
11837 * symmisc.c (_initialize_symmisc): Add declaration.
11838 * symtab.c (_initialize_symtab): Add declaration.
11839 * target.c (_initialize_target): Add declaration.
11840 * target-connection.c (_initialize_target_connection): Add
11841 declaration.
11842 * target-dcache.c (_initialize_target_dcache): Add declaration.
11843 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11844 * thread.c (_initialize_thread): Add declaration.
11845 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11846 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11847 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11848 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11849 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11850 * tracectf.c (_initialize_ctf): Add declaration.
11851 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11852 * tracefile.c (_initialize_tracefile): Add declaration.
11853 * tracepoint.c (_initialize_tracepoint): Add declaration.
11854 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11855 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11856 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11857 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11858 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11859 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11860 * tui/tui.c (_initialize_tui): Add declaration.
11861 * typeprint.c (_initialize_typeprint): Add declaration.
11862 * ui-style.c (_initialize_ui_style): Add declaration.
11863 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11864 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11865 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11866 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11867 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11868 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11869 * unittests/filtered_iterator-selftests.c
11870 (_initialize_filtered_iterator_selftests): Add declaration.
11871 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11872 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11873 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11874 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11875 * unittests/main-thread-selftests.c
11876 (_initialize_main_thread_selftests): Add declaration.
11877 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11878 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11879 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11880 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11881 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11882 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11883 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11884 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11885 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11886 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11887 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11888 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11889 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11890 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11891 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11892 declaration.
11893 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11894 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11895 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11896 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11897 * user-regs.c (_initialize_user_regs): Add declaration.
11898 * utils.c (_initialize_utils): Add declaration.
11899 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11900 * valops.c (_initialize_valops): Add declaration.
11901 * valprint.c (_initialize_valprint): Add declaration.
11902 * value.c (_initialize_values): Add declaration.
11903 * varobj.c (_initialize_varobj): Add declaration.
11904 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11905 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11906 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11907 * windows-nat.c (_initialize_windows_nat): Add declaration.
11908 (_initialize_check_for_gdb_ini): Add declaration.
11909 (_initialize_loadable): Add declaration.
11910 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11911 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11912 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11913 * xcoffread.c (_initialize_xcoffread): Add declaration.
11914 * xml-support.c (_initialize_xml_support): Add declaration.
11915 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11916 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11917 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11918 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11919
e2de1eec
SM
119202020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11921
11922 * regformats/regdat.sh: Generate declaration for init function.
11923
e0037b4c
SM
119242020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11925
11926 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11927 up.
11928 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11929 close_one_inferior>: New methods.
11930 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11931 pass down target to find_inferior_pid.
11932 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11933 Pass down target to find_inferior_ptid.
11934 (gdbsim_target::create_inferior): Pass down target to
11935 add_thread_silent.
11936 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11937 target down to find_inferior_ptid and switch_to_thread.
11938 (gdbsim_target::close): Update to call close_one_inferior.
11939 (struct resume_data): Remove.
11940 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11941 directly, rather than through a void pointer.
11942 (gdbsim_target::resume): Update to call resume_one_inferior.
11943
58920b5b
SM
119442020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11945
11946 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11947
4ec89149
PA
119482020-01-12 Pedro Alves <palves@redhat.com>
11949
11950 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11951 directly for the current inferior instead of
11952 discard_all_inferiors.
11953 (discard_all_inferiors): Delete.
11954
7c392d1d
TT
119552020-01-11 Tom Tromey <tom@tromey.com>
11956
11957 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11958 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11959 deprecated_safe_get_selected_frame.
11960
d9ebdab7
TBA
119612020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11962
11963 * inferior.c (print_inferior): Switch inferior before printing it.
11964
f3c469b9
PA
119652020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11966 Pedro Alves <palves@redhat.com>
11967
11968 * progspace-and-thread.c (switch_to_program_space_and_thread):
11969 Assert there's an inferior for PSPACE. Use
11970 switch_to_inferior_no_thread to switch the inferior too.
11971 * progspace.c (program_space::~program_space): Call
11972 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11973 (program_space::free_all_objfiles): Don't call clear_symtab_users
11974 here.
11975 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11976
65c574f6
PA
119772020-01-10 Pedro Alves <palves@redhat.com>
11978
11979 * NEWS: Mention multi-target debugging, "info connections", and
11980 "add-inferior -no-connection".
11981
2f4fcf00
PA
119822020-01-10 Pedro Alves <palves@redhat.com>
11983
11984 * infrun.c: Include "target-connection.h".
11985 (check_multi_target_resumption): New.
11986 (proceed): Call it.
11987 * target-connection.c (make_target_connection_string): Make
11988 extern.
11989 * target-connection.h (make_target_connection_string): Declare.
11990
121b3efd
PA
119912020-01-10 Pedro Alves <palves@redhat.com>
11992
11993 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11994 * inferior.c (uiout_field_connection): New function.
11995 (print_inferior): Add new "connection-id" column.
11996 (add_inferior_command): Show connection number/string of added
11997 inferior.
11998 * process-stratum-target.h
11999 (process_stratum_target::connection_string): New virtual method.
12000 (process_stratum_target::connection_number): New field.
12001 * remote.c (remote_target::connection_string): New override.
12002 * target-connection.c: New file.
12003 * target-connection.h: New file.
12004 * target.c (decref_target): Remove process_stratum targets from
12005 the connection list.
12006 (target_stack::push): Add process_stratum targets to the
12007 connection list.
12008
4f837581
PA
120092020-01-10 Pedro Alves <palves@redhat.com>
12010
12011 Revert:
12012 2016-04-12 Pedro Alves <palves@redhat.com>
12013 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
12014 Remove references to name.
12015 * serial.h (struct serial) <name>: Delete.
12016
f4ec508e
PA
120172020-01-10 Pedro Alves <palves@redhat.com>
12018
12019 * gdbarch-selftests.c (register_to_value_test): Remove "target
12020 already pushed" check.
12021
5b6d1e4f
PA
120222020-01-10 Pedro Alves <palves@redhat.com>
12023 John Baldwin <jhb@FreeBSD.org>
12024
12025 * aarch64-linux-nat.c
12026 (aarch64_linux_nat_target::thread_architecture): Adjust.
12027 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
12028 (task_command_1): Likewise.
12029 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
12030 (aix_thread_target::wait, aix_thread_target::fetch_registers)
12031 (aix_thread_target::store_registers)
12032 (aix_thread_target::thread_alive): Adjust.
12033 * amd64-fbsd-tdep.c: Include "inferior.h".
12034 (amd64fbsd_get_thread_local_address): Pass down target.
12035 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
12036 thread's gdbarch instead of target_gdbarch.
12037 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
12038 get_last_target_status.
12039 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
12040 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
12041 inferiors.
12042 (update_inserted_breakpoint_locations): Skip if inferiors with no
12043 execution.
12044 (update_global_location_list): When handling moribund locations,
12045 find representative inferior for location's pspace, and use thread
12046 count of its process_stratum target.
12047 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
12048 * bsd-uthread.c (bsd_uthread_target::wait): Use
12049 as_process_stratum_target and adjust thread_change_ptid and
12050 add_thread calls.
12051 (bsd_uthread_target::update_thread_list): Use
12052 as_process_stratum_target and adjust find_thread_ptid,
12053 thread_change_ptid and add_thread calls.
12054 * btrace.c (maint_btrace_packet_history_cmd): Adjust
12055 find_thread_ptid call.
12056 * corelow.c (add_to_thread_list): Adjust add_thread call.
12057 (core_target_open): Adjust add_thread_silent and thread_count
12058 calls.
12059 (core_target::pid_to_str): Adjust find_inferior_ptid call.
12060 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
12061 * event-top.c (async_disconnect): Pop targets from all inferiors.
12062 * exec.c (add_target_sections): Push exec target on all inferiors
12063 sharing the program space.
12064 (remove_target_sections): Remove the exec target from all
12065 inferiors sharing the program space.
12066 (exec_on_vfork): New.
12067 * exec.h (exec_on_vfork): Declare.
12068 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
12069 Pass it down.
12070 (fbsd_nat_target::update_thread_list): Adjust.
12071 (fbsd_nat_target::resume): Adjust.
12072 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
12073 down.
12074 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
12075 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
12076 get_thread_arch_regcache call.
12077 * fork-child.c (gdb_startup_inferior): Pass target down to
12078 startup_inferior and set_executing.
12079 * gdbthread.h (struct process_stratum_target): Forward declare.
12080 (add_thread, add_thread_silent, add_thread_with_info)
12081 (in_thread_list): Add process_stratum_target parameter.
12082 (find_thread_ptid(inferior*, ptid_t)): New overload.
12083 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
12084 parameter.
12085 (all_threads()): Delete overload.
12086 (all_threads, all_non_exited_threads): Add process_stratum_target
12087 parameter.
12088 (all_threads_safe): Use brace initialization.
12089 (thread_count): Add process_stratum_target parameter.
12090 (set_resumed, set_running, set_stop_requested, set_executing)
12091 (threads_are_executing, finish_thread_state): Add
12092 process_stratum_target parameter.
12093 (switch_to_thread): Use is_current_thread.
12094 * i386-fbsd-tdep.c: Include "inferior.h".
12095 (i386fbsd_get_thread_local_address): Pass down target.
12096 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
12097 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
12098 have_inferiors check.
12099 * inf-ptrace.c (inf_ptrace_target::create_inferior)
12100 (inf_ptrace_target::attach): Adjust.
12101 * infcall.c (run_inferior_call): Adjust.
12102 * infcmd.c (run_command_1): Pass target to
12103 scoped_finish_thread_state.
12104 (proceed_thread_callback): Skip inferiors with no execution.
12105 (continue_command): Rename 'all_threads' local to avoid hiding
12106 'all_threads' function. Adjust get_last_target_status call.
12107 (prepare_one_step): Adjust set_running call.
12108 (signal_command): Use user_visible_resume_target. Compare thread
12109 pointers instead of inferior_ptid.
12110 (info_program_command): Adjust to pass down target.
12111 (attach_command): Mark target's 'thread_executing' flag.
12112 (stop_current_target_threads_ns): New, factored out from ...
12113 (interrupt_target_1): ... this. Switch inferior before making
12114 target calls.
12115 * inferior-iter.h
12116 (struct all_inferiors_iterator, struct all_inferiors_range)
12117 (struct all_inferiors_safe_range)
12118 (struct all_non_exited_inferiors_range): Filter on
12119 process_stratum_target too. Remove explicit.
12120 * inferior.c (inferior::inferior): Push dummy target on target
12121 stack.
12122 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
12123 Add process_stratum_target parameter, and pass it down.
12124 (have_live_inferiors): Adjust.
12125 (switch_to_inferior_and_push_target): New.
12126 (add_inferior_command, clone_inferior_command): Handle
12127 "-no-connection" parameter. Use
12128 switch_to_inferior_and_push_target.
12129 (_initialize_inferior): Mention "-no-connection" option in
12130 the help of "add-inferior" and "clone-inferior" commands.
12131 * inferior.h: Include "process-stratum-target.h".
12132 (interrupt_target_1): Use bool.
12133 (struct inferior) <push_target, unpush_target, target_is_pushed,
12134 find_target_beneath, top_target, process_target, target_at,
12135 m_stack>: New.
12136 (discard_all_inferiors): Delete.
12137 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
12138 (all_inferiors, all_non_exited_inferiors): Add
12139 process_stratum_target parameter.
12140 * infrun.c: Include "gdb_select.h" and <unordered_map>.
12141 (target_last_proc_target): New global.
12142 (follow_fork_inferior): Push target on new inferior. Pass target
12143 to add_thread_silent. Call exec_on_vfork. Handle target's
12144 reference count.
12145 (follow_fork): Adjust get_last_target_status call. Also consider
12146 target.
12147 (follow_exec): Push target on new inferior.
12148 (struct execution_control_state) <target>: New field.
12149 (user_visible_resume_target): New.
12150 (do_target_resume): Call target_async.
12151 (resume_1): Set target's threads_executing flag. Consider resume
12152 target.
12153 (commit_resume_all_targets): New.
12154 (proceed): Also consider resume target. Skip threads of inferiors
12155 with no execution. Commit resumtion in all targets.
12156 (start_remote): Pass current inferior to wait_for_inferior.
12157 (infrun_thread_stop_requested): Consider target as well. Pass
12158 thread_info pointer to clear_inline_frame_state instead of ptid.
12159 (infrun_thread_thread_exit): Consider target as well.
12160 (random_pending_event_thread): New inferior parameter. Use it.
12161 (do_target_wait): Rename to ...
12162 (do_target_wait_1): ... this. Add inferior parameter, and pass it
12163 down.
12164 (threads_are_resumed_pending_p, do_target_wait): New.
12165 (prepare_for_detach): Adjust calls.
12166 (wait_for_inferior): New inferior parameter. Handle it. Use
12167 do_target_wait_1 instead of do_target_wait.
12168 (fetch_inferior_event): Adjust. Switch to representative
12169 inferior. Pass target down.
12170 (set_last_target_status): Add process_stratum_target parameter.
12171 Save target in global.
12172 (get_last_target_status): Add process_stratum_target parameter and
12173 handle it.
12174 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
12175 (context_switch): Check inferior_ptid == null_ptid before calling
12176 inferior_thread().
12177 (get_inferior_stop_soon): Pass down target.
12178 (wait_one): Rename to ...
12179 (poll_one_curr_target): ... this.
12180 (struct wait_one_event): New.
12181 (wait_one): New.
12182 (stop_all_threads): Adjust.
12183 (handle_no_resumed, handle_inferior_event): Adjust to consider the
12184 event's target.
12185 (switch_back_to_stepped_thread): Also consider target.
12186 (print_stop_event): Update.
12187 (normal_stop): Update. Also consider the resume target.
12188 * infrun.h (wait_for_inferior): Remove declaration.
12189 (user_visible_resume_target): New declaration.
12190 (get_last_target_status, set_last_target_status): New
12191 process_stratum_target parameter.
12192 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12193 process_stratum_target parameter, and use it.
12194 (clear_inline_frame_state (thread_info*)): New.
12195 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
12196 process_stratum_target parameter.
12197 (clear_inline_frame_state (thread_info*)): Declare.
12198 * linux-fork.c (delete_checkpoint_command): Pass target down to
12199 find_thread_ptid.
12200 (checkpoint_command): Adjust.
12201 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
12202 instead of just tweaking inferior_ptid.
12203 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
12204 (exit_lwp): Pass target down to find_thread_ptid.
12205 (attach_proc_task_lwp_callback): Pass target down to
12206 add_thread/set_running/set_executing.
12207 (linux_nat_target::attach): Pass target down to
12208 thread_change_ptid.
12209 (get_detach_signal): Pass target down to find_thread_ptid.
12210 Consider last target status's target.
12211 (linux_resume_one_lwp_throw, resume_lwp)
12212 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
12213 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
12214 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
12215 (linux_nat_target::async_wait_fd): New.
12216 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
12217 target down.
12218 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
12219 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
12220 * linux-thread-db.c (struct thread_db_info::process_target): New
12221 field.
12222 (add_thread_db_info): Save target.
12223 (get_thread_db_info): New process_stratum_target parameter. Also
12224 match target.
12225 (delete_thread_db_info): New process_stratum_target parameter.
12226 Also match target.
12227 (thread_from_lwp): Adjust to pass down target.
12228 (thread_db_notice_clone): Pass down target.
12229 (check_thread_db_callback): Pass down target.
12230 (try_thread_db_load_1): Always push the thread_db target.
12231 (try_thread_db_load, record_thread): Pass target down.
12232 (thread_db_target::detach): Pass target down. Always unpush the
12233 thread_db target.
12234 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
12235 target down. Always unpush the thread_db target.
12236 (find_new_threads_callback, thread_db_find_new_threads_2)
12237 (thread_db_target::update_thread_list): Pass target down.
12238 (thread_db_target::pid_to_str): Pass current inferior down.
12239 (thread_db_target::get_thread_local_address): Pass target down.
12240 (thread_db_target::resume, maintenance_check_libthread_db): Pass
12241 target down.
12242 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
12243 * procfs.c (procfs_target::procfs_init_inferior): Declare.
12244 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
12245 (procfs_init_inferior): Rename to ...
12246 (procfs_target::procfs_init_inferior): ... this and adjust.
12247 (procfs_target::create_inferior, procfs_notice_thread)
12248 (procfs_do_thread_registers): Adjust.
12249 * ppc-fbsd-tdep.c: Include "inferior.h".
12250 (ppcfbsd_get_thread_local_address): Pass down target.
12251 * proc-service.c (ps_xfer_memory): Switch current inferior and
12252 program space as well.
12253 (get_ps_regcache): Pass target down.
12254 * process-stratum-target.c
12255 (process_stratum_target::thread_address_space)
12256 (process_stratum_target::thread_architecture): Pass target down.
12257 * process-stratum-target.h
12258 (process_stratum_target::threads_executing): New field.
12259 (as_process_stratum_target): New.
12260 * ravenscar-thread.c
12261 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12262 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12263 down.
12264 * record-btrace.c (record_btrace_target::info_record): Adjust.
12265 (record_btrace_target::record_method)
12266 (record_btrace_target::record_is_replaying)
12267 (record_btrace_target::fetch_registers)
12268 (get_thread_current_frame_id, record_btrace_target::resume)
12269 (record_btrace_target::wait, record_btrace_target::stop): Pass
12270 target down.
12271 * record-full.c (record_full_wait_1): Switch to event thread.
12272 Pass target down.
12273 * regcache.c (regcache::regcache)
12274 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12275 process_stratum_target parameter and handle it.
12276 (current_thread_target): New global.
12277 (get_thread_regcache): Add process_stratum_target parameter and
12278 handle it. Switch inferior before calling target method.
12279 (get_thread_regcache): Pass target down.
12280 (get_thread_regcache_for_ptid): Pass target down.
12281 (registers_changed_ptid): Add process_stratum_target parameter and
12282 handle it.
12283 (registers_changed_thread, registers_changed): Pass target down.
12284 (test_get_thread_arch_aspace_regcache): New.
12285 (current_regcache_test): Define a couple local test_target_ops
12286 instances and use them for testing.
12287 (readwrite_regcache): Pass process_stratum_target parameter.
12288 (cooked_read_test, cooked_write_test): Pass mock_target down.
12289 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12290 (get_thread_arch_aspace_regcache): Add process_stratum_target
12291 parameter.
12292 (regcache::target): New method.
12293 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12294 (regcache::registers_changed_ptid): Add process_stratum_target
12295 parameter.
12296 (regcache::m_target): New field.
12297 (registers_changed_ptid): Add process_stratum_target parameter.
12298 * remote.c (remote_state::supports_vCont_probed): New field.
12299 (remote_target::async_wait_fd): New method.
12300 (remote_unpush_and_throw): Add remote_target parameter.
12301 (get_current_remote_target): Adjust.
12302 (remote_target::remote_add_inferior): Push target.
12303 (remote_target::remote_add_thread)
12304 (remote_target::remote_notice_new_inferior)
12305 (get_remote_thread_info): Pass target down.
12306 (remote_target::update_thread_list): Skip threads of inferiors
12307 bound to other targets. (remote_target::close): Don't discard
12308 inferiors. (remote_target::add_current_inferior_and_thread)
12309 (remote_target::process_initial_stop_replies)
12310 (remote_target::start_remote)
12311 (remote_target::remote_serial_quit_handler): Pass down target.
12312 (remote_target::remote_unpush_target): New remote_target
12313 parameter. Unpush the target from all inferiors.
12314 (remote_target::remote_unpush_and_throw): New remote_target
12315 parameter. Pass it down.
12316 (remote_target::open_1): Check whether the current inferior has
12317 execution instead of checking whether any inferior is live. Pass
12318 target down.
12319 (remote_target::remote_detach_1): Pass down target. Use
12320 remote_unpush_target.
12321 (extended_remote_target::attach): Pass down target.
12322 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12323 (remote_target::append_resumption): Pass down target.
12324 (remote_target::append_pending_thread_resumptions)
12325 (remote_target::remote_resume_with_hc, remote_target::resume)
12326 (remote_target::commit_resume): Pass down target.
12327 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12328 (remote_target::interrupt_query)
12329 (remote_target::remove_new_fork_children)
12330 (remote_target::check_pending_events_prevent_wildcard_vcont)
12331 (remote_target::remote_parse_stop_reply)
12332 (remote_target::process_stop_reply): Pass down target.
12333 (first_remote_resumed_thread): New remote_target parameter. Pass
12334 it down.
12335 (remote_target::wait_as): Pass down target.
12336 (unpush_and_perror): New remote_target parameter. Pass it down.
12337 (remote_target::readchar, remote_target::remote_serial_write)
12338 (remote_target::getpkt_or_notif_sane_1)
12339 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12340 down target.
12341 (remote_target::mourn_inferior): Pass down target. Use
12342 remote_unpush_target.
12343 (remote_target::core_of_thread)
12344 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12345 (remote_target::pid_to_exec_file)
12346 (remote_target::thread_handle_to_thread_info): Pass down target.
12347 (remote_target::async_wait_fd): New.
12348 * riscv-fbsd-tdep.c: Include "inferior.h".
12349 (riscv_fbsd_get_thread_local_address): Pass down target.
12350 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12351 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12352 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12353 Adjust.
12354 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12355 * solib-svr4.c (enable_break): Pass down target.
12356 * spu-multiarch.c (parse_spufs_run): Pass down target.
12357 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12358 * target-delegates.c: Regenerate.
12359 * target.c (g_target_stack): Delete.
12360 (current_top_target): Return the current inferior's top target.
12361 (target_has_execution_1): Refer to the passed-in inferior's top
12362 target.
12363 (target_supports_terminal_ours): Check whether the initial
12364 inferior was already created.
12365 (decref_target): New.
12366 (target_stack::push): Incref/decref the target.
12367 (push_target, push_target, unpush_target): Adjust.
12368 (target_stack::unpush): Defref target.
12369 (target_is_pushed): Return bool. Adjust to refer to the current
12370 inferior's target stack.
12371 (dispose_inferior): Delete, and inline parts ...
12372 (target_preopen): ... here. Only dispose of the current inferior.
12373 (target_detach): Hold strong target reference while detaching.
12374 Pass target down.
12375 (target_thread_name): Add assertion.
12376 (target_resume): Pass down target.
12377 (target_ops::beneath, find_target_at): Adjust to refer to the
12378 current inferior's target stack.
12379 (get_dummy_target): New.
12380 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12381 has a thread running.
12382 (initialize_targets): Rename to ...
12383 (_initialize_target): ... this.
12384 * target.h: Include "gdbsupport/refcounted-object.h".
12385 (struct target_ops): Inherit refcounted_object.
12386 (target_ops::shortname, target_ops::longname): Make const.
12387 (target_ops::async_wait_fd): New method.
12388 (decref_target): Declare.
12389 (struct target_ops_ref_policy): New.
12390 (target_ops_ref): New typedef.
12391 (get_dummy_target): Declare function.
12392 (target_is_pushed): Return bool.
12393 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12394 (all_matching_threads_iterator::all_matching_threads_iterator):
12395 Handle filter target.
12396 * thread-iter.h (struct all_matching_threads_iterator, struct
12397 all_matching_threads_range, class all_non_exited_threads_range):
12398 Filter by target too. Remove explicit.
12399 * thread.c (threads_executing): Delete.
12400 (inferior_thread): Pass down current inferior.
12401 (clear_thread_inferior_resources): Pass down thread pointer
12402 instead of ptid_t.
12403 (add_thread_silent, add_thread_with_info, add_thread): Add
12404 process_stratum_target parameter. Use it for thread and inferior
12405 searches.
12406 (is_current_thread): New.
12407 (thread_info::deletable): Use it.
12408 (find_thread_ptid, thread_count, in_thread_list)
12409 (thread_change_ptid, set_resumed, set_running): New
12410 process_stratum_target parameter. Pass it down.
12411 (set_executing): New process_stratum_target parameter. Pass it
12412 down. Adjust reference to 'threads_executing'.
12413 (threads_are_executing): New process_stratum_target parameter.
12414 Adjust reference to 'threads_executing'.
12415 (set_stop_requested, finish_thread_state): New
12416 process_stratum_target parameter. Pass it down.
12417 (switch_to_thread): Also match inferior.
12418 (switch_to_thread): New process_stratum_target parameter. Pass it
12419 down.
12420 (update_threads_executing): Reimplement.
12421 * top.c (quit_force): Pop targets from all inferior.
12422 (gdb_init): Don't call initialize_targets.
12423 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12424 Declare.
12425 (windows_add_thread, windows_delete_thread): Adjust.
12426 (get_windows_debug_event): Rename to ...
12427 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12428 * tracefile-tfile.c (tfile_target_open): Pass down target.
12429 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12430 Forward declare.
12431 (switch_to_thread): Add process_stratum_target parameter.
12432 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12433 parameter. Use it.
12434 (mi_on_resume): Pass target down.
12435 * nat/fork-inferior.c (startup_inferior): Add
12436 process_stratum_target parameter. Pass it down.
12437 * nat/fork-inferior.h (startup_inferior): Add
12438 process_stratum_target parameter.
12439 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12440
75c6c844
PA
124412020-01-10 Pedro Alves <palves@redhat.com>
12442
12443 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12444 directly. Instead find the first thread in the thread list and
12445 use switch_to_thread.
12446
78f2c40a
PA
124472020-01-10 Pedro Alves <palves@redhat.com>
12448
12449 * remote.c (remote_target::remote_add_inferior): Don't bind a
12450 process to the current inferior if the current inferior is already
12451 bound to a process.
12452
e7af6c70
TBA
124532020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12454 Pedro Alves <palves@redhat.com>
12455
12456 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12457 If no process is specified, return null_ptid instead of
12458 inferior_ptid.
12459 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12460 TARGET_WAITKIND_SIGNALLED with no pid.
12461
31ba933e
PA
124622020-01-10 Pedro Alves <palves@redhat.com>
12463
12464 * remote.c (first_remote_resumed_thread): New.
12465 (remote_target::wait_as): Use it as default event_ptid instead of
12466 inferior_ptid.
12467
735fc2ca
PA
124682020-01-10 Pedro Alves <palves@redhat.com>
12469
12470 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12471
c17e02e1
PA
124722020-01-10 Pedro Alves <palves@redhat.com>
12473
12474 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12475 not -1.
12476
ab1ddbcf
PA
124772020-01-10 Pedro Alves <palves@redhat.com>
12478
12479 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12480 ptid to get_last_target_status.
12481 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12482 ptid to get_last_target_status.
12483 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12484 get_last_target_status.
12485 (info_program_command): Don't pass a target_waitstatus to
12486 get_last_target_status.
12487 * infrun.c (init_wait_for_inferior): Use
12488 nullify_last_target_wait_ptid.
12489 (get_last_target_status): Handle nullptr arguments.
12490 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12491 (print_stop_event): Don't pass a ptid to get_last_target_status.
12492 (normal_stop): Don't pass a ptid to get_last_target_status.
12493 * infrun.h (get_last_target_status, set_last_target_status): Move
12494 comments here and update.
12495 (nullify_last_target_wait_ptid): Declare.
12496 * linux-fork.c (fork_load_infrun_state): Remove local extern
12497 declaration of nullify_last_target_wait_ptid.
12498 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12499 to get_last_target_status.
12500
f3f8ece4
PA
125012020-01-10 Pedro Alves <palves@redhat.com>
12502
12503 * gdbthread.h (scoped_restore_current_thread)
12504 <dont_restore, restore, m_dont_restore>: Declare.
12505 * thread.c (thread_alive): Add assertion. Return bool.
12506 (switch_to_thread_if_alive): New.
12507 (prune_threads): Switch inferior/thread.
12508 (print_thread_info_1): Switch thread before calling target methods.
12509 (scoped_restore_current_thread::restore): New, factored out from
12510 ...
12511 (scoped_restore_current_thread::~scoped_restore_current_thread):
12512 ... this.
12513 (scoped_restore_current_thread::scoped_restore_current_thread):
12514 Add assertion.
12515 (thread_apply_all_command, thread_select): Use
12516 switch_to_thread_if_alive.
12517 * infrun.c (proceed, restart_threads, handle_signal_stop)
12518 (switch_back_to_stepped_thread): Switch current thread before
12519 calling target methods.
12520
db2d40f7
PA
125212020-01-10 Pedro Alves <palves@redhat.com>
12522
12523 * inferior.c (switch_to_inferior_no_thread): New function,
12524 factored out from ...
12525 (inferior_command): ... here.
12526 * inferior.h (switch_to_inferior_no_thread): Declare.
12527 * mi/mi-main.c (run_one_inferior): Use
12528 switch_to_inferior_no_thread.
12529
bd420a2d
PA
125302020-01-10 Pedro Alves <palves@redhat.com>
12531
12532 * infcmd.c (kill_command): Remove dead code.
12533
ddf5db90
PA
125342020-01-10 Pedro Alves <palves@redhat.com>
12535
12536 * remote.c (remote_target::mourn_inferior): No longer check
12537 whether the target is running.
12538
5018ce90
PA
125392020-01-10 Pedro Alves <palves@redhat.com>
12540
12541 * corelow.c (core_target::has_execution): Change parameter type to
12542 inferior pointer.
12543 * inferior.c (number_of_live_inferiors): Use
12544 inferior::has_execution instead of target_has_execution_1.
12545 * inferior.h (inferior::has_execution): New.
12546 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12547 inferior::has_execution instead of target_has_execution_1.
12548 * process-stratum-target.c
12549 (process_stratum_target::has_execution): Change parameter type to
12550 inferior pointer. Check the inferior's PID instead of
12551 inferior_ptid.
12552 * process-stratum-target.h
12553 (process_stratum_target::has_execution): Change parameter type to
12554 inferior pointer.
12555 * record-full.c (record_full_core_target::has_execution): Change
12556 parameter type to inferior pointer.
12557 * target.c (target_has_execution_1): Change parameter type to
12558 inferior pointer.
12559 (target_has_execution_current): Adjust.
12560 * target.h (target_ops::has_execution): Change parameter type to
12561 inferior pointer.
12562 (target_has_execution_1): Change parameter type to inferior
12563 pointer. Change return type to bool.
12564 * tracefile.h (tracefile_target::has_execution): Change parameter
12565 type to inferior pointer.
12566
74375d18
PA
125672020-01-10 Pedro Alves <palves@redhat.com>
12568
12569 * exceptions.c (print_flush): Remove current_top_target() check.
12570
acdf84a6
PA
125712020-01-10 Pedro Alves <palves@redhat.com>
12572
12573 * remote.c (show_remote_exec_file): Show the current inferior's
12574 exec-file instead of the command variable's value.
12575
ec506636
PA
125762020-01-10 Pedro Alves <palves@redhat.com>
12577
12578 * record-full.c (record_full_resume_ptid): New global.
12579 (record_full_target::resume): Set it.
12580 (record_full_wait_1): Use record_full_resume_ptid instead of
12581 inferior_ptid.
12582
873657b9
PA
125832020-01-10 Pedro Alves <palves@redhat.com>
12584
12585 * gdbthread.h (scoped_restore_current_thread)
12586 <dont_restore, restore, m_dont_restore>: Declare.
12587 * thread.c (thread_alive): Add assertion. Return bool.
12588 (switch_to_thread_if_alive): New.
12589 (prune_threads): Switch inferior/thread.
12590 (print_thread_info_1): Switch thread before calling target methods.
12591 (scoped_restore_current_thread::restore): New, factored out from
12592 ...
12593 (scoped_restore_current_thread::~scoped_restore_current_thread):
12594 ... this.
12595 (scoped_restore_current_thread::scoped_restore_current_thread):
12596 Add assertion.
12597 (thread_apply_all_command, thread_select): Use
12598 switch_to_thread_if_alive.
12599
7f0ae84c
GB
126002020-01-10 George Barrett <bob@bob131.so>
12601
12602 * stap-probe.c (stap_modify_semaphore): Don't check for null
12603 semaphores.
12604 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12605 for null semaphores.
12606
f5a7c406
AB
126072020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12608
12609 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12610 all source windows, and maintain horizontal scroll status while
12611 doing so.
12612
9ae6bf64
TT
126132020-01-09 Tom Tromey <tom@tromey.com>
12614
12615 PR tui/18932:
12616 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12617 update_source_window, not print_source_lines.
12618
b2efe70c
AB
126192020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12620
12621 * tui/tui.c (tui_enable): Register tui hooks after calling
12622 tui_display_main.
12623
5f23a082
CB
126242020-01-09 Christian Biesinger <cbiesinger@google.com>
12625
12626 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12627
3061113b
SM
126282020-01-08 Simon Marchi <simon.marchi@efficios.com>
12629
12630 * thread.c (print_thread_info_1): Fix indentation.
12631
57d75002
CB
126322020-01-09 Christian Biesinger <cbiesinger@google.com>
12633
12634 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12635 unique_xmalloc_ptr outside the if to always free the demangled name.
12636
6a053cb1
TT
126372020-01-08 Tom Tromey <tromey@adacore.com>
12638
12639 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12640 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12641 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12642 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12643 Remove.
12644 (section_offsets): New typedef.
12645 * symtab.c (fixup_section, get_msymbol_address): Update.
12646 * symmisc.c (dump_msymbols): Update.
12647 * symfile.h (relative_addr_info_to_section_offsets)
12648 (symfile_map_offsets_to_segments): Update.
12649 * symfile.c (build_section_addr_info_from_objfile)
12650 (init_objfile_sect_indices): Update.
12651 (struct place_section_arg): Change type of "offsets".
12652 (place_section): Update.
12653 (relative_addr_info_to_section_offsets): Change type of
12654 "section_offsets". Remove "num_sections" parameter.
12655 (default_symfile_offsets, syms_from_objfile_1)
12656 (set_objfile_default_section_offset): Update.
12657 (reread_symbols): No need to preserve section offsets by hand.
12658 (symfile_map_offsets_to_segments): Change type of "offsets".
12659 * stap-probe.c (relocate_address): Update.
12660 * stabsread.h (process_one_symbol): Update.
12661 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12662 (solib_target_relocate_section_addresses): Update.
12663 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12664 Update.
12665 * solib-frv.c (frv_relocate_main_executable): Update.
12666 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12667 * solib-aix.c (solib_aix_get_section_offsets): Change return
12668 type.
12669 (solib_aix_solib_create_inferior_hook): Update.
12670 * remote.c (remote_target::get_offsets): Update.
12671 * psymtab.c (find_pc_sect_psymtab): Update.
12672 * psympriv.h (struct partial_symbol) <address, text_low,
12673 text_high>: Update.
12674 * objfiles.h (obj_section_offset): Update.
12675 (struct objfile) <section_offsets>: Change type.
12676 <num_sections>: Remove.
12677 (objfile_relocate): Update.
12678 * objfiles.c (entry_point_address_query): Update
12679 (relocate_one_symbol): Change type of "section_offsets".
12680 (objfile_relocate1, objfile_relocate1): Change type of
12681 "new_offsets".
12682 (objfile_rebase1): Update.
12683 * mipsread.c (mipscoff_symfile_read): Update.
12684 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12685 parameter.
12686 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12687 (parse_external, psymtab_to_symtab_1): Update.
12688 * machoread.c (macho_symfile_offsets): Update.
12689 * ia64-tdep.c (ia64_find_unwind_table): Update.
12690 * hppa-tdep.c (read_unwind_info): Update.
12691 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12692 * dwarf2read.c (create_addrmap_from_index)
12693 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12694 (process_psymtab_comp_unit_reader, add_partial_symbol)
12695 (add_partial_subprogram, process_full_comp_unit)
12696 (read_file_scope, read_func_scope, read_lexical_block_scope)
12697 (read_call_site_scope, dwarf2_rnglists_process)
12698 (dwarf2_ranges_process, dwarf2_ranges_read)
12699 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12700 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12701 Update.
12702 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12703 Update.
12704 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12705 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12706 (process_one_symbol): Change type of "section_offsets".
12707 * ctfread.c (get_objfile_text_range): Update.
12708 * coffread.c (coff_symtab_read, enter_linenos)
12709 (process_coff_symbol): Update.
12710 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12711 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12712
456e800a
TT
127132020-01-08 Tom Tromey <tromey@adacore.com>
12714
12715 * dwarf2read.c (parse_macro_definition): Use std::string.
12716 (parse_macro_definition): Likewise.
12717
6dfa2fc2
TT
127182020-01-08 Tom Tromey <tromey@adacore.com>
12719
12720 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12721 (ATTR_ALLOC_CHUNK): Remove.
12722
421d1616
TT
127232020-01-08 Tom Tromey <tromey@adacore.com>
12724
12725 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12726
43816ebc
TT
127272020-01-08 Tom Tromey <tromey@adacore.com>
12728
12729 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12730 (dwarf2_compute_name, open_dwo_file): Likewise.
12731 (process_enumeration_scope): Use std::vector.
12732 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12733 (partial_die_info::fixup, dwarf2_start_subfile)
12734 (guess_full_die_structure_name, dwarf2_name): Likewise.
12735 (determine_prefix): Update.
12736 (guess_full_die_structure_name): Make return type const.
12737 (partial_die_full_name): Return unique_xmalloc_ptr.
12738 (DW_FIELD_ALLOC_CHUNK): Remove.
12739
4212d509
TT
127402020-01-07 Tom Tromey <tromey@adacore.com>
12741
12742 PR build/24937:
12743 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12744
06a6207a
JT
127452020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12746
12747 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12748
153d79c4
AB
127492020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12750
12751 * stack.c (print_frame_info): Move disassemble_next_line code
12752 inside source_print block.
12753
66182876
EZ
127542020-01-06 Eli Zaretskii <eliz@gnu.org>
12755
12756 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12757 gdb/signals.h, as we are now using native signal symbols.
12758
cbfa8581
SV
127592020-01-06 Shahab Vahedi <shahab@synopsys.com>
12760
12761 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12762 overflow by an early check of content vs threshold.
aac66a4c 12763 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12764 Likewise.
12765
3f602821
EZ
127662020-01-06 Eli Zaretskii <eliz@gnu.org>
12767
12768 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12769
a08c904d
JT
127702020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12771
12772 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12773 export table if no section contains it's RVA.
12774
89a65580
EZ
127752020-01-06 Eli Zaretskii <eliz@gnu.org>
12776
12777 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12778
8b7fcda2
HD
127792020-01-06 Hannes Domani <ssbssa@yahoo.de>
12780
12781 * source.c (print_source_lines_base): Set last_line_listed.
12782
a61b4f69
SV
127832020-01-06 Shahab Vahedi <shahab@synopsys.com>
12784
12785 * tui/tui-disasm.c: Remove trailing spaces.
12786
559e7e50
EZ
127872020-01-06 Eli Zaretskii <eliz@gnu.org>
12788 Pedro Alves <palves@redhat.com>
12789
12790 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12791 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12792 (windows_gdb_signal_to_target): New function, uses the above
12793 enumeration to convert GDB internal signal codes to equivalent
12794 Windows codes.
12795 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12796 * windows-nat.c: Include "gdb_wait.h".
12797 (get_windows_debug_event): Extract the fatal exception from the
12798 exit status and convert to the equivalent Posix signal number.
12799 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12800 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12801 * gdbsupport/gdb_wait.c: New file, implements
12802 windows_status_to_termsig.
12803 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12804 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12805
f2302a34
AB
128062020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12807
12808 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12809 show_layout.
12810
6a5206eb
LM
128112020-01-05 Luis Machado <luis.machado@linaro.org>
12812
12813 * aarch64-linux-nat.c
12814 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12815 and bfd_mach_aarch64.
12816
6ec1d75e
PW
128172020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12818
12819 * ui-file.c (stdio_file::can_emit_style_escape)
12820 (tee_file::can_emit_style_escape): Ensure style is used also on
12821 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12822 to gdb_stdout.
12823 * main.c (set_gdb_data_directory): Use file style to output the
12824 warning that the given pathname is not a directory.
12825 * top.c (show_history_filename, gdb_safe_append_history)
12826 (show_gdb_datadir): Use file style.
12827
44f81a76
HD
128282020-01-03 Hannes Domani <ssbssa@yahoo.de>
12829
12830 * solib-target.c (struct lm_info_target):
12831 Change offsets to be a unique_xmalloc_ptr.
12832 (solib_target_relocate_section_addresses): Update.
12833
25057eb0
HD
128342020-01-03 Hannes Domani <ssbssa@yahoo.de>
12835
12836 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12837
6e2118f5
BE
128382020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12839
12840 * MAINTAINERS (Write After Approval): Add myself.
12841
8133c7dc
LM
128422020-01-02 Luis Machado <luis.machado@linaro.org>
12843
12844 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12845 Cell BE architecture.
12846 * target.h (struct target_ops) <thread_architecture>: Likewise.
12847
48189bec
HD
128482020-01-01 Hannes Domani <ssbssa@yahoo.de>
12849
12850 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12851
ead1063b
HD
128522020-01-01 Hannes Domani <ssbssa@yahoo.de>
12853
12854 * MAINTAINERS (Write After Approval): Add myself.
12855
e5d78223
JB
128562020-01-01 Joel Brobecker <brobecker@adacore.com>
12857
12858 * gdbarch.sh: Update copyright year range of generated files.
12859
b811d2c2
JB
128602020-01-01 Joel Brobecker <brobecker@adacore.com>
12861
12862 Update copyright year range in all GDB files.
12863
5f4def5c
JB
128642020-01-01 Joel Brobecker <brobecker@adacore.com>
12865
12866 * copyright.py: Convert to Python 3.
12867
51fd4002
JB
128682020-01-01 Joel Brobecker <brobecker@adacore.com>
12869
12870 * copyright.py: Adapt after move of gnulib directory from gdb
12871 directory to toplevel directory.
12872
5fb651f2
JB
128732020-01-01 Joel Brobecker <brobecker@adacore.com>
12874
12875 * copyright.py (main): Exit if run from the wrong directory.
12876
5dd8bf88
JB
128772020-01-01 Joel Brobecker <brobecker@adacore.com>
12878
12879 * top.c (print_gdb_version): Change copyright year to 2020.
12880
9f71dacb 128812020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12882
9f71dacb 12883 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12884
9f71dacb 12885For older changes see ChangeLog-2019.
c906108c
SS
12886\f
12887Local Variables:
12888mode: change-log
12889left-margin: 8
12890fill-column: 74
12891version-control: never
57da7796 12892coding: utf-8
c906108c 12893End: