gdb/jit: apply some simplifications and assertions
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8c1c720f
SM
12020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4 checks.
5 (jit_read_descriptor): Remove NULL check.
6 (jit_event_handler): Add an assertion.
7
0e74a041
SM
82020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
9
10 * jit.h (struct jit_objfile_data): Split into...
11 (struct jiter_objfile_data): ... this ...
12 (struct jited_objfile_data): ... and this.
13 * objfiles.h (struct objfile) <jit_data>: Remove.
14 <jiter_data, jited_data>: New fields.
15 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
16 (jiter_objfile_data::~jiter_objfile_data): ... this.
17 (get_jit_objfile_data): Rename to ...
18 (get_jiter_objfile_data): ... this.
19 (add_objfile_entry): Update.
20 (jit_read_descriptor): Use get_jiter_objfile_data.
21 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
22 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
23 (jit_inferior_exit_hook): Use objfile's jited_data field.
24
238b5c9f
SM
252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
26
27 * jit.h: Forward-declare `struct minimal_symbol`.
28 (struct jit_objfile_data): Migrate to here from jit.c; also add a
29 constructor, destructor, and an objfile* field.
30 * jit.c (jit_objfile_data): Remove.
31 (struct jit_objfile_data): Migrate from here to jit.h.
32 (jit_objfile_data::~jit_objfile_data): New destructor
33 implementation with code moved from free_objfile_data.
34 (free_objfile_data): Delete.
35 (get_jit_objfile_data): Update to use the jit_data field of objfile.
36 (jit_find_objf_with_entry_addr): Ditto.
37 (jit_inferior_exit_hook): Ditto.
38 (_initialize_jit): Remove the call to
39 register_objfile_data_with_cleanup.
40 * objfiles.h (struct objfile) <jit_data>: New field.
41
fe053b9e
TBA
422020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
43
44 * jit.h: Forward-declare `struct objfile`.
45 (jit_event_handler): Add a second parameter, the JITer objfile.
46 * jit.c (jit_read_descriptor): Change the signature to take the
47 JITer objfile as an argument instead of the jit_program_space_data.
48 (jit_inferior_init): Update the call to jit_read_descriptor.
49 (jit_event_handler): Use the new JITer objfile argument when calling
50 jit_read_descriptor.
51 * breakpoint.c (handle_jit_event): Update the call to
52 jit_event_handler to pass the JITer objfile.
53
4cec0c66
JB
542020-07-21 John Baldwin <jhb@FreeBSD.org>
55
56 * gdbarch.c: Regenerate.
57 * gdbarch.h: Regenerate.
58 * gdbarch.sh (handle_segmentation_fault): Remove method.
59 * infrun.c (handle_segmentation_fault): Remove.
60 (print_signal_received_reason): Remove call to
61 handle_segmentation_fault.
62
0e42f66a
JB
632020-07-21 John Baldwin <jhb@FreeBSD.org>
64
65 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
66 Rename to sparc64_linux_report_signal_info and add siggnal
67 argument.
68 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
69 instead of sparc64_linux_handle_segmentation_fault.
70
77bdfeb2
JB
712020-07-21 John Baldwin <jhb@FreeBSD.org>
72
73 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
74 i386_linux_report_signal_info instead of
75 i386_linux_handle_segmentation_fault.
76 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
77 to i386_linux_report_signal_info and add siggnal argument.
78 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
79 of i386_linux_handle_segmentation_fault.
80 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
81 to i386_linux_report_signal_info and add siggnal argument.
82
ad97bfc5
JB
832020-07-21 John Baldwin <jhb@FreeBSD.org>
84
85 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
86 hook if present.
87
272bb05c
JB
882020-07-21 John Baldwin <jhb@FreeBSD.org>
89
90 * gdbarch.c: Regenerate.
91 * gdbarch.h: Regenerate.
92 * gdbarch.sh (report_signal_info): New method.
93 * infrun.c (print_signal_received_reason): Invoke gdbarch
94 report_signal_info hook if present.
95
baf8791e
AB
962020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
97
98 * python/py-registers.c : Add 'unordered_map' include.
99 (gdbpy_new_reggroup): Renamed to...
100 (gdbpy_get_reggroup): ...this. Update to only create register
101 group descriptors when needed.
102 (gdbpy_reggroup_iter_next): Update.
103
f7306dac
AB
1042020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
105
106 * python/py-registers.c (gdbpy_register_object_data): New static
107 global.
108 (gdbpy_register_object_data_init): New function.
109 (gdbpy_new_register_descriptor): Renamed to...
110 (gdbpy_get_register_descriptor): ...this, and update to reuse
111 existing register descriptors where possible.
112 (gdbpy_register_descriptor_iter_next): Update.
113 (gdbpy_initialize_registers): Register new gdbarch data.
114
05c309a8
SM
1152020-07-21 Simon Marchi <simon.marchi@efficios.com>
116
117 * linux-nat.c (stopped_pids): Make static.
118
d1fd641e
SM
1192020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
120
121 PR ada/26235
122 * gdbtypes.c (ada_discrete_type_low_bound,
123 ada_discrete_type_high_bound): Handle undefined bounds.
124
1de14d77
KR
1252020-07-21 Kamil Rytarowski <n54@gmx.com>
126
127 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
128 declaration.
129 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
130 function.
131
ed810cc7
JB
1322020-07-20 John Baldwin <jhb@FreeBSD.org>
133
134 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
135 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
136 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
137 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
138 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
139 method.
140
ae5369e7
LC
1412020-07-20 Ludovic Courtès <ludo@gnu.org>
142
143 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
144 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
145 which are deprecated in Guile 3.0.
146 * configure.ac (try_guile_versions): Add "guile-3.0".
147 * configure (try_guile_versions): Regenerate.
148 * NEWS: Update entry.
149
68cf161c
LC
1502020-07-20 Ludovic Courtès <ludo@gnu.org>
151 Doug Evans <dje@google.com>
152
153 PR gdb/21104
154 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
155 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
156 USING_GUILE_BEFORE_2_2.
157 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
158 Change type to 'scm_t_port_type *'.
159 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
160 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
161 parameter and honor it. Update callers.
162 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
163 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
164 functions.
165 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
166 USING_GUILE_BEFORE_2_2.
167 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
168 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
169 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
170 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
171 and 'SCM_PORT_TYPE'.
172 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
173 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
174 (gdbscm_memory_port_read, gdbscm_memory_port_write)
175 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
176 [!USING_GUILE_BEFORE_2_2]: New functions.
177 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
178 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
179 'gdbscm_memory_port_read'.
180 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
181 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
182 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
183 function.
184 (ioscm_init_memory_port): Remove.
185 (ioscm_init_memory_port_stream): New function
186 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
187 function.
188 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
189 Return scm_from_uint (0).
190 (gdbscm_set_memory_port_read_buffer_size_x)
191 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
192 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
193 Return scm_from_uint (0).
194 (gdbscm_set_memory_port_write_buffer_size_x)
195 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
196 * configure.ac (try_guile_versions): Add "guile-2.2".
197 * configure: Regenerate.
198 * NEWS: Add entry.
199
aee91db3
TT
2002020-07-18 Tom Tromey <tom@tromey.com>
201
202 * linux-nat.c (linux_multi_process): Remove.
203 (linux_nat_target::supports_multi_process): Return true.
204
0e267416
AB
2052020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
206
207 * arch/riscv.c (riscv_tdesc_cache): Change map type.
208 (riscv_lookup_target_description): Return pointer out of
209 unique_ptr.
210 * target-descriptions.c (allocate_target_description): Add
211 comment.
212 (target_desc_deleter::operator()): Likewise.
213 * target-descriptions.h (struct target_desc_deleter): Moved to
214 gdbsupport/tdesc.h.
215 (target_desc_up): Likewise.
216
f80c8ec4
TT
2172020-07-17 Tom Tromey <tromey@adacore.com>
218
219 * linux-nat.c (linux_nat_target::supports_non_stop)
220 (linux_nat_target::always_non_stop_p): Use "true".
221 (linux_nat_target::supports_disable_randomization): Use "true" and
222 "false".
223
d0ce17d8
CT
2242020-07-16 Caroline Tice <cmtice@google.com>
225
226 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
227 (RNGLIST_HEADER_SIZE64): New constant definition.
228 (struct dwop_section_names): Add rnglists_dwo.
229 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
230 (struct loclist_header): Rename to 'loclists_rnglists_header'.
231 (struct dwo_sections): Add rnglists field.
232 (read_attribut_reprocess): Add tag parameter.
233 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
234 (cu_debug_rnglists_section): New function (decl & definition).
235 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
236 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
237 die whose range is being checked; get rnglist section from
238 cu_debug_rnglists_section, to get from either objfile or dwo file as
239 appropriate. Add cases for DW_RLE_base_addressx,
240 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
241 the base address to DW_RLE_offset_pairs (not to all ranges), moving
242 test inside if-condition and updating complaint message.
243 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
244 dwarf2_rnglists_process.
245 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
246 dwarf2_ranges_process.
247 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
248 need_ranges_base and update comment appropriately. Also pass die tag
249 to dwarf2_ranges_read.
250 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
251 need_ranges_base and update comment appropriately. Also pass die tag
252 to dwarf2_ranges_process.
253 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
254 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
255 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
256 need_ranges_base and update comment appropriately. Also pass die tag
257 to read_attribute_reprocess and dwarf2_ranges_read.
258 (read_loclist_header): Rename function to read_loclists_rnglists_header,
259 and update function comment appropriately.
260 (read_loclist_index): Call read_loclists_rnglists_header instead of
261 read_loclist_header.
262 (read_rnglist_index): New function.
263 (read_attribute_reprocess): Add tag parameter. Add code for
264 DW_FORM_rnglistx, passing tag to read_rnglist_index.
265 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
266
3dcc261c
AB
2672020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
268
269 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
270 being resolved.
271
ccb9eba6
AB
2722020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
273
274 * arch-utils.c (show_architecture): Update formatting of messages.
275
cf88be68
SM
2762020-07-12 Simon Marchi <simon.marchi@efficios.com>
277
278 * gdbtypes.h (struct type) <bounds>: Handle array and string
279 types.
280 * ada-lang.c (assign_aggregate): Use type::bounds on
281 array/string type.
282 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
283 * c-varobj.c (c_number_of_children): Likewise.
284 (c_describe_child): Likewise.
285 * eval.c (evaluate_subexp_for_sizeof): Likewise.
286 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
287 (f_type_print_base): Likewise.
288 * f-valprint.c (f77_array_offset_tbl): Likewise.
289 (f77_get_upperbound): Likewise.
290 (f77_print_array_1): Likewise.
291 * guile/scm-type.c (gdbscm_type_range): Likewise.
292 * m2-typeprint.c (m2_array): Likewise.
293 (m2_is_long_set_of_type): Likewise.
294 * m2-valprint.c (get_long_set_bounds): Likewise.
295 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
296 * python/py-type.c (typy_range): Likewise.
297 * rust-lang.c (rust_internal_print_type): Likewise.
298 * type-stack.c (type_stack::follow_types): Likewise.
299 * valarith.c (value_subscripted_rvalue): Likewise.
300 * valops.c (value_cast): Likewise.
301
509971ae
SM
3022020-07-12 Simon Marchi <simon.marchi@efficios.com>
303
304 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
305 callers to use the equivalent accessor methods.
306
107406b7
SM
3072020-07-12 Simon Marchi <simon.marchi@efficios.com>
308
309 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
310 (struct type) <bit_stride>: New method.
311 (TYPE_BIT_STRIDE): Remove.
312 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
313
bb789949
SM
3142020-07-12 Simon Marchi <simon.marchi@efficios.com>
315
316 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
317 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
318 callers to use the equivalent accessor methods instead.
319
39498edb
SM
3202020-07-12 Simon Marchi <simon.marchi@efficios.com>
321
322 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
323 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
324 callers to use the equivalent accessor methods instead.
325
3b606f38
SM
3262020-07-12 Simon Marchi <simon.marchi@efficios.com>
327
328 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
329 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
330 to use dynamic_prop::kind.
331
064d9cb9
SM
3322020-07-12 Simon Marchi <simon.marchi@efficios.com>
333
334 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
335 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
336 to get the bound property's kind and check against
337 PROP_UNDEFINED.
338
5537ddd0
SM
3392020-07-12 Simon Marchi <simon.marchi@efficios.com>
340
341 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
342 all callers to use type::range_bounds followed by
343 dynamic_prop::{low,high}.
344
8c2e4e06
SM
3452020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
346
347 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
348 const_val, set_const_val, baton, set_locexpr, set_loclist,
349 set_addr_offset, variant_parts, set_variant_parts,
350 original_type, set_original_type>: New methods.
351 <kind>: Rename to...
352 <m_kind>: ... this. Update all users to use the new methods
353 instead.
354 <data>: Rename to...
355 <m_data>: ... this. Update all users to use the new methods
356 instead.
357
7c6f2712
SM
3582020-07-12 Simon Marchi <simon.marchi@efficios.com>
359
360 * gdbtypes.c (get_discrete_bounds): Return failure if
361 the range type's bounds are not both defined and constant
362 values.
363 (get_array_bounds): Update comment. Remove undefined bound check.
364
599088e3
SM
3652020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
366
367 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
368 the type::bounds method directly.
369
c4dfcb36
SM
3702020-07-12 Simon Marchi <simon.marchi@efficios.com>
371
372 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
373 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
374 are used to set the range type's bounds to use set_bounds.
375
0a278aa7
PW
3762020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
377
378 * exec.c (_initialize_exec): Update exec-file-mismatch help.
379
cce20f10
PA
3802020-07-10 Pedro Alves <pedro@palves.net>
381
382 * gdbthread.h (inferior_ref): Define.
383 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
384 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
385 * thread.c
386 (scoped_restore_current_thread::restore):
387 Adjust to gdb::ref_ptr.
388 (scoped_restore_current_thread::~scoped_restore_current_thread):
389 Remove manual decref handling.
390 (scoped_restore_current_thread::scoped_restore_current_thread):
391 Adjust to use
392 inferior_ref::new_reference/thread_info_ref::new_reference.
393 Incref the thread before calling get_frame_id instead of after.
394 Let TARGET_CLOSE_ERROR propagate.
395
6d7aa592
PA
3962020-07-10 Pedro Alves <pedro@palves.net>
397
398 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
399 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
400 NOT_AVAILABLE_ERROR.
401 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
402 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
403
b3e3a4c1
SM
4042020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
405 Pedro Alves <pedro@palves.net>
406
407 PR gdb/26199
408 * infrun.c (threads_are_resumed_pending_p): Delete.
409 (do_target_wait): Remove threads_are_executing and
410 threads_are_resumed_pending_p checks from the inferior_matches
411 lambda. Update comments.
412
d6cc5d98
PA
4132020-07-10 Pedro Alves <pedro@palves.net>
414
415 PR gdb/26199
416 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
417 executing threads.
418
7d3badc6
PA
4192020-07-10 Pedro Alves <pedro@palves.net>
420
421 PR gdb/26199
422 * infrun.c (handle_no_resumed): Handle multiple targets.
423
42bd97a6
PA
4242020-07-10 Pedro Alves <pedro@palves.net>
425
426 PR gdb/26199
427 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
428 target_is_async_p.
429
43667cc6
PA
4302020-07-10 Pedro Alves <pedro@palves.net>
431
432 PR gdb/26199
433 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
434 threads, not all threads.
435
96118d11
PA
4362020-07-10 Pedro Alves <pedro@palves.net>
437
438 PR gdb/26199
439 * remote.c (remote_target::open_1): Pass remote target pointer as
440 data to create_async_event_handler.
441 (remote_async_inferior_event_handler): Mark async event handler
442 before returning if the remote target still has either pending
443 events or unacknowledged notifications.
444
54904d81
JB
4452020-07-10 John Baldwin <jhb@FreeBSD.org>
446
447 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
448 declaration.
449 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
450 function.
451
f37e5866
JB
4522020-07-09 John Baldwin <jhb@FreeBSD.org>
453
454 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
455 inferior_ptid.
456
fc238d4a
JB
4572020-07-09 John Baldwin <jhb@FreeBSD.org>
458
459 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
460 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
461 AT_FREEBSD_PS_STRINGS.
462
6e2469ff
HD
4632020-07-08 Hannes Domani <ssbssa@yahoo.de>
464
465 * auto-load.c (auto_load_objfile_script_1): Convert drive part
466 of debugfile path on Windows.
467
d1076c41
JB
4682020-07-08 John Baldwin <jhb@FreeBSD.org>
469
470 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
471 argument to 'data'.
472
15f3b077
TT
4732020-07-08 Tom Tromey <tromey@adacore.com>
474
475 * ada-lang.c (ada_exception_message_1): Use read_memory.
476
9fc501fd
AB
4772020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
478
479 PR python/22748
480 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
481 special handling for inline frames.
482 * findvar.c (value_of_register_lazy): Skip inline frames when
483 creating lazy register values.
484 * frame.c (frame_id_computed_p): Delete definition.
485 * frame.h (frame_id_computed_p): Delete declaration.
486
64cb3757
AB
4872020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
488
489 * NEWS: Mention additions to Python API.
490 * python/py-arch.c (archpy_register_groups): New function.
491 (arch_object_methods): Add 'register_groups' method.
492 * python/py-registers.c (reggroup_iterator_object): New struct.
493 (reggroup_object): New struct.
494 (gdbpy_new_reggroup): New function.
495 (gdbpy_reggroup_to_string): New function.
496 (gdbpy_reggroup_name): New function.
497 (gdbpy_reggroup_iter): New function.
498 (gdbpy_reggroup_iter_next): New function.
499 (gdbpy_new_reggroup_iterator): New function
500 (gdbpy_initialize_registers): Register new types.
501 (reggroup_iterator_object_type): Define new Python type.
502 (gdbpy_reggroup_getset): New static global.
503 (reggroup_object_type): Define new Python type.
504 * python/python-internal.h
505
0f767f94
AB
5062020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
507
508 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
509 * python/py-arch.c (archpy_registers): New function.
510 (arch_object_methods): Add 'registers' method.
511 * python/py-registers.c: New file.
512 * python/python-internal.h
513 (gdbpy_new_register_descriptor_iterator): Declare.
514 (gdbpy_initialize_registers): Declare.
515 * python/python.c (do_start_initialization): Call
516 gdbpy_initialize_registers.
517 * NEWS: Mention additions to the Python API.
518
87dbc774
AB
5192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
520
521 * NEWS: Mention new Python API method.
522 * python/py-unwind.c (pending_framepy_architecture): New function.
523 (pending_frame_object_methods): Add architecture method.
524
3bc98c0c
AB
5252020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
526
527 * gdbarch.c: Regenerate.
528 * gdbarch.h: Regenerate.
529 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
530 (gdbarch_data): Use internal_error for the case where
531 deprecated_set_gdbarch_data was originally needed.
532 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
533 and use passed in obstack.
534 (libunwind_frame_set_descr): Should no longer get back NULL from
535 gdbarch_data.
536 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
537 type.
538 * user-regs.c (user_regs_init): Update parameters, and use passed
539 in obstack.
540 (user_reg_add): Should no longer get back NULL from gdbarch_data.
541 (_initialize_user_regs): Register as a pre-init gdbarch data type.
542
d8cc8af6
TV
5432020-07-06 Tom de Vries <tdevries@suse.de>
544
545 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
546 End-Of-Sequence in lte_is_less_than.
547 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
548 "gdb: Don't reorder line table entries too much when sorting".
549
947f7597
TV
5502020-07-06 Tom de Vries <tdevries@suse.de>
551
552 PR tui/26205
553 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
554
1e7c1b22
TV
5552020-07-05 Tom de Vries <tdevries@suse.de>
556
557 PR build/26187
558 * inferior.h (struct infcall_suspend_state_deleter): If available, use
559 std::uncaught_exceptions instead of deprecated
560 std::uncaught_exception.
561
a36158ec
SM
5622020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
563
564 * macroexp.h (macro_stringify): Return
565 gdb::unique_xmalloc_ptr<char>.
566 * macroexp.c (macro_stringify): Likewise.
567 * macrotab.c (fixup_definition): Update.
568
14d960c8
SM
5692020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
570
571 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
572 (lex_one_token): Update.
573 * macroexp.c (struct macro_buffer) <release>: Return
574 gdb::unique_xmalloc_ptr<char>.
575 (macro_stringify): Update.
576 (macro_expand): Update.
577 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
578 * macroexp.h (macro_expand_next): Likewise.
579
211d5b1c
SM
5802020-07-02 Simon Marchi <simon.marchi@efficios.com>
581
582 * macroexp.h (macro_lookup_ftype): Remove.
583 (macro_expand, macro_expand_once, macro_expand_next): Remove
584 lookup function parameters, add scope parameter.
585 * macroexp.c (scan, substitute_args, expand, maybe_expand,
586 macro_expand, macro_expand_once, macro_expand_next): Likewise.
587 * macroscope.h (standard_macro_lookup): Change parameter type
588 to macro_scope.
589 * macroscope.c (standard_macro_lookup): Likewise.
590 * c-exp.y (lex_one_token): Update.
591 * macrocmd.c (macro_expand_command): Likewise.
592 (macro_expand_once_command): Likewise.
593
b1a35af2
SM
5942020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
595
596 * inf-loop.c (inferior_event_handler): Remove client_data param.
597 * inf-loop.h (inferior_event_handler): Likewise.
598 * infcmd.c (step_1): Adjust.
599 * infrun.c (proceed): Adjust.
600 (fetch_inferior_event): Remove client_data param.
601 (infrun_async_inferior_event_handler): Adjust.
602 * infrun.h (fetch_inferior_event): Remove `void *` param.
603 * linux-nat.c (handle_target_event): Adjust.
604 * record-btrace.c (record_btrace_handle_async_inferior_event):
605 Adjust.
606 * record-full.c (record_full_async_inferior_event_handler):
607 Adjust.
608 * remote.c (remote_async_inferior_event_handler): Adjust.
609
1cdf9e33
TT
6102020-07-01 Tom Tromey <tom@tromey.com>
611
612 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
613 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
614
32c1e210
TT
6152020-07-01 Tom Tromey <tom@tromey.com>
616
617 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
618 tui_gen_win_info.
619 (tui_win_info::make_window): Merge with
620 tui_gen_win_info::make_window.
621 (tui_win_info::make_visible): Move from tui_gen_win_info.
622 * tui/tui-win.c (tui_win_info::max_width): Move from
623 tui_gen_win_info.
624 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
625 type.
626 <window_factory>: Likewise.
627 * tui/tui-layout.c (tui_win_info::resize): Move from
628 tui_gen_win_info.
629 (make_standard_window): Change return type.
630 (get_locator_window, tui_get_window_by_name): Likewise.
631 (tui_layout_window::apply): Remove a cast.
632 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
633 (struct tui_win_info): Merge with tui_gen_win_info.
634 (struct tui_gen_win_info): Remove.
635
a30cb6da
TT
6362020-07-01 Tom Tromey <tom@tromey.com>
637
638 * tui/tui-stack.h (struct tui_locator_window): Derive from
639 tui_win_info.
640 <do_scroll_horizontal, do_scroll_vertical>: New methods.
641 <can_box>: New method.
642
1eb2161f
TT
6432020-07-01 Tom Tromey <tom@tromey.com>
644
645 * tui/tui-stack.h (struct tui_locator_window): Remove body.
646
7134f2eb
TT
6472020-07-01 Tom Tromey <tom@tromey.com>
648
649 * tui/tui-regs.c (tui_data_window::display_registers_from)
650 (tui_data_window::display_registers_from)
651 (tui_data_window::first_data_item_displayed)
652 (tui_data_window::delete_data_content_windows): Update.
653 (tui_data_window::refresh_window, tui_data_window::no_refresh):
654 Remove.
655 (tui_data_window::check_register_values): Update.
656 (tui_data_item_window::rerender): Add parameters. Update.
657 (tui_data_item_window::refresh_window): Remove.
658 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
659 virtual.
660 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
661 tui_gen_win_info.
662 <refresh_window, max_height, min_height>: Remove.
663 <rerender>: Add parameters.
664 <x, y, visible>: New members.
665 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
666 <m_item_width>: New member.
667
22b7b041
TT
6682020-07-01 Tom Tromey <tom@tromey.com>
669
670 * tui/tui-regs.c (tui_data_window::show_register_group)
671 (tui_data_window::check_register_values): Update.
672 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
673 from item_no.
674
c9753adb
TT
6752020-07-01 Tom Tromey <tom@tromey.com>
676
677 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
678 useless "if".
679
9ab26b4a
TT
6802020-07-01 Tom Tromey <tom@tromey.com>
681
682 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
683 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
684
e555083f
TT
6852020-07-01 Tom Tromey <tom@tromey.com>
686
687 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
688 * tui/tui-winsource.h (enum tui_line_or_address_kind)
689 (struct tui_line_or_address): Move from tui-data.h.
690 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
691 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
692 (tui_cmd_window, tui_source_window_base, tui_source_window)
693 (tui_disasm_window): Don't declare.
694 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
695 to tui-winsource.h.
696 (SINGLE_KEY): Move to tui-stack.c.
697
7a02bab7
TT
6982020-07-01 Tom Tromey <tom@tromey.com>
699
700 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
701 std::string.
702 * tui/tui-regs.c (class tab_expansion_file): New.
703 (tab_expansion_file::write): New method.
704 (tui_register_format): Change return type. Use
705 tab_expansion_file.
706 (tui_get_register, tui_data_window::display_registers_from)
707 (tui_data_item_window::rerender): Update.
708 * tui/tui-io.h (tui_expand_tabs): Don't declare.
709 * tui/tui-io.c (tui_expand_tabs): Remove.
710
ea68593b
TT
7112020-07-01 Tom Tromey <tom@tromey.com>
712
713 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
714
a8caed5d
FS
7152020-07-01 Fangrui Song <maskray@google.com>
716
717 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
718
9cdf9820
AKS
7192020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
720
721 * dwarf2/read.c (set_die_type): Removed conditions to restrict
722 forms for DW_AT_associated and DW_AT_allocated attributes,
723 which is already checked in function attr_to_dynamic_prop.
724
a1520ad8
TT
7252020-06-30 Tom Tromey <tromey@adacore.com>
726
727 * dwarf2/read.c (quirk_rust_enum): Correctly call
728 alloc_rust_variant for default-less enum.
729
5ac58899
TT
7302020-06-30 Tom Tromey <tromey@adacore.com>
731
732 PR build/26183:
733 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
734 gdb::to_string.
735
19b187a9
SM
7362020-06-29 Simon Marchi <simon.marchi@efficios.com>
737
738 * gdbarch.sh (displaced_step_copy_insn): Update doc.
739 * gdbarch.h: Re-generate.
740
cd4c4c07
TT
7412020-06-28 Tom Tromey <tom@tromey.com>
742
743 * command.h (cmd_types): Remove.
744 (cmd_type): Don't declare.
745 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
746 typedef.
747 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
748 * cli/cli-decode.c (cmd_type): Remove.
749
05779d57
PA
7502020-06-27 Pedro Alves <palves@redhat.com>
751
752 * fork-child.c (prefork_hook): Adjust.
753 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
754 Delete.
755 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
756 * inferior.c (inferior::set_tty, inferior::tty): New methods.
757 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
758 Remove declarations.
759 (struct inferior) <set_tty, tty>: New methods.
760 (struct inferior) <terminal>: Rename to ...
761 (struct inferior) <m_terminal>: ... this and make private.
762 * main.c (captured_main_1): Adjust.
763 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
764 (mi_cmd_inferior_tty_show): Adjust.
765 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
766 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
767
1776e3e5
NA
7682020-06-26 Nick Alcock <nick.alcock@oracle.com>
769
770 * configure.ac: Add --enable-libctf: handle --disable-static
771 properly.
772 * acinclude.m4: sinclude ../config/enable.m4.
773 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
774 (LIBCTF): Substitute in.
775 (CTF_DEPS): New, likewise.
776 (CLIBS): libctf needs symbols from libbfd: move earlier.
777 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
778 flags.
779 * ctfread.c: Surround in ENABLE_LIBCTF.
780 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
781 * configure: Regenerate.
782 * config.in: Likewise.
783
58373b80
SM
7842020-06-25 Simon Marchi <simon.marchi@efficios.com>
785
786 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
787
277474ee
SM
7882020-06-25 Simon Marchi <simon.marchi@efficios.com>
789
790 * inferior.h (struct inferior) <terminal>: Change type to
791 gdb::unique_xmalloc_ptr<char>.
792 * inferior.c (inferior::~inferior): Don't free inf->terminal.
793 * infcmd.c (set_inferior_io_terminal): Don't free terminal
794 field, adjust to unique pointer.
795 (get_inferior_io_terminal): Adjust to unique pointer.
796
6d74da72
AB
7972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
798
799 * riscv-tdep.c (riscv_print_registers_info): Loop over all
800 registers, not just the known core set of registers.
801
2e52d038
AB
8022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
803
804 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
805 fflags, frm, and fcsr registers.
806 (riscv_register_reggroup_p): Remove unknown CSRs from save and
807 restore groups.
808 (riscv_tdesc_unknown_reg): New function.
809 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
810 tdesc_use_registers.
811 * riscv-tdep.h (struct gdbarch_tdep): Add
812 unknown_csrs_first_regnum, unknown_csrs_count,
813 duplicate_fflags_regnum, duplicate_frm_regnum, and
814 duplicate_fcsr_regnum fields.
815
be64fd07
AB
8162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
817
818 * target-descriptions.c (tdesc_use_registers): Add new parameter a
819 callback, use the callback (when not null) to help number unknown
820 registers.
821 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
822 (tdesc_use_registers): Add extra parameter to declaration.
823
3b9fce96
AB
8242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
825
826 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
827 in the file.
828 (class riscv_pending_register_alias): Likewise.
829 (riscv_register_feature::register_info): Change 'required_p' field
830 to 'required', and change its type. Add 'check' member function.
831 (riscv_register_feature::register_info::check): Define new member
832 function.
833 (riscv_xreg_feature): Change initialisation of 'required' field.
834 (riscv_freg_feature): Likewise.
835 (riscv_virtual_feature): Likewise.
836 (riscv_csr_feature): Likewise.
837 (riscv_check_tdesc_feature): Take extra parameter, the csr
838 tdesc_feature, rewrite the function to use the new
839 riscv_register_feature::register_info::check function.
840 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
841
865bad26
AB
8422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
843
844 * features/Makefile: Remove all references to the deleted files
845 below.
846 * features/riscv/32bit-csr.c: Deleted.
847 * features/riscv/32bit-csr.xml: Deleted.
848 * features/riscv/64bit-csr.c: Deleted.
849 * features/riscv/64bit-csr.xml: Deleted.
850 * features/riscv/rebuild-csr-xml.sh: Deleted.
851
ed69cbc8
AB
8522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
853
854 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
855 whitespace error for declaration of names member variable.
856 (struct riscv_register_feature): Add new prefer_first_name member
857 variable, and fix whitespace error in declaration of registers.
858 (riscv_xreg_feature): Initialize prefer_first_name field.
859 (riscv_freg_feature): Likewise.
860 (riscv_virtual_feature): Likewise.
861 (riscv_csr_feature): Likewise.
862 (riscv_register_name): Expand on comments. Remove register name
863 modifications for CSR and virtual registers.
864
4445e8f5
AB
8652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
866
867 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
868 errors.
869
767a879e
AB
8702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
871
872 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
873 riscv-opc.h.
874 (class riscv_pending_register_alias): New class.
875 (riscv_check_tdesc_feature): Take vector of pending aliases and
876 populate it as appropriate.
877 (riscv_setup_register_aliases): Delete.
878 (riscv_gdbarch_init): Create vector of pending aliases and pass it
879 to riscv_check_tdesc_feature in all cases. Use the vector to
880 create the register aliases.
881
bb6e55f3
RO
8822020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
883
884 * sol2-tdep.c (sol2_static_transform_name): Remove.
885 (sol2_init_abi): Don't register it.
886 * gdbarch.sh (static_transform_name): Remove.
887 * gdbarch.c, gdbarch.h: Regenerate.
888
889 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
890 gdbarch_static_transform_name.
891 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
892 * stabsread.c (define_symbol) <'X'>: Remove.
893 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
894 handling.
895 <'V'>: Likewise.
896 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
897 <'S'>: Remove call to gdbarch_static_transform_name.
898
c6d36836
RO
8992020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
900
901 * procfs.c (procfs_pre_trace): New function.
902 (procfs_target::create_inferior): Pass it to fork_inferior.
903
a7e6196b
RO
9042020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
905
906 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
907 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
908 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
909 sol2-tdep.o, sparc-sol2-tdep.o.
910 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
911 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
912 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
913 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
914
d412e696
RO
9152020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
916
917 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
918 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
919 Call sol2_init_abi.
920 Remove calls to set_gdbarch_skip_solib_resolver,
921 set_gdbarch_core_pid_to_str.
922 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
923 (i386_sol2_static_transform_name): Remove.
924 (i386_sol2_init_abi): Call sol2_init_abi.
925 Remove calls to set_gdbarch_sofun_address_maybe_missing,
926 set_gdbarch_static_transform_name,
927 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
928 Use sol2_sigtramp_p.
929 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
930 (sol2_sigtramp_p): New function.
931 (sol2_static_transform_name): New function.
932 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
933 (sol2_init_abi): New function.
934 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
935 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
936 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
937 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
938 (sparc_sol2_static_transform_name): Remove.
939 (sparc32_sol2_init_abi): Call sol2_init_abi.
940 Remove calls to set_gdbarch_sofun_address_maybe_missing,
941 set_gdbarch_static_transform_name,
942 set_gdbarch_skip_solib_resolver,
943 set_gdbarch_core_pid_to_str.
944 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
945 (sparc_sol2_static_transform_name): Remove
946 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
947 call sol2_sigtramp_p.
948 (sparc64_sol2_init_abi): Call sol2_init_abi.
949 Remove calls to set_gdbarch_sofun_address_maybe_missing,
950 set_gdbarch_static_transform_name,
951 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
952
a8654e7d
PW
9532020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
954
955 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
956 * exec.c (validate_exec_file): If from_tty, set both
957 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
958 * symfile.c (symbol_file_add_with_addrs): if always_confirm
959 and from_tty, unconditionally ask a confirmation.
960
caa7fd04
AB
9612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
962
963 * target-descriptions.c (tdesc_architecture_name): Protect against
964 NULL pointer dereference.
965 (maint_print_xml_tdesc_cmd): New function.
966 (_initialize_target_descriptions): Register new 'maint print
967 xml-tdesc' command and give it the filename completer.
968 * NEWS: Mention new 'maint print xml-tdesc' command.
969
fbf42f4e
AB
9702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
971
972 * target-descriptions.c (class tdesc_compatible_info): New class.
973 (struct target_desc): Change type of compatible vector.
974 (tdesc_compatible_p): Update for change in type of
975 target_desc::compatible.
976 (tdesc_compatible_info_list): New function.
977 (tdesc_compatible_info_arch_name): New function.
978 (tdesc_add_compatible): Update for change in type of
979 target_desc::compatible.
980 (print_c_tdesc::visit_pre): Likewise.
981
20821f4e
AB
9822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
983
984 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
985 whitespace to underscore.
986 (maint_print_c_tdesc_cmd): Use fake filename for target
987 descriptions that came from the target.
988 (_initialize_target_descriptions): Add filename command completion
989 for 'maint print c-tdesc'.
990
1fb5ee62
SM
9912020-06-23 Simon Marchi <simon.marchi@efficios.com>
992
993 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
994 lines.
995
fc3ecb3e
SM
9962020-06-23 Simon Marchi <simon.marchi@efficios.com>
997
998 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
999 lines.
1000 (dwarf2_find_location_expression): Likewise.
1001 (call_site_parameter_matches): Likewise.
1002 (dwarf2_compile_expr_to_ax): Likewise.
1003 (disassemble_dwarf_expression): Likewise.
1004 (loclist_describe_location): Likewise.
1005
236ef034
PA
10062020-06-23 Pedro Alves <palves@redhat.com>
1007
1008 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1009 progspace-and-thread.h. Include scoped-mock-context.h instead.
1010 (register_to_value_test): Use scoped_mock_context.
1011 * regcache.c: Include "scoped-mock-context.h".
1012 (cooked_read_test): Don't error out if a target is already pushed.
1013 Use scoped_mock_context. Adjust.
1014 * scoped-mock-context.h: New file.
1015
39e7ecca
AB
10162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1017
1018 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1019 initializer.
1020 (ada_language::is_string_type_p): New member function.
1021 * c-lang.c (c_language_data): Delete la_is_string_type_p
1022 initializer.
1023 (cplus_language_data): Likewise.
1024 (asm_language_data): Likewise.
1025 (minimal_language_data): Likewise.
1026 * d-lang.c (d_language_data): Likewise.
1027 * f-lang.c (f_is_string_type_p): Delete function, implementation
1028 moved to f_language::is_string_type_p.
1029 (f_language_data): Delete la_is_string_type_p initializer.
1030 (f_language::is_string_type_p): New member function,
1031 implementation from f_is_string_type_p.
1032 * go-lang.c (go_is_string_type_p): Delete function, implementation
1033 moved to go_language::is_string_type_p.
1034 (go_language_data): Delete la_is_string_type_p initializer.
1035 (go_language::is_string_type_p): New member function,
1036 implementation from go_is_string_type_p.
1037 * language.c (language_defn::is_string_type_p): Define new member
1038 function.
1039 (default_is_string_type_p): Make static, add comment copied from
1040 header file.
1041 (unknown_language_data): Delete la_is_string_type_p initializer.
1042 (unknown_language::is_string_type_p): New member function.
1043 (auto_language_data): Delete la_is_string_type_p initializer.
1044 (auto_language::is_string_type_p): New member function.
1045 * language.h (language_data): Delete la_is_string_type_p field.
1046 (language_defn::is_string_type_p): Declare new function.
1047 (default_is_string_type_p): Delete desclaration, move comment to
1048 definition.
1049 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1050 moved to m2_language::is_string_type_p.
1051 (m2_language_data): Delete la_is_string_type_p initializer.
1052 (m2_language::is_string_type_p): New member function,
1053 implementation from m2_is_string_type_p.
1054 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1055 initializer.
1056 * opencl-lang.c (opencl_language_data): Likewise.
1057 * p-lang.c (pascal_is_string_type_p): Delete function,
1058 implementation moved to pascal_language::is_string_type_p.
1059 (pascal_language_data): Delete la_is_string_type_p initializer.
1060 (pascal_language::is_string_type_p): New member function,
1061 implementation from pascal_is_string_type_p.
1062 * rust-lang.c (rust_is_string_type_p): Delete function,
1063 implementation moved to rust_language::is_string_type_p.
1064 (rust_language_data): Delete la_is_string_type_p initializer.
1065 (rust_language::is_string_type_p): New member function,
1066 implementation from rust_is_string_type_p.
1067 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1068 is_string_type_p.
1069
4ffc13fb
AB
10702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1071
1072 * ada-lang.c (ada_language_data): Delete la_print_typedef
1073 initializer.
1074 (ada_language::print_typedef): New member function.
1075 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1076 (cplus_language_data): Likewise.
1077 (asm_language_data): Likewise.
1078 (minimal_language_data): Likewise.
1079 * d-lang.c (d_language_data): Likewise.
1080 * f-lang.c (f_language_data): Likewise.
1081 (f_language::print_typedef): New member function.
1082 * go-lang.c (go_language_data): Delete la_print_typedef
1083 initializer.
1084 * language.c (language_defn::print_typedef): Define member
1085 function.
1086 (unknown_language_data): Delete la_print_typedef initializer.
1087 (unknown_language::print_typedef): New member function.
1088 (auto_language_data): Delete la_print_typedef initializer.
1089 (auto_language::print_typedef): New member function.
1090 * language.h (language_data): Delete la_print_typedef field.
1091 (language_defn::print_typedef): Declare new member function.
1092 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1093 (default_print_typedef): Delete declaration.
1094 * m2-lang.c (m2_language_data): Delete la_print_typedef
1095 initializer.
1096 (m2_language::print_typedef): New member function.
1097 * objc-lang.c (objc_language_data): Delete la_print_typedef
1098 initializer.
1099 * opencl-lang.c (opencl_language_data): Likewise.
1100 * p-lang.c (pascal_language_data): Likewise.
1101 (pascal_language::print_typedef): New member function.
1102 * rust-lang.c (rust_print_typedef): Delete function,
1103 implementation moved to rust_language::print_typedef.
1104 (rust_language): Delete la_print_typedef initializer.
1105 (rust_language::print_typedef): New member function,
1106 implementation from rust_print_typedef.
1107 * typeprint.c (default_print_typedef): Delete.
1108
d711ee67
AB
11092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1110
1111 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1112 (ada_language::printstr): New member function.
1113 * c-lang.c (c_language_data): Delete la_printstr initializer.
1114 (cplus_language_data): Likewise.
1115 (asm_language_data): Likewise.
1116 (minimal_language_data): Likewise.
1117 * d-lang.c (d_language_data): Likewise.
1118 * f-lang.c (f_printstr): Rename to f_language::printstr.
1119 (f_language_data): Delete la_printstr initializer.
1120 (f_language::printstr): New member function, implementation from
1121 f_printstr.
1122 * go-lang.c (go_language_data): Delete la_printstr initializer.
1123 * language.c (language_defn::printstr): Define new member
1124 function.
1125 (unk_lang_printstr): Delete.
1126 (unknown_language_data): Delete la_printstr initializer.
1127 (unknown_language::printstr): New member function.
1128 (auto_language_data): Delete la_printstr initializer.
1129 (auto_language::printstr): New member function.
1130 * language.h (language_data): Delete la_printstr field.
1131 (language_defn::printstr): Declare new member function.
1132 (LA_PRINT_STRING): Update call to printstr.
1133 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1134 (m2_language_data): Delete la_printstr initializer.
1135 (m2_language::printstr): New member function, implementation from
1136 m2_printstr.
1137 * objc-lang.c (objc_language_data): Delete la_printstr
1138 initializer.
1139 * opencl-lang.c (opencl_language_data): Likewise.
1140 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1141 (pascal_language_data): Delete la_printstr initializer.
1142 (pascal_language::printstr): New member function, implementation
1143 from pascal_printstr.
1144 * p-lang.h (pascal_printstr): Delete declaration.
1145 * rust-lang.c (rust_printstr): Update header comment.
1146 (rust_language_data): Delete la_printstr initializer.
1147 (rust_language::printstr): New member function.
1148
52b50f2c
AB
11492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1150
1151 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1152 (ada_language::printchar): New member function.
1153 * c-lang.c (c_language_data): Delete la_printchar initializer.
1154 (cplus_language_data): Likewise.
1155 (asm_language_data): Likewise.
1156 (minimal_language_data): Likewise.
1157 * d-lang.c (d_language_data): Likewise.
1158 * f-lang.c (f_printchar): Rename to f_language::printchar.
1159 (f_language_data): Delete la_printchar initializer.
1160 (f_language::printchar): New member function, implementation from
1161 f_printchar.
1162 * go-lang.c (go_language_data): Delete la_printchar initializer.
1163 * language.c (unk_lang_printchar): Delete.
1164 (language_defn::printchar): Define new member function.
1165 (unknown_language_data): Delete la_printchar initializer.
1166 (unknown_language::printchar): New member function.
1167 (auto_language_data): Delete la_printchar initializer.
1168 (auto_language::printchar): New member function.
1169 * language.h (language_data): Delete la_printchar field.
1170 (language_defn::printchar): Declare new member function.
1171 (LA_PRINT_CHAR): Update call to printchar.
1172 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1173 (m2_language::printchar): New member function.
1174 * objc-lang.c (objc_language_data): Delete la_printchar
1175 initializer.
1176 * opencl-lang.c (opencl_language_data): Likewise.
1177 * p-lang.c (pascal_language_data): Delete la_printchar
1178 initializer.
1179 (pascal_language::printchar): New member function.
1180 * rust-lang.c (rust_printchar): Rename to
1181 rust_language::printchar.
1182 (rust_language_data): Delete la_printchar initializer.
1183 (rust_language::printchar): New member function, implementation
1184 from rust_printchar.
1185
ec8cec5b
AB
11862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1187
1188 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1189 (ada_language_data): Delete la_emitchar initializer.
1190 (ada_language::emitchar): New member function, implementation from
1191 emit_char.
1192 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1193 (cplus_language_data): Likewise.
1194 (asm_language_data): Likewise.
1195 (minimal_language_data): Likewise.
1196 * d-lang.c (d_language_data): Likewise.
1197 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1198 (f_language_data): Delete la_emitchar initializer.
1199 (f_language::emitchar): New member function, implementation from
1200 f_emit_char.
1201 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1202 * language.c (unk_lang_emit_char): Delete.
1203 (language_defn::emitchar): New member function definition.
1204 (unknown_language_data): Delete la_emitchar initializer.
1205 (unknown_language::emitchar): New member function.
1206 (auto_language_data): Delete la_emitchar initializer.
1207 (auto_language::emitchar): New member function.
1208 * language.h (language_data): Delete la_emitchar field.
1209 (language_defn::emitchar): New member field declaration.
1210 (LA_EMIT_CHAR): Update call to emitchar.
1211 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1212 (m2_language_data): Delete la_emitchar initializer.
1213 (m2_language::emitchar): New member function, implementation from
1214 m2_emit_char.
1215 * objc-lang.c (objc_language_data): Delete la_emitchar
1216 initializer.
1217 * opencl-lang.c (opencl_language_data): Likewise.
1218 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1219 (pascal_language_data): Delete la_emitchar initializer.
1220 (pascal_language::emitchar): New member function, implementation
1221 from pascal_emit_char.
1222 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1223 (rust_language_data): Delete la_emitchar initializer.
1224 (rust_language::emitchar): New member function, implementation
1225 from rust_emitchar.
1226
1bf9c363
AB
12272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1228
1229 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1230 (ada_language_data): Delete la_post_parser initializer.
1231 (ada_language::post_parser): New member function.
1232 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1233 (cplus_language_data): Likewise.
1234 (asm_language_data): Likewise.
1235 (minimal_language_data): Likewise.
1236 * d-lang.c (d_language_data): Likewise.
1237 * f-lang.c (f_language_data): Likewise.
1238 * go-lang.c (go_language_data): Likewise.
1239 * language.c (unknown_language_data): Likewise.
1240 (auto_language_data): Likewise.
1241 * language.h (language_data): Delete la_post_parser field.
1242 (language_defn::post_parser): New member function.
1243 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1244 * objc-lang.c (objc_language_data): Likewise.
1245 * opencl-lang.c (opencl_language_data): Likewise.
1246 * p-lang.c (pascal_language_data): Likewise.
1247 * parse.c (parse_exp_in_context): Update call to post_parser.
1248 (null_post_parser): Delete definition.
1249 * parser-defs.h (null_post_parser): Delete declaration.
1250 * rust-lang.c (rust_language_data): Delete la_post_parser
1251 initializer.
1252
87afa652
AB
12532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1254
1255 * ada-lang.c (parse): Rename to ada_language::parser.
1256 (ada_language_data): Delete la_parser initializer.
1257 (ada_language::parser): New member function, implementation from
1258 parse.
1259 * c-lang.c (c_language_data): Delete la_parser initializer.
1260 (cplus_language_data): Likewise.
1261 (asm_language_data): Likewise.
1262 (minimal_language_data): Likewise.
1263 * d-lang.c (d_language_data): Likewise.
1264 (d_language::parser): New member function.
1265 * f-lang.c (f_language_data): Delete la_parser initializer.
1266 (f_language::parser): New member function.
1267 * go-lang.c (go_language_data): Delete la_parser initializer.
1268 (go_language::parser): New member function.
1269 * language.c (unk_lang_parser): Delete.
1270 (language_defn::parser): Define new member function.
1271 (unknown_language_data): Delete la_parser initializer.
1272 (unknown_language::parser): New member function.
1273 (auto_language_data): Delete la_parser initializer.
1274 (auto_language::parser): New member function.
1275 * language.h (language_data): Delete la_parser field.
1276 (language_defn::parser): Declare new member function.
1277 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1278 (m2_language::parser): New member function.
1279 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1280 * opencl-lang.c (opencl_language_data): Likewise.
1281 * p-lang.c (pascal_language_data): Likewise.
1282 (pascal_language::parser): New member function.
1283 * parse.c (parse_exp_in_context): Update call to parser.
1284 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1285 (rust_language::parser): New member function.
1286
37825800
AB
12872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1288
1289 * top.c (print_gdb_configuration): Print --with-python-libdir
1290 configuration value.
1291
5b860c93
PW
12922020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1293
1294 * NEWS: Mention change to the alias command.
1295
cf00cd6f
PW
12962020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1297
1298 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1299 (alias_command_completer)
1300 (make_alias_options_def_group): New functions.
1301 (alias_opts, alias_option_defs): New struct and array.
1302 (alias_usage_error): Update usage.
1303 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1304 Use option framework.
1305 (_initialize_cli_cmds): Update alias command help.
1306 Update aliases command help.
1307 (show_user):
1308 Add NULL for new default_args lookup_cmd argument.
1309 (valid_command_p): Rename to validate_aliased_command.
1310 Add NULL for new default_args lookup_cmd argument. Verify that the
1311 aliased_command has no default args.
1312 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1313 (lookup_cmd_1, lookup_cmd): New argument default_args.
1314 (add_alias_cmd):
1315 Add NULL for new default_args lookup_cmd argument.
1316 (print_help_for_command): Show default args under the layout
1317 alias some_alias = some_aliased_cmd some_alias_default_arg.
1318 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1319 xfree default_args in destructor.
1320 * cli/cli-script.c (process_next_line, do_define_command):
1321 Add NULL for new default_args lookup_cmd argument.
1322 * command.h: Declare new default_args argument in lookup_cmd
1323 and lookup_cmd_1.
1324 * completer.c (complete_line_internal_1):
1325 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1326 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1327 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1328 Likewise.
1329 * infcmd.c (_initialize_infcmd): Likewise.
1330 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1331 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1332 * python/py-param.c (add_setshow_generic): Likewise.
1333 * remote.c (_initialize_remote): Likewise.
1334 * top.c (execute_command): Prepend default_args if command has some.
1335 (set_verbose):
1336 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1337 * tracepoint.c (validate_actionline, encode_actions_1):
1338 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1339
bd920864
TBA
13402020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1341
1342 * jit.c (jit_read_descriptor): Use bool as the return type.
1343 (jit_breakpoint_re_set_internal): Use bool as the return type.
1344 Invert the return value logic; return true if the jit breakpoint
1345 has been successfully initialized.
1346 (jit_inferior_init): Update the call to
1347 jit_breakpoint_re_set_internal.
1348
f8098322
PA
13492020-06-22 Pedro Alves <palves@redhat.com>
1350
1351 PR gdb/25939
1352 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1353 Use the current inferior instead. Don't return
1354 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1355 wait again.
1356 * sol-thread.c (sol_thread_target::wait): Don't reference
1357 inferior_ptid.
1358 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1359 (sol_update_thread_list_callback): Use the current inferior's pid
1360 instead of inferior_ptid.
1361
196535a6
RO
13622020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1363
1364 * procfs.c: Cleanup many comments.
1365
1366 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1367 (AFTER_WATCHFLAG): Replace by value.
1368
1369 (MAIN_PROC_NAME_FORMAT): Inline ...
1370 (create_procinfo): ... here.
1371
1372 (procfs_debug_inferior): Remove SYS_exec handling.
1373 (syscall_is_exec): Likewise.
1374 (procfs_set_exec_trap): Likewise.
1375
1376 (syscall_is_lwp_exit): Inline in callers.
1377 (syscall_is_exit): Likewise.
1378 (syscall_is_exec): Likewise.
1379 (syscall_is_lwp_create): Likewise.
1380
1381 (invalidate_cache): Remove #if 0 code.
1382
1383 (make_signal_thread_runnable): Remove.
1384 (procfs_target::resume): Remove #if 0 code.
1385
cf6f3e86
RO
13862020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1387
1388 PR gdb/25939
1389 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1390 call ...
1391 (procfs_target::create_inferior): ... here.
1392
48e9cc84
PW
13932020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1394
1395 * exec.c (validate_exec_file): Ensure the build-id is up to
1396 date by calling reopen_exec_file (that checks file timestamp
1397 to decide to re-read the file).
1398
3922b302
PA
13992020-06-18 Pedro Alves <palves@redhat.com>
1400
1401 PR gdb/25412
1402 * gdbthread.h (delete_thread, delete_thread_silent)
1403 (find_thread_ptid): Update comments.
1404 * thread.c (current_thread_): New global.
1405 (is_current_thread): Move higher, and reimplement.
1406 (inferior_thread): Reimplement.
1407 (set_thread_exited): Use bool. Add assertions.
1408 (add_thread_silent): Simplify thread-reuse handling by always
1409 calling delete_thread.
1410 (delete_thread): Remove intro comment.
1411 (find_thread_ptid): Skip exited threads.
1412 (switch_to_thread_no_regs): Write to current_thread_.
1413 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1414 INFERIOR_PTID. Clear current_thread_.
1415
6dbdab44
PA
14162020-06-18 Pedro Alves <palves@redhat.com>
1417
1418 * aix-thread.c (pd_update): Use switch_to_thread.
1419
2da4b788
PA
14202020-06-18 Pedro Alves <palves@redhat.com>
1421
1422 * ravenscar-thread.c (ravenscar_thread_target): Update.
1423 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1424 (ravenscar_thread_target::add_active_thread): ... this. Don't
1425 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1426 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1427
50838d1b
PA
14282020-06-18 Pedro Alves <palves@redhat.com>
1429
1430 * nat/windows-nat.c (current_windows_thread): Remove.
1431 * nat/windows-nat.h (current_windows_thread): Remove.
1432 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1433 Adjust.
1434 (display_selectors): Adjust to fetch the current
1435 windows_thread_info based on inferior_ptid.
1436 (fake_create_process): No longer write to current_windows_thread.
1437 (windows_nat_target::get_windows_debug_event):
1438 Don't set inferior_ptid or current_windows_thread.
1439 (windows_nat_target::wait): Adjust to not rely on
1440 current_windows_thread.
1441 (do_initial_windows_stuff): Now a method of windows_nat_target.
1442 Switch to the last_ptid thread.
1443 (windows_nat_target::attach): Adjust.
1444 (windows_nat_target::detach): Use switch_to_no_thread instead of
1445 writing to inferior_ptid directly.
1446 (windows_nat_target::create_inferior): Adjust.
1447
31ce04e9
PA
14482020-06-18 Pedro Alves <palves@redhat.com>
1449
1450 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1451
1ee1a363
PA
14522020-06-18 Pedro Alves <palves@redhat.com>
1453
1454 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1455 after creating it, instead of writing to inferior_ptid. Don't
1456 write to inferior_ptid.
1457
6d350754
PA
14582020-06-18 Pedro Alves <palves@redhat.com>
1459
1460 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1461
5d971d48
PA
14622020-06-18 Pedro Alves <palves@redhat.com>
1463
1464 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1465 it, instead of writing to inferior_ptid.
1466
86e57d1b
PA
14672020-06-18 Pedro Alves <palves@redhat.com>
1468
1469 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1470 to inferior_ptid.
1471
f2e1c129
PA
14722020-06-18 Pedro Alves <palves@redhat.com>
1473
1474 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1475 instead of writing to inferior_ptid directly.
1476
60db1b85
PA
14772020-06-18 Pedro Alves <palves@redhat.com>
1478
1479 * corelow.c (core_target::close): Use switch_to_no_thread instead
1480 of writing to inferior_ptid directly.
1481 (add_to_thread_list, core_target_open): Use switch_to_thread
1482 instead of writing to inferior_ptid directly.
1483
fe7d6a8d
PA
14842020-06-18 Pedro Alves <palves@redhat.com>
1485
1486 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1487 inferior_ptid.
1488 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1489 inferior_ptid.
1490 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1491 inferior_ptid directly.
1492 (darwin_nat_target::init_thread_list): Switch to thread, instead
1493 of writing to inferior_ptid.
1494 (darwin_nat_target::attach): Don't write to inferior_ptid.
1495 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1496
975f8708
PA
14972020-06-18 Pedro Alves <palves@redhat.com>
1498
1499 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1500 thread.
1501 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1502 Instead use switch_to_thread.
1503 (gnu_nat_target::detach): Use switch_to_no_thread
1504 instead of writing to inferior_ptid directly. Used passed-in
1505 inferior instead of looking up the inferior by pid.
1506
1a204730
PA
15072020-06-18 Pedro Alves <palves@redhat.com>
1508
1509 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1510 inferior_ptid.
1511
ebe84f23
PA
15122020-06-18 Pedro Alves <palves@redhat.com>
1513
1514 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1515 inferior_ptid.
1516 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1517 thread.
1518 (nto_procfs_target::detach): Avoid referencing
1519 inferior_ptid. Use switch_to_no_thread instead of writing to
1520 inferior_ptid directly.
1521 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1522 instead of writing to inferior_ptid directly.
1523 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1524 to thread.
1525
191f02e5
PA
15262020-06-18 Pedro Alves <palves@redhat.com>
1527
1528 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1529 after creating it, instead of writing to inferior_ptid.
1530 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1531 to inferior_ptid directly.
1532 (gdbsim_target::wait): Don't write to inferior_ptid.
1533
0ac55310
PA
15342020-06-18 Pedro Alves <palves@redhat.com>
1535
1536 * remote.c (remote_target::remote_notice_new_inferior): Use
1537 switch_to_thread instead of writing to inferior_ptid directly.
1538 (remote_target::add_current_inferior_and_thread): Use
1539 switch_to_no_thread instead of writing to inferior_ptid directly.
1540 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1541 and switch_to_thread instead of using set_current_inferior or
1542 writing to inferior_ptid directly.
1543
5233f39b
PA
15442020-06-18 Pedro Alves <palves@redhat.com>
1545
1546 * tracectf.c (ctf_target_open): Switch to added thread instead of
1547 writing to inferior_ptid directly.
1548 (ctf_target::close): Use switch_to_no_thread instead of writing to
1549 inferior_ptid directly.
1550
087e161b
PA
15512020-06-18 Pedro Alves <palves@redhat.com>
1552
1553 * tracefile-tfile.c (tfile_target_open): Don't write to
1554 inferior_ptid directly, instead switch to added thread.
1555 (tfile_target::close): Use switch_to_no_thread instead of writing
1556 to inferior_ptid directly.
1557
7fb43e53
PA
15582020-06-18 Pedro Alves <palves@redhat.com>
1559
1560 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1561 (procfs_target::detach): Use switch_to_no_thread
1562 instead of writing to inferior_ptid directly.
1563 (do_attach): Change return type to void. Switch to the added
1564 thread.
1565 (procfs_target::create_inferior): Switch to the added thread.
1566 (procfs_do_thread_registers): Don't write to inferior_ptid.
1567
18493a00
PA
15682020-06-18 Pedro Alves <palves@redhat.com>
1569
1570 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1571 of writing to inferior_ptid.
1572 (scoped_restore_exited_inferior): Delete.
1573 (handle_vfork_child_exec_or_exit): Simplify using
1574 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1575 instead of writing to inferior_ptid.
1576 (THREAD_STOPPED_BY): Delete.
1577 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1578 (thread_stopped_by_hw_breakpoint): Delete.
1579 (save_waitstatus): Use
1580 scoped_restore_current_thread+switch_to_thread, and call
1581 target_stopped_by_watchpoint instead of
1582 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1583 instead of thread_stopped_by_sw_breakpoint, and
1584 target_stopped_by_hw_breakpoint instead of
1585 thread_stopped_by_hw_breakpoint.
1586 (handle_inferior_event)
1587 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1588 inferior_ptid directly, nor
1589 set_current_inferior/set_current_program_space. Use
1590 switch_to_thread / switch_to_inferior_no_thread instead.
1591
a0776b13
PA
15922020-06-18 Pedro Alves <palves@redhat.com>
1593
1594 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1595 instead of writing to inferior_ptid.
1596
6155c136
PA
15972020-06-18 Pedro Alves <palves@redhat.com>
1598
1599 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1600 added thread.
1601 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1602 to the added thread.
1603 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1604 instead of writing to inferior_ptid.
1605
c5316fc6
PA
16062020-06-18 Pedro Alves <palves@redhat.com>
1607
1608 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1609 (register_to_value_test): Mock a program_space too. Heap-allocate
1610 the address space. Don't write to inferior_ptid. Use
1611 switch_to_thread instead.
1612
8df01799
PA
16132020-06-18 Pedro Alves <palves@redhat.com>
1614
1615 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1616 Delete.
1617 (find_signalled_thread()): New, factored out from
1618 linux_make_corefile_notes and adjusted to handle exited threads.
1619 (linux_make_corefile_notes): Adjust to use the new
1620 find_signalled_thread.
1621
41792d68
PA
16222020-06-18 Pedro Alves <palves@redhat.com>
1623
1624 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1625 of saving/restoring inferior_ptid.
1626
612f258a
TT
16272020-06-17 Tom Tromey <tom@tromey.com>
1628
1629 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1630 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1631 declare.
1632 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1633
efb763a5
SM
16342020-06-15 Simon Marchi <simon.marchi@efficios.com>
1635
1636 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1637 of partial symtabs.
1638
2951f6c0
SM
16392020-06-17 Simon Marchi <simon.marchi@efficios.com>
1640
1641 * regformats/reg-arm.dat: Remove.
1642 * regformats/reg-bfin.dat: Remove.
1643 * regformats/reg-cris.dat: Remove.
1644 * regformats/reg-crisv32.dat: Remove.
1645 * regformats/reg-m32r.dat: Remove.
1646 * regformats/reg-tilegx.dat: Remove.
1647 * regformats/reg-tilegx32.dat: Remove.
1648
7d458ea5
SM
16492020-06-17 Simon Marchi <simon.marchi@efficios.com>
1650
1651 * features/Makefile (WHICH): Remove arm files.
1652 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1653 * regformats/arm/arm-with-neon.dat: Remove.
1654 * regformats/arm/arm-with-vfpv2.dat: Remove.
1655 * regformats/arm/arm-with-vfpv3.dat: Remove.
1656
3af96c0d
SM
16572020-06-17 Simon Marchi <simon.marchi@efficios.com>
1658
1659 * features/Makefile (XMLTOC): Remove rx.xml.
1660
b25e22fd
PA
16612020-06-17 Pedro Alves <palves@redhat.com>
1662
1663 * gdbthread.h (thread_control_state) <trap_expected> Update
1664 comments.
1665
a78a19b1
AB
16662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1667
1668 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1669 ada_language::lookup_symbol_nonlocal.
1670 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1671 (ada_language::lookup_symbol_nonlocal): New member function,
1672 implementation from ada_lookup_symbol_nonlocal.
1673 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1674 initializer.
1675 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1676 initializer.
1677 (cplus_language::lookup_symbol_nonlocal): New member function.
1678 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1679 (minimal_language_data) Likewise.
1680 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1681 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1682 initializer.
1683 (d_language::lookup_symbol_nonlocal): New member function.
1684 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1685 initializer.
1686 (f_language::lookup_symbol_nonlocal): New member function.
1687 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1688 initializer.
1689 * language.c (unknown_language_data): Likewise.
1690 (auto_language_data): Likewise.
1691 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1692 field.
1693 (language_defn::lookup_symbol_nonlocal): New member function.
1694 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1695 initializer.
1696 * objc-lang.c (objc_language_data): Likewise.
1697 * opencl-lang.c (opencl_language_data): Likewise.
1698 * p-lang.c (pascal_language_data): Likewise.
1699 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1700 rust_language::lookup_symbol_nonlocal.
1701 (rust_language_data): Delete la_lookup_symbol_nonlocal
1702 initializer.
1703 (rust_language::lookup_symbol_nonlocal): New member function,
1704 implementation from rust_lookup_symbol_nonlocal.
1705 * symtab.c (lookup_symbol_aux): Update call to
1706 lookup_symbol_nonlocal.
1707 (basic_lookup_symbol_nonlocal): Rename to...
1708 (language_defn::lookup_symbol_nonlocal): ...this, and update
1709 header comment. Remove language_defn parameter, and replace with
1710 uses of `this'.
1711 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1712
ebe2334e
AB
17132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1714
1715 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1716 initializer.
1717 (ada_language::value_print_inner): New member function.
1718 * c-lang.c (c_language_data): Delete la_value_print_inner
1719 initializer.
1720 (cplus_language_data): Likewise.
1721 (asm_language_data): Likewise.
1722 (minimal_language_data): Likewise.
1723 * d-lang.c (d_language_data): Likewise.
1724 (d_language::value_print_inner): New member function.
1725 * f-lang.c (f_language_data): Delete la_value_print_inner
1726 initializer.
1727 (f_language::value_print_inner): New member function.
1728 * f-lang.h (f_value_print_innner): Rename to...
1729 (f_value_print_inner): ...this (note spelling of 'inner').
1730 * f-valprint.c (f_value_print_innner): Rename to...
1731 (f_value_print_inner): ...this (note spelling of 'inner').
1732 * go-lang.c (go_language_data): Delete la_value_print_inner
1733 initializer.
1734 (go_language::value_print_inner): New member function.
1735 * language.c (language_defn::value_print_inner): Define new member
1736 function.
1737 (unk_lang_value_print_inner): Delete.
1738 (unknown_language_data): Delete la_value_print_inner initializer.
1739 (unknown_language::value_print_inner): New member function.
1740 (auto_language_data): Delete la_value_print_inner initializer.
1741 (auto_language::value_print_inner): New member function.
1742 * language.h (language_data): Delete la_value_print_inner field.
1743 (language_defn::value_print_inner): Delcare new member function.
1744 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1745 initializer.
1746 (m2_language::value_print_inner): New member function.
1747 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1748 initializer.
1749 * opencl-lang.c (opencl_language_data): Likewise.
1750 * p-lang.c (pascal_language_data): Likewise.
1751 (pascal_language::value_print_inner): New member function.
1752 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1753 initializer.
1754 (rust_language::value_print_inner): New member function.
1755 * valprint.c (do_val_print): Update call to value_print_inner.
1756
a1d1fa3e
AB
17572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1758
1759 * ada-lang.c (ada_language_data): Delete la_value_print
1760 initializer.
1761 (ada_language::value_print): New member function.
1762 * c-lang.c (c_language_data): Delete la_value_print initializer.
1763 (cplus_language_data): Likewise.
1764 (asm_language_data): Likewise.
1765 (minimal_language_data): Likewise.
1766 * d-lang.c (d_language_data): Likewise.
1767 * f-lang.c (f_language_data): Likewise.
1768 * go-lang.c (go_language_data): Likewise.
1769 * language.c (unk_lang_value_print): Delete.
1770 (language_defn::value_print): Define new member function.
1771 (unknown_language_data): Delete la_value_print initializer.
1772 (unknown_language::value_print): New member function.
1773 (auto_language_data): Delete la_value_print initializer.
1774 (auto_language::value_print): New member function.
1775 * language.h (language_data): Delete la_value_print field.
1776 (language_defn::value_print): Declare new member function.
1777 (LA_VALUE_PRINT): Update call to value_print.
1778 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1779 * objc-lang.c (objc_language_data): Likewise.
1780 * opencl-lang.c (opencl_language_data): Likewise.
1781 * p-lang.c (pascal_language_data): Likewise.
1782 (pascal_language::value_print): New member function.
1783 * rust-lang.c (rust_language_data): Delete la_value_print
1784 initializer.
1785
f16a9f57
AB
17862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1787
1788 * ada-lang.c (ada_watch_location_expression): Rename to
1789 ada_language::watch_location_expression.
1790 (ada_language_data): Delete la_watch_location_expression
1791 initializer.
1792 (ada_language::watch_location_expression): New member function,
1793 implementation from ada_watch_location_expression.
1794 * breakpoint.c (watch_command_1): Update call to
1795 watch_location_expression.
1796 * c-lang.c (c_watch_location_expression): Rename to
1797 language_defn::watch_location_expression.
1798 (c_language_data): Delete la_watch_location_expression
1799 initializer.
1800 (cplus_language_data): Likewise.
1801 (asm_language_data): Likewise.
1802 (minimal_language_data): Likewise.
1803 * c-lang.h (c_watch_location_expression): Delete declaration.
1804 * d-lang.c (d_language_data): Delete la_watch_location_expression
1805 initializer.
1806 * f-lang.c (f_language_data): Likewise.
1807 * go-lang.c (go_language_data): Likewise.
1808 * language.c (language_defn::watch_location_expression): Member
1809 function implementation from c_watch_location_expression.
1810 (unknown_language_data): Delete la_watch_location_expression
1811 initializer.
1812 (auto_language_data): Likewise.
1813 * language.h (language_data): Delete la_watch_location_expression
1814 field.
1815 (language_defn::watch_location_expression): Declare new member
1816 function.
1817 * m2-lang.c (m2_language_data): Delete
1818 la_watch_location_expression initializer.
1819 * objc-lang.c (objc_language_data): Likewise.
1820 * opencl-lang.c (opencl_language_data): Likewise.
1821 * p-lang.c (pascal_language_data): Likewise.
1822 * rust-lang.c (rust_watch_location_expression): Rename to
1823 rust_language::watch_location_expression.
1824 (rust_language_data): Delete la_watch_location_expression
1825 initializer.
1826 (rust_language::watch_location_expression): New member function,
1827 implementation from rust_watch_location_expression.
1828
7e56227d
AB
18292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1830
1831 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
1832 ada_language::collect_symbol_completion_matches.
1833 (ada_language_data): Delete la_collect_symbol_completion_matches
1834 initializer.
1835 (ada_language::collect_symbol_completion_matches): New member
1836 function, implementation from
1837 ada_collect_symbol_completion_matches.
1838 * c-lang.c (c_language_data): Delete
1839 la_collect_symbol_completion_matches initializer.
1840 (cplus_language_data): Likewise.
1841 (asm_language_data): Likewise.
1842 (minimal_language_data): Likewise.
1843 * d-lang.c (d_language_data): Likewise.
1844 * f-lang.c (f_collect_symbol_completion_matches): Rename to
1845 f_language::collect_symbol_completion_matches.
1846 (f_language_data): Delete la_collect_symbol_completion_matches
1847 initializer.
1848 (f_language::collect_symbol_completion_matches) New member
1849 function, implementation from f_collect_symbol_completion_matches.
1850 * go-lang.c (go_language_data): Delete
1851 la_collect_symbol_completion_matches initializer.
1852 * language.c (unknown_language_data): Likewise.
1853 (auto_language_data): Likewise.
1854 * language.h (language_data): Delete
1855 la_collect_symbol_completion_matches field.
1856 (language_defn::collect_symbol_completion_matches): New member
1857 function.
1858 * m2-lang.c (m2_language_data): Delete
1859 la_collect_symbol_completion_matches initializer.
1860 * objc-lang.c (objc_language_data): Likewise.
1861 * opencl-lang.c (opencl_language_data): Likewise.
1862 * p-lang.c (pascal_language_data): Likewise.
1863 * rust-lang.c (rust_language_data): Likewise.
1864 * symtab.c (default_collect_symbol_completion_matches): Delete.
1865 (collect_symbol_completion_matches): Update call to
1866 collect_symbol_completion_matches.
1867 (collect_symbol_completion_matches_type): Likewise.
1868 * symtab.h (default_collect_symbol_completion_matches): Delete
1869 declaration.
1870
53fc67f8
AB
18712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1872
1873 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
1874 (ada_language_data): Delete la_word_break_characters initializer.
1875 (ada_language::word_break_characters): New member function.
1876 * c-lang.c (c_language_data): Delete la_word_break_characters
1877 initializer.
1878 (cplus_language_data): Likewise.
1879 (asm_language_data): Likewise.
1880 (minimal_language_data): Likewise.
1881 * completer.c: Update global comment.
1882 (advance_to_expression_complete_word_point): Update call to
1883 word_break_characters.
1884 (complete_files_symbols): Likewise.
1885 (complete_line_internal_1): Likewise.
1886 (default_completer_handle_brkchars): Likewise.
1887 (skip_quoted_chars): Likewise.
1888 * d-lang.c (d_language_data): Delete la_word_break_characters
1889 initializer.
1890 * f-lang.c (f_word_break_characters): Delete.
1891 (f_language_data): Delete la_word_break_characters initializer.
1892 (f_language::word_break_characters): New member function.
1893 * go-lang.c (go_language_data): Delete la_word_break_characters
1894 initializer.
1895 * language.c (unknown_language_data): Likewise.
1896 (auto_language_data): Likewise.
1897 * language.h (default_word_break_characters): Move declaration to
1898 earlier in the file.
1899 (language_data): Delete la_word_break_characters field.
1900 (language_defn::word_break_characters): New member function.
1901 * m2-lang.c (m2_language_data): Delete la_word_break_characters
1902 initializer.
1903 * objc-lang.c (objc_language_data): Likewise.
1904 * opencl-lang.c (opencl_language_data): Likewise.
1905 * p-lang.c (pascal_language_data): Likewise.
1906 * rust-lang.c (rust_language_data): Likewise.
1907
c9debfb9
AB
19082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1909
1910 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
1911 (ada_language_data): Delete la_get_symbol_name_matcher
1912 initializer.
1913 (language_defn::get_symbol_name_matcher_inner): New member
1914 function.
1915 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
1916 initializer.
1917 (cplus_language_data): Likewise.
1918 (cplus_language::get_symbol_name_matcher_inner): New member
1919 function.
1920 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
1921 (minimal_language_data): Likewise.
1922 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
1923 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
1924 initializer.
1925 * dictionary.c (iter_match_first_hashed): Update call to
1926 get_symbol_name_matcher.
1927 (iter_match_next_hashed): Likewise.
1928 (iter_match_next_linear): Likewise.
1929 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
1930 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
1931 initializer.
1932 (f_language::get_symbol_name_matcher_inner): New member function.
1933 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
1934 initializer.
1935 * language.c (default_symbol_name_matcher): Update header comment,
1936 make static.
1937 (language_defn::get_symbol_name_matcher): New definition.
1938 (language_defn::get_symbol_name_matcher_inner): Likewise.
1939 (get_symbol_name_matcher): Delete.
1940 (unknown_language_data): Delete la_get_symbol_name_matcher
1941 initializer.
1942 (auto_language_data): Likewise.
1943 * language.h (language_data): Delete la_get_symbol_name_matcher
1944 field.
1945 (language_defn::get_symbol_name_matcher): New member function.
1946 (language_defn::get_symbol_name_matcher_inner): Likewise.
1947 (default_symbol_name_matcher): Delete declaration.
1948 * linespec.c (find_methods): Update call to
1949 get_symbol_name_matcher.
1950 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
1951 initializer.
1952 * minsyms.c (lookup_minimal_symbol): Update call to
1953 get_symbol_name_matcher.
1954 (iterate_over_minimal_symbols): Likewise.
1955 * objc-lang.c (objc_language_data): Delete
1956 la_get_symbol_name_matcher initializer.
1957 * opencl-lang.c (opencl_language_data): Likewise.
1958 * p-lang.c (pascal_language_data): Likewise.
1959 * psymtab.c (psymbol_name_matches): Update call to
1960 get_symbol_name_matcher.
1961 * rust-lang.c (rust_language_data): Delete
1962 la_get_symbol_name_matcher initializer.
1963 * symtab.c (symbol_matches_search_name): Update call to
1964 get_symbol_name_matcher.
1965 (compare_symbol_name): Likewise.
1966
9a49ad8c
AB
19672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1968
1969 * ada-lang.c (ada_language_data): Delete la_compute_program
1970 initializer.
1971 * c-lang.c (c_language_data): Likewise.
1972 (c_language::compute_program): New member function.
1973 (cplus_language_data): Delete la_compute_program initializer.
1974 (cplus_language::compute_program): New member function.
1975 (asm_language_data): Delete la_compute_program initializer.
1976 (minimal_language_data): Likewise.
1977 * c-lang.h (c_compute_program): Update comment.
1978 (cplus_compute_program): Likewise.
1979 * compile/compile-c-support.c (c_compute_program): Likewise.
1980 (cplus_compute_program): Likewise.
1981 * compile/compile.c (compile_to_object): Update call to
1982 la_compute_program.
1983 * d-lang.c (d_language_data): Delete la_compute_program
1984 initializer.
1985 * f-lang.c (f_language_data): Likewise.
1986 * go-lang.c (go_language_data): Likewise.
1987 * language.c (unknown_language_data): Likewise.
1988 (auto_language_data): Likewise.
1989 * language.h (language_data): Delete la_compute_program field.
1990 (language_defn::compute_program): New member function.
1991 * m2-lang.c (m2_language_data): Delete la_compute_program
1992 initializer.
1993 * objc-lang.c (objc_language_data): Likewise.
1994 * opencl-lang.c (opencl_language_data): Likewise.
1995 * p-lang.c (pascal_language_data): Likewise.
1996 * rust-lang.c (rust_language_data): Likewise.
1997
eff93b4d
AB
19982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1999
2000 * ada-lang.c (ada_language_data) Delete
2001 la_class_name_from_physname initializer.
2002 * c-lang.c (c_language_data): Likewise.
2003 (cplus_language_data): Likewise.
2004 (cplus_language::class_name_from_physname): New member function.
2005 (asm_language_data): Delete la_class_name_from_physname
2006 initializer.
2007 (minimal_language_data): Likewise.
2008 * d-lang.c (d_language_data): Likewise.
2009 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2010 method on language_defn class.
2011 (guess_full_die_structure_name): Likewise.
2012 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2013 initializer.
2014 * go-lang.c (go_language_data): Likewise.
2015 * language.c (language_class_name_from_physname): Delete.
2016 (unk_lang_class_name): Delete.
2017 (unknown_language_data): Delete la_class_name_from_physname
2018 initializer.
2019 (auto_language_data): Likewise.
2020 * language.h (language_data): Delete la_class_name_from_physname
2021 field.
2022 (language_defn::class_name_from_physname): New function.
2023 (language_class_name_from_physname): Delete declaration.
2024 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2025 initializer.
2026 * objc-lang.c (objc_language_data): Likewise.
2027 * opencl-lang.c (opencl_language_data): Likewise.
2028 * p-lang.c (pascal_language_data): Likewise.
2029 * rust-lang.c (rust_language_data): Likewise.
2030
de543742
TT
20312020-06-16 Tom Tromey <tom@tromey.com>
2032
2033 * tui/tui-data.h (STATUS_NAME): New macro.
2034 * tui/tui-layout.c (tui_remove_some_windows)
2035 (initialize_known_windows, tui_register_window)
2036 (tui_layout_split::remove_windows, initialize_layouts)
2037 (tui_new_layout_command): Don't use hard-coded window names.
2038
a350efd4
TT
20392020-06-16 Tom Tromey <tom@tromey.com>
2040
2041 PR tui/25348:
2042 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2043 tui_initialize_readline. Only run once. Call rl_initialize.
2044 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2045 tui_initialize_readline.
2046 * tui/tui-io.c (tui_setup_io): Call
2047 tui_ensure_readline_initialized.
2048 * tui/tui-interp.c (tui_interp::init): Update.
2049
39ec0490
TT
20502020-06-16 Tom Tromey <tom@tromey.com>
2051
2052 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2053 Also preserve the status window.
2054
d2d1ea20
TT
20552020-06-16 Tom Tromey <tom@tromey.com>
2056
2057 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2058 where m_window==nullptr.
2059
66920317
TT
20602020-06-15 Tom Tromey <tromey@adacore.com>
2061
2062 * windows-nat.c (windows_nat::handle_output_debug_string):
2063 Update.
2064 (windows_nat::handle_ms_vc_exception): Update.
2065 * target.h (target_read_string): Change API.
2066 * target.c (target_read_string): Change API.
2067 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2068 Update.
2069 * solib-frv.c (frv_current_sos): Update.
2070 * solib-dsbt.c (dsbt_current_sos): Update.
2071 * solib-darwin.c (darwin_current_sos): Update.
2072 * linux-thread-db.c (inferior_has_bug): Update.
2073 * expprint.c (print_subexp_standard): Update.
2074 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2075 (ada_exception_message_1): Update.
2076
a5d871dd
TT
20772020-06-15 Tom Tromey <tromey@adacore.com>
2078
2079 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2080
670e35fa
TT
20812020-06-15 Tom Tromey <tromey@adacore.com>
2082
2083 * valprint.c (read_string): Update comment.
2084 * target.c (MIN): Remove.
2085 (target_read_string): Rewrite.
2086
f5272a3b
TT
20872020-06-15 Tom Tromey <tromey@adacore.com>
2088
2089 * corefile.c (read_memory_string): Remove.
2090 * ada-valprint.c (ada_value_print_ptr): Update.
2091 * ada-lang.h (ada_tag_name): Change return type.
2092 * ada-lang.c (type_from_tag): Update.
2093 (ada_tag_name_from_tsd): Change return type. Use
2094 target_read_string.
2095 (ada_tag_name): Likewise.
2096 * gdbcore.h (read_memory_string): Don't declare.
2097
2c074f49
HD
20982020-06-14 Hannes Domani <ssbssa@yahoo.de>
2099
2100 * symtab.c (rbreak_command): Ignore Windows drive colon.
2101
6a17d503
SM
21022020-06-12 Simon Marchi <simon.marchi@efficios.com>
2103
2104 * NEWS: Mention removed GDBserver host support.
2105
453c733f
NC
21062020-06-12 Nelson Chu <nelson.chu@sifive.com>
2107
2108 * features/riscv/rebuild-csr-xml.sh: Updated.
2109
2b4e6a3f
TT
21102020-06-11 Tom Tromey <tom@tromey.com>
2111
2112 PR gdb/18318:
2113 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2114
4412332f
JG
21152020-06-09 Jonny Grant <jg@jguk.org>
21162020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2117
2118 * main.c (captured_main_1): Don't print new line after help.
2119 (print_gdb_help): add mailing list and IRC channel information
2120 to --help. Add new lines between items in the footer. Remove
2121 quotes around bug url.
2122
2f33032a
KS
21232020-06-11 Keith Seitz <keiths@redhat.com>
2124
2125 PR gdb/21356
2126 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2127 Resolve typedefs for type length calculations.
2128
7ab96794
TV
21292020-06-10 Tom de Vries <tdevries@suse.de>
2130
2131 PR ada/24713
2132 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2133 (write_psymbols): Enable .gdb_index for ada.
2134 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2135 ada.
2136
e5f3ece2
TV
21372020-06-10 Tom de Vries <tdevries@suse.de>
2138
2139 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2140 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2141 namei" instead of "const char *name" argument.
2142 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2143 dw2_symtab_iter_init.
2144
940da03e
SM
21452020-06-08 Simon Marchi <simon.marchi@efficios.com>
2146
2147 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2148 to use type::field and field::type instead.
2149
b6cdac4b
SM
21502020-06-08 Simon Marchi <simon.marchi@efficios.com>
2151
2152 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2153 to use field::type instead.
2154
5d14b6e5
SM
21552020-06-08 Simon Marchi <simon.marchi@efficios.com>
2156
2157 * gdbtypes.h (struct field) <type, set_type>: New methods.
2158 Rename `type` field to...
2159 <m_type>: ... this. Change references throughout to use type or
2160 set_type methods.
2161 (FIELD_TYPE): Use field::type. Change call sites that modify
2162 the field's type to use field::set_type instead.
2163
3d967001
SM
21642020-06-08 Simon Marchi <simon.marchi@efficios.com>
2165
2166 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2167 to use type::index_type instead.
2168
262abc0d
SM
21692020-06-08 Simon Marchi <simon.marchi@efficios.com>
2170
2171 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2172 methods.
2173 (TYPE_INDEX_TYPE): Use type::index_type.
2174 * gdbtypes.c (create_array_type_with_stride): Likewise.
2175
82836c92
TT
21762020-06-07 Tom Tromey <tom@tromey.com>
2177
2178 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2179 parameter.
2180 (generic_value_print): Update.
2181
940dace9
AB
21822020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2183
2184 Revert commit 982a38f60b0.
2185 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2186
982a38f6
AB
21872020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2188
2189 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2190 avoid use after free.
2191
82f06518
TV
21922020-06-05 Tom de Vries <tdevries@suse.de>
2193
2194 * NEWS: Fix typos.
2195
f8c41851
SM
21962020-06-04 Simon Marchi <simon.marchi@efficios.com>
2197
2198 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2199 the per_bfd object.
2200 (dwarf2_read_debug_names): Likewise.
2201 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2202 object when re-using a per_bfd object with an index.
2203
f9b5d5ea
TV
22042020-06-03 Tom de Vries <tdevries@suse.de>
2205
2206 PR symtab/26046
2207 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2208 children for C++.
2209 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2210 DW_TAG_subprogram.
2211
f6eee2d0
AB
22122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2213
2214 * ada-lang.c (ada_language_data): Delete skip_trampoline
2215 initializer.
2216 * c-lang.c (c_language_data): Likewise.
2217 (cplus_language_data): Likewise.
2218 (cplus_language::skip_trampoline): New member function.
2219 (asm_language_data): Delete skip_trampoline initializer.
2220 (minimal_language_data): Likewise.
2221 * d-lang.c (d_language_data): Likewise.
2222 * f-lang.c (f_language_data): Likewise.
2223 * go-lang.c (go_language_data): Likewise.
2224 * language.c (unk_lang_trampoline): Delete function.
2225 (skip_language_trampoline): Update.
2226 (unknown_language_data): Delete skip_trampoline initializer.
2227 (auto_language_data): Likewise.
2228 * language.h (language_data): Delete skip_trampoline field.
2229 (language_defn::skip_trampoline): New function.
2230 * m2-lang.c (m2_language_data): Delete skip_trampoline
2231 initializer.
2232 * objc-lang.c (objc_skip_trampoline): Delete function, move
2233 implementation to objc_language::skip_trampoline.
2234 (objc_language_data): Delete skip_trampoline initializer.
2235 (objc_language::skip_trampoline): New member function with
2236 implementation from objc_skip_trampoline.
2237 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2238 initializer.
2239 * p-lang.c (pascal_language_data): Likewise.
2240 * rust-lang.c (rust_language_data): Likewise.
2241
0a50df5d
AB
22422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2243
2244 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2245 (ada_language::demangle): New member function.
2246 * c-lang.c (c_language_data): Delete la_demangle initializer.
2247 (cplus_language_data): Delete la_demangle initializer.
2248 (cplus_language::demangle): New member function.
2249 (asm_language_data): Delete la_demangle initializer.
2250 (minimal_language_data): Delete la_demangle initializer.
2251 * d-lang.c (d_language_data): Delete la_demangle initializer.
2252 (d_language::demangle): New member function.
2253 * f-lang.c (f_language_data): Delete la_demangle initializer.
2254 (f_language::demangle): New member function.
2255 * go-lang.c (go_language_data): Delete la_demangle initializer.
2256 (go_language::demangle): New member function.
2257 * language.c (language_demangle): Update.
2258 (unk_lang_demangle): Delete.
2259 (unknown_language_data): Delete la_demangle initializer.
2260 (unknown_language::demangle): New member function.
2261 (auto_language_data): Delete la_demangle initializer.
2262 (auto_language::demangle): New member function.
2263 * language.h (language_data): Delete la_demangle field.
2264 (language_defn::demangle): New function.
2265 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2266 * objc-lang.c (objc_language_data): Delete la_demangle
2267 initializer.
2268 (objc_language::demangle): New member function.
2269 * opencl-lang.c (opencl_language_data): Delete la_demangle
2270 initializer.
2271 * p-lang.c (pascal_language_data): Likewise.
2272 * rust-lang.c (rust_language_data): Likewise.
2273 (rust_language::demangle): New member function.
2274
fbfb0a46
AB
22752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2276
2277 * ada-lang.c (ada_language_data): Delete la_print_type
2278 initializer.
2279 (ada_language::print_type): New member function.
2280 * c-lang.c (c_language_data): Delete la_print_type initializer.
2281 (c_language::print_type): New member function.
2282 (cplus_language_data): Delete la_print_type initializer.
2283 (cplus_language::print_type): New member function.
2284 (asm_language_data): Delete la_print_type initializer.
2285 (asm_language::print_type): New member function.
2286 (minimal_language_data): Delete la_print_type initializer.
2287 (minimal_language::print_type): New member function.
2288 * d-lang.c (d_language_data): Delete la_print_type initializer.
2289 (d_language::print_type): New member function.
2290 * f-lang.c (f_language_data): Delete la_print_type initializer.
2291 (f_language::print_type): New member function.
2292 * go-lang.c (go_language_data): Delete la_print_type initializer.
2293 (go_language::print_type): New member function.
2294 * language.c (unk_lang_print_type): Delete.
2295 (unknown_language_data): Delete la_print_type initializer.
2296 (unknown_language::print_type): New member function.
2297 (auto_language_data): Delete la_print_type initializer.
2298 (auto_language::print_type): New member function.
2299 * language.h (language_data): Delete la_print_type field.
2300 (language_defn::print_type): New function.
2301 (LA_PRINT_TYPE): Update.
2302 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2303 (m2_language::print_type): New member function.
2304 * objc-lang.c (objc_language_data): Delete la_print_type
2305 initializer.
2306 (objc_language::print_type): New member function.
2307 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2308 to opencl_language::print_type.
2309 (opencl_language_data): Delete la_print_type initializer.
2310 (opencl_language::print_type): New member function, implementation
2311 from opencl_print_type.
2312 * p-lang.c (pascal_language_data): Delete la_print_type
2313 initializer.
2314 (pascal_language::print_type): New member function.
2315 * rust-lang.c (rust_print_type): Delete, implementation moved to
2316 rust_language::print_type.
2317 (rust_language_data): Delete la_print_type initializer.
2318 (rust_language::print_type): New member function, implementation
2319 from rust_print_type.
2320
6f827019
AB
23212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2322
2323 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2324 implementation moves to...
2325 (ada_language::sniff_from_mangled_name): ...here. Update return
2326 type.
2327 (ada_language_data): Delete la_sniff_from_mangled_name
2328 initializer.
2329 * c-lang.c (c_language_data): Likewise.
2330 (cplus_language_data): Likewise.
2331 (cplus_language::sniff_from_mangled_name): New member function,
2332 implementation taken from gdb_sniff_from_mangled_name.
2333 (asm_language_data): Delete la_sniff_from_mangled_name
2334 initializer.
2335 (minimal_language_data): Likewise.
2336 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2337 implementation moves to cplus_language::sniff_from_mangled_name.
2338 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2339 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2340 moves to...
2341 (d_language::sniff_from_mangled_name): ...here.
2342 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2343 * f-lang.c (f_language_data): Likewise.
2344 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2345 moves to...
2346 (go_language::sniff_from_mangled_name): ...here.
2347 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2348 * language.c (language_sniff_from_mangled_name): Delete.
2349 (unknown_language_data): Delete la_sniff_from_mangled_name
2350 initializer.
2351 (auto_language_data): Likewise.
2352 * language.h (language_data): Delete la_sniff_from_mangled_name
2353 field.
2354 (language_defn::sniff_from_mangled_name): New function.
2355 (language_sniff_from_mangled_name): Delete declaration.
2356 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2357 field.
2358 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2359 implementation moves to...
2360 (objc_language::sniff_from_mangled_name): ...here.
2361 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2362 * opencl-lang.c (opencl_language_data): Likewise.
2363 * p-lang.c (pascal_language_data): Likewise.
2364 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2365 implementation moves to...
2366 (rust_language::sniff_from_mangled_name): ...here.
2367 (rust_language_data): Delete la_sniff_from_mangled_name
2368 initializer.
2369 * symtab.c (symbol_find_demangled_name): Call
2370 sniff_from_mangled_name member function.
2371
fb8006fd
AB
23722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2373
2374 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2375 initializer.
2376 * c-lang.c (c_language_data): Likewise.
2377 (cplus_language_data): Likewise.
2378 (cplus_language::search_name_hash): New member function.
2379 (asm_language_data): Delete la_search_name_hash initializer.
2380 (minimal_language_data): Likewise.
2381 * d-lang.c (d_language_data): Likewise.
2382 * dictionary.c (default_search_name_hash): Rename to...
2383 (language_defn::search_name_hash): ...this.
2384 * f-lang.c (f_language_data): Likewise.
2385 (f_language::search_name_hash): New member function.
2386 * go-lang.c (go_language_data): Delete la_search_name_hash
2387 initializer.
2388 * language.c (unknown_language_data): Likewise.
2389 (auto_language_data): Likewise.
2390 * language.h (struct language_data): Delete la_search_name_hash
2391 field.
2392 (language_defn::search_name_hash): Declare new member function.
2393 (default_search_name_hash): Delete declaration.
2394 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2395 initializer.
2396 * objc-lang.c (objc_language_data): Likewise.
2397 * opencl-lang.c (opencl_language_data): Likewise.
2398 * p-lang.c (pascal_language_data): Likewise.
2399 * rust-lang.c (rust_language_data): Likewise.
2400 * symtab.c (search_name_hash): Update call.
2401
8e25bafe
AB
24022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2403
2404 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2405 initializer.
2406 * c-lang.c (class compile_instance): Declare.
2407 (c_language_data): Delete la_get_compile_instance initializer.
2408 (c_language::get_compile_instance): New member function.
2409 (cplus_language_data): Delete la_get_compile_instance initializer.
2410 (cplus_language::get_compile_instance): New member function.
2411 (asm_language_data): Delete la_get_compile_instance initializer.
2412 (minimal_language_data): Likewise.
2413 * c-lang.h (c_get_compile_context): Update comment.
2414 (cplus_get_compile_context): Update comment.
2415 * compile/compile.c (compile_to_object): Update calls, don't rely
2416 on function pointer being NULL.
2417 * d-lang.c (d_language_data): Delete la_get_compile_instance
2418 initializer.
2419 * f-lang.c (f_language_data): Likewise.
2420 * go-lang.c (go_language_data): Likewise.
2421 * language.c (unknown_language_data): Likewise.
2422 (auto_language_data): Likewise.
2423 * language.h (language_data): Delete la_get_compile_instance field.
2424 (language_defn::get_compile_instance): New member function.
2425 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2426 initializer.
2427 * objc-lang.c (objc_language_data): Likewise.
2428 * opencl-lang.c (opencl_language_data): Likewise.
2429 * p-lang.c (pascal_language_data): Likewise.
2430 * rust-lang.c (rust_language_data): Likewise.
2431
4009ee92
AB
24322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2433
2434 * ada-lang.c (ada_add_all_symbols): Update comment.
2435 (ada_iterate_over_symbols): Delete, move implementation to...
2436 (ada_language::iterate_over_symbols): ...here, a new member
2437 function, rewrite to use range based for loop.
2438 (ada_language_data): Delete la_iterate_over_symbols initializer.
2439 * c-lang.c (c_language_data): Likewise.
2440 (cplus_language_data): Likewise.
2441 (asm_language_data): Likewise.
2442 (minimal_language_data): Likewise.
2443 * d-lang.c (d_language_data): Likewise.
2444 * f-lang.c (f_language_data): Likewise.
2445 * go-lang.c (go_language_data): Likewise.
2446 * language.c (unknown_language_data): Likewise.
2447 (auto_language_data): Likewise.
2448 * language.h (language_data): Delete la_iterate_over_symbols field.
2449 (language_defn::iterate_over_symbols): New member function.
2450 (LA_ITERATE_OVER_SYMBOLS): Update.
2451 * linespec.c (iterate_over_all_matching_symtabs): Update.
2452 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2453 initializer.
2454 * objc-lang.c (objc_language_data): Likewise.
2455 * opencl-lang.c (opencl_language_data): Likewise.
2456 * p-lang.c (pascal_language_data): Likewise.
2457 * rust-lang.c (rust_language_data): Likewise.
2458
54f4ca46
AB
24592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2460
2461 * ada-lang.c (ada_language_data): Delete
2462 la_lookup_transparent_type initializer.
2463 * c-lang.c (c_language_data): Likewise.
2464 (cplus_language_data): Likewise.
2465 (cplus_language::lookup_transparent_type): New member function.
2466 (asm_language_data): Delete la_lookup_transparent_type
2467 initializer.
2468 (minimal_language_data): Likewise.
2469 * d-lang.c (d_language_data): Likewise.
2470 * f-lang.c (f_language_data): Likewise.
2471 * go-lang.c (go_language_data): Likewise.
2472 * language.c (unknown_language_data): Likewise.
2473 (auto_language_data): Likewise.
2474 * language.h (struct language_data): Delete
2475 la_lookup_transparent_type field.
2476 (language_defn::lookup_transparent_type): New member function.
2477 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2478 initializer.
2479 * objc-lang.c (objc_language_data): Likewise.
2480 * opencl-lang.c (opencl_language_data): Likewise.
2481 * p-lang.c (pascal_language_data): Likewise.
2482 * rust-lang.c (rust_language_data): Likewise.
2483 * symtab.c (symbol_matches_domain): Update call.
2484
1fb314aa
AB
24852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2486
2487 * ada-lang.c (ada_language_arch_info): Delete function, move
2488 implementation to...
2489 (ada_language::language_arch_info): ...here, a new member
2490 function.
2491 (ada_language_data): Delete la_language_arch_info.
2492 * c-lang.c (c_language_data): Likewise.
2493 (c_language::language_arch_info): New member function.
2494 (cplus_language_arch_info): Delete function, move
2495 implementation to...
2496 (cplus_language::language_arch_info): ...here, a new member
2497 function.
2498 (cplus_language_data): Delete la_language_arch_info.
2499 (asm_language_data): Likewise.
2500 (asm_language::language_arch_info): New member function.
2501 (minimal_language_data): Delete la_language_arch_info.
2502 (minimal_language::language_arch_info): New member function.
2503 * d-lang.c (d_language_arch_info): Delete function, move
2504 implementation to...
2505 (d_language::language_arch_info): ...here, a new member
2506 function.
2507 (d_language_data): Delete la_language_arch_info.
2508 * f-lang.c (f_language_arch_info): Delete function, move
2509 implementation to...
2510 (f_language::language_arch_info): ...here, a new member
2511 function.
2512 (f_language_data): Delete la_language_arch_info.
2513 * go-lang.c (go_language_arch_info): Delete function, move
2514 implementation to...
2515 (go_language::language_arch_info): ...here, a new member
2516 function.
2517 (go_language_data): Delete la_language_arch_info.
2518 * language.c (unknown_language_data): Likewise.
2519 (unknown_language::language_arch_info): New member function.
2520 (auto_language_data): Delete la_language_arch_info.
2521 (auto_language::language_arch_info): New member function.
2522 (language_gdbarch_post_init): Update call to
2523 la_language_arch_info.
2524 * language.h (language_data): Delete la_language_arch_info
2525 function pointer.
2526 (language_defn::language_arch_info): New function.
2527 * m2-lang.c (m2_language_arch_info): Delete function, move
2528 implementation to...
2529 (m2_language::language_arch_info): ...here, a new member
2530 function.
2531 (m2_language_data): Delete la_language_arch_info.
2532 * objc-lang.c (objc_language_arch_info): Delete function, move
2533 implementation to...
2534 (objc_language::language_arch_info): ...here, a new member
2535 function.
2536 (objc_language_data): Delete la_language_arch_info.
2537 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2538 implementation to...
2539 (opencl_language::language_arch_info): ...here, a new member
2540 function.
2541 (opencl_language_data): Delete la_language_arch_info.
2542 * p-lang.c (pascal_language_arch_info): Delete function, move
2543 implementation to...
2544 (pascal_language::language_arch_info): ...here, a new member
2545 function.
2546 (pascal_language_data): Delete la_language_arch_info.
2547 * rust-lang.c (rust_language_arch_info): Delete function, move
2548 implementation to...
2549 (rust_language::language_arch_info): ...here, a new member
2550 function.
2551 (rust_language_data): Delete la_language_arch_info.
2552
48448202
AB
25532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2554
2555 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2556 initializer.
2557 * c-lang.c (c_language_data): Likewise.
2558 (cplus_language_data): Likewise.
2559 (cplus_language::pass_by_reference_info): New method.
2560 (asm_language_data): Delete la_pass_by_reference initializer.
2561 (minimal_language_data): Likewise.
2562 * cp-abi.c (cp_pass_by_reference): Remove use of
2563 default_pass_by_reference.
2564 * d-lang.c (d_language_data): Likewise.
2565 * f-lang.c (f_language_data): Likewise.
2566 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2567 default_pass_by_reference.
2568 * go-lang.c (go_language_data): Likewise.
2569 * language.c (language_pass_by_reference): Update.
2570 (default_pass_by_reference): Delete.
2571 (unknown_language_data): Delete la_pass_by_reference
2572 initializer.
2573 (auto_language_data): Likewise.
2574 * language.h (struct language_data): Delete la_pass_by_reference
2575 field.
2576 (language_defn::pass_by_reference_info): New member function.
2577 (default_pass_by_reference): Delete declaration.
2578 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2579 initializer.
2580 * objc-lang.c (objc_language_data): Likewise.
2581 * opencl-lang.c (opencl_language_data): Likewise.
2582 * p-lang.c (pascal_language_data): Likewise.
2583 * rust-lang.c (rust_language_data): Likewise.
2584
15e5fd35
AB
25852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2586
2587 * ada-lang.c (ada_read_var_value): Delete function, move
2588 implementation to...
2589 (ada_language::read_var_value): ...here.
2590 (ada_language_data): Delete la_read_var_value initializer.
2591 * c-lang.c (c_language_data): Likewise.
2592 (cplus_language_data): Likewise.
2593 (minimal_language_data): Likewise.
2594 * d-lang.c (d_language_data): Likewise.
2595 * f-lang.c (f_language_data): Likewise.
2596 * findvar.c (default_read_var_value): Rename to...
2597 (language_defn::read_var_value): ...this.
2598 * findvar.c (read_var_value): Update header comment, and change to
2599 call member function instead of function pointer.
2600 * go-lang.c (go_language_data): Likewise.
2601 * language.c (unknown_language_data): Delete la_read_var_value
2602 initializer.
2603 (auto_language_data): Likewise.
2604 * language.h (struct language_data): Delete la_read_var_value
2605 field.
2606 (language_defn::read_var_value): New member function.
2607 (default_read_var_value): Delete declaration.
2608 * m2-lang.c (m2_language_data): Delete la_read_var_value
2609 initializer.
2610 * objc-lang.c (objc_language_data): Likewise.
2611 * opencl-lang.c (opencl_language_data): Likewise.
2612 * p-lang.c (pascal_language_data): Likewise.
2613 * rust-lang.c (rust_language_data): Likewise.
2614 * value.h (default_read_var_value): Delete declaration.
2615
5bd40f2a
AB
26162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2617
2618 * ada-lang.c (ada_print_array_index): Delete function, move
2619 implementation to...
2620 (ada_language::print_array_index): ...here.
2621 (ada_language_data): Delete la_print_array_index initializer.
2622 * c-lang.c (c_language_data): Likewise.
2623 (cplus_language_data): Likewise.
2624 (minimal_language_data): Likewise.
2625 * d-lang.c (d_language_data): Likewise.
2626 * f-lang.c (f_language_data): Likewise.
2627 * go-lang.c (go_language_data): Likewise.
2628 * language.c (default_print_array_index): Delete function, move
2629 implementation to...
2630 (language_defn::print_array_index): ...here.
2631 (unknown_language_data): Delete la_print_array_index initializer.
2632 (auto_language_data): Likewise.
2633 * language.h (struct language_data): Delete la_print_array_index
2634 field.
2635 (language_defn::print_array_index): New member function.
2636 (LA_PRINT_ARRAY_INDEX): Update.
2637 (default_print_array_index): Delete declaration.
2638 * m2-lang.c (m2_language_data): Delete la_print_array_index
2639 initializer.
2640 * objc-lang.c (objc_language_data): Likewise.
2641 * opencl-lang.c (opencl_language_data): Likewise.
2642 * p-lang.c (pascal_language_data): Likewise.
2643 * rust-lang.c (rust_language_data): Likewise.
2644
0874fd07
AB
26452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2646
2647 * gdb/ada-lang.c (ada_language_defn): Convert to...
2648 (ada_language_data): ...this.
2649 (class ada_language): New class.
2650 (ada_language_defn): New static global.
2651 * gdb/c-lang.c (c_language_defn): Convert to...
2652 (c_language_data): ...this.
2653 (class c_language): New class.
2654 (c_language_defn): New static global.
2655 (cplus_language_defn): Convert to...
2656 (cplus_language_data): ...this.
2657 (class cplus_language): New class.
2658 (cplus_language_defn): New static global.
2659 (asm_language_defn): Convert to...
2660 (asm_language_data): ...this.
2661 (class asm_language): New class.
2662 (asm_language_defn): New static global.
2663 (minimal_language_defn): Convert to...
2664 (minimal_language_data): ...this.
2665 (class minimal_language): New class.
2666 (minimal_language_defn): New static global.
2667 * gdb/d-lang.c (d_language_defn): Convert to...
2668 (d_language_data): ...this.
2669 (class d_language): New class.
2670 (d_language_defn): New static global.
2671 * gdb/f-lang.c (f_language_defn): Convert to...
2672 (f_language_data): ...this.
2673 (class f_language): New class.
2674 (f_language_defn): New static global.
2675 * gdb/go-lang.c (go_language_defn): Convert to...
2676 (go_language_data): ...this.
2677 (class go_language): New class.
2678 (go_language_defn): New static global.
2679 * gdb/language.c (unknown_language_defn): Remove declaration.
2680 (current_language): Initialize to nullptr, real initialization is
2681 moved to _initialize_language.
2682 (languages): Delete global.
2683 (language_defn::languages): Define.
2684 (set_language_command): Use language_defn::languages.
2685 (set_language): Likewise.
2686 (range_error): Likewise.
2687 (language_enum): Likewise.
2688 (language_def): Likewise.
2689 (add_set_language_command): Use language_def::languages for the
2690 language list, and language_def to lookup language pointers.
2691 (skip_language_trampoline): Use language_defn::languages.
2692 (unknown_language_defn): Convert to...
2693 (unknown_language_data): ...this.
2694 (class unknown_language): New class.
2695 (unknown_language_defn): New static global.
2696 (auto_language_defn): Convert to...
2697 (auto_language_data): ...this.
2698 (class auto_language): New class.
2699 (auto_language_defn): New static global.
2700 (language_gdbarch_post_init): Use language_defn::languages.
2701 (_initialize_language): Initialize current_language.
2702 * gdb/language.h (struct language_defn): Rename to...
2703 (struct language_data): ...this.
2704 (struct language_defn): New.
2705 (auto_language_defn): Delete.
2706 (unknown_language_defn): Delete.
2707 (minimal_language_defn): Delete.
2708 (ada_language_defn): Delete.
2709 (asm_language_defn): Delete.
2710 (c_language_defn): Delete.
2711 (cplus_language_defn): Delete.
2712 (d_language_defn): Delete.
2713 (f_language_defn): Delete.
2714 (go_language_defn): Delete.
2715 (m2_language_defn): Delete.
2716 (objc_language_defn): Delete.
2717 (opencl_language_defn): Delete.
2718 (pascal_language_defn): Delete.
2719 (rust_language_defn): Delete.
2720 * gdb/m2-lang.c (m2_language_defn): Convert to...
2721 (m2_language_data): ...this.
2722 (class m2_language): New class.
2723 (m2_language_defn): New static global.
2724 * gdb/objc-lang.c (objc_language_defn): Convert to...
2725 (objc_language_data): ...this.
2726 (class objc_language): New class.
2727 (objc_language_defn): New static global.
2728 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2729 (opencl_language_data): ...this.
2730 (class opencl_language): New class.
2731 (opencl_language_defn): New static global.
2732 * gdb/p-lang.c (pascal_language_defn): Convert to...
2733 (pascal_language_data): ...this.
2734 (class pascal_language): New class.
2735 (pascal_language_defn): New static global.
2736 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2737 language pointer, update comment format.
2738 * gdb/rust-lang.c (rust_language_defn): Convert to...
2739 (rust_language_data): ...this.
2740 (class rust_language): New class.
2741 (rust_language_defn): New static global.
2742
1313c56e
AB
27432020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2744
2745 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2746 member variable.
2747 <m_stmt_at_address>: New member variable.
2748 (lnp_state_machine::record_line): Don't record some lines, update
2749 tracking of is_stmt at the same address.
2750 (lnp_state_machine::lnp_state_machine): Initialise new member
2751 variables.
2752
b7ed9f3d
ST
27532020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2754
2755 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2756 "-include gnu-nat-mig.h".
2757 * gnu-nat-mig.h: New file.
2758 * gnu-nat.c: Include "gnu-nat-mig.h".
2759 (exc_server, msg_reply_server, notify_server,
2760 process_reply_server): Remove declarations.
2761
14a8ad62
ST
27622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2763
2764 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2765 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2766 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2767 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2768 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2769 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2770 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2771 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2772 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2773 to gnu_nat_target class.
2774 * gnu-nat.c: Likewise.
2775 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2776 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2777 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2778 object.
2779 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2780 instead of `gnu_target'.
2781
0af5e106
ST
27822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2783
2784 * i386-gnu-tdep.c: Include "gdbcore.h"
2785 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2786 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2787 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2788 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2789 i386_gnu_sigcontext_addr): New functions
2790 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2791 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2792 tdep.
2793
078f2fc9
ST
27942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2795
2796 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2797 before fork_inferior call. Avoid calling it if target_is_pushed returns
2798 true.
2799
53dff92c
ST
28002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2801
2802 * gnu-nat.h (gnu_target): New variable declaration.
2803 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2804 gnu_target.
2805 * gnu-nat.c (gnu_target): New variable.
2806 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2807 add_thread_silent, and add_thread calls.
2808 (gnu_nat_target::create_inferior): Pass gnu_target to
2809 add_thread_silent, thread_change_ptid call.
2810 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2811 call.
2812
5a8b8627
ST
28132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2814
2815 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2816 (gnu_nat_target::find_memory_regions): Remove unused
2817 `old_address' variable.
2818
366f550a
ST
28192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2820
2821 * gnu-nat.c: Include "gdbarch.h".
2822
f14871bf
ST
28232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2824
2825 * reply_mig_hack.awk (Error return): Cast function through
2826 void *, to bypass compiler function call check.
2827
c6887cfb
ST
28282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2829
2830 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
2831 $(srcdir)/reply_mig_hack.awk.
2832
6930bffe
ST
28332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2834
2835 * gnu-nat.h (gnu_debug_flag): Set type to bool.
2836
112c22ed
JG
28372020-05-30 Jonny Grant <jg@jguk.org>
2838
2839 * configure.ac (ACX_BUGURL): change bug URL to https.
2840
f68f85b5
PA
28412020-05-30 Pedro Alves <palves@redhat.com>
2842
2843 * cp-support.c (replace_typedefs_template): New.
2844 (replace_typedefs_qualified_name): Handle
2845 DEMANGLE_COMPONENT_TEMPLATE.
2846
976ca316
SM
28472020-05-29 Simon Marchi <simon.marchi@efficios.com>
2848
2849 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
2850 dwarf2/index-cache.h, dwarf2/index-write.c,
2851 dwarf2/index-write.h, dwarf2/line-header.c,
2852 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
2853 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
2854 variables and fields from `dwarf2_per_objfile` to just
2855 `per_objfile` throughout.
2856
989ade05
SM
28572020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
2858
2859 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2860 <push_dwarf_reg_entry_value>: Add comment.
2861
c47bae85
KB
28622020-05-28 Kevin Buettner <kevinb@redhat.com>
2863 Keith Seitz <keiths@redhat.com>
2864
2865 * python/python.c (do_start_initialization): Call PyEval_SaveThread
2866 instead of PyEval_ReleaseLock.
2867 (class gdbpy_gil): Move to earlier in file.
2868 (finalize_python): Set gdb_python_initialized.
2869 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
2870 when not initialized.
2871
44486dcf
SM
28722020-05-28 Simon Marchi <simon.marchi@efficios.com>
2873
2874 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2875 <push_dwarf_reg_entry_value>: Remove assert. Override
2876 per_objfile with caller_per_objfile.
2877
f030440d
TV
28782020-05-28 Tom de Vries <tdevries@suse.de>
2879
2880 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
2881 PR gold/15646 workaround to symbol kind "type".
2882
f0fbb768
TT
28832020-05-27 Tom Tromey <tromey@adacore.com>
2884
2885 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
2886
af0b2a3e
TT
28872020-05-27 Tom Tromey <tromey@adacore.com>
2888
2889 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
2890 Use htab_find_with_hash.
2891 <add_abbrev>: Remove "abbrev_number" parameter.
2892 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
2893 "abbrev_number" parameter. Use htab_find_slot_with_hash.
2894 (hash_abbrev): Add comment.
2895 (abbrev_table::lookup_abbrev): Move to header file.
2896 (abbrev_table::read): Update.
2897
7d00ffec
TT
28982020-05-27 Tom Tromey <tromey@adacore.com>
2899
2900 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
2901 method.
2902 <canonical_name>: New member.
2903 <raw_name>: Rename from "name".
2904 (partial_die_info): Initialize canonical_name.
2905 (scan_partial_symbols): Check raw_name.
2906 (partial_die_parent_scope, partial_die_full_name)
2907 (add_partial_symbol, add_partial_subprogram)
2908 (add_partial_enumeration, load_partial_dies): Use "name" method.
2909 (partial_die_info::name): New method.
2910 (partial_die_info::read, guess_partial_die_structure_name)
2911 (partial_die_info::fixup): Update.
2912
697bba18
TT
29132020-05-27 Tom Tromey <tromey@adacore.com>
2914
2915 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
2916 <get_ref_die_offset>: Inline.
2917 <get_ref_die_offset_complaint>: New method.
2918 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
2919 (attribute::get_ref_die_offset_complaint): Rename from
2920 get_ref_die_offset. Just issue complaint.
2921
c17ace43
HD
29222020-05-27 Hannes Domani <ssbssa@yahoo.de>
2923
2924 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
2925
96445f0b
HD
29262020-05-27 Hannes Domani <ssbssa@yahoo.de>
2927
2928 * exec.c (exec_file_attach): Use errno value of first openp failure.
2929
ac637ec3
HD
29302020-05-27 Hannes Domani <ssbssa@yahoo.de>
2931
2932 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
2933 Don't close thread handle.
2934
17ee85fc
TT
29352020-05-27 Tom Tromey <tom@tromey.com>
2936 Simon Marchi <simon.marchi@efficios.com>
2937
2938 * objfiles.h (struct objfile) <partial_symtabs>: Now a
2939 shared_ptr.
2940 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
2941 member.
2942 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
2943 dwarf2_per_bfd_objfile_data_key>: New globals.
2944 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
2945 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
2946 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
2947 shared.
2948 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
2949 short-circuit when sharing.
2950 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
2951 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
2952
39b16f87
SM
29532020-05-27 Simon Marchi <simon.marchi@efficios.com>
2954
2955 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
2956 to...
2957 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
2958 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
2959
fcf23d5b
SM
29602020-05-27 Simon Marchi <simon.marchi@efficios.com>
2961
2962 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
2963 build_name_components, find_name_components_bounds>:
2964 Add per_objfile parameter.
2965 (struct mapped_index) <symbol_name_at>: Likewise.
2966 (struct mapped_debug_names): Remove constructor.
2967 <dwarf2_per_objfile>: Remove field.
2968 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
2969 (mapped_index_base::find_name_components_bounds,
2970 mapped_index_base::build_name_components,
2971 dw2_expand_symtabs_matching_symbol): Likewise.
2972 (class mock_mapped_index) <symbol_name_at>: Likewise.
2973 (check_match): Likewise.
2974 (check_find_bounds_finds): Likewise.
2975 (test_mapped_index_find_name_component_bounds): Update.
2976 (CHECK_MATCH): Update.
2977 (dw2_expand_symtabs_matching): Update.
2978 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
2979 per_objfile parameter.
2980 <find_vec_in_debug_names>: Likewise.
2981 <m_per_objfile>: New field.
2982 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
2983 parameter.
2984 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2985 (dw2_debug_names_iterator::next): Update.
2986 (dw2_debug_names_lookup_symbol): Update.
2987 (dw2_debug_names_expand_symtabs_for_function): Update.
2988 (dw2_debug_names_map_matching_symbols): Update.
2989 (dw2_debug_names_expand_symtabs_matching): Update.
2990 (dwarf2_read_debug_names): Update.
2991
7188ed02
SM
29922020-05-27 Simon Marchi <simon.marchi@efficios.com>
2993
2994 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
2995 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
2996 move to dwarf2_per_objfile.
2997 <read_in_chain>: Remove.
2998 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
2999 remove_all_cus, age_comp_units>: New methods.
3000 <m_dwarf2_cus>: New member.
3001 (struct dwarf2_per_cu_data) <cu>: Remove.
3002 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3003 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3004 moved to methods of dwarf2_per_objfile.
3005 (dwarf2_clear_marks): Remove.
3006 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3007 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3008 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3009 (dwarf2_per_objfile::remove_all_cus): New.
3010 (class free_cached_comp_units) <~free_cached_comp_units>:
3011 Update.
3012 (load_cu): Update.
3013 (dw2_do_instantiate_symtab): Adjust.
3014 (fill_in_sig_entry_from_dwo_entry): Adjust.
3015 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3016 (cutu_reader::cutu_reader): Likewise.
3017 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3018 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3019 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3020 and dwarf2_per_objfile::age_comp_units.
3021 (load_partial_comp_unit): Update.
3022 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3023 (process_queue): Likewise.
3024 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3025 backlink.
3026 (dwarf2_read_addr_index): Likewise.
3027 (follow_die_offset): Likewise.
3028 (dwarf2_fetch_die_loc_sect_off): Likewise.
3029 (dwarf2_fetch_constant_bytes): Likewise.
3030 (dwarf2_fetch_die_type_sect_off): Likewise.
3031 (follow_die_sig_1): Likewise.
3032 (load_full_type_unit): Likewise.
3033 (read_signatured_type): Likewise.
3034 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3035 (dwarf2_cu::~dwarf2_cu): Remove.
3036 (dwarf2_per_objfile::get_cu): New.
3037 (dwarf2_per_objfile::set_cu): New.
3038 (age_cached_comp_units): Rename to...
3039 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3040 to std::unordered_map.
3041 (free_one_cached_comp_unit): Rename to...
3042 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3043 to std::unordered_map.
3044 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3045 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3046 a dwarf2_per_objfile in data.
3047 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3048 (dwarf2_clear_marks): Remove.
3049
2e671100
SM
30502020-05-27 Simon Marchi <simon.marchi@efficios.com>
3051
3052 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3053 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3054 (init_tu_and_read_dwo_dies): Likewise.
3055 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3056 (cutu_reader::cutu_reader): Likewise.
3057 (load_partial_comp_unit): Likewise.
3058 (process_psymtab_comp_unit): Update.
3059 (build_type_psymtabs_1): Update.
3060 (process_skeletonless_type_unit): Update.
3061 (load_full_comp_unit): Update.
3062 (find_partial_die): Update.
3063 (dwarf2_read_addr_index): Update.
3064 (read_signatured_type): Update.
3065
2e6a9f79
SM
30662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3067
3068 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3069 m_header_read_in>: New fields.
3070 <get_header>: New method.
3071 * dwarf2/read.c (per_cu_header_read_in): Remove.
3072 (dwarf2_per_cu_data::get_header): New.
3073 (dwarf2_per_cu_data::addr_size): Update.
3074 (dwarf2_per_cu_data::offset_size): Update.
3075 (dwarf2_per_cu_data::ref_addr_size): Update.
3076
1b555f17
SM
30772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3078
3079 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3080 (dw2_do_instantiate_symtab): Update.
3081 (queue_and_load_all_dwo_tus): Change parameter from
3082 dwarf2_per_cu_data to dwarf2_cu.
3083 (dwarf2_fetch_die_loc_sect_off): Update.
3084 (dwarf2_fetch_constant_bytes): Update.
3085 (dwarf2_fetch_die_type_sect_off): Update.
3086
8fc0b21d
SM
30872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3088
3089 * dwarf2/read.c (process_full_comp_unit,
3090 process_full_type_unit): Remove per_cu, per_objfile paramters.
3091 Add dwarf2_cu parameter.
3092 (process_queue): Update.
3093
168c9250
SM
30942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3095
3096 * dwarf2/read.c (create_cu_from_index_list): Replace
3097 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3098 (create_cus_from_index_list): Likewise.
3099 (create_cus_from_index): Likewise.
3100 (create_signatured_type_table_from_index): Likewise.
3101 (create_cus_from_debug_names_list): Likewise.
3102 (create_cus_from_debug_names): Likewise.
3103 (dwarf2_read_gdb_index): Update.
3104 (dwarf2_read_debug_names): Update.
3105
e286671b
TT
31062020-05-27 Tom Tromey <tom@tromey.com>
3107 Simon Marchi <simon.marchi@efficios.com>
3108
3109 * dwarf2/read.h (struct dwarf2_per_objfile)
3110 <get_type_for_signatured_type, set_type_for_signatured_type>:
3111 New methods.
3112 <m_type_map>: New member.
3113 (struct signatured_type) <type>: Remove.
3114 * dwarf2/read.c
3115 (dwarf2_per_objfile::get_type_for_signatured_type,
3116 dwarf2_per_objfile::set_type_for_signatured_type): New.
3117 (get_signatured_type): Use new methods.
3118
8adb8487
TT
31192020-05-27 Tom Tromey <tom@tromey.com>
3120 Simon Marchi <simon.marchi@efficios.com>
3121
3122 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3123 (struct dwarf2_per_objfile) <type_units>: New member.
3124 <get_type_unit_group_unshareable>: New method.
3125 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3126 num_symtabs, symtabs>: Remove; move to
3127 type_unit_group_unshareable.
3128 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3129 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3130 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3131
127bbf4b
SM
31322020-05-27 Simon Marchi <simon.marchi@efficios.com>
3133
3134 * dwarf2/read.h (struct dwarf2_per_cu_data):
3135 <dwarf2_per_objfile>: Remove.
3136 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3137 dwarf2_per_objfile.
3138 (create_signatured_type_table_from_index): Likewise.
3139 (create_signatured_type_table_from_debug_names): Likewise.
3140 (create_debug_type_hash_table): Likewise.
3141 (fill_in_sig_entry_from_dwo_entry): Likewise.
3142 (create_type_unit_group): Likewise.
3143 (read_comp_units_from_section): Likewise.
3144 (create_cus_hash_table): Likewise.
3145
f6e649dd
SM
31462020-05-27 Simon Marchi <simon.marchi@efficios.com>
3147
3148 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3149 dwarf2_per_cu_data::dwarf2_per_objfile.
3150 (compute_compunit_symtab_includes): Likewise.
3151 (dwarf2_cu::start_symtab): Likewise.
3152
aa66c379
SM
31532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3154
3155 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3156 parameter.
3157 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3158 (read_namespace_alias): Update.
3159 (lookup_die_type): Update.
3160 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3161 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3162 Update.
3163 (disassemble_dwarf_expression): Update.
3164
120ce1b5
SM
31652020-05-27 Simon Marchi <simon.marchi@efficios.com>
3166
3167 * dwarf2/read.h (struct dwarf2_queue_item): Add
3168 dwarf2_per_objfile parameter, assign new parameter.
3169 <per_objfile>: New field.
3170 * dwarf2/read.c (free_one_cached_comp_unit): Add
3171 dwarf2_per_objfile parameter.
3172 (queue_comp_unit): Likewise.
3173 (dw2_do_instantiate_symtab): Update.
3174 (process_psymtab_comp_unit): Update.
3175 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3176 (process_imported_unit_die): Update.
3177 (queue_and_load_dwo_tu): Update.
3178 (follow_die_offset): Update.
3179 (follow_die_sig_1): Update.
3180
9f47c707
SM
31812020-05-27 Simon Marchi <simon.marchi@efficios.com>
3182
3183 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3184 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3185 (read_call_site_scope): Assign per_objfile.
3186 (dwarf2_per_cu_data::objfile): Remove.
3187 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3188 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3189 dwarf2_per_objfile parameter.
3190 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3191 dwarf2_per_objfile parameter.
3192 (dwarf_expr_reg_to_entry_parameter): Add output
3193 dwarf2_per_objfile parameter.
3194 (locexpr_get_frame_base): Update.
3195 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3196 <push_dwarf_reg_entry_value>: Update.
3197 <call_site_to_target_addr>: Update.
3198 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3199 parameter.
3200 (value_of_dwarf_reg_entry): Update.
3201 (rw_pieced_value): Update.
3202 (indirect_synthetic_pointer): Update.
3203 (dwarf2_evaluate_property): Update.
3204 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3205 parameter.
3206 (locexpr_read_variable): Update.
3207 (locexpr_get_symbol_read_needs): Update.
3208 (loclist_read_variable): Update.
3209
14095eb3
SM
32102020-05-27 Simon Marchi <simon.marchi@efficios.com>
3211
3212 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3213 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3214 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3215 parameter.
3216 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3217 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3218 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3219 parameter.
3220 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3221 sect_variable_value): Add dwarf2_per_objfile parameter.
3222 (class dwarf_evaluate_loc_desc) <dwarf_call,
3223 dwarf_variable_value>: Update.
3224 (fetch_const_value_from_synthetic_pointer): Add
3225 dwarf2_per_objfile parameter.
3226 (fetch_const_value_from_synthetic_pointer): Update.
3227 (coerced_pieced_ref): Update.
3228 (class symbol_needs_eval_context) <dwarf_call,
3229 dwarf_variable_value>: Update.
3230 (dwarf2_compile_expr_to_ax): Update.
3231
3c3cd3d4
SM
32322020-05-27 Simon Marchi <simon.marchi@efficios.com>
3233
3234 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3235 parameter.
3236 (dwarf2_evaluate_loc_desc_full): Update.
3237
82ca3f51
SM
32382020-05-27 Simon Marchi <simon.marchi@efficios.com>
3239
3240 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3241 parameter.
3242 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3243 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3244 dwarf2_per_objfile parameter.
3245 (decode_debug_loc_dwo_addresses): Likewise.
3246 (dwarf2_find_location_expression): Update.
3247 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3248 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3249 parameter.
3250 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3251 parameter.
3252 (locexpr_describe_location_1): Likewise.
3253 (locexpr_describe_location): Update.
3254
4b167ea1
SM
32552020-05-27 Simon Marchi <simon.marchi@efficios.com>
3256
3257 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3258 Remove.
3259 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3260 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3261 (dwarf2_compile_property_to_c): Update.
3262 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3263 use text offset from objfile.
3264 (locexpr_tracepoint_var_ref): Update.
3265 (locexpr_generate_c_location): Update.
3266 (loclist_describe_location): Update.
3267 (loclist_tracepoint_var_ref): Update.
3268 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3269 dwarf2_per_objfile parameter.
3270 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3271 use text offset from objfile.
3272 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3273
89b07335
SM
32742020-05-27 Simon Marchi <simon.marchi@efficios.com>
3275
3276 * dwarf2/expr.h (struct dwarf_expr_context)
3277 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3278 <offset>: Remove.
3279 <per_objfile>: New member.
3280 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3281 dwarf2_per_objfile parameter. Don't set offset, set
3282 per_objfile.
3283 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3284 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3285 a dwarf2_per_objfile object instead of an offset.
3286 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3287 constructor.
3288 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3289 to dwarf2_expr_executor constructor. Don't set offset.
3290 (dwarf2_fetch_cfa_info): Update.
3291 (struct dwarf2_frame_cache) <text_offset>: Remove.
3292 <per_objfile>: New field.
3293 (dwarf2_frame_cache): Update.
3294 (dwarf2_frame_prev_register): Update.
3295 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3296 <dwarf_evaluate_loc_desc>: Add constructor.
3297 (dwarf2_evaluate_loc_desc_full): Update.
3298 (dwarf2_locexpr_baton_eval): Update.
3299 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3300 Add constructor.
3301 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3302
293e7e51
SM
33032020-05-27 Simon Marchi <simon.marchi@efficios.com>
3304
3305 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3306 addr_sized_int_type>: Move to dwarf2_cu.
3307 <int_type>: Move to dwarf2_per_objfile.
3308 (struct dwarf2_per_objfile) <int_type>: Move here.
3309 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3310 addr_sized_int_type>: Move here.
3311 (read_func_scope): Update.
3312 (read_array_type): Update.
3313 (read_tag_string_type): Update.
3314 (attr_to_dynamic_prop): Update.
3315 (dwarf2_per_cu_data::int_type): Rename to...
3316 (dwarf2_per_objfile::int_type): ... this.
3317 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3318 (dwarf2_cu::addr_sized_int_type): ... this.
3319 (read_subrange_type): Update.
3320 (dwarf2_per_cu_data::addr_type): Rename to...
3321 (dwarf2_cu::addr_type): ... this.
3322 (set_die_type): Update.
3323
64874a40
SM
33242020-05-27 Simon Marchi <simon.marchi@efficios.com>
3325
3326 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3327 data through per_cu->cu.
3328
4ab09049
SM
33292020-05-27 Simon Marchi <simon.marchi@efficios.com>
3330
3331 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3332 dwarf2_per_cu_data parameter fo dwarf2_cu.
3333 (lookup_dwo_type_unit): Likewise.
3334 (read_cutu_die_from_dwo): Likewise.
3335 (lookup_dwo_unit): Likewise.
3336 (open_and_init_dwo_file): Likewise.
3337 (lookup_dwo_cutu): Likewise.
3338 (lookup_dwo_comp_unit): Likewise.
3339 (lookup_dwo_type_unit): Likewise.
3340 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3341 (cutu_reader::cutu_reader): Update.
3342
47b14e86
SM
33432020-05-27 Simon Marchi <simon.marchi@efficios.com>
3344
3345 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3346 parameter.
3347 (process_full_type_unit): Likewise.
3348 (process_queue): Update.
3349
43182c09
SM
33502020-05-27 Simon Marchi <simon.marchi@efficios.com>
3351
3352 * dwarf2/read.c (recursively_compute_inclusions): Add
3353 dwarf2_per_objfile parameter.
3354 (compute_compunit_symtab_includes): Likewise.
3355 (process_cu_includes): Update.
3356
7aa104c4
SM
33572020-05-27 Simon Marchi <simon.marchi@efficios.com>
3358
3359 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3360 parameter.
3361 (create_type_unit_group): Update.
3362 (process_psymtab_comp_unit_reader): Update.
3363 (build_type_psymtabs_reader): Update.
3364
e3beb21d
SM
33652020-05-27 Simon Marchi <simon.marchi@efficios.com>
3366
3367 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3368 object through m_this_cu->cu.
3369
d460f660
SM
33702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3371
3372 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3373 the info parameter.
3374 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3375
ab432490
SM
33762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3377
3378 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3379 per_objfile parameter.
3380 (load_full_type_unit): Add per_objfile parameter.
3381 (read_signatured_type): Likewise.
3382 (load_full_comp_unit): Likewise.
3383 (load_cu): Likewise.
3384 (dw2_do_instantiate_symtab): Likewise.
3385 (dw2_get_file_names): Likewise.
3386 (dw2_map_symtabs_matching_filename): Update.
3387 (dw_expand_symtabs_matching_file_matcher): Update.
3388 (dw2_map_symbol_filenames): Update.
3389 (process_psymtab_comp_unit): Add per_objfile parameter.
3390 (build_type_psymtabs_1): Update.
3391 (process_skeletonless_type_unit): Update.
3392 (dwarf2_build_psymtabs_hard): Update.
3393 (load_partial_comp_unit): Add per_objfile parameter.
3394 (scan_partial_symbols): Update.
3395 (load_full_comp_unit): Add per_objfile parameter.
3396 (process_imported_unit_die): Update.
3397 (create_cus_hash_table): Update.
3398 (find_partial_die): Update.
3399 (dwarf2_read_addr_index): Update.
3400 (follow_die_offset): Update.
3401 (dwarf2_fetch_die_loc_sect_off): Update.
3402 (dwarf2_fetch_constant_bytes): Update.
3403 (dwarf2_fetch_die_type_sect_off): Update.
3404 (follow_die_sig_1): Update.
3405 (load_full_type_unit): Add per_objfile parameter.
3406 (read_signatured_type): Likewise.
3407
313bad1b
SM
34082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3409
3410 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3411 of objfile_name.
3412
c3699833
SM
34132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3414
3415 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3416 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3417 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3418 field.
3419 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3420 (create_cus_from_index): Update.
3421 (dwarf2_read_gdb_index): Update.
3422 (create_cus_from_debug_names): Update.
3423 (dwarf2_read_debug_names): Update.
3424 (get_abbrev_section_for_cu): Update.
3425 (create_all_comp_units): Update.
3426 (read_attribute_value): Update.
3427 (get_debug_line_section): Update.
3428 * dwarf2/index-cache.c (index_cache::store): Update.
3429 * dwarf2/index-write.c (save_gdb_index_command): Update.
3430 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3431
1859c670
SM
34322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3433
3434 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3435 member.
3436 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3437 dwarf2_per_cu_data::per_bfd.
3438 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3439 (create_type_unit_group): Likewise.
3440 (queue_comp_unit): Remove reference to
3441 per_cu->dwarf2_per_objfile.
3442 (maybe_queue_comp_unit): Likewise.
3443 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3444 (create_cus_hash_table): Assign new field.
3445
5e22e966
SM
34462020-05-27 Simon Marchi <simon.marchi@efficios.com>
3447
3448 * dwarf2/read.c: Replace
3449 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3450 dwarf2_cu->per_objfile throughout.
3451
97a1449a
SM
34522020-05-27 Simon Marchi <simon.marchi@efficios.com>
3453
3454 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3455 parameter, don't use per_cu->dwarf2_per_objfile.
3456 (dw2_instantiate_symtab): Likewise.
3457 (dw2_find_last_source_symtab): Update.
3458 (dw2_map_expand_apply): Update.
3459 (dw2_lookup_symbol): Update.
3460 (dw2_expand_symtabs_for_function): Update.
3461 (dw2_expand_all_symtabs): Update.
3462 (dw2_expand_symtabs_with_fullname): Update.
3463 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3464 don't use per_cu->dwarf2_per_objfile.
3465 (dw2_expand_marked_cus): Update.
3466 (dw2_find_pc_sect_compunit_symtab): Update.
3467 (dw2_debug_names_lookup_symbol): Update.
3468 (dw2_debug_names_expand_symtabs_for_function): Update.
3469 (dw2_debug_names_map_matching_symbols): Update.
3470 (dwarf2_psymtab::expand_psymtab): Update.
3471
9e021579
SM
34722020-05-27 Simon Marchi <simon.marchi@efficios.com>
3473
3474 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3475 <per_objfile>: New member.
3476 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3477 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3478 call to dwarf2_cu.
3479 (cutu_reader::cutu_reader): Update.
3480 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3481
ae090bdb
SM
34822020-05-27 Simon Marchi <simon.marchi@efficios.com>
3483
3484 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3485 struct dwarf2_per_objfile.
3486 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3487 dwarf2_per_bfd.
3488 * dwarf2/read.c (set_die_type): Update.
3489 (get_die_type_at_offset): Update.
3490
af758d11
SM
34912020-05-27 Tom Tromey <tom@tromey.com>
3492 Simon Marchi <simon.marchi@efficios.com>
3493
3494 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3495 method.
3496 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3497 get_symtab, set_symtab>: New methods.
3498 <m_symtabs>: New field.
3499 (struct dwarf2_psymtab): Derive from partial_symtab.
3500 <readin_p, get_compunit_symtab>: Declare methods.
3501 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3502 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3503 New methods.
3504 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3505 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3506 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3507 (dw2_symtab_iter_next, dw2_print_stats)
3508 (dw2_expand_symtabs_with_fullname)
3509 (dw2_expand_symtabs_matching_one)
3510 (dw_expand_symtabs_matching_file_matcher)
3511 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3512 (dw2_debug_names_iterator::next)
3513 (dw2_debug_names_map_matching_symbols)
3514 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3515 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3516 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3517 New methods.
3518 (get_compunit_symtab, process_full_comp_unit)
3519 (process_full_type_unit): Update.
3520 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3521
5989a64e
SM
35222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3523
3524 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3525 then introduce a new dwarf2_per_objfile type.
3526 <read_line_string>: Move to the new dwarf2_per_objfile type.
3527 <objfile>: Likewise.
3528 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3529 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3530 dwarf2_per_objfile->per_bfd.
3531 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3532 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3533 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3534 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3535 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3536 (dwarf2_per_objfile::locate_sections): Rename to...
3537 (dwarf2_per_bfd::locate_sections): ... this.
3538 (dwarf2_per_objfile::get_cutu): Rename to...
3539 (dwarf2_per_bfd::get_cutu): ... this.
3540 (dwarf2_per_objfile::get_cu): Rename to...
3541 (dwarf2_per_bfd::get_cu): ... this.
3542 (dwarf2_per_objfile::get_tu): Rename to...
3543 (dwarf2_per_bfd::get_tu): ... this.
3544 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3545 (dwarf2_per_bfd::allocate_per_cu): ... this.
3546 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3547 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3548 (get_gdb_index_contents_ftype): Change parameter from
3549 dwarf2_per_objfile to dwarf2_per_bfd.
3550 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3551 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3552
a50264ba
TT
35532020-05-27 Tom Tromey <tom@tromey.com>
3554 Simon Marchi <simon.marchi@efficios.com>
3555
3556 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3557 (allocate_piece_closure): Set "per_objfile" member.
3558 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3559 (locexpr_describe_location, loclist_describe_location): Use new
3560 member.
3561 * dwarf2/read.c (read_call_site_scope)
3562 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3563 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3564 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3565 handle_data_member_location): Set per_objfile member.
3566 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3567 member.
3568 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3569
d3473f0c
TT
35702020-05-27 Tom Tromey <tom@tromey.com>
3571
3572 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3573 allocate_signatured_type>: Declare new methods.
3574 <m_num_psymtabs>: New member.
3575 (struct dwarf2_per_cu_data) <index>: New member.
3576 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3577 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3578 (create_cu_from_index_list): Use allocate_per_cu.
3579 (create_signatured_type_table_from_index)
3580 (create_signatured_type_table_from_debug_names)
3581 (create_debug_type_hash_table, add_type_unit)
3582 (read_comp_units_from_section): Use allocate_signatured_type.
3583
5717c425
TT
35842020-05-27 Tom Tromey <tom@tromey.com>
3585
3586 * psymtab.c (partial_map_expand_apply)
3587 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3588 (psym_lookup_global_symbol_language)
3589 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3590 (psym_print_stats, psym_expand_symtabs_for_function)
3591 (psym_map_symbol_filenames, psym_map_matching_symbols)
3592 (psym_expand_symtabs_matching)
3593 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3594 (maintenance_check_psymtabs): Update.
3595 * psympriv.h (struct partial_symtab) <readin_p,
3596 get_compunit_symtab>: Add objfile parameter.
3597 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3598 Likewise.
3599 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3600 get_compunit_symtab>: Likewise.
3601 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3602
45940949
TT
36032020-05-27 Tom Tromey <tom@tromey.com>
3604
3605 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3606 member.
3607 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3608 (create_cu_from_index_list)
3609 (create_signatured_type_table_from_index)
3610 (create_signatured_type_table_from_debug_names)
3611 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3612 (dwarf2_create_include_psymtab)
3613 (create_debug_type_hash_table, add_type_unit)
3614 (create_type_unit_group, read_comp_units_from_section)
3615 (dwarf2_compute_name, create_cus_hash_table)
3616 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3617 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3618 obstack.
3619 (dw2_get_real_path): Likewise. Change argument to
3620 dwarf2_per_objfile.
3621
f8c6d152
LM
36222020-05-27 Luis Machado <luis.machado@linaro.org>
3623
3624 PR tdep/26000
3625 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3626 for ldrd (immediate).
3627
e98d2e6d
PW
36282020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3629
3630 * command.h: Add comment giving the name of class_tui.
3631 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3632 create the fake command for the help for class_tui.
3633
53a47a3e
TT
36342020-05-26 Tom Tromey <tromey@adacore.com>
3635
3636 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3637 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3638 (val_atr): New function.
3639 (value_val_atr): Use it.
3640 * ada-valprint.c (print_optional_low_bound): Change low bound
3641 handling for enums.
3642 (val_print_packed_array_elements): Don't call discrete_position.
3643 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3644 discrete_position for enum types.
3645 * language.c (default_print_array_index): Change type.
3646 * language.h (struct language_defn) <la_print_array_index>: Add
3647 index_type parameter, change type of index_value.
3648 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3649 (default_print_array_index): Update.
3650 * valprint.c (maybe_print_array_index): Don't call
3651 value_from_longest. Update.
3652 (value_print_array_elements): Don't call discrete_position.
3653
0bc2354b
TT
36542020-05-26 Tom Tromey <tromey@adacore.com>
3655
3656 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3657 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3658
1218a4bf
CDA
36592020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3660
3661 PR gdb/13519
3662 * avr-tdep.c (avr_integer_to_address): Return data or code
3663 address accordingly to the second 'type' argument of the
3664 function.
3665
92651b1d
MW
36662020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3667
3668 * infcmd.c, inferior.h: (construct_inferior_arguments):
3669 Moved function from here to gdbsupport/common-inferior.{h,cc}
3670
0a4f5f8c
TT
36712020-05-23 Tom Tromey <tom@tromey.com>
3672
3673 Revert commit eca1f90c:
3674 * NEWS: Remove entry for completion styling.
3675 * completer.c (_rl_completion_prefix_display_length): Move
3676 declaration later.
3677 (gdb_fnprint): Revert.
3678 (gdb_display_match_list_1): Likewise.
3679 * cli/cli-style.c (completion_prefix_style)
3680 (completion_difference_style, completion_suffix_style): Remove.
3681 (_initialize_cli_style): Revert.
3682 * cli/cli-style.h (completion_prefix_style)
3683 (completion_difference_style, completion_suffix_style): Don't
3684 declare.
3685
e08bd6c5
PA
36862020-05-24 Pedro Alves <palves@redhat.com>
3687
3688 * symtab.c (completion_list_add_name): Return boolean indication
3689 of whether the symbol matched.
3690 (completion_list_add_symbol): Don't try to remove C++ aliases if
3691 the symbol didn't match in the first place.
3692 * symtab.h (completion_list_add_name): Return bool.
3693
ceacbf6e
SM
36942020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3695
3696 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3697 type::field.
3698
26f16254
JB
36992020-05-23 Joel Brobecker <brobecker@adacore.com>
3700
3701 GDB 9.2 released.
3702
eca1f90c
TT
37032020-05-23 Tom Tromey <tom@tromey.com>
3704
3705 * NEWS: Add entry for completion styling.
3706 * completer.c (_rl_completion_prefix_display_length): Move
3707 declaration earlier.
3708 (gdb_fnprint): Use completion_style.
3709 (gdb_display_match_list_1): Likewise.
3710 * cli/cli-style.c (completion_prefix_style)
3711 (completion_difference_style, completion_suffix_style): New
3712 globals.
3713 (_initialize_cli_style): Register new globals.
3714 * cli/cli-style.h (completion_prefix_style)
3715 (completion_difference_style, completion_suffix_style): Declare.
3716
51e2cfa2
PA
37172020-05-23 Pedro Alves <palves@redhat.com>
3718
3719 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3720 (parse_escape): Use ISDIGIT instead of isdigit.
3721 (puts_debug): Use gdb_isprint instead of isprint.
3722 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3723 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3724 ISSPACE instead of isspace.
3725 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3726 instead of isspace.
3727 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3728 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3729 instead of isxdigit and ISDIGIT instead of isdigit.
3730
80fc5e77
SM
37312020-05-22 Simon Marchi <simon.marchi@efficios.com>
3732
3733 * gdbtypes.h (struct type) <field>: New method.
3734 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3735 or type::field.
3736
3cabb6b0
SM
37372020-05-22 Simon Marchi <simon.marchi@efficios.com>
3738
3739 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3740 (TYPE_FIELDS): Use type::fields. Change all call sites that
3741 modify the propery to use type::set_fields instead.
3742
1f704f76
SM
37432020-05-22 Simon Marchi <simon.marchi@efficios.com>
3744
3745 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3746 type::num_fields instead.
3747
5e33d5f4
SM
37482020-05-22 Simon Marchi <simon.marchi@efficios.com>
3749
3750 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3751 methods.
3752 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3753 that modify the number of fields to use type::set_num_fields
3754 instead.
3755
9392ebb3
TT
37562020-05-22 Tom Tromey <tromey@adacore.com>
3757
3758 * compile/compile-object-load.h (munmap_list_free): Don't
3759 declare.
3760
7c13f4e8
AB
37612020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3762
3763 * annotate.c (annotate_source_line): Update return type, add call
3764 to update current symtab and line.
3765 * annotate.h (annotate_source_line): Update return type, and
3766 extend header comment.
3767 * source.c (info_line_command): Check annotation_level before
3768 calling annotate_source_line.
3769 * stack.c (print_frame_info): If calling annotate_source_line
3770 returns true, then don't print any other source line information.
3771
aa370940
SM
37722020-05-21 Simon Marchi <simon.marchi@efficios.com>
3773
3774 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3775
84d53fa9
SM
37762020-05-21 Simon Marchi <simon.marchi@efficios.com>
3777
3778 * coffread.c (patch_type): Remove NULL check before xfree.
3779 * corefile.c (set_gnutarget): Likewise.
3780 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3781 * exec.c (build_section_table): Likewise.
3782 * remote.c (remote_target::pass_signals): Likewise.
3783 * utils.c (n_spaces): Likewise.
3784 * cli/cli-script.c (document_command): Likewise.
3785 * i386-windows-tdep.c (core_process_module_section): Likewise.
3786 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3787
9d428aae
SM
37882020-05-20 Simon Marchi <simon.marchi@efficios.com>
3789
3790 * symfile.c (reread_symbols): Clear objfile's section_offsets
3791 vector and section indices, re-compute them by calling
3792 sym_offsets.
3793
250106a7
TT
37942020-05-20 Tom Tromey <tromey@adacore.com>
3795
3796 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 3797 (desc_one_bound, desc_index_type): Compute field name.
250106a7 3798
9a0bacfb
TV
37992020-05-20 Tom de Vries <tdevries@suse.de>
3800
3801 PR symtab/25833
3802 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3803
7b958a48
AM
38042020-05-20 Alan Modra <amodra@gmail.com>
3805
3806 PR 25993
3807 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3808 bfd_set_filename.
3809 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3810 passed to bfd_set_filename.
3811 * symfile-mem.c (add_vsyscall_page): Likewise for string
3812 passed to symbol_file_add_from_memory.
3813 (symbol_file_add_from_memory): Make name param a const char* and
3814 don't strdup.
3815
c7e97679
AM
38162020-05-20 Alan Modra <amodra@gmail.com>
3817
3818 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3819 rather than accessing bfd->filename directly.
3820 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3821 and use bfd_section_name.
3822 * dwarf2/frame.c (decode_frame_entry): Likewise.
3823 * exec.c (exec_set_section_address): Likewise.
3824 * solib-aix.c (solib_aix_bfd_open): Likewise.
3825 * stap-probe.c (get_stap_base_address): Likewise.
3826 * symfile.c (reread_symbols): Likewise.
3827
563c591b
TT
38282020-05-19 Tom Tromey <tromey@adacore.com>
3829
3830 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
3831
f408d82c
SM
38322020-05-19 Simon Marchi <simon.marchi@efficios.com>
3833
3834 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
3835
98c59b52
PA
38362020-05-19 Pedro Alves <palves@redhat.com>
3837
3838 * NEWS (set exec-file-mismatch): Adjust entry.
3839 * exec.c: Include "build-id.h".
3840 (validate_exec_file): Try to match build IDs instead of filenames.
3841 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
3842 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
3843 and pass down 'warn_if_slow'.
3844 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
3845 gdb_bfd_open_closure to pass it down.
3846 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
3847
4111f652
PA
38482020-05-19 Pedro Alves <palves@redhat.com>
3849
3850 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
3851 * target.c (target_fileio_open_1): Rename to target_fileio_open
3852 and make extern. Use bool.
3853 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
3854 (target_fileio_read_alloc_1): Adjust.
3855 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
3856 (target_fileio_open_warn_if_slow): Delete declaration.
3857
ad80db5b
PA
38582020-05-19 Pedro Alves <palves@redhat.com>
3859
3860 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
3861 Adjust all callers.
3862
1d6ce4d3
YS
38632020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
3864
3865 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
3866 whether disp is negative.
3867
9005fbbb
SM
38682020-05-19 Simon Marchi <simon.marchi@efficios.com>
3869
3870 * symfile.h (struct symfile_segment_data)
3871 <~symfile_segment_data>: Remove.
3872 <segment_info>: Change to std::vector.
3873 * symfile.c (default_symfile_segments): Update.
3874 * elfread.c (elf_symfile_segments): Update.
3875
68b888ff
SM
38762020-05-19 Simon Marchi <simon.marchi@efficios.com>
3877
3878 * symfile.h (struct symfile_segment_data) <struct segment>: New.
3879 <segments>: New.
3880 <segment_bases, segment_sizes>: Remove.
3881 * symfile.c (default_symfile_segments): Update.
3882 * elfread.c (elf_symfile_segments): Update.
3883 * remote.c (remote_target::get_offsets): Update.
3884 * solib-target.c (solib_target_relocate_section_addresses):
3885 Update.
3886
62982abd
SM
38872020-05-19 Simon Marchi <simon.marchi@efficios.com>
3888
3889 * symfile.h (struct symfile_segment_data): Initialize fields.
3890 <~symfile_segment_data>: Add.
3891 (symfile_segment_data_up): New.
3892 (struct sym_fns) <sym_segments>: Return a
3893 symfile_segment_data_up.
3894 (default_symfile_segments): Return a symfile_segment_data_up.
3895 (free_symfile_segment_data): Remove.
3896 (get_symfile_segment_data): Return a symfile_segment_data_up.
3897 * symfile.c (default_symfile_segments): Likewise.
3898 (get_symfile_segment_data): Likewise.
3899 (free_symfile_segment_data): Remove.
3900 (symfile_find_segment_sections): Update.
3901 * elfread.c (elf_symfile_segments): Return a
3902 symfile_segment_data_up.
3903 * remote.c (remote_target::get_offsets): Update.
3904 * solib-target.c (solib_target_relocate_section_addresses):
3905 Update.
3906 * symfile-debug.c (debug_sym_segments): Return a
3907 symfile_segment_data_up.
3908
7f204339
RO
39092020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3910
e52a0f1b
RO
3911 PR build/25981
3912 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
3913 Hardcode register numbers.
3914
7f204339
RO
3915 PR build/25981
3916 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
3917 procfs_find_LDT_entry): Remove.
3918 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
3919 procfs_find_LDT_entry): Remove.
3920 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
3921 Remove.
3922
7f32a4d5
PA
39232020-05-17 Pedro Alves <palves@redhat.com>
3924 Andrew Burgess <andrew.burgess@embecosm.com>
3925 Keno Fischer <keno@juliacomputing.com>
3926
3927 PR gdb/25741
3928 * breakpoint.c (build_target_condition_list): Update comments.
3929 (build_target_command_list): Update comments and skip matching
3930 locations.
3931 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
3932 a separate function. Simplify "set breakpoint auto-hw off"
3933 handling.
3934 (insert_breakpoints): Update comment.
3935 (tracepoint_locations_match): New parameter. For breakpoints,
3936 compare location types too, if the caller wants to.
3937 (handle_automatic_hardware_breakpoints): New functions.
3938 (bp_location_is_less_than): Also sort by location type and
3939 hardware breakpoint length.
3940 (update_global_location_list): Handle "set breakpoint auto-hw on"
3941 here.
3942 (update_breakpoint_locations): Ask breakpoint_locations_match to
3943 ignore location types.
3944
7d93a1e0
SM
39452020-05-16 Simon Marchi <simon.marchi@efficios.com>
3946
3947 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
3948 type::name instead.
3949
d0e39ea2
SM
39502020-05-16 Simon Marchi <simon.marchi@efficios.com>
3951
3952 * gdbtypes.h (struct type) <name, set_name>: New methods.
3953 (TYPE_CODE): Use type::name. Change all call sites used to set
3954 the name to use type::set_name instead.
3955
2dab0c7b
TT
39562020-05-16 Tom Tromey <tom@tromey.com>
3957
3958 * top.c (quit_force): Update.
3959 * infrun.c (handle_no_resumed): Update.
3960 * top.h (all_uis): New function.
3961 (ALL_UIS): Remove.
3962
59f7bd8d
SM
39632020-05-16 Simon Marchi <simon.marchi@efficios.com>
3964
3965 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
3966
9bf058f0
PA
39672020-05-16 Pedro Alves <palves@redhat.com>
3968
3969 * ia64-linux-nat.c
3970 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
3971 Declare method.
3972 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
3973
8f86ae1a
SM
39742020-05-15 Simon Marchi <simon.marchi@efficios.com>
3975
3976 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
3977 (sparc64_adi_info): Likewise.
3978
d6bc0792
TT
39792020-05-15 Tom Tromey <tom@tromey.com>
3980
3981 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
3982 block_objfile.
3983 (lookup_objfile_from_block): Remove.
3984 (lookup_symbol_in_block, lookup_symbol_in_static_block)
3985 (lookup_global_symbol): Use block_objfile.
3986 * symtab.h (lookup_objfile_from_block): Don't declare.
3987 * printcmd.c (clear_dangling_display_expressions): Use
3988 block_objfile.
3989 * parse.c (operator_check_standard): Use block_objfile.
3990
8c14c3a3
TT
39912020-05-15 Tom Tromey <tom@tromey.com>
3992
3993 * language.c (language_alloc_type_symbol): Set
3994 SYMBOL_SECTION.
3995 * symtab.c (initialize_objfile_symbol): Remove.
3996 (allocate_symbol): Remove.
3997 (allocate_template_symbol): Remove.
3998 * dwarf2/read.c (fixup_go_packaging): Use "new".
3999 (new_symbol): Use "new".
4000 (read_variable): Don't call initialize_objfile_symbol. Use
4001 "new".
4002 (read_func_scope): Use "new".
4003 * xcoffread.c (process_xcoff_symbol): Don't call
4004 initialize_objfile_symbol.
4005 (SYMBOL_DUP): Remove.
4006 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4007 "new".
4008 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4009 (allocate_template_symbol): Don't declare.
4010 (struct symbol): Add copy constructor. Change defaults.
4011 * jit.c (finalize_symtab): Use "new".
4012 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4013 Use "new".
4014 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4015 (common_block_end): Use "new".
4016 * mdebugread.c (parse_symbol): Use "new".
4017 (new_symbol): Likewise.
4018
5b4a1a8d
PW
40192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4020
4021 * NEWS: Mention changes to help and apropos.
4022
57b4f16e
PW
40232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4024
4025 * command.h (enum command_class): Improve comments, document
4026 that class_alias is for user-defined aliases, give the class
4027 name for each class, remove unused class_xdb.
4028 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4029 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4030 by a precise class.
4031 * infcmd.c (_initialize_infcmd): Likewise.
4032 * reverse.c (_initialize_reverse): Likewise.
4033 * stack.c (_initialize_stack): Likewise.
4034 * symfile.c (_initialize_symfile): Likewise.
4035 * tracepoint.c (_initialize_tracepoint): Likewise.
4036
7c05caf7
PW
40372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4038
4039 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4040 when their aliased command is traversed.
4041 (help_cmd): Add fput_command_names_styled call to
4042 output command name and aliases when command has an alias.
4043
3b3aaacb
PW
40442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4045
4046 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4047 * cli/cli-decode.c (help_cmd_list): Declare as static,
4048 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4049 a command together with the command.
4050 (fput_command_name_styled, fput_command_names_styled): New functions.
4051 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4052 fput_command_name_styled.
4053 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4054 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4055
7aa1b46f
PW
40562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4057
4058 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4059 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4060 * command.h (cmd_show_list): Likewise.
4061 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4062 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4063
89bcba74
PW
40642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4065
4066 * unittests/command-def-selftests.c (traverse_command_structure):
4067 Verify all commands of a list have the same prefix command and
4068 that only the top cmdlist commands have a null prefix.
4069
3f4d92eb
PW
40702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4071
4072 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4073 as prefix, not one of its aliases.
4074 (set_cmd_prefix): Remove.
4075 (do_add_cmd): Centralize the setting of the prefix of a command, when
4076 command is defined after its full chain of prefix commands.
4077 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4078 (add_setshow_cmd_full): Likewise.
4079 (update_prefix_field_of_prefixed_commands): New function.
4080 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4081 update_prefix_field_of_prefixed_commands.
4082 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4083 addresses of remote_set_cmdlist and remote_show_cmdlist given
4084 as argument, not the address of an argument.
4085 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4086 * gdb/remote.c (_initialize_remote): Likewise.
4087
0605465f
PW
40882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4089
4090 * cli/cli-cmds.c (alias_command): Check for an existing alias
4091 using lookup_cmd_composition, as valid_command_p is too strict
4092 and forbids aliases that are the prefix of an existing alias
4093 or command.
4094 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4095 command is properly recognised as a valid command.
4096
58e6ac70
PW
40972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4098
4099 * unittests/help-doc-selftests.c: Rename to
4100 unittests/command-def-selftests.c
4101 * unittests/command-def-selftests.c (help_doc_tests): Update some
4102 comments.
4103 (command_structure_tests, traverse_command_structure): New namespace
4104 and function.
4105 (command_structure_invariants_tests): New function.
4106 (_initialize_command_def_selftests) Renamed from
4107 _initialize_help_doc_selftests, register command_structure_invariants
4108 selftest.
4109
a7b9ceb8
PW
41102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4111
4112 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4113 an alias of 'show'.
4114
b2188a06
JB
41152020-05-15 Joel Brobecker <brobecker@adacore.com>
4116
4117 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4118 ada_is_fixed_point_type. Update all callers.
4119 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4120 all callers.
4121 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4122 Update all callers.
4123 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4124 print_fixed_point_type. Update all callers.
4125 * ada-valprint.c (ada_value_print_num): Replace call to
4126 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4127
a51951c2
KB
41282020-05-14 Kevin Buettner <kevinb@redhat.com>
4129
4130 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4131 processors.
4132 (cpu_supports_bts): Add CV_AMD case.
4133
29d6859f
LM
41342020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4135 Simon Marchi <simon.marchi@efficios.com>
4136
4137 * infrun.c (stop_all_threads): Collect multiple wait events at
4138 each pass.
4139
78134374
SM
41402020-05-14 Simon Marchi <simon.marchi@efficios.com>
4141
4142 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4143 type::code instead.
4144
67607e24
SM
41452020-05-14 Simon Marchi <simon.marchi@efficios.com>
4146
4147 * gdbtypes.h (struct type) <code, set_code>: New methods.
4148 (TYPE_CODE): Use type::code. Change all call sites used to set
4149 the code to use type::set_code instead.
4150
a05575d3
TBA
41512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4152 Tom de Vries <tdevries@suse.de>
4153 Pedro Alves <palves@redhat.com>
4154
4155 PR threads/25478
4156 * infrun.c (stop_all_threads): Do NOT ignore
4157 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4158 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4159 received.
4160 (handle_no_resumed): Remove code handling a live inferior with no
4161 threads.
4162 * remote.c (has_single_non_exited_thread): New.
4163 (remote_target::update_thread_list): Do not delete a thread if is
4164 the last thread of the process.
4165 * thread.c (thread_select): Call delete_exited_threads instead of
4166 prune_threads.
4167
6ad82919
TBA
41682020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4169
4170 * infrun.c (stop_all_threads): Enable/disable thread events of all
4171 targets. Move a debug message denoting the end of the function
4172 into the SCOPED_EXIT block.
4173
d890404b
TBA
41742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4175
4176 * process-stratum-target.h: Include <set>.
4177 (all_non_exited_process_targets, switch_to_target_no_thread): New
4178 function declarations.
4179 * process-stratum-target.c (all_non_exited_process_targets)
4180 (switch_to_target_no_thread): New function implementations.
4181
293b3ebc
TBA
41822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4183
4184 * infrun.c (handle_inferior_event): Extract out a piece of code
4185 into...
4186 (mark_non_executing_threads): ...this new function.
4187
7ca9b62a
TBA
41882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4189
4190 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4191 use.
4192
fc75c28b
TBA
41932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4194
4195 * regcache.c (regcache_read_pc_protected): New function
4196 implementation that returns 0 if the PC cannot read via
4197 'regcache_read_pc'.
4198 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4199 instead of 'regcache_read_pc'.
4200 (keep_going_pass_signal): Ditto.
4201
a89febbd
TT
42022020-05-13 Tom Tromey <tromey@adacore.com>
4203
4204 * ada-lang.c (align_value): Remove.
4205 (ada_template_to_fixed_record_type_1): Use align_up.
4206
f7e23710
TBA
42072020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4208
4209 * async-event.c: Update the copyright year.
4210 * async-event.h: Update the copyright year.
4211
02ff80c2
SM
42122020-05-12 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * objfiles.h (is_addr_in_objfile,
4215 shared_objfile_contains_address_p): Return bool.
4216 * objfile.c (is_addr_in_objfile,
4217 shared_objfile_contains_address_p): Return bool.
4218
4fd6c7e8
TT
42192020-05-11 Tom Tromey <tromey@adacore.com>
4220
4221 * cli/cli-cmds.c (info_command): Restore.
4222 (_initialize_cli_cmds): Use add_prefix_command for "info".
4223 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4224
5eb68a39
TT
42252020-05-11 Tom Tromey <tromey@adacore.com>
4226
4227 * ada-lang.c (ada_value_primitive_field): Now public.
4228 * ada-lang.h (ada_value_primitive_field): Declare.
4229 * ada-valprint.c (print_field_values): Use
4230 ada_value_primitive_field for wrapper fields.
4231
7666722f
TV
42322020-05-11 Tom de Vries <tdevries@suse.de>
4233
4234 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4235 MODULE_DOMAIN.
4236
3ee6bb11
TV
42372020-05-11 Tom de Vries <tdevries@suse.de>
4238
4239 PR symtab/25941
4240 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4241 with length 0, if not gdb-produced.
4242 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4243
43434996
TV
42442020-05-09 Tom de Vries <tdevries@suse.de>
4245
4246 PR gdb/25955
4247 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4248 calculation.
4249
2f78cffc
TT
42502020-05-09 Tom Tromey <tom@tromey.com>
4251
4252 * top.c (server_command): Now bool.
4253 * top.h (server_command): Now bool.
4254
4f7bc5ed
TT
42552020-05-08 Tom Tromey <tromey@adacore.com>
4256
4257 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4258 already being processed.
4259
8be4b118
TT
42602020-05-08 Tom Tromey <tom@tromey.com>
4261
4262 * printcmd.c (struct display) <next>: Remove.
4263 <display>: New constructor.
4264 <exp_string>: Now a std::string.
4265 <enabled_p>: Now a bool.
4266 (display_number): Move definition earlier.
4267 (displays): Rename from display_chain. Now a std::vector.
4268 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4269 (display_command): Update.
4270 (do_one_display, disable_display)
4271 (enable_disable_display_command, do_enable_disable_display):
4272 Update.
4273 (free_display): Remove.
4274 (clear_displays): Rewrite.
4275 (delete_display): Update.
4276 (map_display_numbers): Use function_view. Remove "data"
4277 parameter. Update.
4278 (do_delete_display): Remove.
4279 (undisplay_command): Update.
4280 (do_one_display, do_displays, disable_display)
4281 (info_display_command): Update.
4282 (do_enable_disable_display): Remove.
4283 (enable_disable_display_command)
4284 (clear_dangling_display_expressions): Update.
4285
94c93c35
TT
42862020-05-08 Tom Tromey <tom@tromey.com>
4287
4288 * symtab.c (set_symbol_cache_size)
4289 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4290 (maintenance_print_symbol_cache_statistics): Update.
4291 * symmisc.c (print_symbol_bcache_statistics)
4292 (print_objfile_statistics, maintenance_print_objfiles)
4293 (maintenance_info_symtabs, maintenance_check_symtabs)
4294 (maintenance_expand_symtabs, maintenance_info_line_tables):
4295 Update.
4296 * symfile-debug.c (set_debug_symfile): Update.
4297 * source.c (forget_cached_source_info): Update.
4298 * python/python.c (gdbpy_progspaces): Update.
4299 * psymtab.c (maintenance_info_psymtabs): Update.
4300 * probe.c (parse_probes): Update.
4301 * linespec.c (iterate_over_all_matching_symtabs)
4302 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4303 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4304 * exec.c (exec_target::close): Update.
4305 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4306 * breakpoint.c (print_one_breakpoint_location)
4307 (create_longjmp_master_breakpoint)
4308 (create_std_terminate_master_breakpoint): Update.
4309 * progspace.c (program_spaces): Now a std::vector.
4310 (maybe_new_address_space): Update.
4311 (add_program_space): Remove.
4312 (program_space::program_space): Update.
4313 (remove_program_space): Update.
4314 (number_of_program_spaces): Remove.
4315 (print_program_space, update_address_spaces): Update.
4316 * progspace.h (program_spaces): Change type.
4317 (ALL_PSPACES): Remove.
4318 (number_of_program_spaces): Don't declare.
4319 (struct program_space) <next>: Remove.
4320
a1fd1ac9
TT
43212020-05-08 Tom Tromey <tom@tromey.com>
4322
4323 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4324 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4325 (enable_break): Update.
4326 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4327 (frv_fdpic_find_canonical_descriptor): Update.
4328 (frv_fetch_objfile_link_map): Update.
4329 * progspace.c (program_space::free_all_objfiles): Update.
4330 (program_space::solibs): New method.
4331 * progspace.h (struct program_space) <solibs>: New method.
4332 * solist.h (master_so_list): Don't declare.
4333 (ALL_SO_LIBS): Remove.
4334 * solib.h (so_list_head): Remove.
4335 (update_solib_list): Update comment.
4336 * solib.c (master_so_list): Remove.
4337 (solib_used, update_solib_list, solib_add)
4338 (info_sharedlibrary_command, clear_solib)
4339 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4340
38eae084
TT
43412020-05-08 Tom Tromey <tom@tromey.com>
4342
4343 * extension.c (extension_languages): Now a std::array.
4344 (ALL_EXTENSION_LANGUAGES): Remove.
4345 (get_ext_lang_defn, get_ext_lang_of_file)
4346 (eval_ext_lang_from_control_command): Update.
4347 (finish_ext_lang_initialization)
4348 (auto_load_ext_lang_scripts_for_objfile)
4349 (ext_lang_type_printers::ext_lang_type_printers)
4350 (apply_ext_lang_type_printers)
4351 (ext_lang_type_printers::~ext_lang_type_printers)
4352 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4353 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4354 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4355 (get_matching_xmethod_workers, ext_lang_colorize)
4356 (ext_lang_before_prompt): Update.
4357 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4358
596dc4ad
TT
43592020-05-08 Tom Tromey <tom@tromey.com>
4360
4361 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4362 overload.
4363 <swap_string, m_string>: Remove.
4364 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4365 Update.
4366 * stabsread.c (define_symbol, read_type): Update.
4367 * linespec.c (find_linespec_symbols): Update.
4368 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4369 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4370 * dbxread.c (read_dbx_symtab): Update.
4371 * cp-support.h (cp_canonicalize_string_full)
4372 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4373 Return unique_xmalloc_ptr.
4374 * cp-support.c (inspect_type): Update.
4375 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4376 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4377 Likewise.
4378 * c-typeprint.c (print_name_maybe_canonical): Update.
4379 * break-catch-throw.c (check_status_exception_catchpoint):
4380 Update.
4381
bf4cb9be
TV
43822020-05-08 Tom de Vries <tdevries@suse.de>
4383
4384 * infrun.c (follow_fork): Copy current_line and current_symtab to
4385 child thread.
4386
a1b68f28
SM
43872020-05-07 Simon Marchi <simon.marchi@efficios.com>
4388
4389 * async-event.c (struct async_signal_handler, struct
4390 async_event_handler): Reformat, remove typedef.
4391
98d48915
SM
43922020-05-07 Simon Marchi <simon.marchi@efficios.com>
4393
4394 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4395 access thistype->main_type->dyn_prop_list directly.
4396
7aa91313
SM
43972020-05-07 Simon Marchi <simon.marchi@efficios.com>
4398
4399 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4400 (remove_dyn_prop): Remove. Update all users to use
4401 type::remove_dyn_prop.
4402 * gdbtypes.c (remove_dyn_prop): Rename to...
4403 (type::remove_dyn_prop): ... this.
4404
5c54719c
SM
44052020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4406
4407 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4408 (add_dyn_prop): Remove. Update all users to use
4409 type::add_dyn_prop.
4410 * gdbtypes.c (add_dyn_prop): Rename to...
4411 (type::add_dyn_prop): ... this.
4412
24e99c6c
SM
44132020-05-07 Simon Marchi <simon.marchi@efficios.com>
4414
4415 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4416 (get_dyn_prop): Remove. Update all users to use
4417 type::dyn_prop.
4418 * gdbtypes.c (get_dyn_prop): Rename to...
4419 (type::dyn_prop): ... this.
4420
0d4bf016
SM
44212020-05-06 Simon Marchi <simon.marchi@efficios.com>
4422
4423 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4424
ac4a4f1c
SM
44252020-05-06 Simon Marchi <simon.marchi@efficios.com>
4426
4427 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4428 instruction, skip it if it's there.
4429
a3bbacc1
SM
44302020-05-05 Simon Marchi <simon.marchi@efficios.com>
4431
4432 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4433
c3236f84
SM
44342020-05-04 Simon Marchi <simon.marchi@efficios.com>
4435
4436 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4437 * gdbtypes.c (recursive_dump_type): Remove use of
4438 TYPE_INCOMPLETE.
4439
3b6acaee
TT
44402020-05-03 Tom Tromey <tom@tromey.com>
4441
4442 * breakpoint.c (catch_command, tcatch_command): Remove.
4443 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4444 add_show_prefix_cmd.
4445 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4446 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4447 Remove.
4448 (add_internal_problem_command): Use add_basic_prefix_cmd,
4449 add_show_prefix_cmd.
4450 * mips-tdep.c (set_mipsfpu_command): Remove.
4451 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4452 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4453 (_initialize_index_cache): Use add_basic_prefix_cmd.
4454 * memattr.c (dummy_cmd): Remove.
4455 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4456 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4457 (_initialize_tui_win): Use add_basic_prefix_cmd,
4458 add_show_prefix_cmd.
4459 * cli/cli-logging.c (set_logging_command): Remove.
4460 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4461 add_show_prefix_cmd.
4462 (show_logging_command): Remove.
4463 * target.c (target_command): Remove.
4464 (add_target): Use add_basic_prefix_cmd.
4465
a51119cd
HD
44662020-05-02 Hannes Domani <ssbssa@yahoo.de>
4467
4468 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4469
652fc23a 44702020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4471
652fc23a
PW
4472 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4473 info_command.
4474
117539e6
KR
44752020-04-30 Kamil Rytarowski <n54@gmx.com>
4476
4477 * nbsd-nat.c (nbsd_enable_proc_events)
4478 (nbsd_nat_target::post_startup_inferior): Add.
4479 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4480 (nbsd_nat_target::update_thread_list): Rewrite.
4481 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4482 "PTRACE_LWP_CREATE".
4483 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4484
102e38eb 44852020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4486
102e38eb
PW
4487 * stack.c (_initialize_stack): Remove duplicated creation
4488 of "frame" command and "f" alias.
4489
ee9d1e5f
HD
44902020-04-30 Hannes Domani <ssbssa@yahoo.de>
4491
4492 PR gdb/18706
4493 * gdbtypes.c (check_typedef): Calculate size of array of
4494 stubbed type.
4495
627c7fb8
HD
44962020-04-30 Hannes Domani <ssbssa@yahoo.de>
4497
4498 PR gdb/15559
4499 * i386-tdep.c (i386_push_dummy_call): Call
4500 i386_thiscall_push_dummy_call.
4501 (i386_thiscall_push_dummy_call): New function.
4502 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4503 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4504 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4505
ffc2844e
SM
45062020-04-29 Simon Marchi <simon.marchi@efficios.com>
4507
4508 * gdbarch.sh (do_read): Add shellcheck disable directive for
4509 warning SC2162.
4510
1207375d
SM
45112020-04-29 Simon Marchi <simon.marchi@efficios.com>
4512
4513 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4514 "referenced but not assigned" warning.
4515
9fdb2916
SM
45162020-04-29 Simon Marchi <simon.marchi@efficios.com>
4517
4518 * gdbarch.sh: Remove code that sets fallbackdefault.
4519
759cea5e
SM
45202020-04-29 Simon Marchi <simon.marchi@efficios.com>
4521
4522 * gdbarch.sh: Use shell operators && and || instead of
4523 -a and -o.
4524
cb02ab24
SM
45252020-04-29 Simon Marchi <simon.marchi@efficios.com>
4526
4527 * gdbarch.sh: Use $(...) instead of `...`.
4528
a6fc5ffc
SM
45292020-04-29 Simon Marchi <simon.marchi@efficios.com>
4530
4531 * gdbarch.sh: Use double quotes around variables.
4532
8d113d13
SM
45332020-04-29 Simon Marchi <simon.marchi@efficios.com>
4534
4535 * gdbarch.sh: Use %s with printf, instead of variables in the
4536 format string.
4537
ed6acedd
TT
45382020-04-29 Tom Tromey <tromey@adacore.com>
4539
4540 PR ada/25875:
4541 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4542 type fields here.
4543 (read_enumeration_type): Call
4544 update_enumeration_type_from_children later. Update comments.
4545 (process_enumeration_scope): Don't create type fields.
4546
b68b1b58
KR
45472020-04-29 Kamil Rytarowski <n54@gmx.com>
4548
4549 * nbsd-tdep.c: Include "xml-syscall.h".
4550 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4551
f94b2e03
KR
45522020-04-29 Kamil Rytarowski <n54@gmx.com>
4553
4554 * nbsd-nat.c: Include "sys/wait.h".
4555 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4556 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4557 (nbsd_nat_target::remove_exec_catchpoint)
4558 (nbsd_nat_target::set_syscall_catchpoint): Add.
4559 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4560 (nbsd_nat_target::insert_exec_catchpoint)
4561 (nbsd_nat_target::remove_exec_catchpoint)
4562 (nbsd_nat_target::set_syscall_catchpoint): Add.
4563 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4564 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4565 `nbsd_get_syscall_number'.
4566
fc49bc72
TT
45672020-04-29 Tom Tromey <tom@tromey.com>
4568
4569 * stack.c (print_block_frame_labels): Remove.
4570
d642b692
HD
45712020-04-29 Hannes Domani <ssbssa@yahoo.de>
4572
4573 PR gdb/17320
4574 * ada-valprint.c (val_print_packed_array_elements): Move array
4575 end bracket to new line.
4576 (ada_val_print_string): Remove extra spaces before first array
4577 element.
4578 * c-valprint.c (c_value_print_array): Likewise.
4579 * m2-valprint.c (m2_print_array_contents): Likewise.
4580 (m2_value_print_inner): Likewise.
4581 * p-valprint.c (pascal_value_print_inner): Likewise.
4582 * valprint.c (generic_val_print_array): Likewise.
4583 (value_print_array_elements): Move first array element and array
4584 end bracket to new line.
4585
ea90f227
TV
45862020-04-29 Tom de Vries <tdevries@suse.de>
4587
4588 PR symtab/25889
4589 * linespec.c (find_method): Fix ix calculation.
4590
4498ef4f
KR
45912020-04-28 Kamil Rytarowski <n54@gmx.com>
4592
4593 * syscalls/update-netbsd.sh: New file.
4594 * syscalls/netbsd.xml: Regenerate.
4595 * data-directory/Makefile.in: Register `netbsd.xml' in
4596 `SYSCALLS_FILES'.
4597
a55e30b5
SM
45982020-04-28 Simon Marchi <simon.marchi@efficios.com>
4599
4600 * syscalls/update-freebsd.sh: Add double quotes.
4601
2b2fbab8
TT
46022020-04-28 Tom Tromey <tom@tromey.com>
4603
4604 * NEWS: Update.
4605 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4606 (cmdpy_init): Allow class_tui.
4607
a65189c9
TV
46082020-04-28 Mark Williams <mark@myosotissp.com>
4609
4610 PR gdb/24480
4611 * dwarf2read.c: Add missing assingments to list_in_scope when
4612 start_symtab was already called.
4613
1b95cdb7
SM
46142020-04-28 Simon Marchi <simon.marchi@efficios.com>
4615
4616 PR gdb/25881
4617 * dwarf2/read.c (offset_map_type): Use
4618 gdb:hash_enum<sect_offset> as hash function.
4619
15cd93d0
TV
46202020-04-28 Tom de Vries <tdevries@suse.de>
4621
4622 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4623 with DW_AT_signature.
4624
1eb39914
SM
46252020-04-27 Simon Marchi <simon.marchi@efficios.com>
4626
4627 * configure.ac: Remove check for fs_base/gs_base in
4628 user_regs_struct.
4629 * configure: Re-generate.
4630 * config.in: Re-generate.
4631 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4632 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4633 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4634
991a3e2e
LM
46352020-04-27 Luis Machado <luis.machado@linaro.org>
4636
4637 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4638 problematic inline frame unwinding situation.
4639 * frame.c (frame_id_computed_p): New function.
4640 * frame.h (frame_id_computed_p): New prototype.
4641
361ba0e8
TT
46422020-04-26 Tom Tromey <tom@tromey.com>
4643
4644 * command.h (enum command_class) <class_pseudo>: Remove.
4645
bc3609fd
PW
46462020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4647
4648 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4649 and whitespace.
4650
b9771db7
KR
46512020-04-25 Kamil Rytarowski <n54@gmx.com>
4652
ec16513e
SM
4653 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4654 `PT_GET_PROCESS_STATE' block.
b9771db7 4655
7151c1af
TT
46562020-04-24 Tom Tromey <tom@tromey.com>
4657
4658 * symtab.h (symbol_get_demangled_name): Don't declare.
4659 * symtab.c (symbol_get_demangled_name): Remove.
4660 (general_symbol_info::natural_name)
4661 (general_symbol_info::demangled_name): Update.
4662
906bb4c5
TT
46632020-04-24 Tom Tromey <tom@tromey.com>
4664
4665 PR rust/25025:
4666 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4667
bcfe6157
TT
46682020-04-24 Tom Tromey <tom@tromey.com>
4669
4670 PR symtab/12707:
4671 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4672 exists.
4673 (new_symbol): Likewise.
4674 * compile/compile-object-load.c (get_out_value_type): Use
4675 symbol_matches_search_name.
4676
f049a313
TT
46772020-04-24 Tom Tromey <tom@tromey.com>
4678
4679 * dwarf2/read.c (add_partial_symbol): Do not call
4680 compute_and_set_names.
4681
76e288d1
TT
46822020-04-24 Tom Tromey <tom@tromey.com>
4683
4684 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4685 overload.
4686
2467f4f6
TT
46872020-04-24 Tom Tromey <tom@tromey.com>
4688
4689 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4690 (add_psymbol_to_list): New overload. Make old overload call new
4691 one.
4692 * psympriv.h (add_psymbol_to_list): New overload.
4693
e61108c9
TT
46942020-04-24 Tom Tromey <tom@tromey.com>
4695
4696 * dwarf2/read.c (partial_die_info::read) <case
4697 DW_AT_linkage_name>: Use value_as_string.
4698 (dwarf2_string_attr): Use value_as_string.
4699 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4700 method.
4701 * dwarf2/attribute.c (attribute::value_as_string): New method.
4702
8c87a452
TT
47032020-04-24 Tom Tromey <tom@tromey.com>
4704
4705 * symtab.c (general_symbol_info::natural_name)
4706 (general_symbol_info::demangled_name): Check for language_rust.
4707
787de330
TT
47082020-04-24 Tom Tromey <tom@tromey.com>
4709
4710 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4711 (dwarf2_physname): ... from here.
4712 (partial_die_info::read): Add Rust "{" hack.
4713
ff985671
TT
47142020-04-24 Tom Tromey <tom@tromey.com>
4715
4716 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4717 method.
4718 (symbol_set_demangled_name): Don't declare.
4719 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4720 symbol_set_demangled_name.
4721 (general_symbol_info::set_language)
4722 (general_symbol_info::compute_and_set_names): Update.
4723 * minsyms.c (minimal_symbol_reader::install): Update.
4724 * dwarf2/read.c (new_symbol): Update.
4725
1acda803
TT
47262020-04-24 Tom Tromey <tromey@adacore.com>
4727
4728 PR python/23662:
4729 * python/py-type.c (convert_field): Handle
4730 FIELD_LOC_KIND_DWARF_BLOCK.
4731 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4732 (typy_get_dynamic): Nw function.
4733 (type_object_getset): Add "dynamic".
4734 * NEWS: Add entry.
4735
d656f129
TT
47362020-04-24 Tom Tromey <tromey@adacore.com>
4737
4738 * ada-typeprint.c (print_choices, print_variant_part)
4739 (print_record_field_types_dynamic): New functions.
4740 (print_record_field_types): Use print_record_field_types_dynamic.
4741
7d79de9a
TT
47422020-04-24 Tom Tromey <tromey@adacore.com>
4743
4744 * dwarf2/read.c (handle_data_member_location): New overload.
4745 (dwarf2_add_field): Use it.
4746 (decode_locdesc): Add "computed" parameter. Update comment.
4747 * gdbtypes.c (is_dynamic_type_internal): Also look for
4748 FIELD_LOC_KIND_DWARF_BLOCK.
4749 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4750 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4751 virtual base classes.
4752 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4753 FIELD_LOC_KIND_DWARF_BLOCK.
4754
f8e89861
TT
47552020-04-24 Tom Tromey <tromey@adacore.com>
4756
4757 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4758 * gdbtypes.c (is_dynamic_type_internal): Check
4759 TYPE_HAS_DYNAMIC_LENGTH.
4760 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4761 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4762 New macros.
4763 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4764 constant.
4765
9c6a1327
TT
47662020-04-24 Tom Tromey <tromey@adacore.com>
4767
4768 * dwarf2/read.c (struct variant_field): Rewrite.
4769 (struct variant_part_builder): New.
4770 (struct nextfield): Remove "variant" field. Add "offset".
4771 (struct field_info): Add "current_variant_part" and
4772 "variant_parts".
4773 (alloc_discriminant_info): Remove.
4774 (alloc_rust_variant): New function.
4775 (quirk_rust_enum): Update.
4776 (dwarf2_add_field): Set "offset" member. Don't handle
4777 DW_TAG_variant_part.
4778 (offset_map_type): New typedef.
4779 (convert_variant_range, create_one_variant)
4780 (create_one_variant_part, create_variant_parts)
4781 (add_variant_property): New functions.
4782 (dwarf2_attach_fields_to_type): Call add_variant_property.
4783 (read_structure_type): Don't handle DW_TAG_variant_part.
4784 (handle_variant_part, handle_variant): New functions.
4785 (handle_struct_member_die): Use them.
4786 (process_structure_scope): Don't handle variant parts.
4787 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4788 (struct discriminant_info): Remove.
4789 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4790 (struct main_type) <flag_discriminated_union>: Remove.
4791 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4792 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4793 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4794 Update.
4795 * valops.c (value_union_variant): Remove.
4796 * value.h (value_union_variant): Don't declare.
4797
b249d2c2
TT
47982020-04-24 Tom Tromey <tromey@adacore.com>
4799
4800 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4801 (ada_value_primitive_packed_val): Update.
4802 * ada-valprint.c (ada_value_print_1): Update.
4803 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4804 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4805 just an address. Use evaluate_for_locexpr_baton.
4806 (dwarf2_evaluate_property): Update.
4807 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4808 array_view.
4809 * findvar.c (default_read_var_value): Update.
4810 * gdbtypes.c (compute_variant_fields_inner)
4811 (resolve_dynamic_type_internal): Update.
4812 (resolve_dynamic_type): Change type of valaddr parameter.
4813 * gdbtypes.h (resolve_dynamic_type): Update.
4814 * valarith.c (value_subscripted_rvalue): Update.
4815 * value.c (value_from_contents_and_address): Update.
4816
61122aa9
TT
48172020-04-24 Tom Tromey <tromey@adacore.com>
4818
4819 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4820 "push_initial_value" parameter.
4821 (dwarf2_evaluate_property): Likewise.
4822 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4823
ef83a141
TT
48242020-04-24 Tom Tromey <tromey@adacore.com>
4825
4826 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4827 (variant::matches, compute_variant_fields_recurse)
4828 (compute_variant_fields_inner, compute_variant_fields): New
4829 functions.
4830 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
4831 Use resolved_type after type is made.
4832 (operator==): Add new cases.
4833 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
4834 (struct discriminant_range, struct variant, struct variant_part):
4835 New.
4836 (union dynamic_prop_data) <variant_parts, original_type>: New
4837 members.
4838 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
4839 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
4840 constants.
4841 * value.c (unpack_bits_as_long): Now public.
4842 * value.h (unpack_bits_as_long): Declare.
4843
675127ec
TT
48442020-04-24 Tom Tromey <tromey@adacore.com>
4845
4846 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
4847 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
4848
9852ceef
HD
48492020-04-24 Hannes Domani <ssbssa@yahoo.de>
4850
4851 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
4852
7632c6ce
KR
48532020-04-24 Kamil Rytarowski <n54@gmx.com>
4854
4855 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
4856 (remove_fork_catchpoint, post_startup_inferior)
4857 (post_attach): Move...
4858 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
4859 (remove_fork_catchpoint, post_startup_inferior)
4860 (post_attach): ...here.
4861 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
4862 (remove_fork_catchpoint, post_startup_inferior)
4863 (post_attach): Move...
4864 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
4865 (remove_fork_catchpoint, post_startup_inferior)
4866 (post_attach): ...here.
4867
7be2bb4f
TT
48682020-04-24 Tom Tromey <tromey@adacore.com>
4869
4870 * nat/windows-nat.h (struct windows_thread_info)
4871 <pc_adjusted>: New member.
4872 * windows-nat.c (windows_fetch_one_register): Check
4873 pc_adjusted.
4874 (windows_nat_target::get_windows_debug_event)
4875 (windows_nat_target::wait): Set pc_adjusted.
4876
f80cb3b4
TV
48772020-04-24 Tom de Vries <tdevries@suse.de>
4878
4879 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
4880 Run gdb-add-index inside temp dir.
4881
29514b87
TT
48822020-04-23 Tom Tromey <tromey@adacore.com>
4883
4884 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
4885 in loop.
4886
5939967b
LM
48872020-04-23 Luis Machado <luis.machado@linaro.org>
4888
4889 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
4890 get_frame_register instead of gdbarch_unwind_pc.
4891
70bc38f5
TV
48922020-04-23 Tom de Vries <tdevries@suse.de>
4893
4894 * symtab.c (lookup_global_symbol): Prefer def over decl.
4895
de82891c
TV
48962020-04-23 Tom de Vries <tdevries@suse.de>
4897
4898 PR symtab/25807
4899 * block.c (best_symbol, better_symbol): Promote to external.
4900 * block.h (best_symbol, better_symbol): Declare.
4901 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
4902 decl.
4903
ecc6c606
TT
49042020-04-23 Tom Tromey <tromey@adacore.com>
4905
4906 PR ada/25837:
4907 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
4908 "const char *", not a "const std::string &".
4909 <name_and_matcher::operator==>: Update.
4910 * unittests/lookup_name_info-selftests.c: Change type of
4911 "result".
4912
740480b8
TT
49132020-04-23 Tom Tromey <tom@tromey.com>
4914
4915 * inferior.h (iterate_over_inferiors): Don't declare.
4916 * inferior.c (iterate_over_inferiors): Remove.
4917 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
4918 Remove.
4919 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
4920 use iterate_over_inferiors.
4921 (darwin_resume_inferior_it)
4922 (struct resume_inferior_threads_param)
4923 (darwin_resume_inferior_threads_it): Remove.
4924 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
4925
ae3ab1f0
TV
49262020-04-23 Tom de Vries <tdevries@suse.de>
4927
4928 * blockframe.c (find_pc_partial_function): Use
4929 find_pc_sect_compunit_symtab rather than
4930 objfile->sf->qf->find_pc_sect_compunit_symtab.
4931
317d2668
TV
49322020-04-22 Tom de Vries <tdevries@suse.de>
4933
4934 PR symtab/25764
4935 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
4936 in psymtabs.
4937
eea9e357
TV
49382020-04-22 Tom de Vries <tdevries@suse.de>
4939
4940 PR symtab/25801
4941 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
4942 symtabs.
4943
3d5afab3
TV
49442020-04-22 Tom de Vries <tdevries@suse.de>
4945
4946 PR symtab/25700
4947 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
4948 CU if already created.
4949
d43b7a2d
TBA
49502020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4951
4952 * infrun.c (displaced_step_fixup): Switch to the event_thread
4953 before calling displaced_step_restore, not after.
4954
d89edf9b
MM
49552020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4956
4957 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
4958 its inferior is not recorded by us.
4959 (record_btrace_target_open): Replace call to
4960 all_non_exited_threads () with call to current_inferior
4961 ()->non_exited_threads ().
4962 (record_btrace_target::stop_recording): Likewise.
4963 (record_btrace_target::close): Likewise.
4964 (record_btrace_target::wait): Likewise.
4965 (record_btrace_target::record_stop_replaying): Likewise.
4966
5897fd49
MM
49672020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4968
4969 * btrace.c (btrace_enable): Throw an error on double enables and
4970 when enabling recording fails.
4971 (btrace_disable): Throw an error if the thread is not recorded.
4972
1a476b6d
MM
49732020-04-21 Markus Metzger <markus.t.metzger@intel.com>
4974
4975 * record-btrace.c (record_btrace_target::fetch_registers): Forward
4976 request if we do not have a thread_info.
4977
4778a5f8
TV
49782020-04-21 Tom de Vries <tdevries@suse.de>
4979
4980 PR gdb/25471
4981 * thread.c
4982 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
4983 exception in get_frame_id.
4984
0fa7617d
TT
49852020-04-20 Tom Tromey <tromey@adacore.com>
4986
4987 * python/python.c (struct gdbpy_event): Mark move constructor as
4988 noexcept.
4989 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
4990 constructor as noexcept.
4991 * completer.h (struct completion_result): Mark move constructor as
4992 noexcept.
4993 * completer.c (completion_result::completion_result): Use
4994 initialization style. Don't call reset_match_list.
4995
ad23bda0
MS
49962020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
4997
4998 * MAINTAINERS (Write After Approval): Add myself.
4999
45e1f031
TT
50002020-04-18 Tom Tromey <tom@tromey.com>
5001
5002 * windows-tdep.c (init_w32_command_list)
5003 (w32_prefix_command_valid): Restore.
5004 (_initialize_windows_tdep): Call init_w32_command_list.
5005
08feed99
TT
50062020-04-18 Tom Tromey <tom@tromey.com>
5007
5008 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5009 * value.c (value_fn_field): Update.
5010 * valops.c (find_function_in_inferior)
5011 (value_allocate_space_in_inferior): Update.
5012 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5013 Update.
5014 * tui/tui-source.c (tui_source_window::set_contents): Update.
5015 * symtab.c (lookup_global_or_static_symbol)
5016 (find_function_start_sal_1, skip_prologue_sal)
5017 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5018 * symmisc.c (dump_msymbols, dump_symtab_1)
5019 (maintenance_print_one_line_table): Update.
5020 * symfile.c (init_entry_point_info, section_is_mapped)
5021 (list_overlays_command, simple_read_overlay_table)
5022 (simple_overlay_update_1): Update.
5023 * stap-probe.c (handle_stap_probe): Update.
5024 * stabsread.c (dbx_init_float_type, define_symbol)
5025 (read_one_struct_field, read_enum_type, read_range_type): Update.
5026 * source.c (info_line_command): Update.
5027 * python/python.c (gdbpy_source_objfile_script)
5028 (gdbpy_execute_objfile_script): Update.
5029 * python/py-type.c (save_objfile_types): Update.
5030 * python/py-objfile.c (py_free_objfile): Update.
5031 * python/py-inferior.c (python_new_objfile): Update.
5032 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5033 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5034 (maintenance_check_psymtabs): Update.
5035 * printcmd.c (info_address_command): Update.
5036 * objfiles.h (struct objfile) <arch>: New method, from
5037 get_objfile_arch.
5038 (get_objfile_arch): Don't declare.
5039 * objfiles.c (get_objfile_arch): Remove.
5040 (filter_overlapping_sections): Update.
5041 * minsyms.c (msymbol_is_function): Update.
5042 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5043 (output_nondebug_symbol): Update.
5044 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5045 (mdebug_expand_psymtab): Update.
5046 * machoread.c (macho_add_oso_symfile): Update.
5047 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5048 Update.
5049 * linux-fork.c (checkpoint_command): Update.
5050 * linespec.c (convert_linespec_to_sals): Update.
5051 * jit.c (finalize_symtab): Update.
5052 * infrun.c (insert_exception_resume_from_probe): Update.
5053 * ia64-tdep.c (ia64_find_unwind_table): Update.
5054 * hppa-tdep.c (internalize_unwinds): Update.
5055 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5056 Update.
5057 * gcore.c (call_target_sbrk): Update.
5058 * elfread.c (record_minimal_symbol, elf_symtab_read)
5059 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5060 (elf_gnu_ifunc_resolve_by_got): Update.
5061 * dwarf2/read.c (create_addrmap_from_index)
5062 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5063 (read_debug_names_from_section)
5064 (process_psymtab_comp_unit_reader, add_partial_symbol)
5065 (add_partial_subprogram, process_full_comp_unit)
5066 (read_file_scope, read_func_scope, read_lexical_block_scope)
5067 (read_call_site_scope, dwarf2_ranges_read)
5068 (dwarf2_record_block_ranges, dwarf2_add_field)
5069 (mark_common_block_symbol_computed, read_tag_pointer_type)
5070 (read_tag_string_type, dwarf2_init_float_type)
5071 (dwarf2_init_complex_target_type, read_base_type)
5072 (partial_die_info::read, partial_die_info::read)
5073 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5074 (dwarf2_fetch_die_loc_sect_off): Update.
5075 * dwarf2/loc.c (dwarf2_find_location_expression)
5076 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5077 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5078 (dwarf2_loc_desc_get_symbol_read_needs)
5079 (locexpr_describe_location_piece, locexpr_describe_location_1)
5080 (loclist_describe_location): Update.
5081 * dwarf2/index-write.c (write_debug_names): Update.
5082 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5083 * dtrace-probe.c (dtrace_process_dof): Update.
5084 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5085 (process_one_symbol): Update.
5086 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5087 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5088 (coff_read_enum_type): Update.
5089 * cli/cli-cmds.c (edit_command, list_command): Update.
5090 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5091 * breakpoint.c (create_overlay_event_breakpoint)
5092 (create_longjmp_master_breakpoint)
5093 (create_std_terminate_master_breakpoint)
5094 (create_exception_master_breakpoint, get_sal_arch): Update.
5095 * block.c (block_gdbarch): Update.
5096 * annotate.c (annotate_source_line): Update.
5097
0743fc83
TT
50982020-04-17 Tom Tromey <tromey@adacore.com>
5099
5100 * auto-load.c (show_auto_load_cmd): Remove.
5101 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5102 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5103 (maintenance_print_arc_command): Remove.
5104 * tui/tui-win.c (tui_command): Remove.
5105 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5106 * tui/tui-layout.c (tui_layout_command): Remove.
5107 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5108 * python/python.c (user_set_python, user_show_python): Remove.
5109 (_initialize_python): Use add_basic_prefix_cmd,
5110 add_show_prefix_cmd.
5111 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5112 (install_gdb_commands): Use add_basic_prefix_cmd,
5113 add_show_prefix_cmd.
5114 (info_guile_command): Remove.
5115 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5116 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5117 add_show_prefix_cmd.
5118 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5119 Remove do_set and do_show parameters.
5120 * cli/cli-style.c (set_style, show_style): Remove.
5121 (_initialize_cli_style): Use add_basic_prefix_cmd,
5122 add_show_prefix_cmd.
5123 (cli_style_option::add_setshow_commands): Remove do_set and
5124 do_show parameters.
5125 (cli_style_option::add_setshow_commands): Use
5126 add_basic_prefix_cmd, add_show_prefix_cmd.
5127 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5128 (set_style_name): Remove.
5129 * cli/cli-dump.c (dump_command, append_command): Remove.
5130 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5131 (tekhex_dump_command, binary_dump_command)
5132 (binary_append_command): Remove.
5133 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5134 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5135 (init_w32_command_list): Remove; move into ...
5136 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5137 * valprint.c (set_print, show_print, set_print_raw)
5138 (show_print_raw): Remove.
5139 (_initialize_valprint): Use add_basic_prefix_cmd,
5140 add_show_prefix_cmd.
5141 * typeprint.c (set_print_type, show_print_type): Remove.
5142 (_initialize_typeprint): Use add_basic_prefix_cmd,
5143 add_show_prefix_cmd.
5144 * record.c (set_record_command, show_record_command): Remove.
5145 (_initialize_record): Use add_basic_prefix_cmd,
5146 add_show_prefix_cmd.
5147 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5148 add_show_prefix_cmd.
5149 (info_command, show_command, set_debug, show_debug): Remove.
5150 * top.h (set_history, show_history): Don't declare.
5151 * top.c (set_history, show_history): Remove.
5152 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5153 (unset_tdesc_cmd): Remove.
5154 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5155 add_show_prefix_cmd.
5156 * symtab.c (info_module_command): Remove.
5157 (_initialize_symtab): Use add_basic_prefix_cmd.
5158 * symfile.c (overlay_command): Remove.
5159 (_initialize_symfile): Use add_basic_prefix_cmd.
5160 * sparc64-tdep.c (info_adi_command): Remove.
5161 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5162 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5163 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5164 add_show_prefix_cmd.
5165 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5166 (_initialize_serial): Use add_basic_prefix_cmd,
5167 add_show_prefix_cmd.
5168 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5169 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5170 add_show_prefix_cmd.
5171 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5172 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5173 add_show_prefix_cmd.
5174 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5175 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5176 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5177 add_show_prefix_cmd.
5178 * remote.c (remote_command, set_remote_cmd): Remove.
5179 (_initialize_remote): Use add_basic_prefix_cmd.
5180 * record-full.c (set_record_full_command)
5181 (show_record_full_command): Remove.
5182 (_initialize_record_full): Use add_basic_prefix_cmd,
5183 add_show_prefix_cmd.
5184 * record-btrace.c (cmd_set_record_btrace)
5185 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5186 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5187 (cmd_show_record_btrace_pt): Remove.
5188 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5189 add_show_prefix_cmd.
5190 * ravenscar-thread.c (set_ravenscar_command)
5191 (show_ravenscar_command): Remove.
5192 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5193 add_show_prefix_cmd.
5194 * mips-tdep.c (show_mips_command, set_mips_command)
5195 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5196 add_show_prefix_cmd.
5197 * maint.c (maintenance_command, maintenance_info_command)
5198 (maintenance_check_command, maintenance_print_command)
5199 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5200 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5201 add_show_prefix_cmd.
5202 (show_per_command_cmd): Remove.
5203 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5204 Remove.
5205 (maintenance_show_test_settings_cmd): Remove.
5206 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5207 add_show_prefix_cmd.
5208 * maint-test-options.c (maintenance_test_options_command):
5209 Remove.
5210 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5211 * macrocmd.c (macro_command): Remove
5212 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5213 * language.c (set_check, show_check): Remove.
5214 (_initialize_language): Use add_basic_prefix_cmd,
5215 add_show_prefix_cmd.
5216 * infcmd.c (unset_command): Remove.
5217 (_initialize_infcmd): Use add_basic_prefix_cmd.
5218 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5219 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5220 add_show_prefix_cmd.
5221 * go32-nat.c (go32_info_dos_command): Remove.
5222 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5223 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5224 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5225 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5226 (_initialize_frame): Use add_basic_prefix_cmd,
5227 add_show_prefix_cmd.
5228 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5229 (_initialize_dcache): Use add_basic_prefix_cmd,
5230 add_show_prefix_cmd.
5231 * cp-support.c (maint_cplus_command): Remove.
5232 (_initialize_cp_support): Use add_basic_prefix_cmd.
5233 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5234 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5235 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5236 add_basic_prefix_cmd, add_show_prefix_cmd.
5237 * breakpoint.c (save_command): Remove.
5238 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5239 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5240 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5241 add_show_prefix_cmd.
5242 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5243 (set_ada_command, show_ada_command): Remove.
5244 (_initialize_ada_language): Use add_basic_prefix_cmd,
5245 add_show_prefix_cmd.
5246 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5247
3557f442
KR
52482020-04-16 Kamil Rytarowski <n54@gmx.com>
5249
5250 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5251 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5252
16197208
SM
52532020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5254
5255 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5256 warning messages.
5257
00ac85d3
SM
52582020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5259
5260 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5261 import table is not at beginning of .idata section.
5262
381ce63f
PA
52632020-04-16 Pedro Alves <palves@redhat.com>
5264
5265 * inferior.c (delete_inferior): Use delete operator directly
5266 instead of delete_program_space.
5267 * progspace.c (add_program_space): New, factored out from
5268 program_space::program_space.
5269 (remove_program_space): New, factored out from
5270 delete_program_space.
5271 (program_space::program_space): Remove intro comment. Rewrite.
5272 (program_space::~program_space): Remove intro comment. Call
5273 remove_program_space.
5274 (delete_program_space): Delete.
5275 * progspace.h (program_space::program_space): Make explicit. Move
5276 intro comment here, adjusted.
5277 (program_space::~program_space): Move intro comment here,
5278 adjusted.
5279 (delete_program_space): Remove.
5280
a010605f
TT
52812020-04-16 Tom Tromey <tromey@adacore.com>
5282
5283 * windows-nat.c (windows_nat::handle_access_violation): New
5284 function.
5285 * nat/windows-nat.h (handle_access_violation): Declare.
5286 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5287 windows-nat.c. Call handle_access_violation.
5288
efba5c23
TV
52892020-04-16 Tom de Vries <tdevries@suse.de>
5290
5291 PR symtab/25791
5292 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5293 CUs without psymtab.
5294
97ed802d
KB
52952020-04-16 Kevin Buettner <kevinb@redhat.com>
5296
5297 * python/python.c (do_start_initialization): Don't call
5298 PyEval_InitThreads for Python 3.9 and beyond.
5299
c7d64809
KR
53002020-04-15 Kamil Rytarowski <n54@gmx.com>
5301
5302 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5303 thread functions.
5304 (obsd_nat_target::wait): Likewise.
5305
ce127a96
TT
53062020-04-15 Tom Tromey <tromey@adacore.com>
5307
5308 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5309 (DEBUG_EXCEPT): Use debug_printf.
5310
99f1bc6a
AB
53112020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5312
5313 * completer.c (class completion_tracker::completion_hash_entry)
5314 <hash_name>: New member function.
5315 (completion_tracker::discard_completions): New callback to hash a
5316 completion_hash_entry, pass this to htab_create_alloc.
5317
a0e9b532
JT
53182016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5319
5320 * windows-nat.c (windows_make_so): Warn rather than stopping with
5321 an error if realpath() fails.
5322
06ca5dd4
KR
53232020-04-14 Kamil Rytarowski <n54@gmx.com>
5324
5325 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5326 (nbsd_nat_target::info_proc): Add do_status.
5327
194d088f
TV
53282020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5329 Tom de Vries <tdevries@suse.de>
5330
5331 PR symtab/25718
5332 * psympriv.h (struct partial_symtab::read_symtab)
5333 (struct partial_symtab::expand_psymtab)
5334 (struct partial_symtab::read_dependencies): Update comments.
5335 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5336 read_symtab for includer.
5337 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5338 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5339 (struct dwarf2_include_psymtab::m_readin): Remove.
5340 (struct dwarf2_include_psymtab::includer): New member function.
5341 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5342
c1a66c06
TV
53432020-04-14 Tom de Vries <tdevries@suse.de>
5344
5345 PR symtab/25720
5346 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5347 with NULL symbol_matcher and lookup_name.
5348 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5349 and lookup_name.
5350 * dwarf2/read.c (dw2_expand_symtabs_matching)
5351 (dw2_debug_names_expand_symtabs_matching): Same.
5352 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5353 Make lookup_name a pointer. Update comment.
5354 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5355 lookup_name being a pointer.
5356 * symfile.c (expand_symtabs_matching): Same.
5357 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5358 * linespec.c (iterate_over_all_matching_symtabs): Same.
5359
400b5eca
TT
53602020-04-13 Tom Tromey <tom@tromey.com>
5361
5362 * run-on-main-thread.c: Update include.
5363 * unittests/main-thread-selftests.c: Update include.
5364 * tui/tui-win.c: Update include.
5365 * tui/tui-io.c: Update include.
5366 * tui/tui-interp.c: Update include.
5367 * tui/tui-hooks.c: Update include.
5368 * top.h: Update include.
5369 * top.c: Update include.
5370 * ser-base.c: Update include.
5371 * remote.c: Update include.
5372 * remote-notif.c: Update include.
5373 * remote-fileio.c: Update include.
5374 * record-full.c: Update include.
5375 * record-btrace.c: Update include.
5376 * python/python.c: Update include.
5377 * posix-hdep.c: Update include.
5378 * mingw-hdep.c: Update include.
5379 * mi/mi-main.c: Update include.
5380 * mi/mi-interp.c: Update include.
5381 * main.c: Update include.
5382 * linux-nat.c: Update include.
5383 * interps.c: Update include.
5384 * infrun.c: Update include.
5385 * inf-loop.c: Update include.
5386 * event-top.c: Update include.
5387 * event-loop.c: Move to ../gdbsupport/.
5388 * event-loop.h: Move to ../gdbsupport/.
5389 * async-event.h: Update include.
5390 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5391
93b54c8e
TT
53922020-04-13 Tom Tromey <tom@tromey.com>
5393
5394 * tui/tui-win.c: Include async-event.h.
5395 * remote.c: Include async-event.h.
5396 * remote-notif.c: Include async-event.h.
5397 * record-full.c: Include async-event.h.
5398 * record-btrace.c: Include async-event.h.
5399 * infrun.c: Include async-event.h.
5400 * event-top.c: Include async-event.h.
5401 * event-loop.h: Move some declarations to async-event.h.
5402 * event-loop.c: Don't include ser-event.h or top.h. Move some
5403 code to async-event.c.
5404 * async-event.h: New file.
5405 * async-event.c: New file.
5406 * Makefile.in (COMMON_SFILES): Add async-event.c.
5407 (HFILES_NO_SRCDIR): Add async-event.h.
5408
c1cd3163
TT
54092020-04-13 Tom Tromey <tom@tromey.com>
5410
5411 * utils.c (flush_streams): New function.
5412 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5413
29f2bf4f
TT
54142020-04-13 Tom Tromey <tom@tromey.com>
5415
5416 * event-loop.c (handle_file_event): Use warning, not
5417 printf_unfiltered.
5418
98029d02
TT
54192020-04-13 Tom Tromey <tom@tromey.com>
5420
5421 * event-loop.c: Include <chrono>.
5422
06cc9596
TT
54232020-04-13 Tom Tromey <tom@tromey.com>
5424
5425 * gdb_select.h: Move to ../gdbsupport/.
5426 * event-loop.c: Update include path.
5427 * top.c: Update include path.
5428 * ser-base.c: Update include path.
5429 * ui-file.c: Update include path.
5430 * ser-tcp.c: Update include path.
5431 * guile/scm-ports.c: Update include path.
5432 * posix-hdep.c: Update include path.
5433 * ser-unix.c: Update include path.
5434 * gdb_usleep.c: Update include path.
5435 * mingw-hdep.c: Update include path.
5436 * inflow.c: Update include path.
5437 * infrun.c: Update include path.
5438 * event-top.c: Update include path.
5439
8ae8e197
TT
54402020-04-13 Tom Tromey <tom@tromey.com>
5441
5442 * configure: Rebuild.
5443 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5444
58cf28e8
TT
54452020-04-13 Tom Tromey <tom@tromey.com>
5446
5447 * event-loop.h (start_event_loop): Don't declare.
5448 * event-loop.c (start_event_loop): Move...
5449 * main.c (start_event_loop): ...here. Now static.
5450
b7f999ae
SDJ
54512020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5452
5453 * MAINTAINERS: Update my email address.
5454
1085dfd4
KR
54552020-04-12 Kamil Rytarowski <n54@gmx.com>
5456
5457 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5458 IP_ALL.
5459
49d1d1f5
KR
54602020-04-12 Kamil Rytarowski <n54@gmx.com>
5461
5462 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5463 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5464
b4848d2a
KR
54652020-04-12 Kamil Rytarowski <n54@gmx.com>
5466
5467 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5468 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5469
51c133d5
KR
54702020-04-12 Kamil Rytarowski <n54@gmx.com>
5471
5472 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5473
54b8cbd0
KR
54742020-04-11 Kamil Rytarowski <n54@gmx.com>
5475
5476 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5477 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5478 (nbsd_nat_target::info_proc): New functions.
5479 * nbsd-nat.c (kinfo_get_vmmap): New function.
5480 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5481 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5482 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5483 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5484 functions.
5485 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5486 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5487 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5488 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5489 (KINFO_VME_FLAG_GROWS_DOWN): New.
5490
cf83625d
AS
54912020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5492
5493 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5494 bit shift.
5495
0c4311ab
TT
54962020-04-10 Tom Tromey <tromey@adacore.com>
5497
5498 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5499
3e65b3e9
TT
55002020-04-10 Tom Tromey <tromey@adacore.com>
5501
5502 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5503 separate debug files.
5504
13302e95
HD
55052020-04-10 Hannes Domani <ssbssa@yahoo.de>
5506
5507 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5508 Move to...
5509 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5510 ... here.
5511 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5512 Check for STATUS_WX86_BREAKPOINT.
5513 (windows_nat_target::wait): Same.
5514
bdfc1e8a
TV
55152020-04-10 Tom de Vries <tdevries@suse.de>
5516
5517 PR cli/25808
5518 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5519
f4460aec
SM
55202020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5521
5522 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5523 (Write After Approval): Remove Tom de Vries.
5524
a25198bb
BE
55252020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5526
5527 revert partially:
5528 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5529
aac66a4c
SM
5530 * buildsym.c (record_line): Fix undefined behavior and preserve
5531 lines at eof.
a25198bb 5532
206c98a6
KR
55332020-04-09 Kamil Rytarowski <n54@gmx.com>
5534
5535 * auxv.h (svr4_auxv_parse): New.
5536 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5537 and generic_auxv_parse.
5538 (svr4_auxv_parse): Add.
5539 * obsd-tdep.c: Include "auxv.h".
5540 (obsd_auxv_parse): Remove.
5541 (obsd_init_abi): Remove comment.
5542 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5543 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5544 * nbsd-tdep.c: Include "auxv.h".
5545 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5546
71fbdbaf
TT
55472020-04-08 Tom Tromey <tromey@adacore.com>
5548
5549 * nat/windows-nat.h (last_wait_event): Don't declare.
5550 (wait_for_debug_event): Update comment.
5551 * nat/windows-nat.c (last_wait_event): Now static.
5552
2c1d95e8
TT
55532020-04-08 Tom Tromey <tromey@adacore.com>
5554
5555 * windows-nat.c (wait_for_debug_event): Move to
5556 nat/windows-nat.c.
5557 * nat/windows-nat.h (wait_for_debug_event): Declare.
5558 * nat/windows-nat.c (wait_for_debug_event): Move from
5559 windows-nat.c. No longer static.
5560
d2977bc4
TT
55612020-04-08 Tom Tromey <tromey@adacore.com>
5562
5563 * windows-nat.c (get_windows_debug_event): Use
5564 fetch_pending_stop.
5565 * nat/windows-nat.h (fetch_pending_stop): Declare.
5566 * nat/windows-nat.c (fetch_pending_stop): New function.
5567
e758e19c
TT
55682020-04-08 Tom Tromey <tromey@adacore.com>
5569
5570 * windows-nat.c (windows_continue): Use matching_pending_stop and
5571 continue_last_debug_event.
5572 * nat/windows-nat.h (matching_pending_stop)
5573 (continue_last_debug_event): Declare.
5574 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5575 (matching_pending_stop, continue_last_debug_event): New
5576 functions.
5577
8d30e395
TT
55782020-04-08 Tom Tromey <tromey@adacore.com>
5579
5580 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5581 (handle_exception_result): Move to nat/windows-nat.h.
5582 (DEBUG_EXCEPTION_SIMPLE): Remove.
5583 (windows_nat::handle_ms_vc_exception): New function.
5584 (handle_exception): Move to nat/windows-nat.c.
5585 (get_windows_debug_event): Update.
5586 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5587 nat/windows-nat.c.
5588 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5589 (handle_exception_result): Move from windows-nat.c.
5590 (handle_exception): Declare.
5591 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5592 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5593 windows-nat.c.
5594
29de418d
TT
55952020-04-08 Tom Tromey <tromey@adacore.com>
5596
5597 * windows-nat.c (exception_count, event_count): Remove.
5598 (handle_exception, get_windows_debug_event)
5599 (do_initial_windows_stuff): Update.
5600
a816ba18
TT
56012020-04-08 Tom Tromey <tromey@adacore.com>
5602
5603 * windows-nat.c (windows_nat::handle_load_dll)
5604 (windows_nat::handle_unload_dll): Rename. No longer static.
5605 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5606 Declare.
5607
a00caa12
TT
56082020-04-08 Tom Tromey <tromey@adacore.com>
5609
5610 * complaints.h (stop_whining): Declare at top-level.
5611 (complaint): Don't declare stop_whining.
5612
d41b524f
TT
56132020-04-08 Tom Tromey <tromey@adacore.com>
5614
5615 * windows-nat.c (windows_nat::handle_output_debug_string):
5616 Rename. No longer static.
5617 * nat/windows-nat.h (handle_output_debug_string): Declare.
5618
3c76026d
TT
56192020-04-08 Tom Tromey <tromey@adacore.com>
5620
5621 * windows-nat.c (current_process_handle, current_process_id)
5622 (main_thread_id, last_sig, current_event, last_wait_event)
5623 (current_windows_thread, desired_stop_thread_id, pending_stops)
5624 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5625 (display_selectors, fake_create_process)
5626 (get_windows_debug_event): Update.
5627 * nat/windows-nat.h (current_process_handle, current_process_id)
5628 (main_thread_id, last_sig, current_event, last_wait_event)
5629 (current_windows_thread, desired_stop_thread_id, pending_stops)
5630 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5631 * nat/windows-nat.c (current_process_handle, current_process_id)
5632 (main_thread_id, last_sig, current_event, last_wait_event)
5633 (current_windows_thread, desired_stop_thread_id, pending_stops)
5634 (siginfo_er): New globals. Move from windows-nat.c.
5635
9d8679cc
TT
56362020-04-08 Tom Tromey <tromey@adacore.com>
5637
5638 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5639 (handle_load_dll): Update.
5640 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5641
28688adf
TT
56422020-04-08 Tom Tromey <tromey@adacore.com>
5643
5644 * windows-nat.c (enum thread_disposition_type): Move to
5645 nat/windows-nat.h.
5646 (windows_nat::thread_rec): Rename from thread_rec. No longer
5647 static.
5648 (windows_add_thread, windows_nat_target::fetch_registers)
5649 (windows_nat_target::store_registers, handle_exception)
5650 (windows_nat_target::resume, get_windows_debug_event)
5651 (windows_nat_target::get_tib_address)
5652 (windows_nat_target::thread_name)
5653 (windows_nat_target::thread_alive): Update.
5654 * nat/windows-nat.h (enum thread_disposition_type): Move from
5655 windows-nat.c.
5656 (thread_rec): Declare.
5657
4834dad0
TT
56582020-04-08 Tom Tromey <tromey@adacore.com>
5659
5660 * windows-nat.c: Add "using namespace".
5661 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5662 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5663
65bafd5b
TT
56642020-04-08 Tom Tromey <tromey@adacore.com>
5665
5666 * nat/windows-nat.h (struct windows_thread_info): Declare
5667 destructor.
5668 * nat/windows-nat.c (~windows_thread_info): New.
5669
0a4afda3
TT
56702020-04-08 Tom Tromey <tromey@adacore.com>
5671
5672 PR gdb/22992
5673 * windows-nat.c (current_event): Update comment.
5674 (last_wait_event, desired_stop_thread_id): New globals.
5675 (struct pending_stop): New.
5676 (pending_stops): New global.
5677 (windows_nat_target) <stopped_by_sw_breakpoint>
5678 <supports_stopped_by_sw_breakpoint>: New methods.
5679 (windows_fetch_one_register): Add assertions. Adjust PC.
5680 (windows_continue): Handle pending stops. Suspend other threads
5681 when stepping. Use last_wait_event
5682 (wait_for_debug_event): New function.
5683 (get_windows_debug_event): Use wait_for_debug_event. Handle
5684 pending stops. Queue spurious stops.
5685 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5686 (windows_nat_target::kill): Use wait_for_debug_event.
5687 * nat/windows-nat.h (struct windows_thread_info)
5688 <stopped_at_software_breakpoint>: New field.
5689 * nat/windows-nat.c (windows_thread_info::resume): Clear
5690 stopped_at_software_breakpoint.
5691
8e61ebec
TT
56922020-04-08 Tom Tromey <tromey@adacore.com>
5693
5694 * windows-nat.c (enum thread_disposition_type): New.
5695 (thread_rec): Replace "get_context" parameter with "disposition";
5696 change type.
5697 (windows_add_thread, windows_nat_target::fetch_registers)
5698 (windows_nat_target::store_registers, handle_exception)
5699 (windows_nat_target::resume, get_windows_debug_event)
5700 (windows_nat_target::get_tib_address)
5701 (windows_nat_target::thread_name)
5702 (windows_nat_target::thread_alive): Update.
5703
98a03287
TT
57042020-04-08 Tom Tromey <tromey@adacore.com>
5705
5706 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5707 (windows_continue): Use windows_continue::resume.
5708 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5709 resume>: Declare new methods.
5710 * nat/windows-nat.c: New file.
5711 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5712
7c7411bc
TT
57132020-04-08 Tom Tromey <tromey@adacore.com>
5714
5715 * windows-nat.c (windows_add_thread, windows_delete_thread)
5716 (windows_nat_target::fetch_registers)
5717 (windows_nat_target::store_registers, fake_create_process)
5718 (windows_nat_target::resume, windows_nat_target::resume)
5719 (get_windows_debug_event, windows_nat_target::wait)
5720 (windows_nat_target::pid_to_str)
5721 (windows_nat_target::get_tib_address)
5722 (windows_nat_target::get_ada_task_ptid)
5723 (windows_nat_target::thread_name)
5724 (windows_nat_target::thread_alive): Use lwp, not tid.
5725
2950fdf7
TT
57262020-04-08 Tom Tromey <tromey@adacore.com>
5727
5728 * windows-nat.c (handle_exception)
5729 (windows_nat_target::thread_name): Update.
5730 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5731 <name>: Now unique_xmalloc_ptr.
5732
62fe396b
TT
57332020-04-08 Tom Tromey <tromey@adacore.com>
5734
5735 * windows-nat.c (thread_rec)
5736 (windows_nat_target::fetch_registers): Update.
5737 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5738 Update comment.
5739 <debug_registers_changed, reload_context>: Now bool.
5740
e9534bd2
TT
57412020-04-08 Tom Tromey <tromey@adacore.com>
5742
5743 * windows-nat.c (windows_add_thread): Use new.
5744 (windows_init_thread_list, windows_delete_thread): Use delete.
5745 (get_windows_debug_event): Update.
5746 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5747 destructor, and initializers.
5748
ae1f8880
TT
57492020-04-08 Tom Tromey <tromey@adacore.com>
5750
5751 * windows-nat.c (struct windows_thread_info): Remove.
5752 * nat/windows-nat.h: New file.
5753
55a1e039
TT
57542020-04-08 Tom Tromey <tromey@adacore.com>
5755
5756 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5757 (thread_rec, windows_add_thread, windows_delete_thread)
5758 (windows_continue): Update.
5759
93366324
TT
57602020-04-08 Tom Tromey <tromey@adacore.com>
5761
5762 * windows-nat.c (struct windows_thread_info): Remove typedef.
5763 (thread_head): Remove.
5764 (thread_list): New global.
5765 (thread_rec, windows_add_thread, windows_init_thread_list)
5766 (windows_delete_thread, windows_continue): Update.
5767
0f2265e2
SM
57682020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5769
5770 * windows-tdep.h (windows_init_abi): Add comment.
5771 (cygwin_init_abi): New declaration.
5772 * windows-tdep.c: Split signal enumeration in two, one for
5773 Windows and one for Cygwin.
5774 (windows_gdb_signal_to_target): Only deal with signal of the
5775 Windows OS ABI.
5776 (cygwin_gdb_signal_to_target): New function.
5777 (windows_init_abi): Rename to windows_init_abi_common, don't set
5778 gdb_signal_to_target gdbarch method. Add new new function with
5779 this name.
5780 (cygwin_init_abi): New function.
5781 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5782 comment. Don't call windows_init_abi.
5783 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5784 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5785 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5786 i386_windows_init_abi_common, don't call windows_init_abi. Add
5787 a new function of this name.
5788 (i386_cygwin_init_abi): New function.
5789 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5790 OS ABI Cygwin.
5791
3810f182
SM
57922020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5793
5794 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5795 parameter.c.
5796 (dwarf2_read_gdb_index): Update.
5797
063f8e80
KR
57982020-04-07 Kamil Rytarowski <n54@gmx.com>
5799
5800 * nbsd-tdep.c: Include "objfiles.h".
5801 (nbsd_skip_solib_resolver): New.
5802 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5803
85a9510c 58042020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5805
5806 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5807 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5808 with DW_LLE_base_addressx are being emitted in DWARFv5.
5809 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5810 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5811 unsigned integer.
5812
9fc3eaae 58132020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5814
5815 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5816 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5817 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5818 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5819 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5820 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5821 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5822
5823
41144253 58242020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5825
5826 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5827 (read_loclist_index): New function definition.
5828 (lookup_loclist_base): New function definition.
5829 (read_loclist_header): New function definition.
5830 (dwarf2_cu): Add loclist_base and loclist_header field.
5831 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
5832 (read_full_die_1): Read the value of DW_AT_loclists_base.
5833 (read_attribute_reprocess): Handle DW_FORM_loclistx.
5834 (read_attribute_value): Handle DW_FORM_loclistx.
5835 (skip_one_die): Handle DW_FORM_loclistx.
5836 (loclist_header): New structure declaration.
5837 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
5838
9f4e76a4
SM
58392020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
5840
5841 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
5842 constructor. Remove `addr` parameter from other constructor and
5843 add `per_cu` parameter.
5844 * dwarf2/read.c (create_partial_symtab): Update.
5845
25c11aca
TV
58462020-04-07 Tom de Vries <tdevries@suse.de>
5847
5848 PR symtab/25796
5849 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
5850 (partial_die_info::fixup): Inherit has_const_value.
5851
5707e24b
TV
58522020-04-07 Tom de Vries <tdevries@suse.de>
5853
5854 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
5855 symbols without address.
5856
05f00e22
KR
58572020-04-06 Kamil Rytarowski <n54@gmx.com>
5858
5859 * nbsd-nat.h (struct thread_info): Add forward declaration.
5860 (nbsd_nat_target::thread_alive): Add.
5861 (nbsd_nat_target::thread_name): Likewise.
5862 (nbsd_nat_target::update_thread_list): Likewise.
5863 (update_thread_list::post_attach): Likewise.
5864 (post_attach::pid_to_str): Likewise.
5865 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
5866 (nbsd_thread_lister): Add.
5867 (nbsd_nat_target::thread_alive): Likewise.
5868 (nbsd_nat_target::thread_name): Likewise.
5869 (nbsd_add_threads): Likewise.
5870 (update_thread_list::post_attach): Likewise.
5871 (nbsd_nat_target::update_thread_list): Likewise.
5872 (post_attach::pid_to_str): Likewise.
5873
6ee448cc
TT
58742020-04-06 Tom Tromey <tromey@adacore.com>
5875
5876 * ada-valprint.c (print_variant_part): Extract the variant field.
5877 (print_field_values): Use the field as the outer value when
5878 recursing.
5879
dea34e8c
TT
58802020-04-06 Tom Tromey <tromey@adacore.com>
5881
5882 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
5883 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
5884 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
5885 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
5886 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
5887
93689ce9
TT
58882020-04-06 Tom Tromey <tromey@adacore.com>
5889
5890 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
5891 TYPE_CODE_ERROR.
5892
79743962
KR
58932020-04-06 Kamil Rytarowski <n54@gmx.com>
5894
5895 * nbsd-tdep.c: Include "gdbarch.h".
5896 Define enum with NetBSD signal numbers.
5897 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
5898 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
5899 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5900 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
5901 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
5902 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
5903 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
5904 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5905 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
5906 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
5907 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
5908 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
5909
9e7c9a03
HD
59102020-04-03 Hannes Domani <ssbssa@yahoo.de>
5911
5912 PR gdb/25325
5913 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
5914
d9e49b61
TT
59152020-04-03 Tom Tromey <tromey@adacore.com>
5916
5917 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
5918 Read constant block.
5919
e0fc5c3f
SM
59202020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5921
5922 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
5923 (gdb_bfd_get_full_section_contents): New declaration.
5924 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
5925 * windows-tdep.c (is_linked_with_cygwin_dll): Use
5926 gdb_bfd_get_full_section_contents.
5927
e2ff18a0
SM
59282020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
5929
5930 * exec.c (build_section_table): Replace internal_error with
5931 gdb_assert.
5932 (section_table_xfer_memory_partial): Likewise.
5933 * mdebugread.c (parse_partial_symbols): Likewise.
5934 * psymtab.c (lookup_partial_symbol): Likewise.
5935 * utils.c (wrap_here): Likewise.
5936
0830d301
TT
59372020-04-02 Tom Tromey <tromey@adacore.com>
5938
5939 * f-lang.c (build_fortran_types): Use arch_type to initialize
5940 builtin_complex_s32 in the TYPE_CODE_ERROR case.
5941
e7da7f8f
TT
59422020-04-02 Tom Tromey <tromey@adacore.com>
5943
5944 * dwarf2/read.c (partial_die_info::read): Do not create a vector
5945 of attributes.
5946
c90d28ac
AB
59472020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
5948 Bernd Edlinger <bernd.edlinger@hotmail.de>
5949 Tom Tromey <tromey@adacore.com>
5950
5951 * buildsym.c (buildsym_compunit::record_line): Remove
5952 deduplication code.
5953
1aa98955
TV
59542020-04-02 Tom de Vries <tdevries@suse.de>
5955
5956 PR ada/24671
5957 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
5958
d3214198
TV
59592020-04-02 Tom de Vries <tdevries@suse.de>
5960
5961 * dwarf2/read.c (dwarf2_gdb_index_functions,
5962 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
5963 NULL.
5964 * psymtab.c (psym_lookup_global_symbol_language): New function.
5965 (psym_functions): Init psym_lookup_global_symbol_language with
5966 psym_lookup_global_symbol_language.
5967 * symfile-debug.c (debug_sym_quick_functions): Init
5968 lookup_global_symbol_language with NULL.
5969 * symfile.c (set_initial_language): Remove fixme comment.
5970 * symfile.h (struct quick_symbol_functions): Add
5971 lookup_global_symbol_language.
5972 * symtab.c (find_quick_global_symbol_language): New function.
5973 (find_main_name): Use find_quick_global_symbol_language.
5974
2836752f
SM
59752020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
5976
5977 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
5978
64dc2d4b
BE
59792020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5980
5981 * buildsym.c (record_line): Fix undefined behavior and preserve
5982 lines at eof.
5983
bbe3dc41
BE
59842020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5985
5986 * buildsym.c (record_line): Fix the resizing condition.
5987
6b4a335b
TT
59882020-04-01 Tom Tromey <tom@tromey.com>
5989
5990 * value.h (value_literal_complex): Add comment.
5991 * valops.c (value_literal_complex): Refer to value.h.
5992
3638a098
TT
59932020-04-01 Tom Tromey <tom@tromey.com>
5994
5995 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
5996 (scalar_type): New rule, from typebase.
5997 (typebase): Use scalar_type. Recognize complex types.
5998 (field_name): Handle FLOAT_KEYWORD.
5999 (ident_tokens): Add _Complex and __complex__.
6000
c34e8714
TT
60012020-04-01 Tom Tromey <tom@tromey.com>
6002
6003 PR exp/25299:
6004 * valarith.c (promotion_type, complex_binop): New functions.
6005 (scalar_binop): Handle complex numbers. Use promotion_type.
6006 (value_pos, value_neg, value_complement): Handle complex numbers.
6007
fa649bb7
TT
60082020-04-01 Tom Tromey <tom@tromey.com>
6009
6010 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6011 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6012 (parse_number): Handle complex numbers.
6013
981c08ce
TT
60142020-04-01 Tom Tromey <tom@tromey.com>
6015
6016 * c-valprint.c (c_decorations): Change complex suffix to "i".
6017
4c99290d
TT
60182020-04-01 Tom Tromey <tom@tromey.com>
6019
6020 * valprint.c (generic_value_print_complex): Use accessors.
6021 * value.h (value_real_part, value_imaginary_part): Declare.
6022 * valops.c (value_real_part, value_imaginary_part): New
6023 functions.
6024 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6025
5b930b45
TT
60262020-04-01 Tom Tromey <tom@tromey.com>
6027
6028 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6029 (read_range_type): Update.
6030 * mdebugread.c (basic_type): Update.
6031 * go-lang.c (build_go_types): Use init_complex_type.
6032 * gdbtypes.h (struct main_type) <complex_type>: New member.
6033 (init_complex_type): Update.
6034 (arch_complex_type): Don't declare.
6035 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6036 Make name if none given. Use alloc_type_copy. Look for cached
6037 complex type.
6038 (arch_complex_type): Remove.
6039 (gdbtypes_post_init): Use init_complex_type.
6040 * f-lang.c (build_fortran_types): Use init_complex_type.
6041 * dwarf2/read.c (read_base_type): Update.
6042 * d-lang.c (build_d_types): Use init_complex_type.
6043 * ctfread.c (read_base_type): Update.
6044
53cccef1
TBA
60452020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6046
6047 * infrun.c (stop_all_threads): Update assertion, plus when
6048 stopping threads, take into account that we might be trying
6049 to stop an all-stop target.
6050 (stop_waiting): Call 'stop_all_threads' if there exists a
6051 non-stop target.
6052
a0714d30
TBA
60532020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6054
6055 * target.h (exists_non_stop_target): New function declaration.
6056 * target.c (exists_non_stop_target): New function.
6057
60e22c1e
HD
60582020-04-01 Hannes Domani <ssbssa@yahoo.de>
6059
6060 PR gdb/24789
6061 * eval.c (is_integral_or_integral_reference): New function.
6062 (evaluate_subexp_standard): Allow integer references in
6063 pointer arithmetic.
6064
e139a727
TBA
60652020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6066
6067 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6068 check for no ptid in the stop reply when the target is non-stop.
6069
e0802d59
TT
60702020-04-01 Tom Tromey <tromey@adacore.com>
6071
6072 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6073 "name" parameter to rvalue reference. Initialize m_name_holder.
6074 <lookup_name_info>: New overloads.
6075 <name>: Return gdb::string_view.
6076 <c_str>: New method.
6077 <make_ignore_params>: Update.
6078 <search_name_hash>: Update.
6079 <language_lookup_name>: Return const char *.
6080 <m_name>: Change type.
6081 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6082 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6083 (lookup_name_info::match_any): Update.
6084 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6085 Update.
6086 * minsyms.c (linkage_name_str): Update.
6087 * language.c (default_symbol_name_matcher): Update.
6088 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6089 Update.
6090 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6091 (ada_lookup_name_info::ada_lookup_name_info): Update.
6092 (literal_symbol_name_matcher): Update.
6093
8c072cb6
TT
60942020-04-01 Tom Tromey <tromey@adacore.com>
6095
6096 * psymtab.c (psymtab_search_name): Remove function.
6097 (psym_lookup_symbol): Create search name and lookup name here.
6098 (lookup_partial_symbol): Remove "name" parameter; add
6099 lookup_name.
6100 (psym_expand_symtabs_for_function): Update.
6101
6f29a534
TT
61022020-03-31 Joel Jones <joelkevinjones@gmail.com>
6103
6104 PR tui/25597:
6105 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6106
af62665e
TT
61072020-03-31 Tom Tromey <tromey@adacore.com>
6108
6109 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6110 memcpy.
6111
d1a89da5
NC
61122020-03-30 Nelson Chu <nelson.chu@sifive.com>
6113
6114 * features/riscv/32bit-csr.xml: Regenerated.
6115 * features/riscv/64bit-csr.xml: Regenerated.
6116
d8af9068
TT
61172020-03-30 Tom Tromey <tromey@adacore.com>
6118
6119 * ada-valprint.c (print_variant_part): Update.
6120 * ada-lang.h (ada_which_variant_applies): Update.
6121 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6122 outer_valaddr parameters; replace with "outer" value parameter.
6123 (to_fixed_variant_branch_type): Update.
6124
227c0bf4
PFC
61252020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6126
6127 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6128 <list>. Remove inclusion of observable.h.
6129 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6130 (struct arch_lwp_info): New struct.
6131 (class ppc_linux_dreg_interface): New class.
6132 (struct ppc_linux_process_info): New struct.
6133 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6134 <low_new_clone, low_forget_process, low_prepare_to_resume>
6135 <copy_thread_dreg_state, mark_thread_stale>
6136 <mark_debug_registers_changed, register_hw_breakpoint>
6137 <clear_hw_breakpoint, register_wp, clear_wp>
6138 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6139 <num_memory_accesses, get_trigger_type>
6140 <create_watchpoint_request, hwdebug_point_cmp>
6141 <init_arch_lwp_info, get_arch_lwp_info>
6142 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6143 methods.
6144 <struct ptid_hash>: New inner struct.
6145 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6146 members.
6147 (saved_dabr_value, hwdebug_info, max_slots_number)
6148 (struct hw_break_tuple, struct thread_points, ppc_threads)
6149 (have_ptrace_hwdebug_interface)
6150 (hwdebug_find_thread_points_by_tid)
6151 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6152 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6153 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6154 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6155 use m_dreg_interface.
6156 (hwdebug_point_cmp): Change to...
6157 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6158 reference arguments instead of pointers.
6159 (ppc_linux_nat_target::ranged_break_num_registers): Use
6160 m_dreg_interface.
6161 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6162 m_dreg_interface. Call register_hw_breakpoint.
6163 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6164 m_dreg_interface. Call clear_hw_breakpoint.
6165 (get_trigger_type): Change to...
6166 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6167 comment.
6168 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6169 use m_dreg_interface. Call register_hw_breakpoint.
6170 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6171 use m_dreg_interface. Call clear_hw_breakpoint.
6172 (can_use_watchpoint_cond_accel): Change to...
6173 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6174 method. Update comment, use m_dreg_interface and
6175 m_process_info.
6176 (calculate_dvc): Change to...
6177 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6178 m_dreg_interface.
6179 (num_memory_accesses): Change to...
6180 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6181 (check_condition): Change to...
6182 (ppc_linux_nat_target::check_condition): ...this method.
6183 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6184 comment, use m_dreg_interface.
6185 (create_watchpoint_request): Change to...
6186 (ppc_linux_nat_target::create_watchpoint_request): ...this
6187 method. Use m_dreg_interface.
6188 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6189 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6190 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6191 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6192 (ppc_linux_nat_target::low_forget_process)
6193 (ppc_linux_nat_target::low_new_fork)
6194 (ppc_linux_nat_target::low_new_clone)
6195 (ppc_linux_nat_target::low_delete_thread)
6196 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6197 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6198 only call mark_thread_stale.
6199 (ppc_linux_thread_exit): Remove.
6200 (ppc_linux_nat_target::stopped_data_address): Change to...
6201 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6202 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6203 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6204 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6205 comment. Call low_stopped_data_address.
6206 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6207 m_dreg_interface.
6208 (ppc_linux_nat_target::masked_watch_num_registers): Use
6209 m_dreg_interface.
6210 (ppc_linux_nat_target::copy_thread_dreg_state)
6211 (ppc_linux_nat_target::mark_thread_stale)
6212 (ppc_linux_nat_target::mark_debug_registers_changed)
6213 (ppc_linux_nat_target::register_hw_breakpoint)
6214 (ppc_linux_nat_target::clear_hw_breakpoint)
6215 (ppc_linux_nat_target::register_wp)
6216 (ppc_linux_nat_target::clear_wp)
6217 (ppc_linux_nat_target::init_arch_lwp_info)
6218 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6219 (_initialize_ppc_linux_nat): Remove observer callback.
6220
4db10d8f
PFC
62212020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6222
6223 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6224 (ppc_linux_nat_target::auxv_parse)
6225 (ppc_linux_nat_target::read_description)
6226 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6227 Move up.
6228
1310c1b0
PFC
62292020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6230
6231 * linux-nat.h (low_new_clone): New method.
6232 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6233
69b037c3
SM
62342020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6235
6236 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6237 (dbx_expand_psymtab): ... this.
6238 (start_psymtab): Update.
6239 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6240 (mdebug_expand_psymtab): ... this.
6241 (parse_partial_symbols): Update.
6242 (new_psymtab): Update.
6243 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6244 (xcoff_expand_psymtab): ... this.
6245 (xcoff_start_psymtab): Update.
6246
48993951
SM
62472020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6248
6249 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6250 <expand_dependencies>: ... this.
6251 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6252 (partial_symtab::expand_dependencies): ... this.
6253 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6254 Update.
6255 (dwarf2_psymtab::expand_psymtab): Update.
6256 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6257 * mdebugread.c (psymtab_to_symtab_1): Update.
6258 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6259
3ad83046
SM
62602020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6261
6262 * psympriv.h (discard_psymtab): Remove.
6263 * dbxread.c (dbx_end_psymtab): Update.
6264 * xcoffread.c (xcoff_end_psymtab): Update.
6265
4d1b9ab6
TT
62662020-03-28 Tom Tromey <tom@tromey.com>
6267
6268 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6269 comment.
6270
f1749218
TT
62712020-03-28 Tom Tromey <tom@tromey.com>
6272
6273 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6274
ebea7626
HD
62752020-03-27 Hannes Domani <ssbssa@yahoo.de>
6276
6277 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6278
a879b4d5
JB
62792020-03-26 John Baldwin <jhb@FreeBSD.org>
6280
6281 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6282
0826b30a
TT
62832020-03-26 Tom Tromey <tom@tromey.com>
6284
6285 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6286 (mark_common_block_symbol_computed, read_tag_string_type)
6287 (attr_to_dynamic_prop, read_subrange_type): Update.
6288 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6289 to be methods on struct attribute.
6290 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6291 (read_call_site_scope, partial_die_info::read)
6292 (partial_die_info::read, lookup_die_type, follow_die_ref):
6293 Update.
6294 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6295 from dwarf2_get_ref_die_offset.
6296 (attribute::constant_value): New method, from
6297 dwarf2_get_attr_constant_value.
6298 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6299 Declare method.
6300 <constant_value>: New method.
6301
2b2558bf
TT
63022020-03-26 Tom Tromey <tom@tromey.com>
6303
6304 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6305 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6306 (dwarf_type_encoding_name): Move to stringify.c.
6307 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6308 * dwarf2/stringify.c: New file.
6309 * dwarf2/stringify.h: New file.
6310
eeb64781
TT
63112020-03-26 Tom Tromey <tom@tromey.com>
6312
6313 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6314 Rewrite.
6315
a39fdb41
TT
63162020-03-26 Tom Tromey <tom@tromey.com>
6317
6318 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6319 methods.
6320 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6321 (lookup_ranges_base): Likewise.
6322 (read_cutu_die_from_dwo, read_full_die_1): Update.
6323
436c571c
TT
63242020-03-26 Tom Tromey <tom@tromey.com>
6325
6326 * dwarf2/read.c (read_import_statement, read_file_scope)
6327 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6328 (read_lexical_block_scope, read_call_site_scope)
6329 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6330 (handle_struct_member_die, process_structure_scope)
6331 (update_enumeration_type_from_children)
6332 (process_enumeration_scope, read_array_type, read_common_block)
6333 (read_namespace, read_module, read_subroutine_type): Update.
6334 (sibling_die): Remove.
6335
052c8bb8
TT
63362020-03-26 Tom Tromey <tom@tromey.com>
6337
6338 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6339 (build_type_psymtabs_reader, read_structure_type)
6340 (read_enumeration_type, read_full_die_1): Update.
6341 (dwarf2_attr_no_follow): Move to die.h.
6342 * dwarf2/die.h (struct die_info) <attr>: New method.
6343
2b24b6e4
TT
63442020-03-26 Tom Tromey <tom@tromey.com>
6345
6346 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6347 <base_address>: Now an optional.
6348 (dwarf2_find_base_address, dwarf2_rnglists_process)
6349 (dwarf2_ranges_process, fill_in_loclist_baton)
6350 (dwarf2_symbol_mark_computed): Update.
6351
c2d50fd0
TT
63522020-03-26 Tom Tromey <tom@tromey.com>
6353
6354 * dwarf2/read.c (struct die_info): Move to die.h.
6355 * dwarf2/die.h: New file.
6356
0df7ad3a
TT
63572020-03-26 Tom Tromey <tom@tromey.com>
6358
6359 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6360 * dwarf2/read.c
6361 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6362 Move to line-header.c.
6363 (read_checked_initial_length_and_offset, read_formatted_entries):
6364 Likewise.
6365 (dwarf_decode_line_header): Split into two.
6366 * dwarf2/line-header.c
6367 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6368 Move from read.c.
6369 (read_checked_initial_length_and_offset, read_formatted_entries):
6370 Likewise.
6371 (dwarf_decode_line_header): New function, split from read.c.
6372
86c0bb4c
TT
63732020-03-26 Tom Tromey <tom@tromey.com>
6374
6375 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6376 Declare method.
6377 * dwarf2/read.c (read_attribute_value): Update.
6378 (dwarf2_per_objfile::read_line_string): Rename from
6379 read_indirect_line_string.
6380 (read_formatted_entries): Update.
6381
2ef46c2f
TT
63822020-03-26 Tom Tromey <tom@tromey.com>
6383
6384 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6385 variable.
6386
4f9c1eda
TT
63872020-03-26 Tom Tromey <tom@tromey.com>
6388
6389 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6390 const.
6391 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6392 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6393 parameter const.
6394
5a0e026f
TT
63952020-03-26 Tom Tromey <tom@tromey.com>
6396
6397 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6398 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6399 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6400 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6401
8844c11b
TT
64022020-03-26 Tom Tromey <tom@tromey.com>
6403
6404 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6405 file_names_size, file_full_name, file_file_name>: Use const.
6406 <file_name_at, file_names>: Add const overload.
6407 * dwarf2/line-header.c (line_header::file_file_name)
6408 (line_header::file_full_name): Update.
6409
c90ec28a
TT
64102020-03-26 Tom Tromey <tom@tromey.com>
6411
6412 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6413 (macro_start_file, consume_improper_spaces)
6414 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6415 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6416 (dwarf_decode_macros): Move to macro.c.
6417 * dwarf2/macro.c: New file.
6418 * dwarf2/macro.h: New file.
6419 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6420
4f44ae6c
TT
64212020-03-26 Tom Tromey <tom@tromey.com>
6422
6423 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6424 method.
6425 * dwarf2/section.c: New method. From
6426 read_indirect_string_at_offset_from.
6427 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6428 (read_indirect_string_at_offset_from): Move to section.c.
6429 (read_indirect_string_at_offset): Rewrite.
6430 (read_indirect_line_string_at_offset): Remove.
6431 (read_indirect_string, read_indirect_line_string)
6432 (dwarf_decode_macro_bytes): Update.
6433
a0194fa8
TT
64342020-03-26 Tom Tromey <tom@tromey.com>
6435
6436 * dwarf2/section.h (struct dwarf2_section_info)
6437 <overload_complaint>: Declare.
6438 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6439 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6440 Rename from dwarf2_section_buffer_overflow_complaint.
6441 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6442 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6443
3d27bbdb
TT
64442020-03-26 Tom Tromey <tom@tromey.com>
6445
6446 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6447 Declare.
6448 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6449 Move from read.c.
6450 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6451 to section.c.
6452
9eac9650
TT
64532020-03-26 Tom Tromey <tom@tromey.com>
6454
6455 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6456
bf80d710
TT
64572020-03-26 Tom Tromey <tom@tromey.com>
6458
6459 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6460 "builder".
6461 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6462 parameter.
6463 (dwarf_decode_macros): Update.
6464
0314b390
TT
64652020-03-26 Tom Tromey <tom@tromey.com>
6466
6467 * dwarf2/read.c (read_attribute_value): Update.
6468 (read_indirect_string_from_dwz): Move to dwz.c; change into
6469 method.
6470 (dwarf_decode_macro_bytes): Update.
6471 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6472 * dwarf2/dwz.c: New file.
6473 * Makefile.in (COMMON_SFILES): Add dwz.c.
6474
9fda78b6
TT
64752020-03-26 Tom Tromey <tom@tromey.com>
6476
6477 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6478 * dwarf2/read.c: Add include.
6479 * dwarf2/index-write.c: Add include.
6480 * dwarf2/index-cache.c: Add include.
6481 * dwarf2/dwz.h: New file.
6482
33aa3c10
TT
64832020-03-25 Tom Tromey <tom@tromey.com>
6484
6485 * compile/compile-object-load.c (get_out_value_type): Mention
6486 correct symbol name in error message.
6487
d503b685
HD
64882020-03-25 Hannes Domani <ssbssa@yahoo.de>
6489
6490 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6491
7b1eff95
TV
64922020-03-25 Tom de Vries <tdevries@suse.de>
6493
6494 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6495 * symmisc.c (dump_symtab_1): Print user and includes fields.
6496 (maintenance_info_symtabs): Same.
6497
dd895392
AB
64982020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6499
6500 PR gdb/25534
6501 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6502 (riscv_regcache_cooked_write): New function.
6503 (riscv_push_dummy_call): Use new function.
6504 (riscv_return_value): Likewise.
6505
5ab2fbf1
SM
65062020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6507
6508 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6509 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6510 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6511 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6512 * infrun.c (follow_fork): Likewise.
6513 (follow_fork_inferior): Likewise.
6514 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6515 * linux-nat.h (class linux_nat_target): Likewise.
6516 * remote.c (class remote_target) <follow_fork>: Likewise.
6517 (remote_target::follow_fork): Likewise.
6518 * target-delegates.c: Re-generate.
6519 * target.c (default_follow_fork): Likewise.
6520 (target_follow_fork): Likewise.
6521 * target.h (struct target_ops) <follow_fork>: Likewise.
6522 (target_follow_fork): Likewise.
6523
a64fafb5
TV
65242020-03-24 Tom de Vries <tdevries@suse.de>
6525
6526 * psymtab.c (maintenance_info_psymtabs): Print user field.
6527
fe26d3a3
TT
65282020-03-20 Tom Tromey <tromey@adacore.com>
6529
6530 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6531 const.
6532 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6533 const.
6534
c884cc46
SM
65352020-03-20 Simon Marchi <simon.marchi@efficios.com>
6536
6537 * ptrace.m4: Don't check for ptrace declaration.
6538 * config.in: Re-generate.
6539 * configure: Re-generate.
6540 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6541 not defined.
6542
1ff700c2
KR
65432020-03-20 Kamil Rytarowski <n54@gmx.com>
6544
6545 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6546 `PTRACE_TYPE_RET'.
6547 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6548 * sparc-nat.c (gdb_ptrace): Likewise.
6549 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6550
f7d4f0b1
TT
65512020-03-20 Tom Tromey <tromey@adacore.com>
6552
6553 * c-exp.y (lex_one_token): Fix assert.
6554
f67210ff
TT
65552020-03-20 Tom Tromey <tromey@adacore.com>
6556
6557 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6558 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6559 strncpy call.
6560
1773be9e
TT
65612020-03-20 Tom Tromey <tromey@adacore.com>
6562
6563 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6564
70304be9
TT
65652020-03-20 Tom Tromey <tromey@adacore.com>
6566
6567 * ada-valprint.c (print_variant_part): Remove parameters; switch
6568 to value-based API.
6569 (print_field_values): Likewise.
6570 (ada_val_print_struct_union): Likewise.
6571 (ada_value_print_1): Update.
6572
9faa006d
KR
65732020-03-20 Kamil Rytarowski <n54@gmx.com>
6574
6575 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6576 nbsd_nat_target instead of inf_ptrace_target.
6577 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6578 nbsd_nat_target.
6579
4a90f062
KR
65802020-03-20 Kamil Rytarowski <n54@gmx.com>
6581
6582 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6583 it to the ptrace call.
6584 * (store_registers): Likewise.
6585
65862020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6587
6588 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6589 it to the ptrace call.
6590 * (store_registers): Likewise.
6591
2d07da27
LM
65922020-03-19 Luis Machado <luis.machado@linaro.org>
6593
6594 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6595 valid, fetch vg value from ptrace.
6596
f09db380
KR
65972020-03-19 Kamil Rytarowski <n54@gmx.com>
6598 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6599 * inf-ptrace.c: Likewise.
6600 * (gdb_ptrace): Add.
6601 * (inf_ptrace_target::resume): Update.
6602 * (inf_ptrace_target::xfer_partial): Likewise.
6603 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6604 * (inf_ptrace_peek_poke): Update.
6605
fcc7376e
KR
66062020-03-19 Kamil Rytarowski <n54@gmx.com>
6607
6608 * x86-bsd-nat.c (gdb_ptrace): New.
6609 * (x86bsd_dr_set): Add new argument `ptid'.
6610 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6611 x86bsd_dr_set_addr): Update.
6612
cada5fc9
AB
66132020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6614
6615 * remote.c (remote_target::process_stop_reply): Handle events for
6616 all threads differently.
6617
19a2740f
AB
66182020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6619
6620 * completer.c (completion_tracker::remove_completion): Define new
6621 function.
6622 * completer.h (completion_tracker::remove_completion): Declare new
6623 function.
6624 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6625 when adding a C++ function symbol.
6626
724fd9ba
AB
66272020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6628
6629 * completer.c (completion_tracker::completion_hash_entry): Define
6630 new class.
6631 (advance_to_filename_complete_word_point): Call
6632 recompute_lowest_common_denominator.
6633 (completion_tracker::completion_tracker): Call discard_completions
6634 to setup the hash table.
6635 (completion_tracker::discard_completions): Allow for being called
6636 from the constructor, pass new equal function, and element deleter
6637 when constructing the hash table. Initialise new class member
6638 variables.
6639 (completion_tracker::maybe_add_completion): Remove use of
6640 m_entries_vec, and store more information into m_entries_hash.
6641 (completion_tracker::recompute_lcd_visitor): New function, most
6642 content taken from...
6643 (completion_tracker::recompute_lowest_common_denominator):
6644 ...here, this now just visits each item in the hash calling the
6645 above visitor.
6646 (completion_tracker::build_completion_result): Remove use of
6647 m_entries_vec, call recompute_lowest_common_denominator.
6648 * completer.h (completion_tracker::have_completions): Remove use
6649 of m_entries_vec.
6650 (completion_tracker::completion_hash_entry): Declare new class.
6651 (completion_tracker::recompute_lowest_common_denominator): Change
6652 function signature.
6653 (completion_tracker::recompute_lcd_visitor): Declare new function.
6654 (completion_tracker::m_entries_vec): Delete.
6655 (completion_tracker::m_entries_hash): Initialize to NULL.
6656 (completion_tracker::m_lowest_common_denominator_valid): New
6657 member variable.
6658 (completion_tracker::m_lowest_common_denominator_max_length): New
6659 member variable.
6660
5a82b8a1
KR
66612020-03-17 Kamil Rytarowski <n54@gmx.com>
6662
6663 * regformats/regdef.h: Put reg in gdb namespace.
6664
fb516a69
KR
66652020-03-17 Kamil Rytarowski <n54@gmx.com>
6666
6667 * i386-bsd-nat.c (gdb_ptrace): New.
6668 * (i386bsd_fetch_inferior_registers,
6669 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6670 * (i386bsd_fetch_inferior_registers,
6671 i386bsd_store_inferior_registers) Use gdb_ptrace.
6672
1c0aa1fb
KR
66732020-03-17 Kamil Rytarowski <n54@gmx.com>
6674
6675 * amd64-bsd-nat.c (gdb_ptrace): New.
6676 * (amd64bsd_fetch_inferior_registers,
6677 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6678 * (amd64bsd_fetch_inferior_registers,
6679 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6680
5ccd2fb7
KR
66812020-03-17 Kamil Rytarowski <n54@gmx.com>
6682
6683 * user-regs.c (user_reg::read): Rename to...
6684 (user_reg::xread): ...this.
6685 * (append_user_reg): Rename argument `read' to `xread'.
6686 * (user_reg_add_builtin): Likewise.
6687 * (user_reg_add): Likewise.
6688 * (value_of_user_reg): Likewise.
6689
2108a63a
KR
66902020-03-17 Kamil Rytarowski <n54@gmx.com>
6691
6692 * sparc-nat.c (gdb_ptrace): New.
6693 * sparc-nat.c (sparc_fetch_inferior_registers)
6694 (sparc_store_inferior_registers) Remove obsolete comment.
6695 * sparc-nat.c (sparc_fetch_inferior_registers)
6696 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6697 * sparc-nat.c (sparc_fetch_inferior_registers)
6698 (sparc_store_inferior_registers) Use gdb_ptrace.
6699
a225c9a8
KR
67002020-03-17 Kamil Rytarowski <n54@gmx.com>
6701
6702 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6703 it to the ptrace call.
6704 * sh-nbsd-nat.c (store_registers): Likewise.
6705
98097623
KR
67062020-03-17 Kamil Rytarowski <n54@gmx.com>
6707
6708 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6709 nbsd_nat_target instead of inf_ptrace_target.
6710 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6711 nbsd_nat_target.
6712
9e38d619
KR
67132020-03-17 Kamil Rytarowski <n54@gmx.com>
6714
6715 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6716
a2ecbe9f
KR
67172020-03-17 Kamil Rytarowski <n54@gmx.com>
6718
6719 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6720 <sys/sysctl.h>.
6721 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6722
58990295
TV
67232020-03-17 Tom de Vries <tdevries@suse.de>
6724
6725 PR gdb/23710
6726 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6727 fields.
6728 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6729 fields.
6730 (process_imported_unit_die): Skip import of c++ CUs.
6731
771dd3a8
TT
67322020-03-16 Tom Tromey <tom@tromey.com>
6733
6734 * p-valprint.c (pascal_object_print_value): Initialize
6735 base_value.
6736
817a7585
AK
67372020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6738 Shahab Vahedi <shahab@synopsys.com>
6739
6740 * Makefile.in: Add arch/arc.o
6741 * configure.tgt: Likewise.
6742 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6743 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6744 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6745 * arc-tdep.h (arc_read_description): Add proto type.
6746 * arch/arc.c: New file.
6747 * arch/arc.h: Likewise.
6748 * features/Makefile: Replace old target descriptions with new.
6749 * features/arc-arcompact.c: Remove.
6750 * features/arc-arcompact.xml: Likewise.
6751 * features/arc-v2.c: Likewise
6752 * features/arc-v2.xml: Likewise
6753 * features/arc/aux-arcompact.xml: New file.
6754 * features/arc/aux-v2.xml: Likewise.
6755 * features/arc/core-arcompact.xml: Likewise.
6756 * features/arc/core-v2.xml: Likewise.
6757 * features/arc/aux-arcompact.c: Generate.
6758 * features/arc/aux-v2.c: Likewise.
6759 * features/arc/core-arcompact.c: Likewise.
6760 * features/arc/core-v2.c: Likewise.
6761 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6762
67430cd0
TT
67632020-03-16 Tom Tromey <tromey@adacore.com>
6764
6765 PR gdb/25663:
6766 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6767 putting value into bcache.
6768
30efb6c7
SM
67692020-03-16 Simon Marchi <simon.marchi@efficios.com>
6770
6771 PR gdb/21500
6772 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6773 to...
6774 (amd64_windows_init_abi_common): ... this. Don't set size of
6775 long type.
6776 (amd64_windows_init_abi): New function.
6777 (amd64_cygwin_init_abi): New function.
6778 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6779 the Cygwin OS ABI.
6780 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6781 comment.
6782
8db52437
SM
67832020-03-16 Simon Marchi <simon.marchi@efficios.com>
6784
6785 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6786 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6787 (pe_import_directory_entry): New struct type.
6788 (is_linked_with_cygwin_dll): New function.
6789 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6790 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6791 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6792
5982a56a
SM
67932020-03-16 Simon Marchi <simon.marchi@efficios.com>
6794
6795 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6796 i386_cygwin_core_osabi_sniffer.
6797
7a1998df
SM
67982020-03-16 Simon Marchi <simon.marchi@efficios.com>
6799
6800 * i386-cygwin-tdep.c: Rename to...
6801 * i386-windows-tdep.c: ... this.
6802 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6803 i386-windows-tdep.c.
6804 * configure.tgt: Likewise.
6805
053205cc
SM
68062020-03-16 Simon Marchi <simon.marchi@efficios.com>
6807
6808 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6809 * osabi.c (gdb_osabi_names): Add "Windows".
6810 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6811 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6812 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6813 i386_cygwin_osabi_sniffer.
6814 (_initialize_i386_cygwin_tdep): Register OS ABI
6815 GDB_OSABI_WINDOWS for i386.
6816 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6817 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6818 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6819 for x86-64.
6820 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6821 when the target matches '*-*-mingw*'.
6822
fe4b2ee6
SM
68232020-03-16 Simon Marchi <simon.marchi@efficios.com>
6824
6825 * defs.h (enum gdb_osabi): Move to...
6826 * osabi.h (enum gdb_osabi): ... here.
6827 * gdbarch.sh: Include osabi.h in gdbarch.h.
6828 * gdbarch.h: Re-generate.
6829
cb9b645d
SM
68302020-03-16 Simon Marchi <simon.marchi@efficios.com>
6831
6832 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
6833 function.
6834 (_initialize_amd64_windows_tdep): Register osabi sniffer.
6835
3293bbaf
TT
68362020-03-14 Tom Tromey <tom@tromey.com>
6837
6838 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
6839 for C++.
6840 (c_type_print_modifier): Likewise. Add "language" parameter.
6841 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
6842 (c_type_print_base_1): Update.
6843 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
6844 constants.
6845 * type-stack.c (type_stack::insert): Handle tp_atomic and
6846 tp_restrict.
6847 (type_stack::follow_type_instance_flags): Likewise.
6848 (type_stack::follow_types): Likewise. Merge type-following code.
6849 * c-exp.y (RESTRICT, ATOMIC): New tokens.
6850 (space_identifier, cv_with_space_id)
6851 (const_or_volatile_or_space_identifier_noopt)
6852 (const_or_volatile_or_space_identifier): Remove.
6853 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
6854 rules.
6855 (ptr_operator, typebase): Update.
6856 (enum token_flag) <FLAG_C>: New constant.
6857 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
6858 "_Atomic".
6859 (lex_one_token): Handle FLAG_C.
6860
154151a6
KR
68612020-03-14 Kamil Rytarowski <n54@gmx.com>
6862
6863 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
6864 it to the ptrace call.
6865 * m68k-bsd-nat.c (store_registers): Likewise.
6866
bc107784
KR
68672020-03-14 Kamil Rytarowski <n54@gmx.com>
6868
6869 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
6870 gdb_byte *.
6871 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6872 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
6873 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
6874
01a80117
KR
68752020-03-14 Kamil Rytarowski <n54@gmx.com>
6876
6877 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
6878 nbsd_nat_target instead of inf_ptrace_target.
6879 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6880 nbsd_nat_target.
6881
f90280ca
KR
68822020-03-14 Kamil Rytarowski <n54@gmx.com>
6883
6884 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
6885 register_t.
6886
6def66f1
KR
68872020-03-14 Kamil Rytarowski <n54@gmx.com>
6888
6889 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
6890 it to the ptrace call.
6891 * alpha-bsd-nat.c (store_registers): Likewise.
6892
66eaca97
KR
68932020-03-14 Kamil Rytarowski <n54@gmx.com>
6894
6895 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
6896 includes.
6897 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
6898 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
6899 fill_fpregset): Likewise.
6900
4fed520b
KR
69012020-03-14 Kamil Rytarowski <n54@gmx.com>
6902
6903 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
6904 nbsd_nat_target instead of inf_ptrace_target.
6905 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6906 nbsd_nat_target.
6907
2190cf06
KR
69082020-03-14 Kamil Rytarowski <n54@gmx.com>
6909
6910 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
6911 register_t.
6912
75c56d3d
KR
69132020-03-14 Kamil Rytarowski <n54@gmx.com>
6914
6915 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
6916 it to the ptrace call.
6917 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
6918 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
6919 * arm-nbsd-nat.c (store_register): Likewise.
6920 * arm-nbsd-nat.c (store_regs): Likewise.
6921 * arm-nbsd-nat.c (store_fp_register): Likewise.
6922 * arm-nbsd-nat.c (store_fp_regs): Likewise.
6923
6018d381
KR
69242020-03-14 Kamil Rytarowski <n54@gmx.com>
6925
6926 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
6927 nbsd_nat_target instead of inf_ptrace_target.
6928 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6929 nbsd_nat_target.
6930
013f99f0
KR
69312020-03-14 Kamil Rytarowski <n54@gmx.com>
6932
6933 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
6934 it to the ptrace call.
6935 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
6936
12753073
KR
69372020-03-14 Kamil Rytarowski <n54@gmx.com>
6938
6227b330
KR
6939 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
6940 it to the ptrace call.
6941 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
6942
69432020-03-14 Kamil Rytarowski <n54@gmx.com>
6944
6945 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
6946 gdb_byte *.
12753073
KR
6947 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
6948
d5be5fa4
KR
69492020-03-14 Kamil Rytarowski <n54@gmx.com>
6950
6951 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
6952 instead of inf_ptrace_target.
6953 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6954 nbsd_nat_target.
6955
8110f842
KR
69562020-03-14 Kamil Rytarowski <n54@gmx.com>
6957
6958 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6959 register_t.
6960
52feded7
KR
69612020-03-14 Kamil Rytarowski <n54@gmx.com>
6962
6963 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
6964 register_t.
6965
25567eee
KR
69662020-03-14 Kamil Rytarowski <n54@gmx.com>
6967
6968 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
6969 register_t.
6970
426a9c18
TT
69712020-03-13 Tom Tromey <tom@tromey.com>
6972
6973 * value.h (val_print): Don't declare.
6974 * valprint.h (val_print_array_elements)
6975 (val_print_scalar_formatted, generic_val_print): Don't declare.
6976 * valprint.c (generic_val_print_array): Take a struct value.
6977 (generic_val_print_ptr, generic_val_print_memberptr)
6978 (generic_val_print_bool, generic_val_print_int)
6979 (generic_val_print_char, generic_val_print_complex)
6980 (generic_val_print): Remove.
6981 (generic_value_print): Update.
6982 (do_val_print): Remove unused parameters. Don't call
6983 la_val_print.
6984 (val_print): Remove.
6985 (common_val_print): Update. Don't call value_check_printable.
6986 (val_print_scalar_formatted, val_print_array_elements): Remove.
6987 * rust-lang.c (rust_val_print): Remove.
6988 (rust_language_defn): Update.
6989 * p-valprint.c (pascal_val_print): Remove.
6990 (pascal_value_print_inner): Update.
6991 (pascal_object_print_val_fields, pascal_object_print_val):
6992 Remove.
6993 (pascal_object_print_static_field): Update.
6994 * p-lang.h (pascal_val_print): Don't declare.
6995 * p-lang.c (pascal_language_defn): Update.
6996 * opencl-lang.c (opencl_language_defn): Update.
6997 * objc-lang.c (objc_language_defn): Update.
6998 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
6999 * m2-lang.h (m2_val_print): Don't declare.
7000 * m2-lang.c (m2_language_defn): Update.
7001 * language.h (struct language_defn) <la_val_print>: Remove.
7002 * language.c (unk_lang_value_print_inner): Rename. Change
7003 argument types.
7004 (unknown_language_defn, auto_language_defn): Update.
7005 * go-valprint.c (go_val_print): Remove.
7006 * go-lang.h (go_val_print): Don't declare.
7007 * go-lang.c (go_language_defn): Update.
7008 * f-valprint.c (f_val_print): Remove.
7009 * f-lang.h (f_value_print): Don't declare.
7010 * f-lang.c (f_language_defn): Update.
7011 * d-valprint.c (d_val_print): Remove.
7012 * d-lang.h (d_value_print): Don't declare.
7013 * d-lang.c (d_language_defn): Update.
7014 * cp-valprint.c (cp_print_value_fields)
7015 (cp_print_value_fields_rtti, cp_print_value): Remove.
7016 (cp_print_static_field): Update.
7017 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7018 (c_val_print_struct, c_val_print_union, c_val_print_int)
7019 (c_val_print_memberptr, c_val_print): Remove.
7020 * c-lang.h (c_val_print_array, cp_print_value_fields)
7021 (cp_print_value_fields_rtti): Don't declare.
7022 * c-lang.c (c_language_defn, cplus_language_defn)
7023 (asm_language_defn, minimal_language_defn): Update.
7024 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7025 (ada_val_print_enum): Take a struct value.
7026 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7027 (ada_val_print): Remove.
7028 (ada_value_print_1): Update.
7029 (printable_val_type): Remove.
7030 * ada-lang.h (ada_val_print): Don't declare.
7031 * ada-lang.c (ada_language_defn): Update.
7032
42331a1e
TT
70332020-03-13 Tom Tromey <tom@tromey.com>
7034
7035 * valprint.c (do_val_print): Update.
7036 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7037 a struct value.
7038 (value_to_value_object_no_release): Declare.
7039 * python/py-value.c (value_to_value_object_no_release): New
7040 function.
7041 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7042 struct value.
7043 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7044 function.
7045 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7046 a struct value.
7047 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7048 Declare.
7049 (gdbscm_apply_val_pretty_printer): Take a struct value.
7050 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7051 value.
7052 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7053 value.
7054 * extension-priv.h (struct extension_language_ops)
7055 <apply_val_pretty_printer>: Take a struct value.
7056 * cp-valprint.c (cp_print_value): Create a struct value.
7057 (cp_print_value): Update.
7058
3a916a97
TT
70592020-03-13 Tom Tromey <tom@tromey.com>
7060
7061 * ada-valprint.c (print_field_values): Call common_val_print.
7062
b59eac37
TT
70632020-03-13 Tom Tromey <tom@tromey.com>
7064
7065 * ada-valprint.c (val_print_packed_array_elements): Remove
7066 bitoffset and val parameters. Call common_val_print.
7067 (ada_val_print_string): Remove offset, address, and original_value
7068 parameters.
7069 (ada_val_print_array): Update.
7070 (ada_value_print_array): New function.
7071 (ada_value_print_1): Call it.
7072
03371129
TT
70732020-03-13 Tom Tromey <tom@tromey.com>
7074
7075 * ada-valprint.c (ada_value_print): Use common_val_print.
7076
2e088f8b
TT
70772020-03-13 Tom Tromey <tom@tromey.com>
7078
7079 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7080
39ef85a8
TT
70812020-03-13 Tom Tromey <tom@tromey.com>
7082
7083 * ada-valprint.c (ada_value_print_num): New function.
7084 (ada_value_print_1): Use it.
7085
b9fa6e07
TT
70862020-03-13 Tom Tromey <tom@tromey.com>
7087
7088 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7089
416595d6
TT
70902020-03-13 Tom Tromey <tom@tromey.com>
7091
7092 * ada-valprint.c (ada_value_print_ptr): New function.
7093 (ada_value_print_1): Use it.
7094
5b5e15ec
TT
70952020-03-13 Tom Tromey <tom@tromey.com>
7096
7097 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7098 call common_val_print.
7099 (ada_val_print_1): Update.
7100 (ada_value_print_1): New function.
7101 (ada_value_print_inner): Rewrite.
7102
fbf54e75
TT
71032020-03-13 Tom Tromey <tom@tromey.com>
7104
7105 * cp-valprint.c (cp_print_value_fields): Update.
7106 (cp_print_value): New function.
7107
64b653ca
TT
71082020-03-13 Tom Tromey <tom@tromey.com>
7109
7110 * m2-valprint.c (m2_value_print_inner): Use
7111 cp_print_value_fields.
7112 * cp-valprint.c (cp_print_value_fields): New function.
7113 * c-valprint.c (c_value_print_struct): New function.
7114 (c_value_print_inner): Use c_value_print_struct.
7115 * c-lang.h (cp_print_value_fields): Declare.
7116
6999f067
TT
71172020-03-13 Tom Tromey <tom@tromey.com>
7118
7119 * c-valprint.c (c_value_print_array): New function.
7120 (c_value_print_inner): Use it.
7121
ce80b8bd
TT
71222020-03-13 Tom Tromey <tom@tromey.com>
7123
7124 * c-valprint.c (c_value_print_memberptr): New function.
7125 (c_value_print_inner): Use it.
7126
2faac269
TT
71272020-03-13 Tom Tromey <tom@tromey.com>
7128
7129 * c-valprint.c (c_value_print_int): New function.
7130 (c_value_print_inner): Use it.
7131
da3e2c29
TT
71322020-03-13 Tom Tromey <tom@tromey.com>
7133
7134 * c-valprint.c (c_value_print_ptr): New function.
7135 (c_value_print_inner): Use it.
7136
50836231
TT
71372020-03-13 Tom Tromey <tom@tromey.com>
7138
7139 * c-valprint.c (c_value_print_inner): Rewrite.
7140
4f412b6e
TT
71412020-03-13 Tom Tromey <tom@tromey.com>
7142
7143 * valprint.c (generic_value_print_complex): New function.
7144 (generic_value_print): Use it.
7145
f5354008
TT
71462020-03-13 Tom Tromey <tom@tromey.com>
7147
7148 * valprint.c (generic_val_print_float): Don't call
7149 val_print_scalar_formatted.
7150 (generic_val_print, generic_value_print): Update.
7151
3eec3b05
TT
71522020-03-13 Tom Tromey <tom@tromey.com>
7153
7154 * valprint.c (generic_value_print_char): New function
7155 (generic_value_print): Use it.
7156
fdddfccb
TT
71572020-03-13 Tom Tromey <tom@tromey.com>
7158
7159 * valprint.c (generic_value_print_int): New function.
7160 (generic_value_print): Use it.
7161
6dde7521
TT
71622020-03-13 Tom Tromey <tom@tromey.com>
7163
7164 * valprint.c (generic_value_print_bool): New function.
7165 (generic_value_print): Use it.
7166
4112d2e6
TT
71672020-03-13 Tom Tromey <tom@tromey.com>
7168
7169 * valprint.c (generic_val_print_func): Simplify.
7170 (generic_val_print, generic_value_print): Update.
7171
65786af6
TT
71722020-03-13 Tom Tromey <tom@tromey.com>
7173
7174 * valprint.c (generic_val_print_flags): Remove.
7175 (generic_val_print, generic_value_print): Update.
7176 (val_print_type_code_flags): Add original_value parameter.
7177
40f3ce18
TT
71782020-03-13 Tom Tromey <tom@tromey.com>
7179
7180 * valprint.c (generic_val_print): Update.
7181 (generic_value_print): Update.
7182 * valprint.c (generic_val_print_enum): Don't call
7183 val_print_scalar_formatted.
7184
2a5b130b
TT
71852020-03-13 Tom Tromey <tom@tromey.com>
7186
7187 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7188 * valprint.c (generic_value_print_ptr): New function.
7189
abc66ce9
TT
71902020-03-13 Tom Tromey <tom@tromey.com>
7191
7192 * valprint.c (generic_value_print): Rewrite.
7193
07a32858
TT
71942020-03-13 Tom Tromey <tom@tromey.com>
7195
7196 * p-valprint.c (pascal_object_print_value_fields)
7197 (pascal_object_print_value): New functions.
7198
64d64d3a
TT
71992020-03-13 Tom Tromey <tom@tromey.com>
7200
7201 * p-valprint.c (pascal_value_print_inner): Rewrite.
7202
6a95a1f5
TT
72032020-03-13 Tom Tromey <tom@tromey.com>
7204
7205 * f-valprint.c (f_value_print_innner): Rewrite.
7206
59fcdac6
TT
72072020-03-13 Tom Tromey <tom@tromey.com>
7208
7209 * m2-valprint.c (m2_print_unbounded_array): New overload.
7210 (m2_print_unbounded_array): Update.
7211 (m2_print_array_contents): Take a struct value.
7212 (m2_value_print_inner): Rewrite.
7213
d133c3e1
TT
72142020-03-13 Tom Tromey <tom@tromey.com>
7215
7216 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7217 (d_value_print_inner): New function.
7218 * d-lang.h (d_value_print_inner): Declare.
7219 * d-lang.c (d_language_defn): Use d_value_print_inner.
7220
23b0f06b
TT
72212020-03-13 Tom Tromey <tom@tromey.com>
7222
7223 * go-valprint.c (go_value_print_inner): New function.
7224 * go-lang.h (go_value_print_inner): Declare.
7225 * go-lang.c (go_language_defn): Use go_value_print_inner.
7226
5f56f7cb
TT
72272020-03-13 Tom Tromey <tom@tromey.com>
7228
7229 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7230 API.
7231 (rust_val_print): Rewrite.
7232 (rust_value_print_inner): New function, from rust_val_print.
7233 (rust_language_defn): Use rust_value_print_inner.
7234
26792ee0
TT
72352020-03-13 Tom Tromey <tom@tromey.com>
7236
7237 * ada-valprint.c (ada_value_print_inner): New function.
7238 * ada-lang.h (ada_value_print_inner): Declare.
7239 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7240
24051bbe
TT
72412020-03-13 Tom Tromey <tom@tromey.com>
7242
7243 * f-valprint.c (f_value_print_innner): New function.
7244 * f-lang.h (f_value_print_innner): Declare.
7245 * f-lang.c (f_language_defn): Use f_value_print_innner.
7246
c0941be6
TT
72472020-03-13 Tom Tromey <tom@tromey.com>
7248
7249 * p-valprint.c (pascal_value_print_inner): New function.
7250 * p-lang.h (pascal_value_print_inner): Declare.
7251 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7252
62c4663d
TT
72532020-03-13 Tom Tromey <tom@tromey.com>
7254
7255 * m2-valprint.c (m2_value_print_inner): New function.
7256 * m2-lang.h (m2_value_print_inner): Declare.
7257 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7258
62182190
TT
72592020-03-13 Tom Tromey <tom@tromey.com>
7260
7261 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7262 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7263 * c-valprint.c (c_value_print_inner): New function.
7264 * c-lang.h (c_value_print_inner): Declare.
7265 * c-lang.c (c_language_defn, cplus_language_defn)
7266 (asm_language_defn, minimal_language_defn): Use
7267 c_value_print_inner.
7268
1e592a8a
TT
72692020-03-13 Tom Tromey <tom@tromey.com>
7270
7271 * p-valprint.c (pascal_object_print_value_fields): Now static.
7272 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7273
7fe471e9
TT
72742020-03-13 Tom Tromey <tom@tromey.com>
7275
7276 * c-valprint.c (c_val_print_array): Simplify.
7277
d121c6ce
TT
72782020-03-13 Tom Tromey <tom@tromey.com>
7279
7280 * valprint.c (value_print_array_elements): New function.
7281 * valprint.h (value_print_array_elements): Declare.
7282
4dba70ee
TT
72832020-03-13 Tom Tromey <tom@tromey.com>
7284
7285 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7286 * mips-tdep.c (mips_print_register): Use
7287 value_print_scalar_formatted.
7288
4f9ae810
TT
72892020-03-13 Tom Tromey <tom@tromey.com>
7290
7291 * valprint.h (value_print_scalar_formatted): Declare.
7292 * valprint.c (value_print_scalar_formatted): New function.
7293
156bfec9
TT
72942020-03-13 Tom Tromey <tom@tromey.com>
7295
7296 * valprint.h (generic_value_print): Declare.
7297 * valprint.c (generic_value_print): New function.
7298
2b4e573d
TT
72992020-03-13 Tom Tromey <tom@tromey.com>
7300
7301 * valprint.c (do_val_print): Call la_value_print_inner, if
7302 available.
7303 * rust-lang.c (rust_language_defn): Update.
7304 * p-lang.c (pascal_language_defn): Update.
7305 * opencl-lang.c (opencl_language_defn): Update.
7306 * objc-lang.c (objc_language_defn): Update.
7307 * m2-lang.c (m2_language_defn): Update.
7308 * language.h (struct language_defn) <la_value_print_inner>: New
7309 member.
7310 * language.c (unknown_language_defn, auto_language_defn): Update.
7311 * go-lang.c (go_language_defn): Update.
7312 * f-lang.c (f_language_defn): Update.
7313 * d-lang.c (d_language_defn): Update.
7314 * c-lang.c (c_language_defn, cplus_language_defn)
7315 (asm_language_defn, minimal_language_defn): Update.
7316 * ada-lang.c (ada_language_defn): Update.
7317
a1f6a07c
TT
73182020-03-13 Tom Tromey <tom@tromey.com>
7319
7320 * c-valprint.c (c_value_print): Use common_val_print.
7321
410cf315
TT
73222020-03-13 Tom Tromey <tom@tromey.com>
7323
7324 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7325
72a45c93
TT
73262020-03-13 Tom Tromey <tom@tromey.com>
7327
7328 * f-valprint.c (f77_print_array_1, f_val_print): Use
7329 common_val_print.
7330
040f66bd
TT
73312020-03-13 Tom Tromey <tom@tromey.com>
7332
7333 * riscv-tdep.c (riscv_print_one_register_info): Use
7334 common_val_print.
7335
a6e05a6c
TT
73362020-03-13 Tom Tromey <tom@tromey.com>
7337
7338 * mi/mi-main.c (output_register): Use common_val_print.
7339
3444c526
TT
73402020-03-13 Tom Tromey <tom@tromey.com>
7341
7342 * infcmd.c (default_print_one_register_info): Use
7343 common_val_print.
7344
c2a44efe
TT
73452020-03-13 Tom Tromey <tom@tromey.com>
7346
7347 * valprint.h (common_val_print_checked): Declare.
7348 * valprint.c (common_val_print_checked): New function.
7349 * stack.c (print_frame_arg): Use common_val_print_checked.
7350
b0c26e99
TT
73512020-03-13 Tom Tromey <tom@tromey.com>
7352
7353 * valprint.c (do_val_print): New function, from val_print.
7354 (val_print): Use do_val_print.
7355 (common_val_print): Use do_val_print.
7356
ce3acbe9
TT
73572020-03-13 Tom Tromey <tom@tromey.com>
7358
7359 * valprint.c (value_print): Use scoped_value_mark.
7360
96c7f873
TV
73612020-03-13 Tom de Vries <tdevries@suse.de>
7362
7363 PR symtab/25646
7364 * psymtab.c (partial_symtab::partial_symtab): Don't set
7365 globals_offset and statics_offset. Push element onto
7366 current_global_psymbols and current_static_psymbols stacks.
7367 (concat): New function.
7368 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7369 element from current_global_psymbols and current_static_psymbols
7370 stacks. Concat popped elements to global_psymbols and
7371 static_symbols.
7372 (add_psymbol_to_list): Use current_global_psymbols and
7373 current_static_psymbols stacks.
7374 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7375 current_static_psymbols fields.
7376
6ba0a321
CB
73772020-03-12 Christian Biesinger <cbiesinger@google.com>
7378
7379 * corelow.c (sniff_core_bfd): Remove.
7380 (class core_target) <m_core_vec>: Remove.
7381 (core_target::core_target): Update.
7382 (core_file_fns): Remove.
7383 (deprecated_add_core_fns): Remove.
7384 (default_core_sniffer): Remove.
7385 (sniff_core_bfd): Remove.
7386 (default_check_format): Remove.
7387 (gdb_check_format): Remove.
7388 (core_target_open): Update.
7389 (core_target::get_core_register_section): Update.
7390 (get_core_registers_cb): Update.
7391 (core_target::fetch_registers): Update.
7392 * gdbcore.h (struct core_fns): Remove.
7393 (deprecated_add_core_fns): Remove.
7394 (default_core_sniffer): Remove.
7395 (default_check_format): Remove.
7396
227031b2
TT
73972020-03-12 Tom Tromey <tom@tromey.com>
7398
7399 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7400 CORE_ADDR.
7401 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7402
53807e9f
TT
74032020-03-12 Tom Tromey <tom@tromey.com>
7404
7405 * remote.c (remote_target::download_tracepoint)
7406 (remote_target::enable_tracepoint)
7407 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7408 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7409 sprintf_vma.
7410
64f25102
TT
74112020-03-12 Tom Tromey <tom@tromey.com>
7412
7413 * symfile-mem.c: Update CORE_ADDR size assert.
7414
272cd5a3
SM
74152020-03-12 Simon Marchi <simon.marchi@efficios.com>
7416
7417 * selftest.m4: Move to gdbsupport/.
7418 * acinclude.m4: Update path to selftest.m4.
7419
74cd3f9d
SM
74202020-03-12 Simon Marchi <simon.marchi@efficios.com>
7421
7422 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7423 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7424 gdbarch-selfselftests.c and selftest-arch.c.
7425 (SUBDIR_UNITTESTS_OBS): Rename to...
7426 (SELFTESTS_OBS): ... this.
7427 (COMMON_SFILES): Remove disasm-selftests.c and
7428 gdbarch-selftests.c.
7429 * configure.ac: Don't add selftest-arch.{c,o} to
7430 CONFIG_{SRCS,OBS}.
7431 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7432 preprocessor conditions.
7433
db6878ac
SM
74342020-03-12 Simon Marchi <simon.marchi@efficios.com>
7435
7436 * configure.ac: Don't source bfd/development.sh.
7437 * selftest.m4: Modify comment.
7438 * configure: Re-generate.
7439
4d696a5c
SM
74402020-03-12 Simon Marchi <simon.marchi@efficios.com>
7441
7442 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7443 not "true" or "false".
7444 * configure: Re-generate.
7445
8dd8e1c7
CB
74462020-03-12 Christian Biesinger <cbiesinger@google.com>
7447
7448 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7449 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7450 renamed to arm_nbsd_supply_gregset.
7451 (fetch_register): Update to call arm_nbsd_supply_gregset.
7452 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7453 (arm_netbsd_nat_target::fetch_registers): Update.
7454 (fetch_elfcore_registers): Removed.
7455 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7456 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7457 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7458 not require NetBSD system headers.
7459 (arm_nbsd_regset): New struct.
7460 (arm_nbsd_iterate_over_regset_sections): New function.
7461 (arm_netbsd_init_abi_common): Updated to call
7462 set_gdbarch_iterate_over_regset_sections.
7463 * arm-nbsd-tdep.h: New file.
7464
dd69bf7a
KB
74652020-03-11 Kevin Buettner <kevinb@redhat.com>
7466
7467 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7468 recursion.
7469
a0761e34
SM
74702020-03-11 Simon Marchi <simon.marchi@efficios.com>
7471
7472 * configure: Re-generate.
7473
e7a82140
TT
74742020-03-11 Tom Tromey <tromey@adacore.com>
7475
7476 * ada-typeprint.c (print_choices): Fix comment.
7477
dcc050c8
AB
74782020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7479
7480 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7481 previous item in the list, when the list has no items.
7482
1c33af77
TV
74832020-03-11 Tom de Vries <tdevries@suse.de>
7484
7485 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7486 PROP_LOCLIST handling code.
7487
8c95582d
AB
74882020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7489
7490 * buildsym-legacy.c (record_line): Pass extra parameter to
7491 record_line.
7492 * buildsym.c (buildsym_compunit::record_line): Take an extra
7493 parameter, reduce duplication in the line table, and record the
7494 is_stmt flag in the line table.
7495 * buildsym.h (buildsym_compunit::record_line): Add extra
7496 parameter.
7497 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7498 non-statement lines.
7499 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7500 this to the symtab builder.
7501 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7502 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7503 through to dwarf_record_line_1.
7504 * infrun.c (process_event_stop_test): When stepping, don't stop at
7505 a non-statement instruction, and only refresh the step info when
7506 we land in the middle of a line's range. Also add an extra
7507 comment.
7508 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7509 field.
7510 * record-btrace.c (btrace_find_line_range): Only record lines
7511 marked as is-statement.
7512 * stack.c (frame_show_address): Show the frame address if we are
7513 in a non-statement sal.
7514 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7515 (maintenance_print_one_line_table): Print a header for the is_stmt
7516 column, and include is_stmt information in the output.
7517 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7518 preference to non-statements.
7519 (find_pcs_for_symtab_line): Prefer is-statement entries.
7520 (find_line_common): Likewise.
7521 * symtab.h (struct linetable_entry): Add is_stmt field.
7522 (struct symtab_and_line): Likewise.
7523 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7524 arranging the line table.
7525
e4003a34
TV
75262020-03-07 Tom de Vries <tdevries@suse.de>
7527
7528 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7529 DIE.
7530
e8932576
TT
75312020-03-07 Tom Tromey <tom@tromey.com>
7532
7533 * valops.c (value_literal_complex): Remove obsolete comment.
7534 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7535 comment.
7536
29734269
SM
75372020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7538
7539 * infrun.h: Forward-declare thread_info.
7540 (set_step_info): Add thread_info parameter, add doc.
7541 * infrun.c (set_step_info): Add thread_info parameter, move doc
7542 to header.
7543 * infrun.c (process_event_stop_test): Pass thread to
7544 set_step_info call.
7545 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7546 set_step_info.
7547 (prepare_one_step): Add thread_info parameter, pass it to
7548 set_step_frame and prepare_one_step (recursive) call.
7549 (step_1): Pass thread to prepare_one_step call.
7550 (step_command_fsm::should_stop): Pass thread to
7551 prepare_one_step.
7552 (until_next_fsm): Pass thread to set_step_frame call.
7553 (finish_command): Pass thread to set_step_info call.
7554
b7d64b29
HD
75552020-03-06 Hannes Domani <ssbssa@yahoo.de>
7556
7557 * windows-tdep.c (windows_solib_create_inferior_hook):
7558 Check if inferior is running.
7559
09f2921c
TV
75602020-03-06 Tom de Vries <tdevries@suse.de>
7561
7562 * NEWS: Fix "the the".
7563 * ctfread.c: Same.
7564
fd760e79
TV
75652020-03-06 Tom de Vries <tdevries@suse.de>
7566
7567 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7568
20ea4a60
AB
75692020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7570
7571 * .dir-locals.el: Add a comment referencing the other copies of
7572 this file.
7573
0afbabf0
JB
75742020-03-05 John Baldwin <jhb@FreeBSD.org>
7575
7576 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7577 psargs.
7578
842806cb
TBA
75792020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7580
7581 * .gitattributes: New file.
7582
be1e3d3e
TT
75832020-03-04 Tom Tromey <tom@tromey.com>
7584
7585 * symmisc.c (print_symbol_bcache_statistics)
7586 (print_objfile_statistics): Update.
7587 * symfile.c (allocate_symtab): Use intern.
7588 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7589 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7590 macro_cache>: Remove.
7591 <string_cache>: New member.
7592 (struct objfile) <intern>: New methods.
7593 * elfread.c (elf_symtab_read): Use intern.
7594 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7595 (dwarf2_compute_name, dwarf2_physname)
7596 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7597 names.
7598 (guess_partial_die_structure_name): Update.
7599 (partial_die_info::fixup): Intern name.
7600 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7601 name.
7602 (dwarf2_name): Intern name. Update.
7603 * buildsym.c (buildsym_compunit::get_macro_table): Use
7604 string_cache.
7605
4e7625fd
TT
76062020-03-04 Tom Tromey <tom@tromey.com>
7607
7608 * jit.c (bfd_open_from_target_memory): Make "target" const.
7609 * corefile.c (gnutarget): Now const.
7610 * gdbcore.h (gnutarget): Now const.
7611
46f9f931
HD
76122020-03-04 Hannes Domani <ssbssa@yahoo.de>
7613
7614 * NEWS: Mention support for WOW64 processes.
7615 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7616 (amd64_windows_segment_register_p): Remove static.
7617 (_initialize_amd64_windows_nat): Update.
7618 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7619 * i386-windows-nat.c (context_offset): Update.
7620 (i386_mappings): Rename and remove static.
7621 (i386_windows_segment_register_p): Remove static.
7622 (_initialize_i386_windows_nat): Update.
7623 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7624 (STATUS_WX86_SINGLE_STEP): New macro.
7625 (EnumProcessModulesEx): New macro.
7626 (Wow64SuspendThread): New macro.
7627 (Wow64GetThreadContext): New macro.
7628 (Wow64SetThreadContext): New macro.
7629 (Wow64GetThreadSelectorEntry): New macro.
7630 (windows_set_context_register_offsets): Add static.
7631 (windows_set_segment_register_p): Likewise.
7632 (windows_add_thread): Adapt for WOW64 processes.
7633 (windows_fetch_one_register): Likewise.
7634 (windows_nat_target::fetch_registers): Likewise.
7635 (windows_store_one_register): Likewise.
7636 (display_selector): Likewise.
7637 (display_selectors): Likewise.
7638 (handle_exception): Likewise.
7639 (windows_continue): Likewise.
7640 (windows_nat_target::resume): Likewise.
7641 (windows_add_all_dlls): Likewise.
7642 (do_initial_windows_stuff): Likewise.
7643 (windows_nat_target::attach): Likewise.
7644 (windows_get_exec_module_filename): Likewise.
7645 (windows_nat_target::create_inferior): Likewise.
7646 (windows_xfer_siginfo): Likewise.
7647 (_initialize_loadable): Initialize Wow64SuspendThread,
7648 Wow64GetThreadContext, Wow64SetThreadContext,
7649 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7650 * windows-nat.h (windows_set_context_register_offsets):
7651 Remove declaration.
7652 (windows_set_segment_register_p): Likewise.
7653 (i386_windows_segment_register_p): Add declaration.
7654 (amd64_windows_segment_register_p): Likewise.
7655
440cf44e
LM
76562020-03-04 Luis Machado <luis.machado@linaro.org>
7657
7658 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7659 in "info registers" for AArch64/ARM.
7660
7661 The change caused "info registers" to not print GPR's.
7662
7663 gdb/ChangeLog:
7664
7665 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7666
7667 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7668 when reg->group is empty and reggroup is not.
7669
1009d92f
TT
76702020-03-03 Tom Tromey <tromey@adacore.com>
7671
7672 * dwarf2/frame.c (struct dwarf2_frame_cache)
7673 <checked_tailcall_bottom, entry_cfa_sp_offset,
7674 entry_cfa_sp_offset_p>: Remove members.
7675 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7676 (dwarf2_frame_prev_register): Don't call
7677 dwarf2_tailcall_sniffer_first.
7678 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7679 * frame-unwind.c (add_unwinder): New fuction.
7680 (frame_unwind_init): Use it. Add tailcall unwinder.
7681
5e5d66b6
AB
76822020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7683 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7684
7685 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7686 value should be printed as true.
7687
584cf46d
HD
76882020-03-03 Hannes Domani <ssbssa@yahoo.de>
7689
7690 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7691 (windows_init_abi): Set and use windows_so_ops.
7692
7b973adc
SDJ
76932020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7694
7695 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7696 when verifying if dealing with a convenience variable.
7697
bb7b70ab
LM
76982020-03-03 Luis Machado <luis.machado@linaro.org>
7699
7700 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7701
9822cb57
SM
77022020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7703
7704 * infrun.c (gdbarch_supports_displaced_stepping): New.
7705 (use_displaced_stepping): Break up conditions in smaller pieces.
7706 Use gdbarch_supports_displaced_stepping.
7707 (displaced_step_prepare_throw): Use
7708 gdbarch_supports_displaced_stepping.
7709
63e163f2
AB
77102020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7711
7712 * NEWS: Mention new behaviour of the history filename.
7713 * top.c (write_history_p): Add comment.
7714 (show_write_history_p): Add header comment, give a different
7715 message when history writing is on, but the history filename is
7716 empty.
7717 (history_filename): Add comment.
7718 (history_filename_empty): New function.
7719 (show_history_filename): Add header comment, give a different
7720 message when the filename is empty.
7721 (init_history): Compare history_filename against nullptr, and only
7722 read history if the filename is not empty.
7723 (set_history_filename): Add header comment, and only make
7724 non-empty filenames absolute.
7725 (init_main): Make the filename argument to 'set history filename'
7726 optional.
7727
81b86b97
CB
77282020-03-02 Christian Biesinger <cbiesinger@google.com>
7729
7730 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7731 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7732 (fetch_fp_register): Update.
7733 (fetch_fp_regs): Update.
7734 (store_fp_register): Update.
7735 (store_fp_regs): Update.
7736 (arm_netbsd_nat_target::read_description): New function.
7737 (fetch_elfcore_registers): Update.
7738
24ed6739
AB
77392020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7740
7741 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7742 general_thread if the stop reply is missing a thread-id.
7743 (remote_target::process_stop_reply): Use the first non-exited
7744 thread if the target didn't pass a thread-id.
7745 * infrun.c (do_target_wait): Move call to
7746 switch_to_inferior_no_thread to ....
7747 (do_target_wait_1): ... here.
7748
a84bb2a0
JT
77492020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7750
7751 * debuginfod-support.c: Include defs.h first.
7752
658dadf0
TV
77532020-02-28 Tom de Vries <tdevries@suse.de>
7754
7755 * symfile.c (set_initial_language): Use default language for lookup.
7756
4ebe4877
SM
77572020-02-28 Simon Marchi <simon.marchi@efficios.com>
7758
7759 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7760 reader variable, pass `this` to read_cutu_die_from_dwo.
7761
e5da1139
AM
77622020-02-27 Aaron Merey <amerey@redhat.com>
7763
7764 * source.c (open_source_file): Check for nullptr when computing
7765 srcpath.
7766
317f7127
TT
77672020-02-27 Tom Tromey <tromey@adacore.com>
7768
7769 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7770 member.
7771 (dwarf2_add_field): Don't update nfields.
7772 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7773
3104d9ee
AB
77742020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7775
7776 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7777 abs.
7778
b83470bf
TT
77792020-02-26 Tom Tromey <tom@tromey.com>
7780
7781 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7782 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7783 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7784 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7785 per_cu_data.
7786
edfe0a0c
TT
77872020-02-26 Tom Tromey <tom@tromey.com>
7788
7789 * dwarf2/index-write.c (psym_index_map): Change type.
7790 (add_address_entry_worker, write_one_signatured_type)
7791 (recursively_count_psymbols, recursively_write_psymbols)
7792 (class debug_names, psyms_seen_size, write_gdbindex)
7793 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7794
0d79cdc4
AM
77952020-02-26 Aaron Merey <amerey@redhat.com>
7796
7797 * Makefile.in: Handle optional debuginfod support.
7798 * NEWS: Update.
7799 * README: Add --with-debuginfod summary.
7800 * config.in: Regenerate.
7801 * configure: Regenerate.
7802 * configure.ac: Handle optional debuginfod support.
7803 * debuginfod-support.c: debuginfod helper functions.
7804 * debuginfod-support.h: Ditto.
7805 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7806 summary.
7807 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7808 when a dwz file cannot be found.
7809 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7810 debuginfo file cannot be found.
7811 * source.c (open_source_file): Query debuginfod servers when a
7812 source file cannot be found.
7813 * top.c (print_gdb_configuration): Include
7814 --{with,without}-debuginfod in the output.
7815
b65ce565
JG
78162020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7817
7818 * thread.c (thr_try_catch_cmd): Print thread name.
7819
d4c9a4f8
SM
78202020-02-26 Simon Marchi <simon.marchi@efficios.com>
7821
7822 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7823 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7824 dwarf2_fetch_die_type_sect_off): Move to...
7825 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7826 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7827 dwarf2_fetch_die_type_sect_off): ... here.
7828 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7829 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7830 dwarf2_fetch_die_type_sect_off): Move doc to header file.
7831
0dce4280
TV
78322020-02-26 Tom de Vries <tdevries@suse.de>
7833
7834 PR gdb/25603
7835 * symfile.c (set_initial_language): Exit-early if
7836 language_mode == language_mode_manual.
7837
450a1bfc
SM
78382020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7839
7840 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
7841 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
7842 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
7843
9e80cfa1
AB
78442020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
7845
7846 * gdbtypes.c (create_array_type_with_stride): Handle negative
7847 array strides.
7848 * valarith.c (value_subscripted_rvalue): Likewise.
7849
09624f1f
LM
78502020-02-25 Luis Machado <luis.machado@linaro.org>
7851
7852 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
7853
8cb5117c
SM
78542020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
7855
7856 * loc.h (dwarf2_get_die_type): Move to...
7857 * read.h (dwarf2_get_die_type): ... here.
7858 * read.c (dwarf2_get_die_type): Move doc to header.
7859
c325c44e
JB
78602020-02-25 Joel Brobecker <brobecker@adacore.com>
7861
7862 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
7863 'gnulib/Makefile.in' to the list.
7864
4ac93832
TT
78652020-02-24 Tom Tromey <tom@tromey.com>
7866
7867 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
7868 Remove.
7869 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
7870 XOBNEWVEC.
7871
197400e8
TT
78722020-02-24 Tom Tromey <tom@tromey.com>
7873
7874 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
7875 New method.
7876 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
7877 (dw2_do_instantiate_symtab, dw2_get_file_names)
7878 (build_type_psymtab_dependencies, load_full_type_unit): Update.
7879
76935768
TT
78802020-02-24 Tom Tromey <tom@tromey.com>
7881
7882 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
7883 make_scoped_restore.
7884 (dwarf2_psymtab::read_symtab): Don't clear
7885 reading_partial_symbols.
7886
a88ef40d
TV
78872020-02-24 Tom de Vries <tdevries@suse.de>
7888
7889 PR gdb/25592
7890 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
7891
c9af6521
TV
78922020-02-24 Tom de Vries <tdevries@suse.de>
7893
7894 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
7895 commands layout next/prev/regs.
7896
5707a07a
TT
78972020-02-22 Tom Tromey <tom@tromey.com>
7898
7899 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
7900 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
7901
3b0fb49e
TT
79022020-02-22 Tom Tromey <tom@tromey.com>
7903
7904 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
7905
283be8bf
TT
79062020-02-22 Tom Tromey <tom@tromey.com>
7907
7908 * tui/tui-win.c (_initialize_tui_win): Add usage text.
7909 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
7910 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
7911 * tui/tui.c (_initialize_tui): Add usage text.
7912
ca793b96
TT
79132020-02-22 Tom Tromey <tom@tromey.com>
7914
7915 * tui/tui-win.c (tui_set_focus_command)
7916 (tui_set_win_height_command): Use error_no_arg.
7917 (_initialize_tui_win): Update help text.
7918 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
7919
432b5c40
TT
79202020-02-22 Tom Tromey <tom@tromey.com>
7921
7922 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
7923 * tui/tui-disasm.h (struct tui_disasm_window)
7924 <display_start_addr>: Declare.
7925 * tui/tui-source.h (struct tui_source_window)
7926 <display_start_addr>: Declare.
7927 * tui/tui-winsource.h (struct tui_source_window_base)
7928 <show_source_line, display_start_addr>: New methods.
7929 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
7930 Rename and move to protected section.
7931 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
7932 (tui_source_window_base::do_erase_source_content): Update.
7933 (tui_source_window_base::show_source_line): Now a method.
7934 (tui_source_window_base::show_source_content)
7935 (tui_source_window_base::tui_source_window_base)
7936 (tui_source_window_base::rerender)
7937 (tui_source_window_base::refill)
7938 (tui_source_window_base::do_scroll_horizontal)
7939 (tui_source_window_base::set_is_exec_point_at)
7940 (tui_source_window_base::update_breakpoint_info)
7941 (tui_source_window_base::update_exec_info): Update.
7942 * tui/tui-source.c (tui_source_window::set_contents)
7943 (tui_source_window::showing_source_p)
7944 (tui_source_window::do_scroll_vertical)
7945 (tui_source_window::location_matches_p)
7946 (tui_source_window::line_is_displayed): Update.
7947 (tui_source_window::display_start_addr): New method.
7948 * tui/tui-disasm.c (tui_disasm_window::set_contents)
7949 (tui_disasm_window::do_scroll_vertical)
7950 (tui_disasm_window::location_matches_p): Update.
7951 (tui_disasm_window::display_start_addr): New method.
7952
01b1af32
TT
79532020-02-22 Tom Tromey <tom@tromey.com>
7954
7955 * NEWS: Add entry for gdb.register_window_type.
7956 * tui/tui-layout.h (window_factory): New typedef.
7957 (tui_register_window): Declare.
7958 * tui/tui-layout.c (saved_tui_windows): New global.
7959 (tui_apply_current_layout): Use it.
7960 (tui_register_window): New function.
7961 * python/python.c (do_start_initialization): Call
7962 gdbpy_initialize_tui.
7963 (python_GdbMethods): Add "register_window_type" function.
7964 * python/python-internal.h (gdbpy_register_tui_window)
7965 (gdbpy_initialize_tui): Declare.
7966 * python/py-tui.c: New file.
7967 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
7968
fc96d20b
TT
79692020-02-22 Tom Tromey <tom@tromey.com>
7970
7971 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
7972
935c78c0
TT
79732020-02-22 Tom Tromey <tom@tromey.com>
7974
7975 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
7976 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
7977 * tui/tui-data.c (tui_set_win_with_focus): Remove.
7978 (tui_set_win_focus_to): Move from tui-win.c.
7979
0240c8f1
TT
79802020-02-22 Tom Tromey <tom@tromey.com>
7981
7982 * tui/tui-layout.c (make_standard_window, get_locator_window): New
7983 functions.
7984 (known_window_types): New global.
7985 (tui_get_window_by_name): Reimplement.
7986 (initialize_known_windows): New function.
7987 (validate_window_name): Rewrite.
7988 (_initialize_tui_layout): Call initialize_known_windows.
7989
fdb01f0c
TT
79902020-02-22 Tom Tromey <tom@tromey.com>
7991
7992 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
7993 Remove constants.
7994 * tui/tui-winsource.h (struct tui_source_window_base)
7995 <tui_source_window_base>: Remove parameter.
7996 * tui/tui-winsource.c
7997 (tui_source_window_base::tui_source_window_base): Remove
7998 parameter.
7999 (tui_source_window_base::refill): Update.
8000 * tui/tui-stack.h (struct tui_locator_window)
8001 <tui_locator_window>: Update.
8002 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8003 Default the constructor.
8004 * tui/tui-regs.h (struct tui_data_item_window)
8005 <tui_data_item_window>: Default the constructor.
8006 (struct tui_data_window) <tui_data_window>: Likewise.
8007 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8008 Default the constructor.
8009 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8010 Default the constructor.
8011 <type>: Remove.
8012 (struct tui_win_info) <tui_win_info>: Default the constructor.
8013 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8014 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8015 Default the constructor.
8016
865a5aec
TT
80172020-02-22 Tom Tromey <tom@tromey.com>
8018
8019 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8020 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8021 * tui/tui-win.c (tui_resize_all): Don't call
8022 tui_delete_invisible_windows.
8023 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8024 done.
8025 (tui_set_layout): Update.
8026 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8027 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8028 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8029
e098d18c
TT
80302020-02-22 Tom Tromey <tom@tromey.com>
8031
8032 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8033 correctly.
8034
eb9c8874
TT
80352020-02-22 Tom Tromey <tom@tromey.com>
8036
8037 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8038
7eed1a8e
TT
80392020-02-22 Tom Tromey <tom@tromey.com>
8040
8041 * tui/tui-winsource.h (struct tui_source_window_iterator)
8042 <inner_iterator>: New etytypedef.
8043 <tui_source_window_iterator>: Take "end" parameter.
8044 <tui_source_window_iterator>: Take iterator.
8045 <operator*, advance>: Update.
8046 <m_iter>: Change type.
8047 <m_end>: New field.
8048 (struct tui_source_windows) <begin, end>: Update.
8049 * tui/tui-layout.c (tui_windows): New global.
8050 (tui_apply_current_layout): Clear tui_windows.
8051 (tui_layout_window::apply): Update tui_windows.
8052 * tui/tui-data.h (tui_windows): Declare.
8053 (all_tui_windows): Now inline function.
8054 (class tui_window_iterator, struct all_tui_windows): Remove.
8055
7c043ba6
TT
80562020-02-22 Tom Tromey <tom@tromey.com>
8057
8058 PR tui/17850:
8059 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8060 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8061 "height" argument.
8062 (class tui_layout_window) <get_sizes>: Likewise.
8063 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8064 argument.
8065 <get_sizes>: Add "height" argument.
8066 <m_vertical>: New field.
8067 * tui/tui-layout.c (tui_layout_split::clone): Update.
8068 (tui_layout_split::get_sizes): Add "height" argument.
8069 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8070 (tui_new_layout_command): Parse "-horizontal".
8071 (_initialize_tui_layout): Update help string.
8072 (tui_layout_split::specification): Add "-horizontal" when needed.
8073 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8074 argument.
8075 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8076 New methods.
8077
6bc56648
TT
80782020-02-22 Tom Tromey <tom@tromey.com>
8079
8080 * tui/tui-layout.h (enum tui_adjust_result): New.
8081 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8082 (class tui_layout_window) <adjust_size>: Return
8083 tui_adjust_result. Rewrite.
8084 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8085 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8086
c22fef7e
TT
80872020-02-22 Tom Tromey <tom@tromey.com>
8088
8089 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8090 parameter and return types.
8091 (class tui_layout_base) <specification>: Add "depth".
8092 (class tui_layout_window) <specification>: Add "depth".
8093 (class tui_layout_split) <specification>: Add "depth".
8094 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8095 and return types.
8096 (tui_new_layout_command): Parse sub-layouts.
8097 (_initialize_tui_layout): Update help string.
8098 (tui_layout_window::specification): Add "depth".
8099 (add_layout_command): Update.
8100
ee325b61
TT
81012020-02-22 Tom Tromey <tom@tromey.com>
8102
8103 * NEWS: Add "tui new-layout" item.
8104 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8105 Add new-layout command to help text.
8106 (validate_window_name): New function.
8107 (tui_new_layout_command): New function.
8108 (_initialize_tui_layout): Register "new-layout".
8109 (tui_layout_window::specification): New method.
8110 (tui_layout_window::specification): New method.
8111 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8112 method.
8113 (class tui_layout_window) <specification>: New method.
8114 (class tui_layout_split) <specification>: New method.
8115
416eb92d
TT
81162020-02-22 Tom Tromey <tom@tromey.com>
8117
8118 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8119 * tui/tui-win.c (window_name_completer): Update comment.
8120 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8121 Declare method.
8122 (class tui_layout_window) <replace_window>: Likewise.
8123 (class tui_layout_split) <replace_window>: Likewise.
8124 (tui_set_layout): Don't declare.
8125 (tui_set_initial_layout): Declare function.
8126 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8127 (asm_regs_layout): New globals.
8128 (tui_current_layout, show_layout): Remove.
8129 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8130 (find_layout, tui_apply_layout): New function.
8131 (layout_completer): Remove.
8132 (tui_next_layout): Reimplement.
8133 (tui_next_layout_command): New function.
8134 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8135 (tui_regs_layout): Reimplement.
8136 (tui_regs_layout_command): New function.
8137 (extract_display_start_addr): Rewrite.
8138 (next_layout, prev_layout): Remove.
8139 (tui_layout_window::replace_window): New method.
8140 (tui_layout_split::replace_window): New method.
8141 (destroy_layout): New function.
8142 (layout_list): New global.
8143 (add_layout_command): New function.
8144 (initialize_layouts): Update.
8145 (tui_layout_command): New function.
8146 (_initialize_tui_layout): Install "layout" commands.
8147 * tui/tui-data.h (enum tui_layout_type): Remove.
8148 (tui_current_layout): Don't declare.
8149
0dbc2fc7
TT
81502020-02-22 Tom Tromey <tom@tromey.com>
8151
8152 * tui/tui-regs.c (tui_reg_layout): Remove.
8153 (tui_reg_command): Use tui_regs_layout.
8154 * tui/tui-layout.h (tui_reg_command): Declare.
8155 * tui/tui-layout.c (tui_reg_command): New function.
8156
5afe342e
TT
81572020-02-22 Tom Tromey <tom@tromey.com>
8158
8159 * tui/tui.c (tui_rl_delete_other_windows): Call
8160 tui_remove_some_windows.
8161 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8162 Declare method.
8163 (class tui_layout_window) <remove_windows>: New method.
8164 (class tui_layout_split) <remove_windows>: Declare.
8165 (tui_remove_some_windows): Declare.
8166 * tui/tui-layout.c (tui_remove_some_windows): New function.
8167 (tui_layout_split::remove_windows): New method.
8168
427326a8
TT
81692020-02-22 Tom Tromey <tom@tromey.com>
8170
8171 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8172 * tui/tui-layout.h (tui_next_layout): Declare.
8173 * tui/tui-layout.c (tui_next_layout): New function.
8174
3fe12b6d
TT
81752020-02-22 Tom Tromey <tom@tromey.com>
8176
8177 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8178 correct coordinates.
8179
59b8b5d2
TT
81802020-02-22 Tom Tromey <tom@tromey.com>
8181
8182 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8183 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8184 DATA_WIN case.
8185
2a3d458b
TT
81862020-02-22 Tom Tromey <tom@tromey.com>
8187
8188 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8189 TUI_DISASM_WIN, not tui_win_list.
8190
3f0cbb04
TT
81912020-02-22 Tom Tromey <tom@tromey.com>
8192
8193 * valprint.c (generic_val_print_enum_1)
8194 (val_print_type_code_flags): Style member names.
8195 * rust-lang.c (val_print_struct, rust_print_enum)
8196 (rust_print_struct_def, rust_internal_print_type): Style member
8197 names.
8198 * p-valprint.c (pascal_object_print_value_fields): Style member
8199 names. Only call fprintf_symbol_filtered for static members.
8200 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8201 * f-valprint.c (f_val_print): Style member names.
8202 * f-typeprint.c (f_type_print_base): Style member names.
8203 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8204 call fprintf_symbol_filtered for static members.
8205 (cp_print_class_member): Style member names.
8206 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8207 member names.
8208 * ada-valprint.c (ada_print_scalar): Style enum names.
8209 (ada_val_print_enum): Likewise.
8210 * ada-typeprint.c (print_enum_type): Style enum names.
8211
d4d947ae
TT
82122020-02-21 Tom Tromey <tom@tromey.com>
8213
8214 * psympriv.h (struct partial_symtab): Update comment.
8215
e94e944b
TT
82162020-02-21 Tom Tromey <tromey@adacore.com>
8217
8218 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8219 type is CORE_ADDR.
8220
1eb73179
TV
82212020-02-21 Tom de Vries <tdevries@suse.de>
8222
8223 PR gdb/25534
8224 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8225 if dependencies[i]->user != NULL.
8226
4f180d53
AT
82272020-02-21 Ali Tamur <tamur@google.com>
8228
8229 * dwarf2/read.c (dwarf2_name): Add null check.
8230
22b6cd70
TT
82312020-02-20 Tom Tromey <tom@tromey.com>
8232
8233 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8234 ">=", in binary search.
8235 (dwarf2_find_containing_comp_unit): New overload.
8236 (run_test): New self-test.
8237 (_initialize_dwarf2_read): Register new test.
8238
bd0cf5a6
NC
82392020-02-20 Nelson Chu <nelson.chu@sifive.com>
8240
8241 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8242 * riscv-tdep.h: Likewise.
8243 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8244 rv32-only CSR.
8245 * features/riscv/64bit-csr.xml: Regenerated.
8246
3f702acd
SDJ
82472020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8248 Tom Tromey <tom@tromey.com>
8249
8250 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8251 of 'fputc_unfiltered'.
8252 (putchar_unfiltered): Call 'fputc_unfiltered'.
8253 (fputc_unfiltered): Call 'fputs_unfiltered'.
8254
d13c7322
AB
82552020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8256
8257 * config.in: Regenerate.
8258 * configure: Regenerate.
8259 * configure.ac: Add --with-python-libdir option.
8260 * main.c: Use WITH_PYTHON_LIBDIR.
8261
869d8950
TT
82622020-02-19 Tom Tromey <tom@tromey.com>
8263
8264 * symtab.c (general_symbol_info::compute_and_set_names): Use
8265 obstack_strndup. Simplify call to symbol_set_demangled_name.
8266
298e9637
SM
82672020-02-19 Simon Marchi <simon.marchi@efficios.com>
8268
8269 * dwarf2/read.c (allocate_signatured_type_table,
8270 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8271 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8272 Remove objfile parameter, update all callers.
8273
08410482
DE
82742020-02-19 Doug Evans <dje@google.com>
8275
8276 PR rust/25535
8277 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8278 rust_enum_variant calculation.
8279
dfdeeca1
TT
82802020-02-19 Tom Tromey <tromey@adacore.com>
8281
8282 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8283
2ef5453b
TT
82842020-02-19 Tom Tromey <tromey@adacore.com>
8285
8286 * ada-lang.c (cache_symbol): Use obstack_strdup.
8287
9f1528a1
AB
82882020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8289
8290 * configure: Regenerate.
8291
d3c22fa8
TT
82922020-02-19 Tom Tromey <tromey@adacore.com>
8293
8294 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8295 NULL check.
8296
bf84f706
MR
82972020-02-19 Maciej W. Rozycki <macro@wdc.com>
8298
8299 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8300
d1c9b20f
AB
83012020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8302
8303 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8304 if GDBSERVER is not defined.
8305 (riscv_tdesc_cache): Likewise, also store const target_desc.
8306 (STATIC_IN_GDB): Define.
8307 (riscv_create_target_description): Update declaration with
8308 STATIC_IN_GDB.
8309 (riscv_lookup_target_description): New function, only define if
8310 GDBSERVER is not defined.
8311 * arch/riscv.h (riscv_create_target_description): Declare only
8312 when GDBSERVER is defined.
8313 (riscv_lookup_target_description): New declaration when GDBSERVER
8314 is not defined.
8315 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8316 (riscv_linux_read_features): ...this, and return
8317 riscv_gdbarch_features instead of target_desc.
8318 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8319 (riscv_linux_read_description): Rename to...
8320 (riscv_linux_read_features): ...this.
8321 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8322 Update to use riscv_gdbarch_features and
8323 riscv_lookup_target_description.
8324 * riscv-tdep.c (riscv_find_default_target_description): Use
8325 riscv_lookup_target_description instead of
8326 riscv_create_target_description.
8327
373d7ac0
SM
83282020-02-18 Simon Marchi <simon.marchi@efficios.com>
8329
8330 * valprint.c (generic_val_print_enum_1): When printing a flag
8331 enum with value 0 and there is no enumerator with value 0, print
8332 just "0" instead of "(unknown: 0x0)".
8333
b29a2df0
SM
83342020-02-18 Simon Marchi <simon.marchi@efficios.com>
8335
8336 * valprint.c (generic_val_print_enum_1): Print unknown part of
8337 flag enum in hex.
8338
6740f0cc
SM
83392020-02-18 Simon Marchi <simon.marchi@efficios.com>
8340
8341 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8342 flag enums to contain duplicate enumerators.
8343 * valprint.c (generic_val_print_enum_1): Update comment.
8344
edd45eb0
SM
83452020-02-18 Simon Marchi <simon.marchi@efficios.com>
8346
8347 * dwarf2/read.c: Include "count-one-bits.h".
8348 (update_enumeration_type_from_children): If an enumerator has
8349 multiple bits set, don't treat the enumeration as a "flag enum".
8350 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8351 of flag enums have 0 or 1 bit set.
8352
6d0cf446
BE
83532020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8354
8355 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8356 conversion.
8357 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8358 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8359 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8360 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8361 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8362
7001c1b7
SM
83632020-02-18 Simon Marchi <simon.marchi@efficios.com>
8364
8365 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8366
fdb61c6c
SM
83672020-02-14 Simon Marchi <simon.marchi@efficios.com>
8368
8369 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8370 displaced_step_closure_up.
8371 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8372 (struct displaced_step_closure_up):
8373 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8374 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8375 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8376 Likewise.
8377 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8378 * gdbarch.c, gdbarch.h: Re-generate.
8379 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8380 displaced_step_closure_up.
8381 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8382 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8383 * infrun.h (displaced_step_closure_up): New type alias.
8384 (struct displaced_step_inferior_state) <step_closure>: Change
8385 type to displaced_step_closure_up.
8386 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8387 displaced_step_closure_up.
8388 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8389
a4a38eb4
TT
83902020-02-14 Tom Tromey <tom@tromey.com>
8391
8392 * minidebug.c (gnu_debug_key): New global.
8393 (find_separate_debug_file_in_section): Use it.
8394
e8217e61
SM
83952020-02-14 Simon Marchi <simon.marchi@efficios.com>
8396
8397 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8398 std::unique_ptr.
8399 * gdbarch.c: Re-generate.
8400 * gdbarch.h: Re-generate.
8401 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8402 change.
8403 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8404 type to std::unique_ptr.
8405 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8406 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8407 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8408 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8409 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8410 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8411 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8412 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8413 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8414
d8d83535
SM
84152020-02-14 Simon Marchi <simon.marchi@efficios.com>
8416
8417 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8418 std::unique_ptr.
8419 (displaced_step_clear): Rename to...
8420 (displaced_step_reset): ... this. Just call displaced->reset ().
8421 (displaced_step_clear_cleanup): Rename to...
8422 (displaced_step_reset_cleanup): ... this.
8423 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8424 (displaced_step_fixup): Likewise.
8425 (resume_1): Likewise.
8426 (handle_inferior_event): Restore child's memory before calling
8427 displaced_step_fixup on the parent.
8428 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8429 to std::unique_ptr.
8430 <step_closure>: Change type to std::unique_ptr.
8431
5f661e03
SM
84322020-02-14 Simon Marchi <simon.marchi@efficios.com>
8433
8434 * arm-tdep.c: Include count-one-bits.h.
8435 (cleanup_block_store_pc): Use count_one_bits.
8436 (cleanup_block_load_pc): Use count_one_bits.
8437 (arm_copy_block_xfer): Use count_one_bits.
8438 (thumb2_copy_block_xfer): Use count_one_bits.
8439 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8440 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8441 (thumb_get_next_pcs_raw): Use count_one_bits.
8442 (arm_get_next_pcs_raw): Use count_one_bits_l.
8443 * arch/arm.c (bitcount): Remove.
8444 * arch/arm.h (bitcount): Remove.
8445
8084e579
TT
84462020-02-14 Tom Tromey <tromey@adacore.com>
8447
8448 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8449 Update.
8450 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8451 * dwarf2/loc.c (call_site_find_chain_1): Return
8452 unique_xmalloc_ptr.
8453 (call_site_find_chain): Likewise.
8454
258bf0ee
RB
84552020-02-14 Richard Biener <rguenther@suse.de>
8456
8457 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8458 on expression with division operators.
8459
f98a8458
AKS
84602020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8461
8462 * MAINTAINERS (Write After Approval): Adding myself.
8463
d1437c0e
TT
84642020-02-12 Tom Tromey <tom@tromey.com>
8465
8466 * event-loop.c (event_data, gdb_event, event_handler_func):
8467 Remove.
8468
3d4560f7
TT
84692020-02-12 Tom Tromey <tom@tromey.com>
8470
8471 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8472 (dwarf2_frame_objfile_data): Add comment.
8473 (find_comp_unit, set_comp_unit): New functions.
8474 (dwarf2_frame_find_fde): Use find_comp_unit.
8475 (dwarf2_build_frame_info): Use set_comp_unit.
8476
21982304
TT
84772020-02-12 Tom Tromey <tom@tromey.com>
8478
8479 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8480 (comp_unit): Don't initialize objfile.
8481 (execute_cfa_program): Add text_offset parameter.
8482 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8483 (dwarf2_frame_cache): Update.
8484 (dwarf2_build_frame_info): Don't set "objfile" member.
8485
4debb237
TT
84862020-02-12 Tom Tromey <tom@tromey.com>
8487
8488 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8489 (decode_frame_entry): Likewise.
8490 (dwarf2_build_frame_info): Update.
8491
0d404d44
TT
84922020-02-12 Tom Tromey <tom@tromey.com>
8493
8494 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8495 (decode_frame_entry_1): Use the comp_unit obstack.
8496
a7a3ae5c
TT
84972020-02-12 Tom Tromey <tom@tromey.com>
8498
8499 * dwarf2/frame.c (struct comp_unit): Add initializers and
8500 constructor.
8501 (dwarf2_frame_objfile_data): Store a comp_unit.
8502 (dwarf2_frame_find_fde): Update.
8503 (dwarf2_build_frame_info): Use "new".
8504
a9d65418
TT
85052020-02-12 Tom Tromey <tom@tromey.com>
8506
8507 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8508 (dwarf2_fde_table): Typedef for std::vector.
8509 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8510 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8511 (decode_frame_entry): Update.
8512 (dwarf2_build_frame_info): Use "new".
8513
7559c217
CB
85142020-02-12 Christian Biesinger <cbiesinger@google.com>
8515
8516 * arm-tdep.c (arm_gdbarch_init): Update.
8517 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8518 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8519 have_neon, is_m>: Change to bool.
8520
aeefc73c
CB
85212020-02-12 Christian Biesinger <cbiesinger@google.com>
8522
8523 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8524
d27b8e5f
TT
85252020-02-12 Tom Tromey <tom@tromey.com>
8526
8527 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8528
cd5900f3
HD
85292020-02-12 Hannes Domani <ssbssa@yahoo.de>
8530
8531 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8532 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8533
f056b22b
TT
85342020-02-11 Tom Tromey <tom@tromey.com>
8535
8536 * psymtab.h: Update comment.
8537
f92ff6b5
TT
85382020-02-11 Tom Tromey <tom@tromey.com>
8539
8540 * gdb_obstack.h (struct auto_obstack): Use
8541 DISABLE_COPY_AND_ASSIGN.
8542
3fd6912b
TT
85432020-02-11 Tom Tromey <tom@tromey.com>
8544
8545 * dwarf2/frame.h (struct objfile): Don't forward declare.
8546
69ed9b74
CB
85472020-02-11 Christian Biesinger <cbiesinger@google.com>
8548
8549 * cris-tdep.c (cris_supply_gregset): Change signature to match
8550 what struct regset expects.
8551 (cris_regset): New struct.
8552 (fetch_core_registers): Remove.
8553 (cris_iterate_over_regset_sections): New function.
8554 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8555 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8556
bda874f6
CB
85572020-02-11 Christian Biesinger <cbiesinger@google.com>
8558
8559 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8560 registers.
8561
754e1564
CB
85622020-02-11 Christian Biesinger <cbiesinger@google.com>
8563
8564 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8565
8ddd8e0e
SM
85662020-02-11 Simon Marchi <simon.marchi@efficios.com>
8567
8568 * configure: Re-generate.
8569
898e7f60
SM
85702020-02-11 Simon Marchi <simon.marchi@efficios.com>
8571
8572 * configure: Re-generate.
8573
58df732b
SM
85742020-02-11 Simon Marchi <simon.marchi@efficios.com>
8575
8576 * acinclude: Update warning.m4 path.
8577 * warning.m4: Move to gdbsupport.
8578
da5bd37e
TT
85792020-02-11 Tom Tromey <tromey@adacore.com>
8580
8581 * remote.c (remote_console_output): Update.
8582 * printcmd.c (printf_command): Update.
8583 * event-loop.c (gdb_wait_for_event): Update.
8584 * linux-nat.c (sigchld_handler): Update.
8585 * remote-sim.c (gdb_os_write_stdout): Update.
8586 (gdb_os_flush_stdout): Update.
8587 (gdb_os_flush_stderr): Update.
8588 (gdb_os_write_stderr): Update.
8589 * exceptions.c (print_exception): Update.
8590 * remote-fileio.c (remote_fileio_func_read): Update.
8591 (remote_fileio_func_write): Update.
8592 * tui/tui.c (tui_enable): Update.
8593 * tui/tui-interp.c (tui_interp::init): Update.
8594 * utils.c (init_page_info): Update.
8595 (putchar_unfiltered, fputc_unfiltered): Update.
8596 (gdb_flush): Update.
8597 (emit_style_escape): Update.
8598 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8599 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8600 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8601 (stderr_file::write): Update.
8602 (stderr_file::puts): Update.
8603 * ui-file.h (ui_file_isatty, ui_file_write)
8604 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8605 (ui_file_puts): Don't declare.
8606
85f0dd3c
TV
86072020-02-10 Tom de Vries <tdevries@suse.de>
8608
8609 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8610 sentinel to char *.
8611
2e927613
TV
86122020-02-09 Tom de Vries <tdevries@suse.de>
8613
8614 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8615 filename if it matches "<artificial>".
8616
6bafc845
HD
86172020-02-09 Hannes Domani <ssbssa@yahoo.de>
8618
8619 * windows-tdep.c (struct enum_value_name): New struct.
8620 (create_enum): New function.
8621 (windows_get_siginfo_type): Create and use enum types.
8622
7928d571
HD
86232020-02-09 Hannes Domani <ssbssa@yahoo.de>
8624
8625 * NEWS: Mention $_siginfo support for Windows.
8626 * windows-nat.c (handle_exception): Set siginfo_er.
8627 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8628 (windows_xfer_siginfo): New function.
8629 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8630 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8631 (init_windows_gdbarch_data): New function.
8632 (get_windows_gdbarch_data): New function.
8633 (windows_get_siginfo_type): New function.
8634 (windows_init_abi): Register windows_get_siginfo_type.
8635 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8636
6751ebae
TT
86372020-02-08 Tom Tromey <tom@tromey.com>
8638
8639 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8640 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8641 <keep>: Declare method.
8642 <m_keep>: Remove member.
8643 <~cutu_reader>: Remove.
8644 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8645 (cutu_reader::cutu_reader): Update.
8646 (cutu_reader::keep): Rename from ~cutu_reader.
8647 (process_psymtab_comp_unit, build_type_psymtabs_1)
8648 (process_skeletonless_type_unit, load_partial_comp_unit)
8649 (load_full_comp_unit, dwarf2_read_addr_index)
8650 (read_signatured_type): Update.
8651
135f5437
TT
86522020-02-08 Tom Tromey <tom@tromey.com>
8653
8654 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8655 "want_partial_unit" parameter.
8656 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8657 Inline check for DW_TAG_partial_unit.
8658 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8659
9f66ff1c
TT
86602020-02-08 Tom Tromey <tom@tromey.com>
8661
8662 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8663 read.c.
8664 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8665 read.c.
8666
c8a7a66f
TT
86672020-02-08 Tom Tromey <tom@tromey.com>
8668
8669 * dwarf2/read.c (read_address): Move to comp-unit.c.
8670 (dwarf2_rnglists_process, dwarf2_ranges_process)
8671 (read_attribute_value, dwarf_decode_lines_1)
8672 (var_decode_location, decode_locdesc): Update.
8673 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8674 read.c. Remove "cu" parameter.
8675 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8676 method.
8677
8266302d
TT
86782020-02-08 Tom Tromey <tom@tromey.com>
8679
8680 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8681 (read_indirect_line_string): Update.
8682 * dwarf2/comp-unit.c (read_offset): Remove.
8683 (read_comp_unit_head): Update.
8684 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8685 method.
8686 (read_offset): Don't declare.
8687
4057dfde
TT
86882020-02-08 Tom Tromey <tom@tromey.com>
8689
8690 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8691 * dwarf2/read.c (struct comp_unit_head): Move to
8692 dwarf2/comp-unit.h.
8693 (enum class rcuh_kind): Move to comp-unit.h.
8694 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8695 (read_comp_unit_head, error_check_comp_unit_head)
8696 (read_and_check_comp_unit_head): Move to comp-unit.c.
8697 (read_offset, dwarf_unit_type_name): Likewise.
8698 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8699 (cutu_reader::cutu_reader, read_call_site_scope)
8700 (find_partial_die, follow_die_offset): Update.
8701 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8702
24aa364d
TT
87032020-02-08 Tom Tromey <tom@tromey.com>
8704
8705 * dwarf2/read.c (read_offset_1): Move to leb.c.
8706 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8707 (dwarf_decode_macro_bytes): Update.
8708 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8709 * dwarf2/leb.h (read_offset): Declare.
8710
2c7d5afc
TT
87112020-02-08 Tom Tromey <tom@tromey.com>
8712
8713 * dwarf2/read.c (dwarf2_section_size): Remove.
8714 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8715 Update.
8716 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8717
4075cb26
TT
87182020-02-08 Tom Tromey <tom@tromey.com>
8719
8720 * dwarf2/read.c (read_initial_length): Move to leb.c.
8721 * dwarf2/leb.h (read_initial_length): Declare.
8722 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8723 handle_nonstd parameter.
8724 * dwarf2/frame.c (read_initial_length): Remove.
8725 (decode_frame_entry_1): Update.
8726
09ba997f
TT
87272020-02-08 Tom Tromey <tom@tromey.com>
8728
8729 * dwarf2/loc.c (dwarf2_find_location_expression)
8730 (dwarf_evaluate_loc_desc::get_tls_address)
8731 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8732 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8733 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8734 (dwarf2_compile_property_to_c)
8735 (dwarf2_loc_desc_get_symbol_read_needs)
8736 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8737 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8738 (loclist_describe_location, loclist_tracepoint_var_ref)
8739 (loclist_generate_c_location): Update.
8740 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8741 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8742 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8743 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8744 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8745 (dwarf2_per_cu_data::addr_size)
8746 (dwarf2_per_cu_data::ref_addr_size)
8747 (dwarf2_per_cu_data::text_offset)
8748 (dwarf2_per_cu_data::addr_type): Now methods.
8749 (per_cu_header_read_in): Make per_cu "const".
8750 (dwarf2_version): Remove.
8751 (dwarf2_per_cu_data::int_type): Now a method.
8752 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8753 (set_die_type, read_array_type, read_subrange_index_type)
8754 (read_tag_string_type, read_subrange_type): Update.
8755 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8756 offset_size, ref_addr_size, text_offset, addr_type, version,
8757 objfile, int_type, addr_sized_int_type>: Declare methods.
8758
96c738c0
TT
87592020-02-08 Tom Tromey <tom@tromey.com>
8760
8761 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8762 Move earlier.
8763
8fdd972c
TT
87642020-02-08 Tom Tromey <tom@tromey.com>
8765
8766 * dwarf2/read.h (dwarf_line_debug): Declare.
8767 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8768 * dwarf2/read.c: Move line_header code to new files.
8769 (dwarf_line_debug): No longer static.
8770 * dwarf2/line-header.c: New file.
8771 * dwarf2/line-header.h: New file.
8772
03075812
TT
87732020-02-08 Tom Tromey <tom@tromey.com>
8774
8775 * dwarf2/read.c (struct line_header) <file_full_name,
8776 file_file_name>: Return unique_xmalloc_ptr.
8777 (line_header::file_file_name): Update.
8778 (line_header::file_full_name): Update.
8779 (dw2_get_file_names_reader): Update.
8780 (macro_start_file): Update.
8781
bb822404
TT
87822020-02-08 Tom Tromey <tom@tromey.com>
8783
8784 * dwarf2/read.c (struct line_header) <file_full_name,
8785 file_file_name>: Declare methods.
8786 (dw2_get_file_names_reader): Update.
8787 (file_file_name): Now a method.
8788 (file_full_name): Likewise.
8789 (macro_start_file): Update.
8790
009b64fc
TT
87912020-02-08 Tom Tromey <tom@tromey.com>
8792
8793 * dwarf2/read.c (dwarf_always_disassemble)
8794 (show_dwarf_always_disassemble): Move to loc.c.
8795 (_initialize_dwarf2_read): Move "always-disassemble" registration
8796 to loc.c.
8797 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8798 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8799 static.
8800 (show_dwarf_always_disassemble): Move from read.c.
8801 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8802
5895093f
TT
88032020-02-08 Tom Tromey <tom@tromey.com>
8804
8805 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8806 (create_quick_file_names_table): Return htab_up.
8807 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8808 Update.
8809 * dwarf2/read.h (struct dwarf2_per_objfile)
8810 <quick_file_names_table>: Now htab_up.
8811
b3b32279
TT
88122020-02-08 Tom Tromey <tom@tromey.com>
8813
8814 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8815
1d33d811
TT
88162020-02-08 Tom Tromey <tom@tromey.com>
8817
8818 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8819 Rewrite.
8820 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8821 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8822 (abbrev_table::abbrev_table): No longer inline.
8823 (ABBREV_HASH_SIZE): Remove.
8824 (abbrev_table::m_abbrevs): Now an htab_up.
8825
86de1d91
TT
88262020-02-08 Tom Tromey <tom@tromey.com>
8827
8828 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
8829 (cutu_reader): Update.
8830 (build_type_psymtabs_1): Update.
8831 * dwarf2/abbrev.c (abbrev_table::read): Rename.
8832 (abbrev_table::alloc_abbrev): Update.
8833 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
8834 (abbrev_table::read): New static method, renamed from
8835 abbrev_table_read_table.
8836 (abbrev_table::alloc_abbrev)
8837 (abbrev_table::add_abbrev): Now private.
8838 (abbrev_table::abbrev_table): Now private.
8839 (abbrev_table::m_abbrev_obstack): Now private. Rename.
8840
0335378b
TT
88412020-02-08 Tom Tromey <tom@tromey.com>
8842
8843 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
8844 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
8845 htab_up.
8846
48b490f2
TT
88472020-02-08 Tom Tromey <tom@tromey.com>
8848
8849 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
8850 htab_up.
8851 (lookup_dwo_unit_in_dwp): Update.
8852 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
8853 on obstack.
8854
bc68fb19
TT
88552020-02-08 Tom Tromey <tom@tromey.com>
8856
8857 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
8858 obstack.
8859
d15acc42
TT
88602020-02-08 Tom Tromey <tom@tromey.com>
8861
8862 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
8863 line_header_hash.
8864 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
8865 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
8866 Change type to htab_up.
8867
eaa5fa8b
TT
88682020-02-08 Tom Tromey <tom@tromey.com>
8869
8870 * dwarf2/read.c (allocate_type_unit_groups_table): Return
8871 htab_up. Don't allocate on obstack.
8872 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
8873 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
8874 Change type to htab_up.
8875
b0b6a987
TT
88762020-02-08 Tom Tromey <tom@tromey.com>
8877
8878 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
8879 Change type to htab_up.
8880 * dwarf2/read.c (create_signatured_type_table_from_index)
8881 (create_signatured_type_table_from_debug_names)
8882 (create_all_type_units, add_type_unit)
8883 (lookup_dwo_signatured_type, lookup_signatured_type)
8884 (process_skeletonless_type_unit): Update.
8885 (create_debug_type_hash_table, create_debug_types_hash_table):
8886 Change type of types_htab.
8887 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
8888 htab_up. Don't allocate on obstack.
8889 (create_cus_hash_table): Change type of cus_htab parameter.
8890 (struct dwo_file) <cus, tus>: Now htab_up.
8891 (lookup_dwo_signatured_type, lookup_dwo_cutu)
8892 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
8893 (queue_and_load_all_dwo_tus): Update.
8894 * dwarf2/index-write.c (write_gdbindex): Update.
8895 (write_debug_names): Update.
8896
39856def
TT
88972020-02-08 Tom Tromey <tom@tromey.com>
8898
8899 * dwarf2/read.h (struct dwarf2_queue_item): Move from
8900 dwarf2/read.c. Remove "next" member. Add constructor ntad
8901 destructor.
8902 (struct dwarf2_per_objfile) <queue>: New member.
8903 * dwarf2/read.c (struct dwarf2_queue_item): Move to
8904 dwarf2/read.h.
8905 (dwarf2_queue, dwarf2_queue_tail): Remove.
8906 (class dwarf2_queue_guard): Add parameter to constructor. Use
8907 DISABLE_COPY_AND_ASSIGN.
8908 <m_per_objfile>: New member.
8909 <~dwarf2_queue_guard>: Rewrite.
8910 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
8911 Update.
8912 (~dwarf2_queue_item): New.
8913
3e225074
TT
89142020-02-08 Tom Tromey <tom@tromey.com>
8915
8916 * dwarf2/read.c (struct die_info) <has_children>: New member.
8917 (dw2_get_file_names_reader): Remove has_children.
8918 (dw2_get_file_names): Update.
8919 (read_cutu_die_from_dwo): Remove has_children.
8920 (cutu_reader::init_tu_and_read_dwo_dies)
8921 (cutu_reader::cutu_reader): Update.
8922 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
8923 Remove has_children.
8924 (build_type_psymtabs_1, process_skeletonless_type_unit)
8925 (load_partial_comp_unit, load_full_comp_unit): Update.
8926 (create_dwo_cu_reader): Remove has_children.
8927 (create_cus_hash_table, read_die_and_children): Update.
8928 (read_full_die_1,read_full_die): Remove has_children.
8929 (read_signatured_type): Update.
8930 (class cutu_reader) <has_children>: Remove.
8931
82ca8957
TT
89322020-02-08 Tom Tromey <tom@tromey.com>
8933
8934 * dwarf2/expr.c: Rename from dwarf2expr.c.
8935 * dwarf2/expr.h: Rename from dwarf2expr.h.
8936 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
8937 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
8938 * dwarf2/frame.c: Rename from dwarf2-frame.c.
8939 * dwarf2/frame.h: Rename from dwarf2-frame.h.
8940 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
8941 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
8942 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
8943 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
8944 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
8945 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
8946 * dwarf2/loc.c: Rename from dwarf2loc.c.
8947 * dwarf2/loc.h: Rename from dwarf2loc.h.
8948 * dwarf2/read.c: Rename from dwarf2read.c.
8949 * dwarf2/read.h: Rename from dwarf2read.h.
8950 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
8951 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
8952 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
8953 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
8954 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
8955 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
8956 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
8957 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
8958 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
8959 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
8960 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
8961 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
8962 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
8963 Update.
8964 * Makefile.in (COMMON_SFILES): Update.
8965 (HFILES_NO_SRCDIR): Update.
8966
9e35d499
TT
89672020-02-08 Tom Tromey <tom@tromey.com>
8968
8969 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
8970 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
8971
1eba2311
TT
89722020-02-08 Tom Tromey <tom@tromey.com>
8973
8974 * dwarf2read.h (struct die_info): Don't declare.
8975
e41c2da2
TT
89762020-02-08 Tom Tromey <tom@tromey.com>
8977
8978 * dwarf2read.h (die_info_ptr): Remove typedef.
8979
4fc6c0d5
TT
89802020-02-08 Tom Tromey <tom@tromey.com>
8981
8982 * dwarf2read.c (read_call_site_scope)
8983 (handle_data_member_location, dwarf2_add_member_fn)
8984 (mark_common_block_symbol_computed, read_common_block)
8985 (attr_to_dynamic_prop, partial_die_info::read)
8986 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
8987 (dwarf2_symbol_mark_computed, set_die_type): Update.
8988 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
8989 method.
8990 (attr_form_is_block): Don't declare.
8991 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
8992
cd6c91b4
TT
89932020-02-08 Tom Tromey <tom@tromey.com>
8994
8995 * dwarf2read.c (dwarf2_find_base_address, )
8996 (read_call_site_scope, rust_containing_type)
8997 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
8998 (handle_data_member_location, dwarf2_add_member_fn)
8999 (get_alignment, read_structure_type, process_structure_scope)
9000 (mark_common_block_symbol_computed, read_common_block)
9001 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9002 (partial_die_info::read, read_attribute_value, new_symbol)
9003 (lookup_die_type, dwarf2_get_ref_die_offset)
9004 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9005 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9006 (dwarf2_symbol_mark_computed): Update.
9007 * dwarf2/attribute.h (struct attribute) <value_as_address,
9008 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9009 methods.
9010 (value_as_address, attr_form_is_section_offset)
9011 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9012 * dwarf2/attribute.c (attribute::value_as_address)
9013 (attribute::form_is_section_offset, attribute::form_is_constant)
9014 (attribute::form_is_ref): Now methods.
9015
162dce55
TT
90162020-02-08 Tom Tromey <tom@tromey.com>
9017
9018 * dwarf2read.c (struct attribute, DW_STRING)
9019 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9020 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9021 (attr_form_is_block, attr_form_is_section_offset)
9022 (attr_form_is_constant, attr_form_is_ref): Move.
9023 * dwarf2/attribute.h: New file.
9024 * dwarf2/attribute.c: New file, from dwarf2read.c.
9025 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9026
3054dd54
TT
90272020-02-08 Tom Tromey <tom@tromey.com>
9028
9029 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9030 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9031 Move.
9032 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9033 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9034 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9035 abbrev.c.
9036 * dwarf2/abbrev.h: New file.
9037 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9038 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9039
96b79293
TT
90402020-02-08 Tom Tromey <tom@tromey.com>
9041
9042 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9043 (dwarf2_section_size, dwarf2_get_section_info)
9044 (create_signatured_type_table_from_debug_names)
9045 (create_addrmap_from_aranges, read_debug_names_from_section)
9046 (get_gdb_index_contents_from_section, read_comp_unit_head)
9047 (error_check_comp_unit_head, read_abbrev_offset)
9048 (create_debug_type_hash_table, init_cu_die_reader)
9049 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9050 (read_comp_units_from_section, create_cus_hash_table)
9051 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9052 (create_dwp_v2_section, dwarf2_rnglists_process)
9053 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9054 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9055 (read_indirect_string_from_dwz, read_addr_index_1)
9056 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9057 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9058 (fill_in_loclist_baton): Update.
9059 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9060 get_containing_section, get_bfd_owner, get_bfd_section,
9061 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9062 (dwarf2_read_section, get_section_name, get_section_file_name)
9063 (get_containing_section, get_section_bfd_owner)
9064 (get_section_bfd_section, get_section_name, get_section_file_name)
9065 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9066 declare.
9067 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9068 (dwarf2_section_info::get_bfd_owner)
9069 (dwarf2_section_info::get_bfd_section)
9070 (dwarf2_section_info::get_name)
9071 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9072 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9073 (dwarf2_section_info::read): Now methods.
9074 * dwarf-index-write.c (class debug_names): Update.
9075
2c86cff9
TT
90762020-02-08 Tom Tromey <tom@tromey.com>
9077
9078 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9079 Move to dwarf2/section.h.
9080 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9081 (get_section_bfd_section, get_section_name)
9082 (get_section_file_name, get_section_id, get_section_flags)
9083 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9084 dwarf2/section.c.
9085 * dwarf2/section.h: New file.
9086 * dwarf2/section.c: New file, from dwarf2read.c.
9087 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9088
f4382c45
TT
90892020-02-08 Tom Tromey <tom@tromey.com>
9090
9091 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9092 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9093 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9094 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9095 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9096 * dwarf2/leb.h: New file, from dwarf2read.c.
9097 * dwarf2/leb.c: New file, from dwarf2read.c.
9098 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9099 Remove.
9100 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9101 (COMMON_SFILES): Add dwarf2/leb.c.
9102
01840b7a
JB
91032020-02-08 Joel Brobecker <brobecker@adacore.com>
9104
9105 GDB 9.1 released.
9106
dfcb27e4
IB
91072020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9108
9109 PR gdb/25190:
aac66a4c
SM
9110 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9111 * gdb/remote.c (remote_console_output): Update.
9112 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9113 (ui_file_puts): ...this.
9114 * gdb/ui-file.h (ui_file_puts): Add declaration.
9115 * gdb/utils.c (emit_style_escape): Update.
9116 (flush_wrap_buffer): Update.
9117 (fputs_maybe_filtered): Update.
9118 (fputs_unfiltered): Add function.
dfcb27e4 9119
faa17681
IB
91202020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9121
aac66a4c
SM
9122 * gdb/event-loop.c (gdb_wait_for_event): Update.
9123 * gdb/printcmd.c (printf_command): Update.
9124 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9125 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9126 (gdb_os_flush_stderr): Update.
9127 * gdb/remote.c (remote_console_output): Update.
9128 * gdb/ui-file.c (gdb_flush): Rename to...
9129 (ui_file_flush): ...this.
9130 (stderr_file::write): Update.
9131 (stderr_file::puts): Update.
9132 * gdb/ui-file.h (gdb_flush): Rename to...
9133 (ui_file_flush): ...this.
9134 * gdb/utils.c (gdb_flush): Add function.
9135 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9136
5abbbe1d
TT
91372020-02-07 Tom Tromey <tromey@adacore.com>
9138
9139 PR breakpoints/24915:
9140 * source.c (find_and_open_source): Do not check basenames_may_differ.
9141
919adfe8
TT
91422020-02-07 Tom Tromey <tom@tromey.com>
9143
9144 * README: Update gdbserver documentation.
9145 * gdbserver: Move to top level.
9146 * configure.tgt (build_gdbserver): Remove.
9147 * configure.ac: Remove --enable-gdbserver.
9148 * configure: Rebuild.
9149 * Makefile.in (distclean): Don't mention gdbserver.
9150
1d5d29e7
SV
91512020-02-06 Shahab Vahedi <shahab@synopsys.com>
9152
9153 * source-cache.c (source_cache::ensure): Surround
9154 get_plain_source_lines with a try/catch.
9155 (source_cache::get_line_charpos): Get rid of try/catch
9156 and only check for the return value of "ensure".
9157 * tui/tui-source.c (tui_source_window::set_contents):
9158 Simplify "nlines" calculation.
9159
6eb1129c
SV
91602020-02-06 Shahab Vahedi <shahab@synopsys.com>
9161
9162 * MAINTAINERS (Write After Approval): Add myself.
9163
c6a42d11
CB
91642020-02-05 Christian Biesinger <cbiesinger@google.com>
9165
9166 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9167 function call.
9168
c8ecdda6
CB
91692020-02-05 Christian Biesinger <cbiesinger@google.com>
9170
9171 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9172
f6480e70
MR
91732020-02-05 Maciej W. Rozycki <macro@wdc.com>
9174
9175 * nat/riscv-linux-tdesc.h: New file.
9176 * nat/riscv-linux-tdesc.c: New file, taking code from...
9177 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9178 ... here.
9179 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9180 NATDEPFILES.
9181
dcc9fbc6
AB
91822020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9183
9184 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9185 we don't set the fake simulator ptid to the null_ptid.
9186
719546c4
SM
91872020-02-03 Simon Marchi <simon.marchi@efficios.com>
9188
9189 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9190 * gdbthread.h (class thread_info) <resumed>: Likewise.
9191 * infrun.c (resume_1): Likewise.
9192 (proceed): Likewise.
9193 (infrun_thread_stop_requested): Likewise.
9194 (stop_all_threads): Likewise.
9195 (handle_inferior_event): Likewise.
9196 (restart_threads): Likewise.
9197 (finish_step_over): Likewise.
9198 (keep_going_stepped_thread): Likewise.
9199 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9200 (linux_handle_extended_wait): Likewise.
9201 * record-btrace.c (get_thread_current_frame_id): Likewise.
9202 * record-full.c (record_full_wait_1): Likewise.
9203 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9204 * target.c (target_resume): Likewise.
9205 * thread.c (set_running_thread): Likewise.
9206
e409c542
AKS
92072020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9208
9209 * f-valprint.c (f77_print_array_1): Changed datatype of index
9210 variable to LONGEST from int to enable it to contain bound
9211 values correctly.
9212
ee98c0da
MR
92132020-02-03 Maciej W. Rozycki <macro@wdc.com>
9214
9215 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9216 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9217 offsets according to FLEN determined.
9218 (riscv_linux_nat_target::read_description): Determine FLEN
9219 dynamically.
9220 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9221 according to FLEN determined.
9222 (riscv_linux_nat_target::store_registers): Likewise.
9223
aa66aac4
SV
92242020-02-01 Shahab Vahedi <shahab@synopsys.com>
9225
9226 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9227 when reg->group is empty and reggroup is not.
9228
fd9faca8
TT
92292020-01-31 Tom Tromey <tromey@adacore.com>
9230
9231 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9232 Call beneath target's mourn_inferior after unpushing.
9233
42330a68
AB
92342020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9235
9236 PR tui/9765
9237 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9238 have enough lines to fill the screen, still return the lowest
9239 address we found.
9240
7a27a45b
AB
92412020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9242
9243 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9244 '-', '<', and '>' commands.
9245
c47f70e2
PA
92462020-01-29 Pedro Alves <palves@redhat.com>
9247 Sergio Durigan Junior <sergiodj@redhat.com>
9248
9249 * infcmd.c (construct_inferior_arguments): Assert that
9250 'argc' is greater than 0.
9251
5133a315
LM
92522020-01-29 Luis Machado <luis.machado@linaro.org>
9253
9254 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9255 (BRK_INSN_MASK): Define to 0xd4200000.
9256 (aarch64_program_breakpoint_here_p): New function.
9257 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9258 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9259 breakpoint.c.
9260 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9261 breakpoint.h
9262 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9263 call gdbarch_program_breakpoint_here_p.
9264 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9265 default_program_breakpoint_here_p, changed return type to bool and
9266 simplified.
9267 * breakpoint.h (program_breakpoint_here): Moved prototype to
9268 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9269 return type to bool.
9270 * gdbarch.c: Regenerate.
9271 * gdbarch.h: Regenerate.
9272 * gdbarch.sh (program_breakpoint_here_p): New method.
9273 * infrun.c (handle_signal_stop): Call
9274 gdbarch_program_breakpoint_here_p.
9275
168f8c6b
TT
92762020-01-26 Tom Tromey <tom@tromey.com>
9277
9278 * ctfread.c (struct ctf_fp_info): Reindent.
9279 (_initialize_ctfread): Remove.
9280
128a391f
TT
92812020-01-26 Tom Tromey <tom@tromey.com>
9282
9283 * psymtab.c (partial_map_expand_apply)
9284 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9285 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9286 (psym_print_stats, psym_expand_symtabs_for_function)
9287 (psym_map_symbol_filenames, psym_map_matching_symbols)
9288 (psym_expand_symtabs_matching)
9289 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9290 (maintenance_check_psymtabs): Use new methods.
9291 * psympriv.h (struct partial_symtab) <readin_p,
9292 get_compunit_symtab>: New methods.
9293 <readin, compunit_symtab>: Remove members.
9294 (struct standard_psymtab): New.
9295 (struct legacy_psymtab): Derive from standard_psymtab.
9296 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9297 standard_psymtab.
9298 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9299
0494dbec
TT
93002020-01-26 Tom Tromey <tom@tromey.com>
9301
9302 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9303 read_dependencies. Add assert.
9304 * psymtab.c (partial_symtab::read_dependencies): New method.
9305 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9306 method.
9307 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9308 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9309 read_dependencies.
9310 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9311 Add assert.
9312
8566b89b
TT
93132020-01-26 Tom Tromey <tom@tromey.com>
9314
9315 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9316 Call expand_psymtab.
9317 (xcoff_read_symtab): Call expand_psymtab.
9318 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9319 legacy_expand_psymtab.
9320 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9321 method.
9322 (struct legacy_psymtab) <expand_psymtab>: Implement.
9323 <legacy_expand_psymtab>: New member.
9324 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9325 (parse_partial_symbols): Set legacy_expand_psymtab.
9326 (psymtab_to_symtab_1): Change argument order. Call
9327 expand_psymtab.
9328 (new_psymtab): Set legacy_expand_psymtab.
9329 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9330 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9331 expand_psymtab.
9332 (dwarf2_psymtab::expand_psymtab): Rename from
9333 psymtab_to_symtab_1. Call expand_psymtab.
9334 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9335 (dbx_end_psymtab): Likewise.
9336 (dbx_psymtab_to_symtab_1): Change argument order. Call
9337 expand_psymtab.
9338 (dbx_read_symtab): Call expand_psymtab.
9339 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9340 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9341 (ctf_psymtab::read_symtab): Call expand_psymtab.
9342
077cbab2
TT
93432020-01-26 Tom Tromey <tom@tromey.com>
9344
9345 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9346 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9347 messages.
9348 * mdebugread.c (mdebug_read_symtab): Remove prints.
9349 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9350 assert.
9351 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9352
891813be
TT
93532020-01-26 Tom Tromey <tom@tromey.com>
9354
9355 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9356 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9357 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9358 legacy_symtab.
9359 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9360 * psymtab.c (psymtab_to_symtab): Call method.
9361 (dump_psymtab): Update.
9362 * psympriv.h (struct partial_symtab): Add virtual destructor.
9363 <read_symtab>: New method.
9364 (struct legacy_symtab): New.
9365 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9366 (struct pst_map) <pst>: Now a legacy_psymtab.
9367 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9368 (new_psymtab): Use legacy_psymtab.
9369 * dwarf2read.h (struct dwarf2_psymtab): New.
9370 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9371 * dwarf2read.c (dwarf2_create_include_psymtab)
9372 (dwarf2_build_include_psymtabs, create_type_unit_group)
9373 (create_partial_symtab, process_psymtab_comp_unit_reader)
9374 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9375 (set_partial_user): Use dwarf2_psymtab.
9376 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9377 (psymtab_to_symtab_1, process_full_comp_unit)
9378 (process_full_type_unit, dwarf2_ranges_read)
9379 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9380 (dwarf_decode_lines): Use dwarf2_psymtab.
9381 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9382 (add_address_entry_worker, write_one_signatured_type)
9383 (recursively_count_psymbols, recursively_write_psymbols)
9384 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9385 (write_debug_names): Likewise.
9386 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9387 <pst>: Now a legacy_psymtab.
9388 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9389 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9390 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9391 * ctfread.c (struct ctf_psymtab): New.
9392 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9393 ctf_psymtab.
9394 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9395 (create_partial_symtab): Return a ctf_psymtab.
9396 (scan_partial_symbols): Update.
9397
c3693a1d
TT
93982020-01-26 Tom Tromey <tom@tromey.com>
9399
9400 * xcoffread.c (xcoff_start_psymtab): Use new.
9401 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9402 renamed from start_psymtab_common.
9403 * psympriv.h (struct partial_symtab): Add new constructor.
9404 (start_psymtab_common): Don't declare.
9405 * mdebugread.c (parse_partial_symbols): Use new.
9406 * dwarf2read.c (create_partial_symtab): Use new.
9407 * dbxread.c (start_psymtab): Use new.
9408 * ctfread.c (create_partial_symtab): Use new.
9409
32caafd0
TT
94102020-01-26 Tom Tromey <tom@tromey.com>
9411
9412 * xcoffread.c (xcoff_end_psymtab): Use new.
9413 * psymtab.c (start_psymtab_common): Use new.
9414 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9415 Update.
9416 * psympriv.h (struct partial_symtab): Add parameters to
9417 constructor. Don't inline.
9418 (allocate_psymtab): Don't declare.
9419 * mdebugread.c (new_psymtab): Use new.
9420 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9421 * dbxread.c (dbx_end_psymtab): Use new.
9422
abaa2f23
TT
94232020-01-26 Tom Tromey <tom@tromey.com>
9424
9425 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9426 allocate_psymtab. Update documentation.
9427 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9428 allocate_psymtab. Do not use new.
9429 (allocate_psymtab): Use new. Update.
9430
6d94535f
TT
94312020-01-26 Tom Tromey <tom@tromey.com>
9432
9433 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9434 * psymtab.c (psym_print_stats): Update.
9435 * psympriv.h (struct partial_symtab) <readin,
9436 psymtabs_addrmap_supported, anonymous>: Now bool.
9437 * mdebugread.c (psymtab_to_symtab_1): Update.
9438 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9439 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9440 (process_full_comp_unit, process_full_type_unit): Update.
9441 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9442 * ctfread.c (psymtab_to_symtab): Update.
9443
6f17252b
TT
94442020-01-26 Tom Tromey <tom@tromey.com>
9445
9446 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9447 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9448 * psymtab.c (psymtab_storage): Delete psymtabs.
9449 (psymtab_storage::allocate_psymtab): Use new.
9450 (psymtab_storage::discard_psymtab): Use delete.
9451 * psympriv.h (struct partial_symtab): Add constructor and
9452 initializers.
9453
f6f1cebc
TT
94542020-01-26 Tom Tromey <tom@tromey.com>
9455
9456 * machoread.c: Do not include psympriv.h.
9457
e47e48f6
PW
94582020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9459
9460 * NEWS: Mention the new option and the set/show commands.
9461
a2fedca9
PW
94622020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9463
9464 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9465 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9466 (validate_exec_file): New variables, enums, functions.
9467 (exec_file_locate_attach, print_section_info): Style the filenames.
9468 (_initialize_exec): Install show_exec_file_mismatch_command and
9469 set_exec_file_mismatch_command.
9470 * gdbcore.h (validate_exec_file): Declare.
9471 * infcmd.c (attach_command): Call validate_exec_file.
9472 * remote.c ( remote_target::remote_add_inferior): Likewise.
9473
7ffa82e1
AB
94742020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9475
9476 * frame.c (find_frame_sal): Move call to get_next_frame into more
9477 inner scope.
9478 * inline-frame.c (inilne_state) <inline_state>: Update argument
9479 types.
9480 (inilne_state) <skipped_symbol>: Rename to...
9481 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9482 (skip_inline_frames): Build vector of skipped symbols and use this
9483 to reate the inline_state.
9484 (inline_skipped_symbol): Add a comment and some assertions, fetch
9485 skipped symbol from the list.
9486
3d92a3e3
AB
94872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9488
9489 * buildsym.c (lte_is_less_than): Delete.
9490 (buildsym_compunit::end_symtab_with_blockvector): Create local
9491 lambda function to sort line table entries, and use
9492 std::stable_sort instead of std::sort.
9493 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9494 markers when looking for a previous line.
9495
94a72be7
AB
94962020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9497
9498 * dwarf2read.c (lnp_state_machine::record_line): Include
9499 end_sequence parameter in debug print out. Record the line if we
9500 are at an end_sequence marker even if it's not the start of a
9501 statement.
9502 * symmisc.c (maintenance_print_one_line_table): Print end of
9503 sequence markers with 'END' not '0'.
9504
53af73bf
PA
95052020-01-24 Pedro Alves <palves@redhat.com>
9506
9507 PR gdb/25410
9508 * thread.c (scoped_restore_current_thread::restore): Use
9509 switch_to_inferior_no_thread.
9510 * exec.c: Include "progspace-and-thread.h".
9511 (add_target_sections, remove_target_sections):
9512 scoped_restore_current_pspace_and_thread instead of
9513 scoped_restore_current_thread.
9514 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9515 and aspace to the inferior before calling clone_program_space.
9516 Remove stale comment.
9517
3050c6f4
CB
95182020-01-24 Christian Biesinger <cbiesinger@google.com>
9519
9520 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9521 (arm_netbsd_nat_target::fetch_registers): ...this.
9522 (arm_nbsd_nat_target::store_registers): Rename to...
9523 (arm_netbsd_nat_target::store_registers): ...this.
9524
73685c7e
CB
95252020-01-24 Christian Biesinger <cbiesinger@google.com>
9526
9527 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9528 register_t.
9529
89203d40
CB
95302020-01-24 Christian Biesinger <cbiesinger@google.com>
9531
9532 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9533 Update comment.
9534 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9535 Likewise.
9536 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9537 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9538 the correct replacement (iterate_over_regset_sections).
9539 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9540 Update comment.
9541
1ba1ac88
AB
95422020-01-24 Graham Markall <graham.markall@embecosm.com>
9543
9544 PR gdb/23718
9545 * gdb/python/python.c (execute_gdb_command): Call
9546 async_enable_stdin in catch block.
9547
f3364a6d
AB
95482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9549
9550 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9551 SWITCH_THRU_ALL_UIS.
9552
733d0a67
AB
95532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9554
9555 PR tui/9765
9556 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9557 comment, add extra parameter, and update to store previous symbol
9558 when appropriate.
9559 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9560 add extra parameter.
9561 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9562 remove unneeded parameter, add try/catch around gdb_print_insn,
9563 rewrite to add items to asm_lines vector.
9564 (tui_find_backward_disassembly_start_address): New function.
9565 (tui_find_disassembly_address): Updated throughout.
9566 (tui_disasm_window::set_contents): Update for changes to
9567 tui_disassemble.
9568 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9569 number of lines to scroll.
9570
b3b3bada
SM
95712020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9572
9573 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9574 (SECT_OFF_DATA): Likewise.
9575 (SECT_OFF_RODATA): Likewise.
9576 (SECT_OFF_TEXT): Likewise.
9577 (SECT_OFF_BSS): Likewise.
9578 (struct objfile) <text_section_offset, data_section_offset>: New
9579 methods.
9580 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9581 objfile::text_section_offset.
9582 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9583 * coffread.c (coff_symtab_read): Likewise.
9584 (enter_linenos): Likewise.
9585 (process_coff_symbol): Likewise.
9586 * ctfread.c (get_objfile_text_range): Likewise.
9587 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9588 Use objfile::data_section_offset.
9589 * dwarf2-frame.c (execute_cfa_program): Use
9590 objfile::text_section_offset.
9591 (dwarf2_frame_find_fde): Likewise.
9592 * dwarf2read.c (create_addrmap_from_index): Likewise.
9593 (create_addrmap_from_aranges): Likewise.
9594 (dw2_find_pc_sect_compunit_symtab): Likewise.
9595 (process_psymtab_comp_unit_reader): Likewise.
9596 (add_partial_symbol): Likewise.
9597 (add_partial_subprogram): Likewise.
9598 (process_full_comp_unit): Likewise.
9599 (read_file_scope): Likewise.
9600 (read_func_scope): Likewise.
9601 (read_lexical_block_scope): Likewise.
9602 (read_call_site_scope): Likewise.
9603 (dwarf2_rnglists_process): Likewise.
9604 (dwarf2_ranges_process): Likewise.
9605 (dwarf2_ranges_read): Likewise.
9606 (dwarf_decode_lines_1): Likewise.
9607 (new_symbol): Likewise.
9608 (dwarf2_fetch_die_loc_sect_off): Likewise.
9609 (dwarf2_per_cu_text_offset): Likewise.
9610 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9611 * hppa-tdep.c (read_unwind_info): Likewise.
9612 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9613 * psympriv.h (struct partial_symtab): Likewise.
9614 * psymtab.c (find_pc_sect_psymtab): Likewise.
9615 * solib-svr4.c (enable_break): Likewise.
9616 * stap-probe.c (relocate_address): Use
9617 objfile::data_section_offset.
9618 * xcoffread.c (enter_line_range): Use
9619 objfile::text_section_offset.
9620 (read_xcoff_symtab): Likewise.
9621
ab53f382
SM
96222020-01-23 Simon Marchi <simon.marchi@efficios.com>
9623
9624 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9625 declaration to narrower scopes.
9626
e7eee665
SM
96272020-01-23 Simon Marchi <simon.marchi@efficios.com>
9628
9629 * darwin-nat.h (struct darwin_exception_msg, enum
9630 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9631 Move up.
9632 (class darwin_nat_target) <wait_1, check_new_threads,
9633 decode_exception_message, decode_message, stop_inferior,
9634 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9635 * darwin-nat.c (darwin_check_new_threads): Rename to...
9636 (darwin_nat_target::check_new_threads): ... this.
9637 (darwin_suspend_inferior_it): Remove.
9638 (darwin_decode_exception_message): Rename to...
9639 (darwin_nat_target::decode_exception_message): ... this.
9640 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9641 (darwin_decode_message): Rename to...
9642 (darwin_nat_target::decode_message): ... this.
9643 (cancel_breakpoint): Rename to...
9644 (darwin_nat_target::cancel_breakpoint): ... this.
9645 (darwin_wait): Rename to...
9646 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9647 instead of iterate_over_inferiors.
9648 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9649 (darwin_stop_inferior): Rename to...
9650 (darwin_nat_target::stop_inferior): ... this.
9651 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9652 (darwin_init_thread_list): Rename to...
9653 (darwin_nat_target::init_thread_list): ... this.
9654 (darwin_ptrace_him): Rename to...
9655 (darwin_nat_target::ptrace_him): ... this.
9656 (darwin_nat_target::create_inferior): Pass lambda function to
9657 fork_inferior.
9658 (darwin_nat_target::detach): Call stop_inferior instead of
9659 darwin_stop_inferior.
9660 * fork-inferior.h (fork_inferior): Change init_trace_fun
9661 parameter to gdb::function_view.
9662 * fork-inferior.c (fork_inferior): Likewise.
9663
c162ed3e
HD
96642020-01-23 Hannes Domani <ssbssa@yahoo.de>
9665
9666 * i386-cygwin-tdep.c (core_process_module_section): Update.
9667 * windows-nat.c (struct lm_info_windows): Add text_offset.
9668 (windows_xfer_shared_libraries): Update.
9669 * windows-tdep.c (windows_xfer_shared_library):
9670 Add text_offset_cached argument.
9671 * windows-tdep.h (windows_xfer_shared_library): Update.
9672
a1237872
SM
96732020-01-21 Simon Marchi <simon.marchi@efficios.com>
9674
9675 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9676
b3ee6dd9
SM
96772020-01-21 Simon Marchi <simon.marchi@efficios.com>
9678
9679 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9680 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9681 replace with range-based for.
9682 (gdbsim_interrupt_inferior): Remove.
9683 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9684 with a range-based for. Inline code from
9685 gdbsim_interrupt_inferior.
9686
f9fac3c8
SM
96872020-01-21 Simon Marchi <simon.marchi@efficios.com>
9688
9689 * infrun.c (proceed): Fix indentation.
9690
f6474de9
TT
96912020-01-21 Tom Tromey <tromey@adacore.com>
9692
9693 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9694 * python/python.c (python_extension_ops): Update.
9695 (gdbpy_colorize): New function.
9696 * python/lib/gdb/__init__.py (colorize): New function.
9697 * extension.h (ext_lang_colorize): Declare.
9698 * extension.c (ext_lang_colorize): New function.
9699 * extension-priv.h (struct extension_language_ops) <colorize>: New
9700 member.
9701 * cli/cli-style.c (_initialize_cli_style): Update help text.
9702
f0c702d4
LM
97032020-01-21 Luis Machado <luis.machado@linaro.org>
9704
9705 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9706 <cond>: Change type to bool.
9707 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9708 (aarch64_displaced_step_cb): Likewise.
9709 (aarch64_displaced_step_tb): Likewise.
9710
1ab139e5
LM
97112020-01-21 Luis Machado <luis.machado@linaro.org>
9712
9713 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9714 output.
9715
0c271889
LM
97162020-01-21 Luis Machado <luis.machado@linaro.org>
9717
9718 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9719 <pc_adjust>: Adjust the documentation.
9720 (aarch64_displaced_step_fixup): Check if PC really moved before
9721 adjusting it.
9722
4d89c1c7
TT
97232020-01-19 Tom Tromey <tom@tromey.com>
9724
9725 * disasm.c (~gdb_disassembler): New destructor.
9726 (gdb_buffered_insn_length): Call disassemble_free_target.
9727 * disasm.h (class gdb_disassembler): Declare destructor. Use
9728 DISABLE_COPY_AND_ASSIGN.
9729
c0ab21c2
TT
97302020-01-19 Tom Tromey <tom@tromey.com>
9731
9732 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9733 (die_reader_func_ftype): Remove.
9734 (cutu_reader): New class.
9735 (dw2_get_file_names_reader): Remove "data" parameter.
9736 (dw2_get_file_names): Use cutu_reader.
9737 (create_debug_type_hash_table): Update.
9738 (read_cutu_die_from_dwo): Update comment.
9739 (lookup_dwo_unit): Add dwo_name parameter.
9740 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9741 die_reader_func_ftype and data parameters.
9742 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9743 Remove die_reader_func_ftype and data parameters.
9744 (~cutu_reader): New; from init_cutu_and_read_dies.
9745 (cutu_reader::cutu_reader): Rename from
9746 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9747 and data parameters.
9748 (init_cutu_and_read_dies_simple): Remove.
9749 (struct process_psymtab_comp_unit_data): Remove.
9750 (process_psymtab_comp_unit_reader): Remove data parameter; add
9751 want_partial_unit and pretend_language parameters.
9752 (process_psymtab_comp_unit): Use cutu_reader.
9753 (build_type_psymtabs_reader): Remove data parameter.
9754 (build_type_psymtabs_1): Use cutu_reader.
9755 (process_skeletonless_type_unit): Likewise.
9756 (load_partial_comp_unit_reader): Remove.
9757 (load_partial_comp_unit): Use cutu_reader.
9758 (load_full_comp_unit_reader): Remove.
9759 (load_full_comp_unit): Use cutu_reader.
9760 (struct create_dwo_cu_data): Remove.
9761 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9762 dwo_unit parameters.
9763 (create_cus_hash_table): Use cutu_reader.
9764 (struct dwarf2_read_addr_index_data): Remove.
9765 (dwarf2_read_addr_index_reader): Remove.
9766 (dwarf2_read_addr_index): Use cutu_reader.
9767 (read_signatured_type_reader): Remove.
9768 (read_signatured_type): Use cutu_reader.
9769
45bbae5c
TT
97702020-01-19 Tom Tromey <tom@tromey.com>
9771
9772 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9773 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9774 (tui_wrefresh): Declare.
9775 * tui/tui-wingeneral.c (suppress_output): New global.
9776 (tui_suppress_output, ~tui_suppress_output): New constructor and
9777 destructor.
9778 (tui_wrefresh): New function.
9779 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9780 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9781 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9782 method.
9783 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9784 tui_wrefresh.
9785 (tui_data_window::no_refresh): New method.
9786 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9787 (tui_reg_command): Use tui_suppress_output
9788 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9789 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9790 method.
9791 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9792
4f13c1c0
TT
97932020-01-19 Tom Tromey <tom@tromey.com>
9794
9795 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9796 Handle case where symtab is null.
9797
fa47e446
SM
97982020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9799
9800 * linux-fork.c (one_fork_p): Simplify.
9801
26f42329
SM
98022020-01-17 Simon Marchi <simon.marchi@efficios.com>
9803
9804 * top.c (struct qt_args): Remove.
9805 (kill_or_detach): Change return type to void, replace `void *`
9806 parameter with a proper one.
9807 (print_inferior_quit_action): Likewise.
9808 (quit_confirm): Use range-based for loop to iterate over inferiors.
9809 (quit_force): Likewise.
9810
a9ac81b1
SM
98112020-01-17 Simon Marchi <simon.marchi@efficios.com>
9812
9813 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9814 `void *` parameter with proper parameters.
9815 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9816 (print_one_inferior): Change return type to void, replace `void *`
9817 parameter with proper parameters.
9818 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9819 inferiors.
9820 (get_other_inferior): Remove.
9821 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9822 inferiors.
9823
788eca49
SM
98242020-01-17 Simon Marchi <simon.marchi@efficios.com>
9825
9826 * mi/mi-interp.c (report_initial_inferior): Remove.
9827 (mi_interp::init): Use range-based for to iterate over inferiors.
9828
d9bc85b6
SM
98292020-01-17 Simon Marchi <simon.marchi@efficios.com>
9830
9831 * python/py-inferior.c (build_inferior_list): Remove.
9832 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
9833
40c94099
CB
98342020-01-16 Christian Biesinger <cbiesinger@google.com>
9835
9836 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
9837 (btrace_stitch_trace): Likewise.
9838 * charset.c (intermediate_encoding): Likewise (vaild).
9839 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
9840 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
9841 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
9842
e0cdfe3c
HD
98432020-01-16 Hannes Domani <ssbssa@yahoo.de>
9844
9845 * windows-tdep.c (windows_get_tlb_type):
9846 Add rtl_user_process_parameters type.
9847
790f1718 98482020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 9849 Norbert Lange <nolange79@gmail.com>
790f1718
PA
9850
9851 PR build/24805
9852 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
9853 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
9854 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
9855 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
9856 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
9857 (ps_plog): Redeclare exported functions with default visibility.
9858
3112ed97
NA
98592020-01-16 Nitika Achra <Nitika.Achra@amd.com>
9860
9861 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
9862 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
9863
8dc3273e
SM
98642020-01-15 Simon Marchi <simon.marchi@efficios.com>
9865
9866 * infcmd.c (post_create_inferior): Use get_thread_regcache
9867 instead of get_current_regcache.
9868
ff47f4f0
TT
98692020-01-14 Tom Tromey <tom@tromey.com>
9870
9871 PR symtab/12535:
9872 * python/python.c (gdbpy_decode_line): Treat empty string the same
9873 as no argument.
9874
975f45b7
TT
98752020-01-14 Tom Tromey <tom@tromey.com>
9876
9877 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
9878
25e57356
TT
98792020-01-14 Tom Tromey <tom@tromey.com>
9880
9881 * nat/linux-btrace.c: Don't include <config.h>.
9882 * nat/linux-ptrace.c: Don't include <config.h>.
9883 * nat/x86-linux-dregs.c: Don't include <config.h>.
9884
05ea2a05
TT
98852020-01-14 Tom Tromey <tom@tromey.com>
9886
9887 * configure: Rebuild.
9888 * configure.ac: Move many checks to ../gdbsupport/common.m4.
9889
01027315
TT
98902020-01-14 Tom Tromey <tom@tromey.com>
9891
9892 * nat/x86-linux-dregs.c: Include configh.h.
9893 * nat/linux-ptrace.c: Include configh.h.
9894 * nat/linux-btrace.c: Include configh.h.
9895 * defs.h: Include config.h, bfd.h.
9896 * configure.ac: Don't source common.host.
9897 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
9898 * configure: Rebuild.
9899 * acinclude.m4: Update path.
9900 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
9901 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
9902 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
9903 (CLIBS): Add LIBSUPPORT.
9904 (CDEPS): Likewise.
9905 (COMMON_SFILES): Remove gdbsupport files.
9906 (HFILES_NO_SRCDIR): Likewise.
9907 (stamp-version): Update path to create-version.sh.
9908 (ALLDEPFILES): Remove gdbsupport files.
9909
b2ceabe8
TT
99102020-01-14 Tom Tromey <tom@tromey.com>
9911
9912 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
9913 USE_WIN32API when needed.
9914 * configure.ac (USE_WIN32API): Don't define.
9915 (WIN32LIBS): Use WIN32APILIBS.
9916 * configure: Rebuild.
9917
25c51f71
TT
99182020-01-14 Tom Tromey <tom@tromey.com>
9919
9920 * configure: Rebuild.
9921 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
9922
717c684d
BE
99232020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
9924
9925 * skip.c (skip_function_command): Make skip w/o arguments use the
9926 name of the inlined function if pc is inside any inlined function.
9927
7da6a5b9
LM
99282020-01-14 Luis Machado <luis.machado@linaro.org>
9929
9930 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
9931 * infrun.c (resume_1): Likewise.
9932 (handle_inferior_event): Remove stale comment.
9933 * linux-nat.c (linux_nat_target::resume): Update comments.
9934 (save_stop_reason): Likewise.
9935 (linux_nat_filter_event): Likewise.
9936 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
9937
44e4c775
AB
99382020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
9939
9940 * elfread.c (record_minimal_symbol): Set section index to 0 for
9941 non-allocatable sections.
9942
18a8505e
AT
9943
99442020-01-13 Ali Tamur <tamur@google.com>
9945
9946 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
9947 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
9948 to gdb::optional. Update comments.
9949 (dwo_file): Update comments.
9950 (read_attribute): Update API to take an additional out parameter,
9951 need_reprocess. This is used to mark attributes that need other
9952 attributes (e.g. str_offsets_base) for correct computation which may not
9953 have been read yet.
9954 (read_attribute_reprocess): New function declaration.
9955 (read_addr_index): Likewise.
9956 (read_dwo_str_index): Likewise.
9957 (read_stub_str_index): Likewise.
9958 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
9959 (lookup_addr_base): New function definition.
9960 (lookup_ranges_base): Likewise.
9961 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
9962 lookup_ranges_base.
9963 (init_cutu_and_read_dies): Update comments.
9964 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
9965 unit. This is used to inherit parent's str_offsets_base and addr_base.
9966 Update comments.
9967 (init_cutu_and_read_dies_simple): Reflect API changes.
9968 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
9969 (create_cus_hash_table): Change API to take parent compile unit.
9970 Reflect API changes.
9971 (open_and_init_dwo_file): Reflect API changes.
9972 (dwarf2_get_pc_bounds): Update comments.
9973 (dwarf2_record_block_ranges): Likewise.
9974 (read_full_die_1): Change implementation to reprocess attributes that
9975 need str_offsets_base and addr_base.
9976 (partial_die_info::read): Likewise.
9977 (read_attribute_reprocess): New function definition.
9978 (read_attribute_value): Change API to take an additional out parameter,
9979 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
9980 when a non-dwo compile unit has index based attributes.
9981 (read_attribute): Reflect API changes.
9982 (read_addr_index_1): Reflect API changes. Update comments.
9983 (dwarf2_read_addr_index_data): Reflect API changes.
9984 (dwarf2_read_addr_index): Likewise.
9985 (read_str_index): Change API and implementation. This becomes a helper
9986 to be used by the new string index related methods. Update error
9987 message and comments.
9988 (read_dwo_str_index): New function definition.
9989 (read_stub_str_index): Likewise.
9990 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
9991 * symfile.h (dwarf2_debug_sections): Likewise.
9992 * xcoffread.c (dwarf2_debug_sections): Likewise.
9993
0cac9354
SM
99942020-01-13 Simon Marchi <simon.marchi@efficios.com>
9995
9996 * gdbcore.h (struct core_fns) <core_read_registers>: Change
9997 core_reg_sect type to gdb_byte *.
9998 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
9999 * cris-tdep.c (fetch_core_registers): Likewise.
10000 * corelow.c (core_target::get_core_register_section): Change
10001 type of `contents` to gdb::byte_vector.
10002
9a6d629c
AB
100032020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10004
10005 * tui/tui-wingeneral.c (box_win): Position the title in the center
10006 of the border.
10007
d8b2f9e3
SM
100082020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10009
10010 * corelow.c (core_target::get_core_register_section): Use
10011 std::vector instead of alloca.
10012
bb564c58
SM
100132020-01-13 Simon Marchi <simon.marchi@efficios.com>
10014
10015 * warning.m4: Add -Wmissing-declarations to build_warnings.
10016 * configure: Re-generate.
10017
6b366111
SM
100182020-01-13 Simon Marchi <simon.marchi@efficios.com>
10019
10020 * python/python.c (init__gdb_module): Add declaration.
10021
6c265988
SM
100222020-01-13 Simon Marchi <simon.marchi@efficios.com>
10023
10024 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10025 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10026 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10027 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10028 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10029 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10030 * ada-exp.y (_initialize_ada_exp): Add declaration.
10031 * ada-lang.c (_initialize_ada_language): Add declaration.
10032 * ada-tasks.c (_initialize_tasks): Add declaration.
10033 * agent.c (_initialize_agent): Add declaration.
10034 * aix-thread.c (_initialize_aix_thread): Add declaration.
10035 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10036 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10037 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10038 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10039 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10040 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10041 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10042 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10043 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10044 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10045 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10046 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10047 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10048 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10049 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10050 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10051 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10052 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10053 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10054 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10055 * annotate.c (_initialize_annotate): Add declaration.
10056 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10057 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10058 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10059 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10060 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10061 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10062 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10063 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10064 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10065 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10066 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10067 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10068 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10069 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10070 * auto-load.c (_initialize_auto_load): Add declaration.
10071 * auxv.c (_initialize_auxv): Add declaration.
10072 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10073 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10074 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10075 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10076 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10077 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10078 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10079 * breakpoint.c (_initialize_breakpoint): Add declaration.
10080 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10081 * btrace.c (_initialize_btrace): Add declaration.
10082 * charset.c (_initialize_charset): Add declaration.
10083 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10084 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10085 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10086 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10087 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10088 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10089 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10090 * coffread.c (_initialize_coffread): Add declaration.
10091 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10092 * compile/compile.c (_initialize_compile): Add declaration.
10093 * complaints.c (_initialize_complaints): Add declaration.
10094 * completer.c (_initialize_completer): Add declaration.
10095 * copying.c (_initialize_copying): Add declaration.
10096 * corefile.c (_initialize_core): Add declaration.
10097 * corelow.c (_initialize_corelow): Add declaration.
10098 * cp-abi.c (_initialize_cp_abi): Add declaration.
10099 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10100 * cp-support.c (_initialize_cp_support): Add declaration.
10101 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10102 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10103 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10104 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10105 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10106 * ctfread.c (_initialize_ctfread): Add declaration.
10107 * d-lang.c (_initialize_d_language): Add declaration.
10108 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10109 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10110 * dbxread.c (_initialize_dbxread): Add declaration.
10111 * dcache.c (_initialize_dcache): Add declaration.
10112 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10113 * disasm.c (_initialize_disasm): Add declaration.
10114 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10115 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10116 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10117 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10118 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10119 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10120 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10121 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10122 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10123 * elfread.c (_initialize_elfread): Add declaration.
10124 * exec.c (_initialize_exec): Add declaration.
10125 * extension.c (_initialize_extension): Add declaration.
10126 * f-lang.c (_initialize_f_language): Add declaration.
10127 * f-valprint.c (_initialize_f_valprint): Add declaration.
10128 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10129 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10130 * filesystem.c (_initialize_filesystem): Add declaration.
10131 * findcmd.c (_initialize_mem_search): Add declaration.
10132 * findvar.c (_initialize_findvar): Add declaration.
10133 * fork-child.c (_initialize_fork_child): Add declaration.
10134 * frame-base.c (_initialize_frame_base): Add declaration.
10135 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10136 * frame.c (_initialize_frame): Add declaration.
10137 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10138 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10139 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10140 * gcore.c (_initialize_gcore): Add declaration.
10141 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10142 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10143 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10144 * gdbarch.c (_initialize_gdbarch): Add declaration.
10145 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10146 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10147 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10148 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10149 * go-lang.c (_initialize_go_language): Add declaration.
10150 * go32-nat.c (_initialize_go32_nat): Add declaration.
10151 * guile/guile.c (_initialize_guile): Add declaration.
10152 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10153 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10154 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10155 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10156 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10157 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10158 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10159 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10160 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10161 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10162 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10163 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10164 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10165 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10166 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10167 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10168 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10169 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10170 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10171 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10172 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10173 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10174 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10175 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10176 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10177 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10178 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10179 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10180 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10181 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10182 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10183 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10184 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10185 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10186 * infcall.c (_initialize_infcall): Add declaration.
10187 * infcmd.c (_initialize_infcmd): Add declaration.
10188 * inflow.c (_initialize_inflow): Add declaration.
10189 * infrun.c (_initialize_infrun): Add declaration.
10190 * interps.c (_initialize_interpreter): Add declaration.
10191 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10192 * jit.c (_initialize_jit): Add declaration.
10193 * language.c (_initialize_language): Add declaration.
10194 * linux-fork.c (_initialize_linux_fork): Add declaration.
10195 * linux-nat.c (_initialize_linux_nat): Add declaration.
10196 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10197 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10198 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10199 * m2-lang.c (_initialize_m2_language): Add declaration.
10200 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10201 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10202 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10203 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10204 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10205 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10206 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10207 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10208 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10209 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10210 * machoread.c (_initialize_machoread): Add declaration.
10211 * macrocmd.c (_initialize_macrocmd): Add declaration.
10212 * macroscope.c (_initialize_macroscope): Add declaration.
10213 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10214 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10215 * maint.c (_initialize_maint_cmds): Add declaration.
10216 * mdebugread.c (_initialize_mdebugread): Add declaration.
10217 * memattr.c (_initialize_mem): Add declaration.
10218 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10219 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10220 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10221 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10222 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10223 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10224 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10225 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10226 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10227 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10228 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10229 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10230 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10231 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10232 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10233 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10234 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10235 * mipsread.c (_initialize_mipsread): Add declaration.
10236 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10237 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10238 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10239 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10240 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10241 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10242 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10243 * nto-procfs.c (_initialize_procfs): Add declaration.
10244 * objc-lang.c (_initialize_objc_language): Add declaration.
10245 * observable.c (_initialize_observer): Add declaration.
10246 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10247 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10248 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10249 * osabi.c (_initialize_gdb_osabi): Add declaration.
10250 * osdata.c (_initialize_osdata): Add declaration.
10251 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10252 * parse.c (_initialize_parse): Add declaration.
10253 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10254 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10255 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10256 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10257 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10258 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10259 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10260 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10261 * printcmd.c (_initialize_printcmd): Add declaration.
10262 * probe.c (_initialize_probe): Add declaration.
10263 * proc-api.c (_initialize_proc_api): Add declaration.
10264 * proc-events.c (_initialize_proc_events): Add declaration.
10265 * proc-service.c (_initialize_proc_service): Add declaration.
10266 * procfs.c (_initialize_procfs): Add declaration.
10267 * producer.c (_initialize_producer): Add declaration.
10268 * psymtab.c (_initialize_psymtab): Add declaration.
10269 * python/python.c (_initialize_python): Add declaration.
10270 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10271 * record-btrace.c (_initialize_record_btrace): Add declaration.
10272 * record-full.c (_initialize_record_full): Add declaration.
10273 * record.c (_initialize_record): Add declaration.
10274 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10275 * regcache.c (_initialize_regcache): Add declaration.
10276 * reggroups.c (_initialize_reggroup): Add declaration.
10277 * remote-notif.c (_initialize_notif): Add declaration.
10278 * remote-sim.c (_initialize_remote_sim): Add declaration.
10279 * remote.c (_initialize_remote): Add declaration.
10280 * reverse.c (_initialize_reverse): Add declaration.
10281 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10282 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10283 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10284 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10285 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10286 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10287 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10288 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10289 Add declaration.
10290 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10291 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10292 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10293 * rust-exp.y (_initialize_rust_exp): Add declaration.
10294 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10295 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10296 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10297 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10298 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10299 * score-tdep.c (_initialize_score_tdep): Add declaration.
10300 * ser-go32.c (_initialize_ser_dos): Add declaration.
10301 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10302 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10303 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10304 * ser-uds.c (_initialize_ser_socket): Add declaration.
10305 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10306 * serial.c (_initialize_serial): Add declaration.
10307 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10308 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10309 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10310 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10311 * skip.c (_initialize_step_skip): Add declaration.
10312 * sol-thread.c (_initialize_sol_thread): Add declaration.
10313 * solib-aix.c (_initialize_solib_aix): Add declaration.
10314 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10315 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10316 * solib-frv.c (_initialize_frv_solib): Add declaration.
10317 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10318 * solib-target.c (_initialize_solib_target): Add declaration.
10319 * solib.c (_initialize_solib): Add declaration.
10320 * source-cache.c (_initialize_source_cache): Add declaration.
10321 * source.c (_initialize_source): Add declaration.
10322 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10323 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10324 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10325 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10326 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10327 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10328 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10329 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10330 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10331 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10332 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10333 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10334 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10335 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10336 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10337 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10338 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10339 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10340 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10341 * stabsread.c (_initialize_stabsread): Add declaration.
10342 * stack.c (_initialize_stack): Add declaration.
10343 * stap-probe.c (_initialize_stap_probe): Add declaration.
10344 * std-regs.c (_initialize_frame_reg): Add declaration.
10345 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10346 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10347 * symfile.c (_initialize_symfile): Add declaration.
10348 * symmisc.c (_initialize_symmisc): Add declaration.
10349 * symtab.c (_initialize_symtab): Add declaration.
10350 * target.c (_initialize_target): Add declaration.
10351 * target-connection.c (_initialize_target_connection): Add
10352 declaration.
10353 * target-dcache.c (_initialize_target_dcache): Add declaration.
10354 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10355 * thread.c (_initialize_thread): Add declaration.
10356 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10357 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10358 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10359 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10360 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10361 * tracectf.c (_initialize_ctf): Add declaration.
10362 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10363 * tracefile.c (_initialize_tracefile): Add declaration.
10364 * tracepoint.c (_initialize_tracepoint): Add declaration.
10365 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10366 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10367 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10368 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10369 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10370 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10371 * tui/tui.c (_initialize_tui): Add declaration.
10372 * typeprint.c (_initialize_typeprint): Add declaration.
10373 * ui-style.c (_initialize_ui_style): Add declaration.
10374 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10375 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10376 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10377 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10378 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10379 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10380 * unittests/filtered_iterator-selftests.c
10381 (_initialize_filtered_iterator_selftests): Add declaration.
10382 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10383 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10384 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10385 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10386 * unittests/main-thread-selftests.c
10387 (_initialize_main_thread_selftests): Add declaration.
10388 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10389 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10390 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10391 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10392 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10393 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10394 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10395 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10396 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10397 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10398 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10399 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10400 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10401 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10402 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10403 declaration.
10404 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10405 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10406 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10407 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10408 * user-regs.c (_initialize_user_regs): Add declaration.
10409 * utils.c (_initialize_utils): Add declaration.
10410 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10411 * valops.c (_initialize_valops): Add declaration.
10412 * valprint.c (_initialize_valprint): Add declaration.
10413 * value.c (_initialize_values): Add declaration.
10414 * varobj.c (_initialize_varobj): Add declaration.
10415 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10416 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10417 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10418 * windows-nat.c (_initialize_windows_nat): Add declaration.
10419 (_initialize_check_for_gdb_ini): Add declaration.
10420 (_initialize_loadable): Add declaration.
10421 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10422 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10423 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10424 * xcoffread.c (_initialize_xcoffread): Add declaration.
10425 * xml-support.c (_initialize_xml_support): Add declaration.
10426 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10427 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10428 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10429 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10430
e2de1eec
SM
104312020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10432
10433 * regformats/regdat.sh: Generate declaration for init function.
10434
e0037b4c
SM
104352020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10436
10437 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10438 up.
10439 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10440 close_one_inferior>: New methods.
10441 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10442 pass down target to find_inferior_pid.
10443 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10444 Pass down target to find_inferior_ptid.
10445 (gdbsim_target::create_inferior): Pass down target to
10446 add_thread_silent.
10447 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10448 target down to find_inferior_ptid and switch_to_thread.
10449 (gdbsim_target::close): Update to call close_one_inferior.
10450 (struct resume_data): Remove.
10451 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10452 directly, rather than through a void pointer.
10453 (gdbsim_target::resume): Update to call resume_one_inferior.
10454
58920b5b
SM
104552020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10456
10457 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10458
4ec89149
PA
104592020-01-12 Pedro Alves <palves@redhat.com>
10460
10461 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10462 directly for the current inferior instead of
10463 discard_all_inferiors.
10464 (discard_all_inferiors): Delete.
10465
7c392d1d
TT
104662020-01-11 Tom Tromey <tom@tromey.com>
10467
10468 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10469 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10470 deprecated_safe_get_selected_frame.
10471
d9ebdab7
TBA
104722020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10473
10474 * inferior.c (print_inferior): Switch inferior before printing it.
10475
f3c469b9
PA
104762020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10477 Pedro Alves <palves@redhat.com>
10478
10479 * progspace-and-thread.c (switch_to_program_space_and_thread):
10480 Assert there's an inferior for PSPACE. Use
10481 switch_to_inferior_no_thread to switch the inferior too.
10482 * progspace.c (program_space::~program_space): Call
10483 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10484 (program_space::free_all_objfiles): Don't call clear_symtab_users
10485 here.
10486 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10487
65c574f6
PA
104882020-01-10 Pedro Alves <palves@redhat.com>
10489
10490 * NEWS: Mention multi-target debugging, "info connections", and
10491 "add-inferior -no-connection".
10492
2f4fcf00
PA
104932020-01-10 Pedro Alves <palves@redhat.com>
10494
10495 * infrun.c: Include "target-connection.h".
10496 (check_multi_target_resumption): New.
10497 (proceed): Call it.
10498 * target-connection.c (make_target_connection_string): Make
10499 extern.
10500 * target-connection.h (make_target_connection_string): Declare.
10501
121b3efd
PA
105022020-01-10 Pedro Alves <palves@redhat.com>
10503
10504 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10505 * inferior.c (uiout_field_connection): New function.
10506 (print_inferior): Add new "connection-id" column.
10507 (add_inferior_command): Show connection number/string of added
10508 inferior.
10509 * process-stratum-target.h
10510 (process_stratum_target::connection_string): New virtual method.
10511 (process_stratum_target::connection_number): New field.
10512 * remote.c (remote_target::connection_string): New override.
10513 * target-connection.c: New file.
10514 * target-connection.h: New file.
10515 * target.c (decref_target): Remove process_stratum targets from
10516 the connection list.
10517 (target_stack::push): Add process_stratum targets to the
10518 connection list.
10519
4f837581
PA
105202020-01-10 Pedro Alves <palves@redhat.com>
10521
10522 Revert:
10523 2016-04-12 Pedro Alves <palves@redhat.com>
10524 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10525 Remove references to name.
10526 * serial.h (struct serial) <name>: Delete.
10527
f4ec508e
PA
105282020-01-10 Pedro Alves <palves@redhat.com>
10529
10530 * gdbarch-selftests.c (register_to_value_test): Remove "target
10531 already pushed" check.
10532
5b6d1e4f
PA
105332020-01-10 Pedro Alves <palves@redhat.com>
10534 John Baldwin <jhb@FreeBSD.org>
10535
10536 * aarch64-linux-nat.c
10537 (aarch64_linux_nat_target::thread_architecture): Adjust.
10538 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10539 (task_command_1): Likewise.
10540 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10541 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10542 (aix_thread_target::store_registers)
10543 (aix_thread_target::thread_alive): Adjust.
10544 * amd64-fbsd-tdep.c: Include "inferior.h".
10545 (amd64fbsd_get_thread_local_address): Pass down target.
10546 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10547 thread's gdbarch instead of target_gdbarch.
10548 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10549 get_last_target_status.
10550 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10551 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10552 inferiors.
10553 (update_inserted_breakpoint_locations): Skip if inferiors with no
10554 execution.
10555 (update_global_location_list): When handling moribund locations,
10556 find representative inferior for location's pspace, and use thread
10557 count of its process_stratum target.
10558 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10559 * bsd-uthread.c (bsd_uthread_target::wait): Use
10560 as_process_stratum_target and adjust thread_change_ptid and
10561 add_thread calls.
10562 (bsd_uthread_target::update_thread_list): Use
10563 as_process_stratum_target and adjust find_thread_ptid,
10564 thread_change_ptid and add_thread calls.
10565 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10566 find_thread_ptid call.
10567 * corelow.c (add_to_thread_list): Adjust add_thread call.
10568 (core_target_open): Adjust add_thread_silent and thread_count
10569 calls.
10570 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10571 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10572 * event-top.c (async_disconnect): Pop targets from all inferiors.
10573 * exec.c (add_target_sections): Push exec target on all inferiors
10574 sharing the program space.
10575 (remove_target_sections): Remove the exec target from all
10576 inferiors sharing the program space.
10577 (exec_on_vfork): New.
10578 * exec.h (exec_on_vfork): Declare.
10579 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10580 Pass it down.
10581 (fbsd_nat_target::update_thread_list): Adjust.
10582 (fbsd_nat_target::resume): Adjust.
10583 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10584 down.
10585 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10586 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10587 get_thread_arch_regcache call.
10588 * fork-child.c (gdb_startup_inferior): Pass target down to
10589 startup_inferior and set_executing.
10590 * gdbthread.h (struct process_stratum_target): Forward declare.
10591 (add_thread, add_thread_silent, add_thread_with_info)
10592 (in_thread_list): Add process_stratum_target parameter.
10593 (find_thread_ptid(inferior*, ptid_t)): New overload.
10594 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10595 parameter.
10596 (all_threads()): Delete overload.
10597 (all_threads, all_non_exited_threads): Add process_stratum_target
10598 parameter.
10599 (all_threads_safe): Use brace initialization.
10600 (thread_count): Add process_stratum_target parameter.
10601 (set_resumed, set_running, set_stop_requested, set_executing)
10602 (threads_are_executing, finish_thread_state): Add
10603 process_stratum_target parameter.
10604 (switch_to_thread): Use is_current_thread.
10605 * i386-fbsd-tdep.c: Include "inferior.h".
10606 (i386fbsd_get_thread_local_address): Pass down target.
10607 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10608 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10609 have_inferiors check.
10610 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10611 (inf_ptrace_target::attach): Adjust.
10612 * infcall.c (run_inferior_call): Adjust.
10613 * infcmd.c (run_command_1): Pass target to
10614 scoped_finish_thread_state.
10615 (proceed_thread_callback): Skip inferiors with no execution.
10616 (continue_command): Rename 'all_threads' local to avoid hiding
10617 'all_threads' function. Adjust get_last_target_status call.
10618 (prepare_one_step): Adjust set_running call.
10619 (signal_command): Use user_visible_resume_target. Compare thread
10620 pointers instead of inferior_ptid.
10621 (info_program_command): Adjust to pass down target.
10622 (attach_command): Mark target's 'thread_executing' flag.
10623 (stop_current_target_threads_ns): New, factored out from ...
10624 (interrupt_target_1): ... this. Switch inferior before making
10625 target calls.
10626 * inferior-iter.h
10627 (struct all_inferiors_iterator, struct all_inferiors_range)
10628 (struct all_inferiors_safe_range)
10629 (struct all_non_exited_inferiors_range): Filter on
10630 process_stratum_target too. Remove explicit.
10631 * inferior.c (inferior::inferior): Push dummy target on target
10632 stack.
10633 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10634 Add process_stratum_target parameter, and pass it down.
10635 (have_live_inferiors): Adjust.
10636 (switch_to_inferior_and_push_target): New.
10637 (add_inferior_command, clone_inferior_command): Handle
10638 "-no-connection" parameter. Use
10639 switch_to_inferior_and_push_target.
10640 (_initialize_inferior): Mention "-no-connection" option in
10641 the help of "add-inferior" and "clone-inferior" commands.
10642 * inferior.h: Include "process-stratum-target.h".
10643 (interrupt_target_1): Use bool.
10644 (struct inferior) <push_target, unpush_target, target_is_pushed,
10645 find_target_beneath, top_target, process_target, target_at,
10646 m_stack>: New.
10647 (discard_all_inferiors): Delete.
10648 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10649 (all_inferiors, all_non_exited_inferiors): Add
10650 process_stratum_target parameter.
10651 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10652 (target_last_proc_target): New global.
10653 (follow_fork_inferior): Push target on new inferior. Pass target
10654 to add_thread_silent. Call exec_on_vfork. Handle target's
10655 reference count.
10656 (follow_fork): Adjust get_last_target_status call. Also consider
10657 target.
10658 (follow_exec): Push target on new inferior.
10659 (struct execution_control_state) <target>: New field.
10660 (user_visible_resume_target): New.
10661 (do_target_resume): Call target_async.
10662 (resume_1): Set target's threads_executing flag. Consider resume
10663 target.
10664 (commit_resume_all_targets): New.
10665 (proceed): Also consider resume target. Skip threads of inferiors
10666 with no execution. Commit resumtion in all targets.
10667 (start_remote): Pass current inferior to wait_for_inferior.
10668 (infrun_thread_stop_requested): Consider target as well. Pass
10669 thread_info pointer to clear_inline_frame_state instead of ptid.
10670 (infrun_thread_thread_exit): Consider target as well.
10671 (random_pending_event_thread): New inferior parameter. Use it.
10672 (do_target_wait): Rename to ...
10673 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10674 down.
10675 (threads_are_resumed_pending_p, do_target_wait): New.
10676 (prepare_for_detach): Adjust calls.
10677 (wait_for_inferior): New inferior parameter. Handle it. Use
10678 do_target_wait_1 instead of do_target_wait.
10679 (fetch_inferior_event): Adjust. Switch to representative
10680 inferior. Pass target down.
10681 (set_last_target_status): Add process_stratum_target parameter.
10682 Save target in global.
10683 (get_last_target_status): Add process_stratum_target parameter and
10684 handle it.
10685 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10686 (context_switch): Check inferior_ptid == null_ptid before calling
10687 inferior_thread().
10688 (get_inferior_stop_soon): Pass down target.
10689 (wait_one): Rename to ...
10690 (poll_one_curr_target): ... this.
10691 (struct wait_one_event): New.
10692 (wait_one): New.
10693 (stop_all_threads): Adjust.
10694 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10695 event's target.
10696 (switch_back_to_stepped_thread): Also consider target.
10697 (print_stop_event): Update.
10698 (normal_stop): Update. Also consider the resume target.
10699 * infrun.h (wait_for_inferior): Remove declaration.
10700 (user_visible_resume_target): New declaration.
10701 (get_last_target_status, set_last_target_status): New
10702 process_stratum_target parameter.
10703 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10704 process_stratum_target parameter, and use it.
10705 (clear_inline_frame_state (thread_info*)): New.
10706 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10707 process_stratum_target parameter.
10708 (clear_inline_frame_state (thread_info*)): Declare.
10709 * linux-fork.c (delete_checkpoint_command): Pass target down to
10710 find_thread_ptid.
10711 (checkpoint_command): Adjust.
10712 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10713 instead of just tweaking inferior_ptid.
10714 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10715 (exit_lwp): Pass target down to find_thread_ptid.
10716 (attach_proc_task_lwp_callback): Pass target down to
10717 add_thread/set_running/set_executing.
10718 (linux_nat_target::attach): Pass target down to
10719 thread_change_ptid.
10720 (get_detach_signal): Pass target down to find_thread_ptid.
10721 Consider last target status's target.
10722 (linux_resume_one_lwp_throw, resume_lwp)
10723 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10724 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10725 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10726 (linux_nat_target::async_wait_fd): New.
10727 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10728 target down.
10729 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10730 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10731 * linux-thread-db.c (struct thread_db_info::process_target): New
10732 field.
10733 (add_thread_db_info): Save target.
10734 (get_thread_db_info): New process_stratum_target parameter. Also
10735 match target.
10736 (delete_thread_db_info): New process_stratum_target parameter.
10737 Also match target.
10738 (thread_from_lwp): Adjust to pass down target.
10739 (thread_db_notice_clone): Pass down target.
10740 (check_thread_db_callback): Pass down target.
10741 (try_thread_db_load_1): Always push the thread_db target.
10742 (try_thread_db_load, record_thread): Pass target down.
10743 (thread_db_target::detach): Pass target down. Always unpush the
10744 thread_db target.
10745 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10746 target down. Always unpush the thread_db target.
10747 (find_new_threads_callback, thread_db_find_new_threads_2)
10748 (thread_db_target::update_thread_list): Pass target down.
10749 (thread_db_target::pid_to_str): Pass current inferior down.
10750 (thread_db_target::get_thread_local_address): Pass target down.
10751 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10752 target down.
10753 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10754 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10755 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10756 (procfs_init_inferior): Rename to ...
10757 (procfs_target::procfs_init_inferior): ... this and adjust.
10758 (procfs_target::create_inferior, procfs_notice_thread)
10759 (procfs_do_thread_registers): Adjust.
10760 * ppc-fbsd-tdep.c: Include "inferior.h".
10761 (ppcfbsd_get_thread_local_address): Pass down target.
10762 * proc-service.c (ps_xfer_memory): Switch current inferior and
10763 program space as well.
10764 (get_ps_regcache): Pass target down.
10765 * process-stratum-target.c
10766 (process_stratum_target::thread_address_space)
10767 (process_stratum_target::thread_architecture): Pass target down.
10768 * process-stratum-target.h
10769 (process_stratum_target::threads_executing): New field.
10770 (as_process_stratum_target): New.
10771 * ravenscar-thread.c
10772 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10773 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10774 down.
10775 * record-btrace.c (record_btrace_target::info_record): Adjust.
10776 (record_btrace_target::record_method)
10777 (record_btrace_target::record_is_replaying)
10778 (record_btrace_target::fetch_registers)
10779 (get_thread_current_frame_id, record_btrace_target::resume)
10780 (record_btrace_target::wait, record_btrace_target::stop): Pass
10781 target down.
10782 * record-full.c (record_full_wait_1): Switch to event thread.
10783 Pass target down.
10784 * regcache.c (regcache::regcache)
10785 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10786 process_stratum_target parameter and handle it.
10787 (current_thread_target): New global.
10788 (get_thread_regcache): Add process_stratum_target parameter and
10789 handle it. Switch inferior before calling target method.
10790 (get_thread_regcache): Pass target down.
10791 (get_thread_regcache_for_ptid): Pass target down.
10792 (registers_changed_ptid): Add process_stratum_target parameter and
10793 handle it.
10794 (registers_changed_thread, registers_changed): Pass target down.
10795 (test_get_thread_arch_aspace_regcache): New.
10796 (current_regcache_test): Define a couple local test_target_ops
10797 instances and use them for testing.
10798 (readwrite_regcache): Pass process_stratum_target parameter.
10799 (cooked_read_test, cooked_write_test): Pass mock_target down.
10800 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10801 (get_thread_arch_aspace_regcache): Add process_stratum_target
10802 parameter.
10803 (regcache::target): New method.
10804 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10805 (regcache::registers_changed_ptid): Add process_stratum_target
10806 parameter.
10807 (regcache::m_target): New field.
10808 (registers_changed_ptid): Add process_stratum_target parameter.
10809 * remote.c (remote_state::supports_vCont_probed): New field.
10810 (remote_target::async_wait_fd): New method.
10811 (remote_unpush_and_throw): Add remote_target parameter.
10812 (get_current_remote_target): Adjust.
10813 (remote_target::remote_add_inferior): Push target.
10814 (remote_target::remote_add_thread)
10815 (remote_target::remote_notice_new_inferior)
10816 (get_remote_thread_info): Pass target down.
10817 (remote_target::update_thread_list): Skip threads of inferiors
10818 bound to other targets. (remote_target::close): Don't discard
10819 inferiors. (remote_target::add_current_inferior_and_thread)
10820 (remote_target::process_initial_stop_replies)
10821 (remote_target::start_remote)
10822 (remote_target::remote_serial_quit_handler): Pass down target.
10823 (remote_target::remote_unpush_target): New remote_target
10824 parameter. Unpush the target from all inferiors.
10825 (remote_target::remote_unpush_and_throw): New remote_target
10826 parameter. Pass it down.
10827 (remote_target::open_1): Check whether the current inferior has
10828 execution instead of checking whether any inferior is live. Pass
10829 target down.
10830 (remote_target::remote_detach_1): Pass down target. Use
10831 remote_unpush_target.
10832 (extended_remote_target::attach): Pass down target.
10833 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
10834 (remote_target::append_resumption): Pass down target.
10835 (remote_target::append_pending_thread_resumptions)
10836 (remote_target::remote_resume_with_hc, remote_target::resume)
10837 (remote_target::commit_resume): Pass down target.
10838 (remote_target::remote_stop_ns): Check supports_vCont_probed.
10839 (remote_target::interrupt_query)
10840 (remote_target::remove_new_fork_children)
10841 (remote_target::check_pending_events_prevent_wildcard_vcont)
10842 (remote_target::remote_parse_stop_reply)
10843 (remote_target::process_stop_reply): Pass down target.
10844 (first_remote_resumed_thread): New remote_target parameter. Pass
10845 it down.
10846 (remote_target::wait_as): Pass down target.
10847 (unpush_and_perror): New remote_target parameter. Pass it down.
10848 (remote_target::readchar, remote_target::remote_serial_write)
10849 (remote_target::getpkt_or_notif_sane_1)
10850 (remote_target::kill_new_fork_children, remote_target::kill): Pass
10851 down target.
10852 (remote_target::mourn_inferior): Pass down target. Use
10853 remote_unpush_target.
10854 (remote_target::core_of_thread)
10855 (remote_target::remote_btrace_maybe_reopen): Pass down target.
10856 (remote_target::pid_to_exec_file)
10857 (remote_target::thread_handle_to_thread_info): Pass down target.
10858 (remote_target::async_wait_fd): New.
10859 * riscv-fbsd-tdep.c: Include "inferior.h".
10860 (riscv_fbsd_get_thread_local_address): Pass down target.
10861 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
10862 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
10863 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
10864 Adjust.
10865 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
10866 * solib-svr4.c (enable_break): Pass down target.
10867 * spu-multiarch.c (parse_spufs_run): Pass down target.
10868 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
10869 * target-delegates.c: Regenerate.
10870 * target.c (g_target_stack): Delete.
10871 (current_top_target): Return the current inferior's top target.
10872 (target_has_execution_1): Refer to the passed-in inferior's top
10873 target.
10874 (target_supports_terminal_ours): Check whether the initial
10875 inferior was already created.
10876 (decref_target): New.
10877 (target_stack::push): Incref/decref the target.
10878 (push_target, push_target, unpush_target): Adjust.
10879 (target_stack::unpush): Defref target.
10880 (target_is_pushed): Return bool. Adjust to refer to the current
10881 inferior's target stack.
10882 (dispose_inferior): Delete, and inline parts ...
10883 (target_preopen): ... here. Only dispose of the current inferior.
10884 (target_detach): Hold strong target reference while detaching.
10885 Pass target down.
10886 (target_thread_name): Add assertion.
10887 (target_resume): Pass down target.
10888 (target_ops::beneath, find_target_at): Adjust to refer to the
10889 current inferior's target stack.
10890 (get_dummy_target): New.
10891 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
10892 has a thread running.
10893 (initialize_targets): Rename to ...
10894 (_initialize_target): ... this.
10895 * target.h: Include "gdbsupport/refcounted-object.h".
10896 (struct target_ops): Inherit refcounted_object.
10897 (target_ops::shortname, target_ops::longname): Make const.
10898 (target_ops::async_wait_fd): New method.
10899 (decref_target): Declare.
10900 (struct target_ops_ref_policy): New.
10901 (target_ops_ref): New typedef.
10902 (get_dummy_target): Declare function.
10903 (target_is_pushed): Return bool.
10904 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
10905 (all_matching_threads_iterator::all_matching_threads_iterator):
10906 Handle filter target.
10907 * thread-iter.h (struct all_matching_threads_iterator, struct
10908 all_matching_threads_range, class all_non_exited_threads_range):
10909 Filter by target too. Remove explicit.
10910 * thread.c (threads_executing): Delete.
10911 (inferior_thread): Pass down current inferior.
10912 (clear_thread_inferior_resources): Pass down thread pointer
10913 instead of ptid_t.
10914 (add_thread_silent, add_thread_with_info, add_thread): Add
10915 process_stratum_target parameter. Use it for thread and inferior
10916 searches.
10917 (is_current_thread): New.
10918 (thread_info::deletable): Use it.
10919 (find_thread_ptid, thread_count, in_thread_list)
10920 (thread_change_ptid, set_resumed, set_running): New
10921 process_stratum_target parameter. Pass it down.
10922 (set_executing): New process_stratum_target parameter. Pass it
10923 down. Adjust reference to 'threads_executing'.
10924 (threads_are_executing): New process_stratum_target parameter.
10925 Adjust reference to 'threads_executing'.
10926 (set_stop_requested, finish_thread_state): New
10927 process_stratum_target parameter. Pass it down.
10928 (switch_to_thread): Also match inferior.
10929 (switch_to_thread): New process_stratum_target parameter. Pass it
10930 down.
10931 (update_threads_executing): Reimplement.
10932 * top.c (quit_force): Pop targets from all inferior.
10933 (gdb_init): Don't call initialize_targets.
10934 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
10935 Declare.
10936 (windows_add_thread, windows_delete_thread): Adjust.
10937 (get_windows_debug_event): Rename to ...
10938 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
10939 * tracefile-tfile.c (tfile_target_open): Pass down target.
10940 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
10941 Forward declare.
10942 (switch_to_thread): Add process_stratum_target parameter.
10943 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
10944 parameter. Use it.
10945 (mi_on_resume): Pass target down.
10946 * nat/fork-inferior.c (startup_inferior): Add
10947 process_stratum_target parameter. Pass it down.
10948 * nat/fork-inferior.h (startup_inferior): Add
10949 process_stratum_target parameter.
10950 * python/py-threadevent.c (py_get_event_thread): Pass target down.
10951
75c6c844
PA
109522020-01-10 Pedro Alves <palves@redhat.com>
10953
10954 * remote.c (remote_target::start_remote): Don't set inferior_ptid
10955 directly. Instead find the first thread in the thread list and
10956 use switch_to_thread.
10957
78f2c40a
PA
109582020-01-10 Pedro Alves <palves@redhat.com>
10959
10960 * remote.c (remote_target::remote_add_inferior): Don't bind a
10961 process to the current inferior if the current inferior is already
10962 bound to a process.
10963
e7af6c70
TBA
109642020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10965 Pedro Alves <palves@redhat.com>
10966
10967 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
10968 If no process is specified, return null_ptid instead of
10969 inferior_ptid.
10970 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
10971 TARGET_WAITKIND_SIGNALLED with no pid.
10972
31ba933e
PA
109732020-01-10 Pedro Alves <palves@redhat.com>
10974
10975 * remote.c (first_remote_resumed_thread): New.
10976 (remote_target::wait_as): Use it as default event_ptid instead of
10977 inferior_ptid.
10978
735fc2ca
PA
109792020-01-10 Pedro Alves <palves@redhat.com>
10980
10981 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
10982
c17e02e1
PA
109832020-01-10 Pedro Alves <palves@redhat.com>
10984
10985 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
10986 not -1.
10987
ab1ddbcf
PA
109882020-01-10 Pedro Alves <palves@redhat.com>
10989
10990 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
10991 ptid to get_last_target_status.
10992 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
10993 ptid to get_last_target_status.
10994 * infcmd.c (continue_command): Don't pass a target_waitstatus to
10995 get_last_target_status.
10996 (info_program_command): Don't pass a target_waitstatus to
10997 get_last_target_status.
10998 * infrun.c (init_wait_for_inferior): Use
10999 nullify_last_target_wait_ptid.
11000 (get_last_target_status): Handle nullptr arguments.
11001 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11002 (print_stop_event): Don't pass a ptid to get_last_target_status.
11003 (normal_stop): Don't pass a ptid to get_last_target_status.
11004 * infrun.h (get_last_target_status, set_last_target_status): Move
11005 comments here and update.
11006 (nullify_last_target_wait_ptid): Declare.
11007 * linux-fork.c (fork_load_infrun_state): Remove local extern
11008 declaration of nullify_last_target_wait_ptid.
11009 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11010 to get_last_target_status.
11011
f3f8ece4
PA
110122020-01-10 Pedro Alves <palves@redhat.com>
11013
11014 * gdbthread.h (scoped_restore_current_thread)
11015 <dont_restore, restore, m_dont_restore>: Declare.
11016 * thread.c (thread_alive): Add assertion. Return bool.
11017 (switch_to_thread_if_alive): New.
11018 (prune_threads): Switch inferior/thread.
11019 (print_thread_info_1): Switch thread before calling target methods.
11020 (scoped_restore_current_thread::restore): New, factored out from
11021 ...
11022 (scoped_restore_current_thread::~scoped_restore_current_thread):
11023 ... this.
11024 (scoped_restore_current_thread::scoped_restore_current_thread):
11025 Add assertion.
11026 (thread_apply_all_command, thread_select): Use
11027 switch_to_thread_if_alive.
11028 * infrun.c (proceed, restart_threads, handle_signal_stop)
11029 (switch_back_to_stepped_thread): Switch current thread before
11030 calling target methods.
11031
db2d40f7
PA
110322020-01-10 Pedro Alves <palves@redhat.com>
11033
11034 * inferior.c (switch_to_inferior_no_thread): New function,
11035 factored out from ...
11036 (inferior_command): ... here.
11037 * inferior.h (switch_to_inferior_no_thread): Declare.
11038 * mi/mi-main.c (run_one_inferior): Use
11039 switch_to_inferior_no_thread.
11040
bd420a2d
PA
110412020-01-10 Pedro Alves <palves@redhat.com>
11042
11043 * infcmd.c (kill_command): Remove dead code.
11044
ddf5db90
PA
110452020-01-10 Pedro Alves <palves@redhat.com>
11046
11047 * remote.c (remote_target::mourn_inferior): No longer check
11048 whether the target is running.
11049
5018ce90
PA
110502020-01-10 Pedro Alves <palves@redhat.com>
11051
11052 * corelow.c (core_target::has_execution): Change parameter type to
11053 inferior pointer.
11054 * inferior.c (number_of_live_inferiors): Use
11055 inferior::has_execution instead of target_has_execution_1.
11056 * inferior.h (inferior::has_execution): New.
11057 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11058 inferior::has_execution instead of target_has_execution_1.
11059 * process-stratum-target.c
11060 (process_stratum_target::has_execution): Change parameter type to
11061 inferior pointer. Check the inferior's PID instead of
11062 inferior_ptid.
11063 * process-stratum-target.h
11064 (process_stratum_target::has_execution): Change parameter type to
11065 inferior pointer.
11066 * record-full.c (record_full_core_target::has_execution): Change
11067 parameter type to inferior pointer.
11068 * target.c (target_has_execution_1): Change parameter type to
11069 inferior pointer.
11070 (target_has_execution_current): Adjust.
11071 * target.h (target_ops::has_execution): Change parameter type to
11072 inferior pointer.
11073 (target_has_execution_1): Change parameter type to inferior
11074 pointer. Change return type to bool.
11075 * tracefile.h (tracefile_target::has_execution): Change parameter
11076 type to inferior pointer.
11077
74375d18
PA
110782020-01-10 Pedro Alves <palves@redhat.com>
11079
11080 * exceptions.c (print_flush): Remove current_top_target() check.
11081
acdf84a6
PA
110822020-01-10 Pedro Alves <palves@redhat.com>
11083
11084 * remote.c (show_remote_exec_file): Show the current inferior's
11085 exec-file instead of the command variable's value.
11086
ec506636
PA
110872020-01-10 Pedro Alves <palves@redhat.com>
11088
11089 * record-full.c (record_full_resume_ptid): New global.
11090 (record_full_target::resume): Set it.
11091 (record_full_wait_1): Use record_full_resume_ptid instead of
11092 inferior_ptid.
11093
873657b9
PA
110942020-01-10 Pedro Alves <palves@redhat.com>
11095
11096 * gdbthread.h (scoped_restore_current_thread)
11097 <dont_restore, restore, m_dont_restore>: Declare.
11098 * thread.c (thread_alive): Add assertion. Return bool.
11099 (switch_to_thread_if_alive): New.
11100 (prune_threads): Switch inferior/thread.
11101 (print_thread_info_1): Switch thread before calling target methods.
11102 (scoped_restore_current_thread::restore): New, factored out from
11103 ...
11104 (scoped_restore_current_thread::~scoped_restore_current_thread):
11105 ... this.
11106 (scoped_restore_current_thread::scoped_restore_current_thread):
11107 Add assertion.
11108 (thread_apply_all_command, thread_select): Use
11109 switch_to_thread_if_alive.
11110
7f0ae84c
GB
111112020-01-10 George Barrett <bob@bob131.so>
11112
11113 * stap-probe.c (stap_modify_semaphore): Don't check for null
11114 semaphores.
11115 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11116 for null semaphores.
11117
f5a7c406
AB
111182020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11119
11120 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11121 all source windows, and maintain horizontal scroll status while
11122 doing so.
11123
9ae6bf64
TT
111242020-01-09 Tom Tromey <tom@tromey.com>
11125
11126 PR tui/18932:
11127 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11128 update_source_window, not print_source_lines.
11129
b2efe70c
AB
111302020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11131
11132 * tui/tui.c (tui_enable): Register tui hooks after calling
11133 tui_display_main.
11134
5f23a082
CB
111352020-01-09 Christian Biesinger <cbiesinger@google.com>
11136
11137 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11138
3061113b
SM
111392020-01-08 Simon Marchi <simon.marchi@efficios.com>
11140
11141 * thread.c (print_thread_info_1): Fix indentation.
11142
57d75002
CB
111432020-01-09 Christian Biesinger <cbiesinger@google.com>
11144
11145 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11146 unique_xmalloc_ptr outside the if to always free the demangled name.
11147
6a053cb1
TT
111482020-01-08 Tom Tromey <tromey@adacore.com>
11149
11150 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11151 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11152 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11153 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11154 Remove.
11155 (section_offsets): New typedef.
11156 * symtab.c (fixup_section, get_msymbol_address): Update.
11157 * symmisc.c (dump_msymbols): Update.
11158 * symfile.h (relative_addr_info_to_section_offsets)
11159 (symfile_map_offsets_to_segments): Update.
11160 * symfile.c (build_section_addr_info_from_objfile)
11161 (init_objfile_sect_indices): Update.
11162 (struct place_section_arg): Change type of "offsets".
11163 (place_section): Update.
11164 (relative_addr_info_to_section_offsets): Change type of
11165 "section_offsets". Remove "num_sections" parameter.
11166 (default_symfile_offsets, syms_from_objfile_1)
11167 (set_objfile_default_section_offset): Update.
11168 (reread_symbols): No need to preserve section offsets by hand.
11169 (symfile_map_offsets_to_segments): Change type of "offsets".
11170 * stap-probe.c (relocate_address): Update.
11171 * stabsread.h (process_one_symbol): Update.
11172 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11173 (solib_target_relocate_section_addresses): Update.
11174 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11175 Update.
11176 * solib-frv.c (frv_relocate_main_executable): Update.
11177 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11178 * solib-aix.c (solib_aix_get_section_offsets): Change return
11179 type.
11180 (solib_aix_solib_create_inferior_hook): Update.
11181 * remote.c (remote_target::get_offsets): Update.
11182 * psymtab.c (find_pc_sect_psymtab): Update.
11183 * psympriv.h (struct partial_symbol) <address, text_low,
11184 text_high>: Update.
11185 * objfiles.h (obj_section_offset): Update.
11186 (struct objfile) <section_offsets>: Change type.
11187 <num_sections>: Remove.
11188 (objfile_relocate): Update.
11189 * objfiles.c (entry_point_address_query): Update
11190 (relocate_one_symbol): Change type of "section_offsets".
11191 (objfile_relocate1, objfile_relocate1): Change type of
11192 "new_offsets".
11193 (objfile_rebase1): Update.
11194 * mipsread.c (mipscoff_symfile_read): Update.
11195 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11196 parameter.
11197 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11198 (parse_external, psymtab_to_symtab_1): Update.
11199 * machoread.c (macho_symfile_offsets): Update.
11200 * ia64-tdep.c (ia64_find_unwind_table): Update.
11201 * hppa-tdep.c (read_unwind_info): Update.
11202 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11203 * dwarf2read.c (create_addrmap_from_index)
11204 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11205 (process_psymtab_comp_unit_reader, add_partial_symbol)
11206 (add_partial_subprogram, process_full_comp_unit)
11207 (read_file_scope, read_func_scope, read_lexical_block_scope)
11208 (read_call_site_scope, dwarf2_rnglists_process)
11209 (dwarf2_ranges_process, dwarf2_ranges_read)
11210 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11211 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11212 Update.
11213 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11214 Update.
11215 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11216 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11217 (process_one_symbol): Change type of "section_offsets".
11218 * ctfread.c (get_objfile_text_range): Update.
11219 * coffread.c (coff_symtab_read, enter_linenos)
11220 (process_coff_symbol): Update.
11221 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11222 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11223
456e800a
TT
112242020-01-08 Tom Tromey <tromey@adacore.com>
11225
11226 * dwarf2read.c (parse_macro_definition): Use std::string.
11227 (parse_macro_definition): Likewise.
11228
6dfa2fc2
TT
112292020-01-08 Tom Tromey <tromey@adacore.com>
11230
11231 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11232 (ATTR_ALLOC_CHUNK): Remove.
11233
421d1616
TT
112342020-01-08 Tom Tromey <tromey@adacore.com>
11235
11236 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11237
43816ebc
TT
112382020-01-08 Tom Tromey <tromey@adacore.com>
11239
11240 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11241 (dwarf2_compute_name, open_dwo_file): Likewise.
11242 (process_enumeration_scope): Use std::vector.
11243 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11244 (partial_die_info::fixup, dwarf2_start_subfile)
11245 (guess_full_die_structure_name, dwarf2_name): Likewise.
11246 (determine_prefix): Update.
11247 (guess_full_die_structure_name): Make return type const.
11248 (partial_die_full_name): Return unique_xmalloc_ptr.
11249 (DW_FIELD_ALLOC_CHUNK): Remove.
11250
4212d509
TT
112512020-01-07 Tom Tromey <tromey@adacore.com>
11252
11253 PR build/24937:
11254 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11255
06a6207a
JT
112562020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11257
11258 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11259
153d79c4
AB
112602020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11261
11262 * stack.c (print_frame_info): Move disassemble_next_line code
11263 inside source_print block.
11264
66182876
EZ
112652020-01-06 Eli Zaretskii <eliz@gnu.org>
11266
11267 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11268 gdb/signals.h, as we are now using native signal symbols.
11269
cbfa8581
SV
112702020-01-06 Shahab Vahedi <shahab@synopsys.com>
11271
11272 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11273 overflow by an early check of content vs threshold.
aac66a4c 11274 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11275 Likewise.
11276
3f602821
EZ
112772020-01-06 Eli Zaretskii <eliz@gnu.org>
11278
11279 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11280
a08c904d
JT
112812020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11282
11283 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11284 export table if no section contains it's RVA.
11285
89a65580
EZ
112862020-01-06 Eli Zaretskii <eliz@gnu.org>
11287
11288 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11289
8b7fcda2
HD
112902020-01-06 Hannes Domani <ssbssa@yahoo.de>
11291
11292 * source.c (print_source_lines_base): Set last_line_listed.
11293
a61b4f69
SV
112942020-01-06 Shahab Vahedi <shahab@synopsys.com>
11295
11296 * tui/tui-disasm.c: Remove trailing spaces.
11297
559e7e50
EZ
112982020-01-06 Eli Zaretskii <eliz@gnu.org>
11299 Pedro Alves <palves@redhat.com>
11300
11301 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11302 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11303 (windows_gdb_signal_to_target): New function, uses the above
11304 enumeration to convert GDB internal signal codes to equivalent
11305 Windows codes.
11306 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11307 * windows-nat.c: Include "gdb_wait.h".
11308 (get_windows_debug_event): Extract the fatal exception from the
11309 exit status and convert to the equivalent Posix signal number.
11310 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11311 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11312 * gdbsupport/gdb_wait.c: New file, implements
11313 windows_status_to_termsig.
11314 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11315 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11316
f2302a34
AB
113172020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11318
11319 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11320 show_layout.
11321
6a5206eb
LM
113222020-01-05 Luis Machado <luis.machado@linaro.org>
11323
11324 * aarch64-linux-nat.c
11325 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11326 and bfd_mach_aarch64.
11327
6ec1d75e
PW
113282020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11329
11330 * ui-file.c (stdio_file::can_emit_style_escape)
11331 (tee_file::can_emit_style_escape): Ensure style is used also on
11332 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11333 to gdb_stdout.
11334 * main.c (set_gdb_data_directory): Use file style to output the
11335 warning that the given pathname is not a directory.
11336 * top.c (show_history_filename, gdb_safe_append_history)
11337 (show_gdb_datadir): Use file style.
11338
44f81a76
HD
113392020-01-03 Hannes Domani <ssbssa@yahoo.de>
11340
11341 * solib-target.c (struct lm_info_target):
11342 Change offsets to be a unique_xmalloc_ptr.
11343 (solib_target_relocate_section_addresses): Update.
11344
25057eb0
HD
113452020-01-03 Hannes Domani <ssbssa@yahoo.de>
11346
11347 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11348
6e2118f5
BE
113492020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11350
11351 * MAINTAINERS (Write After Approval): Add myself.
11352
8133c7dc
LM
113532020-01-02 Luis Machado <luis.machado@linaro.org>
11354
11355 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11356 Cell BE architecture.
11357 * target.h (struct target_ops) <thread_architecture>: Likewise.
11358
48189bec
HD
113592020-01-01 Hannes Domani <ssbssa@yahoo.de>
11360
11361 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11362
ead1063b
HD
113632020-01-01 Hannes Domani <ssbssa@yahoo.de>
11364
11365 * MAINTAINERS (Write After Approval): Add myself.
11366
e5d78223
JB
113672020-01-01 Joel Brobecker <brobecker@adacore.com>
11368
11369 * gdbarch.sh: Update copyright year range of generated files.
11370
b811d2c2
JB
113712020-01-01 Joel Brobecker <brobecker@adacore.com>
11372
11373 Update copyright year range in all GDB files.
11374
5f4def5c
JB
113752020-01-01 Joel Brobecker <brobecker@adacore.com>
11376
11377 * copyright.py: Convert to Python 3.
11378
51fd4002
JB
113792020-01-01 Joel Brobecker <brobecker@adacore.com>
11380
11381 * copyright.py: Adapt after move of gnulib directory from gdb
11382 directory to toplevel directory.
11383
5fb651f2
JB
113842020-01-01 Joel Brobecker <brobecker@adacore.com>
11385
11386 * copyright.py (main): Exit if run from the wrong directory.
11387
5dd8bf88
JB
113882020-01-01 Joel Brobecker <brobecker@adacore.com>
11389
11390 * top.c (print_gdb_version): Change copyright year to 2020.
11391
9f71dacb 113922020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11393
9f71dacb 11394 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11395
9f71dacb 11396For older changes see ChangeLog-2019.
c906108c
SS
11397\f
11398Local Variables:
11399mode: change-log
11400left-margin: 8
11401fill-column: 74
11402version-control: never
57da7796 11403coding: utf-8
c906108c 11404End:
This page took 2.921676 seconds and 4 git commands to generate.